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

 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 c$,BCA,Yll,P$,gC,aAl,mq,Vw,to,NY,gII,s7C,I7,k7C,X$I,o7,bxq,qlO,CXO,YF,TCC,Vdx,w$7,JoA,WqX,bt,U3,T5,tn,oIX,w9,Q7I,Jn,E3,vy,vI7,yW,MQ,SlQ,Lq7,Zxw,eZ,fAx,xz,ixC,Yz,HxC,ay,Aox,roC,cnI,OF,xQl,Ptq,Y37,aSQ,gFA,EF,RQd,Iy,eQw,B97,b4x,j0X,UQY,Si,dQ$,q3$,Ctw,hIX,T9l,VZo,N97,Ry,Wmq,EF7,oF$,zIY,S3A,BN,aU,ynC,H4x,p$,fSA,DQQ,Anw,Xe,ud$,kP,mQq,n$,K$,dt,$P,q2,eIx,rnl,RIQ,Vs,BlA,cc$,xNx,YFd,Pzq,WN,a8I,gzQ,mG,psC,kBO,oU,$Nw,jy7,vN,hSA,nz7,mNC,Tlo,Vi7,WoO,NlO,GL,L$,Ezo,ozQ,Qyd,SFA,ZAO,rcI,cOl,gPX,g8,pNx,XNo,n6,K6,
jT,qg,C6,IW,Wa,lV,d2O,yc,CmY,Tto,As,uV,tJq,r8,RW,cF,xM,NtQ,ImY,JOl,WGo,lmd,EP7,O$Y,oPw,QU$,vPw,pq,gq,z9O,S0l,yO$,MJY,GLx,LGA,jx,H$O,UI,dq,q8,Cq,Vd,i$q,t0,ue7,B8Y,N8,csC,xg$,PVl,J0,YGI,az7,WF,le,paQ,OI,$g7,nX7,od,K7Y,b6$,jWq,UgI,dgl,qGd,zE,CV$,hPw,Sx,mgO,T8O,yd,GE,Lq,ZK,VT7,waq,tTl,HF,Iz7,Jsw,W7d,ie,ue,DK,rq,Rd,ex,BM,lz7,EXO,O6X,oXO,QWQ,F7Y,vXw,zPd,SGA,ysX,GzO,x2,MTX,L7o,a3,Z6w,sd,pH,H6x,Asd,u_x,Dg7,RPo,ePY,BqC,YIA,aKd,gMX,sdo,pFo,kEo,XFx,KX$,$2,jdX,U8$,d8o,qIl,Ced,hDA,Tq$,Qdq,FXI,vMq,SI$,y0O,hx,GEI,
mK,fKY,iqx,A0w,utI,D8I,r0I,RDw,eD7,Nj,cxQ,Zqq,xjw,Py7,Ydl,aeO,g2w,s3x,pMX,k_o,XMo,bHo,n2l,Ujl,KKx,j3C,Cy$,hOx,mjx,djC,Vkl,qd7,wMq,G_,NWO,Mj,Ze,Iel,WKl,leq,o2w,ZH7,FK7,Q3A,zOl,yxO,v27,Axd,fe7,ugQ,DjI,rxI,ROA,eOC,cGQ,BfI,xHQ,PWA,Yqw,aMd,sDo,kPC,Xhq,$Hx,bSq,nwC,whd,rW,Nfo,JGX,Wyw,lMd,Ew7,OSl,QDq,FyO,vwQ,Yw,aD,zE7,Lyo,kw,XC,iSo,AGO,YxC,j$,sOQ,pRx,nDw,XRq,$O$,my,btq,EDw,oD7,QOX,F_d,vDA,zzo,SxY,yMq,MwO,L_Y,Htd,Zt$,AMX,lW,oD,DOY,rMA,Rzl,ezl,BDw,cR7,Pk7,agI,YsQ,AG,DM,rf,qsd,CkX,BR,mRC,TDA,cR,tIx,VIw,o6l,
Qt7,FVd,z2Q,MIX,ZaC,HaX,fg$,iaC,uPC,rRo,R2l,aO,xD$,atx,gu7,sHO,ppq,kwl,Y47,cKQ,BrO,sx,e2X,XpO,nuA,UDI,KcO,XS,q4C,h1X,mDO,Trl,VRw,jw,tR7,NrO,wpA,ItY,WcC,qO,z1x,yK7,MRx,ZUC,m_,ft$,tM,NO,wb,DD$,HUo,rKC,Ex,cjX,QG,YEw,sxC,k6l,XAQ,$6O,Sw,nr7,bpQ,K1d,U67,d6C,qEX,Cr7,m6l,GI,TKl,Vld,Lt,ft,NKX,I$l,JjI,AM,Ero,OpY,QxQ,B5,G6I,MlO,L17,Zpx,Hpo,gD,pa,k6,rjw,XP,RUo,eUd,BUC,cP7,Pbd,YbI,xao,na,g4w,poY,bk,sGo,kr$,a6l,Xo7,jI,n4x,bEA,KDA,jG$,dax,UaO,qb7,mad,Cbx,V3w,WD7,E47,OEC,QG$,zql,v4X,FD7,SbA,GrA,LD$,M3X,HEw,f6O,iE7,
API,uUY,W5,cJ$,BYY,xMd,P4Q,Es,Os,Ykq,gWx,pXC,$M7,bl$,nWI,Rt,Ke7,s1C,mMo,TYo,VOC,Pp,tO$,NYI,WeA,OlQ,EW$,vWA,zho,Skx,yJq,MOY,ilo,Led,Hl7,fFY,AJo,upI,rJ7,DMC,ehY,RhQ,jR,Bxd,xpl,Phw,ss7,VY,tK,pf7,kkl,wr,bNd,Wp,lp,E4,dpw,O4,hkI,F4,mpw,Txx,VWX,tWl,SR,wfI,IaI,Jgl,laq,ONd,F47,zkd,Dt,Snw,ygl,GkY,MWl,L4$,ZNd,HN$,fao,eR,uTo,Dp7,rgd,Rk$,ekx,Bjd,cid,x9w,PgX,Ypl,a1d,gCo,sJO,sE,Cgx,hdA,pp,kr,X1,m9X,Tj7,VcA,tco,wrq,Njx,I1o,OWx,oCI,QJl,F5o,vCq,Kp,UE,dK,q6,m1,T6,Vx,Spw,wK,GqQ,Jj,Mc7,L5q,WA,ZWq,HWx,f1q,cm7,PGX,p3Q,
nNI,$ZQ,xZw,bko,UZ7,ljO,TLl,Fkw,tBC,QwY,vNx,F1,Sv$,z6,G$w,MBl,Zk7,Hk7,fjO,Amx,G6,DZ7,rmQ,Rlo,elw,B_7,cVC,xAo,u9d,a3l,gHx,su7,Lp,brQ,Kz7,nHX,UAO,dAO,CI$,h6X,qiX,I3C,Wz7,EHO,oH$,el,yVx,SiO,Hrw,ird,AV7,uIO,DAA,rVl,R6X,pE,sBX,kZw,axw,Ym7,pWQ,BM$,$iX,TM7,KU7,jBo,Uil,OF7,QBC,E97,GZX,lxw,e6Y,y9x,bFw,miA,o9w,XWw,xiQ,c9Q,PFO,g9o,WU$,Na,x_7,YLw,a9C,g0O,smX,U_X,TXQ,V_I,vo,wH7,JXq,OLx,E0O,QmQ,FlX,zYo,yXQ,SLw,Glx,AP,M_l,LlI,HLl,ZLC,ub,rX7,D_l,uo$,cWw,RYl,xeC,BVd,PvQ,rU,Y9q,pw7,gUC,s2l,Xwd,bw7,cX,Uew,KgX,deX,med,
TVO,wwq,In7,a1,gY,EUq,OwC,sk,pl,oUw,kW,Xp,Q2o,$W,Fg7,nl,vUA,z_x,Kl,S97,yWQ,GUA,M5Y,Lgl,Hw7,Zw7,iwq,De7,uBo,rWq,R_Q,fnw,e_l,xvd,cb$,AWO,PR7,YyY,Cl,a_w,sFQ,gxx,pvY,kjQ,$vA,XvQ,nxY,me,Kpo,jFQ,b3Q,dvY,qyw,CRo,VAq,I_l,O3Q,vxX,TK,ybl,GjA,VL,MAQ,I1,JJ,Abq,wY,Ek,u5x,Dvo,Rmw,emq,cax,Pjd,YrC,as$,gEl,k2l,KTY,nEl,p8l,jvQ,Usq,Fp,b2o,dsw,SO,qrl,CjI,hbw,ms$,w87,Tco,tnC,WTO,lsx,FTx,Qvo,Srq,H2C,fsl,AaI,Dsw,rad,ebC,B2w,cEC,PUo,YBY,aOA,pi$,nlA,bCY,keX,jEx,dbq,Ubq,KHq,qBo,hvC,mbQ,T2C,VXI,tXd,R1,eO,xd,Yd,IOl,JE7,lOQ,
oll,as,gx,QEl,sn,zvI,SBI,yEI,kd,HCI,usq,rEq,Rv$,evx,BQl,cdX,YZA,$d,aZX,pGA,nN,koC,nVC,bYC,KFC,$yq,hFw,V2X,myQ,t2O,IZ7,WFq,EV7,FFY,QgY,yd7,dx,GoQ,M2q,qp,LFY,CN,ZY7,HYX,fZ7,Add,iY$,u87,Dyo,rdC,RFQ,aDd,sfI,k1o,pJ7,xwI,Bpx,$ww,b9I,qYq,CLY,Tp7,JeA,lDX,VD,E77,o7O,QfA,v7d,G1q,Z9q,i9X,Aex,u$C,Dwd,cBY,req,aud,gcx,pBX,Np,XBl,$fo,ncw,bRl,Ks7,jZw,Uf$,qV$,CKd,lh,hc7,mfq,VQ$,On,TaX,wBX,Wsq,FT,luA,EcQ,ORd,FsO,vcq,ocd,SVA,LsO,ZRX,HRC,Za,fuI,Dfq,rBC,Ag,BBx,Rco,ecw,xX7,YN$,a0l,k4I,nfX,$XA,X_q,bO7,jz$,UX$,mX7,dXQ,TBX,
tmQ,Vmx,l0O,ofq,FtO,zBx,Mm7,ufQ,rr$,RB7,xc7,YhY,Wr,Sc,XLq,KEO,bmO,Uco,dcx,CYo,qhq,h5w,mcC,yj,k$7,$cX,jX7,nbX,vr,tVQ,wLd,NRA,IWA,JZC,WEY,lWx,EbI,RJ,OmI,ec,obX,QXq,FE$,vbo,xN,z5I,Gxx,LEC,ZmO,rZO,e57,B77,cU7,P9d,Y5$,$N,gvl,s8C,p6Q,kg7,X6Q,$lw,bgY,j8I,dl$,q5A,tEX,T77,w6x,JUQ,W0A,qZ,lE7,Ev7,OgI,F0Q,z3x,vvo,yU7,qcd,T$,h7I,mkO,Ci7,Tyl,VgY,wbq,Iyl,NyA,J4C,tgO,Wal,lyI,EYA,OdA,oYQ,QIq,FaQ,vYw,z7d,GVY,y4I,MgQ,ZdC,LaX,VI,HdX,A4X,R7d,fyd,e77,BJx,c3O,xVo,ow,$VQ,n5w,KQI,jAq,v3,Cad,VPd,w7C,z$,WQA,J3o,lYO,G$,E5d,
OVX,o5l,FQ7,v5Y,zeX,SPQ,G37,MPl,ReO,A3w,DVY,Bdx,ee7,cvO,xmI,YMX,gkQ,pKC,XKI,hTq,Voq,wKw,Ndq,Ip7,Jv$,Wj$,Ekx,O0o,Fjw,vkl,zTw,SMq,yvq,GQ7,MoQ,Ljd,fpo,Dm7,Bq,cq,xH,Pq,rvO,g_,eTO,plY,K8l,ngO,l5d,Eg7,Oy$,c2d,s$I,YQw,Q$I,F8d,vgl,Xll,SQQ,GCI,L8I,f5X,iyY,hV,Vy,tV,BGQ,eR$,Y2q,aPo,KWd,U3x,q27,CDC,TGO,tp7,Vp7,IPI,WWC,vJ7,QiI,EJQ,FW$,OQ7,zVY,Mp7,yy,r6l,A6w,eVd,BZO,xzC,P6q,MA,YUw,seA,kHC,XDY,nGq,$zI,Hq,qUX,r_,h0$,mz7,eF,TZw,VMX,tMO,wDY,NZo,I4q,JuX,WA7,l4w,EG7,Ojo,oGl,QeY,FAl,vGd,BW,z0Y,SU7,yuo,GHx,MMC,LA$,ZjO,
Hjo,f4I,ij7,Auq,uhO,x9,ruY,e07,c7C,Yfo,sN$,pC7,kAC,$T7,bG7,KPl,jNw,X2,h8Q,qfq,mT7,TAA,V6C,NAI,Ir7,J7Y,lrI,TZ,OGX,h9,QN7,FP$,Vo,vSx,z8I,Sfw,y7o,wM,ZG$,fr7,r7O,DTI,e8l,B5q,Om,cf7,xBO,YAA,gR7,sSl,k8Y,XTI,afx,$Bo,UB7,hAY,mB7,oB,T5w,VSO,Jf7,tSI,N57,Ifd,QSX,lfI,F$X,zAI,yfx,G8O,MSQ,L$I,Z8A,H8C,i8d,Afq,u0x,DBY,rfX,eA$,cIw,Ygw,pzO,$n7,bb$,UnO,GZ,dnq,qgl,CcO,h$q,mnO,V4Y,t4Q,wzC,No7,ITx,JI7,Wfq,lTw,ETw,ObA,oTw,Ff7,Qpd,SgI,GGX,Zx,M4q,Hbq,ZbO,fF,AIQ,uKo,DnQ,e$X,xPI,c8q,R$7,aCw,YJ7,XI$,gyA,RB,pII,dPX,bMC,Kxd,jjX,
UP$,qJI,hf7,CBq,er,BH,ICO,TTC,NTx,wIA,VYX,tYo,lCd,OMw,Qj$,oyO,SJ$,zfo,MYQ,LxY,HMx,fCl,ZMw,iMX,uqx,A8d,r8x,Beq,pL,clw,xI$,aGA,XdI,UI$,Xo,qoI,Te7,NeI,wdA,VLQ,tLX,j_,lGl,IGl,Jl7,Es$,oso,Oso,vsw,zyA,ylo,GYA,ML7,LRI,ZsC,fGq,is$,JX,uAx,lA,DIA,B4d,cw$,QF,x7x,YCl,b7Y,yF,ptI,nmO,kcO,Xtd,d7X,qCC,U7q,CNX,hXl,t9O,m77,wt7,N4O,M_,JwY,WIQ,lkI,IkI,HH,EmX,LL,FIA,LI7,Z7d,H7w,fkl,i77,Awd,RXC,D7Y,rw7,ux7,B1I,PQC,gBC,sh$,kJY,nB7,X0x,$5C,bid,jhQ,U5$,d5l,qzO,CQ7,hGl,T1$,e_,Vu7,N17,w07,JNX,Ihq,W9$,lhC,EB7,Bw,oBC,Hil,L9X,
AN7,uRC,cCq,xWY,P1X,YwY,a7x,g8d,kvQ,XUq,$WA,n8I,jTq,UWO,dWQ,qwx,C1$,hwl,mWw,TmC,VUq,tUO,Nmx,I7I,JCO,E87,o8X,zwQ,v8$,F37,QTO,MUY,yCO,ZcC,f7X,icC,ACd,Cw,uc7,DW7,rCq,cAd,RwY,xJ7,ewx,PCI,tW,YHY,awq,g3d,BHO,s97,n3I,KL$,bfX,I2,j97,UJY,dJd,qHA,CCQ,hZC,THA,Vfo,tfY,w2I,JAl,IwX,o37,NH7,Ww,Q97,WLC,Ofx,zZw,yAA,HfX,LLI,Zfl,MfY,Gad,vw,fww,AAq,uzX,DJl,rA7,RZO,P_o,B0w,eZx,ct$,KSA,nOQ,xUw,$UQ,mUl,T0d,Vel,te$,wZ7,N0q,IBY,Jtw,EOO,oOX,FSI,zN7,SaQ,ytO,Z_7,LSA,H_d,i_7,Pv,DUo,rtd,RN7,eNx,aF,g$,x07,aI$,$07,joo,U0$,d07,q$I,
C2A,hMY,TEI,tKQ,VKC,wx$,II7,JhC,Wnl,lI7,Ei$,OPI,$x,oiX,Gmw,MKw,zMI,viC,yho,S$O,D0C,iPq,K3,rhQ,RM7,eMC,Bzo,cTI,xCX,P5X,Y6I,adA,sbC,kNw,$Co,buw,jbI,C5C,hto,mCY,tvo,Vvx,TzC,wuX,NzC,JTX,WNd,ld7,EpQ,hb,opd,Qbl,FNX,ztX,vpw,S6d,GNO,Zux,Hu7,fd7,iu7,AT$,rTw,RtO,uvQ,DCO,aVQ,g1A,pSq,srI,kT7,n1$,boO,KBQ,jrI,ddq,Ud7,CTl,wSd,t8O,IVl,J57,WBw,QrO,FBd,v1q,zpo,GTq,M8l,Hoq,ioQ,fVQ,A5X,y7,uDX,Ddq,r5X,Rpd,xKA,c_$,P8l,YD$,g$q,sL7,XE7,n$Q,bvw,KJX,jLw,UKX,dK7,qDq,C87,hiC,mKQ,VGO,Tsx,tGx,wEQ,Ns7,IRA,J_I,WJq,lR7,Ovw,o$d,E$Q,
Ab,v$O,zi7,SDq,y_C,GD7,LJQ,fRI,ivA,A_C,ubo,DKw,r_w,eix,B6O,xLx,Yeo,gL$,Xew,ped,slI,khq,$L7,nLo,bZl,ULI,dLo,qeY,h4w,mLI,T6A,V0d,wed,IXA,t0q,JHC,WwA,lXC,ELO,OZw,oL7,Fwd,Qll,vLq,z4l,SeA,yHC,Lw$,ZZC,HZO,fXI,iZX,AHq,rHo,R4Y,uZ7,DL7,xSd,PZO,sr,pkO,ktd,$S7,KO$,bhA,jco,USO,p2,bj,qt7,CZO,Ur,dc,Vs7,hCX,mSY,NvA,WOQ,EoY,OhC,ooX,Qc7,FOx,zCl,StQ,yyX,GtY,Ms7,LOd,Zhx,ha,Hhl,fbl,T2,ih7,Ay$,uYX,DSY,ry7,RCd,wc,Ns,eCd,BIw,Iv,cQO,xtQ,PwX,YW7,gKx,sao,k0w,KMl,b5x,nKY,jaA,UtQ,TIO,Cwd,hjx,qWd,mtX,W8,w1q,NIw,Io7,JQA,WM$,EK7,
FMl,oKY,lj,O5x,G0w,LMl,Z57,H5X,foo,i5O,uEl,Dt7,rQd,Rjd,BN7,ckw,xuY,Y8I,aJl,sKo,pg7,beC,jKA,KZl,duX,TN7,VHX,tHO,wgQ,IJd,lJI,v8,Sn,z2,EhQ,OeY,oh7,QKX,vh7,zod,S8Y,ykC,MH$,Zel,Hed,fJd,y0,ieY,ul7,DuO,rkw,BOC,czX,G2,Ms,Y7Y,xqo,sQQ,alX,pQw,Zs,XQX,$qd,Kr7,Uqo,H8,q77,CqO,hKC,mqI,TOl,VDQ,tDQ,NOI,llC,EA7,QQo,OXI,oAx,FrQ,yz7,vAw,S7w,Gp7,MDw,LrA,flw,iXq,Azq,uwQ,Dq7,xoq,cSI,p4o,$ox,Bi,naw,IMI,bzx,KYX,UoY,qXq,C7Q,Nno,IvO,aE,JSC,WYO,lvl,Ozo,oax,FY7,zJ7,Q_A,vaI,ySO,SXl,ZzY,Mzo,Hzo,fvo,izq,ASX,uQO,rSO,DoI,cDl,Yj$,
xrx,aLq,gZC,sMI,kl,pcC,kX$,$l,$rQ,XcQ,nZO,bD7,jMO,Url,qjO,CHO,hsl,mrw,Tgo,wc7,JDd,EZw,lLO,ODX,oZO,vZQ,iDq,GXd,uu7,Dr$,RsX,esw,Pu7,g_O,pj$,kbx,XjX,n_w,bId,Kbl,jR$,UEl,dEI,q_I,hul,VCI,tCO,wjQ,NFd,WbQ,JF$,o_O,QRQ,Fb7,MC7,yF$,Lbl,ZI$,HIq,iIx,IE,uJC,oE,rFx,euI,BhO,aN$,sV$,$xO,bK$,K2d,Uxw,dxY,quw,hgq,Tho,VaX,wnI,JY7,INq,NhA,SX,lNX,W2l,EnI,OKx,onC,QVO,F2$,vnQ,zgI,yYA,Gyx,Mal,L2Q,ZK$,HKo,fNI,iKd,AYX,Dxq,rYC,aHd,gQl,sPI,p9X,k9o,nQl,fC,qSl,C0X,hxl,m1d,TSl,iU,AE,uW,uU,RE,lHO,QPq,vQ7,F6O,eX,zxq,SSO,Z$o;
_.B$=function(B,c){if(Error.captureStackTrace)Error.captureStackTrace(this,_.B$);else{var x=Error().stack;x&&(this.stack=x)}B&&(this.message=String(B));c!==void 0&&(this.cause=c)};
c$=function(){throw Error("B");};
BCA=function(B,c){c=String.fromCharCode.apply(null,c);return B==null?c:B+c};
Yll=function(B){var c=!1;c=c===void 0?!1:c;if(co$){if(c&&(xY7?!B.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(B)))throw Error("C");B=(PXl||(PXl=new TextEncoder)).encode(B)}else{for(var x=0,P=new Uint8Array(3*B.length),Y=0;Y<B.length;Y++){var g=B.charCodeAt(Y);if(g<128)P[x++]=g;else{if(g<2048)P[x++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&Y<B.length){var k=B.charCodeAt(++Y);if(k>=56320&&k<=57343){g=(g-55296)*1024+k-56320+65536;P[x++]=g>>18|
240;P[x++]=g>>12&63|128;P[x++]=g>>6&63|128;P[x++]=g&63|128;continue}else Y--}if(c)throw Error("C");g=65533}P[x++]=g>>12|224;P[x++]=g>>6&63|128}P[x++]=g&63|128}}B=x===P.length?P:P.subarray(0,x)}return B};
P$=function(B){_.xI.setTimeout(function(){throw B;},0)};
_.YI=function(B,c){return B.lastIndexOf(c,0)==0};
gC=function(B,c){var x=B.length-c.length;return x>=0&&B.indexOf(c,x)==x};
_.sl=function(B){return/^[\s\xa0]*$/.test(B)};
_.$I=function(B,c){return B.indexOf(c)!=-1};
_.nx=function(B,c){return _.$I(B.toLowerCase(),c.toLowerCase())};
_.jd=function(B,c){var x=0;B=bX(String(B)).split(".");c=bX(String(c)).split(".");for(var P=Math.max(B.length,c.length),Y=0;x==0&&Y<P;Y++){var g=B[Y]||"",k=c[Y]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(g[0].length==0&&k[0].length==0)break;x=aAl(g[1].length==0?0:parseInt(g[1],10),k[1].length==0?0:parseInt(k[1],10))||aAl(g[2].length==0,k[2].length==0)||aAl(g[2],k[2]);g=g[3];k=k[3]}while(x==0)}return x};
aAl=function(B,c){return B<c?-1:B>c?1:0};
_.dC=function(){var B=_.xI.navigator;return B&&(B=B.userAgent)?B:""};
mq=function(B){if(!qY||!Cx)return!1;for(var c=0;c<Cx.brands.length;c++){var x=Cx.brands[c].brand;if(x&&_.$I(x,B))return!0}return!1};
Vw=function(B){return _.$I(_.dC(),B)};
to=function(){return qY?!!Cx&&Cx.brands.length>0:!1};
NY=function(){return to()?!1:Vw("Opera")};
gII=function(){return to()?!1:Vw("Trident")||Vw("MSIE")};
s7C=function(){return to()?mq("Microsoft Edge"):Vw("Edg/")};
I7=function(){return Vw("Firefox")||Vw("FxiOS")};
_.Ol=function(){return Vw("Safari")&&!(_.lX()||(to()?0:Vw("Coast"))||NY()||(to()?0:Vw("Edge"))||s7C()||(to()?mq("Opera"):Vw("OPR"))||I7()||Vw("Silk")||Vw("Android"))};
_.lX=function(){return to()?mq("Chromium"):(Vw("Chrome")||Vw("CriOS"))&&!(to()?0:Vw("Edge"))||Vw("Silk")};
_.p$d=function(){return Vw("Android")&&!(_.lX()||I7()||NY()||Vw("Silk"))};
k7C=function(B){var c={};B.forEach(function(x){c[x[0]]=x[1]});
return function(x){return c[x.find(function(P){return P in c})]||""}};
X$I=function(B){var c=_.dC();if(B==="Internet Explorer"){if(gII())if((B=/rv: *([\d\.]*)/.exec(c))&&B[1])c=B[1];else{B="";var x=/MSIE +([\d\.]+)/.exec(c);if(x&&x[1])if(c=/Trident\/(\d.\d)/.exec(c),x[1]=="7.0")if(c&&c[1])switch(c[1]){case "4.0":B="8.0";break;case "5.0":B="9.0";break;case "6.0":B="10.0";break;case "7.0":B="11.0"}else B="7.0";else B=x[1];c=B}else c="";return c}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");x=[];for(var Y;Y=P.exec(c);)x.push([Y[1],Y[2],Y[3]||void 0]);
c=k7C(x);switch(B){case "Opera":if(NY())return c(["Version","Opera"]);if(to()?mq("Opera"):Vw("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(to()?0:Vw("Edge"))return c(["Edge"]);if(s7C())return c(["Edg"]);break;case "Chromium":if(_.lX())return c(["Chrome","CriOS","HeadlessChrome"])}return B==="Firefox"&&I7()||B==="Safari"&&_.Ol()||B==="Android Browser"&&_.p$d()||B==="Silk"&&Vw("Silk")?(c=x[2])&&c[1]||"":""};
_.$Yw=function(B){if(to()&&B!=="Silk"){var c=Cx.brands.find(function(x){return x.brand===B});
if(!c||!c.version)return NaN;c=c.version.split(".")}else{c=X$I(B);if(c==="")return NaN;c=c.split(".")}return c.length===0?NaN:Number(c[0])};
o7=function(){return qY?!!Cx&&!!Cx.platform:!1};
_.nId=function(){return o7()?Cx.platform==="Android":Vw("Android")};
bxq=function(){return Vw("iPhone")&&!Vw("iPod")&&!Vw("iPad")};
_.Qw=function(){return bxq()||Vw("iPad")||Vw("iPod")};
_.KqC=function(){return o7()?Cx.platform==="macOS":Vw("Macintosh")};
_.j7w=function(){return o7()?Cx.platform==="Windows":Vw("Windows")};
_.UYO=function(){return o7()?Cx.platform==="Chrome OS":Vw("CrOS")};
_.v$=function(B){return B[B.length-1]};
_.z7=function(B,c,x){c=_.dYQ(B,c,x);return c<0?null:typeof B==="string"?B.charAt(c):B[c]};
_.dYQ=function(B,c,x){for(var P=B.length,Y=typeof B==="string"?B.split(""):B,g=0;g<P;g++)if(g in Y&&c.call(x,Y[g],g,B))return g;return-1};
qlO=function(B){for(var c=_.Sd,x=typeof B==="string"?B.split(""):B,P=B.length-1;P>=0;P--)if(P in x&&c.call(void 0,x[P],P,B))return P;return-1};
_.Lx=function(B,c){return _.G7(B,c)>=0};
_.fx=function(B,c){_.Lx(B,c)||B.push(c)};
_.Ao=function(B,c){c=_.G7(B,c);var x;(x=c>=0)&&_.iX(B,c);return x};
_.iX=function(B,c){Array.prototype.splice.call(B,c,1)};
_.DA=function(B){var c=B.length;if(c>0){for(var x=Array(c),P=0;P<c;P++)x[P]=B[P];return x}return[]};
_.ed=function(B,c){for(var x=1;x<arguments.length;x++){var P=arguments[x];if(_.R7(P)){var Y=B.length||0,g=P.length||0;B.length=Y+g;for(var k=0;k<g;k++)B[Y+k]=P[k]}else B.push(P)}};
_.hQX=function(B,c,x,P){Array.prototype.splice.apply(B,CXO(arguments,1))};
CXO=function(B,c,x){return arguments.length<=2?Array.prototype.slice.call(B,c):Array.prototype.slice.call(B,c,x)};
YF=function(B,c){c=c||B;for(var x=0,P=0,Y={};P<B.length;){var g=B[P++],k=_.xF(g)?"o"+_.Py(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(Y,k)||(Y[k]=!0,c[x++]=g)}c.length=x};
_.mYl=function(B,c,x){x=x||_.a0;for(var P=0,Y=B.length,g;P<Y;){var k=P+(Y-P>>>1);var n=x(c,B[k]);n>0?P=k+1:(Y=k,g=!n)}return g?P:-P-1};
_.p4=function(B,c,x){if(!_.R7(B)||!_.R7(c)||B.length!=c.length)return!1;var P=B.length;x=x||TCC;for(var Y=0;Y<P;Y++)if(!x(B[Y],c[Y]))return!1;return!0};
_.a0=function(B,c){return B>c?1:B<c?-1:0};
TCC=function(B,c){return B===c};
Vdx=function(B,c,x){c=Array.prototype.splice.call(B,c,1);Array.prototype.splice.call(B,x,0,c[0])};
w$7=function(B){return tdw[B]||""};
JoA=function(B){if(!NCx)return _.kF(B);B=IAO.test(B)?B.replace(IAO,w$7):B;B=atob(B);for(var c=new Uint8Array(B.length),x=0;x<B.length;x++)c[x]=B.charCodeAt(x);return c};
WqX=function(B,c){B.__closure__error__context__984382||(B.__closure__error__context__984382={});B.__closure__error__context__984382.severity=c};
_.$F=function(B){B=Error(B);WqX(B,"warning");return B};
bt=function(B,c){if(B!=null){var x;var P=(x=lAx)!=null?x:lAx={};x=P[B]||0;x>=c||(P[B]=x+1,B=Error(),WqX(B,"incident"),P$(B))}};
U3=function(B,c,x){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(x===void 0?0:x)&&Symbol.for&&B?Symbol.for(B):B!=null?Symbol(B):Symbol():c};
T5=function(B,c){hn||_.mm in B||EIl(B,Ox7);B[_.mm]|=c};
tn=function(B,c){hn||_.mm in B||EIl(B,Ox7);B[_.mm]=c};
oIX=function(B){if(4&B)return 512&B?512:1024&B?1024:0};
w9=function(B){T5(B,34);return B};
Q7I=function(B){T5(B,32);return B};
Jn=function(){return typeof BigInt==="function"};
E3=function(B,c){return c===void 0?B.copyOnWrite!==Wy&&!!(2&(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.mm]|0)):!!(2&c)&&B.copyOnWrite!==Wy};
_.Fd=function(B,c){if(B!=null)if(typeof B==="string")B=B?new O3(B,o0):_.QW();else if(B.constructor!==O3)if(FqQ&&B!=null&&B instanceof Uint8Array)B=B.length?new O3(new Uint8Array(B),o0):_.QW();else{if(!c)throw Error();B=void 0}return B};
vy=function(B,c){if(typeof c!=="number"||c<0||c>=B.length)throw Error();};
vI7=function(B,c,x){var P=c&128?0:-1,Y=B.length,g;if(g=!!Y)g=B[Y-1],g=g!=null&&typeof g==="object"&&g.constructor===Object;var k=Y+(g?-1:0);for(c=c&128?1:0;c<k;c++)x(c-P,B[c]);if(g){B=B[Y-1];for(var n in B)!isNaN(n)&&x(+n,B[n])}};
yW=function(B){return B&128?z5:void 0};
MQ=function(B){B.isGuard_doNotManuallySetPrettyPlease=!0;return B};
SlQ=function(){var B=zQq;return MQ(function(c){for(var x in B)if(c===B[x]&&!/^[0-9]+$/.test(x))return!0;return!1})};
_.f4=function(B){var c=B;if(yox(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c));}else if(G7d(c)&&!Number.isSafeInteger(c))throw Error(String(c));return Hy?BigInt(B):B=Mdw(B)?B?"1":"0":yox(B)?B.trim()||"0":String(B)};
Lq7=function(B,c){if(B.length>c.length)return!1;if(B.length<c.length||B===c)return!0;for(var x=0;x<B.length;x++){var P=B[x],Y=c[x];if(P>Y)return!1;if(P<Y)return!0}};
Zxw=function(B){var c=B>>>0;DS=c;R0=(B-c)/4294967296>>>0};
eZ=function(B){if(B<0){Zxw(-B);var c=_.p(HxC(DS,R0));B=c.next().value;c=c.next().value;DS=B>>>0;R0=c>>>0}else Zxw(B)};
fAx=function(B,c){var x=c*4294967296+(B>>>0);return Number.isSafeInteger(x)?x:_.Bs(B,c)};
xz=function(B,c){var x=c&2147483648;x&&(B=~B+1>>>0,c=~c>>>0,B==0&&(c=c+1>>>0));B=fAx(B,c);return typeof B==="number"?x?-B:B:x?"-"+B:B};
_.Bs=function(B,c){c>>>=0;B>>>=0;if(c<=2097151)var x=""+(4294967296*c+B);else Jn()?x=""+(BigInt(c)<<BigInt(32)|BigInt(B)):(x=(B>>>24|c<<8)&16777215,c=c>>16&65535,B=(B&16777215)+x*6777216+c*6710656,x+=c*8147497,c*=2,B>=1E7&&(x+=B/1E7>>>0,B%=1E7),x>=1E7&&(c+=x/1E7>>>0,x%=1E7),x=c+ixC(x)+ixC(B));return x};
ixC=function(B){B=String(B);return"0000000".slice(B.length)+B};
_.Ps=function(B,c){c&2147483648?Jn()?B=""+(BigInt(c|0)<<BigInt(32)|BigInt(B>>>0)):(c=_.p(HxC(B,c)),B=c.next().value,c=c.next().value,B="-"+_.Bs(B,c)):B=_.Bs(B,c);return B};
Yz=function(B){if(B.length<16)eZ(Number(B));else if(Jn())B=BigInt(B),DS=Number(B&BigInt(4294967295))>>>0,R0=Number(B>>BigInt(32)&BigInt(4294967295));else{var c=+(B[0]==="-");R0=DS=0;for(var x=B.length,P=c,Y=(x-c)%6+c;Y<=x;P=Y,Y+=6)P=Number(B.slice(P,Y)),R0*=1E6,DS=DS*1E6+P,DS>=4294967296&&(R0+=Math.trunc(DS/4294967296),R0>>>=0,DS>>>=0);c&&(c=_.p(HxC(DS,R0)),B=c.next().value,c=c.next().value,DS=B,R0=c)}};
HxC=function(B,c){c=~c;B?B=~B+1:c+=1;return[B,c]};
ay=function(B){return Array.prototype.slice.call(B)};
_.kz=function(B,c){throw Error(c===void 0?"unexpected value "+B+"!":c);};
_.X6=function(B){if(B!=null&&typeof B!=="number")throw Error("I`"+typeof B+"`"+B);return B};
_.$z=function(B){if(B==null||typeof B==="number")return B;if(B==="NaN"||B==="Infinity"||B==="-Infinity")return Number(B)};
Aox=function(B){if(B!=null&&typeof B!=="boolean")throw Error("J`"+_.nA(B)+"`"+B);return B};
_.uOI=function(B){if(B==null||typeof B==="boolean")return B;if(typeof B==="number")return!!B};
_.CA=function(B){switch(typeof B){case "bigint":return!0;case "number":return dl(B);case "string":return DYC.test(B);default:return!1}};
_.TB=function(B){if(!dl(B))throw _.$F("enum");return B|0};
_.Vr=function(B){return B==null?B:dl(B)?B|0:void 0};
roC=function(B){if(typeof B!=="number")throw _.$F("int32");if(!dl(B))throw _.$F("int32");return B|0};
_.tc=function(B){return B==null?B:roC(B)};
_.wl=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return dl(B)?B|0:void 0};
_.NN=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return dl(B)?B>>>0:void 0};
cnI=function(B){var c=0;c=c===void 0?0:c;if(!_.CA(B))throw _.$F("int64");var x=typeof B;switch(c){case 512:switch(x){case "string":return Iy(B);case "bigint":return String(lz(64,B));default:return RQd(B)}case 1024:switch(x){case "string":return eQw(B);case "bigint":return _.f4(lz(64,B));default:return B97(B)}case 0:switch(x){case "string":return Iy(B);case "bigint":return _.f4(lz(64,B));default:return EF(B)}default:return _.kz(c,"Unknown format requested type for int64")}};
OF=function(B){return B==null?B:cnI(B)};
xQl=function(B){if(B[0]==="-")return!1;var c=B.length;return c<20?!0:c===20&&Number(B.substring(0,6))<184467};
Ptq=function(B){var c=B.length;return B[0]==="-"?c<20?!0:c===20&&Number(B.substring(0,7))>-922337:c<19?!0:c===19&&Number(B.substring(0,6))<922337};
Y37=function(B){if(B<0){eZ(B);var c=_.Bs(DS,R0);B=Number(c);return oy(B)?B:c}c=String(B);if(xQl(c))return c;eZ(B);return fAx(DS,R0)};
aSQ=function(B){if(Ptq(B))return B;Yz(B);return _.Ps(DS,R0)};
gFA=function(B){if(xQl(B))return B;Yz(B);return _.Bs(DS,R0)};
EF=function(B){B=Qr(B);oy(B)||(eZ(B),B=xz(DS,R0));return B};
_.s0C=function(B){B=Qr(B);return B>=0&&oy(B)?B:Y37(B)};
RQd=function(B){B=Qr(B);if(oy(B))B=String(B);else{var c=String(B);Ptq(c)?B=c:(eZ(B),B=_.Ps(DS,R0))}return B};
_.pyx=function(B){B=Qr(B);if(B>=0&&oy(B))B=String(B);else{var c=String(B);xQl(c)?B=c:(eZ(B),B=_.Bs(DS,R0))}return B};
Iy=function(B){var c=Qr(Number(B));if(oy(c))return String(c);c=B.indexOf(".");c!==-1&&(B=B.substring(0,c));return aSQ(B)};
eQw=function(B){var c=Qr(Number(B));if(oy(c))return _.f4(c);c=B.indexOf(".");c!==-1&&(B=B.substring(0,c));return Jn()?_.f4(lz(64,BigInt(B))):_.f4(aSQ(B))};
B97=function(B){return oy(B)?_.f4(EF(B)):_.f4(RQd(B))};
_.k5$=function(B){return oy(B)?_.f4(_.s0C(B)):_.f4(_.pyx(B))};
_.Xyd=function(B){var c=Qr(Number(B));if(oy(c)&&c>=0)return String(c);c=B.indexOf(".");c!==-1&&(B=B.substring(0,c));return gFA(B)};
_.$QX=function(B){var c=Qr(Number(B));if(oy(c)&&c>=0)return _.f4(c);c=B.indexOf(".");c!==-1&&(B=B.substring(0,c));return Jn()?_.f4((0,_.F6)(64,BigInt(B))):_.f4(gFA(B))};
_.nFq=function(B){if(B==null)return B;if(typeof B==="bigint")return vs(B)?B=Number(B):(B=lz(64,B),B=vs(B)?Number(B):String(B)),B;if(_.CA(B))return typeof B==="number"?EF(B):Iy(B)};
b4x=function(B,c){c=c===void 0?!1:c;var x=typeof B;if(B==null)return B;if(x==="bigint")return String(lz(64,B));if(_.CA(B))return x==="string"?Iy(B):c?RQd(B):EF(B)};
_.KmA=function(B){var c=typeof B;if(B==null)return B;if(c==="bigint")return _.f4(lz(64,B));if(_.CA(B))return c==="string"?eQw(B):B97(B)};
j0X=function(B){if(B==null)return B;var c=typeof B;if(c==="bigint")return String(lz(64,B));if(_.CA(B)){if(c==="string")return Iy(B);if(c==="number")return EF(B)}};
UQY=function(B){if(B==null)return B;var c=typeof B;if(c==="bigint")return String((0,_.F6)(64,B));if(_.CA(B)){if(c==="string")return _.Xyd(B);if(c==="number")return _.s0C(B)}};
_.zB=function(B){if(typeof B!=="string")throw Error();return B};
Si=function(B){if(B!=null&&typeof B!=="string")throw Error();return B};
_.MN=function(B){return B==null||typeof B==="string"?B:void 0};
dQ$=function(B,c,x,P){if(B!=null&&B[LA]===Z8)return B;if(!Array.isArray(B))return x?P&2?((B=c[Hs])||(B=new c,w9(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),B=c[Hs]=B),c=B):c=new c:c=void 0,c;x=B[_.mm]|0;P=x|P&32|P&2;P!==x&&tn(B,P);return new c(B)};
q3$=function(B,c,x){B=c?roC(B):_.wl(B);return B==null?x?0:void 0:B|0};
Ctw=function(B){return B};
hIX=function(B){return B};
T9l=function(B,c,x,P,Y,g){B=dQ$(B,P,x,g);Y&&(B=mQq(B));return B};
VZo=function(B){return[B,this.get(B)]};
N97=function(){return tZQ||(tZQ=new fA(w9([]),void 0,void 0,void 0,wyO))};
Ry=function(B){var c=iz(Ac);return c?B[c]:void 0};
Wmq=function(B,c){var x=x===void 0?!1:x;if(iz(ISI)&&iz(Ac)&&void 0===ISI){var P=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=P[Ac];if(!Y)return;if(Y=Y.reviveUnknownFields)try{Y(P,c,Jnq);return}catch(g){P$(g)}}x&&(B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(x=iz(Ac))&&x in B&&(B=B[x])&&delete B[c])};
EF7=function(B,c){var x=iz(Ac),P;hn&&x&&((P=B[x])==null?void 0:P[c])!=null&&bt(lSo,3)};
oF$=function(B,c){c<100||bt(O47,1)};
zIY=function(B,c,x,P){var Y=P!==void 0;P=!!P;var g=iz(Ac),k;!Y&&hn&&g&&(k=B[g])&&ei(k,oF$);g=[];var n=B.length;k=4294967295;var b=!1,d=!!(c&64),q=d?c&128?0:-1:void 0;if(!(c&1)){var C=n&&B[n-1];C!=null&&typeof C==="object"&&C.constructor===Object?(n--,k=n):C=void 0;if(d&&!(c&128)&&!Y){b=!0;var h;k=((h=Q0q)!=null?h:Ctw)(k-q,q,B,C)+q}}c=void 0;for(h=0;h<n;h++){var V=B[h];if(V!=null&&(V=x(V,P))!=null)if(d&&h>=k){var N=h-q,l=void 0;((l=c)!=null?l:c={})[N]=V}else g[h]=V}if(C)for(var E in C)n=C[E],n!=null&&
(n=x(n,P))!=null&&(h=+E,V=void 0,d&&!Number.isNaN(h)&&(V=h+q)<k?g[V]=n:(h=void 0,((h=c)!=null?h:c={})[E]=n));c&&(b?g.push(c):g[k]=c);Y&&iz(Ac)&&(B=Ry(B))&&B instanceof Fmq&&(g[Ac]=vFQ(B));return g};
S3A=function(B){B[0]=BN(B[0]);B[1]=BN(B[1]);return B};
BN=function(B){switch(typeof B){case "number":return Number.isFinite(B)?B:""+B;case "bigint":return vs(B)?Number(B):""+B;case "boolean":return B?1:0;case "object":if(Array.isArray(B)){var c=B[_.mm]|0;return B.length===0&&c&1?void 0:zIY(B,c,BN)}if(B!=null&&B[LA]===Z8)return ynC(B);if(B instanceof O3){c=B.JSC$6865_value_;if(c==null)B="";else if(typeof c==="string")B=c;else{if(NCx){for(var x="",P=0,Y=c.length-10240;P<Y;)x+=String.fromCharCode.apply(null,c.subarray(P,P+=10240));x+=String.fromCharCode.apply(null,
P?c.subarray(P):c);c=btoa(x)}else c=_.PN(c);B=B.JSC$6865_value_=c}return B}if(B instanceof fA)return B=B.size!==0?Array.from(YP.prototype.entries.call(B),S3A):void 0,B;return}return B};
aU=function(B,c){if(c){Q0q=c==null||c===Ctw||c[G5O]!==MZA?Ctw:c;try{return ynC(B)}finally{Q0q=void 0}}return ynC(B)};
ynC=function(B){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zIY(B,B[_.mm]|0,BN)};
H4x=function(B){switch(typeof B){case "boolean":return LmQ||(LmQ=[0,void 0,!0]);case "number":return B>0?void 0:B===0?Z4X||(Z4X=[0,void 0]):[-B,void 0];case "string":return[0,B];case "object":return B}};
p$=function(B,c,x){return B=_.s0(B,c[0],c[1],x?1:2)};
_.s0=function(B,c,x,P){P=P===void 0?0:P;if(B==null){var Y=32;x?(B=[x],Y|=128):B=[];c&&(Y=Y&-8380417|(c&1023)<<13)}else{if(!Array.isArray(B))throw Error("L");Y=B[_.mm]|0;2048&Y&&!(2&Y)&&fSA();if(Y&256)throw Error("N");if(Y&64)return P!==0||Y&2048||tn(B,Y|2048),B;if(x&&(Y|=128,x!==B[0]))throw Error("O");a:{x=B;Y|=64;var g=x.length;if(g){var k=g-1,n=x[k];if(n!=null&&typeof n==="object"&&n.constructor===Object){c=Y&128?0:-1;k-=c;if(k>=1024)throw Error("Q");for(var b in n)g=+b,g<k&&(x[g+c]=n[b],delete n[b]);
Y=Y&-8380417|(k&1023)<<13;break a}}if(c){b=Math.max(c,g-(Y&128?0:-1));if(b>1024)throw Error("R");Y=Y&-8380417|(b&1023)<<13}}}Y|=64;P===0&&(Y|=2048);tn(B,Y);return B};
fSA=function(){bt(i4d,5)};
DQQ=function(B,c){if(typeof B!=="object")return B;if(Array.isArray(B)){var x=B[_.mm]|0;return B.length===0&&x&1?void 0:Anw(B,x,c)}if(B!=null&&B[LA]===Z8)return ud$(B);if(B instanceof fA){c=B.arrayState;if(c&2)return B;if(!B.size)return;x=w9(Array.from(YP.prototype.entries.call(B)));if(B.valueCtor)for(B=0;B<x.length;B++){var P=x[B],Y=P[1];Y==null||typeof Y!=="object"?Y=void 0:Y!=null&&Y[LA]===Z8?Y=ud$(Y):Array.isArray(Y)?Y=Anw(Y,Y[_.mm]|0,!!(c&32)):Y=void 0;P[1]=Y}return x}if(B instanceof O3)return B};
Anw=function(B,c,x){if(c&2)return B;!x||4096&c||16&c?B=kP(B,c,!1,x&&!(c&16)):(T5(B,34),c&4&&Object.freeze(B));return B};
Xe=function(B,c,x){B=new B.constructor(c);x&&(B.copyOnWrite=Wy);B.noLegacyNull=Wy;return B};
ud$=function(B){var c=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=c[_.mm]|0;return E3(B,x)?B:$P(B,c,x)?Xe(B,c):kP(c,x)};
kP=function(B,c,x,P){P!=null||(P=!!(34&c));B=zIY(B,c,DQQ,P);P=32;x&&(P|=2);c=c&8380609|P;tn(B,c);return B};
mQq=function(B){var c=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=c[_.mm]|0;return E3(B,x)?$P(B,c,x)?Xe(B,c,!0):new B.constructor(kP(c,x,!1)):B};
n$=function(B){if(B.copyOnWrite!==Wy)return!1;var c=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=kP(c,c[_.mm]|0);T5(c,2048);B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=c;B.copyOnWrite=void 0;B.noLegacyNull=void 0;return!0};
K$=function(B){if(!n$(B)&&E3(B,B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.mm]|0))throw Error();};
dt=function(B,c){c===void 0&&(c=B[_.mm]|0);c&32&&!(c&4096)&&tn(B,c|4096)};
$P=function(B,c,x){return x&2?!0:x&32&&!(x&4096)?(tn(c,x|2),B.copyOnWrite=Wy,!0):!1};
q2=function(B,c,x,P,Y){var g=x+(Y?0:-1),k=B.length-1;if(k>=1+(Y?0:-1)&&g>=k){var n=B[k];if(n!=null&&typeof n==="object"&&n.constructor===Object)return n[x]=P,c}if(g<=k)return B[g]=P,c;if(P!==void 0){var b;k=((b=c)!=null?b:c=B[_.mm]|0)>>13&1023||536870912;x>=k?P!=null&&(g={},B[k+(Y?0:-1)]=(g[x]=P,g)):B[g]=P}return c};
_.TL=function(B,c,x,P,Y){var g=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.mm]|0;P=E3(B,k)?1:P;Y=!!Y||P===3;P===2&&n$(B)&&(g=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.mm]|0);B=rnl(g,c);var n=B===hO?7:B[_.mm]|0,b=RIQ(n,k);var d=4&b?!1:!0;if(d){4&b&&(B=ay(B),n=0,b=mG(b,k),k=q2(g,k,c,B));for(var q=0,C=0;q<B.length;q++){var h=x(B[q]);h!=null&&(B[C++]=h)}C<q&&(B.length=C);x=(b|4)&-513;b=x&=-1025;b&=-4097}b!==n&&(tn(B,b),2&b&&Object.freeze(B));return B=eIx(B,b,g,
k,c,P,d,Y)};
eIx=function(B,c,x,P,Y,g,k,n){var b=c;g===1||(g!==4?0:2&c||!(16&c)&&32&P)?Vs(c)||(c|=!B.length||k&&!(4096&c)||32&P&&!(4096&c||16&c)?2:256,c!==b&&tn(B,c),Object.freeze(B)):(g===2&&Vs(c)&&(B=ay(B),b=0,c=mG(c,P),P=q2(x,P,Y,B)),Vs(c)||(n||(c|=16),c!==b&&tn(B,c)));2&c||!(4096&c||16&c)||dt(x,P);return B};
rnl=function(B,c,x){B=tO(B,c,x);return Array.isArray(B)?B:hO};
RIQ=function(B,c){2&c&&(B|=2);return B|1};
Vs=function(B){return!!(2&B)&&!!(4&B)||!!(256&B)};
BlA=function(B){return _.Fd(B,!0)};
cc$=function(B,c){var x=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=x[_.mm]|0;a:{var Y=P;P=E3(B,P);!P&&n$(B)&&(x=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=x[_.mm]|0);var g=tO(x,c);B=!1;if(g==null){if(P){c=N97();break a}g=[]}else if(g.constructor===fA)if(g.arrayState&2&&!P)g=Array.from(YP.prototype.entries.call(g));else{c=g;break a}else Array.isArray(g)?B=!!((g[_.mm]|0)&2):g=[];if(P){if(!g.length){c=N97();break a}B||(B=!0,w9(g))}else if(B){B=!1;P=g;P=ay(P);for(g=0;g<
P.length;g++){var k=P[g]=ay(P[g]);Array.isArray(k[1])&&(k[1]=w9(k[1]))}g=P}!B&&Y&32&&Q7I(g);P=new fA(g,void 0,q3$,q3$);Y=q2(x,Y,c,P);B||dt(x,Y);c=P}return c};
_.wt=function(B,c,x,P){K$(B);var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=Y[_.mm]|0;if(x==null)return q2(Y,g,c),B;var k=x===hO?7:x[_.mm]|0,n=k,b=Vs(k),d=b||Object.isFrozen(x);b||(k=0);d||(x=ay(x),n=0,k=mG(k,g),d=!1);k|=5;var q;b=(q=oIX(k))!=null?q:0;for(q=0;q<x.length;q++){var C=x[q],h=P(C,b);Object.is(C,h)||(d&&(x=ay(x),n=0,k=mG(k,g),d=!1),x[q]=h)}k!==n&&(d&&(x=ay(x),k=mG(k,g)),tn(x,k));q2(Y,g,c,x);return B};
_.N2=function(B,c,x,P,Y){K$(B);var g=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q2(g,g[_.mm]|0,c,(P==="0"?Number(x)===0:x===P)?void 0:x,Y);return B};
_.IU=function(B,c,x){if(c&2)throw Error();var P=yW(c),Y=rnl(B,x,P),g=Y===hO?7:Y[_.mm]|0,k=RIQ(g,c);if(2&k||Vs(k)||16&k)Y=ay(Y),g=0,k=mG(k,c),q2(B,c,x,Y,P);k&=-13;k!==g&&tn(Y,k);return Y};
xNx=function(B){if(hn){var c;return(c=B[JO])!=null?c:B[JO]=new Map}if(JO in B)return B[JO];c=new Map;Object.defineProperty(B,JO,{value:c});return c};
YFd=function(B,c,x,P,Y){var g=xNx(B),k=Pzq(g,B,c,x,Y);k!==P&&(k&&(c=q2(B,c,k,void 0,Y)),g.set(x,P));return c};
Pzq=function(B,c,x,P,Y){var g=B.get(P);if(g!=null)return g;for(var k=g=0;k<P.length;k++){var n=P[k];tO(c,n,Y)!=null&&(g!==0&&(x=q2(c,x,g,void 0,Y)),g=n)}B.set(P,g);return g};
WN=function(B,c,x,P,Y){var g=!1;P=tO(B,P,Y,function(k){var n=dQ$(k,x,!1,c);g=n!==k&&n!=null;return n});
if(P!=null)return g&&!E3(P)&&dt(B,c),P};
a8I=function(B,c,x,P,Y,g,k,n){var b=E3(B,x);g=b?1:g;k=!!k||g===3;b=n&&!b;(g===2||b)&&n$(B)&&(c=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=c[_.mm]|0);B=rnl(c,Y);var d=B===hO?7:B[_.mm]|0,q=RIQ(d,x);if(n=!(4&q)){var C=B,h=x,V=!!(2&q);V&&(h|=2);for(var N=!V,l=!0,E=0,S=0;E<C.length;E++){var M=dQ$(C[E],P,!1,h);if(M instanceof P){if(!V){var f=E3(M);N&&(N=!f);l&&(l=f)}C[S++]=M}}S<E&&(C.length=S);q|=4;q=l?q&-4097:q|4096;q=N?q|8:q&-9}q!==d&&(tn(B,q),2&q&&Object.freeze(B));if(b&&!(8&q||!B.length&&
(g===1||(g!==4?0:2&q||!(16&q)&&32&x)))){Vs(q)&&(B=ay(B),q=mG(q,x),x=q2(c,x,Y,B));P=B;b=q;for(d=0;d<P.length;d++)C=P[d],q=mQq(C),C!==q&&(P[d]=q);b|=8;q=b=P.length?b|4096:b&-4097;tn(B,q)}return B=eIx(B,q,c,x,Y,g,n,k)};
gzQ=function(B){B==null&&(B=void 0);return B};
mG=function(B,c){return B=(2&c?B|2:B&-3)&-273};
_.syC=function(B,c,x,P,Y){K$(B);c=_.TL(B,c,Y,2,!0);var g;Y=(g=oIX(c===hO?7:c[_.mm]|0))!=null?g:0;c.push(x(P,Y));return B};
psC=function(B,c,x,P,Y,g,k){K$(B);var n=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=a8I(B,n,n[_.mm]|0,x,c,2,!0);if(g&&k)Y!=null||(Y=B.length-1),vy(B,Y),B.splice(Y,g),B.length||(B[_.mm]&=-4097);else{if(g){if(typeof Y!=="number"||Y<0||Y>B.length)throw Error();}else P=P!=null?P:new x;Y!=void 0?B.splice(Y,g,P):B.push(P);Y=x=B===hO?7:B[_.mm]|0;(P=E3(P))?(x&=-9,B.length===1&&(x&=-4097)):x|=4096;x!==Y&&tn(B,x);P||dt(n)}};
kBO=function(B,c){if(typeof B==="string")return new E0(JoA(B),c);if(Array.isArray(B))return new E0(new Uint8Array(B),c);if(B.constructor===Uint8Array)return new E0(B,!1);if(B.constructor===ArrayBuffer)return B=new Uint8Array(B),new E0(B,!1);if(B.constructor===O3)return c=O0(B)||new Uint8Array(0),new E0(c,!0,B);if(B instanceof Uint8Array)return B=B.constructor===Uint8Array?B:new Uint8Array(B.buffer,B.byteOffset,B.byteLength),new E0(B,!1);throw Error();};
oU=function(){var B=function(){throw Error();};
Object.setPrototypeOf(B,B.prototype);return B};
$Nw=function(B,c){var x=x===void 0?XsY:x;return new Qs(B,c,x)};
jy7=function(B,c,x,P,Y){c=nz7(c,P);c!=null&&(x=_.bA7(B,x),Y(c,B),_.Kod(B,x))};
vN=function(B,c,x,P){var Y=P[B];if(Y)return Y;Y={};Y.binaryFields=P;Y.messageMetadata=H4x(P[0]);var g=P[1],k=1;g&&g.constructor===Object&&(Y.extensions=g,g=P[++k],typeof g==="function"&&(Y.isMessageSet=!0,UNO!=null||(UNO=g),dNO!=null||(dNO=P[k+1]),g=P[k+=2]));for(var n={};g&&Array.isArray(g)&&g.length&&typeof g[0]==="number"&&g[0]>0;){for(var b=0;b<g.length;b++)n[g[b]]=g;g=P[++k]}for(b=1;g!==void 0;){typeof g==="number"&&(b+=g,g=P[++k]);var d=void 0;if(g instanceof Qs)var q=g;else q=qFY,k--;g=void 0;
if((g=q)==null?0:g.$$isMsg){g=P[++k];d=P;var C=k;typeof g==="function"&&(g=g(),d[C]=g);d=g}g=P[++k];C=b+1;typeof g==="number"&&g<0&&(C-=g,g=P[++k]);for(;b<C;b++){var h=n[b];d?x(Y,b,q,d,h):c(Y,b,q,h)}}return P[B]=Y};
hSA=function(B){return Array.isArray(B)?B[0]instanceof Qs?B:[Cz$,B]:[B,void 0]};
nz7=function(B,c){if(B instanceof _.zL)return B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(B))return p$(B,c,!1)};
mNC=function(B,c,x,P){var Y=x.$$binaryReaderFn;B[c]=P?function(g,k,n){return Y(g,k,n,P)}:Y};
Tlo=function(B,c,x,P,Y){var g=x.$$binaryReaderFn,k,n;B[c]=function(b,d,q){return g(b,d,q,n||(n=vN(SJ,mNC,Tlo,P).messageMetadata),k||(k=Vi7(P)),Y)}};
Vi7=function(B){var c=B[tiq];if(c!=null)return c;var x=vN(SJ,mNC,Tlo,B);c=x.isMessageSet?function(P,Y){return UNO(P,Y,x)}:function(P,Y){for(;wso(Y)&&Y.nextWireType_!=4;){var g=Y.nextField_,k=x[g];
if(k==null){var n=x.extensions;n&&(n=n[g])&&(n=NlO(n),n!=null&&(k=x[g]=n))}if(k==null||!k(Y,P,g)){n=Y;k=n.fieldCursor_;ys(n);if(n.discardUnknownFields)var b=void 0;else{var d=n.decoder_.cursor_-k;n.decoder_.cursor_=k;b=I8w(n.decoder_,d)}d=n=k=void 0;var q=P;b&&((k=(n=(d=q[Ac])!=null?d:q[Ac]=new Fmq)[g])!=null?k:n[g]=[]).push(b)}}if(P=Ry(P))P.reviveUnknownFields=x.binaryFields[Jc7];return!0};
B[tiq]=c;B[Jc7]=WoO.bind(B);return c};
WoO=function(B,c,x,P){var Y=this[SJ],g=this[tiq],k=p$(void 0,Y.messageMetadata,!1),n=Ry(B);if(n){var b=!1,d=Y.extensions;if(d){Y=function(N,l,E){if(E.length!==0)if(d[l])for(N=_.p(E),l=N.next();!l.done;l=N.next()){l=l8x(l.value);try{b=!0,g(k,l)}finally{l.free()}}else P==null||P(B,l,E)};
if(c==null)ei(n,Y);else if(n!=null){var q=n[c];q&&Y(n,c,q)}if(b){var C=B[_.mm]|0;if(C&2&&C&2048&&(x==null||!x.reviveIntoImmutable))throw Error();var h=yW(C),V=function(N,l){if(tO(B,N,h)!=null)switch(x==null?void 0:x.resolutionBehavior){case 1:return;default:throw Error();}l!=null&&(C=q2(B,C,N,l,h));delete n[N]};
c==null?vI7(k,k[_.mm]|0,function(N,l){V(N,l)}):V(c,tO(k,c,h))}}}};
NlO=function(B){B=hSA(B);var c=B[0].$$binaryReaderFn;if(B=B[1]){var x=Vi7(B),P=vN(SJ,mNC,Tlo,B).messageMetadata;return function(Y,g,k){return c(Y,g,k,P,x)}}return c};
GL=function(B,c,x){B[c]=x.$$binaryWriterFn};
L$=function(B,c,x,P){var Y,g,k=x.$$binaryWriterFn;B[c]=function(n,b,d){return k(n,b,d,g||(g=vN(M2,GL,L$,P).messageMetadata),Y||(Y=Ezo(P)))}};
Ezo=function(B){var c=B[OAw];if(!c){var x=vN(M2,GL,L$,B);c=function(P,Y){return ozQ(P,Y,x)};
B[OAw]=c}return c};
ozQ=function(B,c,x){vI7(B,B[_.mm]|0,function(P,Y){if(Y!=null){var g=Qyd(x,P);g?g(c,Y,P):P<500||bt(FoX,3)}});
(B=Ry(B))&&ei(B,function(P,Y,g){Zm(c,c.encoder_.end());for(P=0;P<g.length;P++)Zm(c,O0(g[P])||new Uint8Array(0))})};
Qyd=function(B,c){var x=B[c];if(x)return x;if(x=B.extensions)if(x=x[c]){x=hSA(x);var P=x[0].$$binaryWriterFn;if(x=x[1]){var Y=Ezo(x),g=vN(M2,GL,L$,x).messageMetadata;x=B.isMessageSet?dNO(g,Y):function(k,n,b){return P(k,n,b,g,Y)}}else x=P;
return B[c]=x}};
_.vzX=function(B,c,x){if(Array.isArray(c)){var P=c[_.mm]|0;if(P&4)return c;for(var Y=0,g=0;Y<c.length;Y++){var k=B(c[Y]);k!=null&&(c[g++]=k)}g<Y&&(c.length=g);x&&(tn(c,(P|5)&-1537),P&2&&Object.freeze(c));return c}};
_.HN=function(B,c,x){return new Qs(B,c,x)};
_.zSI=function(B,c,x){return new Qs(B,c,x)};
_.f$=function(B,c,x){q2(B,B[_.mm]|0,c,x,yW(B[_.mm]|0))};
SFA=function(B,c,x){c=_.$z(c);c!=null&&(_.AO(B,x,1),B=B.encoder_,x=um||(um=new DataView(new ArrayBuffer(8))),x.setFloat64(0,+c,!0),DS=x.getUint32(0,!0),R0=x.getUint32(4,!0),_.Dm(B,DS),_.Dm(B,R0))};
_.rt=function(B,c,x){c=j0X(c);if(c!=null){switch(typeof c){case "string":ycI(c)}if(c!=null)switch(_.AO(B,x,0),typeof c){case "number":B=B.encoder_;eZ(c);GB7(B,DS,R0);break;case "bigint":x=BigInt.asUintN(64,c);x=new MiY(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));GB7(B.encoder_,x.JSC$6909_lo,x.JSC$6909_hi);break;default:x=ycI(c),GB7(B.encoder_,x.JSC$6909_lo,x.JSC$6909_hi)}}};
ZAO=function(B,c,x){c=_.wl(c);c!=null&&c!=null&&(_.AO(B,x,0),_.Loq(B.encoder_,c))};
_.f87=function(B,c,x){HAx(B,x,UQY(c))};
_.iAl=function(B,c,x){c=_.uOI(c);c!=null&&(_.AO(B,x,0),B.encoder_.JSC$6911_buffer_.push(c?1:0))};
_.DNA=function(B,c,x){c=_.MN(c);c!=null&&u6q(B,x,Yll(c))};
rcI=function(B,c,x,P,Y){c=nz7(c,P);c!=null&&(x=_.bA7(B,x),Y(c,B),_.Kod(B,x))};
_.RS7=function(B,c,x){c=c==null||typeof c=="string"||c instanceof O3?c:void 0;c!=null&&u6q(B,x,kBO(c,!0).buffer)};
_.eSw=function(B,c,x){c=_.wl(c);c!=null&&(c=parseInt(c,10),_.AO(B,x,0),_.Loq(B.encoder_,c))};
_.RU=function(B,c){return function(x,P){var Y={treatNewDataAsImmutable:!0};P&&Object.assign(Y,P);x=l8x(x,void 0,void 0,Y);try{var g=new B,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Vi7(c)(k,x);var n=g}finally{x.free()}return n}};
_.eJ=function(B){return function(c){return BtY(c,B)}};
cOl=function(B){return function(){return BtY(this,B)}};
_.Ba=function(B){return MQ(function(c){return c instanceof B&&!E3(c)})};
_.ca=function(B){return function(c){return x2l(B,c)}};
gPX=function(B,c){return Pmd({child:B,origin:c||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Y0d,getPayloadCase:function(x){return x.getPayloadCase()},
createInitMessage:function(x){var P=new xX,Y=new amC;x=_.Pa(Y,1,x);return _.YX(P,5,aW,x)}})};
g8=function(B){return{valueOf:B}.valueOf()};
pNx=function(){var B=null;if(!sUq)return B;try{var c=function(x){return x};
B=sUq.createPolicy("goog#html",{createHTML:c,createScript:c,createScriptURL:c})}catch(x){}return B};
XNo=function(){kL7===void 0&&(kL7=pNx());return kL7};
_.kX=function(B){var c=XNo();B=c?c.createScriptURL(B):B;return new p6(B)};
_.X_=function(B){if(B instanceof p6)return B.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.$X=function(B){return Object.isFrozen(B)&&Object.isFrozen(B.raw)};
n6=function(B){return B.toString().indexOf("`")===-1};
K6=function(B){return new _.bV($2o,B)};
jT=function(B){return B instanceof _.bV};
_.UG=function(B){if(jT(B))return B.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
qg=function(B){return new nPd(function(c){return c.substr(0,B.length+1).toLowerCase()===B+":"})};
C6=function(B,c){c=c===void 0?b$7:c;if(jT(B))return B;for(var x=0;x<c.length;++x){var P=c[x];if(P instanceof nPd&&P.isValid(B))return K6(B)}};
_.Tz=function(B,c){c=c===void 0?b$7:c;return C6(B,c)||m7};
_.Vc=function(B){var c=window;if(typeof MediaSource!=="undefined"&&B instanceof MediaSource||typeof c.ManagedMediaSource!=="undefined"&&B instanceof c.ManagedMediaSource)return K6(URL.createObjectURL(B));c=B.type;c.toLowerCase()==="application/octet-stream"?c=!0:(c=c.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),c=(c==null?void 0:c.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(c[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(c[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(c[1])||/^font\/[\w-]+$/i.test(c[1])));if(!c)throw Error("da");return K6(URL.createObjectURL(B))};
_.w8=function(B){for(var c=_.ts.apply(1,arguments),x=[B[0]],P=0;P<c.length;P++)x.push(String(c[P])),x.push(B[P+1]);return K6(x.join(""))};
_.jUd=function(B){if(!KGx){a:{var c=document.createElement("a");try{c.href=B}catch(x){B=void 0;break a}B=c.protocol;B=B===":"||B===""?"https:":B}return B}try{c=new URL(B)}catch(x){return"https:"}return c.protocol};
_.Ng=function(B){B instanceof _.bV?B=_.UG(B):B=U2Y.test(B)?B:void 0;return B};
IW=function(B,c){c=_.Ng(c);c!==void 0&&(B.href=c)};
Wa=function(B){var c=XNo();B=c?c.createHTML(B):B;return new Js(B)};
lV=function(B){if(B instanceof Js)return B.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.EG=function(B,c){B.src=_.X_(c).toString()};
d2O=function(B,c){B.setAttribute("sandbox","");for(var x=0;x<c.length;x++)B.sandbox.supports&&!B.sandbox.supports(c[x])||B.sandbox.add(c[x])};
_.q07=function(B,c,x){B.removeAttribute("srcdoc");switch(c){case 0:if(x instanceof p6)throw new OG("TrustedResourceUrl",0);d2O(B,[]);c=_.Ng(x);c!==void 0&&(B.src=c);break;case 1:if(!(x instanceof p6))throw new OG(typeof x,1);d2O(B,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.EG(B,x);break;case 2:if(x instanceof p6)throw new OG("TrustedResourceUrl",2);d2O(B,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
c=_.Ng(x);c!==void 0&&(B.src=c);break;default:_.kz(c)}};
_.oW=function(B,c,x,P){c=_.Ng(c);return c!==void 0?B.open(c,x,P):null};
_.F_=function(B){B=B===void 0?document:B;var c,x;B=(x=(c=B).querySelector)==null?void 0:x.call(c,"script[nonce]");return B==null?"":B.nonce||B.getAttribute("nonce")||""};
_.ST=function(B){var c=XNo();B=c?c.createScript(B):B;return new _.zz(B)};
yc=function(B){if(B instanceof _.zz)return B.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
CmY=function(B){var c=_.F_(B.ownerDocument);c&&B.setAttribute("nonce",c)};
_.Gz=function(B,c){B.textContent=yc(c);CmY(B)};
_.Mg=function(B,c){B.src=_.X_(c);CmY(B)};
_.L6=function(B,c){if(B.nodeType===1&&/^(script|style)$/i.test(B.tagName))throw Error("da");B.innerHTML=lV(c)};
_.Zz=function(B,c,x,P){if(B.length===0)throw Error("da");B=B.map(function(g){if(g instanceof h9I)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return g});
var Y=x.toLowerCase();if(B.every(function(g){return Y.indexOf(g)!==0}))throw Error("fa`"+x);
c.setAttribute(x,P)};
_.Ha=function(B,c,x){if(c instanceof p6)B.href=_.X_(c).toString(),B.rel=x;else{if(m2Y.indexOf(x)===-1)throw Error("ga`"+x);c=_.Ng(c);c!==void 0&&(B.href=c,B.rel=x)}};
Tto=function(B){return"function"==typeof _.f6&&B instanceof _.f6};
_.VJY=function(B){if(Tto(B))return B.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.iV=function(B,c){c=_.Ng(c);c!==void 0&&(B.href=c)};
As=function(B,c){B&&(c=B.indexOf(c),0<=c&&B.splice(c,1))};
uV=function(B){return typeof B==="function"};
tJq=function(B){return B instanceof Dz||B&&"closed"in B&&uV(B.remove)&&uV(B.add)&&uV(B.unsubscribe)};
r8=function(){};
RW=function(B){wNI(function(){throw B;})};
cF=function(B){return B};
xM=function(){return NtQ(_.ts.apply(0,arguments))};
NtQ=function(B){return B.length===0?cF:B.length===1?B[0]:function(c){return B.reduce(function(x,P){return P(x)},c)}};
ImY=function(B){var c;return(c=B!=null?B:void 0)!=null?c:Promise};
JOl=function(B,c){return new PF(function(x){var P=0;return c.schedule(function(){P===B.length?x.complete():(x.next(B[P++]),x.closed||this.schedule())})})};
WGo=function(B,c){if(!B)throw Error("ha");return new PF(function(x){var P=new Dz;P.add(c.schedule(function(){var Y=B[Symbol.asyncIterator]();P.add(c.schedule(function(){var g=this;Y.next().then(function(k){k.done?x.complete():(x.next(k.value),g.schedule())})}))}));
return P})};
lmd=function(B,c,x){c=c.schedule(function(){try{x.call(this)}catch(P){B.error(P)}},0);
B.add(c)};
EP7=function(B,c){return new PF(function(x){var P;x.add(c.schedule(function(){P=B[YM]();lmd(x,c,function(){var Y=P.next(),g=Y.value;Y.done?x.complete():(x.next(g),this.schedule())})}));
return function(){var Y;return uV((Y=P)==null?void 0:Y.return)&&P.return()}})};
O$Y=function(B,c){return new PF(function(x){var P=new Dz;P.add(c.schedule(function(){var Y=B[ad]();P.add(Y.subscribe({next:function(g){P.add(c.schedule(function(){return x.next(g)}))},
error:function(g){P.add(c.schedule(function(){return x.error(g)}))},
complete:function(){P.add(c.schedule(function(){return x.complete()}))}}))}));
return P})};
oPw=function(B,c){return new PF(function(x){return c.schedule(function(){return B.then(function(P){x.add(c.schedule(function(){x.next(P);x.add(c.schedule(function(){return x.complete()}))}))},function(P){x.add(c.schedule(function(){return x.error(P)}))})})})};
QU$=function(B){return new TypeError("ia`"+(B!==null&&typeof B==="object"?"an invalid object":"'"+B+"'"))};
vPw=function(B,c){if(B!=null){if(uV(B[ad]))return O$Y(B,c);if(FGX(B))return JOl(B,c);if(uV(B==null?void 0:B.then))return oPw(B,c);if(Symbol.asyncIterator&&uV(B==null?void 0:B[Symbol.asyncIterator]))return WGo(B,c);if(uV(B==null?void 0:B[YM]))return EP7(B,c)}throw QU$(B);};
pq=function(B,c){return c?vPw(B,c):gq(B)};
gq=function(B){if(B instanceof PF)return B;if(B!=null){if(uV(B[ad]))return z9O(B);if(FGX(B))return S0l(B);if(uV(B==null?void 0:B.then))return yO$(B);if(Symbol.asyncIterator&&uV(B==null?void 0:B[Symbol.asyncIterator]))return GLx(B);if(uV(B==null?void 0:B[YM]))return MJY(B)}throw QU$(B);};
z9O=function(B){return new PF(function(c){var x=B[ad]();if(uV(x.subscribe))return x.subscribe(c);throw new TypeError("ja");})};
S0l=function(B){return new PF(function(c){for(var x=0;x<B.length&&!c.closed;x++)c.next(B[x]);c.complete()})};
yO$=function(B){return new PF(function(c){B.then(function(x){c.closed||(c.next(x),c.complete())},function(x){return c.error(x)}).then(null,RW)})};
MJY=function(B){return new PF(function(c){for(var x=B[YM]();!c.closed;){var P=x.next(),Y=P.value;P.done?c.complete():c.next(Y)}return function(){return uV(x==null?void 0:x.return)&&x.return()}})};
GLx=function(B){return new PF(function(c){LGA(B,c).catch(function(x){return c.error(x)})})};
LGA=function(B,c){var x,P,Y,g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:_.kM(b,2,3);var d=B[Symbol.asyncIterator];g=d!==void 0?d.call(B):new Z$o(_.p(B));case 5:return _.K(b,g.next(),8);case 8:P=b.yieldResult;if(P.done){b.jumpTo(3);break}k=P.value;c.next(k);b.jumpTo(5);break;case 3:_.Xt(b);_.$M(b,9);if(!P||P.done||!(Y=g.return)){b.jumpTo(9);break}return _.K(b,Y.call(g),9);case 9:_.Xt(b,0,0,1);if(x)throw x.error;_.nq(b,10,1);break;case 10:_.nq(b,4);break;case 2:n=_.be(b);x={error:n};b.jumpTo(3);
break;case 4:c.complete(),_.Kq(b)}})};
jx=function(B,c){return c?JOl(B,c):S0l(B)};
H$O=function(B){return uV(B[B.length-1])?B.pop():void 0};
UI=function(B){var c=B[B.length-1];return c&&uV(c.schedule)?B.pop():void 0};
dq=function(){var B=_.ts.apply(0,arguments),c=UI(B);return c?JOl(B,c):jx(B)};
q8=function(B){var c=uV(B)?B:function(){return B};
return new PF(function(x){return x.error(c())})};
Cq=function(B){return function(c){if(uV(c==null?void 0:c.lift))return c.lift(function(x){try{return B(x,this)}catch(P){this.error(P)}});
throw new TypeError("ka");}};
Vd=function(){return Cq(function(B,c){var x=null;B._refCount++;var P=new TE(c,void 0,void 0,void 0,function(){if(!B||B._refCount<=0||0<--B._refCount)x=null;else{var Y=B._connection,g=x;x=null;!Y||g&&Y!==g||Y.unsubscribe();c.unsubscribe()}});
B.subscribe(P);P.closed||(x=B.connect())})};
i$q=function(){var B=fmX;var c=c===void 0?0:c;return Cq(function(x,P){P.add(B.schedule(function(){return x.subscribe(P)},c))})};
t0=function(B){return Cq(function(c,x){var P=0;c.subscribe(new TE(x,function(Y){x.next(B.call(void 0,Y,P++))}))})};
ue7=function(B){return t0(function(c){return AOQ(c)?B.apply(null,_.wq(c)):B(c)})};
B8Y=function(B){if(B.length===1){var c=B[0];if(D2$(c))return{args:c,keys:null};if(c&&typeof c==="object"&&rOO(c)===R9x)return B=e9x(c),{args:B.map(function(x){return c[x]}),
keys:B}}return{args:B,keys:null}};
N8=function(){var B=_.ts.apply(0,arguments),c=UI(B),x=H$O(B);B=B8Y(B);var P=B.args,Y=B.keys;if(P.length===0)return pq([],c);c=new PF(csC(P,c,Y?function(g){for(var k={},n=0;n<g.length;n++)k[Y[n]]=g[n];return k}:cF));
return x?c.pipe(ue7(x)):c};
csC=function(B,c,x){x=x===void 0?cF:x;return function(P){xg$(c,function(){for(var Y=B.length,g=Array(Y),k=Y,n=B.map(function(){return!1}),b=!0,d={i$jscomp$216:0};d.i$jscomp$216<Y;d={i$jscomp$216:d.i$jscomp$216},d.i$jscomp$216++)xg$(c,function(q){return function(){pq(B[q.i$jscomp$216],c).subscribe(new Id(P,function(C){g[q.i$jscomp$216]=C;
b&&(n[q.i$jscomp$216]=!0,b=!n.every(cF));b||P.next(x(g.slice()))},function(){return--k===0}))}}(d),P)},P)}};
xg$=function(B,c,x){B?x.add(B.schedule(c)):c()};
PVl=function(B,c,x,P){var Y=[],g=0,k=0,n=!1,b=function(d){g++;gq(x(d,k++)).subscribe(new TE(c,function(q){c.next(q)},void 0,function(){g--;
for(var q={};Y.length&&g<P;q={bufferedValue:void 0})q.bufferedValue=Y.shift(),b(q.bufferedValue);!n||Y.length||g||c.complete()}))};
B.subscribe(new TE(c,function(d){return g<P?b(d):Y.push(d)},void 0,function(){n=!0;
!n||Y.length||g||c.complete()}));
return function(){Y=null}};
J0=function(B,c){var x=x===void 0?Infinity:x;if(uV(c))return J0(function(P,Y){return t0(function(g,k){return c(P,g,Y,k)})(gq(B(P,Y)))},x);
typeof c==="number"&&(x=c);return Cq(function(P,Y){return PVl(P,Y,B,x)})};
YGI=function(B){B=B===void 0?Infinity:B;return J0(cF,B)};
az7=function(){var B=_.ts.apply(0,arguments);return YGI(1)(jx(B,UI(B)))};
WF=function(B){return new PF(function(c){gq(B()).subscribe(c)})};
le=function(B,c,x){if(uV(x)){var P=x;x=void 0}if(P)return le(B,c,x).pipe(ue7(P));P=_.p(uV(B.addEventListener)&&uV(B.removeEventListener)?gXd.map(function(k){return function(n){return B[k](c,n,x)}}):uV(B.addListener)&&uV(B.removeListener)?sW7.map(paQ(B,c)):uV(B.on)&&uV(B.off)?kzo.map(paQ(B,c)):[]);
var Y=P.next().value,g=P.next().value;return!Y&&FGX(B)?J0(function(k){return le(k,c,x)})(jx(B)):new PF(function(k){if(!Y)throw new TypeError("la");
var n=function(){var b=_.ts.apply(0,arguments);return k.next(1<b.length?b:b[0])};
Y(n);return function(){return g(n)}})};
paQ=function(B,c){return function(x){return function(P){return B[x](c,P)}}};
OI=function(){var B=_.ts.apply(0,arguments),c=UI(B);var x=typeof B[B.length-1]==="number"?B.pop():Infinity;return B.length?B.length===1?gq(B[0]):YGI(x)(jx(B,c)):EI};
$g7=function(B){return B.length===1&&Xaq(B[0])?B[0]:B};
nX7=function(){var B=$g7(_.ts.apply(0,arguments));return Cq(function(c,x){var P=[c].concat(_.wq(B)),Y=function(){if(!x.closed)if(P.length>0){try{var g=gq(P.shift())}catch(n){Y();return}var k=new TE(x,void 0,r8,r8);x.add(g.subscribe(k));k.add(Y)}else x.complete()};
Y()})};
od=function(B){return Cq(function(c,x){var P=0;c.subscribe(new TE(x,function(Y){return B.call(void 0,Y,P++)&&x.next(Y)}))})};
K7Y=function(){var B=_.ts.apply(0,arguments);B=$g7(B);return B.length===1?gq(B[0]):new PF(b6$(B))};
b6$=function(B){return function(c){for(var x=[],P={i$jscomp$219:0};x&&!c.closed&&P.i$jscomp$219<B.length;P={i$jscomp$219:P.i$jscomp$219},P.i$jscomp$219++)x.push(gq(B[P.i$jscomp$219]).subscribe(new TE(c,function(Y){return function(g){if(x){for(var k=0;k<x.length;k++)k!==Y.i$jscomp$219&&x[k].unsubscribe();x=null}c.next(g)}}(P))))}};
jWq=function(){var B=_.ts.apply(0,arguments),c=H$O(B),x=$g7(B);return x.length?new PF(function(P){var Y=x.map(function(){return[]}),g=x.map(function(){return!1});
P.add(function(){Y=g=null});
for(var k={sourceIndex$jscomp$1:0};!P.closed&&k.sourceIndex$jscomp$1<x.length;k={sourceIndex$jscomp$1:k.sourceIndex$jscomp$1},k.sourceIndex$jscomp$1++)gq(x[k.sourceIndex$jscomp$1]).subscribe(new TE(P,function(n){return function(b){Y[n.sourceIndex$jscomp$1].push(b);Y.every(function(d){return d.length})&&(b=Y.map(function(d){return d.shift()}),P.next(c?c.apply(null,_.wq(b)):b),Y.some(function(d,q){return!d.length&&g[q]})&&P.complete())}}(k),void 0,function(n){return function(){g[n.sourceIndex$jscomp$1]=
!0;
!Y[n.sourceIndex$jscomp$1].length&&P.complete()}}(k)));
return function(){Y=g=null}}):EI};
UgI=function(B){var c,x,P;return!!B&&typeof B.active==="boolean"&&typeof((c=B.clock)==null?void 0:c.now)==="function"&&((x=B.clock)==null?void 0:x.timeline)!==void 0&&!((P=B.lastMeasurement)==null||!P.timestamp)&&typeof B.equivalentTo==="function"&&typeof B.extrapolateToNow==="function"&&typeof B.extrapolateToTime==="function"&&typeof B.map==="function"&&typeof B.joinWith==="function"};
dgl=function(B){function c(x){return typeof x==="boolean"||typeof x==="string"||typeof x==="number"||x===void 0||x===null}
return c(B)?!0:Array.isArray(B)?B.every(c):typeof B==="object"?Object.keys(B).every(function(x){return typeof x==="string"})&&Object.values(B).every(function(x){return Array.isArray(x)?x.every(c):c(x)}):!1};
qGd=function(B){if(dgl(B))return B;if(UgI(B))return{lastMeasurement:{value:qGd(B.lastMeasurement.value),timestamp:Qd(B.lastMeasurement.timestamp,new vF(0,B.lastMeasurement.timestamp.timeline))},active:B.active};try{return JSON.parse(JSON.stringify(B))}catch(c){}return String(B)};
zE=function(B,c){return function(x){return new PF(function(P){return x.subscribe(function(Y){B.timeExecution(c,function(){P.next(Y)})()},function(Y){B.timeExecution(c,function(){P.error(Y)})()},function(){B.timeExecution(c,function(){P.complete()})()})})}};
CV$=function(B,c){var x=!1;return new PF(function(P){var Y=B.setTimeout(function(){x=!0;P.next(!0);P.complete()},c);
return function(){x||B.clearTimeout(Y)}})};
hPw=function(B){B=B.global;if(B.fetchLater)return B.fetchLater.bind(B)};
Sx=function(B){return Cq(function(c,x){var P=null,Y=!1,g;P=c.subscribe(new TE(x,void 0,function(k){g=gq(B(k,Sx(B)(c)));P?(P.unsubscribe(),P=null,g.subscribe(x)):Y=!0}));
Y&&(P.unsubscribe(),P=null,g.subscribe(x))})};
mgO=function(B,c,x){return function(P,Y){var g=x,k=c,n=0;P.subscribe(new TE(Y,function(b){var d=n++;k=g?B(k,b,d):(g=!0,b);Y.next(k)},void 0,void 0))}};
T8O=function(B){B=B===void 0?null:B;return Cq(function(c,x){var P=!1;c.subscribe(new TE(x,function(Y){P=!0;x.next(Y)},void 0,function(){P||x.next(B);
x.complete()}))})};
yd=function(){return Cq(function(B,c){B.subscribe(new TE(c,r8))})};
GE=function(B){return Cq(function(c,x){c.subscribe(new TE(x,function(){return x.next(B)}))})};
Lq=function(B){return B<=0?function(){return EI}:Cq(function(c,x){var P=0;
c.subscribe(new TE(x,function(Y){++P<=B&&(x.next(Y),B<=P&&x.complete())}))})};
ZK=function(B){var c=c===void 0?cF:c;var x;B=(x=B)!=null?x:VT7;return Cq(function(P,Y){var g,k=!0;P.subscribe(new TE(Y,function(n){var b=c(n);if(k||!B(g,b))k=!1,g=b,Y.next(n)}))})};
VT7=function(B,c){return B===c};
waq=function(B){B=B===void 0?tTl:B;return Cq(function(c,x){var P=!1;c.subscribe(new TE(x,function(Y){P=!0;x.next(Y)},void 0,function(){return P?x.complete():x.error(B())}))})};
tTl=function(){return new N8$};
HF=function(){var B=_.ts.apply(0,arguments);return function(c){return az7(c,dq.apply(null,_.wq(B)))}};
Iz7=function(B){return Cq(function(c,x){var P=0;c.subscribe(new TE(x,function(Y){B.call(void 0,Y,P++,c)||(x.next(!1),x.complete())},void 0,function(){x.next(!0);
x.complete()}))})};
Jsw=function(){return Cq(function(B,c){var x=[];B.subscribe(new TE(c,function(P){x.push(P);1<x.length&&x.shift()},void 0,function(){for(var P=_.p(x),Y=P.next();!Y.done;Y=P.next())c.next(Y.value);
c.complete()},function(){x=null}))})};
W7d=function(B,c){var x=arguments.length>=2;return function(P){return P.pipe(B?od(function(Y,g){return B(Y,g,P)}):cF,Jsw(),x?T8O(c):waq(function(){return new N8$}))}};
ie=function(B){var c=uV(B)?B:function(){return B};
return uV()?Cq(function(x,P){var Y=c();(void 0)(Y).subscribe(P).add(x.subscribe(Y))}):function(x){var P=new fq(x,c);
uV(x==null?void 0:x.lift)&&(P.lift=x.lift);P.source=x;P.subjectFactory=c;return P}};
ue=function(B){var c=new A0(B,void 0,void 0);return function(x){return ie(function(){return c})(x)}};
DK=function(B,c){return Cq(mgO(B,c,arguments.length>=2))};
rq=function(){var B=_.ts.apply(0,arguments),c=UI(B);return Cq(function(x,P){(c?az7(B,x,c):az7(B,x)).subscribe(P)})};
Rd=function(B){return Cq(function(c,x){var P=null,Y=0,g=!1;c.subscribe(new TE(x,function(k){var n;(n=P)==null||n.unsubscribe();n=Y++;gq(B(k,n)).subscribe(P=new TE(x,function(b){return x.next(b)},void 0,function(){P=null;
g&&!P&&x.complete()}))},void 0,function(){(g=!0,!P)&&x.complete()}))})};
ex=function(B,c){c=c===void 0?!1:c;return Cq(function(x,P){var Y=0;x.subscribe(new TE(P,function(g){var k=B(g,Y++);(k||c)&&P.next(g);!k&&P.complete()}))})};
BM=function(B,c,x){var P=uV(B)||c||x?{next:B,error:c,complete:x}:B;return P?Cq(function(Y,g){Y.subscribe(new TE(g,function(k){var n;(n=P.next)==null||n.call(P,k);g.next(k)},function(k){var n;
(n=P.error)==null||n.call(P,k);g.error(k)},function(){var k;
(k=P.complete)==null||k.call(P);g.complete()}))}):cF};
lz7=function(){var B=_.ts.apply(0,arguments),c=H$O(B);return Cq(function(x,P){for(var Y=B.length,g=Array(Y),k=B.map(function(){return!1}),n=!1,b={i$jscomp$229:0};b.i$jscomp$229<Y;b={i$jscomp$229:b.i$jscomp$229},b.i$jscomp$229++)gq(B[b.i$jscomp$229]).subscribe(new TE(P,function(d){return function(q){g[d.i$jscomp$229]=q;
n||k[d.i$jscomp$229]||(k[d.i$jscomp$229]=!0,(n=k.every(cF))&&(k=null))}}(b),void 0,r8));
x.subscribe(new TE(P,function(d){n&&(d=[d].concat(_.wq(g)),P.next(c?c.apply(null,_.wq(d)):d))}))})};
EXO=function(B){var c=[],x=0,P;for(P in B)c[x++]=P;return c};
O6X=function(B,c){for(var x in B)if(B[x]==c)return!0;return!1};
oXO=function(B,c,x){for(var P in B)if(c.call(x,B[P],P,B))return P};
QWQ=function(B){if(!B||typeof B!=="object")return B;if(typeof B.clone==="function")return B.clone();if(typeof Map!=="undefined"&&B instanceof Map)return new Map(B);if(typeof Set!=="undefined"&&B instanceof Set)return new Set(B);if(B instanceof Date)return new Date(B.getTime());var c=Array.isArray(B)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(B)||B instanceof DataView?{}:new B.constructor(B.length),x;for(x in B)c[x]=QWQ(B[x]);return c};
F7Y=function(B){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return F7Y.apply(null,arguments[0]);if(c%2)throw Error("pa");for(var x={},P=0;P<c;P+=2)x[arguments[P]]=arguments[P+1];return x};
vXw=function(B){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return vXw.apply(null,arguments[0]);for(var x={},P=0;P<c;P++)x[arguments[P]]=!0;return x};
_.cM=function(B){return new h9I(B[0].toLowerCase())};
zPd=function(B){try{return new URL(B,window.document.baseURI)}catch(c){return new URL("about:invalid")}};
SGA=function(B,c){var x=c.createRange();x.selectNode(c.body);B=Wa(B);return x.createContextualFragment(lV(B))};
ysX=function(B){B=B.nodeName;return typeof B==="string"?B:"FORM"};
GzO=function(B){B=B.nodeType;return B===1||typeof B!=="number"};
x2=function(B,c,x){B.setAttribute(c,x)};
MTX=function(B){return B.parts.map(function(c){var x=c.descriptor;return""+c.url+(x?" "+x:"")}).join(" , ")};
_.PM=function(B){var c=_.ts.apply(1,arguments);if(c.length===0)return _.kX(B[0]);for(var x=B[0],P=0;P<c.length;P++)x+=encodeURIComponent(c[P])+B[P+1];return _.kX(x)};
_.Y2=function(B,c){B=_.X_(B).toString();var x=B.split(/[?#]/),P=/[?]/.test(B)?"?"+x[1]:"";return L7o(x[0],P,/[#]/.test(B)?"#"+(P?x[2]:x[1]):"",c)};
L7o=function(B,c,x,P){function Y(k,n){k!=null&&(Array.isArray(k)?k.forEach(function(b){return Y(b,n)}):(c+=g+encodeURIComponent(n)+"="+encodeURIComponent(k),g="&"))}
var g=c.length?"&":"?";P.constructor===Object&&(P=Object.entries(P));Array.isArray(P)?P.forEach(function(k){return Y(k[1],k[0])}):P.forEach(Y);
return _.kX(B+c+x)};
a3=function(B,c,x,P){this.top=B;this.right=c;this.bottom=x;this.left=P};
Z6w=function(B){B=B.global;if(B.PendingGetBeacon)return B.PendingGetBeacon};
sd=function(B){return function(c){return c.pipe(H6x(B,ie(new gW)))}};
pH=function(B){return function(c){return c.pipe(H6x(B,ue(1)))}};
H6x=function(B,c){function x(P){return new PF(function(Y){return P.subscribe(function(g){k2(B,function(){return void Y.next(g)},3)},function(g){k2(B,function(){return void Y.error(g)},3)},function(){k2(B,function(){return void Y.complete()},3)})})}
return xM(x,i$q(),c,Vd(),x)};
Asd=function(B){var c=fz7(B);return c===null?new Xg(null):c.pipe(t0(function(x){x=x.serialize();if(i6O)x=_.xI.btoa(x);else{for(var P=[],Y=0,g=0;g<x.length;g++){var k=x.charCodeAt(g);k>255&&(P[Y++]=k&255,k>>=8);P[Y++]=k}x=_.PN(P)}return x}),Lq(1),pH(B.queue))};
u_x=function(B){var c=c===void 0?{}:c;if(typeof Event==="function")return new Event(B,c);if(typeof document!=="undefined"){var x=document.createEvent("CustomEvent");x.initCustomEvent(B,c.bubbles||!1,c.cancelable||!1,c.detail);return x}throw Error();};
Dg7=function(B){return typeof B==="string"?document.getElementById(B):B};
RPo=function(B){var c=!1;c=c===void 0?!1:c;if(B.tagName==="IMG"){if(B.complete&&(!B.naturalWidth||!B.naturalHeight))return!0;var x;if(c&&((x=B.style)==null?void 0:x.display)==="none")return!0}var P,Y;return rsl.test((P=B.getAttribute("width"))!=null?P:"")&&rsl.test((Y=B.getAttribute("height"))!=null?Y:"")};
ePY=function(B,c){if(B.tagName==="IMG")return B.naturalWidth&&B.naturalHeight?!0:!1;try{if(B.readyState)var x=B.readyState;else{var P,Y;x=(P=B.contentWindow)==null?void 0:(Y=P.document)==null?void 0:Y.readyState}return x==="complete"}catch(g){return c===void 0?!1:c}};
BqC=function(B){B||(B=function(c,x,P){c.addEventListener(x,P)});
return B};
YIA=function(B,c){var x=c07();x=x===void 0?new x8w:x;if(B=Dg7(B)){var P=BqC(P);for(var Y=!1,g=function(E){Y||(Y=!0,c(E))},k,n=2,b=0;b<PeQ.length;++b)if(PeQ[b]===B.tagName){n=3;
k=[B];break}k||(k=B.querySelectorAll(PeQ.join(",")));var d=0,q=0,C=!0,h=B=!1;b={};for(var V=0;V<k.length;b={isImg:void 0},V++){var N=k[V];if(!RPo(N))if(b.isImg=N.tagName==="IMG",ePY(N,x.crossDomainLoadedDefault))B=!0,b.isImg&&(C=!0);else{d++;var l=function(E){return function(S){d--;!d&&C&&g(n);E.isImg&&(S=S&&S.type==="error",q--,S||(C=!0),!q&&h&&C&&g(n))}}(b);
P(N,"load",l);b.isImg&&(q++,P(N,"error",l))}}q===0&&(C=!0);k=null;k=_.xI.document.readyState==="complete";if(d===0&&!B&&k)n=5;else if(d||!B){P(_.xI,"load",function(){!x.pendingImagesBlockLoad||!q&&C?g(4):h=!0});
return}g(n)}};
aKd=function(B,c,x){if(B)for(var P=0;B!=null&&P<500&&!x(B);++P)B=c(B)};
gMX=function(B,c){aKd(B,function(x){try{return x===x.parent?null:x.parent}catch(P){}return null},c)};
sdo=function(B,c){if(B.tagName=="IFRAME")c(B);else{B=B.querySelectorAll("IFRAME");for(var x=0;x<B.length&&!c(B[x]);++x);}};
pFo=function(B){return(B=B.ownerDocument)&&(B.parentWindow||B.defaultView)||null};
kEo=function(B,c,x){try{var P=JSON.parse(x.data)}catch(k){}if(typeof P==="object"&&P&&P.type==="creativeLoad"){var Y=pFo(B);if(x.source&&Y){var g;gMX(x.source,function(k){try{if(k.parent===Y)return g=k,!0}catch(n){}});
g&&sdo(B,function(k){if(k.contentWindow===g)return c(P),!0})}}};
XFx=function(B){return typeof B==="string"?document.getElementById(B):B};
KX$=function(){var B={};return B[0]=_.PM($8X,"current"),B[1]=_.PM(nMl),B[2]=_.PM(bqd),B};
$2=function(B,c){return B.left===c.left&&B.top===c.top&&B.width===c.width&&B.height===c.height};
jdX=function(B,c){return{left:Math.max(B.left,c.left),top:Math.max(B.top,c.top),width:Math.max(0,Math.min(B.left+B.width,c.left+c.width)-Math.max(B.left,c.left)),height:Math.max(0,Math.min(B.top+B.height,c.top+c.height)-Math.max(B.top,c.top))}};
U8$=function(B,c){return{left:Math.round(B.left+c.x),top:Math.round(B.top+c.y),width:B.width,height:B.height}};
d8o=function(B,c,x){if(B&&c!==null&&c!=c.top){if(!c.top)return new _.nH(-12245933,-12245933);c=c.top}try{return(x===void 0?0:x)?(new _.nH(c.innerWidth,c.innerHeight)).round():_.KH(c).round()}catch(P){return new _.nH(-12245933,-12245933)}};
qIl=function(B,c,x){try{if(B){if(!c.top)return new a3(-12245933,-12245933,-12245933,-12245933);c=c.top}var P=d8o(B,c,x),Y=P.height,g=P.width;if(g===-12245933)return new a3(g,g,g,g);var k=jk(Ud(c.document)),n=k.x,b=k.y;return new a3(b,n+g,b+Y,n)}catch(d){return new a3(-12245933,-12245933,-12245933,-12245933)}};
Ced=function(B){var c;return(c=B.google_tag_data)!=null?c:B.google_tag_data={}};
hDA=function(B){var c,x;return typeof((c=B.navigator)==null?void 0:(x=c.userAgentData)==null?void 0:x.getHighEntropyValues)==="function"};
Tq$=function(B){if(!hDA(B))return null;var c=Ced(B);if(c.uach_promise)return c.uach_promise;B=B.navigator.userAgentData.getHighEntropyValues(m8x).then(function(x){c.uach!=null||(c.uach=x);return x});
return c.uach_promise=B};
Qdq=function(B){var c;return Vx7(txw(wF$(Nq7(IKI(J07(WXO(lKC(EMQ(new OqX,B.architecture||""),B.bitness||""),B.mobile||!1),B.model||""),B.platform||""),B.platformVersion||""),B.uaFullVersion||""),((c=B.fullVersionList)==null?void 0:c.map(function(x){var P=new oMO;P=_.dW(P,1,x.brand);return _.dW(P,2,x.version)}))||[]),B.wow64||!1)};
FXI=function(B){var c,x;return(x=(c=Tq$(B))==null?void 0:c.then(function(P){return Qdq(P)}))!=null?x:null};
vMq=function(B,c){return new PF(function(x){var P=!1,Y=Array(c.length);Y.fill(void 0);var g=new Set,k=new Set,n=function(C,h){B.running?(Y[h]=C,g.add(h),P||(P=!0,k2(B,function(){P=!1;x.next(_.DA(Y))},1))):x.error(new qj(h))},b=function(C,h){k.add(h);
g.add(h);k2(B,function(){x.error(C)},1)},d=function(C){k.add(C);
k2(B,function(){k.size===c.length&&x.complete()},1)},q=c.map(function(C,h){return C.subscribe(function(V){return void n(V,h)},function(V){return void b(V,h)},function(){return void d(h)})});
return function(){q.forEach(function(C){return void C.unsubscribe()})}})};
SI$=function(B,c,x){function P(){if(c.debugChannel){var E=c.debugChannel,S=E.next;var M={creativeId:c.debugNames.getName(x),requiredSignals:Y,signals:Object.assign({},g),hasPrematurelyCompleted:k,errorMessage:n,erroredSignalKey:b};M={specMajor:2,specMinor:0,specPatch:0,timestamp:Qd(c.timeProvider.now(),new vF(0,c.timeProvider.timeline)),instanceId:c.debugNames.getName(c.symbol),creativeState:M};S.call(E,M)}}
for(var Y=Object.keys(B),g={},k=!1,n=null,b=null,d={},q=new Set,C=[],h=[],V=_.p(Y),N=V.next(),l={};!N.done;l={key$jscomp$375:void 0},N=V.next())l.key$jscomp$375=N.value,N=B[l.key$jscomp$375],N instanceof Xg?(d[l.key$jscomp$375]=N.value,q.add(l.key$jscomp$375),c.debugChannel&&(g[String(l.key$jscomp$375)]=qGd(N.value))):(N=N.pipe(ZK(function(E,S){return UgI(E)||UgI(S)?!1:E===S}),t0(function(E){return function(S){c.debugChannel&&(g[String(E.key$jscomp$375)]=qGd(S),P());
var M={};return M[E.key$jscomp$375]=S,M}}(l)),Sx(function(E){return function(S){if(S instanceof qj)throw new zD$(String(E.key$jscomp$375));
throw S;}}(l)),BM(function(E){return function(){q.add(E.key$jscomp$375)}}(l),function(E){return function(S){b=String(E.key$jscomp$375);
n=String(S);P()}}(l),function(E){return function(){q.has(E.key$jscomp$375)||(k=!0,P())}}(l))),h.push(l.key$jscomp$375),C.push(N));
(B=Object.keys(g).length>0)&&P();V=vMq(c.queue,C).pipe(Sx(function(E){if(E instanceof qj)throw new CH(String(h[E.inputObservableIndex]));throw E;}),t0(function(E){return Object.freeze(Object.assign.apply(Object,[{},
d].concat(_.wq(E))))}));
return(C=C.length>0)&&B?OI(dq(Object.freeze(d)),V):C?V:dq(Object.freeze(d))};
y0O=function(B,c,x,P,Y){return B.performanceMonitor.timeExecution.bind(B.performanceMonitor)(733,function(){var g={};try{return c.pipe(Sx(function(k){P(Object.assign({},g,{error:k}));return EI}),J0(function(k){try{var n=x(B,k)}catch(d){return P(Object.assign({},g,{error:d instanceof Error?d:String(d)})),EI}var b={};
return SI$(n,B,k.symbol).pipe(BM(function(d){b=d}),ue(1),Vd()).pipe(Y,Sx(function(d){P(Object.assign({},b,{error:d}));
return EI}),HF(void 0),t0(function(){return!0}))})).pipe(DK(function(k){return k+1},0),Sx(function(k){P(Object.assign({},g,{error:k}));
return EI}))}catch(k){return P(Object.assign({},g,{error:k})),EI}})()};
hx=function(B){var c=new Map;if(typeof B!=="object"||B===null)return c;Object.values(B).forEach(function(x){x&&typeof x.extrapolateToNow==="function"&&(c.has(x.clock.timeline)||c.set(x.clock.timeline,x.clock.now()))});
return c};
GEI=function(B,c){return typeof B==="string"?encodeURIComponent(B):typeof B==="number"?String(B):Array.isArray(B)?B.map(function(x){return GEI(x,c)}).join(","):B instanceof vF?B.toString():B&&typeof B.extrapolateToNow==="function"?GEI(B.extrapolateUsingTimestampMap(c).value,c):B===!0?"1":B===!1?"0":B===void 0||B===null?null:B instanceof Mxq?LXC(B):[B.top,
B.left,B.top+B.height,B.left+B.width].join()};
mK=function(B,c){B=Object.entries(B).map(function(x){var P=_.p(x);x=P.next().value;P=P.next().value;P=GEI(P,c);return P===null?"":x+"="+P}).filter(function(x){return x!==""});
return B.length?B.join("&"):""};
fKY=function(B,c){var x=Zqq,P=HqO;c=c===void 0?.01:c;return function(Y){c>0&&Math.random()<=c&&(B.global.HTMLFencedFrameElement&&B.global.fence&&typeof B.global.fence.reportEvent==="function"&&B.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Y=Object.assign({},Y,{errorMessage:Y.error instanceof Error&&Y.error.message?Y.error.message:String(Y.error),errorStack:Y.error instanceof Error&&Y.error.stack?String(Y.error.stack):null,errorName:Y.error instanceof
Error&&Y.error.name?String(Y.error.name):null,errorContext:String(B.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Y.escapedQueryId}),x(Object.assign({},Y,{payloadMapper:function(){return function(g){try{return P(Object.assign({},g))}catch(k){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),hx(Y)).forEach(function(g){B.beaconFactory.makeBeacon(g).sendNow()}))}};
iqx=function(){var B=_.ts.apply(0,arguments);return function(c){var x=c.pipe(ue(1),Vd());c=B.map(function(P){return x.pipe(P,HF(!0))});
return N8(c).pipe(Lq(1),yd())}};
A0w=function(){var B=_.ts.apply(0,arguments);return function(c){var x=c.pipe(ue(1),Vd());c=B.map(function(P){return x.pipe(P,HF(!0))});
return OI.apply(null,_.wq(c)).pipe(Lq(1),yd())}};
utI=function(B,c){return function(x){var P=x.pipe(ue(1),Vd());x=P.pipe(B,HF(!0));P=P.pipe(xM(c,ue(),Vd()),HF(!0));x=N8([x,P]);return K7Y(x,P).pipe(Lq(1),yd())}};
D8I=function(B,c,x){x(!0)};
r0I=function(B,c){return xM(Rd(function(x){var P=B(x),Y=c(x),g={};return P&&Y&&g?new PF(function(k){Y(P,g,function(n){k.next(Object.assign({},x,{canEmit:n}));k.complete()});
return function(){}}):T_}),od(function(x){return x.canEmit}))};
RDw=function(B){var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(x){return x.pipe(Rd(function(P){return new PF(function(Y){function g(){n.disconnect();b.unsubscribe()}
var k=B.MutationObserver;if(k&&P.ref!==void 0){var n=new k(function(d){Y.next(d)});
n.observe(P.ref,c);var b=P.JSC$7406_released.subscribe(g);return g}})}))}};
eD7=function(B){if(B.measurementDeferralState===3)return null;if(B.timeOnScreenReason!==void 0){var c=B.creativeFound===!1?"n":null;if(c!==null)return c}return B.geometricMeasurementErrors instanceof VE?"msf":B.contextValidationErrors instanceof tx?"c":B.contextVisibilityKnown===!1?"pv":B.geometricMeasurementErrors||B.contextValidationErrors?"x":null};
Nj=function(B,c){return B.replace(BWw,function(x,P){try{var Y=_.wW.get(c,P);if(Y==null||Y.toString()==null)return x;Y=Y.toString();if(Y==""||!_.sl(Y==null?"":String(Y)))return encodeURIComponent(Y).replace(/%2C/g,",")}catch(g){}return x})};
cxQ=function(B,c){var x=Object.assign({},B),P=B.userAgentClientHints;x=(delete x.userAgentClientHints,x);x=B.payloadMapper(x);var Y=mK(x,c);return _.I3(B.urlPrefixes,function(g){var k="";typeof P==="string"&&(k="&"+mK({uach:P},c));var n={};return Nj(g,(n.VIEWABILITY=Y,n))+k})};
Zqq=function(B,c){var x=B.payloadMapper(B),P=mK(x,c);return P?_.I3(B.urlPrefixes,function(Y){Y=Y.indexOf("?")>=0?Y:Y+"?";Y="?&".indexOf(Y.slice(-1))>=0?Y:Y+"&";return Y+P}):B.urlPrefixes};
xjw=function(){return xM(od(function(B){return B!==void 0}),t0(function(B){return B}))};
Py7=function(B){return xM(t0(function(){return!0}),rq(!1),pH(B))};
Ydl=function(B){return B.length<=0?EI:N8(B.map(function(c){var x=0;return c.pipe(t0(function(P){return{index:x++,value:P}}))})).pipe(od(function(c){return c.every(function(x){return x.index===c[0].index})}),t0(function(c){return c.map(function(x){return x.value})}))};
aeO=function(B,c){B.currentState&&(B.previousState=B.currentState);B.currentState=c;B.previousState&&B.previousState.value?(c=Math.max(0,Qd(c.timestamp,B.previousState.timestamp)),B.totalTime+=c,B.consecutiveTime+=c):B.consecutiveTime=0;return B};
g2w=function(){return xM(DK(aeO,{totalTime:0,consecutiveTime:0}),t0(function(B){return B.totalTime}))};
s3x=function(){return xM(DK(aeO,{totalTime:0,consecutiveTime:0}),t0(function(B){return B.consecutiveTime}))};
pMX=function(B,c){return function(x){return Ydl(c.map(function(P){return x.pipe(B(P))}))}};
k_o=function(){var B;return xM(BM(function(c){return void(B=c.timestamp)}),s3x(),t0(function(c){return{timestamp:B,
value:Math.round(c)}}))};
XMo=function(B,c){return $2(B.topWindowViewportExternalGeometry,c.topWindowViewportExternalGeometry)&&$2(B.elementGeometry,c.elementGeometry)&&$2(B.exposedViewportLocalGeometry,c.exposedViewportLocalGeometry)&&$2(B.intersectionGeometry,c.intersectionGeometry)&&B.elementGeometrySourceName===c.elementGeometrySourceName&&B.measurementRequests===c.measurementRequests&&B.viewportGeometrySourceName===c.viewportGeometrySourceName&&B.viewportLocalAppOffset.x===c.viewportLocalAppOffset.x&&B.viewportLocalAppOffset.y===
c.viewportLocalAppOffset.y};
bHo=function(B,c){return function(x){return function(P){var Y=P.pipe(ie(new gW),Vd());P=x.element.pipe(ZK());Y=Y.pipe(t0(function(g){return g.value}));
return N8([P,Y,c]).pipe(t0(function(g){var k=_.p(g);g=k.next().value;var n=k.next().value;k=k.next().value;if(g.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=g.ref.getBoundingClientRect();var d=g.ref,q=B.global,C=new _.Jx(0,0),h=WM(_.ly(d));if(Ed(h,"parent")){do{if(h==q)var V=_.Od(d);else V=$j$(d),V=new _.Jx(V.left,V.top);C.x+=V.x;C.y+=V.y}while(h&&h!=q&&h!=h.parent&&(d=h.frameElement)&&(h=h.parent))}b={top:C.y,left:C.x,width:b.width,height:b.height}}b=U8$(b,n.viewportLocalAppOffset);
q=jdX(b,n.exposedViewportLocalGeometry);C=B.timeProvider.now();h=Object;d=h.assign;if(k!==2||B.inCrossDomainIframe||q.width<=0||q.height<=0)var N=!1;else try{var l=B.document.elementFromPoint(q.left+q.width/2,q.top+q.height/2);N=l?!n2l(l,g):!1}catch(E){N=!1}return{timestamp:C,value:d.call(h,{},n,{elementGeometrySourceName:"geo",intersectionGeometry:N?o3.intersectionGeometry:q,elementGeometry:b})}}),sd(B.queue))}}};
n2l=function(B,c,x){x=x===void 0?0:x;return B.ref===void 0||c.ref===void 0?!1:B.ref===c.ref||_.QE(c.ref,function(P){return P===B.ref})?!0:c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView===c.ref.ownerDocument.defaultView.top?!1:x<10&&c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView.frameElement?n2l(B,new Fg(c.ref.ownerDocument.defaultView.frameElement),x+1):!0};
Ujl=function(B){return function(c){return c.pipe(B.ResizeObserver?KKx(B):j3C(B),ue(1),Vd())}};
KKx=function(B){return function(c){return c.pipe(Rd(function(x){var P=B.ResizeObserver;if(!P||x.ref===void 0)return dq(o3.elementGeometry);var Y=(new PF(function(g){function k(){x.ref!==void 0&&n.unobserve(x.ref);n.disconnect();b.unsubscribe()}
if(x.ref===void 0)return g.complete(),function(){};
var n=new P(function(d){d.forEach(function(q){g.next(q)})});
n.observe(x.ref);var b=x.JSC$7406_released.subscribe(k);return k})).pipe(zE(B.performanceMonitor,736),t0(function(g){return g.contentRect}));
return OI(dq(x.ref.getBoundingClientRect()),Y)}),ZK($2))}};
j3C=function(B){return function(c){var x=c.pipe(RDw(B)),P=B.onResize;x=OI(c.pipe(t0(function(){return u_x("resize")})),x,P);
return N8(c,x).pipe(zE(B.performanceMonitor,737),t0(function(Y){Y=_.p(Y).next().value;return Y.ref===void 0?void 0:Y.ref.getBoundingClientRect()}),xjw(),ZK($2))}};
Cy$=function(B,c){var x=djC(B,c).pipe(ue(1),Vd());return function(P){return function(Y){Y=Y.pipe(Rd(function(g){return g.element}),ZK());
return N8([x,Y]).pipe(Rd(function(g){var k=_.p(g);g=k.next().value;k=k.next().value;return qd7(B,g.intersectionObserver,Ujl(B),g.observations,P,g.flushRecords,k)}),sd(B.queue))}}};
hOx=function(B){return t0(function(c){return c.value.viewportGeometrySourceName!=="nio"?c:Object.assign({},c,{value:Object.assign({},c.value,{exposedViewportLocalGeometry:vM(B,!0),topWindowViewportExternalGeometry:vM(B,!0)})})})};
mjx=function(B,c){return dq(c).pipe(B,t0(function(){return c}))};
djC=function(B,c){return B.timeProvider.timeline!==TWI?q8(new VE(2)):B.MutationObserver?typeof IntersectionObserver==="undefined"?q8(new VE(0)):(new PF(function(x){var P=new gW,Y=new z_(P.next.bind(P),{threshold:[].concat(_.wq(c))});x.next({observations:P.pipe(zE(B.performanceMonitor,735)),intersectionObserver:Y,flushRecords:function(g){g=Y.takeRecords(g);g.length>0&&P.next(g)}})})).pipe(Lq(1),ue(1),Vd()):q8(new VE(1))};
Vkl=function(B){return vPw(B.sort(function(c,x){return c.time-x.time}),fmX)};
qd7=function(B,c,x,P,Y,g,k){return new PF(function(n){function b(){N||(N=!0,k.ref!==void 0&&c.unobserve(Y,k.ref),q.unsubscribe(),V.unsubscribe(),h.unsubscribe(),l.unsubscribe())}
if(k.ref!==void 0){tkA(c,Y);c.observe(Y,k.ref);var d=new Sk({timestamp:B.timeProvider.now(),value:Object.assign({},o3,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),q=P.pipe(J0(function(E){return Vkl(E)}),od(function(E){return E.target===k.ref}),t0(function(E){return{timestamp:new vF(E.time,TWI),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:E.rootBounds||yE,topWindowViewportExternalGeometry:E.rootBounds||vM(B,!0),measurementRequests:C,elementGeometrySourceName:"nio",intersectionGeometry:E.intersectionRect,elementGeometry:E.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:E.isIntersecting,isV2Visible:E.isVisible}}}),ie(d),Vd()).subscribe(n),C=new gW,h=C.subscribe(function(){g(Y);
n.next({timestamp:B.timeProvider.now(),value:d.value.value});k.ref!==void 0&&(c.unobserve(Y,k.ref),c.observe(Y,k.ref))}),V=mjx(x,k).subscribe(function(){C.next()}),N=!1,l=k.JSC$7406_released.subscribe(function(){return b()});
return b}})};
wMq=function(B,c){var x=B.getOnBackgrounded().pipe(t0(function(){return"b"}));
return K7Y(c,x).pipe(Lq(1),pH(B.queue))};
G_=function(B){return function(c){var x;return c.pipe(BM(function(P){return void(x=P.timestamp)}),t0(function(P){return P.value}),B,t0(function(P){return{timestamp:x,
value:P}}))}};
NWO=function(B){return B.intersectionGeometry.width*B.intersectionGeometry.height/(B.elementGeometry.width*B.elementGeometry.height)};
Mj=function(B,c,x){x=x===void 0?function(P,Y){return P===Y}:x;
return B.timestamp.equals(c.timestamp)&&x(B.value,c.value)};
Ze=function(B,c){return c.pipe(t0(function(x){return new LH(B.timeProvider,{timestamp:B.timeProvider.now(),value:x})}))};
Iel=function(B){return function(c){return c.pipe(lz7(B),t0(function(x){var P=_.p(x);x=P.next().value;P=P.next().value;var Y=x.value;return{timestamp:x.timestamp,value:Y>=1?!0:Y<=0?!1:Y>=P}}))}};
WKl=function(){return xM(od(function(B,c){return c>0}),Jx7,rq(-1),ZK())};
leq=function(B,c,x){return B?N8([c,x]).pipe(od(function(P){var Y=_.p(P);P=Y.next().value;Y=Y.next().value;return P.timestamp.equals(Y.timestamp)}),t0(function(P){var Y=_.p(P);
P=Y.next().value;Y=Y.next().value;return P.value>Y.value?P:Y})):c};
o2w=function(B){return function(c){var x=c.pipe(E2d),P=c.pipe(OHl);return B instanceof PF?B.pipe(Rd(function(Y){return leq(Y,x,P)})):leq(B.value,x,P)}};
ZH7=function(B,c,x,P){var Y=P.geometryIsOccluded,g=P.exposureThreshold,k=P.wasLargeAdAtRender,n=P.allowLargeAdThreshold,b=P.largeAdExposureThreshold,d=P.mayUseViewportShareExposure,q=P.hasMeasurementStarted;P=P.useIntersectionObserverV2;c=Q3A(B,x,c);x=FK7(B,x);P=v27(c,P);var C=zOl(B,Y,d,c),h=C.pipe(t0(function(u){return u.value}),ZK(),pH(B),DK(function(u,e){return Math.max(u,e)},0)),V=C.pipe(t0(function(u){return u.value}),WKl(),pH(B)),N=c.pipe(SdC,t0(function(u){return u.value}),Lq(2),ZK(),pH(B));
k=yxO(B,c,k,n);var l=k.pipe(rq(!1),ZK(),t0(function(u){return u?b:g}));
n=C.pipe(Iel(l),ZK(),pH(B));var E=N8([n,c]).pipe(od(function(u){var e=_.p(u);u=e.next().value;e=e.next().value;return u.timestamp.equals(e.timestamp)}),t0(function(u){var e=_.p(u);
u=e.next().value;e=e.next().value;return{visible:u.value,geometry:e.value.elementGeometry}}),DK(function(u,e){return!e.visible&&u.visible?u:e},{visible:!1,
geometry:yE}),t0(function(u){return u.geometry}),rq(yE),pH(B),ZK($2));
d=d instanceof PF?d.pipe(ZK(),GE()):T_;l=N8([d,l]).pipe(GE());var S=c.pipe(od(function(u){return u.value.viewportGeometrySourceName!=="ns"&&u.value.elementGeometrySourceName!=="ns"}),DK(function(u){return u+1},0),rq(0),pH(B)),M=x.pipe(GE(!0),rq(!1),pH(B));
M=N8([q,M]).pipe(t0(function(u){var e=_.p(u);u=e.next().value;e=e.next().value;return u&&!e}),pH(B));
var f=c.pipe(G_C,ZK()),Z=f.pipe(t0(function(u){return u.value}),DK(function(u,e){return Math.max(u,e)},0),ZK(),pH(B));
B=f.pipe(t0(function(u){return u.value}),WKl(),pH(B));
return{shouldResetExposureSignals:d,shouldResetViewabilitySignals:l,geometrySignals:{readyGeometryWithDefault:c,measurementStrategy:c.pipe(MkQ),creativePosition:E.pipe(ZK($2)),visible:n.pipe(ZK(Mj)),timestampedExposure:C.pipe(ZK(Mj)),maximumExposure:h,minimumExposure:V,browserSize:c.pipe(LKd,ZK(_.p4)),timestampedScreenShare:f,maxScreenShare:Z,minScreenShare:B,geometricMeasurementErrors:x,measurementRequests:c.pipe(t0(function(u){return u.value.measurementRequests})),
isLargeAd:k,geometryIsOccluded:Y,hasMeasurementStarted:q,geometryMeasurable:M,validMeasurementCount:S,loadTimeExposure:N,v2VisibilityBitVector:P}}};
FK7=function(B,c){return c.pipe(od(function(){return!1}),t0(function(x){return x}),Sx(function(x){return HM(new Xg(x),B)}))};
Q3A=function(B,c,x){return c.pipe(nX7(T_),pH(B)).pipe(ZK(function(P,Y){return Mj(P,Y,XMo)}),rq({timestamp:x.now(),
value:o3}),pH(B))};
zOl=function(B,c,x,P){x=P.pipe(o2w(x),G_(t0(function(Y){return Math.round(Y*100)/100})),pH(B));
return c instanceof Xg?x:N8([x,c]).pipe(t0(function(Y){var g=_.p(Y);Y=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(Y.timestamp),value:g.value?0:Y.value}}),ZK(Mj),pH(B))};
yxO=function(B,c,x,P){c=[c.pipe(t0(function(Y){return Y.value.elementGeometry.width*Y.value.elementGeometry.height>=242500}))];
x instanceof PF&&c.push(x.pipe(t0(function(Y){return!!Y})));
x=N8(c);return P?x.pipe(t0(function(Y){return Y.some(function(g){return g})}),rq(!1),ZK(),pH(B)):HM(new Xg(!1),B)};
v27=function(B,c){B=N8([B,c]).pipe(t0(function(Y){var g=_.p(Y);Y=g.next().value;if(g.next().value&&Y.value.isIntersecting)return Y.value.isV2Visible}),ZK());
var x=B.pipe(t0(function(Y){return Y===void 0?!0:Y}),DK(function(Y,g){return Y||!g},!1)),P=B.pipe(DK(function(Y,g){return g===void 0?Y:g?!1:Y!=null?Y:!0},void 0),t0(function(Y){return!!Y}));
return N8([c,jWq(B,x,P)]).pipe(t0(function(Y){var g=_.p(Y);Y=g.next().value;var k=_.p(g.next().value);g=k.next().value;var n=k.next().value;k=k.next().value;var b=0;if(!Y)return 0;if(g===void 0)return 16;g&&(b|=1);g||(b|=2);n&&(b|=4);k&&(b|=8);return b}))};
Axd=function(B,c,x,P,Y){var g=fH.timeThresholdMs;var k=k===void 0?new HH7(c,P):k;return(new PF(function(n){var b=x.pipe(rq(void 0),Rd(function(){return fe7(Y)})).pipe(t0(function(d){var q=d.value;
d=d.timestamp;var C=q.visible;q=q.consecutiveViewTime;var h=q>=g;h||!C?iy(k):(d=Math.max(0,Qd(c.now(),d)),iHo(k,Math.max(0,g-q-d)));return h}),DK(function(d,q){return q||d},!1),ZK()).subscribe(n);
return function(){k.dispose();b.unsubscribe()}})).pipe(ex(function(n){return!n},!0),pH(B))};
fe7=function(B){return Ydl([B,B.pipe(k_o())]).pipe(t0(function(c){var x=_.p(c);c=x.next().value;x=x.next().value;return{timestamp:c.timestamp,value:{visible:c.value,consecutiveViewTime:x.value}}}),ZK(function(c,x){return Mj(c,x,function(P,Y){return P.consecutiveViewTime===Y.consecutiveViewTime&&P.visible===Y.visible})}))};
ugQ=function(){return xM(s3x(),DK(function(B,c){return Math.max(B,c)},0),t0(function(B){return Math.round(B)}))};
DjI=function(B){return xM(Iel(dq(B)),ugQ())};
rxI=function(B,c){return c instanceof PF?c.pipe(Rd(function(x){return(x=x?15:null)?q8(new VE(x)):B})):(c=c.value?15:null)?q8(new VE(c)):B};
ROA=function(B){var c=new VE(13);if(B.length<1)return{chain:EI,capturedErrors:EI};var x=new gW,P=B[0];return{chain:B.slice(1).reduce(function(Y,g){return Y.pipe(Sx(function(k){x.next(k);return g}))},P).pipe(Sx(function(Y){x.next(Y);
return q8(c)}),ie(new gW),Vd()),
capturedErrors:x}};
eOC=function(B,c){var x=B.pipe(ie(new gW),Vd());return Rd(function(P){return x.pipe(c(P))})};
cGQ=function(B,c){if(B.inCrossDomainIframe)return q8(new VE(6));var x=new gW;return OI(dq({}),c,x).pipe(t0(function(){return{timestamp:B.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:BfI(B),topWindowViewportExternalGeometry:vM(B,!0),measurementRequests:x,viewportLocalAppOffset:{x:0,y:0}}}}),sd(B.queue))};
BfI=function(B){var c=vM(B,!1);if(!B.inIframe||!Ax(B.global.parent)||B.global.parent===B.global)return c;var x=new uy(B.global.parent,B.debugChannel);x.beaconFactory=B.beaconFactory;x=BfI(x);B=B.global.frameElement.getBoundingClientRect();return jdX(U8$(jdX(x,B),{x:c.left-B.left,y:c.top-B.top}),c)};
xHQ=function(B){if(B.prerendering)return 3;var c;return(c={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[B.visibilityState||B.webkitVisibilityState||B.mozVisibilityState||""])!=null?c:0};
PWA=function(B){return B.document.JSC$7417_onVisibilityChange.pipe(t0(function(c){return c==="visible"}),ZK(),pH(B.queue))};
Yqw=function(B,c,x){var P;return c.pipe(ZK(),Rd(function(Y){return x.pipe(t0(function(){if(!P){P=!0;try{Y.next()}finally{P=!1}}return!0}))}),rq(!1),pH(B.queue))};
aMd=function(B){return xM(G_(t0(function(c){return c>=1?!0:c<=0?!1:c>=B})),g2w(),t0(function(c){return Math.round(c)}))};
sDo=function(B,c,x,P,Y){var g=gwd;if(g.length>1)for(var k=0;k<g.length-1;k++)if(g[k]<g[k+1])throw Error();k=Y.pipe(rq(void 0),Rd(function(){return x.pipe(k_o())}),ZK(),pH(B));
Y=Y.pipe(rq(void 0),Rd(function(){return x.pipe(ugQ())}),ZK(),pH(B));
return{totalMeasurementTime:P.pipe(rq(void 0),Rd(function(){return c.pipe(t0(function(n){return{timestamp:n.timestamp,value:!0}}),g2w())}),ZK(),pH(B)),
totalUnviewedTime:P.pipe(rq(void 0),Rd(function(){return c.pipe(t0(function(n){return{timestamp:n.timestamp,value:n.value===0}}),g2w())}),ZK(),pH(B)),
maxTimeOnScreen:P.pipe(rq(void 0),Rd(function(){return c.pipe(pMX(DjI,g))}),ZK(_.p4),pH(B)),
timeOnScreen:P.pipe(rq(void 0),Rd(function(){return c.pipe(pMX(aMd,g),t0(function(n){return n.map(function(b,d){return d>0?b-n[d-1]:b})}))}),ZK(_.p4),pH(B)),
maxConsecutiveViewTime:Y,consecutiveViewTime:k.pipe(ZK(Mj),pH(B))}};
kPC=function(B){var c=!0;c=c===void 0?!1:c;return xM(Rd(function(x){return phx(B.document,x,c)}),pH(B.queue))};
Xhq=function(B,c,x){var P=x.pipe(t0(function(Y){return{value:Y,timestamp:B.timeProvider.now()}}),ZK(Mj));
return c instanceof PF?c.pipe(ZK(),Rd(function(Y){return Y?HM(new Xg({value:!1,timestamp:B.timeProvider.now()}),B.queue):P})):c.value===!1?P:new Xg(!1)};
$Hx=function(B,c,x,P,Y,g,k){var n=fH;c=c instanceof PF?c.pipe(rq(!1),ZK()):c;var b=!B.isMobile();x=Xhq(B,x,P);B=k.measurableCreative.pipe(Py7(B.queue));return Object.assign({},n,{geometryIsOccluded:x,wasLargeAdAtRender:Y,allowLargeAdThreshold:b,mayUseViewportShareExposure:c,hasMeasurementStarted:B,useIntersectionObserverV2:g})};
bSq=function(B,c,x,P,Y,g){var k=1;g=g===void 0?!0:g;k=k===void 0?.01:k;var n=n===void 0?B.timeProvider.intervalObservable(100).pipe(pH(B.queue)):n;return B.performanceMonitor.timeExecution(916,function(){return nwC(B,c.pipe(sd(B.queue)),x.pipe(sd(B.queue)),P,Y,g,k,n)})()};
nwC=function(B,c,x,P,Y,g,k,n){var b=PWA(B).pipe(t0(function(q){return!q})),d=new KyC(B,[new jDI(B,gwd),
new UHQ(B,n)]);n=iqx(dHw,qq$);return y0O(B,c,function(q,C){var h=HM(new Xg(C.element),q.queue).pipe(kPC(q),pH(q.queue)),V={loadedElement:h,shouldMeasure:h.pipe(GE(!0)),measurableCreative:h.pipe(t0(function(u){var e=e===void 0?Symbol():e;return Object.freeze({symbol:e,element:HM(new Xg(u),q.queue)})})),
creativeSearchResult:HM(new Xg("mue"),q.queue)},N=new Xg(!1),l=new Xg(!1),E=new Xg(17),S=new Xg(!1),M=new Xg(!1),f=HM(De,q.queue);N=d.buildGeometrySource(V,{inApp:N,useV2:!1,requestSource:HM(E,q.queue)}).geometrySource;V=$Hx(q,S,l,b,M,f,V);l=ZH7(q.queue,q.timeProvider,N,V);V=l.geometrySignals;S=l.shouldResetViewabilitySignals;l=sDo(q.queue,V.timestampedExposure,V.visible,l.shouldResetExposureSignals,S);S=Axd(q.queue,q.timeProvider,S,V.measurementRequests,V.visible);M=x.pipe(od(function(u){return u===
C.element.ref}),t0(function(){return"ur"}));
f=CV$(q.timeProvider,Y).pipe(GE("t"));M=wMq(q,OI(M,f));f=Yqw(q,V.measurementRequests,M.pipe(od(function(u){return u!==null})));
N=M.pipe(od(function(u){return u!==null}),t0(function(){return xHQ(q.global.document)===1}));
var Z=CWo(q.document);return Object.assign({},{beaconFactory:new Xg(q.beaconFactory),context:new Xg(q),inferredPingId:new Xg("lidar2"),timeOnScreenPingId:new Xg("lidartos"),binaryContext:new Xg(17),binaryVersion:new Xg(P),requestSource:E,contextValidationErrors:new Xg(q.validate()?null:new tx),contextVisibilityKnown:new Xg(Z),payloadMapper:new Xg(HqO),endOfSessionReason:M,timeOnScreenReason:M,requestMeasurementOnEndOfSession:f,hasImpressionFired:hEq,crossDomainIframeState:new Xg(q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:De,inFetchLaterBeaconExperiment:De,isTurtlex:De,turtlexReportEventData:new Xg(""),reportFencedFrameEvent:T_,isViewableAttributionEnabled:De,inViewableAttributionExperiment:new Xg(0),fetchBeaconFactory:T_,supportsPendingBeacon:De,supportsFetchLater:De,emit:new Xg(D8I),beginToRenderEvent:new Xg(Symbol()),activeViewUnmeasurableEvent:new Xg(Symbol()),activeViewViewableEvent:new Xg(Symbol()),creativeFound:hEq,immediateUrlPrefixes:new Xg(C.immediateUrls),timeOnScreenUrlPrefixes:new Xg(C.timeOnScreenUrls),
cpmavUrls:T_,viewableRelayUrls:T_,measurementDeferralState:new Xg(2),urlSerializer:new Xg(cxQ),viewUrlSerializer:new Xg(mHA),isCreativeLoaded:h.pipe(Py7(q.queue)),pageVisible:b.pipe(t0(function(u){return!u})),
eosPageVisible:N,timestampedExposureHistory:V.timestampedExposure.pipe(DK(function(u,e){u.push(e);return u},[]))},V,{viewable:Ze(q,S),
maxTimeOnScreen:Ze(q,l.maxTimeOnScreen),timeOnScreen:Ze(q,l.timeOnScreen),maxConsecutiveViewTime:Ze(q,l.maxConsecutiveViewTime),consecutiveViewTime:l.consecutiveViewTime.pipe(t0(function(u){return new LH(q.timeProvider,u)})),
totalMeasurementTime:Ze(q,l.totalMeasurementTime),totalUnviewedTime:Ze(q,l.totalUnviewedTime),userAgentClientHints:Asd(q),clientOrderPingCounter:new Xg(new Mxq)})},fKY(B,k),A0w(g?utI(n,Tf7):utI(n,V$w),t$7))};
whd=function(B){var c=_.ts.apply(1,arguments).filter(Boolean).join("&");if(!c)return B;var x=B.match(/[?&]adurl=/);return x?B.slice(0,x.index+1)+c+"&"+B.slice(x.index+1):B+(B.indexOf("?")<0?"?":"&")+c};
rW=function(B,c){return c?"&"+B+"="+encodeURIComponent(c):""};
Nfo=function(){try{var B,c;return!!((B=window)==null?0:(c=B.top)==null?0:c.location.href)&&!1}catch(x){return!0}};
_.R3=function(B){B&&typeof B.dispose=="function"&&B.dispose()};
_.ek=function(B){for(var c=0,x=arguments.length;c<x;++c){var P=arguments[c];_.R7(P)?_.ek.apply(null,P):_.R3(P)}};
JGX=function(){var B=IMI();B=B===void 0?"bevasrsg":B;return new Promise(function(c){var x=window===window.top?window:Nfo()?window:window.top,P=x[B],Y;((Y=P)==null?0:Y.bevasrs)?c(new Bh(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),x[B]=P),P.nqfbel.push(function(g){c(new Bh(g))}))})};
Wyw=function(B){var c={c:B.hY,e:B.kjY,mc:B.fVU,me:B.teb};B.rS&&(c.co={c:B.rS.zBf,a:B.rS.q3b,s:B.rS.q1O});return c};
lMd=function(B){var c,x,P={hY:B.c,kjY:B.e,fVU:(c=B.mc)!=null?c:!1,teb:(x=B.me)!=null?x:!1};B.co&&(P.rS={zBf:B.co.c,q3b:B.co.a,q1O:B.co.s});return P};
Ew7=function(B){return function(){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B(),2);c=x.yieldResult;return x.return({f:function(){return c.wYC()},
c:function(P){return c.p4A(P)},
m:function(P){return c.lN(lMd(P))},
mws:function(P){return c.dQ(lMd(P))}})})}};
OSl=function(B,c){var x=IMI();x=x===void 0?"bevasrsg":x;c={s:function(g){var k;return B.snapshot(Object.assign({},g.c&&{hY:g.c},g.s&&{iii:g.s},{t9h:(k=g.p)!=null?k:!0}))},
e:function(g){var k;return void((k=B.dUi)==null?void 0:k.call(B,g))},
c:function(g,k){return B.kdb(g,k)},
p:B.tOC,l:function(){return B.yYn()},
wpc:c?Ew7(c):void 0};var P=window===window.top?window:Nfo()?window:window.top,Y=P[x];if(Y){Y.bevasrs=c;if(Y.nqfbel!==void 0)for(x=_.p(Y.nqfbel),P=x.next();!P.done;P=x.next())P=P.value,P(c);Y.nqfbel=void 0}else Y={},Y=(Y.bevasrs=c,Y.nqfbel=void 0,Y),P[x]=Y};
QDq=function(B){var c=c===void 0?49:c;var x=[];_.ch(B,oww,6,_.xw()).forEach(function(P){_.Ph(P,2)<=c&&x.push(_.Ph(P,1))});
return x};
FyO=function(B){var c=c===void 0?49:c;var x=[];_.ch(B,oww,6,_.xw()).forEach(function(P){_.Ph(P,2)>c&&x.push(_.Ph(P,1))});
return x};
vwQ=function(B){B.then(function(){},function(){})};
Yw=function(B){return{fieldType:1,fieldName:B}};
aD=function(B){return{fieldType:2,fieldName:B}};
_.gf=function(B){return{fieldType:3,fieldName:B}};
zE7=function(){function B(){Y[0]=1732584193;Y[1]=4023233417;Y[2]=2562383102;Y[3]=271733878;Y[4]=3285377520;q=d=0}
function c(C){for(var h=k,V=0;V<64;V+=4)h[V/4]=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3];for(V=16;V<80;V++)C=h[V-3]^h[V-8]^h[V-14]^h[V-16],h[V]=(C<<1|C>>>31)&4294967295;C=Y[0];var N=Y[1],l=Y[2],E=Y[3],S=Y[4];for(V=0;V<80;V++){if(V<40)if(V<20){var M=E^N&(l^E);var f=1518500249}else M=N^l^E,f=1859775393;else V<60?(M=N&l|E&(N|l),f=2400959708):(M=N^l^E,f=3395469782);M=((C<<5|C>>>27)&4294967295)+M+S+f+h[V]&4294967295;S=E;E=l;l=(N<<30|N>>>2)&4294967295;N=C;C=M}Y[0]=Y[0]+C&4294967295;Y[1]=Y[1]+N&4294967295;Y[2]=
Y[2]+l&4294967295;Y[3]=Y[3]+E&4294967295;Y[4]=Y[4]+S&4294967295}
function x(C,h){if(typeof C==="string"){C=unescape(encodeURIComponent(C));for(var V=[],N=0,l=C.length;N<l;++N)V.push(C.charCodeAt(N));C=V}h||(h=C.length);V=0;if(d==0)for(;V+64<h;)c(C.slice(V,V+64)),V+=64,q+=64;for(;V<h;)if(g[d++]=C[V++],q++,d==64)for(d=0,c(g);V+64<h;)c(C.slice(V,V+64)),V+=64,q+=64}
function P(){var C=[],h=q*8;d<56?x(n,56-d):x(n,64-(d-56));for(var V=63;V>=56;V--)g[V]=h&255,h>>>=8;c(g);for(V=h=0;V<5;V++)for(var N=24;N>=0;N-=8)C[h++]=Y[V]>>N&255;return C}
for(var Y=[],g=[],k=[],n=[128],b=1;b<64;++b)n[b]=0;var d,q;B();return{reset:B,update:x,digest:P,digestString:function(){for(var C=P(),h="",V=0;V<C.length;V++)h+="0123456789ABCDEF".charAt(Math.floor(C[V]/16))+"0123456789ABCDEF".charAt(C[V]%16);return h}}};
Lyo=function(B,c){c=c===void 0?SqQ:c;if(!yG7){var x;B=(x=B.navigator)==null?void 0:x.userAgentData;if(!B||typeof B.getHighEntropyValues!=="function"||B.brands&&typeof B.brands.map!=="function")return Promise.reject(Error("za"));GPQ((B.brands||[]).map(function(Y){var g=new M$$;g=_.dW(g,1,Y.brand);return _.dW(g,2,Y.version)}));
typeof B.mobile==="boolean"&&_.sq(pS,2,B.mobile);yG7=B.getHighEntropyValues(c)}var P=new Set(c);return yG7.then(function(Y){var g=pS.clone();P.has("platform")&&_.dW(g,3,Y.platform);P.has("platformVersion")&&_.dW(g,4,Y.platformVersion);P.has("architecture")&&_.dW(g,5,Y.architecture);P.has("model")&&_.dW(g,6,Y.model);P.has("uaFullVersion")&&_.dW(g,7,Y.uaFullVersion);return g.serialize()}).catch(function(){return pS.serialize()})};
kw=function(B,c,x,P){this.initialValue_=B;this.maxValue_=c;this.currBaseValue_=this.currValue_=B;this.randomFactor_=x||0;this.backoffFactor_=P||2};
XC=function(B){this.src=B;this.listeners={};this.typeCount_=0};
iSo=function(){for(var B;B=ZS7.remove();){try{B.fn.call(B.scope)}catch(c){P$(c)}HS7.put(B)}fMA=!1};
_.$w=function(B){switch(B){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}};
AGO=function(B){switch(B){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""}};
_.uCq=function(){};
YxC=function(B,c,x,P){B=DHx(rGI(REo(new _.nS(1828,"0"),B),new eEY));c.length&&BbO(B,cMA(new xOo,c));P!==void 0&&(B.destinationUrl=P);var Y=new PPA(1828,"","",!1,"",B.build());_.bW(Y,B);var g=new KS({flush:function(k){try{Y.flush(k)}catch(n){x(n)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{Y.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$7833_flushTimer.setInterval(3E4);return g};
j$=function(){var B,c,x;return(x=(B=globalThis.performance)==null?void 0:(c=B.now)==null?void 0:c.call(B))!=null?x:Date.now()};
sOQ=function(B,c){if(B.disable)return new ac7;c=c?QDq(c):[];B={qU:B.qU,adn:B.yha,l0c:B.jXj,destinationUrl:B.destinationUrl,sLO:B.sLO,dVj:B.dVj};c=c===void 0?[]:c;return new gDX(B,c)};
pRx=function(B){if(!B)return null;B=_.Uq(B,2);return B===null||B===void 0?null:Wa(B)};
_.kIx=function(B){if(!B)return null;B=_.Uq(B,4);return B===null||B===void 0?null:_.kX(B)};
nDw=function(B,c){return c?XRq(c):B?$O$(B):Promise.resolve()};
XRq=function(B){return new Promise(function(c,x){var P=_.df("SCRIPT"),Y=_.kIx(B);_.Mg(P,Y);P.onload=function(){_.qH(P);c()};
P.onerror=function(){_.qH(P);x(Error("Ka"))};
(hG("HEAD")[0]||document.documentElement).appendChild(P)})};
$O$=function(B){return new Promise(function(c){var x=_.df("SCRIPT");if(B){var P=_.Uq(B,6);P=P===null||P===void 0?null:_.ST(P)}else P=null;_.Gz(x,P);(hG("HEAD")[0]||document.documentElement).appendChild(x);_.qH(x);c()})};
my=function(B,c,x){var P,Y=new Promise(function(g){P=setTimeout(g,c)});
return Promise.race([B.finally(function(){return void clearTimeout(P)}),
Y.then(x)])};
btq=function(B,c){try{return globalThis.sessionStorage.setItem(B,c),!0}catch(x){return!1}};
EDw=function(B,c,x,P){c=c===void 0?0:c;x=x===void 0?B.length:x;var Y=0;for(P&&(Y=EDw(P));c<x;c++)P=typeof B==="string"?B.charCodeAt(c):B[c],Y=OtY(31,Y)+P|0;return Y};
oD7=function(B,c){return[EDw(B,0,B.length>>1,c),EDw(B,B.length>>1)]};
QOX=function(B){var c=_.p(oD7(B,TP));B=c.next().value;c=c.next().value;return B.toString(16)+c.toString(16)};
F_d=function(B,c){var x=oD7(c);B=new Uint32Array(B.buffer);c=B[0];var P=_.p(x);x=P.next().value;P=P.next().value;for(var Y=1;Y<B.length;Y+=2){for(var g=c,k=Y,n=x,b=P,d=0;d<22;d++)k=k>>>8|k<<24,k+=g|0,k^=n+38293,g=g<<3|g>>>29,g^=k,b=b>>>8|b<<24,b+=n|0,b^=d+38293,n=n<<3|n>>>29,n^=b;g=[g,k];B[Y]^=g[0];Y+1<B.length&&(B[Y+1]^=g[1])}};
vDA=function(B,c,x,P,Y){var g=(4-(TP.length+x.length)%4)%4,k=new Uint8Array(4+g+TP.length+4+x.length),n=new DataView(k.buffer),b=0;n.setUint32(b,Math.random()*4294967295);b=b+4+g;k.set(TP,b);b+=TP.length;n.setUint32(b,Y);k.set(x,b+4);F_d(k,P);return B.insert(c,function(d){return void globalThis.sessionStorage.removeItem(d)})?btq(c,_.PN(k))?"s":"t":"i"};
zzo=function(B,c){var x=globalThis.sessionStorage.getItem(B);if(!x)return["m"];try{var P=_.kF(x);F_d(P,c)}catch(Y){return globalThis.sessionStorage.removeItem(B),["c"]}for(c=4;c<7&&P[c]===0;)c++;for(x=0;x<TP.length;x++)if(P[c++]!==TP[x])return globalThis.sessionStorage.removeItem(B),["d"];x=(new DataView(P.buffer)).getUint32(c);return Math.floor(Date.now()/1E3)>=x?(globalThis.sessionStorage.removeItem(B),["e"]):["a",new Uint8Array(P.buffer,c+4)]};
SxY=function(B){return globalThis.TextEncoder?(new TextEncoder).encode(B):_.V_(B)};
yMq=function(B){var c=B,x;return function(){if(c){var P=c;c=void 0;x=P.apply(this,arguments)}return x}};
MwO=function(B){return MQ(function(c){if(c instanceof B)return!0;var x,P,Y=c==null?void 0:(x=c.ownerDocument)==null?void 0:(P=x.defaultView)==null?void 0:P[B.name];return GI7(Y)&&c instanceof Y})};
_.NH=function(B,c,x){_.tG.call(this);this.JSC$8046_listener_=B;this.JSC$8046_interval_=c||0;this.handler_=x;this.callback_=(0,_.wf)(this.JSC$8048_doAction_,this)};
_.ID=function(B){B=L_Y(B);return _.kX(B)};
L_Y=function(B){return B===null?"null":B===void 0?"undefined":B};
Htd=function(B){if(B&&B.focus)if(B!==document.activeElement)B.focus();else return Zt$(function(){return _.X(function(c){document.activeElement&&document.activeElement.blur();return c.return(Zt$(function(){B.focus()}))})})};
_.fcx=function(B){var c=c===void 0?5:c;setTimeout(function(){var x;return _.X(function(P){P.nextAddress==1&&(x=document.activeElement);if(P.nextAddress!=5)return(document.activeElement===x||document.activeElement===document.body)&&c>=0&&B?_.K(P,Htd(B),5):P.jumpTo(0);if(document.activeElement===B)return P.return();B=B.parentElement;--c;return P.jumpTo(2)})},15)};
Zt$=function(B){return new Promise(function(c){requestAnimationFrame(function(){c(B())})})};
AMX=function(B){if(_.JG)B(_.JG);else{var c;((c=itX)!=null?c:itX=[]).push(B)}};
lW=function(){!_.JG&&_.Wh&&_.uSx(_.Wh());return _.JG};
_.uSx=function(B){_.JG=B;var c;(c=itX)==null||c.forEach(AMX);itX=void 0};
_.Eq=function(B){_.JG&&_.JG.beforeLoadModuleCode(B)};
_.Oq=function(){_.JG&&_.JG.JSC$9002_setLoaded()};
oD=function(B){return vs(B)?Number(B):String(B)};
DOY=function(B){this.action=B;this.wfv=!1};
rMA=function(B,c){DOY.call(this,"set-drive-options");this.appId=B;this.appOrigin=c};
Rzl=function(B){DOY.call(this,"visibility");this.visible=B};
ezl=function(B,c,x){Q_.call(this,B,c,x)};
BDw=function(B){FC.call(this,B)};
cR7=function(B){B=B&&B.getWindow()||window;return B.gadgets&&B.gadgets.rpc};
Pk7=function(B,c){var x=c&&c.getWindow()||window;if(cR7(c))B();else if(xRq)xRq.push(B);else var P=xRq=[B],Y=x.setInterval(function(){if(cR7(c)){x.clearInterval(Y);for(var g=0;g<P.length;g++)P[g]();xRq=null}},100)};
agI=function(B,c){var x=new vh(B);_.bW(c,x);var P={passive:!1};c.listen(x,"mousewheel",function(Y){return void YsQ(B,Y)},P).listen(B,"scroll",function(Y){return void YsQ(B,Y)},P)};
YsQ=function(B,c){var x;a:{for(x=c.target;x;){if(x.nodeType==1){var P=_.zP(x,"overflowY");if(P=="auto"||P=="scroll")break a}x=x.parentNode}x=null}if(!x||!_.GP(B,x)||x.scrollHeight==x.clientHeight||c.deltaY>0&&Math.abs(x.scrollTop-(x.scrollHeight-x.clientHeight))<=1||c.deltaY<0&&x.scrollTop==0)c.preventDefault(),c.stopPropagation()};
AG=function(B,c,x,P,Y,g,k,n,b){n=n===void 0?!1:n;b=b===void 0?!1:b;Q_.call(this,void 0,void 0,void 0);Q_.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,x);_.MH(B,"protocol");this.iframeManager_=new g6d;this.targetId_=LS();this.rpcToken_=LS();B=_.ZM(B);_.Hh(B,"hostId");x=_.Hh(B,"parent");this.useGapi_=!b&&!0||(x==null?void 0:x.includes("onepick.corp.google.com"));n&&_.fS(B,"fv2","true");this.setUrl(B.toString());this.preferredDialogWidth_=P;this.preferredDialogHeight_=Y;P!==void 0||
Y!==void 0?P=!0:(P=_.Hh(_.ZM(B.toString()),"hostId"),stX||(stX=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),P=!stX.has(P));this.autoSizeDialog_=P;this.JSC$8236_gadgetsDomHelper_=k||this.JSC$8187_dom_;c&&(k=this.JSC$8236_gadgetsDomHelper_,c=_.Hh(_.ZM(this.JSC$8238_url_),"grugl")=="true"?p5l:kuX,cR7(k)||(k=k||Ud(document),P=k.createElement("SCRIPT"),_.Mg(P,c),P.type="text/javascript",k.JSC$7372_document_.body.appendChild(P)));
B=B.toString();c=null;k=B.indexOf("/picker?");k>-1?c=B.substring(0,k+8-1):gC(B,"/picker")&&(c=B);c&&this.setRelayUrl(c+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(B=this.buttons_,B.JSC$8221_element_=this.buttonEl_,B.render()):_.L6(this.buttonEl_,X5O),_.iW(this.buttonEl_,!!this.buttons_))};
_.KVw=function(B){var c=c===void 0?$Ro:c;var x=_.Py(B),P=function(g){g=_.p(g);g.next();g=uW(g);return c(x,g)},Y=function(g){var k=_.p(g);
g=k.next().value;k=uW(k);return B.apply(g,k)};
return function(){var g=_.ts.apply(0,arguments),k=this||_.xI,n=n6O.get(k);n||(n={},n6O.set(k,n));return baq(n,[this].concat(_.wq(g)),Y,P)}};
DM=function(B){var c={};B=B.replace(/\r/g,"").split("\n");for(var x=0;x<B.length;x++){var P=B[x],Y=P.indexOf(":");Y<0||(c[P.substring(0,Y)]=P.substring(Y+2,P.length))}return c};
rf=function(B,c,x){x=x===void 0?function(){}:x;
return B?c():x()};
_.UR$=function(B){var c;return((c=jtY.documentOverride)!=null?c:B).__wizdispatcher};
_.e$=function(B){var c=RD;RD=B;return c};
qsd=function(B){return B===dRw||(B==null?void 0:B.name)==="\u0275NotFound"};
CkX=function(B,c){var x;if((x=B)==null?0:x.isDisposed)throw Error("ob`"+String(B.debugName));for(;B!==void 0;){x=B;if(x.retrieve)return x.retrieve(c,{optional:!0});B=B.parent}return dRw};
BR=function(B){return{"\u0275prov":{providedIn:"root",token:Symbol(B),factory:void 0,value:void 0}}};
_.h2q=function(B){var c=RD;if(!c){switch(B===void 0?3:B){case 0:B=Error("nb");break;case 1:B=Error("pb");break;case 2:B=Error("qb");break;default:B=Error("rb")}throw B;}return c};
mRC=function(B){var c=_.e$(B);B={};return B[Symbol.dispose]=function(){_.e$(c)},B};
TDA=function(B,c){B.disposables||(B.disposables=[]);B.disposables.push(c)};
cR=function(B){var c=RD;c&&!c.isDisposed&&(TDA(c,B),B.parent=c)};
tIx=function(B){if(B.disposables){for(var c=_.p(B.disposables),x=c.next();!x.done;x=c.next())x=x.value,typeof x==="function"?x():VIw(x);B.disposables.length=0}};
VIw=function(B){if(!B.isDisposed){B.isDisposed=!0;var c;(c=B[Symbol.dispose])==null||c.call(B);delete B.parent;tIx(B)}};
o6l=function(B){var c={retrieve:function(x){switch(x.\u0275prov.token){case w5q.\u0275prov.token:var P=B.asyncDeps;break;case NDq.\u0275prov.token:P=B.rootElement;break;case IgA.\u0275prov.token:P=B.modelRootElement;break;case JRA.\u0275prov.token:P=B.appContext;break;case WVC.\u0275prov.token:P=B.rendererData;break;case lg7.\u0275prov.token:P=B.injectingConstructor;break;case E6o.\u0275prov.token:P=B.dispatcher}if(P)x=P;else a:{for(P=c.parent;P;){var Y=P;if(Y.retrieve){x=Y.retrieve(x);break a}P=
P.parent}P=x.\u0275prov.token;Y=Oax[P];Y!==void 0?x=Y:(Y=x.\u0275prov.providedIn,x.\u0275prov.factory?(x=x.\u0275prov.factory(),P&&Y==="root"&&(Oax[P]=x)):x=dRw)}return x}};
cR(c);return c};
Qt7=function(){var B=_.h2q(1),c=CkX(B,JRA);qsd(c)&&(B=CkX(B,E6o),qsd(B)||B.getOptionalAppContext())};
FVd=function(B){if(typeof document!=="undefined"&&document&&document.getElementById&&(B=document.getElementById(B))){var c=B.tagName.toUpperCase();if(c=="SCRIPT"||c=="LINK")return B}return null};
z2Q=function(B,c){if((B=B===void 0?"":B)&&c)throw Error("xb");var x="";var P=_.xI._F_jsUrl;(B=c||FVd(B))&&(x=B.src?B.src:B.getAttribute("href"));if(P&&x){if(P!=x)throw Error("yb`"+P+"`"+x);x=P}else x=P||x;if(!v6q(x))throw Error("zb");return x};
MIX=function(){if(!Ss$){Ss$=!0;try{var B=z2Q(_.xI._F_jsUrl?"":"base-js")}catch(P){return}var c=yRA(Gu$(B)),x=Object.keys(c);x.length!==0&&AMX(function(P){for(var Y=_.p(x),g=Y.next();!g.done;g=Y.next()){g=g.value;for(var k=_.p(Object.keys(c[g])),n=k.next();!n.done;n=k.next())P.addExtraEdge(g,n.value)}})}};
ZaC=function(){var B=Object.assign({},LVO);Object.getOwnPropertyNames(LVO).forEach(function(c){_.xD[c]!==void 0&&(B[c]=_.xD[c])});
return B};
HaX=function(B,c){if(_.xD.enablePerformanceTiming){var x,P;(P=(x=performance).mark)==null||P.call(x,B+"Start__"+c)}};
fg$=function(B,c){if(_.xD.enablePerformanceTiming){var x,P;(P=(x=performance).measure)==null||P.call(x,B+"__"+c,B+"Start__"+c)}};
iaC=function(B,c,x){var P;return B&&c?B+"__"+c:(P=B!=null?B:c)!=null?P:x};
uPC=function(B,c){var x=Object.create(ARQ);x.debugName=c;!RD||cR(x);c=_.e$(x);try{B(x)}finally{_.e$(c)}return function(){return void VIw(x)}};
rRo=function(B){return PR(B)&&DR$ in B};
R2l=function(B,c){return Object.is(B,c)};
aO=function(B){var c=YD;YD=B;return c};
xD$=function(B){if(gb)throw Error("da");if(YD!==null){var c=YD.nextProducerIndex++;e2X(YD);c<YD.producerNode.length&&YD.producerNode[c]!==B&&sx(YD)&&BrO(YD.producerNode[c],YD.producerIndexOfThis[c]);YD.producerNode[c]!==B&&(YD.producerNode[c]=B,YD.producerIndexOfThis[c]=sx(YD)?cKQ(B,YD,c):0);YD.producerLastReadVersion[c]=B.version}};
atx=function(B){if(!sx(B)||B.dirty)if(B.dirty||B.lastCleanEpoch!==PpA)(B.producerMustRecompute(B)||Y47(B))&&B.producerRecomputeValue(B),B.dirty=!1,B.lastCleanEpoch=PpA};
gu7=function(B){if(B.liveConsumerNode!==void 0){var c=gb;gb=!0;try{for(var x=_.p(B.liveConsumerNode),P=x.next();!P.done;P=x.next()){var Y=P.value;Y.dirty||(B=void 0,Y.dirty=!0,gu7(Y),(B=Y.consumerMarkedDirty)==null||B.call(Y,Y))}}finally{gb=c}}};
sHO=function(){var B;return((B=YD)==null?void 0:B.consumerAllowSignalWrites)!==!1};
ppq=function(B){B&&(B.nextProducerIndex=0);return aO(B)};
kwl=function(B,c){aO(c);if(B&&B.producerNode!==void 0&&B.producerIndexOfThis!==void 0&&B.producerLastReadVersion!==void 0){if(sx(B))for(c=B.nextProducerIndex;c<B.producerNode.length;c++)BrO(B.producerNode[c],B.producerIndexOfThis[c]);for(;B.producerNode.length>B.nextProducerIndex;)B.producerNode.pop(),B.producerLastReadVersion.pop(),B.producerIndexOfThis.pop()}};
Y47=function(B){e2X(B);for(var c=0;c<B.producerNode.length;c++){var x=B.producerNode[c],P=B.producerLastReadVersion[c];if(P!==x.version)return!0;atx(x);if(P!==x.version)return!0}return!1};
cKQ=function(B,c,x){XpO(B);if(B.liveConsumerNode.length===0&&B.producerNode!==void 0)for(var P=0;P<B.producerNode.length;P++)B.producerIndexOfThis[P]=cKQ(B.producerNode[P],B,P);B.liveConsumerIndexOfThis.push(x);return B.liveConsumerNode.push(c)-1};
BrO=function(B,c){XpO(B);if(B.liveConsumerNode.length===1&&B.producerNode!==void 0)for(var x=0;x<B.producerNode.length;x++)BrO(B.producerNode[x],B.producerIndexOfThis[x]);x=B.liveConsumerNode.length-1;B.liveConsumerNode[c]=B.liveConsumerNode[x];B.liveConsumerIndexOfThis[c]=B.liveConsumerIndexOfThis[x];B.liveConsumerNode.length--;B.liveConsumerIndexOfThis.length--;c<B.liveConsumerNode.length&&(x=B.liveConsumerIndexOfThis[c],B=B.liveConsumerNode[c],e2X(B),B.producerIndexOfThis[x]=c)};
sx=function(B){var c,x;return B.consumerIsAlwaysLive||((x=B==null?void 0:(c=B.liveConsumerNode)==null?void 0:c.length)!=null?x:0)>0};
e2X=function(B){B.producerNode!=null||(B.producerNode=[]);B.producerIndexOfThis!=null||(B.producerIndexOfThis=[]);B.producerLastReadVersion!=null||(B.producerLastReadVersion=[])};
XpO=function(B){B.liveConsumerNode!=null||(B.liveConsumerNode=[]);B.liveConsumerIndexOfThis!=null||(B.liveConsumerIndexOfThis=[])};
nuA=function(B){var c=Object.create($DA);c.computation=B;B=function(){atx(c);xD$(c);if(c.value===pt)throw c.error;return c.value};
B[kD]=c;return B};
UDI=function(B,c){var x=Object.create(bUd);x.value=B;c!==void 0&&(x.equal=c);B=function(){xD$(x);return x.value};
B[kD]=x;return[B,function(P){return KcO(x,P)},
function(P){sHO()||jHo(x);KcO(x,P(x.value))}]};
KcO=function(B,c){sHO()||jHo(B);if(!B.equal(B.value,c)){B.value=c;B.version++;PpA++;gu7(B);var x;(x=dD7)==null||x(B)}};
XS=function(B){var c=aO(null);try{return B()}finally{aO(c)}};
_.$D=function(B,c,x){x=x===void 0?"":x;B=UDI(B,c==null?void 0:c.equals);var P=B[0],Y=P[kD];Y.debugName=iaC(c==null?void 0:c.debugName,x,"[signal]");if(!_.xD.enablePerformanceTiming)return B;var g=B[1],k=B[2];return[P,function(n){q4C(function(){return void g(n)},Y)},
function(n){q4C(function(){return void k(n)},Y)}]};
q4C=function(B,c){HaX("signalSet",c.debugName);try{B()}finally{fg$("signalSet",c.debugName)}};
h1X=function(B,c){var x=_.p(_.$D(B,void 0,"cPpJzc"));B=x.next().value;x=x.next().value;B[CpQ]=x;B[bP]=c;return B};
mDO=function(B){return!!B&&typeof B==="object"&&Object.getPrototypeOf(B)===Object.prototype};
Trl=function(B){return typeof B==="function"&&CpQ in B&&typeof B[CpQ]==="function"};
VRw=function(B,c){Object.defineProperty(B,bP,{get:function(){return c}})};
jw=function(B,c){if(Kt(B)){var x=B.map(function(g){return jw(g,c)});
VRw(x,c);return x}if(mDO(B)){x={};B=_.p(Object.entries(B));for(var P=B.next();!P.done;P=B.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;x[P]=jw(Y,c)}VRw(x,c);return x}return h1X(B,c)};
tR7=function(B){if(Kt(B))return B.map(function(Y){return tR7(Y)});
if(mDO(B)){var c={};B=_.p(Object.entries(B));for(var x=B.next();!x.done;x=B.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;c[x]=tR7(P)}return c}return Trl(B)?B():B};
NrO=function(){var B={height:0,width:0};if(!mDO(B))throw Error("Lb");var c=Symbol("Mb");return[jw(B,c),function(x,P){if(x[bP]===c)if(typeof P==="function"){var Y=[].concat(_.wq(tR7(x)));P=P(Y)||Y;wpA(x,[].concat(_.wq(P)))}else wpA(x,P);else throw Error("Nb");}]};
wpA=function(B,c){if(Trl(B))B[CpQ](c);else if(Kt(B)&&Kt(c))c=jw(c,B[bP]),B.length=0,B.push.apply(B,_.wq(c));else if((mDO(B)||Kt(B))&&(Kt(c)||typeof c==="object"&&c!==null)){c=_.p(Object.entries(c));for(var x=c.next();!x.done;x=c.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;var Y=B,g=Y[x];Object.hasOwn(B,x)?wpA(g,P):Y[x]=jw(P,B[bP])}}else throw Error("Ob");};
ItY=function(B){return Object.create(Object.assign({},Ux,B))};
WcC=function(){var B;return(B=JKw)!=null?B:JKw=ItY({consumerAllowSignalWrites:!0})};
_.db=function(B,c,x){x=x===void 0?"":x;B=nuA(B);var P=B[kD];P.debugName=iaC(c==null?void 0:c.debugName,x,"[computed]");(c==null?void 0:c.equals)!=null&&(P.equal=c.equals);return B};
qO=function(B){var c=aO(lt7);try{B()}finally{aO(c)}};
z1x=function(B){if(!B.isDisposed)switch(B.effectType){case Eux:OUO.schedule(B);break;case ouI:QHO.schedule(B);break;case Fc7:vuQ.schedule(B);break;default:_.kz(B.effectType)}};
yK7=function(B){S47.push(B);return function(){var c=S47.indexOf(B);c!==-1&&S47.splice(c,1)}};
MRx=function(){if(Ct>0)_.xD.flushRenderEffectsDuringRender&&OUO.flush();else for(var B=_.p(Gwd),c=B.next();!c.done;c=B.next())c.value.flush()};
ZUC=function(B){hM=!0;try{for(var c=_.p(B),x=c.next();!x.done;x=c.next()){for(var P=x.value,Y=[P],g=P;g.parent!==void 0;)g=g.parent,Lcx(g)&&B.has(g)&&Y.push(g);for(;Y.length>0;){var k=Y.pop();B.delete(k);k.run()}}}finally{hM=!1}};
m_=function(B){Ct--;if(B){B=_.p(Gwd);for(var c=B.next();!c.done;c=B.next())c.value.clear()}else Ct>0||hM&&!_.xD.flushRenderEffectsDuringRender||MRx()};
ft$=function(B,c,x){var P=HUo(B);TI={name:x?P+" ("+x+")":P,isReactive:B.componentType!==VG,parent:TI};B=c();TI=TI.parent;return B};
tM=function(){var B=TI;return B?B.isReactive:!1};
NO=function(B,c){var x=TI;c&&(TI=c);try{return B()}catch(g){B=g;wb(B,TI);if(B!==iUx){AKC=TI;c=[];for(var P=RD;P;){var Y=void 0;c.push((Y=P.debugName)!=null?Y:"[context]");Y=void 0;P=(Y=P.parent)!=null?Y:null}u47=c.reverse()}iUx=B;throw B;}finally{TI=x}};
wb=function(B,c){try{var x=DD$(c);if(x&&!B.componentStack&&(B.componentStack=x,_.xD.enableComponentStacksInErrorMessages)){var P=B.message+"\n\nComponent stack: "+x;B.stack&&(B.stack=B.stack.replace(B.message,P));B.message=P}}catch(Y){}};
DD$=function(B){if(PR(B)&&B.name!==void 0&&B.isReactive!==void 0&&B.parent!==void 0||B===null){for(var c=0,x="";c<20&&B;)x+=B.name+" > ",B=B.parent,c++;B=x.slice(0,-3)}else if(_.xD.enableContextBasedComponentStacks){a:{for(B=B===void 0?RD:B;B;){if(rRo(B))break a;c=void 0;B=(c=B.parent)!=null?c:null}B=null}B=B.getComponentStack().slice(0,20).join(" > ")}else B="";return B};
HUo=function(B){return B.debugName||B.name||"[component]"};
rKC=function(B,c,x){c=Object.create(c);c.effectFn=B;x&&(c.debugName=x);cR(c);c.componentStack=TI;return c};
_.IO=function(B,c){B=rKC(B,R1$,c);z1x(B)};
_.lP=function(B){var c=RD;if(c){var x=TI;TDA(c,function(){var P=aO(WcC());try{NO(function(){return void B()},x)}catch(Y){throw _.xD.enableContextBasedComponentStacks&&wb(Y),Y;
}finally{aO(P)}})}};
Ex=function(B,c){var x={};(c===void 0||c)&&cR(x);c=_.e$(x);try{B(x)}finally{_.e$(c)}return function(){return void VIw(x)}};
_.Ox=function(B){return typeof B==="function"?B():(B==null?0:B[e17])?B.get():B};
_.oO=function(B,c){B=rKC(B,BK7,c);z1x(B)};
cjX=function(B){if(RD)throw Error("sb");Ex(B,!1)};
QG=function(B,c){B=_.e$(B);try{return XS(c)}finally{_.e$(B)}};
_.zI=function(B,c){var x=DD$(AKC),P,Y;var g=(Y=(P=u47)==null?void 0:P.slice())!=null?Y:[];c={componentStack:x,contextTrace:g,errorSeverity:3,featureFlags:ZaC(),tagName:c};return[B,c]};
YEw=function(B,c,x){if(Object.hasOwnProperty.call(x6l,B)&&(B=x6l[B],Object.hasOwnProperty.call(B,c)&&(B=B[c],B instanceof Array))){for(var P=null,Y=!1,g=0,k=B.length;g<k;++g){var n=B[g],b=n.contingentAttribute;if(!b)return n.contract;P===null&&(P={});b=Object.hasOwnProperty.call(P,b)?P[b]:P[b]=x(b);if(b===n.requiredValue)return n.contract;b==null&&(Y=!0)}if(Y)return null}c=Pro[c];return typeof c==="number"?c:null};
sxC=function(B,c,x){var P=null;(B=a$Y[B])&&(P=B[c]);return typeof P!=="number"&&((B=a$Y["*"])&&(P=B[c]),typeof P!=="number")?!1:!0===gr7[P][String(x).toLowerCase()]};
k6l=function(B,c){c=YEw(B.toLowerCase(),c,function(){var P;(P=_.xD.handleError)==null||P.call.apply(P,[_.xD].concat(_.wq(_.zI(Error("Sb"),B.toLowerCase()))))});
if(c===null)return null;var x;return(x=pAx[c])!=null?x:null};
XAQ=function(B,c,x){if(x===null||x===void 0)return x;B=k6l(B,c);return B===null?x:B(c,x)};
$6O=function(){};
Sw=function(B,c){for(;B.length>c;)B.pop()};
nr7=function(B){B=Array(B);Sw(B,0);return B};
bpQ=function(B,c,x){if(x==null)B.removeAttribute(c);else{var P;(P=c.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":c.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?B.setAttributeNS(P,c,x):B.setAttribute(c,x)}};
K1d=function(B,c,x){B[c]=x};
U67=function(B,c,x){B=B.style;if(typeof x==="string")B.cssText=x;else{B.cssText="";for(var P in x)if(jxq.call(x,P)){c=B;var Y=P,g=x[P];Y.indexOf("-")>=0?c.setProperty(Y,g):c[Y]=g}}};
d6C=function(B,c,x){var P=typeof x;P==="object"||P==="function"?B[c]=x:bpQ(B,c,x)};
qEX=function(){var B=new $6O;B[yG.default]=d6C;B.style=U67;return B};
Cr7=function(B,c,x,P){(P[c]||P[yG.default])(B,c,x)};
m6l=function(B,c,x){c=new hUY(c,x);return B.__incrementalDOMData=c};
GI=function(B,c){if(B.__incrementalDOMData)return B.__incrementalDOMData;var x=B.nodeType===1?B.localName:B.nodeName,P=B.nodeType===1?B.getAttribute("key"):null;c=m6l(B,x,B.nodeType===1?P||c:null);if(B.nodeType===1&&(B=B.attributes,x=B.length)){P=c._attrsArr||(c._attrsArr=nr7(x*2));for(var Y=0,g=0;Y<x;Y+=1,g+=2){var k=B[Y],n=k.value;P[g]=k.name;P[g+1]=n}}return c};
TKl=function(B,c,x,P,Y){return c==x&&P==Y};
Vld=function(B){for(var c=MO,x=Lt();x!==B;){var P=x.nextSibling;c.removeChild(x);Zc.deleted.push(x);x=P}};
Lt=function(){return HR?HR.nextSibling:MO.firstChild};
ft=function(){HR=Lt()};
NKX=function(B,c,x){ft();var P;a:{if(P=HR){do{var Y=P,g=B,k=c,n=GI(Y,k);if(tlA(Y,g,n.nameOrCtor,k,n.key))break a}while(c&&(P=P.nextSibling))}P=null}P||(B==="#text"?(x=iP.createTextNode(""),m6l(x,"#text",null),B=x):(P=iP,Y=MO,typeof B==="function"?P=new B:P=(Y=B==="svg"?"http://www.w3.org/2000/svg":B==="math"?"http://www.w3.org/1998/Math/MathML":Y==null||GI(Y).nameOrCtor==="foreignObject"?null:Y.namespaceURI)?P.createElementNS(Y,B):P.createElement(B),m6l(P,B,c),B=P,x&&B.setAttribute("nonce",x)),Zc.created.push(B),
P=B);x=P;if(x!==HR){if(wAY.indexOf(x)>=0)for(B=MO,c=x.nextSibling,P=HR;P!==null&&P!==x;)Y=P.nextSibling,B.insertBefore(P,c),P=Y;else MO.insertBefore(x,HR);HR=x}};
I$l=function(B,c,x){NKX(B,c,x);MO=HR;HR=null;return MO};
JjI=function(){Vld(null);HR=MO;MO=MO.parentNode};
AM=function(){HR=MO.lastChild};
Ero=function(B,c){c=c===void 0?{}:c;var x=c.matches===void 0?TKl:c.matches;return function(P,Y,g){var k=Zc,n=iP,b=wAY,d=uP,q=Dc,C=HR,h=MO,V=tlA;iP=P.ownerDocument;Zc=new W1o(P);tlA=x;uP=[];Dc=[];HR=null;var N=MO=P.parentNode,l,E=l$d.call(P);if((l=E.nodeType===11||E.nodeType===9?E.activeElement:null)&&P.contains(l)){for(E=[];l!==N;)E.push(l),l=l.parentNode||(N?l.host:null);N=E}else N=[];wAY=N;try{return B(P,Y,g)}finally{P=Zc,rb&&P.deleted.length>0&&rb(P.deleted),iP=n,Zc=k,tlA=V,uP=d,Dc=q,HR=C,MO=h,
wAY=b}}};
OpY=function(B,c,x,P){RO.push(Cr7);RO.push(B);RO.push(c);RO.push(x);RO.push(P)};
QxQ=function(B,c,x){var P=Dc;c=c._attrsArr||(c._attrsArr=nr7(P.length));for(var Y=!c.length||!1,g=0;g<P.length;g+=2){var k=P[g];if(Y)c[g]=k;else if(c[g]!==k)break;var n=P[g+1];if(Y||c[g+1]!==n)c[g+1]=n,OpY(B,k,n,x)}if(g<P.length||g<c.length){for(g=Y=g;g<c.length;g+=2)ew[c[g]]=c[g+1];for(g=Y;g<P.length;g+=2)Y=P[g],k=P[g+1],ew[Y]!==k&&OpY(B,Y,k,x),c[g]=Y,c[g+1]=k,delete ew[Y];Sw(c,P.length);for(var b in ew)OpY(B,b,void 0,x),delete ew[b]}B=orC;orC=x=RO.length;for(b=B;b<x;b+=5)(0,RO[b])(RO[b+1],RO[b+
2],RO[b+3],RO[b+4]);orC=B;Sw(RO,B);Sw(P,0)};
B5=function(B){NKX("#text",null);var c=HR;var x=GI(c);if(x.text!==B){x=x.text=B;for(var P=1;P<arguments.length;P+=1)x=(0,arguments[P])(x);c.data!==x&&(c.data=x)}};
G6I=function(B,c,x){if(x===!1&&F1l.has(c))bpQ(B,c,null);else if(c!=="idomKey"&&c!=="skip"&&c!=="skipchildren"&&c!=="children"&&c!=="el")if(c.startsWith("on"))if(c[2]===":")if(x===void 0||x===null){var P;(P=_.xD.handleError)==null||P.call.apply(P,[_.xD].concat(_.wq(_.zI(Error("Wb`"+c),B.tagName))));B[c]=void 0}else{var Y=c.slice(3);P=tM();if(Y==="jsaction"){x=_.p(Array.isArray(x)?x:[x]);for(var g=x.next();!g.done;g=x.next()){g=g.value;if(typeof g!=="object"||g===null||typeof g.selfReg!=="function")throw Error("Zb`"+
c);g.selfReg(0,B,P?_.lP:function(){})}}else{if(typeof x!=="object"||x===null)throw Error("Xb`"+c+"`"+typeof x);
if(typeof x.getFn!=="function")throw Error("Yb`"+c+"`"+Object.keys(x));if(x.selfReg)x.selfReg(0,B,Y,P?_.lP:function(){});
else if(P&&B["on"+Y]===void 0){var k=x.getFn(0);B.addEventListener(Y,k);_.lP(function(){return void B.removeEventListener(Y,k)})}else if(P||!vrq.includes(Y))B["on"+Y]=x.getFn(0)}}else zUO(B,c,x);
else{if(c.startsWith("data-")&&typeof x==="string")try{x=SEl(x)}catch(n){x="zSoyz"}typeof x!=="function"||B._disposeEffects!=null?(_.xD.enableAttributeSanitization&&(x=XAQ(B.tagName,c,x)),c==="style"?("function"==typeof _.x6&&x instanceof _.x6&&(x=x.toString()),yjw(B,c,x)):c.startsWith("prop:")?(c=c.slice(5),B[c]=x):zUO(B,c,x)):(B._signalProps||(B._signalProps=[]),B._signalValues||(B._signalValues=[]),B._signalProps.push(c))}};
MlO=function(B,c,x){x=(x===void 0?{}:x).isReactive;if(c==null?0:c.el){var P=c.el;if(typeof P==="function")P(B);else{var Y;(Y=P.onRender)==null||Y.call(P,B);B._disposeRef||(B._disposeRef=function(){var g;(g=P.onUnmount)==null||g.call(P);delete B._disposeRef},x&&_.lP(function(){var g;
return void((g=B._disposeRef)==null?void 0:g.call(B))}))}}};
L17=function(B){return PR(B)&&P5 in B};
Zpx=function(B){return L17(B)?B[P5].flattened:B};
Hpo=function(B,c){var x=_.ts.apply(2,arguments),P;c=(P=c)!=null?P:{};P={};return P.type=B,P.props=c,P.children=x,P[Y6]=!0,P};
_.at=function(B){return B.children};
gD=function(B){var c=f$C!==Hpo;f$C=B?ipC:Hpo;return c};
_.ss=function(B){return _.xF(B)?"nodeType"in B:!1};
pa=function(){return document.createTextNode("")};
k6=function(B){B=document.createTextNode(String(B));B._isSignalTextNode=!0;return B};
rjw=function(B){var c=document.createElement("div");if(AjQ(B)&&pRx(B))_.L6(c,pRx(B));else if(B instanceof Js)_.L6(c,B);else if(u1C(B)){if(B.contentKind!==D6X)throw Error("Vb");B=Wa(B.toString());_.L6(c,B)}B=_.p(c.childNodes);for(var x=B.next();!x.done;x=B.next())x.value._isSafeOrSanitizedHtmlNode=!0;return c};
XP=function(B){B=typeof B;return B==="string"||B==="number"||B==="boolean"};
RUo=function(B){return B instanceof p6||jT(B)||"function"==typeof _.f6&&B instanceof _.f6||"function"==typeof _.x6&&B instanceof _.x6};
eUd=function(B,c){var x=B.parentElement;if(!x)return c;x.replaceChild(c,B);return c};
BUC=function(B,c){var x=B[0].parentElement;if(x)if(B[0].previousSibling||B[B.length-1].nextSibling){x.insertBefore(c,B[0]);for(var P=B.length-1;P>=0;P--)x.removeChild(B[P])}else x.textContent="",x.appendChild(c);return c};
cP7=function(B,c){if(B[0].parentElement)for(var x=B[0].parentElement,P=c.length,Y=B.length,g=P,k=0,n=0,b=B[Y-1].nextSibling,d=null;k<Y||n<g;)if(B[k]===c[n])k++,n++;else{for(;B[Y-1]===c[g-1];)Y--,g--;if(Y===k)for(var q=g<P?n?c[n-1].nextSibling:c[g-n]:b;n<g;){var C=c[n++];x.insertBefore(C,q)}else if(g===n)for(;k<Y;)q=B[k],d&&d.has(q)||x.removeChild(q),k++;else if(B[k]===c[g-1]&&c[n]===B[Y-1])q=B[--Y].nextSibling,x.insertBefore(c[n++],B[k++].nextSibling),x.insertBefore(c[--g],q),B[Y]=c[g];else{if(!d)for(d=
new Map,q=n;q<g;)d.set(c[q],q++);q=d.get(B[k]);if(q==null)x.removeChild(B[k]),k++;else if(n<q&&q<g){C=k;for(var h=1,V=void 0;++C<Y&&C<g&&(V=d.get(B[C]))!=null&&V===q+h;)h++;if(h>q-n)for(C=B[k];n<q;)x.insertBefore(c[n++],C);else x.replaceChild(c[n++],B[k++])}else k++}}return c};
Pbd=function(B){if(Array.isArray(B)){if(B.length>1)throw Error("hc`"+B.length+"`"+B.map(xao).join(", "));B=B[0]}if(B==null)return null;if(!(B instanceof _.zz)){var c,x;if((c=window)==null?0:(x=c.trustedTypes)==null?0:x.isScript(B))throw Error("gc");if(String(B).trim().length===0)return null;throw Error("ic`"+xao(B));}return B};
YbI=function(B){if(Array.isArray(B)){if(B.length>1)throw Error("jc`"+B.length+"`"+B.map(xao).join(", "));B=B[0]}if(B==null)return null;if(!Tto(B)){if(String(B).trim().length===0)return null;throw Error("kc`"+xao(B));}return B};
xao=function(B){return"("+typeof B+") "+(B!=null&&typeof B==="object"?B.constructor.name:typeof B)+" "+B};
na=function(B,c){c=c===void 0?{}:c;var x=a6l();_.xD.legacyTriggerSoyRendererEvents&&Qt7();_.oO(function(){c.isControlFlowComponent&&Ct++;var P=x[0],Y=x[P5].flattened,g=gD(!0);try{var k=B(),n=g4w(P,k,x);Array.isArray(n)||(x[P5].flattened=[n]);var b=x[P5].flattened;if(Y&&(!Array.isArray(Y)||Y.length!==0)){var d=Array.isArray(Y)?Y[0]:Y,q=d[$6],C=d._disposeEffects;d._disposeEffects=void 0;d=Array.isArray(b)?b[0]:b;d[$6]=q;d[$6]&&(d[$6].numNodes=d===b?1:b.length);d._disposeEffects=C}x[0]=n;c.isControlFlowComponent&&
m_(!1)}catch(h){throw c.isControlFlowComponent&&m_(!0),h;}finally{gD(g)}},c.debugName);
return x};
g4w=function(B,c,x){for(;typeof c==="function";)c=c();if(c!=null&&c[Y6]){var P,Y,g;(g=_.xD.handleError)==null||g.call.apply(g,[_.xD].concat(_.wq(_.zI(Error("lc`"+((P=c.type)==null?void 0:P.TAG_NAME)),(Y=c.type)==null?void 0:Y.TAG_NAME))))}if(B==null)return c==null?pa():XP(c)?k6(c):RUo(c)?k6(c.toString()):_.ss(c)?c:c.length===0?pa():sGo(c,x);if(_.ss(B)){if(c==null)return eUd(B,pa());if(XP(c))return poY(B,c);if(RUo(c))return poY(B,c.toString());if(_.ss(c))return eUd(B,c);if(c.length===0)return eUd(B,
pa());c=sGo(c,x);cP7([B],x[P5].flattened);return c}B=bk(B);if(c==null)return BUC(B,pa());if(XP(c))return BUC(B,k6(c));if(RUo(c))return BUC(B,k6(c.toString()));if(_.ss(c))return cP7(B,[c])[0];if(c.length===0)return BUC(B,pa());c=sGo(c,x);cP7(B,x[P5].flattened);return c};
poY=function(B,c){B.nodeType===Node.TEXT_NODE?B.textContent!==String(c)&&(B.textContent=String(c)):B=eUd(B,k6(c));return B};
bk=function(B,c,x){return kr$(B,c!=null?c:[],x===void 0?!1:x)};
sGo=function(B,c){var x=bk(B,void 0,!0);if(x.length===0)return pa();c[P5].flattened=x;return B};
kr$=function(B,c,x,P,Y){c=c===void 0?[]:c;x=x===void 0?!1:x;Y=Y===void 0?-1:Y;if(B==null)return c;if(B instanceof Ka)return B=B.render(),kr$(B,c,x,P,Y);if(_.ss(c)&&c.nodeType===Node.ELEMENT_NODE)switch(c.tagName){case "SCRIPT":x=Pbd(B);x!==null&&_.Gz(c,x);return;case "STYLE":x=YbI(B);x!==null&&(c.textContent=_.VJY(x));return}XP(B)&&(B=k6(B),P&&x&&(P[Y]=B));if(u1C(B)||B instanceof Js||AjQ(B)){x=rjw(B);x=Array.from(x.childNodes);x=_.p(x);for(B=x.next();!B.done;B=x.next())Xo7(c,B.value);return c}RUo(B)&&
(B=k6(B.toString()),P&&x&&(P[Y]=B));if(_.ss(B))return Xo7(c,B);if(Array.isArray(B)){for(var g=0;g<B.length;g++)kr$(B[g],c,x,B,g);return c}if(typeof B==="function"){B=na(B,{debugName:"qmF2ne"})[0];if(Array.isArray(B)){x=_.p(B);for(B=x.next();!B.done;B=x.next())Xo7(c,B.value);return c}P&&x&&(P[Y]=B);return Xo7(c,B)}if(B!=null&&B[Y6]){P=gD(!0);Y=f$C;try{g=Y.apply(null,[B.type,B.props].concat(_.wq(B.children)))}finally{gD(P)}return kr$(g,c,x)}var k;(k=_.xD.handleError)==null||k.call.apply(k,[_.xD].concat(_.wq(_.zI(Error("mc")))));
return c};
a6l=function(B){var c={};c=Object.assign([],(c[P5]={flattened:[]},c));if(!B)return c;c[0]=sGo(B,c);return c};
Xo7=function(B,c){Array.isArray(B)?B.push(c):B.appendChild(c);return B};
jI=function(B){if(!_.xD.enableLazyTsx)return B;if(Array.isArray(B)){for(var c=0;c<B.length;c++)B[c]=jI(B[c]);return B}return B instanceof Ka?(B=B.render(),jI(B)):B};
n4x=function(B,c){var x,P,Y=HUo(B),g=function(V){P=V;V=gD(!0);var N=aO(Us);HaX("render",Y);try{x=jI(B(c))}finally{fg$("render",Y),aO(N),gD(V)}};
g=_.xD.enableContextPerComponent?uPC(g,Y):Ex(g,_.xD.alwaysTrackContexts||!!RD);rRo(P);if(!c.renderedFromIdom){var k=_.e$(P);try{return $aC(B,c,x),x}finally{_.e$(k)}}!L17(x)&&Array.isArray(x)&&(x=a6l(x));var n=Zpx(x);k=Array.isArray(n)?n[0]:n;var b=!1;if(k){var d,q=(d=c==null?void 0:c.idomKey)!=null?d:B;d=n!==k;k._disposeEffects=g;var C=k[$6]||{},h=L17(x)?x:C.sourceDynamicRange;Object.assign(C,{key:q,numNodes:d?n.length:1,context:P,higherOrder:!!k[$6],sourceDynamicRange:h});k[$6]=C}else b=!0;(function(){var V=
_.e$(P);try{$aC(B,c,n)}finally{_.e$(V)}})();
b&&g();return x};
bEA=function(B){var c={},x;for(x in B)c={prev$jscomp$23:void 0,next$jscomp$32:void 0},c.prev$jscomp$23=dD[x],c.next$jscomp$32=B[x],dD[x]=function(P){return function(){var Y=_.ts.apply(0,arguments);P.prev$jscomp$23.apply(null,_.wq(Y));P.next$jscomp$32.apply(null,_.wq(Y))}}(c)};
KDA=function(){if(tM())throw Error("nc");return qR};
jG$=function(B,c){if(!B.__unmounted&&c){B.__unmounted=!0;try{B.didUnmount()}catch(Y){var x,P;(P=_.xD.handleError)==null||P.call.apply(P,[_.xD].concat(_.wq(_.zI(Y,(x=B.JSC$8260___type)==null?void 0:x.TAG_NAME))))}dD.didUnmount(B);B.el=null;c.__instance&&delete c.__instance}};
dax=function(B,c,x){B._signalProps!=null&&B._disposeEffects==null&&((x===void 0?0:x)?B._disposeEffects=Ex(function(){return void UaO(B,c)},_.xD.alwaysTrackContexts||!!RD):UaO(B,c))};
UaO=function(B,c){_.oO(function(){for(var x=B._signalProps,P=B._signalValues,Y=0;Y<x.length;Y++){var g=x[Y],k=c[g]();P[Y]!==k&&(P[Y]=k,G6I(B,g,k))}},"e3YVbb")};
qb7=function(B,c,x){var P,Y=[];B._disposeEffects=Ex(function(){_.oO(function(){var g=x();if(g===null||g===void 0)g="";if(XP(g)||g===null)P!=null||(P=document.createTextNode("")),P.parentNode!==B&&(P._isSignalTextNode=!0,B.insertBefore(P,c)),P.textContent=String(g);else if(u1C(g)||g instanceof Js||AjQ(g)){for(var k=Y.length>0?Y[Y.length-1].nextSibling:c,n=_.p(Y),b=n.next();!b.done;b=n.next())B.removeChild(b.value);g=rjw(g);Y=Array.from(g.childNodes);g=_.p(Y);for(n=g.next();!n.done;n=g.next())B.insertBefore(n.value,
k)}else throw b=(n=(k=TI)==null?void 0:k.name)!=null?n:"unknown",Error("cc`"+b+"`"+typeof g);},"VvDgC")},_.xD.alwaysTrackContexts||!!RD)};
mad=function(B,c){var x=_.ts.apply(2,arguments);c!=null||(c={});return!_.xD.enableLazyTsx||TI!=null&&!tM()?Cbx(B,c,x):new hqO(B,c,x)};
Cbx=function(B,c,x){if(B===_.at)return x;if(typeof B==="function")return TI&&!tM()&&(c.renderedFromIdom=!0),ft$(B,function(){var g=TUd(B,c,x);if(g)return g;x.length>0&&(c.children=x.length===1?x[0]:x);if(B.componentType===VG){var k;uPC(function(){var n=c;if(B.componentType!==VG)k=!1;else{n||(n={});var b=new Ca(n,B),d=aO(Us);try{var q=b.render(n)}finally{aO(d)}q instanceof HTMLElement?(q.__instance=b,b.el=q,b.JSC$8260___type=B,B.TAG_NAME=q.tagName.toLowerCase(),dD.didPatch(b),k=q):k=q}},B.name);
if(k)return k}return n4x(B,c)},c.debugInstance);
var P=V3w(B,c),Y;for(Y in c)G6I(P,Y,c[Y]);dax(P,c);bk(x,P);MlO(P,c,{isReactive:!0});t37(P,c);return P};
V3w=function(B,c){B=(woC.has(B.toLowerCase())?0:NUd.has(B.startsWith("svg:")?B.replace("svg:",""):B))?document.createElementNS("http://www.w3.org/2000/svg",B.startsWith("svg:")?B.replace("svg:",""):B):I6$(B,c)||document.createElement(B);B[JPQ]=!0;return B};
WD7=function(B){if(B){var c;(c=B._disposeRef)==null||c.call(B);var x;(x=B._disposeEffects)==null||x.call(B);B.__instance&&B.__instance instanceof hR&&(c=B.__instance,jG$(c,B),c instanceof Ca&&c.disposeEffects());for(c=0;c<B.childNodes.length;c++)WD7(B.childNodes[c])}};
E47=function(B){l67.push(B)===1&&requestAnimationFrame(function(){setTimeout(function(){var c=[].concat(_.wq(l67));l67=[];c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;try{for(var P=0;P<x.length;P++)WD7(x[P])}catch(Y){P=x=void 0,(P=(x=_.xD).handleError)==null||P.call.apply(P,[x].concat(_.wq(_.zI(Y))))}}})})};
_.U=function(B,c){return f$C.apply(null,[B,c].concat(_.wq(_.ts.apply(2,arguments))))};
OEC=function(B,c){c=c===void 0?new Map:c;B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,!c.has(x)){var P=void 0,Y=(P=x.producerNode)!=null?P:[];c.set(x,Y);OEC(Y,c)}return c};
_.m=function(B){var c=B.cond;if(c===void 0)return B.else&&B.else();var x=_.db(function(){return!!c()},void 0,"JHVi8"),P=function(){var Y=c();
if(!Y){var g;(g=_.xD.handleError)==null||g.call.apply(g,[_.xD].concat(_.wq(_.zI(o4q.nonNullableCondIsNull()))))}return Y};
return na(function(){var Y=x(),g;Ex(function(){var k=aO(Us);try{g=jI(Y?B.then(P):B.else&&B.else())}finally{aO(k)}},!0);
return g},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
QG$=function(B){return _.m(B)};
_.mV=function(B){return B.keyBy==="INDEX"?FD7(B):v4X(B)};
zql=function(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next()){var x=void 0;(x=c.value)==null||x()}};
v4X=function(B){var c=B.keyBy===void 0||B.keyBy==="REFERENCE",x=c?function(q){return q}:B.keyBy,P=[],Y=[],g=[],k=[],n=[],b=[],d=!0;
_.lP(function(){zql(k)});
return na(function(){var q=B.each(),C=q.length;if(C===0){if(P.length===0&&!d)return g;zql(k);P=q;Y=[];for(q=0;q<P.length;q++)Y.push(x(P[q]));g=[];k=[];n=[];b=[];B.fallback&&(k[0]=SbA(function(){g[0]=jI(B.fallback())}));
d=!1;return g}for(var h=new yPw,V=P.length-1;V>=0;V--)h.push(Y[V],V);V=Array(C);for(var N=Array(C),l=Array(C),E=Array(C),S=Array(c?0:C),M={i$jscomp$443:0};M.i$jscomp$443<C;M={i$jscomp$443:M.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},M.i$jscomp$443++){M.item$jscomp$103=q[M.i$jscomp$443];M.key$jscomp$524=x(M.item$jscomp$103);var f=h.pop(M.key$jscomp$524);f!=null?(l[M.i$jscomp$443]=g[f],N[M.i$jscomp$443]=Y[f],V[M.i$jscomp$443]=k[f],E[M.i$jscomp$443]=n[f],c||(S[M.i$jscomp$443]=b[f]),qO(function(Z){return function(){E[Z.i$jscomp$443](Z.i$jscomp$443);
if(!c)S[Z.i$jscomp$443](Z.item$jscomp$103)}}(M)),delete k[f]):V[M.i$jscomp$443]=SbA(function(Z){return function(){var u=_.p(_.$D(Z.i$jscomp$443,void 0,"Fqk1zd")),e=u.next().value;
u=u.next().value;E[Z.i$jscomp$443]=u;N[Z.i$jscomp$443]=Z.key$jscomp$524;if(c)l[Z.i$jscomp$443]=jI(B.children(Z.item$jscomp$103,e));else{var px=_.p(_.$D(Z.item$jscomp$103,void 0,"GBj5de"));u=px.next().value;px=px.next().value;S[Z.i$jscomp$443]=px;l[Z.i$jscomp$443]=jI(B.children(u,e))}}}(M))}zql(k);
P=q;Y=N;g=l;k=V;n=E;b=S;d=!1;return l},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
FD7=function(B){var c=[],x=[],P=[],Y=[],g=!1;_.lP(function(){for(var k=_.p(Y),n=k.next();!n.done;n=k.next())n=n.value,n()});
return na(function(){var k=B.each();g&&k.length>0&&(Y.pop()(),c.pop(),g=!1);for(var n=Array(k.length),b={i$jscomp$444:0};b.i$jscomp$444<k.length;b={i$jscomp$444:b.i$jscomp$444},b.i$jscomp$444++)if(b.i$jscomp$444<c.length)c[b.i$jscomp$444]!==k[b.i$jscomp$444]&&(qO(function(q){return function(){return void x[q.i$jscomp$444](k[q.i$jscomp$444])}}(b)),c[b.i$jscomp$444]=k[b.i$jscomp$444]),n[b.i$jscomp$444]=P[b.i$jscomp$444];
else{var d=SbA(function(q){return function(){c[q.i$jscomp$444]=k[q.i$jscomp$444];var C=_.p(_.$D(k[q.i$jscomp$444],void 0,"kGMqJe")),h=C.next().value;C=C.next().value;x[q.i$jscomp$444]=C;n[q.i$jscomp$444]=jI(B.children(h,q.i$jscomp$444))}}(b));
Y[b.i$jscomp$444]=d}for(;c.length>k.length;)c.pop(),Y.pop()(),x.pop();k.length===0&&!g&&B.fallback&&(b=SbA(function(){n[0]=jI(B.fallback())}),Y[0]=b,g=!0);
return P=n},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
SbA=function(B){var c=RD;return Ex(function(x){var P=aO(Us);try{x.parent=c,B(x)}finally{aO(P)}},!1)};
_.Tu=function(B){return B};
_.Va=function(B){return{isDefault:!0,children:B.children}};
_.tR=function(B){var c=GrA(B),x=_.db(function(){return M3X(c)},void 0,"F1PF4");
return na(function(){var P=x(),Y;Ex(function(){var g=aO(Us);try{Y=jI(P())}finally{aO(g)}});
return Y},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
GrA=function(B){B=B.children;return Array.isArray(B)?B:[B]};
LD$=function(B){var c=B.props;B=B.getChildren()[0];return c.when?{when:c.when,children:B}:{isDefault:!0,children:B}};
M3X=function(B){var c=function(){return null};
B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x!=null&&x[Y6]&&(x=x.type===_.Va?{isDefault:!0,children:x.children[0]}:{when:x.props.when,children:x.children[0]}),x instanceof Ka&&(x=LD$(x)),x.isDefault)c=x.children;else if(x.when())return x.children;return c};
HEw=function(B){var c=null,x,P={get value(){var g,k;(k=(g=Y).validateGetValue)==null||k.call(g);return Y.__value},set value(g){Y.__hasBeenSet=!0;Y.__value=g}},Y=(P.__value=null,P.__hasBeenSet=!1,P.__hasErrored=!1,P.onRender=function(g){if(x&&g!==x){x._disposeRef=void 0;var k;(k=c)==null||k()}x=g;c=B(g)||null},P.onUnmount=function(){var g;
(g=c)==null||g();c=null},P[ZEA]=!0,P);
return Y};
f6O=function(B){var c=KDA();if(c==null)throw _.wD.PRIMITIVE_INVALID_HOOK_CALL();var x=c.hookCounter++;c.hooks||(c.hooks=[]);var P=c.hooks;P[x]||(P[x]={key:B,host:c});if(B!==P[x].key){if(c.JSC$8260___type){var Y;B=(Y=c.JSC$8260___type)==null?void 0:Y.name}else B=c instanceof Ca?HUo(c.functionComponent):"<"+c.el.tagName.toLowerCase()+">";throw _.wD.OUT_OF_ORDER_HOOK_CALL(B);}return P[x]};
iE7=function(B,c){return!B||B.length!==(c==null?void 0:c.length)||B.some(function(x,P){return x!==c[P]})};
API=function(B,c){var x=f6O("onChange"),P=KDA();iE7(x.deps,c)&&(x.deps=c,x.pendingEffect=B,P.__syncEffects||(P.__syncEffects=[]),P.__syncEffects.push(x))};
_.It=function(B,c){var x=x===void 0?{}:x;x=x.appContext;var P=!!_.xD.legacyTriggerSoyRendererEvents;c=uUY(B,c,x);P&&(x==null&&(x=_.UR$(document).getAppContext()),x.get(DaC).JSC$25585_getEventTarget().dispatchEvent(new rPO(RqI,B,D6X)));return c};
uUY=function(B,c,x){var P=NO(function(){var Y=aO(Us);try{return Ex(function(){var g=_.UR$(_.ly(B)),k;var n=o6l({rootElement:{value:B},appContext:x||(g==null?void 0:(k=g.getOptionalAppContext)==null?void 0:k.call(g)),dispatcher:g});g=_.e$(n);n=gD(!0);Ct++;try{bk(c(),B),m_(!1)}catch(b){throw m_(!0),b;}finally{gD(n),_.e$(g)}},!1)}catch(g){throw _.xD.enableContextBasedComponentStacks&&wb(g),g;
}finally{aO(Y)}});
B[eqA]=!0;return function(){B.textContent="";P();B[eqA]=!1}};
_.JR=function(B){if(Lcx(YD)){var c;(c=_.xD.handleError)==null||c.call.apply(c,[_.xD].concat(_.wq(_.zI(Error("bc")))))}var x=RD,P=TI;Promise.resolve().then(function(){if(x&&!x.isDisposed){var Y=_.e$(x);try{NO(function(){return void B()},P)}catch(g){throw _.xD.enableContextBasedComponentStacks&&wb(g),g;
}finally{_.e$(Y)}}})};
W5=function(B,c){API(function(){return XS(B)},c)};
_.lk=function(B){tM()?_.JR(function(){XS(B)}):API(function(){return XS(B)},[])};
cJ$=function(B){var c=[].concat(_.wq(B));B.length=0;B=_.p(c);for(c=B.next();!c.done;c=B.next()){c=c.value;BYY(c);var x=c.pendingEffect;c.pendingEffect=null;if(x=x==null?void 0:x())c.pendingCleanup=x}};
BYY=function(B){var c=B.pendingCleanup;B.pendingCleanup=null;c==null||c()};
xMd=function(B,c){if(tM())return B();var x=f6O("useMemoInternal");iE7(x.deps,c)&&(x.deps=c,x.value=B());return x.value};
P4Q=function(B,c){return xMd(B,c)};
Es=function(B){return xMd(B,[])};
Os=function(B){return Es(function(){return{value:B}})};
_.ot=function(B,c){if(!B)return null;B=Object.keys(B);B=_.p(B);for(var x=B.next();!x.done;x=B.next()){x=x.value;var P=x.toLowerCase();if(P.indexOf(c,P.length-c.length)>-1)return x}return null};
_.FP=function(){var B=arguments,c=_.Qa;B.length>1?c[B[0]]=B[1]:B.length===1&&Object.assign(c,B[0])};
_.v5=function(B,c){return B in _.Qa?_.Qa[B]:c};
_.zu=function(B,c){return!!_.v5(B,c)};
Ykq=function(B){var c=_.Qa.EXPERIMENT_FLAGS;return c?c[B]:void 0};
gWx=function(B){aF7.forEach(function(c){return c(B)})};
_.ya=function(B){return B&&window.yterr?function(){try{return B.apply(this,arguments)}catch(c){_.SI(c)}}:B};
_.SI=function(B){var c=_.Gu("yt.logging.errors.log");c?c(B,"ERROR",void 0,void 0,void 0,void 0,void 0):(c=_.v5("ERRORS",[]),c.push([B,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.FP("ERRORS",c));gWx(B)};
_.MR=function(B,c,x,P,Y){var g=_.Gu("yt.logging.errors.log");g?g(B,"WARNING",c,x,P,void 0,Y):(g=_.v5("ERRORS",[]),g.push([B,"WARNING",c,x,P,void 0,Y]),_.FP("ERRORS",g))};
pXC=function(B,c){c=B.split(c);for(var x={},P=0,Y=c.length;P<Y;P++){var g=c[P].split("=");if(g.length===1&&g[0]||g.length===2)try{var k=s1C(g[0]||""),n=s1C(g[1]||"");if(k in x){var b=x[k];Array.isArray(b)?_.ed(b,n):x[k]=[b,n]}else x[k]=n}catch(h){var d=h,q=g[0],C=String(pXC);d.args=[{key:q,value:g[1],query:B,method:kKX===C?"unchanged":C}];XXO.hasOwnProperty(q)||_.MR(d)}}return x};
$M7=function(B){var c=[];_.wW.forEach(B,function(x,P){var Y=_.La(P);_.Zg(Array.isArray(x)?x:[x],function(g){g==""?c.push(Y):c.push(Y+"="+_.La(g))})});
return c.join("&")};
_.H5=function(B){B.charAt(0)==="?"&&(B=B.substring(1));return pXC(B,"&")};
_.fa=function(B){return B.indexOf("?")!==-1?(B=(B||"").split("#")[0],B=B.split("?",2),_.H5(B.length>1?B[1]:B[0])):{}};
_.ik=function(B,c){return nWI(B,c||{},!0)};
bl$=function(B,c){return nWI(B,c||{},!1)};
nWI=function(B,c,x){var P=B.split("#",2);B=P[0];P=P.length>1?"#"+P[1]:"";var Y=B.split("?",2);B=Y[0];Y=_.H5(Y[1]||"");for(var g in c)if(x||!_.wW.containsKey(Y,g))Y[g]=c[g];return _.AR(B,Y)+P};
Rt=function(B){if(!c)var c=window.location.href;var x=_.uk(B)[1]||null,P=_.Dg(B);return x&&P?rD(B,c):P?_.Dg(c)===P&&(Number(_.uk(c)[4]||null)||null)===(Number(_.uk(B)[4]||null)||null):!0};
_.j1o=function(B){B=Ke7(B);return B===null?!1:B[0]==="com"&&B[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Ke7=function(B){B=_.Dg(B);return B!==null?B.split(".").reverse():null};
s1C=function(B){return B&&B.match(UMl)?B:eI(B)};
_.Bp=function(B){return new dMx(B)};
_.cp=function(){qkC||(qkC=new C4l);return qkC};
mMo=function(B){var c=_.xu,x,P;_.X(function(Y){x=_.cp();return(P=x.resolve(_.Bp(c)))?(B(P),Y.return(Promise.resolve(P))):Y.return(x.resolve(new hh7(c)).then(function(g){B(g);return g}))})};
_.T=function(B){B=Pp(B);return typeof B==="string"&&B==="false"?!1:!!B};
_.Yu=function(B,c){B=Pp(B);return B===void 0&&c!==void 0?c:Number(B||0)};
TYo=function(B){B=Pp(B);return Array.isArray(B)?_.I3(B,function(c){return Number(c||0)}):[Number(B||0)]};
_.aH=function(B){B=Pp(B);return B!==void 0?String(B):""};
_.gr=function(B){B=Pp(B);return Array.isArray(B)?_.I3(B,function(c){return String(c||"")}):[String(B||"")]};
VOC=function(){return _.v5("EXPERIMENTS_TOKEN","")};
Pp=function(B){return _.v5("EXPERIMENT_FLAGS",{})[B]};
tO$=function(){for(var B=[],c=_.v5("EXPERIMENTS_FORCED_FLAGS",{}),x=_.p(Object.keys(c)),P=x.next();!P.done;P=x.next())P=P.value,B.push({key:P,value:String(c[P])});x=_.v5("EXPERIMENT_FLAGS",{});P=_.p(Object.keys(x));for(var Y=P.next();!Y.done;Y=P.next())Y=Y.value,Y.startsWith("force_")&&c[Y]===void 0&&B.push({key:Y,value:String(x[Y])});return B};
NYI=function(){if(!wXQ)return null;var B=wXQ();return"open"in B?B:null};
_.IFl=function(B){switch(_.s4(B)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.s4=function(B){return B&&"status"in B?B.status:-1};
_.pU=function(B,c){typeof B==="function"&&(B=_.ya(B));return window.setTimeout(B,c)};
_.ku=function(B,c){typeof B==="function"&&(B=_.ya(B));return window.setInterval(B,c)};
_.X4=function(B){window.clearTimeout(B)};
WeA=function(B){B=_.fa(B);for(var c=_.p(JJA),x=c.next();!x.done;x=c.next())if(B[x.value]!==void 0)return!0;return!1};
OlQ=function(B,c,x,P,Y,g,k,n){x=x===void 0?"GET":x;P=P===void 0?"":P;n=n===void 0?!1:n;var b=NYI();if(!b)return null;var d=function(){(b&&"readyState"in b?b.readyState:0)===4&&c&&_.ya(c)(b)};
"onloadend"in b?b.addEventListener("loadend",d,!1):b.onreadystatechange=d;_.T("debug_forward_web_query_parameters")&&(B=lFw(B,window.location.search));b.open(x,B,!0);g&&(b.responseType=g);k&&(b.withCredentials=!0);x=x==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(Y=EW$(B,Y))for(var q in Y)b.setRequestHeader(q,Y[q]),"content-type"===q.toLowerCase()&&(x=!1);x&&b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(n&&"setAttributionReporting"in XMLHttpRequest.prototype){B=
{eventSourceEligible:!0,triggerEligible:!1};try{b.setAttributionReporting(B)}catch(C){_.MR(C)}}b.send(P);return b};
EW$=function(B,c){c=c===void 0?{}:c;var x=Rt(B),P=_.v5("INNERTUBE_CLIENT_NAME"),Y=_.T("web_ajax_ignore_global_headers_if_set"),g;for(g in oWI){var k=_.v5(oWI[g]),n=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||k||(k=_.v5("VISITOR_DATA"));var b;if(!(b=!k)){if(!(b=x||(_.Dg(B)?!1:!0))){b=B;var d;if(d=_.T("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY"))d=Ke7(b),d=d===null?!1:d[1]==="google"?
!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1;d&&(b=_.$u(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),d=b==="/pagead");b=d?!0:!1}b=!b}b||Y&&c[g]!==void 0||P==="TVHTML5_UNPLUGGED"&&n||(c[g]=k)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];if(x||!_.Dg(B))c["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(x||!_.Dg(B)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(C){}q&&(c["X-YouTube-Time-Zone"]=
q)}document.location.hostname.endsWith("youtubeeducation.com")||!x&&_.Dg(B)||(c["X-YouTube-Ad-Signals"]=$M7(Q1l()));return c};
_.FeX=function(B,c){var x=_.Dg(B);_.T("debug_handle_relative_url_for_query_forward_killswitch")||!x&&Rt(B)&&(x=document.location.hostname);var P=_.$u(B);P=(x=x&&(x.endsWith("youtube.com")||x.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!x||P)return B;var Y=_.H5(c),g={};_.Zg(JJA,function(k){Y[k]&&(g[k]=Y[k])});
return bl$(B,g)};
vWA=function(B,c){c.method="POST";c.postParams||(c.postParams={});return _.nU(B,c)};
zho=function(B,c){var x=_.v5("XSRF_FIELD_NAME"),P;c.headers&&(P=c.headers["Content-Type"]);return!c.excludeXsrf&&(!_.Dg(B)||c.withCredentials||_.Dg(B)===document.location.hostname)&&c.method==="POST"&&(!P||P==="application/x-www-form-urlencoded")&&!(c.postParams&&c.postParams[x])};
_.nU=function(B,c){var x=c.format||"JSON";B=Skx(B,c);var P=yJq(B,c),Y=!1,g=GKx(B,function(b){if(!Y){Y=!0;n&&_.X4(n);var d=_.IFl(b),q=null,C=400<=b.status&&b.status<500,h=500<=b.status&&b.status<600;if(d||C||h)q=MOY(B,x,b,c.convertToSafeHtml);d&&(d=Led(x,b,q));q=q||{};C=c.context||_.xI;d?c.onSuccess&&c.onSuccess.call(C,b,q):c.onError&&c.onError.call(C,b,q);c.onFinish&&c.onFinish.call(C,b,q)}},c.method,P,c.headers,c.responseType,c.withCredentials);
P=c.timeout||0;if(c.onTimeout&&P>0){var k=c.onTimeout;var n=_.pU(function(){Y||(Y=!0,g.abort(),_.X4(n),k.call(c.context||_.xI,g))},P)}return g};
Skx=function(B,c){c.includeDomain&&(B=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+B);var x=_.v5("XSRF_FIELD_NAME");if(c=c.urlParams)c[x]&&delete c[x],B=_.ik(B,c);return B};
yJq=function(B,c){var x=_.v5("XSRF_FIELD_NAME"),P=_.v5("XSRF_TOKEN"),Y=c.postBody||"",g=c.postParams;zho(B,c)&&(g||(g={}),g[x]=P);(_.T("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof Y==="string"&&(Y=_.H5(Y),_.wW.extend(Y,g),Y=c.postBodyFormat&&c.postBodyFormat==="JSON"?JSON.stringify(Y):_.bp(Y));g=Y||g&&!_.wW.isEmpty(g);!Zlo&&g&&c.method!=="POST"&&(Zlo=!0,_.SI(Error("Gc")));return Y};
MOY=function(B,c,x,P){var Y=null;switch(c){case "JSON":try{var g=x.responseText}catch(k){throw P=Error("Hc"),P.params=B,_.MR(P),k;}B=x.getResponseHeader("Content-Type")||"";g&&B.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),Y=JSON.parse(g));break;case "XML":if(B=(B=x.responseXML)?Hl7(B):null)Y={},_.Zg(B.getElementsByTagName("*"),function(k){Y[k.tagName]=fFY(k)})}P&&ilo(Y);
return Y};
ilo=function(B){if(_.xF(B))for(var c in B)c==="html_content"||gC(c,"_html")?B[c]=Wa(B[c]):ilo(B[c])};
Led=function(B,c,x){if(c&&c.status===204)return!0;switch(B){case "JSON":return!!x;case "XML":return Number(x&&x.return_code)===0;case "RAW":return!0;default:return!!x}};
Hl7=function(B){return B?(B=("responseXML"in B?B.responseXML:B).getElementsByTagName("root"))&&B.length>0?B[0]:null:null};
fFY=function(B){var c="";_.Zg(B.childNodes,function(x){c+=x.nodeValue});
return c};
AJo=function(B){if(B.name==="JavaException")return!0;B=B.stack;return B.includes("chrome://")||B.includes("-extension://")||B.includes("webkit-masked-url://")};
upI=function(B){if(!B.stack)return!0;var c=!B.stack.includes("\n");return c&&B.stack.includes("ErrorType: ")||c&&B.stack.includes("Anonymous function (Unknown script")||B.stack.toLowerCase()==="not available"||B.fileName==="user-script"||B.fileName.startsWith("user-script:")?!0:!1};
_.KU=function(B){_.tG.call(this);this.JSC$8493_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!B};
rJ7=function(B,c){var x=B.length,P=0,Y=function(){return B.charCodeAt(P++)};
do{var g=DMC(Y);if(g===Infinity)break;var k=g>>3;switch(g&7){case 0:g=DMC(Y);if(k===c)return g;break;case 1:if(k===c)return;P+=8;break;case 2:g=DMC(Y);if(k===c)return B.substr(P,g);P+=g;break;case 5:if(k===c)return;P+=4;break;default:return}}while(P<x)};
DMC=function(B){var c=B(),x=c&127;if(c<128)return x;c=B();x|=(c&127)<<7;if(c<128)return x;c=B();x|=(c&127)<<14;if(c<128)return x;c=B();return c<128?x|(c&127)<<21:Infinity};
ehY=function(B,c,x,P){if(B)if(Array.isArray(B)){var Y=P;for(P=0;P<B.length&&!(B[P]&&(Y+=RhQ(P,B[P],c,x),Y>500));P++);P=Y}else if(typeof B==="object")for(Y in B){if(B[Y]){var g=Y;var k=B[Y],n=c,b=x;g=typeof k!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(k=rJ7(atob(k.replace(/-/g,"+").replace(/_/g,"/")),2))?RhQ(g+".ve",k,n,b):0;P+=g;P+=RhQ(Y,B[Y],c,x);if(P>500)break}}else x[c]=jR(B),P+=x[c].length;else x[c]=jR(B),P+=x[c].length;return P};
RhQ=function(B,c,x,P){x+="."+B;B=jR(c);P[x]=B;return x.length+B.length};
jR=function(B){try{return(typeof B==="string"?B:String(JSON.stringify(B))).substr(0,500)}catch(c){return"unable to serialize "+typeof B+" ("+c.message+")"}};
Bxd=function(B){switch(B){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}};
_.dr=function(B,c,x,P,Y){_.U4.set(B,c,{maxAge:x,path:"/",domain:P===void 0?"youtube.com":P,secure:Y===void 0?!1:Y})};
_.cgO=function(B,c,x){_.U4.remove(B,c===void 0?"/":c,x===void 0?"youtube.com":x)};
_.qD=function(){if(_.T("embeds_web_enable_cookie_detection_fix")){if(!_.xI.navigator.cookieEnabled)return!1}else if(!_.U4.isEnabled())return!1;if(!_.U4.isEmpty())return!0;_.T("embeds_web_enable_cookie_detection_fix")?_.U4.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.U4.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.U4.get("TESTCOOKIESENABLED")!=="1")return!1;_.U4.remove("TESTCOOKIESENABLED");return!0};
xpl=function(){var B=_.xI.navigator;return B?B.connection:void 0};
Phw=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(B){}};
_.aaX=function(){var B=xpl();if(B){var c=YnQ[B.type||"unknown"]||"CONN_UNKNOWN";B=YnQ[B.effectiveType||"unknown"]||"CONN_UNKNOWN";c==="CONN_CELLULAR_UNKNOWN"&&B!=="CONN_UNKNOWN"&&(c=B);if(c!=="CONN_UNKNOWN")return c;if(B!=="CONN_UNKNOWN")return B}};
ss7=function(){var B=xpl();if(B!=null&&B.effectiveType)return gdx.hasOwnProperty(B.effectiveType)?gdx[B.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.hK=function(){try{return _.CU(),!0}catch(B){return!1}};
_.CU=function(B){if(_.v5("DATASYNC_ID")!==void 0)return _.v5("DATASYNC_ID");throw new _.mc("Datasync ID not set",B===void 0?"unknown":B);};
_.Tw=function(B){this.mechanism=B};
VY=function(B){this.mechanism=B};
tK=function(B){this.storage_=B;this.cachedIsStorageAvailable_=null};
pf7=function(){var B=null;try{B=_.xI.localStorage||null}catch(c){}tK.call(this,B)};
kkl=function(){var B=null;try{B=_.xI.sessionStorage||null}catch(c){}tK.call(this,B)};
wr=function(B,c){this.mechanism_=B;this.JSC$8595_prefix_=c+"::"};
_.Xfq=function(B){var c=new pf7;return c.isAvailable()?B?new wr(c,B):c:null};
_.$pX=function(B){var c=new kkl;return c.isAvailable()?B?new wr(c,B):c:null};
bNd=function(){var B;return(B=ndQ())==null?void 0:B.get("LAST_RESULT_ENTRY_KEY",!0)};
_.JK=function(B){K4o||(_.ND?_.ND.logError(B):(_.IH.push({type:"ERROR",payload:B}),_.IH.length>10&&_.IH.shift()))};
Wp=function(B,c){K4o||(_.ND?_.ND.logEvent(B,c):(_.IH.push({type:"EVENT",eventType:B,payload:c}),_.IH.length>10&&_.IH.shift()))};
lp=function(B){if(B.indexOf(":")>=0)throw Error("Oc");};
E4=function(B){return B.substr(0,B.indexOf(":"))||B};
dpw=function(){return(js$||Up$)&&O4("applewebkit")&&!O4("version")&&(!O4("safari")||O4("gsa/"))};
O4=function(B){var c=_.dC();return c?c.toLowerCase().indexOf(B)>=0:!1};
hkI=function(B,c,x,P){c=E4(c);var Y=B instanceof Error?B:Error("Pc`"+B);if(Y instanceof oH)return Y;B={objectStoreNames:x,dbName:c,dbVersion:P};if(Y.name==="QuotaExceededError")return new oH("QUOTA_EXCEEDED",B);if(_.QY&&Y.name==="UnknownError")return new oH("QUOTA_MAYBE_EXCEEDED",B);if(Y instanceof qno)return new oH("MISSING_INDEX",Object.assign({},B,{objectStore:Y.objectStore,index:Y.index}));if(Y.name==="InvalidStateError"&&ChA.some(function(g){return Y.message.includes(g)}))return new oH("EXECUTE_TRANSACTION_ON_CLOSED_DB",
B);
if(Y.name==="AbortError")return new oH("UNKNOWN_ABORT",B,Y.message);Y.args=[Object.assign({},B,{name:"IdbError",originalName:Y.name})];Y.level="WARNING";return Y};
F4=function(B,c,x){var P=bNd();return new oH("IDB_NOT_SUPPORTED",{context:{caller:B,publicName:c,version:x,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})};
mpw=function(B){if(!B)throw Error();throw B;};
Txx=function(B){return B};
VWX=function(B,c,x){var P=function(){try{B.removeEventListener("success",Y),B.removeEventListener("error",g)}catch(k){}},Y=function(){c(B.result);
P()},g=function(){x(B.error);
P()};
B.addEventListener("success",Y);B.addEventListener("error",g)};
tWl=function(B){return new Promise(function(c,x){VWX(B,c,x)})};
SR=function(B){return new vp(new zw(function(c,x){VWX(B,c,x)}))};
wfI=function(B,c){return new vp(new zw(function(x,P){var Y=function(){var g=B?c(B):null;g?g.then(function(k){B=k;Y()},P):x()};
Y()}))};
IaI=function(B,c,x){return new Promise(function(P,Y){var g=c!==void 0?self.indexedDB.open(B,c):self.indexedDB.open(B);var k=x.blocked,n=x.blocking,b=x.terminated,d=x.upgrade,q=x.closed,C,h=function(){C||(C=new yY(g.result,{closed:q}));return C};
g.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Uc");if(g.transaction===null)throw Error("Vc");V.dataLoss&&V.dataLoss!=="none"&&Wp("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:E4(B)});var N=h(),l=new NxX(g.transaction);d&&d(N,function(E){return V.oldVersion<E&&V.newVersion>=E},l);
l.done.catch(function(E){Y(E)})}catch(E){Y(E)}});
g.addEventListener("success",function(){var V=g.result;n&&V.addEventListener("versionchange",function(){n(h())});
V.addEventListener("close",function(){Wp("IDB_UNEXPECTEDLY_CLOSED",{dbName:E4(B),dbVersion:V.version});b&&b()});
P(h())});
g.addEventListener("error",function(){Y(g.error)});
k&&g.addEventListener("blocked",function(){k()})})};
Jgl=function(B,c,x){x=x===void 0?{}:x;return IaI(B,c,x)};
_.MD=function(B,c){c=c===void 0?{}:c;var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return _.kM(k,2),x=self.indexedDB.deleteDatabase(B),P=c,(Y=P.blocked)&&x.addEventListener("blocked",function(){Y()}),_.K(k,tWl(x),4);
if(k.nextAddress!=2)return _.Gw(k,0);g=_.be(k);throw hkI(g,B,"",-1);})};
laq=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.LU(W4d,c),2);x=P.yieldResult;return P.return(_.Hp(x,["databases"],{enableRetries:!0,mode:"readwrite"},function(Y){var g=Y.objectStore("databases");return g.get(B.actualName).then(function(k){if(k?B.actualName!==k.actualName||B.publicName!==k.publicName||B.userIdentifier!==k.userIdentifier:1)return g.put(B).then(function(){})})}))})};
_.fU=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return B?_.K(P,_.LU(W4d,c),2):P.return();x=P.yieldResult;return P.return(x.delete("databases",B))})};
_.Edo=function(B,c){var x,P;return _.X(function(Y){return Y.nextAddress==1?(x=[],_.K(Y,_.LU(W4d,c),2)):Y.nextAddress!=3?(P=Y.yieldResult,_.K(Y,_.Hp(P,["databases"],{enableRetries:!0,mode:"readonly"},function(g){x.length=0;return AK(g.objectStore("databases"),{},function(k){B(k.getValue())&&x.push(k.getValue());return k.continue()})}),3)):Y.return(x)})};
ONd=function(B,c){return _.Edo(function(x){return x.publicName===B&&x.userIdentifier!==void 0},c)};
F47=function(){var B,c,x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:B=bNd();if((c=B)==null?0:c.hasSucceededOnce)return Y.return(!0);var g;if(g=od$)g=/WebKit\/([0-9]+)/.exec(_.dC()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.dC()),g=!(g&&parseInt(g[1],10)>=602));if(g||up)return Y.return(!1);try{if(x=self,!(x.indexedDB&&x.IDBIndex&&x.IDBKeyRange&&x.IDBObjectStore))return Y.return(!1)}catch(k){return Y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Y.return(!1);
_.kM(Y,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.K(Y,laq(P,Qsq),4);case 4:return _.K(Y,_.fU("yt-idb-test-do-not-use",Qsq),5);case 5:return Y.return(!0);case 2:return _.be(Y),Y.return(!1)}})};
zkd=function(){if(vd7!==void 0)return vd7;K4o=!0;return vd7=F47().then(function(B){K4o=!1;var c;if((c=ndQ())!=null&&c.expiringStorage_){var x;c={hasSucceededOnce:((x=bNd())==null?void 0:x.hasSucceededOnce)||B};var P;(P=ndQ())==null||P.set("LAST_RESULT_ENTRY_KEY",c,2592E3,!0)}return B})};
Dt=function(){return _.Gu("ytglobal.idbToken_")||void 0};
_.RH=function(){var B=Dt();return B?Promise.resolve(B):zkd().then(function(c){(c=c?Qsq:void 0)&&_.rr("ytglobal.idbToken_",c);return c})};
Snw=function(B){if(!_.hK())throw B=new oH("AUTH_INVALID",{dbName:B}),_.JK(B),B;var c=_.CU();return{actualName:B+":"+c,publicName:B,userIdentifier:c}};
ygl=function(B,c,x,P){var Y,g,k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:return g=(Y=Error().stack)!=null?Y:"",_.K(q,_.RH(),2);case 2:k=q.yieldResult;if(!k)throw n=F4("openDbImpl",B,c),_.T("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.JK(n),n;lp(B);b=x?{actualName:B,publicName:B,userIdentifier:void 0}:Snw(B);_.kM(q,3);return _.K(q,laq(b,k),5);case 5:return _.K(q,Jgl(b.actualName,c,P),6);case 6:return q.return(q.yieldResult);case 3:return d=
_.be(q),_.kM(q,7),_.K(q,_.fU(b.actualName,k),9);case 9:_.Gw(q,8);break;case 7:_.be(q);case 8:throw d;}})};
GkY=function(B,c,x){x=x===void 0?{}:x;return ygl(B,c,!1,x)};
MWl=function(B,c,x){x=x===void 0?{}:x;return ygl(B,c,!0,x)};
L4$=function(B,c){c=c===void 0?{}:c;var x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,_.RH(),2);if(Y.nextAddress!=3){x=Y.yieldResult;if(!x)return Y.return();lp(B);P=Snw(B);return _.K(Y,_.MD(P.actualName,c),3)}return _.K(Y,_.fU(P.actualName,x),0)})};
ZNd=function(B,c,x){B=B.map(function(P){return _.X(function(Y){return Y.nextAddress==1?_.K(Y,_.MD(P.actualName,c),2):_.K(Y,_.fU(P.actualName,x),0)})});
return Promise.all(B).then(function(){})};
HN$=function(B){var c=c===void 0?{}:c;var x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,_.RH(),2);if(Y.nextAddress!=3){x=Y.yieldResult;if(!x)return Y.return();lp(B);return _.K(Y,ONd(B,x),3)}P=Y.yieldResult;return _.K(Y,ZNd(P,c,x),0)})};
fao=function(B,c){c=c===void 0?{}:c;var x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.RH(),2);if(P.nextAddress!=3){x=P.yieldResult;if(!x)return P.return();lp(B);return _.K(P,_.MD(B,c),3)}return _.K(P,_.fU(B,x),0)})};
eR=function(B,c){return iNX(B,c)};
uTo=function(B){return _.LU(Ag7(),B)};
Dp7=function(B,c,x,P){var Y,g,k;return _.X(function(n){switch(n.nextAddress){case 1:return Y={config:B,hashData:c,timestamp:P!==void 0?P:(0,_.BA)()},_.K(n,uTo(x),2);case 2:return g=n.yieldResult,_.K(n,g.clear("hotConfigStore"),3);case 3:return _.K(n,g.put("hotConfigStore",Y),4);case 4:return k=n.yieldResult,n.return(k)}})};
rgd=function(B,c,x,P,Y){var g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:return g={config:B,hashData:c,configData:x,timestamp:Y!==void 0?Y:(0,_.BA)()},_.K(b,uTo(P),2);case 2:return k=b.yieldResult,_.K(b,k.clear("coldConfigStore"),3);case 3:return _.K(b,k.put("coldConfigStore",g),4);case 4:return n=b.yieldResult,b.return(n)}})};
Rk$=function(B){var c,x;return _.X(function(P){return P.nextAddress==1?_.K(P,uTo(B),2):P.nextAddress!=3?(c=P.yieldResult,x=void 0,_.K(P,_.Hp(c,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.cA(Y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){x=g.getValue()})}),3)):P.return(x)})};
ekx=function(B){var c,x;return _.X(function(P){return P.nextAddress==1?_.K(P,uTo(B),2):P.nextAddress!=3?(c=P.yieldResult,x=void 0,_.K(P,_.Hp(c,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.cA(Y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){x=g.getValue()})}),3)):P.return(x)})};
Bjd=function(){return _.X(function(B){return _.K(B,HN$("ytGcfConfig"),0)})};
cid=function(){return"INNERTUBE_API_KEY"in _.Qa&&"INNERTUBE_API_VERSION"in _.Qa};
_.xr=function(){return{innertubeApiKey:_.v5("INNERTUBE_API_KEY"),innertubeApiVersion:_.v5("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.v5("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.v5("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.v5("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.v5("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.zu("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.zu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.v5("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.prd=function(B){var c={client:{hl:B.innertubeContextHostLanguage,gl:B.innertubeContextGeoLocation,clientName:B.innertubeContextClientName,clientVersion:B.innertubeContextClientVersion,configInfo:B.innertubeContextClientConfigInfo}};navigator.userAgent&&(c.client.userAgent=String(navigator.userAgent));var x=_.xI.devicePixelRatio;x&&x!=1&&(c.client.screenDensityFloat=String(x));x=VOC();x!==""&&(c.client.experimentsToken=x);x=tO$();x.length>0&&(c.request={internalExperimentFlags:x});x9w(B,void 0,c);
PgX(void 0,c);Ypl(void 0,c);a1d(B,void 0,c);gCo(void 0,c);_.T("start_client_gcf")&&sJO(void 0,c);_.v5("DELEGATED_SESSION_ID")&&!_.T("pageid_as_header_web")&&(c.user={onBehalfOfUser:_.v5("DELEGATED_SESSION_ID")});!_.T("fill_delegate_context_in_gel_killswitch")&&(B=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c.user=Object.assign({},c.user,{serializedDelegationContext:B}));B=_.v5("INNERTUBE_CONTEXT");var P;if(_.T("enable_persistent_device_token")&&(B==null?0:(P=B.client)==null?0:P.rolloutToken)){var Y;
c.client.rolloutToken=B==null?void 0:(Y=B.client)==null?void 0:Y.rolloutToken}P=Object;Y=P.assign;B=c.client;x={};for(var g=_.p(Object.entries(_.H5(_.v5("DEVICE","")))),k=g.next();!k.done;k=g.next()){var n=_.p(k.value);k=n.next().value;n=n.next().value;k==="cbrand"?x.deviceMake=n:k==="cmodel"?x.deviceModel=n:k==="cbr"?x.browserName=n:k==="cbrver"?x.browserVersion=n:k==="cos"?x.osName=n:k==="cosver"?x.osVersion=n:k==="cplatform"&&(x.platform=n)}c.client=Y.call(P,B,x);return c};
x9w=function(B,c,x){B=B.innertubeContextClientName;if(B==="WEB"||B==="MWEB"||B===1||B===2)if(c){x=_.PA(c,kqQ,96)||new kqQ;var P=Xr7();P=Object.keys($9w).indexOf(P);P=P===-1?null:P;P!==null&&_.Yr(x,3,P);_.Pa(c,96,x)}else x&&(x.client.mainAppWebInfo=(P=x.client.mainAppWebInfo)!=null?P:{},x.client.mainAppWebInfo.webDisplayMode=Xr7())};
PgX=function(B,c){var x=_.Gu("yt.embedded_player.embed_url");x&&(B?(c=_.PA(B,nCl,7)||new nCl,_.dW(c,4,x),_.Pa(B,7,c)):c&&(c.thirdParty={embedUrl:x}))};
Ypl=function(B,c){var x;if(_.T("web_log_memory_total_kbytes")&&((x=_.xI.navigator)==null?0:x.deviceMemory)){var P;x=(P=_.xI.navigator)==null?void 0:P.deviceMemory;B?_.ax(B,95,OF(x*1E6)):c&&(c.client.memoryTotalKbytes=""+x*1E6)}};
a1d=function(B,c,x){if(B.appInstallData)if(c){var P;x=(P=_.PA(c,gK,62))!=null?P:new gK;_.dW(x,6,B.appInstallData);_.Pa(c,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},x.client.configInfo.appInstallData=B.appInstallData)};
gCo=function(B,c){var x=_.aaX();x&&(B?_.Yr(B,61,bW$[x]):c&&(c.client.connectionType=x));_.T("web_log_effective_connection_type")&&(x=ss7())&&(B?_.Yr(B,94,K5d[x]):c&&(c.client.effectiveConnectionType=x))};
_.d9x=function(B,c,x){x=x===void 0?{}:x;var P={};_.v5("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":_.v5("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":x.visitorData||_.v5("VISITOR_DATA","")};if(c&&c.includes("www.youtube-nocookie.com"))return P;c=x.authorization||_.v5("AUTHORIZATION");c||(B?c="Bearer "+_.Gu("gapi.auth.getToken")().access_token:(jJ$.instance||(jJ$.instance=new jJ$),B=U9q(),_.T("pageid_as_header_web")||delete B["X-Goog-PageId"],P=Object.assign({},P,B)));c&&(P.Authorization=c);return P};
sJO=function(B,c){var x=qp7();if(x){var P=x.coldConfigData,Y=x.coldHashData;x=x.hotHashData;if(B){var g;c=(g=_.PA(B,gK,62))!=null?g:new gK;P=_.dW(c,1,P);_.dW(P,3,Y).setHotHashData(x);_.Pa(B,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},P&&(c.client.configInfo.coldConfigData=P),Y&&(c.client.configInfo.coldHashData=Y),x&&(c.client.configInfo.hotHashData=x))}};
sE=function(B){for(var c=B.length;--c>=0;)B[c]=0};
Cgx=function(B,c,x,P,Y){this.static_tree=B;this.extra_bits=c;this.extra_base=x;this.elems=P;this.max_length=Y;this.has_stree=B&&B.length};
hdA=function(B,c){this.dyn_tree=B;this.max_code=0;this.stat_desc=c};
pp=function(B,c){B.pending_buf[B.pending++]=c&255;B.pending_buf[B.pending++]=c>>>8&255};
kr=function(B,c,x){B.bi_valid>16-x?(B.bi_buf|=c<<B.bi_valid&65535,pp(B,B.bi_buf),B.bi_buf=c>>16-B.bi_valid,B.bi_valid+=x-16):(B.bi_buf|=c<<B.bi_valid&65535,B.bi_valid+=x)};
X1=function(B,c,x){kr(B,x[c*2],x[c*2+1])};
m9X=function(B,c){var x=0;do x|=B&1,B>>>=1,x<<=1;while(--c>0);return x>>>1};
Tj7=function(B,c,x){var P=Array(16),Y=0,g;for(g=1;g<=15;g++)P[g]=Y=Y+x[g-1]<<1;for(x=0;x<=c;x++)Y=B[x*2+1],Y!==0&&(B[x*2]=m9X(P[Y]++,Y))};
VcA=function(B){var c;for(c=0;c<286;c++)B.dyn_ltree[c*2]=0;for(c=0;c<30;c++)B.dyn_dtree[c*2]=0;for(c=0;c<19;c++)B.bl_tree[c*2]=0;B.dyn_ltree[512]=1;B.opt_len=B.static_len=0;B.last_lit=B.matches=0};
tco=function(B){B.bi_valid>8?pp(B,B.bi_buf):B.bi_valid>0&&(B.pending_buf[B.pending++]=B.bi_buf);B.bi_buf=0;B.bi_valid=0};
wrq=function(B,c,x){tco(B);pp(B,x);pp(B,~x);$r.arraySet(B.pending_buf,B.window,c,x,B.pending);B.pending+=x};
Njx=function(B,c,x,P){var Y=c*2,g=x*2;return B[Y]<B[g]||B[Y]===B[g]&&P[c]<=P[x]};
I1o=function(B,c,x){for(var P=B.heap[x],Y=x<<1;Y<=B.heap_len;){Y<B.heap_len&&Njx(c,B.heap[Y+1],B.heap[Y],B.depth)&&Y++;if(Njx(c,P,B.heap[Y],B.depth))break;B.heap[x]=B.heap[Y];x=Y;Y<<=1}B.heap[x]=P};
OWx=function(B,c,x){var P=0;if(B.last_lit!==0){do{var Y=B.pending_buf[B.d_buf+P*2]<<8|B.pending_buf[B.d_buf+P*2+1];var g=B.pending_buf[B.l_buf+P];P++;if(Y===0)X1(B,g,c);else{var k=np[g];X1(B,k+256+1,c);var n=Ji$[k];n!==0&&(g-=W5A[k],kr(B,g,n));Y--;k=Y<256?br[Y]:br[256+(Y>>>7)];X1(B,k,x);n=l1I[k];n!==0&&(Y-=ECX[k],kr(B,Y,n))}}while(P<B.last_lit)}X1(B,256,c)};
oCI=function(B,c){var x=c.dyn_tree,P=c.stat_desc.static_tree,Y=c.stat_desc.has_stree,g=c.stat_desc.elems,k,n=-1;B.heap_len=0;B.heap_max=573;for(k=0;k<g;k++)x[k*2]!==0?(B.heap[++B.heap_len]=n=k,B.depth[k]=0):x[k*2+1]=0;for(;B.heap_len<2;){var b=B.heap[++B.heap_len]=n<2?++n:0;x[b*2]=1;B.depth[b]=0;B.opt_len--;Y&&(B.static_len-=P[b*2+1])}c.max_code=n;for(k=B.heap_len>>1;k>=1;k--)I1o(B,x,k);b=g;do k=B.heap[1],B.heap[1]=B.heap[B.heap_len--],I1o(B,x,1),P=B.heap[1],B.heap[--B.heap_max]=k,B.heap[--B.heap_max]=
P,x[b*2]=x[k*2]+x[P*2],B.depth[b]=(B.depth[k]>=B.depth[P]?B.depth[k]:B.depth[P])+1,x[k*2+1]=x[P*2+1]=b,B.heap[1]=b++,I1o(B,x,1);while(B.heap_len>=2);B.heap[--B.heap_max]=B.heap[1];k=c.dyn_tree;b=c.max_code;P=c.stat_desc.static_tree;Y=c.stat_desc.has_stree;g=c.stat_desc.extra_bits;var d=c.stat_desc.extra_base,q=c.stat_desc.max_length,C,h=0;for(C=0;C<=15;C++)B.bl_count[C]=0;k[B.heap[B.heap_max]*2+1]=0;for(c=B.heap_max+1;c<573;c++){var V=B.heap[c];C=k[k[V*2+1]*2+1]+1;C>q&&(C=q,h++);k[V*2+1]=C;if(!(V>
b)){B.bl_count[C]++;var N=0;V>=d&&(N=g[V-d]);var l=k[V*2];B.opt_len+=l*(C+N);Y&&(B.static_len+=l*(P[V*2+1]+N))}}if(h!==0){do{for(C=q-1;B.bl_count[C]===0;)C--;B.bl_count[C]--;B.bl_count[C+1]+=2;B.bl_count[q]--;h-=2}while(h>0);for(C=q;C!==0;C--)for(V=B.bl_count[C];V!==0;)P=B.heap[--c],P>b||(k[P*2+1]!==C&&(B.opt_len+=(C-k[P*2+1])*k[P*2],k[P*2+1]=C),V--)}Tj7(x,n,B.bl_count)};
QJl=function(B,c,x){var P,Y=-1,g=c[1],k=0,n=7,b=4;g===0&&(n=138,b=3);c[(x+1)*2+1]=65535;for(P=0;P<=x;P++){var d=g;g=c[(P+1)*2+1];++k<n&&d===g||(k<b?B.bl_tree[d*2]+=k:d!==0?(d!==Y&&B.bl_tree[d*2]++,B.bl_tree[32]++):k<=10?B.bl_tree[34]++:B.bl_tree[36]++,k=0,Y=d,g===0?(n=138,b=3):d===g?(n=6,b=3):(n=7,b=4))}};
F5o=function(B,c,x){var P,Y=-1,g=c[1],k=0,n=7,b=4;g===0&&(n=138,b=3);for(P=0;P<=x;P++){var d=g;g=c[(P+1)*2+1];if(!(++k<n&&d===g)){if(k<b){do X1(B,d,B.bl_tree);while(--k!==0)}else d!==0?(d!==Y&&(X1(B,d,B.bl_tree),k--),X1(B,16,B.bl_tree),kr(B,k-3,2)):k<=10?(X1(B,17,B.bl_tree),kr(B,k-3,3)):(X1(B,18,B.bl_tree),kr(B,k-11,7));k=0;Y=d;g===0?(n=138,b=3):d===g?(n=6,b=3):(n=7,b=4)}}};
vCq=function(B){var c=4093624447,x;for(x=0;x<=31;x++,c>>>=1)if(c&1&&B.dyn_ltree[x*2]!==0)return 0;if(B.dyn_ltree[18]!==0||B.dyn_ltree[20]!==0||B.dyn_ltree[26]!==0)return 1;for(x=32;x<256;x++)if(B.dyn_ltree[x*2]!==0)return 1;return 0};
Kp=function(B,c,x){B.pending_buf[B.d_buf+B.last_lit*2]=c>>>8&255;B.pending_buf[B.d_buf+B.last_lit*2+1]=c&255;B.pending_buf[B.l_buf+B.last_lit]=x&255;B.last_lit++;c===0?B.dyn_ltree[x*2]++:(B.matches++,c--,B.dyn_ltree[(np[x]+256+1)*2]++,B.dyn_dtree[(c<256?br[c]:br[256+(c>>>7)])*2]++);return B.last_lit===B.lit_bufsize-1};
UE=function(B,c){B.msg=jl[c];return c};
dK=function(B){for(var c=B.length;--c>=0;)B[c]=0};
q6=function(B){var c=B.state,x=c.pending;x>B.avail_out&&(x=B.avail_out);x!==0&&($r.arraySet(B.output,c.pending_buf,c.pending_out,x,B.next_out),B.next_out+=x,c.pending_out+=x,B.total_out+=x,B.avail_out-=x,c.pending-=x,c.pending===0&&(c.pending_out=0))};
m1=function(B,c){var x=B.block_start>=0?B.block_start:-1,P=B.strstart-B.block_start,Y=0;if(B.level>0){B.strm.data_type===2&&(B.strm.data_type=vCq(B));oCI(B,B.l_desc);oCI(B,B.d_desc);QJl(B,B.dyn_ltree,B.l_desc.max_code);QJl(B,B.dyn_dtree,B.d_desc.max_code);oCI(B,B.bl_desc);for(Y=18;Y>=3&&B.bl_tree[zdd[Y]*2+1]===0;Y--);B.opt_len+=3*(Y+1)+5+5+4;var g=B.opt_len+3+7>>>3;var k=B.static_len+3+7>>>3;k<=g&&(g=k)}else g=k=P+5;if(P+4<=g&&x!==-1)kr(B,c?1:0,3),wrq(B,x,P);else if(B.strategy===4||k===g)kr(B,2+(c?
1:0),3),OWx(B,Cp,hj);else{kr(B,4+(c?1:0),3);x=B.l_desc.max_code+1;P=B.d_desc.max_code+1;Y+=1;kr(B,x-257,5);kr(B,P-1,5);kr(B,Y-4,4);for(g=0;g<Y;g++)kr(B,B.bl_tree[zdd[g]*2+1],3);F5o(B,B.dyn_ltree,x-1);F5o(B,B.dyn_dtree,P-1);OWx(B,B.dyn_ltree,B.dyn_dtree)}VcA(B);c&&tco(B);B.block_start=B.strstart;q6(B.strm)};
T6=function(B,c){B.pending_buf[B.pending++]=c};
Vx=function(B,c){B.pending_buf[B.pending++]=c>>>8&255;B.pending_buf[B.pending++]=c&255};
Spw=function(B,c){var x=B.max_chain_length,P=B.strstart,Y=B.prev_length,g=B.nice_match,k=B.strstart>B.w_size-262?B.strstart-(B.w_size-262):0,n=B.window,b=B.w_mask,d=B.prev,q=B.strstart+258,C=n[P+Y-1],h=n[P+Y];B.prev_length>=B.good_match&&(x>>=2);g>B.lookahead&&(g=B.lookahead);do{var V=c;if(n[V+Y]===h&&n[V+Y-1]===C&&n[V]===n[P]&&n[++V]===n[P+1]){P+=2;for(V++;n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&n[++P]===n[++V]&&P<q;);
V=258-(q-P);P=q-258;if(V>Y){B.match_start=c;Y=V;if(V>=g)break;C=n[P+Y-1];h=n[P+Y]}}}while((c=d[c&b])>k&&--x!==0);return Y<=B.lookahead?Y:B.lookahead};
wK=function(B){var c=B.w_size,x;do{var P=B.window_size-B.lookahead-B.strstart;if(B.strstart>=c+(c-262)){$r.arraySet(B.window,B.window,c,c,0);B.match_start-=c;B.strstart-=c;B.block_start-=c;var Y=x=B.hash_size;do{var g=B.head[--Y];B.head[Y]=g>=c?g-c:0}while(--x);Y=x=c;do g=B.prev[--Y],B.prev[Y]=g>=c?g-c:0;while(--x);P+=c}if(B.strm.avail_in===0)break;Y=B.strm;x=B.window;g=B.strstart+B.lookahead;var k=Y.avail_in;k>P&&(k=P);k===0?x=0:(Y.avail_in-=k,$r.arraySet(x,Y.input,Y.next_in,k,g),Y.state.wrap===
1?Y.adler=yix(Y.adler,x,k,g):Y.state.wrap===2&&(Y.adler=tj(Y.adler,x,k,g)),Y.next_in+=k,Y.total_in+=k,x=k);B.lookahead+=x;if(B.lookahead+B.insert>=3)for(P=B.strstart-B.insert,B.ins_h=B.window[P],B.ins_h=(B.ins_h<<B.hash_shift^B.window[P+1])&B.hash_mask;B.insert&&!(B.ins_h=(B.ins_h<<B.hash_shift^B.window[P+3-1])&B.hash_mask,B.prev[P&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=P,P++,B.insert--,B.lookahead+B.insert<3););}while(B.lookahead<262&&B.strm.avail_in!==0)};
GqQ=function(B,c){for(var x;;){if(B.lookahead<262){wK(B);if(B.lookahead<262&&c===0)return 1;if(B.lookahead===0)break}x=0;B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,x=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);x!==0&&B.strstart-x<=B.w_size-262&&(B.match_length=Spw(B,x));if(B.match_length>=3)if(x=Kp(B,B.strstart-B.match_start,B.match_length-3),B.lookahead-=B.match_length,B.match_length<=B.max_lazy_match&&B.lookahead>=3){B.match_length--;
do B.strstart++,B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart;while(--B.match_length!==0);B.strstart++}else B.strstart+=B.match_length,B.match_length=0,B.ins_h=B.window[B.strstart],B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+1])&B.hash_mask;else x=Kp(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++;if(x&&(m1(B,!1),B.strm.avail_out===0))return 1}B.insert=B.strstart<2?B.strstart:2;return c===4?(m1(B,
!0),B.strm.avail_out===0?3:4):B.last_lit&&(m1(B,!1),B.strm.avail_out===0)?1:2};
Jj=function(B,c){for(var x,P;;){if(B.lookahead<262){wK(B);if(B.lookahead<262&&c===0)return 1;if(B.lookahead===0)break}x=0;B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,x=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);B.prev_length=B.match_length;B.prev_match=B.match_start;B.match_length=2;x!==0&&B.prev_length<B.max_lazy_match&&B.strstart-x<=B.w_size-262&&(B.match_length=Spw(B,x),B.match_length<=5&&(B.strategy===1||B.match_length===3&&
B.strstart-B.match_start>4096)&&(B.match_length=2));if(B.prev_length>=3&&B.match_length<=B.prev_length){P=B.strstart+B.lookahead-3;x=Kp(B,B.strstart-1-B.prev_match,B.prev_length-3);B.lookahead-=B.prev_length-1;B.prev_length-=2;do++B.strstart<=P&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);while(--B.prev_length!==0);B.match_available=0;B.match_length=2;B.strstart++;if(x&&(m1(B,!1),B.strm.avail_out===0))return 1}else if(B.match_available){if((x=
Kp(B,0,B.window[B.strstart-1]))&&m1(B,!1),B.strstart++,B.lookahead--,B.strm.avail_out===0)return 1}else B.match_available=1,B.strstart++,B.lookahead--}B.match_available&&(Kp(B,0,B.window[B.strstart-1]),B.match_available=0);B.insert=B.strstart<2?B.strstart:2;return c===4?(m1(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(m1(B,!1),B.strm.avail_out===0)?1:2};
Mc7=function(B,c){for(var x,P,Y,g=B.window;;){if(B.lookahead<=258){wK(B);if(B.lookahead<=258&&c===0)return 1;if(B.lookahead===0)break}B.match_length=0;if(B.lookahead>=3&&B.strstart>0&&(P=B.strstart-1,x=g[P],x===g[++P]&&x===g[++P]&&x===g[++P])){for(Y=B.strstart+258;x===g[++P]&&x===g[++P]&&x===g[++P]&&x===g[++P]&&x===g[++P]&&x===g[++P]&&x===g[++P]&&x===g[++P]&&P<Y;);B.match_length=258-(Y-P);B.match_length>B.lookahead&&(B.match_length=B.lookahead)}B.match_length>=3?(x=Kp(B,1,B.match_length-3),B.lookahead-=
B.match_length,B.strstart+=B.match_length,B.match_length=0):(x=Kp(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++);if(x&&(m1(B,!1),B.strm.avail_out===0))return 1}B.insert=0;return c===4?(m1(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(m1(B,!1),B.strm.avail_out===0)?1:2};
L5q=function(B,c){for(var x;;){if(B.lookahead===0&&(wK(B),B.lookahead===0)){if(c===0)return 1;break}B.match_length=0;x=Kp(B,0,B.window[B.strstart]);B.lookahead--;B.strstart++;if(x&&(m1(B,!1),B.strm.avail_out===0))return 1}B.insert=0;return c===4?(m1(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(m1(B,!1),B.strm.avail_out===0)?1:2};
WA=function(B,c,x,P,Y){this.good_length=B;this.max_lazy=c;this.nice_length=x;this.max_chain=P;this.func=Y};
ZWq=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 $r.Buf16(1146);this.dyn_dtree=new $r.Buf16(122);this.bl_tree=new $r.Buf16(78);dK(this.dyn_ltree);dK(this.dyn_dtree);dK(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new $r.Buf16(16);this.heap=new $r.Buf16(573);dK(this.heap);this.heap_max=this.heap_len=0;this.depth=new $r.Buf16(573);dK(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};
HWx=function(B,c){if(!B||!B.state||c>5||c<0)return B?UE(B,-2):-2;var x=B.state;if(!B.output||!B.input&&B.avail_in!==0||x.status===666&&c!==4)return UE(B,B.avail_out===0?-5:-2);x.strm=B;var P=x.last_flush;x.last_flush=c;if(x.status===42)if(x.wrap===2)B.adler=0,T6(x,31),T6(x,139),T6(x,8),x.gzhead?(T6(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),T6(x,x.gzhead.time&255),T6(x,x.gzhead.time>>8&255),T6(x,x.gzhead.time>>16&255),T6(x,x.gzhead.time>>
24&255),T6(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),T6(x,x.gzhead.os&255),x.gzhead.extra&&x.gzhead.extra.length&&(T6(x,x.gzhead.extra.length&255),T6(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(B.adler=tj(B.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(T6(x,0),T6(x,0),T6(x,0),T6(x,0),T6(x,0),T6(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),T6(x,3),x.status=113);else{var Y=8+(x.w_bits-8<<4)<<8;Y|=(x.strategy>=2||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6;x.strstart!==0&&(Y|=
32);x.status=113;Vx(x,Y+(31-Y%31));x.strstart!==0&&(Vx(x,B.adler>>>16),Vx(x,B.adler&65535));B.adler=1}if(x.status===69)if(x.gzhead.extra){for(Y=x.pending;x.gzindex<(x.gzhead.extra.length&65535)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y)),q6(B),Y=x.pending,x.pending!==x.pending_buf_size));)T6(x,x.gzhead.extra[x.gzindex]&255),x.gzindex++;x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y));x.gzindex===x.gzhead.extra.length&&
(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){Y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y)),q6(B),Y=x.pending,x.pending===x.pending_buf_size)){var g=1;break}g=x.gzindex<x.gzhead.name.length?x.gzhead.name.charCodeAt(x.gzindex++)&255:0;T6(x,g)}while(g!==0);x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y));g===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===
91)if(x.gzhead.comment){Y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y)),q6(B),Y=x.pending,x.pending===x.pending_buf_size)){g=1;break}g=x.gzindex<x.gzhead.comment.length?x.gzhead.comment.charCodeAt(x.gzindex++)&255:0;T6(x,g)}while(g!==0);x.gzhead.hcrc&&x.pending>Y&&(B.adler=tj(B.adler,x.pending_buf,x.pending-Y,Y));g===0&&(x.status=103)}else x.status=103;x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&q6(B),
x.pending+2<=x.pending_buf_size&&(T6(x,B.adler&255),T6(x,B.adler>>8&255),B.adler=0,x.status=113)):x.status=113);if(x.pending!==0){if(q6(B),B.avail_out===0)return x.last_flush=-1,0}else if(B.avail_in===0&&(c<<1)-(c>4?9:0)<=(P<<1)-(P>4?9:0)&&c!==4)return UE(B,-5);if(x.status===666&&B.avail_in!==0)return UE(B,-5);if(B.avail_in!==0||x.lookahead!==0||c!==0&&x.status!==666){P=x.strategy===2?L5q(x,c):x.strategy===3?Mc7(x,c):lr[x.level].func(x,c);if(P===3||P===4)x.status=666;if(P===1||P===3)return B.avail_out===
0&&(x.last_flush=-1),0;if(P===2&&(c===1?(kr(x,2,3),X1(x,256,Cp),x.bi_valid===16?(pp(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):x.bi_valid>=8&&(x.pending_buf[x.pending++]=x.bi_buf&255,x.bi_buf>>=8,x.bi_valid-=8)):c!==5&&(kr(x,0,3),wrq(x,0,0),c===3&&(dK(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),q6(B),B.avail_out===0))return x.last_flush=-1,0}if(c!==4)return 0;if(x.wrap<=0)return 1;x.wrap===2?(T6(x,B.adler&255),T6(x,B.adler>>8&255),T6(x,B.adler>>16&255),T6(x,B.adler>>24&255),T6(x,
B.total_in&255),T6(x,B.total_in>>8&255),T6(x,B.total_in>>16&255),T6(x,B.total_in>>24&255)):(Vx(x,B.adler>>>16),Vx(x,B.adler&65535));q6(B);x.wrap>0&&(x.wrap=-x.wrap);return x.pending!==0?0:1};
f1q=function(B){if(!(this instanceof f1q))return new f1q(B);B=this.options=$r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},B||{});B.raw&&B.windowBits>0?B.windowBits=-B.windowBits:B.gzip&&B.windowBits>0&&B.windowBits<16&&(B.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new iWq;this.strm.avail_out=0;var c=this.strm;var x=B.level,P=B.method,Y=B.windowBits,g=B.memLevel,k=B.strategy;if(c){var n=1;x===-1&&(x=6);Y<0?(n=0,Y=-Y):Y>15&&
(n=2,Y-=16);if(g<1||g>9||P!==8||Y<8||Y>15||x<0||x>9||k<0||k>4)c=UE(c,-2);else{Y===8&&(Y=9);var b=new ZWq;c.state=b;b.strm=c;b.wrap=n;b.gzhead=null;b.w_bits=Y;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=g+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new $r.Buf8(b.w_size*2);b.head=new $r.Buf16(b.hash_size);b.prev=new $r.Buf16(b.w_size);b.lit_bufsize=1<<g+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new $r.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=x;b.strategy=k;b.method=P;if(c&&c.state){c.total_in=c.total_out=0;c.data_type=2;x=c.state;x.pending=0;x.pending_out=0;x.wrap<0&&(x.wrap=-x.wrap);x.status=x.wrap?42:113;c.adler=x.wrap===2?0:1;x.last_flush=0;if(!AiC){P=Array(16);for(g=k=0;g<28;g++)for(W5A[g]=k,Y=0;Y<1<<Ji$[g];Y++)np[k++]=g;np[k-1]=g;for(g=k=0;g<16;g++)for(ECX[g]=k,Y=0;Y<1<<l1I[g];Y++)br[k++]=g;for(k>>=7;g<30;g++)for(ECX[g]=k<<7,Y=0;Y<1<<l1I[g]-7;Y++)br[256+k++]=g;for(Y=0;Y<=15;Y++)P[Y]=
0;for(Y=0;Y<=143;)Cp[Y*2+1]=8,Y++,P[8]++;for(;Y<=255;)Cp[Y*2+1]=9,Y++,P[9]++;for(;Y<=279;)Cp[Y*2+1]=7,Y++,P[7]++;for(;Y<=287;)Cp[Y*2+1]=8,Y++,P[8]++;Tj7(Cp,287,P);for(Y=0;Y<30;Y++)hj[Y*2+1]=5,hj[Y*2]=m9X(Y,5);uX7=new Cgx(Cp,Ji$,257,286,15);D9l=new Cgx(hj,l1I,0,30,15);ri7=new Cgx([],Rd7,0,19,7);AiC=!0}x.l_desc=new hdA(x.dyn_ltree,uX7);x.d_desc=new hdA(x.dyn_dtree,D9l);x.bl_desc=new hdA(x.bl_tree,ri7);x.bi_buf=0;x.bi_valid=0;VcA(x);x=0}else x=UE(c,-2);x===0&&(c=c.state,c.window_size=2*c.w_size,dK(c.head),
c.max_lazy_match=lr[c.level].max_lazy,c.good_match=lr[c.level].good_length,c.nice_match=lr[c.level].nice_length,c.max_chain_length=lr[c.level].max_chain,c.strstart=0,c.block_start=0,c.lookahead=0,c.insert=0,c.match_length=c.prev_length=2,c.match_available=0,c.ins_h=0);c=x}}else c=-2;if(c!==0)throw Error(jl[c]);B.header&&(c=this.strm)&&c.state&&c.state.wrap===2&&(c.state.gzhead=B.header);if(B.dictionary){var d;typeof B.dictionary==="string"?d=edq(B.dictionary):BL$.call(B.dictionary)==="[object ArrayBuffer]"?
d=new Uint8Array(B.dictionary):d=B.dictionary;B=this.strm;g=d;k=g.length;if(B&&B.state)if(d=B.state,c=d.wrap,c===2||c===1&&d.status!==42||d.lookahead)c=-2;else{c===1&&(B.adler=yix(B.adler,g,k,0));d.wrap=0;k>=d.w_size&&(c===0&&(dK(d.head),d.strstart=0,d.block_start=0,d.insert=0),x=new $r.Buf8(d.w_size),$r.arraySet(x,g,k-d.w_size,d.w_size,0),g=x,k=d.w_size);x=B.avail_in;P=B.next_in;Y=B.input;B.avail_in=k;B.next_in=0;B.input=g;for(wK(d);d.lookahead>=3;){g=d.strstart;k=d.lookahead-2;do d.ins_h=(d.ins_h<<
d.hash_shift^d.window[g+3-1])&d.hash_mask,d.prev[g&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=g,g++;while(--k);d.strstart=g;d.lookahead=2;wK(d)}d.strstart+=d.lookahead;d.block_start=d.strstart;d.insert=d.lookahead;d.lookahead=0;d.match_length=d.prev_length=2;d.match_available=0;B.next_in=P;B.input=Y;B.avail_in=x;d.wrap=c;c=0}else c=-2;if(c!==0)throw Error(jl[c]);this._dict_set=!0}};
cm7=function(B,c){c=c||{};c.gzip=!0;c=new f1q(c);c.push(B,!0);if(c.err)throw c.msg||jl[c.err];return c.result};
PGX=function(B,c){var x=xZw();x&&x.publish.call(x,B.toString(),B,c)};
p3Q=function(B,c,x){var P=xZw();if(!P)return 0;var Y=P.subscribe(B.toString(),function(g,k){var n=_.Gu("ytPubsub2Pubsub2SkipSubKey");n&&n==Y||(n=function(){if(Yvx[Y])try{if(k&&B instanceof ajQ&&B!=g)try{var b=B.dataClass,d=k;if(!d.args||!d.version)throw Error("Xc");try{if(!b.version_){var q=new b;b.version_=q.version}var C=b.version_}catch(h){}if(!C||d.version!=C)throw Error("Yc");try{k=Reflect.construct(b,_.DA(d.args))}catch(h){throw h.message="yt.pubsub2.Data.deserialize(): "+h.message,h;}}catch(h){throw h.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+B.toString()+": "+h.message,h;}c.call(x||window,k)}catch(h){_.SI(h)}},gNC[B.toString()]?_.Gu("yt.scheduler.instance")?_.EE.addLowPriorityJob(n):_.pU(n,0):n())});
Yvx[Y]=!0;swY[B.toString()]||(swY[B.toString()]=[]);swY[B.toString()].push(Y);return Y};
nNI=function(){var B=k$7,c=p3Q(X3q,function(x){B.apply(void 0,arguments);$ZQ(c)});
return c};
$ZQ=function(B){var c=xZw();c&&(typeof B==="number"&&(B=[B]),_.Zg(B,function(x){c.unsubscribeByKey(x);delete Yvx[x]}))};
xZw=function(){return _.Gu("ytPubsub2Pubsub2Instance")};
bko=function(B,c,x){x=x===void 0?{sampleRate:.1}:x;Math.random()<Math.min(.02,x.sampleRate/100)&&PGX("meta_logging_csi_event",{timerName:B,timelineData:c})};
_.Kko=function(B){return B?(B=B.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.ST(B):null:null};
_.OE=function(B){return B?(B=B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.kX(B):null:null};
UZ7=function(){jww||(jww=_.OE(_.v5("WORKER_SERIALIZATION_URL")));return jww||void 0};
_.qv7=function(){var B=UZ7();dZA||B===void 0||(dZA=new Worker(_.X_(B),void 0));return dZA};
_.CG7=function(){return typeof Worker==="function"&&UZ7()?!0:!1};
_.VBw=function(){if(_.CG7()&&!hlo){var B=function(x){x=x.data;if(x.op==="gzippedGelBatch"){var P=mZ7.get(x.key);P&&(TLl(x.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),mZ7.delete(x.key))}},c=_.qv7();
c&&(c.addEventListener("message",B),c.onerror=function(){mZ7.clear()},hlo=!0)}};
ljO=function(B,c,x,P,Y){Y=Y===void 0?!1:Y;var g={startTime:(0,_.BA)(),ticks:{},infos:{}};if(ox)try{var k=tBC(c);if(k!=null&&(k>w3Y||k<NLx))P(B,x);else{if(_.T("gzip_gel_with_worker")&&(_.T("initial_gzip_use_main_thread")&&!Ijo||!_.T("initial_gzip_use_main_thread"))){hlo||_.VBw();var n=_.qv7();if(n&&!Y){mZ7.set(JmX,{latencyPayload:g,url:B,options:x,sendFn:P});n.postMessage({op:"gelBatchToGzip",serializedBatch:c,key:JmX});JmX++;return}}var b=cm7(Wkx(c));TLl(b,g,B,x,P)}}catch(d){_.MR(d),P(B,x)}else P(B,
x)};
TLl=function(B,c,x,P,Y){Ijo=!1;var g=(0,_.BA)();c.ticks.gelc=g;Qx++;_.T("disable_compression_due_to_performance_degredation")&&g-c.startTime>=ENX&&(Okd++,_.T("abandon_compression_after_N_slow_zips")?Qx===_.Yu("compression_disable_point")&&Okd>oNY&&(ox=!1):ox=!1);QwY(c);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=B;P.postParams=void 0;Y(x,P)};
Fkw=function(B){var c=c===void 0?!1:c;var x=x===void 0?!1:x;var P=(0,_.BA)(),Y={startTime:P,ticks:{},infos:{}},g=c?_.Gu("yt.logging.gzipForFetch",!1):!0;if(ox&&g){if(!B.body)return B;try{var k=x?B.body:typeof B.body==="string"?B.body:JSON.stringify(B.body);g=k;if(!x&&typeof k==="string"){var n=tBC(k);if(n!=null&&(n>w3Y||n<NLx))return B;x=c?{level:1}:void 0;g=cm7(Wkx(k),x);var b=(0,_.BA)();Y.ticks.gelc=b;if(c){Qx++;if((_.T("disable_compression_due_to_performance_degredation")||_.T("disable_compression_due_to_performance_degradation_lr"))&&
b-P>=ENX)if(Okd++,_.T("abandon_compression_after_N_slow_zips")||_.T("abandon_compression_after_N_slow_zips_lr")){c=Okd/Qx;var d=oNY/_.Yu("compression_disable_point");Qx>0&&Qx%_.Yu("compression_disable_point")===0&&c>=d&&(ox=!1)}else ox=!1;QwY(Y)}}B.headers=Object.assign({},{"Content-Encoding":"gzip"},B.headers||{});B.body=g;return B}catch(q){return _.MR(q),B}}else return B};
tBC=function(B){try{return(new Blob(B.split(""))).size}catch(c){return _.MR(c),null}};
QwY=function(B){_.T("gel_compression_csi_killswitch")||!_.T("log_gel_compression_latency")&&!_.T("log_gel_compression_latency_lr")||bko("gel_compression",B,{sampleRate:.1})};
vNx=function(){this.blockSize=-1};
F1=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var B=1;B<this.blockSize;++B)this.pad_[B]=0;this.total_=this.inbuf_=0;this.reset()};
Sv$=function(B){B=Object.assign({},B);delete B.Authorization;var c=_.zlC();if(c){var x=new F1;x.update(_.v5("INNERTUBE_API_KEY"));x.update(c);B.hash=_.PN(x.digest(),3)}return B};
z6=function(){ymY||(ymY=new _.vA("yt.innertube"));return ymY};
G$w=function(B,c,x,P){if(P)return null;P=z6().get("nextId",!0)||1;var Y=z6().get("requests",!0)||{};Y[P]={method:B,request:c,authState:Sv$(x),requestTime:Math.round((0,_.BA)())};z6().set("nextId",P+1,86400,!0);z6().set("requests",Y,86400,!0);return P};
MBl=function(B){var c=z6().get("requests",!0)||{};delete c[B];z6().set("requests",c,86400,!0)};
Zk7=function(B){var c=z6().get("requests",!0);if(c){for(var x in c){var P=c[x];if(!(Math.round((0,_.BA)())-P.requestTime<6E4)){var Y=P.authState,g=Sv$(_.d9x(!1));_.wW.equals(Y,g)&&(Y=P.request,"requestTimeMs"in Y&&(Y.requestTimeMs=Math.round((0,_.BA)())),Lk7(B,P.method,Y,{}));delete c[x]}}z6().set("requests",c,86400,!0)}};
Hk7=function(B){var c;return(B=B==null?void 0:(c=B.error)==null?void 0:c.code)&&B>=400&&B<=599?!1:!0};
fjO=function(B){var c;B=B==null?void 0:(c=B.error)==null?void 0:c.code;return!(B!==400&&B!==415)};
Amx=function(){if(ik$)return ik$();var B={};ik$=eR("LogsDatabaseV2",{objectStores:(B.LogsRequestsStore={addedAtVersion:2},B),shared:!1,upgrade:function(c,x,P){x(2)&&Sl(c,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});x(3);x(5)&&(P=P.objectStore("LogsRequestsStore"),P.JSC$8654_wrapped.indexNames.contains("newRequest")&&P.JSC$8654_wrapped.deleteIndex("newRequest"),yx(P,"newRequestV2",["status","interface","timestamp"]));x(7)&&c.JSC$8639_wrapped.objectStoreNames.contains("sapisid")&&c.JSC$8639_wrapped.deleteObjectStore("sapisid");
x(9)&&c.JSC$8639_wrapped.objectStoreNames.contains("SWHealthLog")&&c.JSC$8639_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return ik$()};
G6=function(B){return _.LU(Amx(),B)};
DZ7=function(B,c){var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return x={startTime:(0,_.BA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.K(k,G6(c),2);if(k.nextAddress!=3)return P=k.yieldResult,Y=Object.assign({},B,{options:JSON.parse(JSON.stringify(B.options)),interface:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.K(k,P.put("LogsRequestsStore",Y),3);g=k.yieldResult;x.ticks.tc=(0,_.BA)();u9d(x);return k.return(g)})};
rmQ=function(B,c){var x,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return x={startTime:(0,_.BA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.K(q,G6(c),2);if(q.nextAddress!=3)return P=q.yieldResult,Y=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[B,Y,0],k=[B,Y,(0,_.BA)()],n=IDBKeyRange.bound(g,k),b="prev",_.T("use_fifo_for_networkless")&&(b="next"),d=void 0,_.K(q,_.Hp(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(C){return _.cA(C.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:n,direction:b},function(h){h.getValue()&&(d=h.getValue(),B==="NEW"&&(d.status="QUEUED",h.update(d)))})}),3);
x.ticks.tc=(0,_.BA)();u9d(x);return q.return(d)})};
Rlo=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,G6(c),2);x=P.yieldResult;return P.return(_.Hp(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var g=Y.objectStore("LogsRequestsStore");return g.get(B).then(function(k){if(k)return k.status="QUEUED",g.put(k).then(function(){return k})})}))})};
elw=function(B,c,x,P){x=x===void 0?!0:x;var Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,G6(c),2);Y=g.yieldResult;return g.return(_.Hp(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){var n=k.objectStore("LogsRequestsStore");return n.get(B).then(function(b){return b?(b.status="NEW",x&&(b.sendCount+=1),P!==void 0&&(b.options.compress=P),n.put(b).then(function(){return b})):vp.resolve(void 0)})}))})};
B_7=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,G6(c),2);x=P.yieldResult;return P.return(x.delete("LogsRequestsStore",B))})};
cVC=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,G6(B),2);c=P.yieldResult;x=(0,_.BA)()-2592E6;return _.K(P,_.Hp(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){return AK(Y.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=x)return g.delete().then(function(){return g.continue()})})}),0)})};
xAo=function(){_.X(function(B){return _.K(B,HN$("LogsDatabaseV2"),0)})};
u9d=function(B){_.T("nwl_csi_killswitch")||bko("networkless_performance",B,{sampleRate:1})};
_.Yiw=function(B){return _.LU(PI7(),B)};
a3l=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,_.Yiw(B),2);c=P.yieldResult;x=(0,_.BA)()-2592E6;return _.K(P,_.Hp(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Y){return AK(Y.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=x)return g.delete().then(function(){return g.continue()})})}),0)})};
gHx=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,_.Yiw(B),2);c=x.yieldResult;return _.K(x,c.clear("SWHealthLog"),0)})};
_.M6=function(B,c,x,P,Y,g,k){Y=Y===void 0?"":Y;g=g===void 0?!1:g;k=k===void 0?!1:k;if(B)if(x&&!O4("cobalt"))_.MR(new _.mc("Legacy referrer-scrubbed ping detected")),B&&su7(B,void 0,{scrubReferrer:!0});else if(Y)OlQ(B,c,"POST",Y,P);else if(_.v5("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||k)OlQ(B,c,"GET","",P,void 0,g,k);else{b:{try{c:{var n=new pqx({url:B});if(n.urlParamValues_.dsh==="1")var b=null;else{var d=n.urlParamValues_.ae;if(d==="1"){var q=n.urlParamValues_.adurl;if(q)try{b={version:3,directUrl:decodeURIComponent(q),
asyncUrl:whd(n.JSC$7522_url_,"act=1","ri=1",kFl(n))};break c}catch(N){}}b=d==="2"?{version:4,directUrl:whd(n.JSC$7522_url_,"dct=1","suid="+n.suid_,""),asyncUrl:whd(n.JSC$7522_url_,"act=1","ri=1","suid="+n.suid_)}:null}}if(b){var C=_.$u(B);var h=!(!C||!C.endsWith("/aclk")||_.MH(B,"ri")!=="1");break b}}catch(N){}h=!1}if(h){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(B,"")){var V=!0;break b}}catch(N){}V=!1}V?(c&&c(),x=!0):x=!1}else x=!1;x||su7(B,c)}};
su7=function(B,c,x){x=x===void 0?{}:x;var P=new Image,Y=""+XqI++;$Ax[Y]=P;P.onload=P.onerror=function(){c&&$Ax[Y]&&c();delete $Ax[Y]};
x.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=B};
Lp=function(B,c){nHX(B,c==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
brQ=function(B){var c;return((c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"))?B+"&nis=6":B+"&nis=5"};
Kz7=function(B){if(!B)return!1;try{var c;if(((c=_.H5(B))==null?void 0:c.asm)==="4")return!0}catch(x){_.SI(x)}return!1};
nHX=function(B,c){c?(B=brQ(B),_.M6(B,void 0,void 0,void 0,"",!0,!0)):_.M6(B)};
UAO=function(){juq||(juq=new _.vA("yt.offline"));return juq};
dAO=function(B){if(_.T("offline_error_handling")){var c=UAO().get("errors",!0)||{};c[B.message]={name:B.name,stack:B.stack};B.level&&(c[B.message].level=B.level);UAO().set("errors",c,2592E3,!0)}};
CI$=function(B,c,x,P){P=P===void 0?!1:P;c=_.T("web_fp_via_jspb")?Object.assign({},c):c;_.T("use_cfr_monitor")&&qiX(B,c);if(_.T("use_request_time_ms_header"))c.headers&&Rt(B)&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.BA)())));else{var Y;if((Y=c.postParams)==null?0:Y.requestTimeMs)c.postParams.requestTimeMs=Math.round((0,_.BA)())}x&&Object.keys(c).length===0?_.M6(B):c.compress?c.postBody?(typeof c.postBody!=="string"&&(c.postBody=JSON.stringify(c.postBody)),ljO(B,c.postBody,
c,_.nU,P)):ljO(B,JSON.stringify(c.postParams),c,vWA,P):_.nU(B,c)};
h6X=function(B,c){_.T("use_event_time_ms_header")&&Rt(B)&&(c.headers||(c.headers={}),c.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.BA)())));return c};
_.T_7=function(){mAq||(mAq=new _.Z$({logOfflineErrors:!0,enablePolling:!0}));return mAq};
qiX=function(B,c){var x=c.onError?c.onError:function(){};
c.onError=function(Y,g){HA().requestComplete(B,!1);x(Y,g)};
var P=c.onSuccess?c.onSuccess:function(){};
c.onSuccess=function(Y,g){HA().requestComplete(B,!0);P(Y,g)}};
_.VFq=function(){return _.Dg(document.location.toString())!=="www.youtube-nocookie.com"};
_.N_O=function(){return _.Gu("ytNetworklessLoggingInitializationOptions")?_.tFX.isNwlInitialized:_.wqX};
I3C=function(B,c){if(_.T("polymer_on_demand_shady_dom")){var x;var P=(x=B.__shady_native_firstElementChild)!=null?x:B.firstElementChild}else P=B.firstElementChild;for(;P;){if(B=c(P)?P:I3C(P,c))return B;P=P.nextElementSibling}return null};
Wz7=function(){var B=document;if("visibilityState"in B)return B.visibilityState;var c=JVl+"VisibilityState";if(c in B)return B[c]};
_.l3I=function(B,c){var x;fp(B,function(P){x=c[P];return!!x});
return x};
_.Aj=function(B){var c=EHO(B);c?c.focus(void 0):_.ir(B)};
EHO=function(B){return(B=I3C(B,function(c){return _.ur(c)?OrX(c)&&!!c.offsetParent:!1}))?B:null};
_.ir=function(B,c){B.hasAttribute("tabindex")||B.setAttribute("tabindex","-1");B.focus(c)};
oH$=function(B,c,x,P){P=P===void 0?{}:P;B.addEventListener&&(c!="mouseenter"||"onmouseenter"in document?c!="mouseleave"||"onmouseenter"in document?c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"):c="mouseout":c="mouseover");return _.wW.findKey(D$,function(Y){var g=typeof Y[4]==="boolean"&&Y[4]==!!P,k=_.xF(Y[4])&&_.xF(P)&&_.wW.equals(Y[4],P);return!!Y.length&&Y[0]==B&&Y[1]==c&&Y[2]==x&&(g||k)})};
_.Rx=function(B,c,x,P){P=P===void 0?{}:P;if(!B||!B.addEventListener&&!B.attachEvent)return"";var Y=oH$(B,c,x,P);if(Y)return Y;Y=++Quw.count+"";var g=!(c!="mouseenter"&&c!="mouseleave"||!B.addEventListener||"onmouseenter"in document);var k=g?function(n){n=new rK(n);if(!_.QE(n.relatedTarget,function(b){return b==B},!0))return n.currentTarget=B,n.type=c,x.call(B,n)}:function(n){n=new rK(n);
n.currentTarget=B;return x.call(B,n)};
k=_.ya(k);B.addEventListener?(c=="mouseenter"&&g?c="mouseover":c=="mouseleave"&&g?c="mouseout":c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"),FzC()||typeof P==="boolean"?B.addEventListener(c,k,P):B.addEventListener(c,k,!!P.capture)):B.attachEvent("on"+c,k);D$[Y]=[B,c,x,k,P];return Y};
_.z6l=function(B,c,x){var P=P===void 0?{}:P;var Y=_.Rx(B,c,function(){_.vH7(Y);x.apply(B,arguments)},P)};
_.vH7=function(B){B&&(typeof B=="string"&&(B=[B]),_.Zg(B,function(c){if(c in D$){var x=D$[c],P=x[0],Y=x[1],g=x[3];x=x[4];P.removeEventListener?FzC()||typeof x==="boolean"?P.removeEventListener(Y,g,x):P.removeEventListener(Y,g,!!x.capture):P.detachEvent&&P.detachEvent("on"+Y,g);delete D$[c]}}))};
el=function(B){this.callback_=B;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(B=0;B<4;B++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Rx(window,"mousemove",(0,_.wf)(this.onMouseMove_,this));this.timerId_=_.ku((0,_.wf)(this.checkPosition_,this),25)};
yVx=function(){var B={};var c=B.preferMobileEvents===void 0?!1:B.preferMobileEvents;B=B.enableScrollEventListener===void 0?!0:B.enableScrollEventListener;if(_.Gu("_lact",window)==null){var x=parseInt(_.v5("LACT"),10);x=isFinite(x)?Date.now()-Math.max(x,0):-1;_.rr("_lact",x,window);_.rr("_fact",x,window);x==-1&&_.Bo();_.Rx(document,"keydown",_.Bo);_.Rx(document,"keyup",_.Bo);_.Rx(document,"mousedown",_.Bo);_.Rx(document,"mouseup",_.Bo);c?_.Rx(window,"touchmove",function(){SiO("touchmove",200)},{passive:!0}):
(_.Rx(window,"resize",function(){SiO("resize",200)}),B&&_.Rx(window,"scroll",function(){SiO("scroll",200)}));
new el(function(){SiO("mouse",100)});
_.Rx(document,"touchstart",_.Bo,{passive:!0});_.Rx(document,"touchend",_.Bo,{passive:!0})}};
SiO=function(B,c){GF7[B]||(GF7[B]=!0,_.EE.addLowPriorityJob(function(){_.Bo();GF7[B]=!1},c))};
_.Bo=function(){_.Gu("_lact",window)==null&&yVx();var B=Date.now();_.rr("_lact",B,window);_.Gu("_fact",window)==-1&&_.rr("_fact",B,window);(B=_.Gu("ytglobal.ytUtilActivityCallback_"))&&B()};
_.co=function(){var B=_.Gu("_lact",window);return B==null?-1:Math.max(Date.now()-B,0)};
_.aG=function(B,c,x){var P=_.x4();if(P&&c){var Y=P.subscribe(B,function(){var g=arguments,k=function(){Po[Y]&&c.apply&&typeof c.apply=="function"&&c.apply(x||window,g)};
try{_.MFX[B]?k():_.pU(k,0)}catch(n){_.SI(n)}},x);
Po[Y]=!0;Y4[B]||(Y4[B]=[]);Y4[B].push(Y);return Y}return 0};
_.LzY=function(B){var c=_.x4();c&&(typeof B==="number"?B=[B]:typeof B==="string"&&(B=[parseInt(B,10)]),_.Zg(B,function(x){c.unsubscribeByKey(x);delete Po[x]}))};
_.Zrq=function(B,c){var x=_.x4();x&&x.publish.apply(x,arguments)};
_.f3l=function(B){var c=_.x4();if(c)if(c.clear(B),B)Hrw(B);else for(var x in Y4)Hrw(x)};
_.x4=function(){return _.xI.ytPubsubPubsubInstance};
Hrw=function(B){Y4[B]&&(B=Y4[B],_.Zg(B,function(c){Po[c]&&delete Po[c]}),B.length=0)};
ird=function(){var B,c;return"h5vcc"in gU&&((B=gU.h5vcc.traceEvent)==null?0:B.traceBegin)&&((c=gU.h5vcc.traceEvent)==null?0:c.traceEnd)?1:"performance"in gU&&gU.performance.mark&&gU.performance.measure?2:0};
AV7=function(B){var c=ird();switch(c){case 1:gU.h5vcc.traceEvent.traceBegin("YTLR",B);break;case 2:gU.performance.mark(B+"-start");break;case 0:break;default:_.kz(c,"unknown trace type")}};
uIO=function(B){var c=ird();switch(c){case 1:gU.h5vcc.traceEvent.traceEnd("YTLR",B);break;case 2:c=B+"-start";var x=B+"-end";gU.performance.mark(x);gU.performance.measure(B,c,x);break;case 0:break;default:_.kz(c,"unknown trace type")}};
DAA=function(B){var c,x;(x=(c=window).onerror)==null||x.call(c,B.message,"",0,0,B)};
rVl=function(B){if(_.T("web_lifecycle_error_handling_killswitch"))return B();try{return B()}catch(c){DAA(c)}};
R6X=function(B){return[B.auth===void 0?"undefined":B.auth,B.isJspb===void 0?"undefined":B.isJspb,B.cttAuthInfo===void 0?"undefined":B.cttAuthInfo,B.tier===void 0?"undefined":B.tier].join("/")};
_.t=function(B,c){if(B)return B[c.name]};
pE=function(){var B=_.Gu("yt.logging.ims");B||(B=new sb,_.rr("yt.logging.ims",B));return B};
sBX=function(B,c){if(B.endpoint==="log_event"){e6Y(B);var x=BM$(B),P=c9Q(B.payload)||"",Y=xiQ(P),g=200;if(Y){if(Y.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;g=PFO(Y.tier);if(g===400){Ym7(B,c);return}}k4[x]=!0;x={cttAuthInfo:x,isJspb:!1,tier:g};pE().storePayload(x,B.payload);axw(c,!1,x,g9o(P))}};
kZw=function(B,c,x){if(c.endpoint==="log_event"){e6Y(void 0,c);var P=BM$(c,!0),Y=xiQ(B),g=200;if(Y){if(Y.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;g=PFO(Y.tier);if(g===400){pWQ(B,c,x);return}}k4[P]=!0;P={cttAuthInfo:P,isJspb:!0,tier:g};pE().storePayload(P,aU(c.payload));axw(x,!0,P,g9o(B))}};
axw=function(B,c,x,P){c=c===void 0?!1:c;P=P===void 0?!1:P;B&&(XU=new B);B=_.Yu("tvhtml5_logging_max_batch_ads_fork")||_.Yu("tvhtml5_logging_max_batch")||_.Yu("web_logging_max_batch")||100;var Y=(0,_.BA)(),g=XWw(c,x.tier),k=g.lastDebounceQueueFromLogTimeMs;P&&(g.useVideoStatsEndPoint=!0);P=0;x&&(P=pE().getSequenceCount(x));var n=function(){$iX({writeThenSend:!0},c,x.tier)};
P>=1E3?n():P>=B?n9l||(n9l=bFw(function(){n();n9l=void 0},0)):Y-k>=10&&(KU7(c,x.tier),g.lastDebounceQueueFromLogTimeMs=Y)};
Ym7=function(B,c){if(B.endpoint==="log_event"){_.T("more_accurate_gel_parser")&&pE().storePayload({isJspb:!1},B.payload);e6Y(B);var x=BM$(B),P=new Map;P.set(x,[B.payload]);var Y=c9Q(B.payload)||"";c&&(XU=new c);return new _.bb(function(g,k){XU&&XU.isReady()?jBo(P,XU,g,k,{bypassNetworkless:!0},!0,g9o(Y)):g()})}};
pWQ=function(B,c,x){if(c.endpoint==="log_event"){e6Y(void 0,c);var P=BM$(c,!0),Y=new Map;Y.set(P,[aU(c.payload)]);x&&(XU=new x);return new _.bb(function(g){XU&&XU.isReady()?Uil(Y,XU,g,{bypassNetworkless:!0},!0,g9o(B)):g()})}};
BM$=function(B,c){var x="";if(B.dangerousLogToVisitorSession)x="visitorOnlyApprovedKey";else if(B.cttAuthInfo){if(c===void 0?0:c){c=B.cttAuthInfo.token;x=B.cttAuthInfo;var P=new did;x.videoId?P.setVideoId(x.videoId):x.playlistId&&KE(P,2,qmw,Si(x.playlistId));CF$[c]=P}else c=B.cttAuthInfo,x={},c.videoId?x.videoId=c.videoId:c.playlistId&&(x.playlistId=c.playlistId),hL$[B.cttAuthInfo.token]=x;x=B.cttAuthInfo.token}return x};
$iX=function(B,c,x){B=B===void 0?{}:B;c=c===void 0?!1:c;new _.bb(function(P,Y){var g=XWw(c,x),k=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;miA(g.queueTimer);miA(g.queueMaxTimer);g.queueMaxTimer=0;XU&&XU.isReady()?x===void 0&&_.T("enable_web_tiered_gel")?TM7(P,Y,B,c,300,k):TM7(P,Y,B,c,x,k):(KU7(c,x),P())})};
TM7=function(B,c,x,P,Y,g){var k=XU;x=x===void 0?{}:x;P=P===void 0?!1:P;Y=Y===void 0?200:Y;g=g===void 0?!1:g;var n=new Map,b=new Map,d={isJspb:P,cttAuthInfo:void 0,tier:Y},q={isJspb:P,cttAuthInfo:void 0};if(P){c=_.p(Object.keys(k4));for(Y=c.next();!Y.done;Y=c.next())Y=Y.value,b=_.T("enable_web_tiered_gel")?pE().smartExtractMatchingEntries({keys:[d,q],sizeLimit:1E3}):pE().extractMatchingEntries({isJspb:!0,cttAuthInfo:Y}),b.length>0&&n.set(Y,b),(_.T("web_fp_via_jspb_and_json")&&x.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&
delete k4[Y];Uil(n,k,B,x,!1,g)}else{n=_.p(Object.keys(k4));for(d=n.next();!d.done;d=n.next())d=d.value,q=_.T("enable_web_tiered_gel")?pE().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:Y},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):pE().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),q.length>0&&b.set(d,q),(_.T("web_fp_via_jspb_and_json")&&x.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&delete k4[d];jBo(b,k,B,c,x,!1,g)}};
KU7=function(B,c){B=B===void 0?!1:B;c=c===void 0?200:c;var x=function(){$iX({writeThenSend:!0},B,c)},P=XWw(B,c),Y=P===Vrq||P===tr7?5E3:wWw;
_.T("web_gel_timeout_cap")&&!P.queueMaxTimer&&(Y=bFw(function(){x()},Y),P.queueMaxTimer=Y);
miA(P.queueTimer);Y=_.v5("LOGGING_BATCH_TIMEOUT",_.Yu("web_gel_debounce_ms",1E4));_.T("shorten_initial_gel_batch_timeout")&&NMd&&(Y=IxI);Y=bFw(function(){_.Yu("gel_min_batch_size")>0?pE().getSequenceCount({cttAuthInfo:void 0,isJspb:B,tier:c})>=J97&&x():x()},Y);
P.queueTimer=Y};
jBo=function(B,c,x,P,Y,g,k){Y=Y===void 0?{}:Y;var n=Math.round((0,_.BA)()),b=B.size,d=WU$(k);B=_.p(B);var q=B.next();for(k={};!q.done;k={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},q=B.next()){var C=_.p(q.value);q=C.next().value;C=C.next().value;k.batchRequest=_.wW.unsafeClone({context:_.prd(c.config_||_.xr())});if(!_.R7(C)&&!_.T("throw_err_when_logevent_malformed_killswitch")){P();break}k.batchRequest.events=C;
(C=hL$[q])&&lxw(k.batchRequest,q,C);delete hL$[q];k.dangerousLogToVisitorSession=q==="visitorOnlyApprovedKey";E97(k.batchRequest,n,k.dangerousLogToVisitorSession);OF7(Y);k.onSuccess$jscomp$3=function(h){_.T("start_client_gcf")&&_.EE.addLowPriorityJob(function(){return _.X(function(V){return _.K(V,o9w(h),0)})});
b--;b||x()};
k.networkFailures=0;k.onError$jscomp$5=function(h){return function(){h.networkFailures++;if(Y.bypassNetworkless&&h.networkFailures===1)try{Lk7(c,d,h.batchRequest,QBC({writeThenSend:!0},h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,g)),NMd=!1}catch(V){_.SI(V),P()}b--;b||x()}}(k);
try{Lk7(c,d,k.batchRequest,QBC(Y,k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,g)),NMd=!1}catch(h){_.SI(h),P()}}};
Uil=function(B,c,x,P,Y,g){P=P===void 0?{}:P;var k=Math.round((0,_.BA)()),n={value:B.size},b=new Map([].concat(_.wq(B)));b=_.p(b);for(var d=b.next();!d.done;d=b.next()){var q=_.p(d.value).next().value,C=B.get(q);d=new FUw;var h=c.config_||_.xr(),V=new j3,N=new v9I;_.dW(N,1,h.innertubeContextHostLanguage);_.dW(N,2,h.innertubeContextGeoLocation);_.Yr(N,16,h.innertubeContextClientNameFieldNumber);_.dW(N,17,h.innertubeContextClientVersion);if(h.innertubeContextClientConfigInfo){var l=h.innertubeContextClientConfigInfo,
E=new gK;l.coldConfigData&&_.dW(E,1,l.coldConfigData);l.appInstallData&&_.dW(E,6,l.appInstallData);l.coldHashData&&_.dW(E,3,l.coldHashData);l.hotHashData&&E.setHotHashData(l.hotHashData);_.Pa(N,62,E)}(l=_.xI.devicePixelRatio)&&l!=1&&_.ax(N,65,_.X6(l));l=VOC();l!==""&&_.dW(N,54,l);l=tO$();if(l.length>0){E=new zL$;for(var S=0;S<l.length;S++){var M=new Ub;M.setKey(l[S].key);KE(M,2,SmQ,Si(l[S].value));dU(E,15,Ub,M)}_.Pa(V,5,E)}x9w(h,N);PgX(V);Ypl(N);a1d(h,N);gCo(N);_.T("start_client_gcf")&&sJO(N);_.v5("DELEGATED_SESSION_ID")&&
!_.T("pageid_as_header_web")&&(h=new qa,_.dW(h,3,_.v5("DELEGATED_SESSION_ID")));!_.T("fill_delegate_context_in_gel_killswitch")&&(l=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E=_.PA(V,qa,3)||new qa,h=V,l=_.dW(E,18,l),_.Pa(h,3,l));h=N;l=_.p(Object.entries(_.H5(_.v5("DEVICE",""))));for(E=l.next();!E.done;E=l.next())S=_.p(E.value),E=S.next().value,S=S.next().value,E==="cbrand"?_.dW(h,12,S):E==="cmodel"?_.dW(h,13,S):E==="cbr"?_.dW(h,87,S):E==="cbrver"?_.dW(h,88,S):E==="cos"?_.dW(h,18,
S):E==="cosver"?_.dW(h,19,S):E==="cplatform"&&_.Yr(h,42,Bxd(S));V.setClient(N);_.Pa(d,1,V);if(N=CF$[q])a:{if(_.Uq(N,CE(N,qmw,1)))V=1;else if(N.getPlaylistId())V=2;else break a;_.Pa(d,4,N);N=d.getContext()||new j3;h=_.PA(N,qa,3)||new qa;l=new hP;l.setToken(q);_.Yr(l,1,V);dU(h,12,hP,l);_.Pa(N,3,h)}delete CF$[q];q=q==="visitorOnlyApprovedKey";y9x()||_.mD(d,2,k);!q&&(V=_.v5("EVENT_ID"))&&(N=GZX(),h=new MrY,_.dW(h,1,V),_.mD(h,2,N),_.Pa(d,5,h));OF7(P);if(_.T("jspb_serialize_with_worker")&&(V=_.qv7())&&
P.writeThenSend){_.LUC.set(ZFx,{client:c,resolve:x,networklessOptions:P,isIsolated:Y,useVSSEndpoint:g,dangerousLogToVisitorSession:q,requestsOutstanding:n});V.postMessage({op:"gelBatchToSerialize",batchRequest:aU(d),clientEvents:C,key:ZFx});ZFx++;break}if(C){V=[];for(N=0;N<C.length;N++)try{V.push(new Tr(C[N]))}catch(f){_.SI(new _.mc("Transport failed to deserialize "+String(C[N])))}C=V}else C=[];C=_.p(C);for(V=C.next();!V.done;V=C.next())dU(d,3,Tr,V.value);C={startTime:(0,_.BA)(),ticks:{},infos:{}};
d=d.serialize();C.ticks.geljspc=(0,_.BA)();_.T("log_jspb_serialize_latency")&&bko("gel_jspb_serialize",C,{sampleRate:.1});_.HF$(d,c,x,P,Y,g,q,n)}};
_.HF$=function(B,c,x,P,Y,g,k,n){P=P===void 0?{}:P;n=n===void 0?{value:0}:n;g=WU$(g);P=QBC(P,k,function(b){_.T("start_client_gcf")&&_.EE.addLowPriorityJob(function(){return _.X(function(d){return _.K(d,o9w(b),0)})});
n.value--;n.value||x()},function(){n.value--;
n.value||x()},Y);
P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=B;Lk7(c,g,"",P);NMd=!1};
OF7=function(B){_.T("always_send_and_write")&&(B.writeThenSend=!1)};
QBC=function(B,c,x,P,Y){B={retry:!0,onSuccess:x,onError:P,networklessOptions:B,dangerousLogToVisitorSession:c,bypassMonitoring:!!Y,headers:{},postBodyFormat:"",postBody:"",compress:_.T("compress_gel")||_.T("compress_gel_lr")};y9x()&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.BA)())));return B};
E97=function(B,c,x){y9x()||(B.requestTimeMs=String(c));_.T("unsplit_gel_payloads_in_logs")&&(B.unsplitGelPayloadsInLogs=!0);!x&&(c=_.v5("EVENT_ID"))&&(x=GZX(),B.serializedClientEventId={serializedEventId:c,clientCounter:String(x)})};
GZX=function(){var B=_.v5("BATCH_CLIENT_COUNTER")||0;B||(B=Math.floor(Math.random()*65535/2));B++;B>65535&&(B=1);_.FP("BATCH_CLIENT_COUNTER",B);return B};
lxw=function(B,c,x){if(x.videoId)var P="VIDEO";else if(x.playlistId)P="PLAYLIST";else return;B.credentialTransferTokenTargetId=x;B.context=B.context||{};B.context.user=B.context.user||{};B.context.user.credentialTransferTokens=[{token:c,scope:P}]};
e6Y=function(B,c){var x=_.aH("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Gu("yt.logging.transport.enableScrapingForTest"))if(x)fxO=[],_.rr("yt.logging.transport.enableScrapingForTest",!0),_.rr("yt.logging.transport.scrapedPayloadsForTesting",fxO),_.rr("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.rr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.rr("yt.logging.transport.scrapeClientEvent",!0);else return;x=_.Gu("yt.logging.transport.scrapedPayloadsForTesting");var P=_.Gu("yt.logging.transport.payloadToScrape");c&&(c=_.Gu("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(c.payload)())&&x.push(c);c=_.Gu("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var Y=0;Y<P.length;Y++)if(B&&B.payload[P[Y]])if(c)x.push(B.payload);else{var g=void 0;x.push(((g=B)==null?void 0:g.payload)[P[Y]])}_.rr("yt.logging.transport.scrapedPayloadsForTesting",
x)};
y9x=function(){return _.T("use_request_time_ms_header")||_.T("lr_use_request_time_ms_header")};
bFw=function(B,c){return _.T("transport_use_scheduler")===!1?_.pU(B,c):_.T("logging_avoid_blocking_during_navigation")||_.T("lr_logging_avoid_blocking_during_navigation")?_.Vp(_.EE,function(){if(_.iFd().currentState==="none")B();else{var x={};_.iFd().install((x.none={callback:B},x))}},c):_.Vp(_.EE,B,c)};
miA=function(B){_.T("transport_use_scheduler")?_.EE.cancelJob(B):_.X4(B)};
o9w=function(B){var c,x,P,Y,g,k,n,b,d,q;return _.X(function(C){return C.nextAddress==1?(P=(c=B)==null?void 0:(x=c.responseContext)==null?void 0:x.globalConfigGroup,Y=_.t(P,A9q),k=(g=P)==null?void 0:g.hotHashData,n=_.t(P,u2$),d=(b=P)==null?void 0:b.coldHashData,(q=_.cp().resolve(_.Bp(tP)))?k?Y?_.K(C,DiX(q,k,Y),2):_.K(C,DiX(q,k),2):C.jumpTo(2):C.return()):d?n?_.K(C,r9q(q,d,n),0):_.K(C,r9q(q,d),0):C.jumpTo(0)})};
XWw=function(B,c){c=c===void 0?200:c;return B?c===300?Vrq:RLx:c===300?tr7:eLO};
xiQ=function(B){if(_.T("enable_web_tiered_gel")){B=BXx[B||""];var c,x,P,Y=_.cp().resolve(_.Bp(tP))==null?void 0:(c=cX7())==null?void 0:(x=c.loggingHotConfig)==null?void 0:(P=x.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(Y)for(c=0;c<Y.length;c++)if(Y[c].payloadNumber===B)return Y[c]}};
c9Q=function(B){B=Object.keys(B);B=_.p(B);for(var c=B.next();!c.done;c=B.next())if(c=c.value,BXx[c])return c};
PFO=function(B){switch(B){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}};
g9o=function(B){return B==="gelDebuggingEvent"};
WU$=function(B){return(B===void 0?0:B)&&_.T("vss_through_gel_video_stats")?"video_stats":"log_event"};
Na=function(B,c,x,P){P=P===void 0?{}:P;var Y={},g=Math.round(P.timestamp||(0,_.BA)());Y.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;Y[B]=c;B=_.co();Y.context={lastActivityMs:String(P.timestamp||!isFinite(B)?-1:B)};P.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")&&(B=Y.context,c=P.sequenceGroup,c={index:x_7(c),groupKey:c},B.sequence=c,P.endOfSequence&&delete wU[P.sequenceGroup]);(P.sendIsolatedPayload?Ym7:sBX)({endpoint:"log_event",payload:Y,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},
x)};
x_7=function(B){wU[B]=B in wU?wU[B]+1:0;return wU[B]};
_.JP=function(B,c,x){x=x===void 0?{}:x;var P=IG;_.zu("ytLoggingEventsDefaultDisabled",!1)&&IG===IG&&(P=null);Na(B,c,P,x)};
_.Wo=function(){if(_.T("web_fp_via_jspb")){var B=!0;B=B===void 0?!1:B;var c=PAQ;PAQ=[];if(c){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,B?Na(x.payloadName,x.payload,IG,x.options):_.JP(x.payloadName,x.payload,x.options)}$iX(void 0,!0);if(!_.T("web_fp_via_jspb_and_json"))return}$iX(void 0,!1)};
YLw=function(B,c){var x;if((x=c)==null?0:x.componentStack)return c;if(B=B.componentStack)c||(c={}),c.componentStack=B;return c};
a9C=function(){_.Zg(_.v5("ERRORS")||[],function(B){_.lb.apply(null,B)});
_.FP("ERRORS",[])};
_.Eb=function(B){_.lb(B)};
_.Ob=function(B){_.lb(B,"WARNING")};
g0O=function(B){B instanceof Error?_.lb(B):(B=_.xF(B)?JSON.stringify(B):String(B),B=new _.mc(B),B.name="RejectedPromiseError",_.Ob(B))};
smX=function(B,c,x,P,Y,g){c=c===void 0?"Unknown file":c;x=x===void 0?0:x;var k=!1,n=Ykq("log_window_onerror_fraction");if(n&&Math.random()<n)k=!0;else{n=document.getElementsByTagName("script");for(var b=0,d=n.length;b<d;b++)if(n[b].src.indexOf("/debug-")>0){k=!0;break}}k&&(k=!1,Y?k=!0:(typeof B==="string"?n=B:ErrorEvent&&B instanceof ErrorEvent?(k=!0,n=B.message,c=B.filename,x=B.lineno,P=B.colno):(n="Unknown error",c="Unknown file",x=0),Y=new _.mc(n),Y.name="UnhandledWindowError",Y.message=n,Y.fileName=
c,Y.lineNumber=x,isNaN(P)?delete Y.columnNumber:Y.columnNumber=P),_.T("wiz_enable_component_stack_propagation_killswitch")||(g=YLw(Y,g)),g&&_.oG(Y,g),k?_.lb(Y):_.Ob(Y))};
_.lb=function(B,c,x,P,Y,g,k,n){g=g===void 0?{}:g;g.name=x||_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=P||_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION");x=g;c=c===void 0?"ERROR":c;k=k===void 0?!1:k;c=c===void 0?"ERROR":c;k=k===void 0?!1:k;if(B&&(B.hasOwnProperty("level")&&B.level&&(c=B.level),_.T("console_log_js_exceptions")&&(P=[],P.push("Name: "+B.name),P.push("Message: "+B.message),B.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(B.params)),B.hasOwnProperty("args")&&P.push("Error args: "+
JSON.stringify(B.args)),P.push("File name: "+B.fileName),P.push("Stacktrace: "+B.stack),P=P.join("\n"),window.console.log(P,B)),!(pHC>=5))){P=[];Y=_.p(kl7);for(g=Y.next();!g.done;g=Y.next()){g=g.value;try{g()&&P.push(g())}catch(E){}}P=[].concat(_.wq(XHl),_.wq(P));var b=$_Q(B);Y=b.message||"Unknown Error";g=b.name||"UnknownError";var d=b.stack||B.stacktrace||"Not available";if(d.startsWith(g+": "+Y)){var q=d.split("\n");q.shift();d=q.join("\n")}q=b.lineNumber||"Not available";b=b.fileName||"Not available";
var C=0;if(B.hasOwnProperty("args")&&B.args&&B.args.length)for(var h=0;h<B.args.length&&!(C=ehY(B.args[h],"params."+h,x,C),C>=500);h++);else if(B.hasOwnProperty("params")&&B.params){var V=B.params;if(typeof B.params==="object")for(h in V){if(V[h]){var N="params."+h,l=jR(V[h]);x[N]=l;C+=N.length+l.length;if(C>500)break}}else x.params=jR(V)}if(P.length)for(h=0;h<P.length&&!(C=ehY(P[h],"params.context."+h,x,C),C>=500);h++);navigator.vendor&&!x.hasOwnProperty("vendor")&&(x["device.vendor"]=navigator.vendor);
h={message:Y,name:g,lineNumber:q,fileName:b,stack:d,params:x,sampleWeight:1};x=Number(B.columnNumber);isNaN(x)||(h.lineNumber=h.lineNumber+":"+x);if(B.level==="IGNORED")B=0;else a:{B=n0X();x=_.p(B.messageWeights);for(P=x.next();!P.done;P=x.next())if(P=P.value,h.message&&h.message.match(P.messageRegExp)){B=P.weight;break a}B=_.p(B.callbackWeights);for(x=B.next();!x.done;x=B.next())if(x=x.value,x.callback(h)){B=x.weight;break a}B=1}h.sampleWeight=B;B=_.p(bLq);for(x=B.next();!x.done;x=B.next())if(x=
x.value,x.patternsForType[h.name])for(Y=_.p(x.patternsForType[h.name]),P=Y.next();!P.done;P=Y.next())if(g=P.value,P=h.message.match(g.regexp)){h.params["params.error.original"]=P[0];Y=g.groups;g={};for(q=0;q<Y.length;q++)g[Y[q]]=P[q+1],h.params["params.error."+Y[q]]=P[q+1];h.message=x.messageFn(g);break}h.params||(h.params={});B=n0X();h.params["params.errorServiceSignature"]="msg="+B.messageWeights.length+"&cb="+B.callbackWeights.length;h.params["params.serviceWorker"]="false";_.xI.document&&_.xI.document.querySelectorAll&&
(h.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Qp(Klo,"sample")).constructor!==Qp&&(h.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(h);if(h.sampleWeight!==0&&!jmO.has(h.message)){if(k&&_.T("web_enable_error_204"))U_X(c===void 0?"ERROR":c,h);else{c=c===void 0?"ERROR":c;c==="ERROR"?(d_Q.publish("handleError",h),_.T("record_app_crashed_web")&&qLl===0&&h.sampleWeight===1&&(qLl++,k={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.T("report_client_error_with_app_crash_ks")||(k.systemHealth={crashData:{clientError:{logMessage:{message:h.message}}}}),_.JP("appCrashed",k)),CA7++):c==="WARNING"&&d_Q.publish("handleWarning",h);if(_.T("kevlar_gel_error_routing")){k=c;n=n===void 0?{}:n;b:{B=_.p(hY$);for(x=B.next();!x.done;x=B.next())if(O4(x.value.toLowerCase())){B=!0;break b}B=!1}if(B)n=void 0;else{x={stackTrace:h.stack};h.fileName&&(x.filename=h.fileName);B=h.lineNumber&&h.lineNumber.split?h.lineNumber.split(":"):[];B.length!==
0&&(B.length!==1||isNaN(Number(B[0]))?B.length!==2||isNaN(Number(B[0]))||isNaN(Number(B[1]))||(x.lineNumber=Number(B[0]),x.columnNumber=Number(B[1])):x.lineNumber=Number(B[0]));B={level:"ERROR_LEVEL_UNKNOWN",message:h.message,errorClassName:h.name,sampleWeight:h.sampleWeight};k==="ERROR"?B.level="ERROR_LEVEL_ERROR":k==="WARNING"&&(B.level="ERROR_LEVEL_WARNNING");x={isObfuscated:!0,browserStackInfo:x};n.pageUrl=window.location.href;n.kvPairs=[];_.v5("FEXP_EXPERIMENTS")&&(n.experimentIds=_.v5("FEXP_EXPERIMENTS"));
P=_.v5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Ykq("web_disable_gel_stp_ecatcher_killswitch")&&P)for(Y=_.p(Object.keys(P)),g=Y.next();!g.done;g=Y.next())g=g.value,n.kvPairs.push({key:g,value:String(P[g])});if(P=h.params)for(Y=_.p(Object.keys(P)),g=Y.next();!g.done;g=Y.next())g=g.value,n.kvPairs.push({key:"client."+g,value:String(P[g])});P=_.v5("SERVER_NAME");Y=_.v5("SERVER_VERSION");P&&Y&&(n.kvPairs.push({key:"server.name",value:P}),n.kvPairs.push({key:"server.version",value:Y}));n={errorMetadata:n,
stackTrace:x,logMessage:B}}n&&(_.JP("clientError",n),(k==="ERROR"||_.T("errors_flush_gel_always_killswitch"))&&_.Wo())}_.T("suppress_error_204_logging")||U_X(c,h)}try{jmO.add(h.message)}catch(E){}pHC++}}};
U_X=function(B,c){var x=c.params||{};B={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:B,"client.name":x.name},postParams:{url:_.v5("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};x.version&&(B["client.version"]=x.version);if(B.postParams){c.stack&&(B.postParams.stack=c.stack);c=_.p(Object.keys(x));for(var P=c.next();!P.done;P=c.next())P=P.value,B.postParams["client."+P]=x[P];if(x=_.v5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(c=
_.p(Object.keys(x)),P=c.next();!P.done;P=c.next())P=P.value,B.postParams[P]=x[P];(x=_.v5("LAVA_VERSION"))&&(B.postParams["lava.version"]=x);x=_.v5("SERVER_NAME");c=_.v5("SERVER_VERSION");x&&c&&(B.postParams["server.name"]=x,B.postParams["server.version"]=c)}_.nU(_.v5("ECATCHER_REPORT_HOST","")+"/error_204",B)};
_.m_o=function(B,c){c=c===void 0?"ERROR":c;var x=x===void 0?{}:x;var P=_.Gu("ytbin.polymer.shared.lib.tampering.info");P&&(P=P())&&(x["params.tamperingInfo"]=P.sort().join(","));_.lb(B,c,void 0,void 0,!0,x)};
_.oG=function(B){var c=_.ts.apply(1,arguments);B.args||(B.args=[]);Array.isArray(B.args)&&B.args.push.apply(B.args,_.wq(c))};
TXQ=function(B){B.level="IGNORED"};
V_I=function(B,c){XHl.push(B);c();XHl.pop()};
vo=function(B,c){for(var x in c)c.hasOwnProperty(x)&&(B=_.FU(B,x,c[x]));return B};
_.t_O=function(B,c,x){x=x===void 0?!1:x;if(!B)return null;if(B.adInfoDialogEndpoint||B.backstageImageUploadEndpoint||B.confirmDialogEndpoint||B.clientActionEndpoint||B.createBackstagePostDialogEndpoint||B.createCommentReplyDialogEndpoint||B.flowEndpoint||B.guideBuilderEndpoint||B.liveChatDialogEndpoint||B.modalEndpoint||B.openPopupAction||B.shareEndpoint||B.shareEntityEndpoint||B.showLiveChatItemEndpoint||B.subscriptionManagerEndpoint||B.unlimitedCreateFamilyEndpoint||B.unlimitedFamilyFlowEndpoint||
B.updateCommentDialogEndpoint||B.updateCommentReplyDialogEndpoint||B.userFeedbackEndpoint||B.videoEditorEndpoint||B.ypcCancelSurveyEndpoint)return c=_.Yu("polymer_report_client_url_requested_rate"),!x&&Math.random()<c&&_.Ob(new _.mc("urlForEndpoint used on client endpoint",B)),null;var P=_.Yu("polymer_report_missing_web_navigation_endpoint_rate");if(B.liveChatEndpoint||B.liveChatReplayEndpoint)P=0;if(!B.commandMetadata&&!B.clickTrackingParams&&Math.random()<P){var Y={},g;for(g in B)Y[g]="1";_.Ob(new _.mc("Missing navigation data",
Y))}Y="";if(B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url)Y=B.commandMetadata.webCommandMetadata.url;else if(B.searchEndpoint)Math.random()<P&&_.Ob(new _.mc("Should not manually handle search",B)),Y="/results?search_query="+encodeURIComponent(B.searchEndpoint.query).replace(/%20/g,"+"),B.searchEndpoint.params&&(Y+="&sp="+B.searchEndpoint.params);else if(B.watchEndpoint)Math.random()<P&&_.Ob(new _.mc("Should not manually handle watch",B)),Y="/watch?v="+
B.watchEndpoint.videoId,B.watchEndpoint.playlistId&&(Y+="&list="+B.watchEndpoint.playlistId),B.watchEndpoint.index&&(Y+="&index="+B.watchEndpoint.index),B.watchEndpoint.startTimeSeconds&&(Y+="&t="+B.watchEndpoint.startTimeSeconds);else if(B.browseEndpoint)P=B.browseEndpoint.browseId,(g=B.browseEndpoint.canonicalBaseUrl)?Y=g:P&&(Y=P.substr(0,2),Y=Y==="FE"?P==="FEwhat_to_watch"?"/":P==="FEmy_videos"?"/my_videos":"/feed/"+P.substr(2):Y==="VL"?"/playlist?list="+P.substr(2):"/channel/"+P),Y&&B.browseEndpoint.query&&
(Y=vo(Y+"/search",{query:B.browseEndpoint.query})),Y&&B.browseEndpoint.params&&(Y=vo(Y,{params:B.browseEndpoint.params}));else{if(B.urlEndpoint)return B.urlEndpoint.url;B.signInEndpoint?(Y="https://accounts.google.com/ServiceLogin",P={},_.wW.extend(P,c||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),c=P):B.uploadEndpoint?Y="//www.youtube.com/upload":B.liveChatEndpoint?(Y=B.liveChatEndpoint,P=_.wW.clone(Y),_.xF(Y.continuation)&&(g=Object.keys(Y.continuation)[0],
P.continuation=Y.continuation[g].continuation),Y=vo("/youtubei/v1/live_chat/get_live_chat",P)):B.liveChatReplayEndpoint?(Y=_.wW.clone(B.liveChatReplayEndpoint),Y.currentPlayerState&&(_.wW.extend(Y,Y.currentPlayerState),delete Y.currentPlayerState),Y=vo("/youtubei/v1/live_chat/get_live_chat_replay",Y)):B.liveChatItemContextMenuEndpoint?Y=vo("/youtubei/v1/live_chat/get_item_context_menu",B.liveChatItemContextMenuEndpoint):B.liveChatPurchaseMessageEndpoint?Y=vo("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
B.liveChatPurchaseMessageEndpoint):B.openSuperStickerBuyFlowCommand?Y=vo("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",B.openSuperStickerBuyFlowCommand):B.videoEditEndpoint?Y=vo("/edit",{video_id:B.videoEditEndpoint.videoId}):B.liveDashboardEndpoint?Y=B.liveDashboardEndpoint.videoId?vo("/live_dashboard",{v:B.liveDashboardEndpoint.videoId}):"/live_dashboard":B.signalNavigationEndpoint&&B.signalNavigationEndpoint.signal&&B.signalNavigationEndpoint.signal==="WEBCAM"?Y="/webcam":B.getPdgBuyFlowCommand&&
(Y=vo(B.getPdgBuyFlowCommand.buyflowApiPath,{params:B.getPdgBuyFlowCommand.params}))}return Y||x?vo(Y,c||{}):(_.Ob(new _.mc("Error: Can't construct url for endpoint","keys:"+Object.keys(B).sort().join(","),B)),null)};
wH7=function(B){if(B){if(B.browseEndpoint)return!!B.browseEndpoint.nofollow;if(B.watchEndpoint)return!!B.watchEndpoint.nofollow;if(B.urlEndpoint)return!!B.urlEndpoint.nofollow}return!1};
_.I9I=function(B,c){var x=c+B,P=NXO.get(x);if(P)return P;B=c+"-"+B.replace(/([A-Z])/g,"-$1").toLowerCase();NXO.set(x,B);return B};
JXq=function(B){var c=_.ot(B,"action")||_.ot(B,"command")||_.ot(B,"endpoint");if(!c)return null;c=_.I9I(c,"yt");_.t(B,_.zr)&&(c+="-"+_.t(B,_.zr).signal.toLowerCase().replace(/_/g,"-"));return c};
OLx=function(B){try{var c=Object.keys(B)}catch(Y){return[]}for(var x=0;x<c.length;x++){var P=c[x];if(Wlx.test(P)||l9Y.test(P))return E0O(B[P])}return[]};
E0O=function(B){return B.command?[B.command]:B.onExecutionAction?[B.onExecutionAction]:B.onResponseReceivedCommand?[B.onResponseReceivedCommand]:B.updateFlowCommand?[B.updateFlowCommand]:B.clientActions?B.clientActions:B.action?[B.action]:B.actions||B.commands||B.onResponseReceivedActions||B.onResponseReceivedCommands||B.onResponseReceivedEndpoints||[]};
QmQ=function(B,c){c=c===void 0?!1:c;var x=_.cp().resolve(_.Bp(S3));x||(x=new o0o,_.cp().addProvider({provide:S3,useValue:x}));return x&&B&&!_.wW.isEmpty(B)?x.getUrl(B,c):""};
FlX=function(B,c,x){x=x===void 0?"":x;if(c){B.data=c;var P=QmQ(c);P?(IW(B,P),wH7(c)||!Rt(P)?B.rel="nofollow":B.removeAttribute("rel"),_.t(c,_.yp)&&_.t(c,_.yp).target==="TARGET_NEW_WINDOW"?B.target="_blank":x?B.target=x:B.removeAttribute("target")):(B.removeAttribute("href"),B.removeAttribute("rel"),B.removeAttribute("target"))}};
_.Z6=function(B,c){var x=RD;if(tM())v0A(B,function(){var g=_.ts.apply(0,arguments);QG(x,function(){c.apply(null,_.wq(g))})});
else{var P=_.Gr.getInstance(),Y=Os(c);API(function(){Y.value=c});
_.lk(function(){var g={},k=_.Ma(P,(g[B]=function(){var n=_.ts.apply(0,arguments);QG(x,function(){Y.value.apply(Y,_.wq(n))})},g));
return function(){var n={};_.LE(P,(n[B]="",n),k)}})}};
_.Ho=function(B,c){return zYo(B,!1,c)};
_.fE=function(B,c){return zYo(B,!0,c)};
zYo=function(B,c,x){return tM()?SLw(B,c,x):yXQ(B,c,x)};
yXQ=function(B,c,x){return Es(function(){return SLw(B,c,x)})};
SLw=function(B,c,x){var P=HEw(function(Y){P.__value&&P.__value===Y||(P.__count=P.__count?P.__count+1:1);P.value=Y;var g=function(){var k=aO(null);try{return x==null?void 0:x(Y)}finally{aO(k)}}();
return function(){g==null||g();P.value=null}});
B!==_.ib&&(P.__expectedTagName=B);P.__optional=c;P.isIdom=!tM();return P};
Glx=function(B){var c=RD,x=TI;return{getFn:function(){return function(P){c.isDisposed||NO(function(){return XS(function(){return B(P)})},x)!==!0&&P.stopPropagation()}}}};
AP=function(B){if(typeof B.children==="function")return B.children(),null;B=_.p(B.children);for(var c=B.next();!c.done;c=B.next())c=c.value,c();return null};
M_l=function(B){var c;return((c=B.prototype)==null?void 0:c.render)===void 0};
LlI=function(B){B=B.items.map(B.children);return B.length>0&&typeof B[0]==="string"?B.join(""):B};
HLl=function(B,c,x){x=x===void 0?!1:x;NO(function(){return ZLC(B,c,x)})};
ZLC=function(B,c,x){var P=null;Ct++;x=(x===void 0?0:x)?f9o:iLX;try{P=x(B,function(){ub(c)}),m_(!1)}catch(Y){throw m_(!0),Y;
}return P===null?B:P};
ub=function(B){if(B!==void 0&&B!==null)if(B instanceof Ka)for(var c=MO;Lt()!=null&&JPQ in Lt()&&c.contains(Lt());)ft();else if(Array.isArray(B))for(c=_.p(B),B=c.next();!B.done;B=c.next())ub(B.value);else if(B instanceof p6||"function"==typeof _.f6&&B instanceof _.f6||"function"==typeof _.x6&&B instanceof _.x6)B5(B.toString());else if(_.ss(B)){if(Lt()!==B){var x,P;c=(P=(x=TI)==null?void 0:x.name)!=null?P:"unknown";throw Error("fc`"+B.tagName+"`"+c);}ft()}else if(u1C(B)||B instanceof Js||AjQ(B))for(c=
rjw(B),c=Array.from(c.childNodes),c=_.p(c),B=c.next();!B.done;B=c.next())MO.appendChild(B.value),ft();else if(jT(B)&&(B=B.toString()),x=typeof B,x==="boolean"||x==="number"||x==="string")B5(B);else if(typeof B==="function"){c=MO;var Y=Lt();Y&&(Y._isSignalTextNode||Y._isSafeOrSanitizedHtmlNode)||qb7(c,Y,B);ft()}else if(B.type===LlI)ub(B.type(Object.assign({},B.props,{children:B.children[0]})));else{dD.beforeVisit(B);if(typeof B.type==="string"){a:{B.__open||I$l(B.type,B.props.idomKey);Y=MO;for(c in B.props)if(B.props[c]!==
AXX){var g=B.props[c];x=Dc;x.push(c);x.push(g)}c=_.xD.attributes;c=c===void 0?D6:c;g=MO;x=GI(g);QxQ(g,x,c);dax(Y,B.props,!0);if((B.props.skip||B.props.skipchildren)&&MO.hasChildNodes())AM();else{if(B.type==="style"&&YbI(B.children)===null){AM();c=void 0;break a}ub(B.children)}JjI();B.__open&&(B.__open=!1);MlO(Y,B.props);c=Y}return c}if(B.type===_.at)ub(B.children);else if(!uo$(B)){c=B;try{D_l(c)}catch(k){B=k,(g=_.xD.handleError)==null||g.call.apply(g,[_.xD].concat(_.wq(_.zI(B,(Y=c.type)==null?void 0:
Y.TAG_NAME))))}c.__open&&(JjI(),c.__open=!1)}}};
rX7=function(B,c){var x;M_l(B)?x=new Ca(c,B):x=new B(c);x.JSC$8260___type=B;x.__updateContext={nextState:x.state,isForced:!1};return x};
D_l=function(B){var c=B.type,x=c.TAG_NAME;if(c===AP)B.props.children=B.children,c(B.props);else{B.children.length>0&&(B.props.children=B.children);var P;(P=B.props).idomKey||(P.idomKey=c);if(x){var Y=I$l(x,B.props.idomKey);B.__open=!0;var g=Y.__instance}g||(g=rX7(c,B.props),g.props=null,Y&&(Y.__instance=g,g.el=Y));var k;x=((k=g.__updateContext)!=null?k:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;c.getDerivedStateFromProps&&(x=c.getDerivedStateFromProps(B.props,x));g.props=
B.props;g.state=x;k=function(){var n=g;dD.beforeRender(n);var b=n.render(n.props);dD.afterRender(n,b);b?(n.props.idomKey&&(b.props.idomKey=n.props.idomKey),n=b):n=void 0;if(b=n)if(b.__open=B.__open,n=ub(b),B.__open=b.__open,!c.TAG_NAME)if(n)c.TAG_NAME=n.tagName.toLowerCase(),n.__instance=g,g.el=n;else{var d;if((d=g.hooks)==null?0:d.length){var q;(q=_.xD.handleError)==null||q.call.apply(q,[_.xD].concat(_.wq(_.zI(Error("kd")))))}}g.didPatch();dD.didPatch(g)};
(x=g.functionComponent)?ft$(x,k,g.props.debugInstance):k()}};
uo$=function(B){var c=B.type;if(!M_l(c)||c===AP||c.componentType===VG)return!1;B.props.children=B.children.length>1?B.children:B.children[0];var x,P=(x=B.props.idomKey)!=null?x:B.type,Y;if(Lt()&&((Y=Lt()[$6])==null?void 0:Y.key)===P){var g=Lt(),k=g[$6];if(!k)throw Error("ec`"+g.tagName);var n;(n=k.updateSignalsFromIdomProps)==null||n.call(k,B.props);RYl(k);return!0}if(eYY.has(c.name))throw n=c.name,c=(k=(g=TI)==null?void 0:g.name)!=null?k:"unknown",Error("dc`"+n+"`"+c);TUd(B.type,B.props,B.children);
B.props.renderedFromIdom=!0;(n=ft$(B.type,function(){return n4x(B.type,B.props)},B.props.debugInstance))&&BVd(n);
return!0};
cWw=function(B){for(var c=0;c<bk(B).length;c++)ft()};
RYl=function(B){var c=xeC();if(c)cWw(c);else for(var x=0;x<B.numNodes;x++)(c=xeC())?cWw(c):ft()};
xeC=function(){var B;return(B=Lt()[$6])==null?void 0:B.sourceDynamicRange};
BVd=function(B){B=Zpx(B);B=Array.isArray(B)?B:[B];B=_.p(B);for(var c=B.next();!c.done;c=B.next())MO.insertBefore(c.value,Lt()),ft()};
PvQ=function(B){var c=KDA(),x=Es(function(){return{value:typeof B==="function"?B():B}});
return[x.value,function(P){if(qR!==null){var Y;(Y=_.xD.handleError)==null||Y.call.apply(Y,[_.xD].concat(_.wq(_.zI(Error("ld")))))}x.value=typeof P==="function"?P(x.value):P;c.__updateContext={nextState:c.state,isForced:!0};P=_.e$(c.effectContext);Y=gD(!1);try{if(c.el){var g,k={},n=(k.props=c.props,k.type=c.JSC$8260___type,k.children=(g=c.props.children)!=null?g:[],k[Y6]=!0,k);try{HLl(c.el,n,!0)}catch(q){var b,d;(d=_.xD.handleError)==null||d.call.apply(d,[_.xD].concat(_.wq(_.zI(q,(b=c.JSC$8260___type)==
null?void 0:b.TAG_NAME))))}}}finally{gD(Y),_.e$(P)}}]};
rU=function(B,c){var x=RD,P=function(Y){QG(x,function(){c(Y)})};
window.addEventListener(B,P,void 0);_.lP(function(){window.removeEventListener(B,P,void 0)})};
_.e3=function(B,c){var x=RD;_.lk(function(){var P,Y=(P=c.observer)!=null?P:_.cp().resolve(RG);if(P=B.value){var g=Y9q(P),k=[];c.showOption&&k.push(Y.observe(P,function(){QG(x,function(){c.visibilityCallback(!0)})},c.showOption));
c.hideOption&&k.push(Y.observe(P,function(){QG(x,function(){c.visibilityCallback(!1)})},c.hideOption));
c.prescanOption&&c.prescanCallback&&k.push(Y.observe(P,function(){QG(x,function(){c.prescanCallback()})},c.prescanOption));
var n;g.visibilityMonitorKeys=((n=g.visibilityMonitorKeys)!=null?n:[]).concat(k)}})};
Y9q=function(B){var c;return(c=B.polymerController)!=null?c:B};
_.BX=function(B){B.componentType=VG};
pw7=function(B,c){var x=anY;return _.U(_.at,null,rf(_.xD.enableLazyTsx,function(){return _.U(gUC,{id:x,value:B,children:c})},function(){var P=s2l(x,B);
cR(P);P=_.e$(P);try{return c()}finally{_.e$(P)}}))};
gUC=function(B){var c=B.children;B=s2l(B.id,B.value);cR(B);B=_.e$(B);try{return _.U(_.at,null,jI(c()))}finally{_.e$(B)}};
s2l=function(B,c){return Object.assign(Object.create(kUo),{id:B,contextValue:c})};
Xwd=function(B){var c,x=RD;_.oO(function(){var P=_.e$(x),Y=gD(!c);try{if(c)HLl(c,B.children(),!0);else if(c=jI(B.children()),!(c instanceof Element))throw Error("md");}finally{gD(Y),_.e$(P)}});
return c};
_.$ed=function(B,c){var x;c=Ex(function(){var P=gD(!0);try{x=bk(B())}finally{gD(P)}},c===void 0?!1:c);
return[x,c]};
bw7=function(B){B=B.buf.charCodeAt(B.pos++);return nUl[B]};
cX=function(B){var c=0,x=0;do{var P=bw7(B);c|=(P&31)<<x;x+=5}while(P&32);return c<0?c+4294967296:c};
Uew=function(B,c,x){KgX(B,c);B[c][j2$].unshift(x)};
KgX=function(B,c){if(!B[c]||!B[c][j2$]){var x=B[c],P=x?[x]:[];B[c]=function(){for(var Y=_.p(P),g=Y.next();!g.done;g=Y.next())g.value.apply(this,arguments)};
B[c][j2$]=P}};
deX=function(B){if(!B)return[];var c=[];B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,Array.isArray(x)?c.push.apply(c,_.wq(deX(x))):c.push(x);return c};
_.PX=function(B,c){if(B&&q9A.test(B)||B==="//")return B;if(CvX===void 0){CvX=!1;try{var x=new URL("b","http://a");x.pathname="c%20d";CvX=x.href==="http://a/c%20d"}catch(P){}}c||(c=document.baseURI||window.location.href);if(CvX)try{return(new URL(B,c)).href}catch(P){return B}xW||(xW=document.implementation.createHTMLDocument("temp"),xW.base=xW.createElement("base"),xW.head.appendChild(xW.base),xW.anchor=xW.createElement("a"),xW.body.appendChild(xW.anchor));xW.base.href=c;xW.anchor.href=B;return xW.anchor.href||
B};
med=function(B,c){return B.replace(h_X,function(x,P,Y,g){return P+"'"+_.PX(Y.replace(/["']/g,""),c)+"'"+g})};
TVO=function(B){return B.substring(0,B.lastIndexOf("/")+1)};
wwq=function(){V5O=!1;for(var B=YW.length,c=0;c<B;c++){var x=YW[c];if(x)try{x()}catch(P){setTimeout(function(){throw P;})}}YW.splice(0,B);
t5Y+=B};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(B){console.log("["+B.is+"]: registered")};
In7=function(B){NVA.push(B)};
a1=function(B){return JWY[B]||(JWY[B]=B.indexOf("-")<0?B:B.replace(WgI,function(c){return c[1].toUpperCase()}))};
gY=function(B){return JWY[B]||(JWY[B]=B.replace(lnx,"-$1").toLowerCase())};
EUq=function(B,c){var x=c.parentInfo&&EUq(B,c.parentInfo);if(x)for(B=x.firstChild,x=0;B;B=B.nextSibling){if(c.parentIndex===x++)return B}else return B};
OwC=function(B,c){B=B._methodHost||B;return function(x){if(B[c])B[c](x,x.detail);else console.warn("listener method `"+c+"` not defined")}};
sk=function(B){return B.indexOf(".")>=0};
pl=function(B){var c=B.indexOf(".");return c===-1?B:B.slice(0,c)};
oUw=function(B,c){return B.indexOf(c+".")===0};
kW=function(B,c){return c.indexOf(B+".")===0};
Xp=function(B,c,x){return c+x.slice(B.length)};
Q2o=function(B,c){return B===c||oUw(B,c)||kW(B,c)};
$W=function(B){if(Array.isArray(B)){for(var c=[],x=0;x<B.length;x++)for(var P=B[x].toString().split("."),Y=0;Y<P.length;Y++)c.push(P[Y]);return c.join(".")}return B};
Fg7=function(B){return Array.isArray(B)?$W(B).split("."):B.toString().split(".")};
nl=function(B,c,x){c=Fg7(c);for(var P=0;P<c.length;P++){if(!B)return;B=B[c[P]]}x&&(x.path=c.join("."));return B};
vUA=function(B,c,x){var P=Fg7(c),Y=P[P.length-1];if(P.length>1){for(c=0;c<P.length-1;c++)if(B=B[P[c]],!B)return;B[Y]=x}else B[c]=x;return P.join(".")};
z_x=function(B,c,x){var P=B[c];if(!P)P=B[c]={};else if(!B.hasOwnProperty(c)&&(P=B[c]=Object.create(B[c]),x))for(var Y in P)for(B=P[Y],c=P[Y]=Array(B.length),x=0;x<B.length;x++)c[x]=B[x];return P};
Kl=function(B,c,x,P,Y,g){if(c){var k=!1,n=b4++,b;for(b in x){var d=Y?pl(b):b;if(d=c[d])for(var q=0,C=d.length,h=void 0;q<C&&(h=d[q]);q++)h.info&&h.info.lastRun===n||Y&&!S97(b,h.trigger)||(h.info&&(h.info.lastRun=n),h.fn(B,b,x,P,h.info,Y,g),k=!0)}return k}return!1};
S97=function(B,c){if(c){var x=c.name;return x==B||!(!c.structured||!oUw(x,B))||!(!c.wildcard||!kW(x,B))}return!0};
yWQ=function(B,c,x,P,Y){c=typeof Y.method==="string"?B[Y.method]:Y.method;x=Y.property;c?c.call(B,B.__data[x],P[x]):Y.dynamicFn||console.warn("observer method `"+Y.method+"` not defined")};
GUA=function(B,c,x,P){x={value:x,queueProperty:!0};P&&(x.path=P);(0,_.jO)(B).dispatchEvent(new CustomEvent(c,{detail:x}))};
M5Y=function(B,c,x,P,Y,g){g=(P=(g?pl(c):c)!=c?c:null)?nl(B,P):B.__data[c];P&&g===void 0&&(g=x[c]);GUA(B,Y.eventName,g,P)};
Lgl=function(B,c,x,P,Y){x=B.__data[c];Uk&&(x=Uk(x,Y.attrName,"attribute",B));B._propertyToAttribute(c,Y.attrName,x)};
Hw7=function(B){var c=B.constructor.__orderedComputedDeps;if(!c){c=new Map;for(var x=B.__computeEffects,P=Zw7(B),Y=P.counts,g=P.ready,k=P.total;P=g.shift();)c.set(P,c.size),(P=x[P])&&P.forEach(function(n){n=n.info.methodInfo;--k;--Y[n]===0&&g.push(n)});
k!==0&&console.warn("Computed graph for "+B.localName+" incomplete; circular?");B.constructor.__orderedComputedDeps=c}return c};
Zw7=function(B){var c=B.__computeInfo,x={};B=B.__computeEffects;var P=[],Y=0,g;for(g in c){var k=c[g];Y+=x[g]=k.args.filter(function(b){return!b.literal}).length+(k.dynamicFn?1:0)}for(var n in B)c[n]||P.push(n);
return{counts:x,ready:P,total:Y}};
iwq=function(B,c,x,P,Y){c=fnw(B,c,x,P,Y);if(c===dY)return!1;Y=Y.methodInfo;if(B.__dataHasAccessor&&B.__dataHasAccessor[Y])return B._setPendingProperty(Y,c,!0);B[Y]=c;return!1};
De7=function(B,c,x,P,Y,g,k){x.bindings=x.bindings||[];P={kind:P,target:Y,parts:g,literal:k,isCompound:g.length!==1};x.bindings.push(P);P.target&&P.kind!="attribute"&&P.kind!="text"&&!P.isCompound&&P.parts[0].mode==="{"&&(x=P.parts[0],g=x.negate,P.listenerEvent=x.event||gY(Y)+"-changed",P.listenerNegate=g);Y=c.nodeInfoList.length;for(x=0;x<P.parts.length;x++){var n=P.parts[x];n.compoundIndex=x;g=B;k=c;var b=P,d=n,q=Y;if(!d.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(n=d.dependencies,b={index:q,binding:b,part:d,evaluator:g},d=0;d<n.length;d++)q=n[d],typeof q=="string"&&(q=AWO(q),q.wildcard=!0),g._addTemplatePropertyEffect(k,q.rootProperty,{fn:uBo,info:b,trigger:q})}};
uBo=function(B,c,x,P,Y,g,k){k=k[Y.index];var n=Y.binding,b=Y.part;g&&b.source&&c.length>b.source.length&&n.kind=="property"&&!n.isCompound&&k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[n.target]?(x=x[c],c=Xp(b.source,n.target,c),k._setPendingPropertyOrPath(c,x,!1,!0)&&B._enqueueClient(k)):(c=Y.evaluator._evaluateBinding(B,b,c,x,P,g),c!==dY&&(n.isCompound&&(x=k.__dataCompoundStorage[n.target],x[b.compoundIndex]=c,c=x.join("")),n.kind==="attribute"||n.target!=="textContent"&&
(n.target!=="value"||k.localName!=="input"&&k.localName!=="textarea")||(c=c==void 0?"":c),b=c,Uk&&(b=Uk(b,n.target,n.kind,k)),n.kind=="attribute"?B._valueToNodeAttribute(k,b,n.target):(n=n.target,k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[n]?k.__readOnly&&k.__readOnly[n]||k._setPendingProperty(n,b)&&B._enqueueClient(k):B._setUnmanagedPropertyToNode(k,n,b))))};
rWq=function(B,c,x){if(x.listenerEvent){var P=x.parts[0];B.addEventListener(x.listenerEvent,function(Y){var g=x.target,k=P.source,n=P.negate,b=Y.detail,d=b&&b.path;d?(k=Xp(g,k,d),Y=b&&b.value):Y=Y.currentTarget[g];c.__readOnly&&c.__readOnly[k]||!c._setPendingPropertyOrPath(k,n?!Y:Y,!0,!!d)||b&&b.queueProperty||c._invalidateProperties()})}};
R_Q=function(B,c,x,P,Y,g){g=c.static||g&&(typeof g!=="object"||g[c.methodName]);Y={methodName:c.methodName,args:c.args,methodInfo:Y,dynamicFn:g};for(var k=0,n=void 0;k<c.args.length&&(n=c.args[k]);k++)n.literal||B._addPropertyEffect(n.rootProperty,x,{fn:P,info:Y,trigger:n});g&&B._addPropertyEffect(c.methodName,x,{fn:P,info:Y});return Y};
fnw=function(B,c,x,P,Y){P=B._methodHost||B;var g=P[Y.methodName];if(g)return B=B._marshalArgs(Y.args,c,x),B===dY?dY:g.apply(P,B);Y.dynamicFn||console.warn("method `"+Y.methodName+"` not defined")};
e_l=function(B){for(var c="",x=0;x<B.length;x++)c+=B[x].literal||"";return c};
xvd=function(B){if(B=B.match(/([^\s]+?)\(([\s\S]*)\)/)){var c={methodName:B[1],static:!0,args:B$X};return B[2].trim()?cb$(B[2].replace(/\\,/g,"&comma;").split(","),c):c}return null};
cb$=function(B,c){c.args=B.map(function(x){x=AWO(x);x.literal||(c.static=!1);return x},this);
return c};
AWO=function(B){B=B.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var c={name:B,value:"",literal:!1},x=B[0];x==="-"&&(x=B[1]);x>="0"&&x<="9"&&(x="#");switch(x){case "'":case '"':c.value=B.slice(1,-1);c.literal=!0;break;case "#":c.value=Number(B),c.literal=!0}c.literal||(c.rootProperty=pl(B),c.structured=sk(B),c.structured&&(c.wildcard=B.slice(-2)==".*",c.wildcard&&(c.name=B.slice(0,-2))));return c};
PR7=function(B,c,x){B=nl(B,x);B===void 0&&(B=c[x]);return B};
YyY=function(B,c,x,P){P={indexSplices:P};qM&&!B._overrideLegacyUndefined&&(c.splices=P);B.notifyPath(x+".splices",P);B.notifyPath(x+".length",c.length);qM&&!B._overrideLegacyUndefined&&(P.indexSplices=[])};
Cl=function(B,c,x,P,Y,g){YyY(B,c,x,[{index:P,addedCount:Y,removed:g,object:c,type:"splice"}])};
a_w=function(B){B=med((B.body?B.body:B).textContent,B.baseURI);var c=document.createElement("style");c.textContent=B;return c};
sFQ=function(B){B=B.trim().split(/\s+/);for(var c=[],x=0;x<B.length;x++)c.push.apply(c,_.wq(gxx(B[x])));return c};
gxx=function(B){var c=hJ.import(B);if(!c)return console.warn("Could not find style data in module named",B),[];if(c._styles===void 0){B=[];B.push.apply(B,_.wq(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c)));var x=c.querySelector("template");x&&B.push.apply(B,_.wq(pvY(x,c.assetpath)));c._styles=B}return c._styles};
pvY=function(B,c){if(!B._styles){for(var x=[],P=B.content.querySelectorAll("style"),Y=0;Y<P.length;Y++){var g=P[Y],k=g.getAttribute("include");k&&x.push.apply(x,_.wq(sFQ(k).filter(function(n,b,d){return d.indexOf(n)===b})));
c&&(g.textContent=med(g.textContent,c));x.push(g)}B._styles=x}return B._styles};
kjQ=function(B){return(B=hJ.import(B))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(B){var c=[];B=B.querySelectorAll("link[rel=import][type~=css]");for(var x=0;x<B.length;x++){var P=B[x];if(P.import){var Y=P.import;if((P=P.hasAttribute("shady-unscoped"))&&!Y._unscopedStyle){var g=a_w(Y);g.setAttribute("shady-unscoped","");Y._unscopedStyle=g}else Y._style||(Y._style=a_w(Y));c.push(P?Y._unscopedStyle:Y._style)}}return c};
$vA=function(B){B=B.trim().split(/\s+/);for(var c="",x=0;x<B.length;x++)c+=XvQ(B[x]);return c};
XvQ=function(B){var c=hJ.import(B);if(c&&c._cssText===void 0){var x=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c),P=c.querySelector("template");P&&(x+=nxY(P,c.assetpath));c._cssText=x||null}c||console.warn("Could not find style data in module named",B);return c&&c._cssText||""};
nxY=function(B,c){var x="";B=pvY(B,c);for(c=0;c<B.length;c++){var P=B[c];P.parentNode&&P.parentNode.removeChild(P);x+=P.textContent}return x};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(B){var c="";B=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B);for(var x=0;x<B.length;x++)c+=B[x].textContent;return c};
me=function(B,c){return{index:B,removed:[],addedCount:c}};
Kpo=function(B,c,x,P){var Y=0,g=0,k=0,n=0,b=Math.min(c-Y,P-g);if(Y==0&&g==0)a:{for(k=0;k<b;k++)if(B[k]!==x[k])break a;k=b}if(c==B.length&&P==x.length){n=B.length;for(var d=x.length,q=0;q<b-k&&b3Q(B[--n],x[--d]);)q++;n=q}Y+=k;g+=k;c-=n;P-=n;if(c-Y==0&&P-g==0)return[];if(Y==c){for(c=me(Y,0);g<P;)c.removed.push(x[g++]);return[c]}if(g==P)return[me(Y,c-Y)];b=Y;k=g;P=P-k+1;n=c-b+1;c=Array(P);for(d=0;d<P;d++)c[d]=Array(n),c[d][0]=d;for(d=0;d<n;d++)c[0][d]=d;for(d=1;d<P;d++)for(q=1;q<n;q++)if(B[b+q-1]===
x[k+d-1])c[d][q]=c[d-1][q-1];else{var C=c[d-1][q]+1,h=c[d][q-1]+1;c[d][q]=C<h?C:h}b=c.length-1;k=c[0].length-1;P=c[b][k];for(B=[];b>0||k>0;)b==0?(B.push(2),k--):k==0?(B.push(3),b--):(n=c[b-1][k-1],d=c[b-1][k],q=c[b][k-1],C=d<q?d<n?d:n:q<n?q:n,C==n?(n==P?B.push(0):(B.push(1),P=n),b--,k--):C==d?(B.push(3),b--,P=d):(B.push(2),k--,P=q));B.reverse();c=void 0;b=[];for(k=0;k<B.length;k++)switch(B[k]){case 0:c&&(b.push(c),c=void 0);Y++;g++;break;case 1:c||(c=me(Y,0));c.addedCount++;Y++;c.removed.push(x[g]);
g++;break;case 2:c||(c=me(Y,0));c.addedCount++;Y++;break;case 3:c||(c=me(Y,0)),c.removed.push(x[g]),g++}c&&b.push(c);return b};
jFQ=function(B,c){return Kpo(B,B.length,c,c.length)};
b3Q=function(B,c){return B===c};
dvY=function(B){if(B instanceof UvI)return B.value;throw Error("Dd`"+B);};
qyw=function(B,c){for(var x in c)x===null?B.style.removeProperty(x):B.style.setProperty(x,c[x])};
CRo=function(B,c){return(B=window.getComputedStyle(B).getPropertyValue(c))?B.trim():""};
VAq=function(B){requestAnimationFrame(function(){hmq?hmq(B):(mvw||(mvw=new Promise(function(c){T$7=c}),document.readyState==="complete"?T$7():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&T$7()})),mvw.then(function(){B&&B()}))})};
I_l=function(B){tA7=B&&B.shimcssproperties?!1:wvO||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
O3Q=function(B){if(!(JbX.indexOf(B)>-1)&&B!=="touchend"&&WpX&&l_$&&Exo)return{passive:!0}};
vxX=function(B){for(var c=oxO?["click"]:JbX,x=0,P;x<c.length;x++)P=c[x],B?(QFl.length=0,document.addEventListener(P,FpO,!0)):document.removeEventListener(P,FpO,!0)};
TK=function(B){var c=B.type;return JbX.indexOf(c)>-1?c==="mousemove"?(c=B.buttons===void 0?1:B.buttons,B instanceof window.MouseEvent&&!zmC&&(c=SyC[B.which]||0),!!(c&1)):(B.button===void 0?0:B.button)===0:!1};
ybl=function(B){if(B.type==="click"){if(B.detail===0)return!0;var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);if(!c.nodeType||c.nodeType!==Node.ELEMENT_NODE)return!0;c=c.getBoundingClientRect();var x=B.pageX;B=B.pageY;return!(x>=c.left&&x<=c.right&&B>=c.top&&B<=c.bottom)}return!1};
GjA=function(B,c,x){B.movefn=c;B.upfn=x;document.addEventListener("mousemove",c);document.addEventListener("mouseup",x)};
VL=function(B){document.removeEventListener("mousemove",B.movefn);document.removeEventListener("mouseup",B.upfn);B.movefn=null;B.upfn=null};
MAQ=function(B,c){for(var x=document.elementFromPoint(B,c),P=x;P&&P.shadowRoot&&!window.ShadyDOM;){var Y=P;P=P.shadowRoot.elementFromPoint(B,c);if(Y===P)break;P&&(x=P)}return x};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var c=Lpw(B);return c.length>0?c[0]:B.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var c=B.type,x=B.currentTarget.__polymerGestures;if(x&&(x=x[c])){if(!B.__polymerGesturesHandled&&(B.__polymerGesturesHandled={},c.slice(0,5)==="touch")){var P=B.changedTouches[0];c==="touchstart"&&B.touches.length===1&&(Z3o=P.identifier);if(Z3o!==P.identifier)return;WpX||(c==="touchstart"||c==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)}P=
B.__polymerGesturesHandled;if(!P.skip){for(var Y=0,g;Y<tJ.length;Y++)g=tJ[Y],x[g.name]&&!P[g.name]&&g.flow&&g.flow.start.indexOf(B.type)>-1&&g.reset&&g.reset();for(Y=0;Y<tJ.length;Y++)g=tJ[Y],x[g.name]&&!P[g.name]&&(P[g.name]=!0,g[c](B))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var c=B.changedTouches[0],x=B.type;if(x==="touchstart")H37=c.clientX,f_X=c.clientY,i3$=!1;else if(x==="touchmove"&&!i3$){i3$=!0;x="auto";for(var P=Lpw(B),Y=0,g;Y<P.length;Y++)if(g=P[Y],g.__polymerGesturesTouchAction){x=g.__polymerGesturesTouchAction;break}P=!1;Y=Math.abs(H37-c.clientX);c=Math.abs(f_X-c.clientY);B.cancelable&&(x==="none"?P=!0:x==="pan-x"?P=c>Y:x==="pan-y"&&(P=Y>c));P?B.preventDefault():
wY("track")}};
I1=function(B,c,x){return NM[c]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,c,x),!0):!1};
JJ=function(B,c,x){return NM[c]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,c,x),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,c,x){var P=NM[c],Y=P.deps,g=P.name,k=B.__polymerGestures;k||(B.__polymerGestures=k={});for(var n=0,b,d;n<Y.length;n++)b=Y[n],oxO&&JbX.indexOf(b)>-1&&b!=="click"||((d=k[b])||(k[b]=d={_count:0}),d._count===0&&B.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,O3Q(b)),d[g]=(d[g]||0)+1,d._count=(d._count||0)+1);B.addEventListener(c,x);P.touchAction&&_.WX(B,P.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,c,x){var P=NM[c],Y=P.deps;P=P.name;var g=B.__polymerGestures;if(g)for(var k=0,n,b;k<Y.length;k++)n=Y[k],(b=g[n])&&b[P]&&(b[P]=(b[P]||1)-1,b._count=(b._count||1)-1,b._count===0&&B.removeEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,O3Q(n)));B.removeEventListener(c,x)};
Abq=function(B){tJ.push(B);for(var c=0;c<B.emits.length;c++)NM[B.emits[c]]=B};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){for(var c=0,x;c<tJ.length;c++){x=tJ[c];for(var P=0,Y;P<x.emits.length;P++)if(Y=x.emits[P],Y===B)return x}return null};
_.WX=function(B,c){WpX&&B instanceof HTMLElement&&l4.run(function(){B.style.touchAction=c});
B.__polymerGesturesTouchAction=c};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,c,x){c=new Event(c,{bubbles:!0,cancelable:!0,composed:!0});c.detail=x;(0,_.jO)(B).dispatchEvent(c);c.defaultPrevented&&(B=x.preventer||x.sourceEvent)&&B.preventDefault&&B.preventDefault()};
wY=function(B){B=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B.info&&(B.info.prevent=!0)};
Ek=function(B,c,x,P){c&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,B,{x:x.clientX,y:x.clientY,sourceEvent:x,preventer:P,prevent:function(Y){return wY(Y)}})};
u5x=function(B,c,x){if(B.prevent)return!1;if(B.started)return!0;x=Math.abs(B.y-x);return Math.abs(B.x-c)>=5||x>=5};
Dvo=function(B,c,x){if(c){var P=B.moves[B.moves.length-2],Y=B.moves[B.moves.length-1],g=Y.x-B.x,k=Y.y-B.y,n=0;if(P){var b=Y.x-P.x;n=Y.y-P.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"track",{state:B.state,x:x.clientX,y:x.clientY,dx:g,dy:k,ddx:b,ddy:n,sourceEvent:x,hover:function(){return MAQ(x.clientX,x.clientY)}})}};
Rmw=function(B,c,x){var P=Math.abs(c.clientX-B.x),Y=Math.abs(c.clientY-B.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x||c);!g||rbY[g.localName]&&g.hasAttribute("disabled")||!(isNaN(P)||isNaN(Y)||P<=25&&Y<=25||ybl(c))||B.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:x})};
emq=function(B,c,x,P,Y){var g;Y&&(g=typeof x==="object"&&x!==null)&&(P=B.__dataTemp[c]);P=P!==x&&(P===P||x===x);g&&P&&(B.__dataTemp[c]=x);return P};
cax=function(){if(Ok&&!o1){if(!BcA){BcA=!0;var B=document.createElement("style");B.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(B)}return!0}return!1};
Pjd=function(){return xsO};
YrC=function(B,c){xsO=B;Object.setPrototypeOf(B,c.prototype);new c;xsO=null};
as$=function(B,c){for(var x=0;x<c.length;x++){var P=c[x];if(!!B!=!!P.__hideTemplateChildren__)if(P.nodeType===Node.TEXT_NODE)B?(P.__polymerTextContent__=P.textContent,P.textContent=""):P.textContent=P.__polymerTextContent__;else if(P.localName==="slot")if(B)P.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.jO)((0,_.jO)(P).parentNode).replaceChild(P.__polymerReplaced__,P);else{var Y=P.__polymerReplaced__;Y&&(0,_.jO)((0,_.jO)(Y).parentNode).replaceChild(P,Y)}else P.style&&(B?(P.__polymerDisplay__=
P.style.display,P.style.display="none"):P.style.display=P.__polymerDisplay__);P.__hideTemplateChildren__=B;P._showHideChildren&&P._showHideChildren(B)}};
gEl=function(B){return(B=B.__dataHost)&&B._methodHost||B};
k2l=function(B,c,x){var P=x.mutableData?svI:QL;Fp.mixin&&(P=Fp.mixin(P));var Y=function(){return P.apply(this,arguments)||this};
_.w(Y,P);Y.prototype.__templatizeOptions=x;Y.prototype._bindTemplate(B);p8l(Y,B,c,x);return Y};
KTY=function(B,c,x,P){var Y=x.forwardHostProp;if(Y&&c.hasHostProps){var g=B.localName=="template",k=c.templatizeTemplateClass;if(!k){if(g){var n=x.mutableData?X8I:$s7;k=function(){return n.apply(this,arguments)||this};
_.w(k,n);k=c.templatizeTemplateClass=k}else{var b=B.constructor;k=function(){return b.apply(this,arguments)||this};
_.w(k,b);k=c.templatizeTemplateClass=k}var d=c.hostProps,q;for(q in d)k.prototype._addPropertyEffect("_host_"+q,k.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:nEl(Y)}),k.prototype._createNotifyingProperty("_host_"+q);vX&&P&&b2o(c,x,P)}B.__dataProto&&Object.assign(B.__data,B.__dataProto);if(g)YrC(B,k),B.__dataTemp={},B.__dataPending=null,B.__dataOld=null,B._enableProperties();else{Object.setPrototypeOf(B,k.prototype);c=c.hostProps;for(var C in c)C="_host_"+C,C in B&&(c=B[C],delete B[C],B.__data[C]=
c)}}};
nEl=function(B){return function(c,x,P){B.call(c.__templatizeOwner,x.substring(6),P[x])}};
p8l=function(B,c,x,P){var Y=x.hostProps||{},g;for(g in P.instanceProps){delete Y[g];var k=P.notifyInstanceProp;k&&B.prototype._addPropertyEffect(g,B.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jvQ(k)})}if(P.forwardHostProp&&c.__dataHost)for(var n in Y)x.hasHostProps||(x.hasHostProps=!0),B.prototype._addPropertyEffect(n,B.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Usq()})};
jvQ=function(B){return function(c,x,P){B.call(c.__templatizeOwner,c,x,P[x])}};
Usq=function(){return function(B,c,x){B.__dataHost._setPendingPropertyOrPath("_host_"+c,x[c],!0,!0)}};
Fp=function(B,c,x){if(zK&&!gEl(B))throw Error("Jd");x=x||{};if(B.__templatizeOwner)throw Error("Kd");B.__templatizeOwner=c;var P=(c?c.constructor:QL)._parseTemplate(B),Y=P.templatizeInstanceClass;Y||(Y=k2l(B,P,x),P.templatizeInstanceClass=Y);var g=gEl(B);KTY(B,P,x,g);x=function(){return Y.apply(this,arguments)||this};
_.w(x,Y);x.prototype._methodHost=g;x.prototype.__dataHost=B;x.prototype.__templatizeOwner=c;x.prototype.__hostProps=P.hostProps;return x};
b2o=function(B,c,x){x=x.constructor._properties;B=B.propertyEffects;c=c.instanceProps;for(var P in B)if(!(x[P]||c&&c[P]))for(var Y=B[P],g=0;g<Y.length;g++){var k=Y[g].info.part;if(!k.signature||!k.signature.static){console.warn("Property '"+P+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
dsw=function(B,c){for(var x;c;)if(x=c.__dataHost?c:c.__templatizeInstance)if(x.__dataHost!=B)c=x.__dataHost;else return x;else c=(0,_.jO)(c).parentNode;return null};
SO=function(B){return B.localName==="slot"};
qrl=function(){for(var B=yL.prototype,c="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),x={},P=0;P<c.length;x={method$jscomp$30:void 0},P++)x.method$jscomp$30=c[P],B[x.method$jscomp$30]=function(Y){return function(){return this.node[Y.method$jscomp$30].apply(this.node,arguments)}}(x)};
CjI=function(B,c){for(var x={},P=0;P<c.length;x={name$jscomp$381:void 0},P++)x.name$jscomp$381=c[P],Object.defineProperty(B,x.name$jscomp$381,{get:function(Y){return function(){return this.node[Y.name$jscomp$381]}}(x),
configurable:!0})};
hbw=function(){for(var B=yL.prototype,c=["textContent","innerHTML","className"],x={},P=0;P<c.length;x={name$jscomp$382:void 0},P++)x.name$jscomp$382=c[P],Object.defineProperty(B,x.name$jscomp$382,{get:function(Y){return function(){return this.node[Y.name$jscomp$382]}}(x),
set:function(Y){return function(g){this.node[Y.name$jscomp$382]=g}}(x),
configurable:!0})};
ms$=function(){GK=document.documentElement.getAttribute("dir");GK=document.documentElement.getAttribute("dir");for(var B=0;B<MM.length;B++){var c=MM[B];c.__autoDirOptOut||c.setAttribute("dir",GK)}};
w87=function(){Ll=!0;requestAnimationFrame(function(){Ll=!1;Tco(VnY);setTimeout(function(){for(var B=0,c=ZF.length;B<c;B++)tnC(ZF.shift())})})};
Tco=function(B){for(;B.length;)tnC(B.shift())};
tnC=function(B){var c=B[0],x=B[1];B=B[2];try{x.apply(c,B)}catch(P){setTimeout(function(){throw P;})}};
_.NcQ=function(B,c,x){Ll||w87();VnY.push([B,c,x])};
_.fl=function(B,c,x){Ll||w87();ZF.push([B,c,x])};
WTO=function(B,c){c=c===void 0?!1:c;if(!IsC||!Jao||!IsC.handlesDynamicScoping)return null;var x=Jao.ScopingShim;if(!x)return null;var P=x.scopeForNode(B),Y=(0,_.jO)(B).getRootNode(),g=function(k){if((0,_.jO)(k).getRootNode()===Y){var n=Array.from(IsC.nativeMethods.querySelectorAll.call(k,"*"));n.push(k);for(k=0;k<n.length;k++){var b=n[k];if((0,_.jO)(b).getRootNode()===Y){var d=x.currentScopeForNode(b);d!==P&&(d!==""&&x.unscopeNode(b,d),x.scopeNode(b,P))}}}};
g(B);return c?(c=new MutationObserver(function(k){for(var n=0;n<k.length;n++)for(var b=k[n],d=0;d<b.addedNodes.length;d++){var q=b.addedNodes[d];q.nodeType===Node.ELEMENT_NODE&&g(q)}}),c.observe(B,{childList:!0,
subtree:!0}),c):null};
lsx=function(){document.body.removeAttribute("unresolved")};
FTx=function(B){var c=B=B.replace(EE$,"").replace(O2x,""),x=new oEo;x.start=0;x.end=c.length;for(var P=x,Y=0,g=c.length;Y<g;Y++)if(c[Y]==="{"){P.rules||(P.rules=[]);var k=P,n=k.rules[k.rules.length-1]||null;P=new oEo;P.start=Y+1;P.parent=k;P.previous=n;k.rules.push(P)}else c[Y]==="}"&&(P.end=Y+1,P=P.parent||x);return Qvo(x,B)};
Qvo=function(B,c){var x=c.substring(B.start,B.end-1);B.parsedCssText=B.cssText=x.trim();B.parent&&(x=c.substring(B.previous?B.previous.end:B.parent.start,B.start-1),x=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x),x=x.replace(vEO," "),x=x.substring(x.lastIndexOf(";")+1),x=B.parsedSelector=B.selector=x.trim(),B.atRule=x.indexOf("@")===0,B.atRule?x.indexOf("@media")===0?B.type=4:x.match(zbC)&&(B.type=7,B.keyframesName=B.selector.split(vEO).pop()):x.indexOf("--")===
0?B.type=1E3:B.type=1);if(x=B.rules)for(var P=0,Y=x.length,g=void 0;P<Y&&(g=x[P]);P++)Qvo(g,c);return B};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(B){return B.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var c=arguments[1],x=6-c.length;x--;)c="0"+c;return"\\"+c})};
Srq=function(B,c,x){x=x===void 0?"":x;var P="";if(B.cssText||B.rules){var Y=B.rules;if(Y&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Y))for(var g=0,k=Y.length,n=void 0;g<k&&(n=Y[g]);g++)P=Srq(n,c,P);else c?c=B.cssText:(c=B.cssText,c=c.replace(yaw,"").replace(G2A,""),c=c.replace(MnO,"").replace(LT7,"")),(P=c.trim())&&(P="  "+P+"\n")}P&&(B.selector&&(x+=B.selector+" {\n"),x+=P,B.selector&&(x+="}\n\n"));return x};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(B){B=B[0];return!!B&&!!B.selector&&B.selector.indexOf("--")===0};
H2C=function(B){if(B=Z2l[B])B._applyShimCurrentVersion=B._applyShimCurrentVersion||0,B._applyShimValidatingVersion=B._applyShimValidatingVersion||0,B._applyShimNextVersion=(B._applyShimNextVersion||0)+1};
fsl=function(B){return B._applyShimCurrentVersion===B._applyShimNextVersion};
AaI=function(B){B._applyShimValidatingVersion=B._applyShimNextVersion;B._validating||(B._validating=!0,i2O.then(function(){B._applyShimCurrentVersion=B._applyShimNextVersion;B._validating=!1}))};
Dsw=function(B){if(!B)return"";typeof B==="string"&&(B=FTx(B));return Srq(B,uFI)};
rad=function(B){!B.__cssRules&&B.textContent&&(B.__cssRules=FTx(B.textContent));return B.__cssRules||null};
ebC=function(B,c,x,P){if(B){var Y=!1,g=B.type;if(P&&g===4){var k=B.selector.match(RbX);k&&(window.matchMedia(k[1]).matches||(Y=!0))}g===1?c(B):x&&g===7?x(B):g===1E3&&(Y=!0);if((B=B.rules)&&!Y)for(Y=0,g=B.length,k=void 0;Y<g&&(k=B[Y]);Y++)ebC(k,c,x,P)}};
B2w=function(B,c){var x=B.indexOf("var(");if(x===-1)return c(B,"","","");a:{var P=0;var Y=x+3;for(var g=B.length;Y<g;Y++)if(B[Y]==="(")P++;else if(B[Y]===")"&&--P===0)break a;Y=-1}P=B.substring(x+4,Y);x=B.substring(0,x);B=B2w(B.substring(Y+1),c);g=P.indexOf(",");if(g===-1)return c(x,P.trim(),"",B);Y=P.substring(0,g).trim();P=P.substring(g+1).trim();return c(x,Y,P,B)};
cEC=function(B){if(i4!==void 0)return i4;if(B.__cssBuild===void 0){var c=B.getAttribute("css-build");if(c)B.__cssBuild=c;else{a:{c=B.localName==="template"?B.content.firstChild:B.firstChild;if(c instanceof Comment&&(c=c.textContent.trim().split(":"),c[0]==="css-build")){c=c[1];break a}c=""}if(c!==""){var x=B.localName==="template"?B.content.firstChild:B.firstChild;x.parentNode.removeChild(x)}B.__cssBuild=c}}return B.__cssBuild||""};
PUo=function(B,c,x,P){for(var Y=c._noAccessors,g=Object.getOwnPropertyNames(c),k=0;k<g.length;k++){var n=g[k];if(!(n in P))if(Y)B[n]=c[n];else{var b=Object.getOwnPropertyDescriptor(c,n);b&&(b.configurable=!0,Object.defineProperty(B,n,b))}}for(var d in xbw)c[d]&&(x[d]=x[d]||[],x[d].push(c[d]))};
YBY=function(B,c,x){c=c||[];for(var P=B.length-1;P>=0;P--){var Y=B[P];Y?Array.isArray(Y)?YBY(Y,c):c.indexOf(Y)<0&&(!x||x.indexOf(Y)<0)&&c.unshift(Y):console.warn("behavior is null, check for missing or 404 import")}return c};
aOA=function(B,c){for(var x in c){var P=B[x],Y=c[x];B[x]=!("value"in Y)&&P&&"value"in P?Object.assign({value:P.value},Y):Y}};
pi$=function(B,c,x){var P={},Y=function(){return c.apply(this,arguments)||this};
_.w(Y,c);Y._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(k)for(var b=0,d;b<k.length;b++)d=k[b],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);B.properties&&this.createProperties(B.properties);B.observers&&this.createObservers(B.observers,B.properties);this._prepareTemplate()}else c._finalizeClass.call(this)};
Y.prototype.created=function(){c.prototype.created.call(this);var b=P.created;if(b)for(var d=0;d<b.length;d++)b[d].call(this)};
Y.prototype._registered=function(){var b=Y.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;c.prototype._registered.call(this);Ok&&n(b);b=Object.getPrototypeOf(this);var d=P.beforeRegister;if(d)for(var q=0;q<d.length;q++)d[q].call(b);if(d=P.registered)for(q=0;q<d.length;q++)d[q].call(b)}};
Y.prototype._applyListeners=function(){c.prototype._applyListeners.call(this);var b=P.listeners;if(b)for(var d=0;d<b.length;d++){var q=b[d];if(q)for(var C in q)this._addMethodEventListenerToNode(this,C,q[C])}};
Y.prototype._ensureAttributes=function(){var b=P.hostAttributes;if(b)for(var d=b.length-1;d>=0;d--){var q=b[d],C;for(C in q)this._ensureAttribute(C,q[C])}c.prototype._ensureAttributes.call(this)};
Y.prototype.ready=function(){c.prototype.ready.call(this);var b=P.ready;if(b)for(var d=0;d<b.length;d++)b[d].call(this)};
Y.prototype.attached=function(){c.prototype.attached.call(this);var b=P.attached;if(b)for(var d=0;d<b.length;d++)b[d].call(this)};
Y.prototype.detached=function(){c.prototype.detached.call(this);var b=P.detached;if(b)for(var d=0;d<b.length;d++)b[d].call(this)};
Y.prototype.attributeChanged=function(b,d,q){c.prototype.attributeChanged.call(this);var C=P.attributeChanged;if(C)for(var h=0;h<C.length;h++)C[h].call(this,b,d,q)};
_.AJ.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(k)for(var d=0;d<k.length;d++)aOA(b,k[d].properties);aOA(b,B.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(k)for(var d=0,q;d<k.length;d++)q=k[d],q.observers&&(b=b.concat(q.observers));B.observers&&(b=b.concat(B.observers));return b}}});
if(x){Array.isArray(x)||(x=[x]);var g=c.prototype.behaviors;var k=YBY(x,null,g);Y.prototype.behaviors=g?g.concat(x):k}var n=function(b){if(k)for(var d=k,q=0;q<d.length;q++)PUo(b,d[q],P,glO);PUo(b,B,P,sE$)};
Ok||n(Y.prototype);Y.generatedFrom=B;return Y};
nlA=function(B){var c=typeof B!=="string"?B:{is:B,notifyObserversOnUndefined:!0};c.fastInit===void 0&&(c.fastInit=!0);return function(x){if(!c.disableInheritanceCheck&&Object.getPrototypeOf(x.prototype).constructor!==_.u4)throw Error("Od");var P=x.prototype;P.is=c.is;Uew(P,"created",function(){this.hostElement=this;this.polymerController=this});
keX(P,x,c.fastInit);c.notifyObserversOnUndefined&&(P._overrideLegacyUndefined=!0);if(Xio)for(var Y=_.p(Object.getOwnPropertyNames(P)),g=Y.next();!g.done;g=Y.next()){g=g.value;var k=Object.getOwnPropertyDescriptor(P,g);k.enumerable===!1&&(k.enumerable=!0,Object.defineProperty(P,g,k))}if("template"in x)var n=function(){return x.template};
else c.template!==void 0&&(n=c.template);if(n!==void 0){var b;Object.defineProperty(P,"_template",{get:function(){b===void 0&&(b=n());return b},
set:function(d){b=d},
configurable:!0,enumerable:!0})}Polymer(P);x[$b$]=P}};
bCY=function(B){B=B===void 0?{}:B;B.fastInit===void 0&&(B.fastInit=!0);return function(c){if(!B.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==DF)throw Error("Pd");keX(c.prototype,c,B.fastInit)}};
keX=function(B,c,x){x=x===void 0?!1:x;KHq(c);x?Uew(B,"created",function(){this.disableEnforceFastDefaultValuesCheck||jEx(c,this)}):Uew(B,"ready",function(){for(var P={},Y=_.p(deX(this.behaviors)),g=Y.next();!g.done;g=Y.next())g=g.value,g.properties&&Object.assign(P,Ubq(this,g.properties));
Object.assign(P,Ubq(this,this.properties));jEx(c,this);Y=_.p(Object.keys(P));for(g=Y.next();!g.done;g=Y.next())g=g.value,this[g]=P[g]})};
jEx=function(B,c){if(Xio){B=new B;for(var x=_.p(Object.getOwnPropertyNames(B)),P=x.next();!P.done;P=x.next())P=P.value,c[P]=B[P];for(x=c;x&&x!==Object.prototype;x=Object.getPrototypeOf(x)){P=_.p(Object.getOwnPropertyNames(x));for(var Y=P.next();!Y.done;Y=P.next())Y=Y.value,B.hasOwnProperty(Y)||Object.defineProperty(B,Y,dbq(c,Y))}}else B.apply(c)};
dbq=function(B,c){return{get:function(){var x=B[c];return x instanceof Function?x.bind(B):x},
set:function(x){B[c]=x}}};
Ubq=function(B,c){if(!c)return{};for(var x={},P=_.p(Object.keys(c)),Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,!c[Y].readOnly){var g=B[Y];g!==void 0&&(x[Y]=g)}return x};
KHq=function(B){var c=new B;B=B.prototype.properties||{};for(var x=_.p(Object.keys(B)),P=x.next();!P.done;P=x.next())if(P=P.value,c.hasOwnProperty(P)){var Y=B[P];typeof Y==="function"&&(B[P]=Y={type:Y});c[P]!=null&&Y.type===Object&&(Y.type=qBo(c[P].constructor))}};
qBo=function(B){for(var c=_.p(CUI),x=c.next();!x.done;x=c.next())if(x=x.value,B===x)return x;return Object};
hvC=function(B){return function(c,x){c.behaviors=c.behaviors||[];c.behaviors.push(B||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",c,x).prototype:void 0));Object.defineProperty(c,x,{get:function(){return this},
enumerable:!0,configurable:!0})}};
mbQ=function(B){B=B===void 0?{}:B;return function(c,x){c.properties=c.properties||{};B.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?B.type=qBo(Reflect.getMetadata("design:type",c,x)):B.type=String);var P=B,Y=c.properties[x];c.properties[x]=Y?Object.assign({},Y,P):P}};
T2C=function(B){return function(c,x){c.listeners=c.listeners||{};c.listeners[B]=x}};
VXI=function(){var B=_.ts.apply(0,arguments);if(B.length===0)throw Error("Qd");return function(c,x){c.observers=c.observers||[];c.observers.push(x+"("+B.join(",")+")")}};
tXd=function(){var B=_.ts.apply(0,arguments);return function(c,x,P){var Y=Object.getOwnPropertyDescriptor(c,x).get,g="__compute__"+x;Object.defineProperty(c,g,{value:Y,enumerable:!0});c.properties=c.properties||{};Y=c.properties[x];Y||(Y={},c.properties[x]=Y);Y.computed=g+"("+B.join(",")+")";P.get=void 0}};
_.rY=function(B,c,x){_.tG.call(this);this.JSC$9274_id_=null;this.usingListeners_=!1;this.JSC$9274_listener_=B;this.handler_=x;this.JSC$9274_win_=c||window;this.callback_=(0,_.wf)(this.JSC$9276_doAction_,this)};
R1=function(B){this.range_=B};
eO=function(B){this.range_=B};
xd=function(B,c,x){_.tG.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=B;this.scrollTimer_=new _.Bf(50);this.JSC$9353_eventHandler_=new _.cf(this);this.scrollDelta_=new _.Jx;this.containerIsActuallyContent_=B.tagName==="BODY"||B.tagName==="HTML";this.containerBounds_=wiI(B);this.containerIsActuallyContent_&&(B=_.KH(),this.containerBounds_.height=B.height,this.containerBounds_.width=B.width);this.margin_=c||0;if(c){if(c=this.containerBounds_.clone(),B=this.margin_){var P=
Math.min(B,c.height*.25);c.top+=P;c.height-=2*P;B=Math.min(B,c.width*.25);c.left+=B;c.width-=2*B}}else c=this.containerBounds_;this.scrollBounds_=c;x||this.JSC$9353_eventHandler_.listen(_.ly(this.containerNode_),"mousemove",this.JSC$9355_onMouseMove);this.JSC$9353_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9355_onTick_)};
_.Pf=function(B){this.mechanism=B};
Yd=function(B,c){this.JSC$9451_key_=B;this.JSC$9451_value_=c};
IOl=function(B){if(B>=55296&&B<=57343||B>1114111)return"\ufffd";B in N2q&&(B=N2q[B]);var c="";B>65535&&(B-=65536,c+=String.fromCharCode(B>>>10&1023|55296),B=56320|B&1023);return c+=String.fromCharCode(B)};
JE7=function(B,c){return B<c?1:-1};
lOQ=function(){return function(B){return B.charAt(1)==="#"?B.charAt(2)==="X"||B.charAt(2)==="x"?IOl(parseInt(B.substr(3),16)):IOl(parseInt(B.substr(2),10)):WHq[B.slice(1,-1)]}};
oll=function(B){return B.slice(1,B.length-1).trim().replace(Elo,function(c){return OCQ[c]||" "})};
as=function(B){return B===32||B===9};
gx=function(B,c){return c<B.length?B.charCodeAt(c):-1};
QEl=function(B){for(;B;){if(B._lastLineBlank)return!0;var c=B.type;if(c==="list"||c==="item")B=B._lastChild;else break}return!1};
sn=function(B){if(FHl.test(B)){var c=1,x=0,P=0;for(B[x]=="|"&&x++;x<B.length;){switch(B[x]){case "|":P=1;break;case " ":break;case "\t":break;default:P&&(P=0,c++)}x++}return vlC.test(B)?-c:c}return 0};
zvI=function(B){return B=="table"||B=="row"||B=="cell"};
SBI=function(){return new pN("document",[[1,1],[0,0]])};
yEI=function(){};
kd=function(){var B={safe:!1};B=B||{};B.softbreak=B.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=B};
HCI=function(B,c){var x="";if(B)if(B=B.toLowerCase(),B===" "||GeI.test(B))x="space";else if(MXq.test(B))x="esc";else if(B.length==1){if(!c||LHC.test(B))x=B}else x=ZCl.test(B)?B.replace("arrow",""):B=="multiply"?"*":B;return x};
usq=function(B,c){var x=B.hasModifiers;if(c.key)x=HCI(c.key,x);else if(c.detail&&c.detail.key)x=HCI(c.detail.key,x);else{x=c.keyIdentifier;var P="";x&&(x in fOI?P=fOI[x]:iCC.test(x)?(x=parseInt(x.replace("U+","0x"),16),P=String.fromCharCode(x).toLowerCase()):P=x.toLowerCase());(x=P)||(x=c.keyCode,P="",Number(x)&&(x>=65&&x<=90?P=String.fromCharCode(32+x):x>=112&&x<=123?P="f"+(x-112+1):x>=48&&x<=57?P=String(x-48):x>=96&&x<=105?P=String(x-96):P=AEY[x]),x=P);x=x||""}return x===B.key&&(!B.hasModifiers||
!!c.shiftKey===!!B.shiftKey&&!!c.ctrlKey===!!B.ctrlKey&&!!c.altKey===!!B.altKey&&!!c.metaKey===!!B.metaKey)};
rEq=function(B){return B.length===1?{combo:B,key:B,event:"keydown"}:B.split("+").reduce(function(c,x){var P=x.split(":");x=P[0];P=P[1];x in Dbw?(c[Dbw[x]]=!0,c.hasModifiers=!0):(c.key=x,c.event=P||"keydown");return c},{combo:B.split(":").shift()})};
Rv$=function(B){return B.trim().split(" ").map(function(c){return rEq(c)})};
evx=function(B,c){if(B&&B.fn){var x=B.fn;B.fn=function(){try{x.apply(this,arguments)}catch(P){if(P instanceof XT)console.warn("Argument '"+P.arg+"'"+(c?" for method '"+c+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw P;}}}return B};
BQl=function(){var B=_.ts.apply(0,arguments);return B.length===0?function(c){return c}:B.length===1?B[0]:B.reduce(function(c,x){return function(){return c(x.apply(null,_.wq(_.ts.apply(0,arguments))))}})};
cdX=function(){var B=_.ts.apply(0,arguments);return function(c){return function(x,P){x=c(x,P);var Y=function(){throw Error("Ae");},g={getState:x.getState,
dispatch:function(k){return Y.apply(null,[k].concat(_.wq(_.ts.apply(1,arguments))))}};
P=B.map(function(k){return k(g)});
Y=BQl.apply(null,_.wq(P))(x.dispatch);return Object.assign({},x,{dispatch:Y})}}};
YZA=function(B){Object.keys(B).forEach(function(c){var x=B[c];if(typeof x(void 0,{type:xy7})==="undefined")throw Error("Be`"+c);if(typeof x(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+PJQ()})==="undefined")throw Error("Ce`"+c+"`"+xy7);})};
$d=function(B){for(var c=Object.keys(B),x={},P=0;P<c.length;P++){var Y=c[P];typeof B[Y]==="function"&&(x[Y]=B[Y])}var g=Object.keys(x);try{YZA(x)}catch(n){var k=n}return function(n,b){n=n===void 0?{}:n;if(k)throw k;for(var d=!1,q={},C=0;C<g.length;C++){var h=g[C],V=n[h],N=(0,x[h])(V,b);if(typeof N==="undefined")throw n=b&&b.type,Error("De`"+(n?'"'+String(n)+'"':"(unknown type)")+"`"+h);q[h]=N;d=d||N!==V}return(d=d||g.length!==Object.keys(n).length)?q:n}};
aZX=function(B,c,x){function P(){if(q)throw Error("Ee");return n}
function Y(V){if(typeof V!=="function")throw Error("Fe`"+typeof V);if(q)throw Error("Ge");var N=!0;d===b&&(d=b.slice());d.push(V);return function(){if(N){if(q)throw Error("He");N=!1;d===b&&(d=b.slice());var l=d.indexOf(V);d.splice(l,1);b=null}}}
function g(V){if(typeof V!=="object"||V===null)var N=!1;else{for(N=V;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(V)===N}if(!N)throw Error("Ie`"+typeof V);if(typeof V.type==="undefined")throw Error("Je");if(q)throw Error("Ke");try{q=!0,n=k(n,V)}finally{q=!1}N=b=d;for(var l=0;l<N.length;l++)(0,N[l])();return V}
if(typeof c==="function"&&typeof x==="function"||typeof x==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof c==="function"&&typeof x==="undefined"&&(x=c,c=void 0);if(typeof x!=="undefined"){if(typeof x!=="function")throw Error("Me`"+typeof x);return x(aZX)(B,c)}if(typeof B!=="function")throw Error("Ne`"+typeof B);var k=B,n=c,b=[],d=b,q=!1;g({type:xy7});var C={},h=(C.dispatch=g,C.subscribe=Y,C.getState=P,C.replaceReducer=function(V){if(typeof V!=="function")throw Error("Oe`"+
typeof V);k=V;g({type:gVO});return h},C[sgl]=function(){var V={};
return V.subscribe=function(N){function l(){N.next&&N.next(P())}
if(typeof N!=="object"||N===null)throw new TypeError("Pe`"+typeof N);l();return{unsubscribe:Y(l)}},V[sgl]=function(){return this},V},C);
return h};
pGA=function(B){function c(){Y&&(Y=!1,B());g&&P()}
function x(){requestAnimationFrame(c)}
function P(){var n=Date.now();if(Y){if(n-k<2)return;g=!0}else Y=!0,g=!1,setTimeout(x,20);k=n}
var Y=!1,g=!1,k=0;return P};
nN=function(B){return typeof B==="number"?B:parseFloat(B)||0};
koC=function(B){return _.ts.apply(1,arguments).reduce(function(c,x){return c+nN(B["border-"+x+"-width"])},0)};
_.I=function(B,c){c=lV(Wa(c));B.innerHTML=c};
nVC=function(B){var c=XGd;c||(c=$yq(),c=XGd=_.wW.transpose(c));c=c[B];return typeof c==="string"?c:_.bh(B)};
bYC=function(B){B=String(B).toLowerCase();var c=$yq()[B];return typeof c==="string"?c:_.KN(B)};
KFC=function(B){B=B.toLowerCase();B=$yq()[B];return typeof B==="string"?B:null};
$yq=function(){if(!jgO){for(var B=Object.assign({},Uy7),c=_.p(dyY),x=c.next();!x.done;x=c.next())x=x.value,B[x.toLowerCase()]=x;jgO=B}return jgO};
hFw=function(B,c){var x=window.customElements;return x&&x.get(B)||qZx[B]===!0?2:c.name==="HTMLUnknownElement"?1:c.name==="HTMLElement"&&CJo.test(B)?3:0};
V2X=function(B,c){switch(c){case "innerHTML":return myQ(B)===1?2:null;case "textContent":return B=myQ(B),B===1||B===6?1:null;default:var x,P;return(P=(x=TQQ[B.localName])==null?void 0:x[c])!=null?P:null}};
myQ=function(B){var c=B.localName,x=hFw(c,B.constructor);switch(x){case 0:case 1:return t2O(c,B);case 3:case 2:return 1;default:_.kz(x,"got an unknown element classification")}};
t2O=function(B,c){var x=Object.hasOwnProperty.call(wGA,B)?wGA[B]:null;return x!==null?x:Object.hasOwnProperty.call(NQo,B)&&c instanceof SVGElement?NQo[B]:null};
IZ7=function(B,c){return c};
WFq=function(B){return(B=B.split(Jd7,2))?{url:B[0],metadata:B[1]}:null};
EV7=function(B){var c=String(B.url).replace(lZo,encodeURIComponent);if(B=B.metadata){lZo.lastIndex=0;if(lZo.test(B))return null;c+=" "+B}return c};
FFY=function(B){function c(d){var q=d.localName;if(!d.getAttribute("is")&&hFw(q,d.constructor)===2){var C;return(C=b)!=null?C:b=document.createElement("polyresinuncustomized")}(d=n[q])||(d=n[q]=document.createElement(q));return d}
var x=B.reportHandler||void 0,P=B.safeTypesBridge||OYw,Y=/^$/;if(B=B.allowedIdentifierPrefixes){B=_.p(B);for(var g=B.next();!g.done;g=B.next())Y=new RegExp(Y.source+"|^"+_.oVI(g.value))}x&&x(!1,"initResin",null);var k=QgY(Y,P,x),n={},b=null;return function(d,q,C){var h=d.nodeType;if(h!==Node.ELEMENT_NODE){if(h===Node.TEXT_NODE){q=d.parentElement;C=!q;if(q&&q.nodeType===Node.ELEMENT_NODE){h=q.localName;var V=hFw(h,q.constructor);switch(V){case 0:case 1:q=t2O(h,q);C=q===1||q===6;break;case 3:case 2:C=
!0;break;default:_.kz(V,"got an unknown element classification")}}if(C)return function(S){return""+P(S,"STRING",S)}}return function(S){if(!S&&S!==document.all)return S;
x&&x(!0,"Failed to sanitize "+(d.parentElement&&d.parentElement.nodeName)+" #text node to value "+S,d.parentElement);return jW}}var N=d.localName;
h=c(d);var l=null;switch(C){case "attribute":if(bYC(q)in h)break;return function(S){return S};
case "property":if(q in h){l=V2X(h,q);break}if((V=KFC(q))&&V in h)break;return function(S){return S};
default:_.kz(C,"got an unknown resin type, expected either 'property' or 'attribute'")}var E=C==="attribute"?q.toLowerCase():nVC(q);l||(l=YEw(N,E,function(S){var M=d.getAttribute(S);return!M||/[\[\{]/.test(S)?null:M}));
return function(S){var M=Un,f=null;if(!S&&S!==document.all)return S;if(l!=null){var Z=k[l],u=Z.safeType;f=Z.safeReplacement;u&&(M=P(S,u,Un));M===Un&&(Z.filterString?(M=String(P(S,"STRING",S)),M=Z.filterString(N,E,M)):Z.filterRaw&&(M=Z.filterRaw(N,E,S,d)),M===f&&(M=Un))}M===Un&&(M=f||jW,x&&x(!0,"Failed to sanitize attribute of <"+N+">: <"+N+" "+E+'="'+S+'">',d));return M}}};
QgY=function(B,c,x){return[,{filterRaw:function(P,Y,g){return g},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:vVI,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vVI,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:jW,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:zFo,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(P,Y,g){g=
String(g).toLowerCase();return sxC(P,Y,g)?g:jW},
safeReplacement:jW,safeType:void 0},,{filterRaw:void 0,filterString:function(P,Y,g){return B.test(g)?g:jW},
safeReplacement:jW,safeType:"CONSTANT"},{filterRaw:function(P,Y,g,k){if(typeof g==="string")var n=(n=g.match(SZl))?n.map(WFq).filter(Boolean):[];else if(Array.isArray(g))n=g;else return vVI;var b=n;n=[];var d=[],q={};if(Array.isArray(b))for(var C=0,h=b.length;C<h;++C){var V=b[C],N=V&&V.url;if(N){var l=c(N,"URL",q);if(l){var E=l!==q;(E?n:d).push({url:E?l:N,metadata:V.metadata})}}}else d.push(b);b=d.length?JSON.stringify(d):null;d=Un;if(n.length){if(!Array.isArray(n))throw Error();d=n.map(EV7).filter(Boolean).join(" , ")||
Un}b&&x&&x(!0,"Failed to sanitize attribute value of <"+P+">: <"+P+" "+Y+'="'+g+'">: '+b,k);return d===Un?vVI:d},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
yd7=function(B){var c=FFY(B);return function(x,P,Y,g){return g||g===document.all?c(x,P,Y)(g):g}};
dx=function(B,c){function x(){function Y(n,b,d){for(b=Reflect.getMetadata("parameters",n)||[];b.length<=d;)b.push(null);b[d]=b[d]||[];b[d].push(k);Reflect.defineMetadata(b,n);return n}
var g=_.ts.apply(0,arguments);if(this instanceof x)return P.apply(this,g),this;var k=new (Function.prototype.bind.apply(x,[null].concat(_.wq(g))));Y.annotation=k;return Y}
var P=GoQ(c);x.prototype.toString=function(){return"@"+B};
return x.annotationCls=x};
GoQ=function(B){return function(){var c=_.ts.apply(0,arguments),x=this;B.forEach(function(P,Y){Y=c[Y];if(Array.isArray(P))x[P[0]]=Y&&Y!==void 0?Y:P[1];else for(var g in P)x[g]=Y&&Y[g]!==void 0?Y[g]:P[g]})}};
M2q=function(B){return B!==void 0&&B!==null};
qp=function(B){if(typeof B==="string")return B;if(B===void 0||B===null)return""+B;if(B.overriddenName)return B.overriddenName;if(B.name)return B.name;B=B.toString();var c=B.indexOf("\n");return c===-1?B:B.substring(0,c)};
LFY=function(B){B.__forward_ref__=LFY;B.toString=function(){return qp(this())};
return B};
CN=function(B){return typeof B==="function"&&B.hasOwnProperty("__forward_ref__")&&B.__forward_ref__===LFY?B():B};
ZY7=function(B){return B?B.map(function(c){return new (Function.prototype.bind.apply(c.type.annotationCls,[null].concat(_.wq(c.args?c.args:[]))))}):[]};
HYX=function(B){for(var c=[],x=0;x<B.length;++x){if(c.indexOf(B[x])>-1){c.push(B[x]);break}c.push(B[x])}return c};
fZ7=function(B){return B.length>1?" ("+HYX(B.slice().reverse()).map(function(c){return qp(c.token)}).join(" -> ")+")":""};
Add=function(B,c,x,P){if(P){var Y=Error("We``"+(P instanceof Error?P.message:P));Y.ngOriginalError=P}else Y=Error();Y.addKey=iY$;Y.keys=[c];Y.injectors=[B];Y.constructResolvingMessage=x;Y.message=Y.constructResolvingMessage();Y.ngOriginalError=P;return Y};
iY$=function(B,c){this.injectors.push(B);this.keys.push(c);this.message=this.constructResolvingMessage()};
u87=function(B,c){return Add(B,c,function(){return"No provider for "+qp(this.keys[0].token)+"!"+fZ7(this.keys)})};
Dyo=function(B,c){return Add(B,c,function(){return"Cannot instantiate cyclic dependency!"+fZ7(this.keys)})};
rdC=function(B,c,x){return Add(B,x,function(){var P=qp(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+P+"!"+fZ7(this.keys)+"."},c)};
RFQ=function(B,c){for(var x=[],P=0,Y=c.length;P<Y;P++){var g=c[P];g&&g.length!=0?x.push(g.map(qp).join(" ")):x.push("?")}return Error("$e`"+qp(B)+"`"+x.join(", ")+"`"+qp(B))};
aDd=function(B){var c=void 0,x=void 0;if(B&&B.useClass!==void 0){c=B.useClass;var P=CN(B.useClass);var Y=eFd.factory(P);P=Bpx(P)}else B&&B.useExisting!==void 0?(Y=function(g){return g},P=[ce7(hg.get(CN(B.useExisting)))]):B&&B.useFactory!==void 0?(Y=B.useFactory,P=xwI(B.useFactory,B.deps)):(x=B.useValue,Y=function(){return B.useValue},P=PLC);
return new YYC(Y,P,c,x)};
sfI=function(B){return new g7X(hg.get(CN(B.provide)),[aDd(B)],B.multi)};
k1o=function(B){B=pJ7(B,[]).map(sfI);for(var c=new Map,x=0;x<B.length;x++){var P=B[x],Y=c.get(P.key.id);if(Y){if(P.multiProvider!==Y.multiProvider)throw Error("bf`"+Y+"`"+P);if(P.multiProvider)for(var g=0;g<P.resolvedFactories.length;g++)Y.resolvedFactories.push(P.resolvedFactories[g]);else c.set(P.key.id,P)}else Y=void 0,P.multiProvider?Y=new g7X(P.key,P.resolvedFactories.slice(),P.multiProvider):Y=P,c.set(P.key.id,Y)}return Array.from(c.values())};
pJ7=function(B,c){B.forEach(function(x){if(x instanceof XJo)c.push({provide:x,useClass:x});else if(x&&typeof x=="object"&&x.provide!==void 0)c.push(x);else if(x instanceof Array)pJ7(x,c);else throw Error("Ze`"+x);});
return c};
xwI=function(B,c){if(c){var x=c.map(function(P){return[P]});
return c.map(function(P){return $ww(B,P,x)})}return Bpx(B)};
Bpx=function(B){var c=eFd.parameters(B);if(!c)return[];if(c.some(function(x){return x==null}))throw RFQ(B,c);
return c.map(function(x){return $ww(B,x,c)})};
$ww=function(B,c,x){var P=null,Y=!1;if(!Array.isArray(c))return c instanceof n7q?b9I(c.token,Y,null):b9I(c,Y,null);for(var g=null,k=0;k<c.length;++k){var n=c[k];if(n instanceof XJo)P=n;else if(n instanceof n7q)P=n.token;else if(n instanceof KvX)Y=!0;else if(n instanceof jfl||n instanceof Uw7)g=n}P=CN(P);if(P!=null)return b9I(P,Y,g);throw RFQ(B,x);};
b9I=function(B,c,x){return new dwx(hg.get(CN(B)),c,x)};
qYq=function(B,c){for(var x=Array(B.providers.length),P=0;P<B.providers.length;++P){var Y=P;if(P<0||P>=B.providers.length)throw Error("af`"+P);x[Y]=c(B.providers[P])}return x};
CLY=function(B){return typeof B==="function"&&eFd.parameters(B).every(function(c){return!!c})};
Tp7=function(B){var c=hW7;mwC.get(B)||mwC.set(B,new c);return mwC.get(B)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(B)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(B)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B,c){var x,P;if(B.contains(c))return!0;B=_.m4(B).querySelectorAll("content,slot");for(x=0;x<B.length;++x){var Y=_.m4(B[x]).getDistributedNodes();for(P=0;P<Y.length;++P)if(Y[P].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y[P],c))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){B.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(B)&&B.preventDefault();B.targetTouches&&(B=B.targetTouches[0],V1d=B.pageX,t1d=B.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 B=0,c=Tk.length;B<c;B++)document.addEventListener(Tk[B],_._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 B=0,c=Tk.length;B<c;B++)document.removeEventListener(Tk[B],_._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(B){var c=_.m4(B).rootTarget;B.type!=="touchmove"&&wJX!==c&&(wJX=c,Npw=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.m4(B).path));if(!Npw.length)return!0;if(B.type==="touchstart")return!1;B=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(B);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Npw,B.deltaX,B.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){for(var c=[],x=B.indexOf(IDO),P=0;P<=x;P++)if(B[P].nodeType===Node.ELEMENT_NODE){var Y=B[P],g=Y.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(Y));g.overflow!=="scroll"&&g.overflow!=="auto"||c.push(Y)}return c};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B,c,x){if(c||x)for(var P=Math.abs(x)>=Math.abs(c),Y=0;Y<B.length;Y++){var g=B[Y];if(P?x<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:c<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){var c={deltaX:B.deltaX,deltaY:B.deltaY};"deltaX"in B||("wheelDeltaX"in B&&"wheelDeltaY"in B?(c.deltaX=-B.wheelDeltaX,c.deltaY=-B.wheelDeltaY):"wheelDelta"in B?(c.deltaX=0,c.deltaY=-B.wheelDelta):"axis"in B?(c.deltaX=B.axis===1?B.detail:0,c.deltaY=B.axis===2?B.detail:0):B.targetTouches&&(B=B.targetTouches[0],c.deltaX=V1d-B.pageX,c.deltaY=t1d-B.pageY));return c};
JeA=function(B){this.element=B;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
lDX=function(B){this.element=B;this.color=window.getComputedStyle(B).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");_.m4(this.waveContainer).appendChild(this.wave);WvC(this)};
VD=function(B,c){for(var x in B)if(x.toLowerCase()===c.toLowerCase())return B[x]};
E77=function(B,c){for(var x in B)if(x.toLowerCase()===c.toLowerCase()){delete B[x];break}};
o7O=function(B){B=_.wW.clone(B);for(var c=0;c<O9w.length;++c){var x=O9w[c],P=VD(B,x);P&&(B["X-Goog-Upload-Header-"+x]=P,E77(B,x))}return B};
QfA=function(B){B=_.wW.clone(B);E77(B,"X-Goog-Upload-Status")};
v7d=function(B){return FvX.some(function(c){return c.test(B)})};
G1q=function(B,c){var x;var P=(x=B.formContent)==null?void 0:x.locale;x=P==null?void 0:P.split("-")[0];P=P&&zWA.includes(P)?P:x&&zWA.includes(x)?x:void 0;P=(P!=null?P:"en").replaceAll("-","_").toLowerCase();var Y;B=((Y=B.initializationData)==null?0:Y.useNightlyRelease)?"nightly":"live";var g;return(c==null?0:(g=c.getEnableAlohaBinarySplit)==null?0:g.call(c))?_.PM(SYl,B):_.PM(yeo,B,P)};
Z9q=function(B,c,x,P){if(M17&&LvQ===c)return M17;LvQ=c;var Y=G1q(B,P);return M17=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(g,k){var n=_.df("SCRIPT");_.Mg(n,Y);n.onload=function(){c.feedbackV2GlobalObject?g(c.feedbackV2GlobalObject):k(Error("ef"))};
n.onerror=function(){k(Error("ff`"+Y.toString()))};
x.body.appendChild(n)})};
i9X=function(B,c,x,P){if(H97&&fDl===c)return H97;fDl=c;var Y=G1q(B,P);return H97=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(g,k){var n=_.df("SCRIPT");_.Mg(n,Y);n.onload=function(){c.feedbackV2GlobalObject?g(c.feedbackV2GlobalObject):k(Error("ef"))};
n.onerror=function(){k(Error("ff`"+Y.toString()))};
x.body.appendChild(n)})};
Aex=function(B,c,x,P,Y){Y=Y===void 0?!0:Y;var g,k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:return g=Date.now(),_.K(q,Z9q(B,x,P,c),2);case 2:k=q.yieldResult;if(!(Y||((b=B.initializationData)==null?0:b.useNightlyRelease)||((d=B.initializationData)==null?0:d.isLocalServer))){n=k.initializeFeedbackClient(B,g,c);q.jumpTo(3);break}return _.K(q,k.initializeFeedbackClientAsync(B,g,c),4);case 4:n=q.yieldResult;case 3:return n.initiateAloha(),q.return(n)}})};
u$C=function(B,c,x,P){var Y,g,k;return _.X(function(n){if(n.nextAddress==1)return Y=Date.now(),_.K(n,i9X(B,x,P.document,c),2);if(n.nextAddress!=3)return g=n.yieldResult,_.K(n,g.initializeFeedbackClientAsync(B,Y,c,P),3);k=n.yieldResult;k.initiateAloha();return n.return(k)})};
Dwd=function(B,c,x){var P=!0;P=P===void 0?!0:P;var Y,g,k,n,b,d,q,C,h,V;return _.X(function(N){Y=x||_.xI;if((g=c)==null?0:(n=(k=g).getEnableAlohaBinarySplit)==null?0:n.call(k)){b=Y;if(b.isFormOpened)throw d=Error("gf"),d.name="DuplicateFormError",d;b.isFormOpened=!0;B.callbacks=B.callbacks||{};q=B.callbacks.onClose||function(){};
B.callbacks.onClose=function(l){b.isFormOpened=!1;q(l)};
try{return N.return(u$C(B,c,b,Y))}catch(l){throw b.isFormOpened=!1,l;}}else{C=Y;if(C.isFormOpened)throw h=Error("gf"),h.name="DuplicateFormError",h;C.isFormOpened=!0;B.callbacks=B.callbacks||{};V=B.callbacks.onClose||function(){};
B.callbacks.onClose=function(l){C.isFormOpened=!1;V(l)};
try{return N.return(Aex(B,c,C,Y.document,P))}catch(l){throw C.isFormOpened=!1,l;}}_.Kq(N)})};
cBY=function(B,c){return _.X(function(x){return x.return(new Promise(function(P){var Y=req(c!=null?c:"")+"/aloha_form_properties?productId="+B;RWC(Y,function(g){g=g.target;var k=null;try{var n=JSON,b=n.stringify;if(g.JSC$7842_xhr_){var d=g.JSC$7842_xhr_.responseText;d.indexOf(")]}'\n")==0&&(d=d.substring(5));var q=(0,_.tg)(d)}else q=void 0;k=x2l(eWl,b.call(n,q))}catch(C){b=new eWl,q=BaY(),q=_.wx(q,13,!1),q=_.wx(q,14,!0),q=_.wx(q,15,!0),q=_.wx(q,20,!1),k=_.Pa(b,1,q)}P(k)},"GET","",{},2E3,!0)}))})};
req=function(B){return v7d(B)?B:"https://www.google.com/tools/feedback"};
aud=function(B){B=B.match(new RegExp(xfq,"gi"))||[];B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;a:{var x=_.p(PKI);for(var P=x.next();!P.done;P=x.next())if(P.value.test(c)){x=!1;break a}x=!0}if(!x)a:{x=_.p(YVq);for(P=x.next();!P.done;P=x.next())if(P.value.test(c)){x=!0;break a}x=!1}if(x)return!0}return!1};
gcx=function(B){switch(B){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"}};
pBX=function(B){if(window.crypto&&window.crypto.getRandomValues)try{var c=Array(B),x=new Uint8Array(B);window.crypto.getRandomValues(x);for(var P=0;P<c.length;P++)c[P]=x[P];return c}catch(g){}c=Array(B);for(x=0;x<B;x++){P=Date.now();for(var Y=0;Y<P%23;Y++)c[x]=Math.random();c[x]=Math.floor(Math.random()*256)}if(sZX)for(x=1,P=0;P<sZX.length;P++)c[x%B]^=c[(x-1)%B]/4^sZX.charCodeAt(P),x++;return c};
Np=function(B){B=pBX(B);for(var c=[],x=0;x<B.length;x++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(B[x]&63));return c.join("")};
XBl=function(B){B&&_.JP("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:kil,clientScreenNonce:B})};
$fo=function(B){return _.v5("client-screen-nonce-store",{})[B===void 0?0:B]};
ncw=function(B,c){c=c===void 0?0:c;var x=_.v5("client-screen-nonce-store");x||(x={},_.FP("client-screen-nonce-store",x));x[c]=B};
bRl=function(B){B=B===void 0?0:B;return B===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+B};
Ks7=function(B){return _.v5(bRl(B===void 0?0:B))};
_.Jg=function(B){return(B=Ks7(B===void 0?0:B))?new _.Is({veType:B,youtubeData:void 0,jspbYoutubeData:void 0}):null};
jZw=function(){var B=_.v5("csn-to-ctt-auth-info");B||(B={},_.FP("csn-to-ctt-auth-info",B));return B};
Uf$=function(){return Object.values(_.v5("client-screen-nonce-store",{})).filter(function(B){return B!==void 0})};
_.Wf=function(B){B=$fo(B===void 0?0:B);if(!B&&!_.zu("USE_CSN_FALLBACK",!0))return null;B||(B="UNDEFINED_CSN");return B?B:null};
qV$=function(B){for(var c=_.p(Object.values(dfI)),x=c.next();!x.done;x=c.next())if(_.Wf(x.value)===B)return!0;return!1};
CKd=function(B,c,x){var P=jZw();(x=_.Wf(x))&&delete P[x];c&&(P[B]=c)};
lh=function(B){return jZw()[B]};
_.En=function(B,c,x,P){x=x===void 0?0:x;if(B!==$fo(x)||c!==_.v5(bRl(x)))if(CKd(B,P,x),ncw(B,x),_.FP(bRl(x),c),c=function(){setTimeout(function(){XBl(B)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(c)}catch(Y){c()}else c()};
hc7=function(B,c){c=c===void 0?"":c;var x=[],P;for(P in B)if(B.hasOwnProperty(P)){var Y=c!==""?c+"."+P:P;typeof B[P]==="object"?x.push.apply(x,_.wq(hc7(B[P],Y))):x.push([Y,B[P]])}x.sort();return x};
_.os=function(B){var c=_.ts.apply(1,arguments);if(!On(B)||c.some(function(P){return!On(P)}))throw Error("hf");
c=_.p(c);for(var x=c.next();!x.done;x=c.next())mfq(B,x.value)};
mfq=function(B,c){for(var x in c)if(On(c[x])){if(x in B&&!On(B[x]))throw Error("jf");x in B||(B[x]={});mfq(B[x],c[x])}else if(TaX(c[x])){if(x in B&&!TaX(B[x]))throw Error("kf");x in B||(B[x]=[]);VQ$(B[x],c[x])}else B[x]=c[x];return B};
VQ$=function(B,c){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,On(x)?B.push(mfq({},x)):TaX(x)?B.push(VQ$([],x)):B.push(x);return B};
On=function(B){return typeof B==="object"&&!Array.isArray(B)};
TaX=function(B){return typeof B==="object"&&Array.isArray(B)};
wBX=function(B){for(var c=_.p(Object.entries(tQo)),x=c.next();!x.done;x=c.next())if(x=_.p(x.value),x.next(),x=x.next().value,x==="SLI_STATUS_"+B)return x;return"SLI_STATUS_UNKNOWN"};
_.QD=function(B,c,x,P){return Na7(B,c,function(){return new _.Iu7(B,c,x,P)})};
_.JBx=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Wsq=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
FT=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
luA=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
EcQ=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
ORd=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
FsO=function(B){B&&(B.dataset?B.dataset[ocd()]="true":_.Zz([_.cM(QZO)],B,"data-loaded","true".toString()))};
vcq=function(B){return B?B.dataset?B.dataset[ocd()]:B.getAttribute("data-loaded"):null};
ocd=function(){return zcQ.loaded||(zcQ.loaded="loaded".replace(/\-([a-z])/g,function(B,c){return c.toUpperCase()}))};
_.vf=function(B,c,x){SVA(B,c,x===void 0?null:x)};
_.GiQ=function(B,c){B&&c&&(B=""+_.Py(c),(B=yBw[B])&&_.LzY(B))};
SVA=function(B,c,x){x=x===void 0?null:x;var P=_.MQl(B),Y=document.getElementById(P),g=Y&&vcq(Y),k=Y&&!g;g?c&&c():(c&&(g=_.aG(P,c),c=""+_.Py(c),yBw[c]=g),k||(Y=LsO(B,P,function(){vcq(Y)||(FsO(Y),_.Zrq(P),_.pU(function(){_.f3l(P)},0))},x)))};
LsO=function(B,c,x,P){P=P===void 0?null:P;var Y=_.df("SCRIPT");Y.id=c;Y.onload=function(){x&&setTimeout(x,0)};
Y.onreadystatechange=function(){switch(Y.readyState){case "loaded":case "complete":Y.onload()}};
P&&Y.setAttribute("nonce",P);_.Mg(Y,_.ID(B));B=document.getElementsByTagName("head")[0]||document.body;B.insertBefore(Y,B.firstChild);return Y};
_.MQl=function(B){var c=document.createElement("a");IW(c,B);return"js-"+zk(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ZRX=function(B){var c=_.v5("INNERTUBE_HOST_OVERRIDE");c&&(B=String(c)+String(_.SW(B)));return B};
HRC=function(B){var c={};_.T("json_condensed_response")&&(c.prettyPrint="false");return B=bl$(B,c)};
_.Mp=function(B){return Rt(B)?"same-origin":"include"};
_.LN=function(B){return Rt(B)?"same-origin":"cors"};
Za=function(B,c,x){x=x===void 0?{}:x;B={method:c===void 0?"POST":c,mode:_.LN(B),credentials:_.Mp(B)};c={};for(var P=_.p(Object.keys(x)),Y=P.next();!Y.done;Y=P.next())Y=Y.value,x[Y]&&(c[Y]=x[Y]);Object.keys(c).length>0&&(B.headers=c);return B};
_.Hf=function(B,c){c=c===void 0?{}:c;return"service:"+B+"/"+Object.keys(c).sort().map(function(x){return x+":"+c[x]}).join("/")};
fuI=function(B){var c,x,P,Y;B=(c=_.t(B,_.fN))==null?void 0:(x=c.watchEndpointSupportedOnesieConfig)==null?void 0:(P=x.html5PlaybackOnesieConfig)==null?void 0:(Y=P.commonConfig)==null?void 0:Y.url;if(!B)return[];c=new _.ih(B);return c.JSC$8077_domain_?["https://"+c.JSC$8077_domain_+"/generate_204"]:[]};
_.uLI=function(){return iR$()||dpw()||AB7&&O4("version/")?!0:_.v5("EOM_VISITOR_DATA")?!1:!0};
Dfq=function(B){var c=B.docid||B.video_id||B.videoId||B.id;if(c)return c;c=B.raw_player_response;c||(B=B.player_response)&&(c=JSON.parse(B));return c&&c.videoDetails&&c.videoDetails.videoId||null};
rBC=function(B){return B.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Ag=function(B){return!isNaN(Number(B))&&!_.sl(B)};
_.Da=function(B,c,x,P){P=P===void 0?!0:P;var Y=_.v5("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.Dg(window.location.href);g&&Y.push(g);g=_.Dg(B);if(_.Lx(Y,g)||!g&&_.YI(B,"/"))if(Y=document.createElement("a"),IW(Y,B),B=Y.href)if(B=_.SW(B),B=_.uh(B))P&&!c.csn&&(c.itct||c.ved)&&(c=Object.assign({csn:_.Wf()},c)),x?(x=parseInt(x,10),isFinite(x)&&x>0&&Rco(B,c,x)):Rco(B,c)};
BBx=function(B){var c=_.v5("VALID_SESSION_TEMPDATA_DOMAINS",[]),x=_.Dg(window.location.href);x&&c.push(x);x=_.Dg(B);if(!(_.Lx(c,x)||!x&&_.YI(B,"/")))return null;B=_.SW(B);(B=_.uh(B))?(B=ecw(B),B=(B=_.U4.get(B,void 0)||null)?_.H5(B):{}):B=null;return B};
Rco=function(B,c,x){B=ecw(B);c=c?_.bp(c):"";x=x||5;_.uLI()&&_.dr(B,c,x)};
ecw=function(B){for(var c=_.p(crO),x=c.next();!x.done;x=c.next())B=_.rx(B,x.value);return"ST-"+zk(B).toString(36)};
xX7=function(B,c){B.commandMetadata&&_.t(B.commandMetadata,_.Br)&&_.t(B.commandMetadata,_.Br).url&&(B=_.fa(_.t(B.commandMetadata,_.Br).url).adurl)&&_.j1o(B)&&_.Da(_.SW(B),{encoded_ad_playback_context:c})};
_.PMw=function(B){if(B.requestFullscreen)B=B.requestFullscreen(void 0);else if(B.webkitRequestFullscreen)B=B.webkitRequestFullscreen();else if(B.mozRequestFullScreen)B=B.mozRequestFullScreen();else if(B.msRequestFullscreen)B=B.msRequestFullscreen();else if(B.webkitEnterFullscreen)B=B.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return B instanceof Promise?B:Promise.resolve()};
_.xC=function(B){var c;_.l3I(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.cr()==B&&(c=document):c=B;if(c&&(B=_.l3I(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],c))){B.call(c)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.cr=function(){var B=B===void 0?!1:B;var c=_.l3I(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(B)for(;c&&c.shadowRoot;)c=c.shadowRoot.fullscreenElement;return c?c:null};
_.Pr=function(B,c){c=c===void 0?!0:c;B.addEventListener("wheel",YN$);B.overscrollConfig={cooldown:c}};
_.YC=function(B){B.overscrollConfig=void 0;B.removeEventListener("wheel",YN$)};
YN$=function(B){var c=B.deltaY,x=B.target,P=null;if(window.Polymer&&window.Polymer.Element){if(x=B.path||B.composedPath&&B.composedPath()){x=_.p(x);for(var Y=x.next();!Y.done&&(Y=Y.value,!a0l(Y,c));Y=x.next())if(Y.overscrollConfig){P=Y;break}}}else for(;x&&!a0l(x,c);){if(x.overscrollConfig){P=x;break}x=x.parentElement}P&&(c=P.overscrollConfig,c.cooldown?(P=B.deltaY,x=c.lastDeltaY||0,c.lastDeltaY=P,Y=c.lastStopped||0,x&&Y&&x>0==P>0?Math.abs(x)>=Math.abs(P)?(P=Y+1200,x=!1):(P=Y+600,x=!0):(P=Date.now()+
600,x=!0),P>Date.now()&&(B.preventDefault(),x&&(c.lastStopped=Date.now()))):B.preventDefault())};
a0l=function(B,c){return c<0&&B.scrollTop>0||c>0&&B.scrollTop<B.scrollHeight-B.clientHeight-1?(B=getComputedStyle(B).overflowY,B=="auto"||B=="scroll"):!1};
_.aJ=function(B,c,x,P){P||(P={bubbles:!0,cancelable:!1,composed:!0});x!==null&&x!==void 0&&(P.detail=x);var Y=new CustomEvent(c,P);_.T("untrack_fire_custom_event_killswitch")?B.dispatchEvent(Y):XS(function(){return void B.dispatchEvent(Y)});
return Y};
_.gj=function(B,c,x,P){c=new gf$(c,!(P===void 0||!P),x);_.aJ(B,"yt-action",c);return c.returnValue};
_.sp=function(B,c,x){return _.gj(B,c,x,!0)};
_.pW=function(B,c,x){return _.gj(B,c,x)[0]};
_.XX=function(B,c,x,P){c&&c.length&&c.forEach(function(Y){var g=JXq(Y);g&&(_.T("handle_service_request_actions")&&Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.sendPost?_.kC(x?x:B,[Y]):_.sp(B,g,[Y,x,P]))})};
_.kC=function(B,c){var x=[B];c&&x.push.apply(x,c);c=_.gj(B,"yt-service-request",x);return c.length>0&&(c=c[0],_.aJ(B,"yt-service-request-sent",c),c&&c.ajaxPromise)?(c.ajaxPromise.then(function(P){_.aJ(B,"yt-service-request-completed",P)},function(P){_.aJ(B,"yt-service-request-error",{error:P,
params:x})},B),c.ajaxPromise):_.$C()};
_.bg=function(B,c){if(_.T("handle_service_request_actions"))_.XX(c,B,c);else{B=_.p(B);for(var x=B.next();!x.done;x=B.next()){x=x.value;var P=void 0;((P=_.t(x,_.nW))==null?0:P.commands)?_.bg(_.t(x,_.nW).commands,c):(P=void 0,((P=_.t(x,_.KW))==null?0:P.actions)?_.bg(_.t(x,_.KW).actions,c):(P=void 0,((P=_.t(x.commandMetadata,_.Br))==null?0:P.sendPost)?_.kC(c,[x]):_.XX(c,[x],c)))}}};
_.p_C=function(B,c,x){c=c===void 0?{}:c;typeof c==="function"&&(c={callback:c});x||c._c&&c._c.jsl&&c._c.jsl.h||_.wW.extend(c,{_c:{jsl:{h:_.v5("GAPI_HINT_PARAMS")}}});(c.gapiHintOverride||_.v5("GAPI_HINT_OVERRIDE"))&&(x=_.fa(document.location.href).gapi_jsh)&&_.wW.extend(c,{_c:{jsl:{h:x}}});szq(B,c)};
_.Up=function(B,c,x){c=c===void 0?{}:c;B=(B=B in jc?jc[B]:x)||"";x={};for(var P in c){x={key$jscomp$789:x.key$jscomp$789};x.key$jscomp$789=P;var Y=function(g){return function(){return String(c[g.key$jscomp$789])}}(x);
B=B.replace(new RegExp("\\$\\{"+x.key$jscomp$789+"\\}","gi"),Y);B=B.replace(new RegExp("\\$"+x.key$jscomp$789,"gi"),Y)}return B};
_.dj=function(B,c){return k4I(B in jc?jc[B]:{},c)};
k4I=function(B,c){var x=_.v5("I18N_PLURAL_RULES");x||(x=function(P){return P==1?"one":"other"});
return(B=B["case"+c]||B[x(c)])?B.replace("#",c.toString()):c+""};
nfX=function(B){var c=X_q(B),x=document.getElementById(c),P=x&&vcq(x);P||x&&!P||(x=$XA(B,c,function(){if(!vcq(x)){FsO(x);_.Zrq(c);var Y=_.q9(_.f3l,c);_.pU(Y,0)}}))};
$XA=function(B,c,x){var P=document.createElement("link");P.id=c;P.onload=function(){x&&setTimeout(x,0)};
B=_.ID(B);_.Ha(P,B,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(P);return P};
X_q=function(B){var c=_.df("A");IW(c,K6(B));return"css-"+zk(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.KtX=function(B){var c=bO7();B!==c&&(c=_.CW(),!_.T("web_autonav_allow_off_by_default")&&B||_.hi(0,141,!0),_.hi(0,140,!B),c.save())};
bO7=function(){var B=_.CW();return _.T("web_autonav_allow_off_by_default")&&!B.getFlag(141)&&_.v5("AUTONAV_OFF_BY_DEFAULT")?!1:!B.getFlag(140)};
jz$=function(B,c){var x,P;B=((x=B.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=x.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(x=0;x<B.length;++x)if(B[x].scope===c)return B[x].token||void 0};
UX$=function(B){for(var c=0,x=0;x<B.length;x++)c=c*31+B.charCodeAt(x),x<B.length-1&&(c%=0x800000000000);return c%1E5};
_.m5=function(B){return _.Gu("ytcsi."+(B||"")+"data_")||dXQ(B)};
_.qN$=function(B){B=_.m5(B);B.metadata||(B.metadata={});return B.metadata};
_.CMX=function(B){B=_.m5(B);B.tick||(B.tick={});return B.tick};
_.Tq=function(B){B=_.m5(B);if(B.gel){var c=B.gel;c.gelInfos||(c.gelInfos={});c.gelTicks||(c.gelTicks={})}else B.gel={gelTicks:{},gelInfos:{}};return B.gel};
_.hBq=function(B){B=_.Tq(B);B.gelInfos||(B.gelInfos={});return B.gelInfos};
mX7=function(B){var c=_.m5(B).nonce;c||(c=Np(16),_.m5(B).nonce=c);return c};
dXQ=function(B){var c={tick:{},info:{}};_.rr("ytcsi."+(B||"")+"data_",c);return c};
TBX=function(){var B=_.Gu("ytcsi.debug");B||(B=[],_.rr("ytcsi.debug",B),_.rr("ytcsi.reference",{}));return B};
_.Vj=function(B){B=B||"";var c=Vmx();if(c[B])return c[B];var x=TBX(),P={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};x.push(P);return c[B]=P};
tmQ=function(B){B=B||"";var c=Vmx();c[B]&&delete c[B];var x=TBX(),P={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};x.push(P);c[B]=P};
Vmx=function(){var B=_.Gu("ytcsi.reference");if(B)return B;TBX();return _.Gu("ytcsi.reference")};
_.NBO=function(B){return w_Q[B]||"LATENCY_ACTION_UNKNOWN"};
l0O=function(B,c,x){x=x===void 0?{}:x;var P=!1;_.zu("ytLoggingEventsDefaultDisabled",!1)&&(P=!0);P=P?null:IG;x=x===void 0?{}:x;var Y=Math.round(x.timestamp||(0,_.BA)());_.mD(c,1,Y<Number.MAX_SAFE_INTEGER?Y:0);Y=new I0d;if(x.lact)_.mD(Y,1,isFinite(x.lact)?x.lact:-1);else if(x.timestamp)_.mD(Y,1,-1);else{var g=_.co();_.mD(Y,1,isFinite(g)?g:-1)}if(x.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")){g=x.sequenceGroup;var k=x_7(g),n=new Jrl;_.mD(n,2,k);_.dW(n,1,g);_.Pa(Y,3,n);x.endOfSequence&&delete WtC[x.sequenceGroup]}_.Pa(c,
33,Y);(x.sendIsolatedPayload?pWQ:kZw)(B,{endpoint:"log_event",payload:c,cttAuthInfo:x.cttAuthInfo,dangerousLogToVisitorSession:x.dangerousLogToVisitorSession},P)};
_.wj=function(){return(_.T("csi_use_time_origin")||_.T("csi_use_time_origin_tvhtml5"))&&_.ti.timeOrigin?Math.floor(_.ti.timeOrigin):_.ti.timing.navigationStart};
_.Efl=function(B,c){_.N9("_start",B,c)};
_.IJ=function(B,c){if(!_.T("web_csi_action_sampling_enabled")||!_.m5(c).actionDisabled){var x=_.Vj(c||"");_.os(x.info,B);B.loadType&&(x=B.loadType,_.qN$(c).loadType=x);_.os(_.hBq(c),B);x=mX7(c);c=_.m5(c).cttAuthInfo;OOx().info(B,x,c)}};
ofq=function(){var B,c,x,P;return((P=_.cp().resolve(_.Bp(tP))==null?void 0:(B=cX7())==null?void 0:(c=B.loggingHotConfig)==null?void 0:(x=c.csiConfig)==null?void 0:x.debugTicks)!=null?P:[]).map(function(Y){return Object.values(Y)[0]})};
_.N9=function(B,c,x){if(!_.T("web_csi_action_sampling_enabled")||!_.m5(x).actionDisabled){var P=mX7(x),Y;if(Y=_.T("web_csi_debug_sample_enabled")&&P){(_.cp().resolve(_.Bp(tP))==null?0:cX7())&&!QzA&&(QzA=!0,_.N9("gcfl",(0,_.BA)(),x));var g,k,n;Y=(_.cp().resolve(_.Bp(tP))==null?void 0:(g=cX7())==null?void 0:(k=g.loggingHotConfig)==null?void 0:(n=k.csiConfig)==null?void 0:n.debugSampleWeight)||0;if(g=Y!==0)b:{g=ofq();if(g.length>0)for(k=0;k<g.length;k++)if(B===g[k]){g=!0;break b}g=!1}g?(Y=UX$(P)%Y!==
0,_.m5(x).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=Y,_.IJ(g,x)),_.m5(x).debugTicksExcludedLogged=!0):Y=!1}if(!Y){B[0]!=="_"&&FtO(B,x,c);Y=_.Vj(x||"");Y.tick[B]=c||(0,_.BA)();if(Y.callback&&Y.callback[B])for(Y=_.p(Y.callback[B]),g=Y.next();!g.done;g=Y.next())g=g.value,g();Y=_.Tq(x);Y.gelTicks&&(Y.gelTicks[B]=!0);g=_.CMX(x);Y=c||(0,_.BA)();_.T("log_repeated_ytcsi_ticks")?B in g||(g[B]=Y):g[B]=Y;g=_.m5(x).cttAuthInfo;B==="_start"?OOx().baseline(P,c,g):OOx().tick(B,P,c,g);_.vfx(x);return Y}}};
FtO=function(B,c,x){if(_.ti.mark)if(B.startsWith("mark_")||(B="mark_"+B),c&&(B+=" ("+c+")"),x===void 0||_.T("web_csi_disable_alt_time_performance_mark"))_.ti.mark(B);else{x=_.T("csi_use_performance_navigation_timing")?x-_.ti.timeOrigin:x-(_.ti.timeOrigin||_.ti.timing.navigationStart);try{_.ti.mark(B,{startTime:x})}catch(P){}}};
zBx=function(){var B,c=(B=_.ti.getEntriesByType)==null?void 0:B.call(_.ti,"mark");c&&c.forEach(function(x){if(x.name.startsWith("mark_")){var P;(P=_.ti.clearMarks)==null||P.call(_.ti,x.name)}})};
_.SNX=function(){switch(Wz7()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.yrO=function(B){var c={},x=function(g,k,n){k=k.match("_rid")?k.split("_rid")[0]:k;typeof n==="number"&&(n=JSON.stringify(n));g.requestIds?g.requestIds.push({endpoint:k,id:n}):g.requestIds=[{endpoint:k,id:n}]};
B=_.p(Object.entries(B));for(var P=B.next();!P.done;P=B.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;switch(P){case "GetBrowse_rid":x(c,P,Y);break;case "GetGuide_rid":x(c,P,Y);break;case "GetHome_rid":x(c,P,Y);break;case "GetPlayer_rid":x(c,P,Y);break;case "GetSearch_rid":x(c,P,Y);break;case "GetSettings_rid":x(c,P,Y);break;case "GetTrending_rid":x(c,P,Y);break;case "GetWatchNext_rid":x(c,P,Y);break;case "yt_red":c.isRedSubscriber=!!Y;break;case "yt_ad":c.isMonetized=!!Y}}return c};
Mm7=function(B,c,x,P,Y,g){if(!_.T("web_csi_action_sampling_enabled")||!_.m5(g).actionDisabled){var k=_.Tq(g);if(k.gelSpans)k.gelSpans[B]=!0;else{var n={};k.gelSpans=(n[B]=!0,n)}G4q++;B={spanName:B,spanLengthUsec:String(Math.round(c*1E3)),spanNonce:G4q};P&&(B.spanInfo=P);Y&&(B.parentSpanNonce=Y);x&&(B.spanStartTimeUsec=String(Math.round(x*1E3)));_.Vj(g||"").span[String(B.spanName)]=B;x=_.Tq(g);x.gelSpans||(x.gelSpans={});_.os(x.gelSpans,B);x=mX7(g);g=_.m5(g).cttAuthInfo;OOx().span(B,x,g);return B.spanNonce}};
_.Ltl=function(B){var c=_.Ji("aft",B);if(c)return c;c=_.v5((B||"")+"TIMING_AFT_KEYS",["ol"]);for(var x=c.length,P=0;P<x;P++){var Y=_.Ji(c[P],B);if(Y)return Y}return NaN};
_.ZOA=function(B,c){_.rr("ytglobal.timing"+(c||"")+"ready_",B)};
_.Ji=function(B,c){if(B=_.CMX(c)[B])return typeof B==="number"?B:B[B.length-1]};
_.vfx=function(B){var c=_.Ji("_start",B),x=_.Ltl(B),P=!HOC;c&&x&&P&&(PGX(f0Q,new iOA(Math.round(x-c),B)),HOC=!0)};
ufQ=function(B){dXQ(B);Ar7();zBx();B||(_.v5("TIMING_ACTION")&&_.FP("PREVIOUS_ACTION",_.v5("TIMING_ACTION")),_.FP("TIMING_ACTION",""))};
_.DXI=function(B){B=B===void 0?{}:B;_.ya(function(){Wr();tmQ();ufQ();_.ZOA(!1);B.cttAuthInfo&&(_.m5().cttAuthInfo=B.cttAuthInfo);_.FP("TIMING_AFT_KEYS",[]);B.isHot?_.lg({loadType:"hot"}):_.lg({loadType:"warm"});_.FP("TIMING_ACTION","");delete _.v5("TIMING_INFO",{}).yt_lt;_.ya(_.Efl)(B.startTime,void 0)})()};
_.Ep=function(B,c,x,P){c=c===void 0?{}:c;_.ya(function(){var Y=x?x:B;rr$(Y);var g=c.sampleRate;if(!_.T("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var k=mX7(Y);g=UX$(k)%g!==0}g&&(_.m5(Y).actionDisabled=!0);_.Vj(Y||"").info.actionType=B;c.cttAuthInfo&&(_.m5(Y).cttAuthInfo=c.cttAuthInfo);_.FP(Y+"TIMING_ACTION",B);_.ya(_.Efl)(c.startTime,Y);g={actionType:P||_.NBO(B)};c.logPreviousAction&&(g.previousAction=_.NBO(_.v5("TIMING_ACTION")));(k=_.Wf())&&k!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
k);_.lg(g,Y);_.ZOA(!0,Y)})()};
rr$=function(B){_.ya(function(){Wr(B);tmQ(B);ufQ(B)})()};
RB7=function(){_.ya(function(){var B=[],c;for(c in _.Gu("ytcsi.".slice(0,-1)))c.endsWith("data_")&&B.push(c.slice(0,-5));B=_.p(B);for(c=B.next();!c.done;c=B.next())rr$(c.value);Wr()})()};
_.BRY=function(B){return _.ya(function(){return _.eBx("_start",B)})()};
_.lg=function(B,c,x){_.ya(_.IJ)(B,c,x===void 0?!1:x)};
_.Op=function(B,c,x){return _.ya(_.N9)(B,c,x)};
_.eBx=function(B,c){return _.ya(function(){var x=_.CMX(c);return B in x})()};
xc7=function(B){if(!_.T("universal_csi_network_ticks"))return"";B=_.$u(B)||"";for(var c=Object.keys(cZq),x=0;x<c.length;x++){var P=c[x];if(B.includes(P))return P}return""};
YhY=function(B){if(!_.T("universal_csi_network_ticks"))return function(){};
var c=cZq[B];return c?(_.oJ(c),function(){var x=_.T("universal_csi_network_ticks")?(x=PYd[B])?_.oJ(x):!1:!1;return x}):function(){}};
_.oJ=function(B,c,x){return _.ya(function(){if(_.eBx(B,x))return!1;_.Op(B,c,x);return!0})()};
_.Qj=function(B,c,x){_.ya(function(){if(!_.BRY(x)||_.eBx(B,x))return!1;_.Op(B,c,x);return!0})()};
_.FX=function(B){return _.ya(_.Ji)(B,void 0)};
Wr=function(B){_.BRY(B)&&_.Op("aa",void 0,B)};
_.kxO=function(B,c,x,P,Y,g,k,n,b){var d=aWC();n=new _.Is({veType:c,youtubeData:g,jspbYoutubeData:n});g=vr({},d);Y&&(g.cttAuthInfo=Y);Y={csn:d,pageVe:n.getAsJson()};_.T("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(Y.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);x&&x.visualElement?(Y.implicitGesture={parentCsn:x.clientScreenNonce,gesturedVe:x.visualElement.getAsJson()},k&&(Y.implicitGesture.gestureType=k)):x&&_.Ob(new _.mc("newScreen() parent element does not have a VE - rootVe",
c));P&&(Y.cloneCsn=P);B?Na("screenCreated",Y,B,g):_.JP("screenCreated",Y,g);PGX(X3q,new gbd(d));zq.clear();sXl.clear();pLw.clear();return d};
Sc=function(B,c,x,P,Y){XLq(B,c,x,[P],Y===void 0?!1:Y)};
XLq=function(B,c,x,P,Y){Y=Y===void 0?!1:Y;for(var g=vr({cttAuthInfo:lh(c)||void 0},c),k=_.p(P),n=k.next();!n.done;n=k.next()){n=n.value;var b=n.getAsJson();(_.wW.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.Ob(Error("uf"));if(_.T("no_client_ve_attach_unless_shown")){var d=$cX(n,c);if(b.veType&&!sXl.has(d)&&!pLw.has(d)&&!Y){if(!_.T("il_attach_cache_limit")||zq.size<1E3){zq.set(d,[B,c,x,n]);return}_.T("il_attach_cache_limit")&&zq.size>1E3&&_.Ob(new _.mc("IL Attach cache exceeded limit"))}n=$cX(x,c);
zq.has(n)?nbX(x,c):pLw.set(n,!0)}}P=P.filter(function(q){q.csn!==c?(q.csn=c,q=!0):q=!1;return q});
x={csn:c,parentVe:x.getAsJson(),childVes:_.I3(P,function(q){return q.getAsJson()})};
c==="UNDEFINED_CSN"?yj("visualElementAttached",g,x):B?Na("visualElementAttached",x,B,g):_.JP("visualElementAttached",x,g)};
KEO=function(B,c,x,P,Y){bmO(B,c,x,Y)};
bmO=function(B,c,x,P){jX7(x,c);var Y=vr({cttAuthInfo:lh(c)||void 0},c);x={csn:c,ve:x.getAsJson(),eventType:1};P&&(x.clientData=P);c==="UNDEFINED_CSN"?yj("visualElementShown",Y,x):B?Na("visualElementShown",x,B,Y):_.JP("visualElementShown",x,Y)};
Uco=function(B,c,x,P){jX7(x,c);var Y=vr({cttAuthInfo:lh(c)||void 0},c);x={csn:c,ve:x.getAsJson(),eventType:4};P&&(x.clientData=P);c==="UNDEFINED_CSN"?yj("visualElementShown",Y,x):B?Na("visualElementShown",x,B,Y):_.JP("visualElementShown",x,Y)};
dcx=function(B,c,x,P,Y){var g=(P=P===void 0?!1:P)?16:8;P=vr({cttAuthInfo:lh(c)||void 0,endOfSequence:P},c);x={csn:c,ve:x.getAsJson(),eventType:g};Y&&(x.clientData=Y);c==="UNDEFINED_CSN"?yj("visualElementHidden",P,x):B?Na("visualElementHidden",x,B,P):_.JP("visualElementHidden",x,P)};
CYo=function(B,c,x,P,Y){qhq(B,c,x,void 0,P,Y)};
qhq=function(B,c,x,P,Y){jX7(x,c);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=vr({cttAuthInfo:lh(c)||void 0},c);x={csn:c,ve:x.getAsJson(),gestureType:P};Y&&(x.clientData=Y);c==="UNDEFINED_CSN"?yj("visualElementGestured",g,x):B?Na("visualElementGestured",x,B,g):_.JP("visualElementGestured",x,g)};
h5w=function(B,c,x,P){var Y=vr({cttAuthInfo:lh(c)||void 0},c);x={csn:c,ve:x.getAsJson(),clientData:P};c==="UNDEFINED_CSN"?yj("visualElementStateChanged",Y,x):B?Na("visualElementStateChanged",x,B,Y):_.JP("visualElementStateChanged",x,Y)};
mcC=function(){var B=pBX(16);for(var c=[],x=0;x<B.length;x++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(B[x]&63));return c.join("")};
yj=function(B,c,x){TRx.push({payloadName:B,payload:x,jspbPayload:void 0,options:c});VVO||(VVO=nNI())};
k$7=function(B){if(TRx){for(var c=_.p(TRx),x=c.next();!x.done;x=c.next())x=x.value,x.payload&&(x.payload.csn=B.csn,_.JP(x.payloadName,x.payload,x.options));TRx.length=0}VVO=0};
$cX=function(B,c){return""+B.getAsJson().veType+B.getAsJson().veCounter+c};
jX7=function(B,c){if(_.T("no_client_ve_attach_unless_shown")){var x=$cX(B,c);sXl.set(x,!0);nbX(B,c)}};
nbX=function(B,c){B=$cX(B,c);zq.has(B)&&(c=zq.get(B)||[],Sc(c[0],c[1],c[2],c[3],!0),zq.delete(B))};
vr=function(B,c){_.T("log_sequence_info_on_gel_web")&&(B.sequenceGroup=c);return B};
_.Gq=function(B,c,x){_.ya(Sc)(void 0,B,c,x)};
_.M9=function(B,c,x){_.ya(XLq)(void 0,B,c,x)};
_.LW=function(B,c){_.ya(KEO)(void 0,B,c,void 0,void 0,void 0)};
_.Z1=function(B,c,x){_.ya(function(){_.Zg(c,function(P){Uco(void 0,B,P,x)})})()};
_.Hr=function(B,c,x,P){_.ya(function(){_.Zg(c,function(Y){dcx(void 0,B,Y,x,P)})})()};
_.fW=function(B,c,x){_.ya(CYo)(void 0,B,c,x,void 0)};
_.ig=function(B,c,x,P){_.ya(qhq)(void 0,B,c,x,P,void 0)};
_.Ai=function(B,c,x){_.ya(h5w)(void 0,B,c,x,void 0)};
tVQ=function(B,c){ug.set(B,c)};
wLd=function(B){return D1?D1.enabledSpans?!!D1.enabledSpans[B]:!0:!1};
NRA=function(B){if(!D1)throw Error("xf");D1.processors.push(B)};
IWA=function(B,c){if(B){c=c===void 0?1:c;if(B&&(B.endTime=performance.now(),c&&(B.status=c),c=D1)){c=_.p(c.processors);for(var x=c.next();!x.done;x=c.next()){var P=void 0,Y=void 0;(Y=(P=x.value).onSpanEnd)==null||Y.call(P,B)}}if(c=D1){if(B!==c.activeSpan)throw Error("yf");var g;c.activeSpan=(g=c.activeSpan)==null?void 0:g.parent}}};
JZC=function(B,c,x){var P;if((P=D1)&&wLd(B)){var Y=P.nextSpanId++,g=P.activeSpan;B={id:Y,parent:g,name:B,attributes:c,traceId:g?g.traceId:Y,sessionId:P.sessionId,startTime:performance.now(),status:0};if(P.activeSpan){var k;(k=P.activeSpan).children||(k.children=[]);P.activeSpan.children.push(B)}P=_.p(P.processors);for(k=P.next();!k.done;k=P.next())Y=c=void 0,(Y=(c=k.value).onSpanStart)==null||Y.call(c,B);P=B}else P=void 0;B=D1;P=P&&B?B.activeSpan=P:void 0;if(!P)return x();try{var n=x(P);IWA(P);return n}catch(b){throw IWA(P,
2),b;}};
WEY=function(B,c){var x=Object.keys(B);B=new _.mc("[Command Handler] "+c,{filteredCommandNames:x,originalCommand:B});_.lb(B)};
lWx=function(B,c){WEY(B,c+" was called but not set")};
EbI=function(B){return function(){return new B}};
RJ=function(B){return function(){return _.cp().resolve(B)}};
OmI=function(B,c){var x=_.t(B,_.zr);if(x&&(x=c[x.signal]))return x();B=_.p(Object.keys(B));for(x=B.next();!x.done;x=B.next())if(x=x.value,c[x]&&(x=c[x]))return x()};
ec=function(B,c,x,P){return{browseEndpoint:{browseId:B},commandMetadata:{webCommandMetadata:{url:c,rootVe:x,webPageType:P===void 0?"WEB_PAGE_TYPE_BROWSE":P}}}};
obX=function(B,c,x){var P=c=c===void 0?0:c;x=x===void 0?0:x;var Y=x-P;return _.B3(B,"PPSV",void 0,void 0,(Y>600?0:Y<60||x<=0||P/x>.9)?0:c)};
_.B3=function(B,c,x,P,Y){var g="/watch?v="+B;B={videoId:B};c&&(B.playlistId=c,g+="&list="+c);P&&(g+="&pp="+P);Y&&(B.startTimeSeconds=Y,g+="&t="+Y+"s");c={watchEndpoint:B,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};x&&(c.clickTrackingParams=x);P&&(_.t(c,_.fN).playerParams=P);return c};
QXq=function(B){return{browseEndpoint:{browseId:"VL"+B},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+B,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
FE$=function(B){if(B){var c;if(B){var x=(c=_.t(B.commandMetadata,_.Br))==null?void 0:c.url;c=!(!x||x==="/service_ajax")}else c=!1;if(c)return B;var P;if(B=(P=_.t(B,_.nW))==null?void 0:P.commands)for(P=_.p(B),B=P.next();!B.done;B=P.next())if(B=FE$(B.value))return B}};
_.c3=function(B){return{runs:[{text:B}]}};
vbo=function(B,c){return B&&c?{runs:[{text:B,navigationEndpoint:c}]}:void 0};
xN=function(B){return B?_.c3(B):void 0};
_.P3=function(B){return B?{simpleText:B}:void 0};
_.YN=function(B){var c=B.type;B=B.payload;c={type:c};B!==void 0&&(c.payload=B);return c};
z5I=function(B,c,x){for(var P=Object.assign({},B),Y=_.p(Object.keys(c)),g=Y.next();!g.done;g=Y.next()){g=g.value;var k=B[g],n=c[g];if(n===void 0)delete P[g];else if(k===void 0)P[g]=n;else if(Array.isArray(n)&&Array.isArray(k))P[g]=x?[].concat(_.wq(k),_.wq(n)):n;else if(!Array.isArray(n)&&_.xF(n)&&!Array.isArray(k)&&_.xF(k))P[g]=z5I(k,n,x);else if(typeof n===typeof k)P[g]=n;else return c=new _.mc("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:k,updateValue:n}),
_.lb(c),B}return P};
Gxx=function(B){if(!B.length)return"";try{if(Shd)return Shd.decode(B);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(B)}catch(k){}for(var c=0,x=[],P=B.length;c<P;){for(var Y=0;Y<1024&&c<P;){var g=B[c++];if(g<128)yZO[Y++]=g;else{if(g<224)g=(g&31)<<6|B[c++]&63;else if(g<240)g=(g&15)<<12|(B[c++]&63)<<6|B[c++]&63;else{if(Y+1===1024){--c;break}g=(g&7)<<18|(B[c++]&63)<<12|(B[c++]&63)<<6|B[c++]&63;g-=65536;yZO[Y++]=55296|g>>10;g=56320|g&1023}yZO[Y++]=g}}g=String.fromCharCode.apply(String,
yZO);Y<1024&&(g=g.substring(0,Y));x.push(g)}return x.join("")};
LEC=function(B,c){var x;if((x=MVO)==null?0:x.encodeInto)return c=MVO.encodeInto(B,c),c.read<B.length?B.length*4:c.written;for(var P=x=0;P<B.length;P++){var Y=B.charCodeAt(P);Y<128?c[x++]=Y:(Y<2048?c[x++]=Y>>6|192:((Y&64512)===55296&&P+1<B.length&&(B.charCodeAt(P+1)&64512)===56320?(Y=65536+((Y&1023)<<10)+(B.charCodeAt(++P)&1023),c[x++]=Y>>18|240,c[x++]=Y>>12&63|128):c[x++]=Y>>12|224,c[x++]=Y>>6&63|128),c[x++]=Y&63|128)}return x};
ZmO=function(B,c){B=new Uint8Array(B);c&&B.set(c);return B};
_.gL=function(B){B=new Hmq(new fWQ([_.kF(decodeURIComponent(B))]));if(imC(B,2)){var c=aw(B);var x=B.pos;var P=B.arrayView;x=x===void 0?0:x;var Y=c===void 0?-1:c;x=x===void 0?0:x;Y=Y===void 0?-1:Y;if(P.totalLength&&Y){Y<0&&(Y=P.totalLength-x);P.focus(x);if(!(x-P.arrayPos+Y<=P.arrays[P.arrayIdx].length)){var g=P.arrayIdx,k=P.arrayPos;P.focus(x+Y-1);k=new Uint8Array(P.arrayPos+P.arrays[P.arrayIdx].length-k);for(var n=0,b=g;b<=P.arrayIdx;b++)k.set(P.arrays[b],n),n+=P.arrays[b].length;P.arrays.splice(g,
P.arrayIdx-g+1,k);P.arrayIdx=0;P.arrayPos=0;P.focus(x)}g=P.arrays[P.arrayIdx];P=new DataView(g.buffer,g.byteOffset+x-P.arrayPos,Y)}else P=new DataView(new ArrayBuffer(0));P=new Uint8Array(P.buffer,P.byteOffset,P.byteLength);B.pos+=c;c=P}else c=void 0;c=c?Gxx(c):void 0;B=imC(B,4)?aw(B):void 0;P=AZ$[B];if(typeof P==="undefined")throw B=new _.mc("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:B}),_.lb(B),B;return{entityTypeFieldNumber:B,entityType:P,entityId:c}};
_.kN=function(B,c,x){x=x===void 0?0:x;var P=new uHQ;if(MVO)B=MVO.encode(B);else{var Y=new Uint8Array(Math.ceil(B.length*1.2)),g=LEC(B,Y);Y.length<g&&(Y=new Uint8Array(g),g=LEC(B,Y));Y.length>g&&(Y=Y.subarray(0,g));B=Y}B!==void 0&&(sv(P,18),Y=B.length,sv(P,Y),pk(P,Y),P.buf.set(B,P.pos),P.pos+=Y);B=DcA[c];if(typeof B==="undefined")throw x=new _.mc("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:c}),_.lb(x),x;B!==void 0&&(sv(P,32),sv(P,B));sv(P,40);sv(P,1);c=new Uint8Array(P.buf.buffer,
P.buf.byteOffset,P.pos);return encodeURIComponent(_.PN(c,x))};
rZO=function(B){B=B.key||B.id;if(!B)throw Error("zf");return B};
e57=function(B,c){B=B===void 0?{}:B;return R5w(B,c)};
B77=function(B,c,x,P){if(P===void 0)return P=Object.assign({},B[c]||{}),x=(delete P[x],P),P={},Object.assign({},B,(P[c]=x,P));var Y={},g={};return Object.assign({},B,(g[c]=Object.assign({},B[c],(Y[x]=P,Y)),g))};
cU7=function(B,c,x,P,Y){var g=B[c];if(g==null||!g[x])return B;P=z5I(g[x],P,Y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Y={};g={};return Object.assign({},B,(g[c]=Object.assign({},B[c],(Y[x]=P,Y)),g))};
_.X9=function(B,c,x){return B[c]?B[c][x]||null:null};
P9d=function(){if(xlQ)return xlQ();var B={};xlQ=eR("PersistentEntityStoreDb",{objectStores:(B.EntityStore={addedAtVersion:1},B.EntityAssociationStore={addedAtVersion:2},B),shared:!1,upgrade:function(c,x){x(1)&&yx(Sl(c,"EntityStore",{keyPath:"key"}),"entityType","entityType");x(2)&&(c=Sl(c,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),yx(c,"byParentEntityKey","parentEntityKey"),yx(c,"byChildEntityKey","childEntityKey"))},
version:3});return xlQ()};
Y5$=function(B){return _.LU(P9d(),B)};
$N=function(B){return window.Int32Array?new Int32Array(B):Array(B)};
gvl=function(B){return _.LU(aEl(),B)};
s8C=function(B){return new nk("WRONG_DATA_TYPE",{encoderVersion:B})};
p6Q=function(B){return B instanceof Error?new nk("UNKNOWN_ENCODE_ERROR",{originalMessage:B.message}):new nk("UNKNOWN_ENCODE_ERROR")};
kg7=function(B){return B instanceof Error?new nk("UNKNOWN_DECODE_ERROR",{originalMessage:B.message}):new nk("UNKNOWN_DECODE_ERROR")};
X6Q=function(B,c){B=B instanceof nk?B:c(B);_.lb(B);throw B;};
$lw=function(B){B=(new TextEncoder).encode(B).subarray(0,16);var c=new Uint8Array(16);c.set(B);return c};
bgY=function(B){var c=nvI[B];if(c)return c;_.Ob(new _.mc("Entity model not found.",{entityType:B}))};
_.bG=function(){K0C||(K0C=j8I());return K0C};
j8I=function(){var B,c,x;return _.X(function(P){if(P.nextAddress==1)return _.kM(P,2),_.K(P,_.RH(),4);if(P.nextAddress!=2){B=P.yieldResult;if(!B||!_.hK()||typeof _.xI.BroadcastChannel==="undefined")return P.return();c=new Ul7;return P.return(new Kk(B,c))}x=_.be(P);x instanceof Error&&_.lb(x);return P.return()})};
_.jB=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1){x=B.mutations;if(!x||x.length<=0)return P.return();c&&c.dispatch(_.YN({type:"ENTITY_LOADED",payload:x}));return _.K(P,dl$(x),2)}x.length=0;_.Kq(P)})};
dl$=function(B){var c;return _.X(function(x){return x.nextAddress==1?_.K(x,_.bG(),2):(c=x.yieldResult)?_.K(x,_.Uv(c,"readwrite",function(P){for(var Y={},g=_.p(B),k=g.next(),n={};!k.done;n={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},k=g.next())n.mutation$jscomp$4=k.value,n.mutation$jscomp$4.entityKey&&q5A(n.mutation$jscomp$4)&&(n.mutationEntityType$jscomp$3=(0,_.wW.getAnyKey)(n.mutation$jscomp$4.payload),k=void 0,n.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(k=function(b){return function(){return _.C9X(P,
b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(n)),n.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(k=function(b){return function(){return h3w(P,b.mutation$jscomp$4.entityKey)}}(n)),n.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(k=function(b){return function(){return mlY(P,b.mutation$jscomp$4.entityKey,b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(n)),k&&(Y[n.mutation$jscomp$4.entityKey]=
Y[n.mutation$jscomp$4.entityKey]?Y[n.mutation$jscomp$4.entityKey].then(k):k()));
return vp.all(Object.values(Y))}),0):x.return()})};
q5A=function(B){var c;B=(c=B.options)==null?void 0:c.persistenceOption;return B==="ENTITY_PERSISTENCE_OPTION_PERSIST"||B==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
tEX=function(B,c){var x,P;_.X(function(Y){if(Y.nextAddress==1)return _.K(Y,_.bG(),2);if(Y.nextAddress!=3)return(x=Y.yieldResult)?_.K(Y,_.Uv(x,"readonly",function(g){var k={},n=Object.keys(c).map(function(b){var d=c[b]?[].concat(_.wq(c[b])):[];return T77(g,b,d,k)});
return vp.all(n).then(function(){return k})}),3):Y.return();
P=Y.yieldResult;Object.keys(P).length>0&&B.dispatch(VEI(P));_.Kq(Y)})};
T77=function(B,c,x,P){return dL(B,c,x).then(function(Y){P[c]=w6x(x,Y)})};
w6x=function(B,c){if(c.length!==B.length)throw Error("Cf");return c.reduce(function(x,P,Y){x[B[Y]]=P;return x},{})};
JUQ=function(B){var c=B.filter(function(Y){var g;return(Y==null?void 0:(g=Y.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,x=B.filter(function(Y){var g;
return(Y==null?void 0:(g=Y.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,P=B.filter(function(Y){var g;
return(Y==null?void 0:(g=Y.transferEntity)==null?void 0:g.transferState)&&N7q.includes(Y.transferEntity.transferState)});
if(!(c||P!=null&&P.length))return 0;c=_.IEQ(P)+c;B=B.length-x;return B===0?0:Math.round(c*100/B)/100};
_.IEQ=function(B){var c=[];c=c.concat.apply(c,_.wq(B.filter(function(g){return g.streamEntity}).map(function(g){var k=Object.assign({},g.streamEntity),n,b=(n=g.transferEntity)==null?void 0:n.transferState;
k.streamsProgress=k.streamsProgress||[];k.streamsProgress=k.streamsProgress.map(function(d){var q=Object.assign({},d);q.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded;return q});
return k}).map(function(g){return g.streamsProgress})));
var x=B=0;c=_.p(c);for(var P=c.next();!P.done;P=c.next()){var Y=P.value;P=Number(Y.numBytesDownloaded);Y=Number(Y.numTotalBytes);x+=isNaN(P)?0:P;B+=isNaN(Y)?0:Y}return B===0?0:Math.round(x*100/B)/100};
W0A=function(B){if(!B||!B.expirationTimestamp||!B.action)return!1;var c=(0,_.BA)()/1E3;return Number(B.expirationTimestamp)>=c};
qZ=function(B){return B&&B.expirationTimestamp&&B.action?W0A(B)&&B.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Ck=function(B){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(B||"TRANSFER_STATE_UNKNOWN")};
lE7=function(B){var c=new uHQ;if(B!==void 0){var x=Math.ceil(Math.log2(B.length*4+2)/7);x=x===void 0?2:x;sv(c,10);c.submessagePosStack.push(c.pos);c.submessagePosStack.push(x);c.pos+=x;pk(c,B.length*1.2);x=LEC(B,c.buf.subarray(c.pos));c.pos+x>c.buf.length&&(pk(c,x),x=LEC(B,c.buf.subarray(c.pos)));c.pos+=x;B=c.submessagePosStack.pop();x=c.submessagePosStack.pop();for(var P=c.pos-x-B;B--;){var Y=B?128:0;c.view.setUint8(x++,P&127|Y);P>>=7}}c=new Uint8Array(c.buf.buffer,c.buf.byteOffset,c.pos);return(new TextDecoder("utf-8")).decode(c)};
_.hm=function(B){var c=0;B=_.p(B);for(var x=B.next(),P={};!x.done;P={transferState$jscomp$3:void 0},x=B.next()){var Y=x.value,g=void 0;x=(g=Y.streamEntity)!=null?g:{};g=void 0;P.transferState$jscomp$3=(g=Y.transferEntity)==null?void 0:g.transferState;g=Y=void 0;((Y=x)==null?0:(g=Y.streamsProgress)==null?0:g.length)&&x.streamsProgress.forEach(function(k){return function(n){n=Number(k.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?n.numTotalBytes:n.numBytesDownloaded);isFinite(n)&&(c+=n)}}(P))}return c};
Ev7=function(B){return B.some(function(c){var x;if(!(c==null?0:(x=c.transferEntity)==null?0:x.transferState)){var P;return!(c==null?0:(P=c.policyEntity)==null?0:P.action)||c.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return N7q.includes(c.transferEntity.transferState)})};
OgI=function(B,c){if(!c)return!1;if(_.T("of_pb_en_po_ks"))return!0;var x;B=(x=_.X9(B,"offlineVideoPolicy",_.kN(c,"offlineVideoPolicy")))!=null?x:void 0;return!!B&&qZ(B)};
_.Q8X=function(B){var c=["TRANSFER_STATE_COMPLETE"];c=c===void 0?ovx:c;return B.filter(function(x){var P,Y;return c.includes((Y=(P=x.transferEntity)==null?void 0:P.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN")})};
F0Q=function(B,c){if(c){var x,P=(x=_.X9(B,"playbackData",_.kN(c,"playbackData")))!=null?x:null,Y;x=(Y=_.X9(B,"transfer",_.kN(c,"transfer")))!=null?Y:null;var g;Y=(g=_.X9(B,"offlineVideoStreams",_.kN(c,"offlineVideoStreams")))!=null?g:null;var k;B=(k=_.X9(B,"offlineVideoPolicy",_.kN(c,"offlineVideoPolicy")))!=null?k:null;if(P||x||Y||B)return{playbackDataEntity:P,transferEntity:x,streamEntity:Y,policyEntity:B}}};
_.mk=function(B){var c=B.playbackData;if(!c)return[];var x=[];c=_.p(Object.keys(c));for(var P=c.next();!P.done;P=c.next()){var Y=P.value;if(!vvo(B,_.gL(Y).entityId)&&(P=F0Q(B,_.gL(Y).entityId))){var g=void 0,k=void 0;Y=(k=Number((g=_.X9(B,"playbackData",Y))==null?void 0:g.streamDownloadTimestampSeconds))!=null?k:(0,_.BA)();x.push({entity:P,streamDownloadTimestamp:Y})}}return x.sort(function(n,b){var d=n.streamDownloadTimestamp,q=b.streamDownloadTimestamp;return q===d?n.entity.streamEntity&&!b.entity.streamEntity?
1:-1:q-d}).map(function(n){return n.entity})};
z3x=function(B){return _.Q8X(_.mk(B))};
_.S5I=function(B){return _.mk(B).filter(function(c){var x;if(((x=c.policyEntity)==null?0:x.action)&&c.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var P;if((P=c.transferEntity)==null?0:P.transferState){var Y;return N7q.includes((Y=c.transferEntity)==null?void 0:Y.transferState)}return!0})};
vvo=function(B,c){var x;return((x=_.X9(B,"downloadStatusEntity",_.kN(c,"downloadStatusEntity")))==null?void 0:x.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
yU7=function(B){var c;if(B==null?0:(c=B.playbackDataEntity)==null?0:c.key)return _.gL(B.playbackDataEntity.key).entityId;var x;if(B==null?0:(x=B.transferEntity)==null?0:x.key)return _.gL(B.transferEntity.key).entityId;var P;if(B==null?0:(P=B.streamEntity)==null?0:P.key)return _.gL(B.streamEntity.key).entityId;var Y;if(B==null?0:(Y=B.policyEntity)==null?0:Y.key)return _.gL(B.policyEntity.key).entityId};
qcd=function(B){var c=new Set,x;B=(x=B.mainDownloadsListEntity)==null?void 0:x[GgQ];var P;if(!(B==null?0:(P=B.downloads)==null?0:P.length))return c;var Y;B==null||(Y=B.downloads)==null||Y.forEach(function(g){(g==null?0:g.videoItem)&&c.add(g.videoItem)});
return c};
T$=function(B,c){if(c){var x=_.X9(B,"mainVideoEntity",_.kN(c,"mainVideoEntity")),P=_.X9(B,"downloadStatusEntity",_.kN(c,"downloadStatusEntity")),Y=_.X9(B,"ytMainChannelEntity",_.kN(c,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};B=F0Q(B,c);P=(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.T("woffle_render_failed_download_state_ks")&&(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_FAILED";!B&&P&&(B=g);if(B&&x&&
Y)return Object.assign({},{videoEntity:x,channelEntity:Y},B)}};
h7I=function(B,c){return Ci7(B,c)==="TRANSFER_STATE_COMPLETE"&&OgI(B,c)};
mkO=function(B,c){if(!c)return!1;var x;B=(x=_.X9(B,"playbackData",_.kN(c,"playbackData")))!=null?x:void 0;return!!B&&!!B.playerResponseJson};
Ci7=function(B,c){if(!c)return"TRANSFER_STATE_UNKNOWN";var x=_.X9(B,"transfer",_.kN(c,"transfer"));if(x){var P;return(P=x.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}x=_.X9(B,"offlineOrchestrationActionWrapperEntity",_.kN(c,"offlineOrchestrationActionWrapperEntity"));B=_.X9(B,"mainVideoEntity",_.kN(c,"mainVideoEntity"));return x||B?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Tyl=function(B,c){if(!c)return"TRANSFER_STATE_UNKNOWN";if(B=_.X9(B,"transfer",_.kN(c,"transfer"))){var x;return(x=B.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
VgY=function(B,c){return c&&(B=_.X9(B,"videoPlaybackPositionEntity",_.kN(c,"videoPlaybackPositionEntity")),B==null?0:B.lastPlaybackPositionSeconds)?Number(B.lastPlaybackPositionSeconds):0};
wbq=function(B,c){return tgO(B).some(function(x){var P;return(x==null?void 0:(P=x.mainPlaylistEntity)==null?void 0:P.playlistId)===c})};
Iyl=function(B,c,x){var P=NyA(B,c);if(!P.length)return[];c=[];P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next()){Y=Y.value;var g=T$(B,Y);x&&Ci7(B,Y)!=="TRANSFER_STATE_COMPLETE"||g&&c.push(g)}return c};
NyA=function(B,c){if(!c)return[];var x=_.kN(c,"mainPlaylistEntity"),P;c=(P=B.mainPlaylistEntity)==null?void 0:P[x];P=[];if(c==null||!c.videos)return P;c=_.p(c.videos);for(x=c.next();!x.done;x=c.next()){x=x.value;var Y=void 0,g=void 0,k=void 0,n=(Y=B)==null?void 0:(g=Y.mainPlaylistVideoEntity)==null?void 0:(k=g[x])==null?void 0:k.video;n&&(x=_.gL(n).entityId)&&P.push(x)}return P};
J4C=function(B,c){if(c){var x=_.X9(B,"mainPlaylistEntity",_.kN(c,"mainPlaylistEntity")),P=_.X9(B,"mainPlaylistDownloadStateEntity",_.kN(c,"mainPlaylistDownloadStateEntity"));B=_.X9(B,"ytMainChannelEntity",_.kN(c,"ytMainChannelEntity"));if(P&&x)return Object.assign({},{mainPlaylistEntity:x,mainPlaylistDownloadStateEntity:P},!!B&&{channelEntity:B})}};
tgO=function(B){return Wal(B).sort(function(c,x){return x.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedPlaylistEntities})};
Wal=function(B){var c=B.mainPlaylistDownloadStateEntity,x=[];if(!c)return x;for(var P=_.p(Object.keys(c)),Y=P.next();!Y.done;Y=P.next()){var g=Y.value;Y=J4C(B,_.gL(g).entityId);var k=void 0;g=Number((k=c[g])==null?void 0:k.addedTimestampMillis);k=isNaN(g)?(0,_.BA)():g;Y!==void 0&&x.push({downloadedPlaylistEntities:Y,addedTimestampMillis:k})}return x};
lyI=function(B){var c,x=(c=B.mainPlaylistVideoEntity)!=null?c:{};return new Set(tgO(B).reduce(function(P,Y){P=P===void 0?[]:P;var g,k;Y==null||(g=Y.mainPlaylistEntity)==null||(k=g.videos)==null||k.forEach(function(n){var b;(n=(b=x[n])==null?void 0:b.video)&&P.push(n)});
return P},[]))};
EYA=function(B){return"downloadedMusicPlaylistEntities"in B};
OdA=function(B){return"mainPlaylistEntity"in B&&"mainPlaylistDownloadStateEntity"in B};
oYQ=function(B){return"videoEntity"in B&&"channelEntity"in B};
QIq=function(B){var c=B.musicPlaylistDownloadMetadataEntity,x=[];if(!c)return x;for(var P=_.p(Object.keys(c)),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;a:{var g=B,k=_.gL(Y).entityId;if(k){var n=_.X9(g,"musicPlaylist",_.kN(k,"musicPlaylist"));g=_.X9(g,"musicPlaylistDownloadMetadataEntity",_.kN(k,"musicPlaylistDownloadMetadataEntity"));if(n&&g){n={musicPlaylistEntity:n,musicPlaylistDownloadStateEntity:g};break a}}n=void 0}g=void 0;Y=Number((g=c[Y])==null?void 0:g.addedTimestampMillis);Y=isNaN(Y)?(0,_.BA)():
Y;n!==void 0&&x.push({downloadedMusicPlaylistEntities:n,addedTimestampMillis:Y})}return x};
FaQ=function(B){var c=new Set;B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,"musicPlaylistEntity"in x&&"musicPlaylistDownloadStateEntity"in x){x=_.p(x.musicPlaylistEntity.tracks);for(var P=x.next();!P.done;P=x.next())c.add(P.value)}return c};
vYw=function(B,c){if(c){var x=_.X9(B,"musicTrack",_.kN(c,"musicTrack")),P=_.X9(B,"musicArtist",_.kN(c,"musicArtist"))||{};if((B=F0Q(B,c))&&x&&P)return Object.assign({},{musicTrackEntity:x,musicArtistEntity:P},B)}};
z7d=function(B){var c=B.musicTrackDownloadMetadataEntity,x=[];if(!c)return[];c=_.p(Object.keys(c));for(var P=c.next();!P.done;P=c.next()){var Y=P.value;P=vYw(B,_.gL(Y).entityId);var g=void 0;Y=Number((g=_.X9(B,"musicTrackDownloadMetadataEntity",Y))==null?void 0:g.addedTimestampMillis);g=isNaN(Y)?(0,_.BA)():Y;P!==void 0&&x.push({downloadedMusicEntities:P,addedTimestampMillis:g})}return x};
GVY=function(B,c){if(!c)return[];if(Object.values(Scx).includes(c))return y4I(B,c);c=_.kN(c,"musicPlaylist");var x;B=(x=B.musicPlaylist)==null?void 0:x[c];x=[];if(B==null||!B.tracks)return x;B=_.p(B.tracks);for(c=B.next();!c.done;c=B.next())(c=_.gL(c.value).entityId)&&x.push(c);return x};
y4I=function(B,c){var x=new Set,P=QIq(B).map(function(g){return g.downloadedMusicPlaylistEntities});
P=FaQ(P);P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next())(Y=_.gL(Y.value).entityId)&&x.add(Y);return MgQ(B).downloadedMusicEntities.filter(function(g){var k;if((k=g.musicTrackEntity)!=null&&k.videoId){g=g.musicTrackEntity;if(k=c==="PPOM"?!0:!x.has(g.videoId))b:switch(g=g.musicVideoType,c){case "PPSE":k=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:k=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=k}else g=!1;return g}).map(function(g){var k;
return(k=g.musicTrackEntity)==null?void 0:k.videoId})};
MgQ=function(B){var c=z7d(B).sort(function(x,P){return P.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return"downloadedMusicEntities"in x?x.downloadedMusicEntities:EYA(x)?x.downloadedMusicPlaylistEntities:{}});
B=QIq(B).sort(function(x,P){return P.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return"downloadedMusicEntities"in x?x.downloadedMusicEntities:EYA(x)?x.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:c,downloadedMusicPlaylistEntities:B}};
ZdC=function(B,c){c=_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GVY(B,c):NyA(B,c);if(!c.length)return"TRANSFER_STATE_UNKNOWN";c=c.map(function(x){return Tyl(B,x)});
return LaX(c)};
LaX=function(B){var c=new Set(B);if(c.has("TRANSFER_STATE_FAILED")&&c.size===1)return"TRANSFER_STATE_FAILED";c.delete("TRANSFER_STATE_FAILED");if(c.has("TRANSFER_STATE_UNKNOWN")&&c.size===1)return"TRANSFER_STATE_PRE_TRANSFER";c.delete("TRANSFER_STATE_UNKNOWN");if(c.has("TRANSFER_STATE_PRE_TRANSFER")&&c.size===1||c.size===0)return"TRANSFER_STATE_PRE_TRANSFER";B=c.has("TRANSFER_STATE_TRANSFERRING");c=c.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return B||c?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
VI=function(B){var c=B.mainVideoDownloadStateEntity,x=[];if(!c)return[];c=_.p(Object.keys(c));for(var P=c.next();!P.done;P=c.next()){var Y=P.value;if(!vvo(B,_.gL(Y).entityId)){P=T$(B,_.gL(Y).entityId);var g=void 0,k=void 0;Y=(k=Number((g=_.X9(B,"mainVideoDownloadStateEntity",Y))==null?void 0:g.addedTimestampMillis))!=null?k:(0,_.BA)();P!==void 0&&x.push({downloadedVideoEntities:P,addedTimestampMillis:Y})}}return x};
HdX=function(B){return VI(B).sort(function(c,x){return x.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities})};
_.idx=function(B){var c=lyI(B),x=_.tm(B),P=qcd(B),Y=VI(B).filter(function(k){var n,b;if((k==null?void 0:(n=k.downloadedVideoEntities)==null?void 0:(b=n.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var d,q;k=k==null?void 0:(d=k.downloadedVideoEntities)==null?void 0:(q=d.videoEntity)==null?void 0:q.key;return _.T("kevlar_use_library_entity")?k&&(P.has(k)||x[k]):k&&!c.has(k)}),g=Wal(B).filter(function(k){return ZdC(B,k.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.wq(Y),_.wq(g)).sort(function(k,n){return n.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return fyd(k)})};
A4X=function(B,c){if(c&&OgI(B,c)){var x,P,Y=(P=(x=_.X9(B,"playbackData",_.kN(c,"playbackData")))!=null?x:void 0)==null?void 0:P.playerResponseJson;if(Y){try{var g=JSON.parse(Y);var k=_.X9(B,"transfer",_.kN(c,"transfer")),n=VgY(B,c);n&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+n*1E3}}})}));g.cotn=k==null?void 0:k.cotn}catch(b){}return g}}};
_.Dk$=function(B){var c,x,P;B=(P=(x=((c=B.downloadsPageViewConfigurationEntity)!=null?c:{})[_.wL])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?P:{};var Y;return(Y=_.t(B,uVC))!=null?Y:{}};
_.tm=function(B){var c,x,P;B=(P=(x=((c=B.mainDownloadsListEntity)!=null?c:{})[_.r4I])==null?void 0:x.downloads)!=null?P:[];c={};x=_.p(B);for(P=x.next();!P.done;P=x.next())B=void 0,c[(B=P.value.videoItem)!=null?B:""]=!0;return c};
R7d=function(B){var c=_.tm(B);if(Object.keys(c).length===0)return!1;var x=B.mainVideoEntity;if(!x)return!0;x=_.p(Object.keys(x));for(var P=x.next();!P.done;P=x.next()){P=P.value;var Y=_.gL(P).entityId;if(c[P]&&!vvo(B,Y))return!1}return!0};
_.NZ=function(B){var c=_.tm(B);return VI(B).sort(function(x,P){return x.addedTimestampMillis-P.addedTimestampMillis}).map(function(x){return x.downloadedVideoEntities}).filter(function(x){var P;
return(x=x==null?void 0:(P=x.videoEntity)==null?void 0:P.key)&&!!c[x]})};
fyd=function(B){return"downloadedVideoEntities"in B?B.downloadedVideoEntities:"downloadedPlaylistEntities"in B?B.downloadedPlaylistEntities:{}};
e77=function(B){var c=_.tm(B),x=lyI(B),P=VI(B).filter(function(Y){var g,k;return(Y=Y==null?void 0:(g=Y.downloadedVideoEntities)==null?void 0:(k=g.videoEntity)==null?void 0:k.key)&&!c[Y]&&!x.has(Y)});
B=Wal(B);return[].concat(_.wq(P),_.wq(B)).sort(function(Y,g){return g.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return fyd(Y)})};
_.Iw=function(B){if(!_.T("kevlar_use_library_entity"))return e77(B);var c=VI(B).filter(function(P){var Y,g;if(Y=P=P==null?void 0:(Y=P.downloadedVideoEntities)==null?void 0:(g=Y.videoEntity)==null?void 0:g.key){var k,n,b;Y=((n=(k=B.mainDownloadsListEntity)==null?void 0:k[GgQ])==null?0:(b=n.downloads)==null?0:b.length)?qcd(B).has(P):!1}return Y}),x=Wal(B);
return[].concat(_.wq(c),_.wq(x)).sort(function(P,Y){return Y.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return fyd(P)})};
BJx=function(B){var c=_.tm(B),x=lyI(B);return HdX(B).filter(function(P){var Y;return(P=P==null?void 0:(Y=P.videoEntity)==null?void 0:Y.key)&&!c[P]&&!x.has(P)})};
c3O=function(B){if(!_.T("kevlar_use_library_entity"))return BJx(B);var c=_.tm(B),x=qcd(B);return HdX(B).filter(function(P){var Y;return(P=P==null?void 0:(Y=P.videoEntity)==null?void 0:Y.key)&&!c[P]&&x.has(P)})};
xVo=function(B,c){c=_.kN(c,"settingEntity");var x,P,Y;return!!((Y=(P=((x=B.settingEntity)!=null?x:{})[c])==null?void 0:P.settingOptionValue)!=null?Y:{}).boolValue};
_.Jm=function(B){var c=_.NZ(B);if(Ev7(c))return 0;var x=[];c=_.p(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;var Y=void 0,g=void 0;if((Y=P)==null?0:(g=Y.videoEntity)==null?0:g.key)Y=_.gL(P.videoEntity.key).entityId,P=B,Y=_.kN(Y,"mainVideoDownloadStateEntity"),P=_.X9(P,"mainVideoDownloadStateEntity",Y),(P=Number(P==null?void 0:P.addedTimestampMillis))&&x.push(P)}return Math.max.apply(Math,_.wq(x))};
_.W3=function(B){return B.ui.richGridMiniMode};
_.lG=function(B){return B.ui.richGridItemsPerRow};
_.PaX=function(B){return B.ui.richGridSlimItemsPerRow};
_.YPQ=function(B){return B.ui.guideIsExpanded};
_.Ev=function(B){return B.ui.miniplayerIsActive};
_.aYX=function(B){return B.ui.singleOptionSurveyIsActive};
_.Ov=function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.g5O=function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.sAA=function(B){return B.ui.inlinePreviewIsActive};
_.p7I=function(B){return B.ui.inlinePreviewIsEnabled};
_.k3C=function(B){return B.ui.miniplayerPlaybackState};
ow=function(B){return B.ui.isOnline};
_.X7q=function(B){return B.ui.frostedGlassMode};
_.QI=function(B,c){return Ci7(B.entities,c)};
_.F9=function(B,c){return ZdC(B.entities,c)};
$VQ=function(B,c){var x;if(c){var P;B=(P=_.X9(B.entities,"offlineVideoPolicy",_.kN(c,"offlineVideoPolicy")))==null?void 0:P.action}else B=void 0;return(x=B)!=null?x:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
n5w=function(B,c){var x;c?(B=_.X9(B.entities,"offlineVideoPolicy",_.kN(c,"offlineVideoPolicy")),B=Number(B==null?void 0:B.expirationTimestamp)):B=void 0;return(x=B)!=null?x:0};
_.bVY=function(B){return _.mk(B.entities).length};
KQI=function(B,c){return T$(B.entities,c)};
jAq=function(B,c){return J4C(B.entities,c)};
v3=function(B,c){return(B=T$(B.entities,c))?_.IEQ([B]):0};
_.UV7=function(B,c){var x=_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(x){var P=B.entities;var Y=GVY(P,c);if(Y.length){var g=[];Y=_.p(Y);for(var k=Y.next();!k.done;k=Y.next())(k=vYw(P,k.value))&&g.push(k);P=g}else P=[]}else P=Iyl(B.entities,c);var n;if(x){var b=B.entities;c?(c=_.kN(c,"musicPlaylist"),b=(n=b.musicPlaylist)==null?void 0:n[c],n=b!=null&&b.tracks?b.tracks.length:0):n=0}else n=B.entities,c?(c=_.kN(c,"mainPlaylistEntity"),n=(b=n.mainPlaylistEntity)==null?void 0:b[c],n=n!=null&&n.videos?
n.videos.length:0):n=0;return P.length!==n?0:P?JUQ(P):0};
_.dVq=function(B){return B.download.isLeaderTab};
_.qPY=function(B,c,x){if(!c&&x){var P=B.entities;if(x){var Y=lE7(x),g,k;c=(k=(g=_.X9(P,"offlineabilityEntity",_.kN(Y,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=B.entities,c?(k=lE7(c),c=(Y=(P=_.X9(g,"offlineabilityEntity",_.kN(k,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return c};
Cad=function(B,c){B=B.entities;if(c){c=lE7(c);var x,P;c=(P=(x=_.X9(B,"offlineabilityEntity",_.kN(c,"offlineabilityEntity")))==null?void 0:x.addToOfflineButtonState)!=null?P:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else c="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return c};
_.he7=function(B){var c=B.entities;B=ow(B);var x=xVo(c,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.T("kevlar_modern_downloads_page")&&x)var P=!1;else{var Y,g;c=(g=(Y=((P=c.downloadsPageViewConfigurationEntity)!=null?P:{})[_.wL])==null?void 0:Y.smartDownloadsOptInBannerVisibility)!=null?g:{};P=B?!!c.visibleWithConnection:!!c.visibleWithoutConnection}return P};
_.mVq=function(B){return xVo(B.entities,"SMART_DOWNLOADS_ENABLED")};
_.TJ7=function(B){return R7d(B.entities)};
VPd=function(B){return _.NZ(B.entities).every(function(c){var x;return(c==null?void 0:(x=c.transferEntity)==null?void 0:x.transferState)&&!N7q.includes(c.transferEntity.transferState)})};
_.tPd=function(B,c){return vvo(B.entities,c)};
w7C=function(B,c){if(c){var x,P;B=(P=(x=_.X9(B.entities,"downloadStatusEntity",_.kN(c,"downloadStatusEntity")))==null?void 0:x.downloadState)!=null?P:"DOWNLOAD_STATE_UNKNOWN"}else B="DOWNLOAD_STATE_UNKNOWN";return B};
z$=function(B,c){return VgY(B.entities,c)};
WQA=function(B){B=_.NJo(B);var c=B.hours===void 0?0:B.hours,x=B.minutes===void 0?0:B.minutes,P=B.seconds===void 0?0:B.seconds,Y=c>0;B=[];Y&&(c=_.IYo(c),B.push(c));c=Y;c=c===void 0?!1:c;x=(["af","be","lt"].includes(_.SB)||c)&&x<10?J3o().format(x):(new Intl.NumberFormat("en-u-nu-latn")).format(x);B.push(x);x=J3o().format(P);B.push(x);x=":";"da fi id si sr sr-Latn".split(" ").includes(_.SB)&&(x=".");return B.join(x)};
_.NJo=function(B){var c=B.hours||0,x=B.minutes||0,P=B.seconds||0;c=P+x*60+c*3600+(B.days||0)*86400+(B.weeks||0)*604800+(B.months||0)*2629800+(B.years||0)*31557600;if(c<=0)return{hours:0,minutes:0,seconds:0};B=c;c=Math.floor(B/3600);B%=3600;x=Math.floor(B/60);P=Math.floor(B%60);return{hours:c,minutes:x,seconds:P}};
_.IYo=function(B){B=(new Intl.NumberFormat("en-u-nu-latn")).format(B);var c=["fr"],x="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");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(_.SB)?B.replace(",","\u00a0"):c.includes(_.SB)?B.replace(",","\u202f"):x.includes(_.SB)?B.replace(",","."):B};
J3o=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
lYO=function(B){try{return(new _.yI(5)).format(B)}catch(c){}};
G$=function(B){return{thumbnailOverlayDownloadingRenderer:{state:B}}};
E5d=function(B){if(B=lYO(B))return{thumbnailOverlaySidePanelRenderer:{text:_.c3(B),icon:{iconType:"PLAYLISTS"}}}};
OVX=function(){var B=_.Up("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.c3(B),icon:{iconType:"PLAY_ALL"}}}};
o5l=function(B){B=_.MZ(B,2);return _.SB!=="ru"&&_.SB!=="es_419"&&_.SB!=="es-419"&&_.SB!=="es"&&_.SB!=="es_US"&&_.SB!=="es-US"&&_.SB!=="fr"&&_.SB!=="pl"&&_.SB!=="it"&&_.SB!=="nl"&&_.SB!=="uk"&&_.SB!=="fr_CA"&&_.SB!=="fr-CA"||B===""?B:B[0].toLocaleUpperCase()+B.substring(1)};
FQ7=function(B){return function(c){var x=B(),P=_.MZ(c,x.dateFormat);c=_.MZ(c,x.timeFormat);var Y=QAd.DATETIMEFORMATS[x.joinerStyle];Y=Y.replace(/'(?!')/g,"");Y=Y.replace("{0}",c);Y=Y.replace("{1}",P);return x.capitalize(Y)}};
v5Y=function(B){return B?typeof B.seconds==="string"&&(B.nanos===void 0||typeof B.nanos==="number"):!1};
zeX=function(B){return new Date(Number(B.seconds)*1E3+(B.nanos||0)*1E-6)};
_.MZ=function(B,c){if(typeof B.getTime==="function")B={date:B};else if(v5Y(B))B={date:zeX(B)};else if(typeof v5Y(B.timestamp)&&typeof B.i18nInternalSecondsEastOfUtc==="number")B={date:zeX(B.timestamp),timeZone:Lk(-B.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(B));var x=B;B=x.date;x=x.timeZone;c=SPQ(c).format(B,x);_.SB==="zh-TW"&&(B=x?Number(SPQ("H").format(B,x)):B.getHours(),c=B<5?c.replace("\u4e0a\u5348","\u51cc\u6668"):B<8?c.replace("\u4e0a\u5348","\u65e9\u4e0a"):B<12?
c.replace("\u4e0a\u5348","\u4e0a\u5348"):B<13?c.replace("\u4e0b\u5348","\u4e2d\u5348"):B<19?c.replace("\u4e0b\u5348","\u4e0b\u5348"):c.replace("\u4e0b\u5348","\u665a\u4e0a"));return c};
SPQ=function(B){if(y3C.has(B))return y3C.get(B);var c=G37(B);c=MPl(c);LQI!==!0&&(LQI=!0);ZVo=!0;ZVo=!1;c=new Zj(c,QAd);y3C.set(B,c);return c};
G37=function(B){return(new Zj(B,QAd)).patternParts_.map(function(c){return c.type===0?"'"+c.text+"'":c.text}).join("")};
MPl=function(B){return _.SB==="en"||_.SB==="es_US"||_.SB==="es-US"?B:B.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(c,x,P){return"H".repeat(x.length)+P})};
ReO=function(B,c){HVX||(_.H3=_.fYO,HVX=new iVI);var x=HVX;a:if(B=A3w(B),c=A3w(c||new Date),B>c)x=B.getTime()-c.getTime()>6048E5?_.MZ(B,1):umx(B);else{for(var P=0;DVY(B,12*(P+1))<c;)++P;if(P>0)x=x.format(-P,0);else{for(P=0;DVY(B,P+1)<c;)++P;if(P>0)x=x.format(-P,2);else{B=c.getTime()-B.getTime();c=_.p(r3$);for(P=c.next();!P.done;P=c.next()){P=P.value;var Y=P.unit,g=Math.floor(B/P.unitDuration);if(g>=(P.threshold===void 0?1:P.threshold)){x=x.format(-g,Y);break a}}x=x.format(-0,7)}}}return x};
A3w=function(B){if(typeof B.getTime==="function")return B;if(v5Y(B))return zeX(B);throw Error("Ef`"+JSON.stringify(B));};
DVY=function(B,c){for(var x=0,P;;++x)if(P=new Date(B.getFullYear(),B.getMonth()+c,B.getDate()-x,B.getHours(),B.getMinutes(),B.getSeconds()),P.getMonth()===(B.getMonth()+c)%12)return P};
_.fk=function(B){return{runs:[{text:B}]}};
_.iG=function(B){if(B&&B.simpleText)return B.simpleText;var c="";if(B&&B.runs)for(var x=0;x<B.runs.length;x++)B.runs[x].text&&(c+=B.runs[x].text);return c};
Bdx=function(B,c,x,P){return B.videoEntity&&!B.policyEntity&&x!=="DOWNLOAD_STATE_FAILED"?[G$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:qZ(B.policyEntity)&&c!=="TRANSFER_STATE_FAILED"&&c!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?c==="TRANSFER_STATE_PAUSED_BY_USER"?[G$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Ck(c)?[G$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:B.videoEntity.lengthSeconds?ee7(B.videoEntity.lengthSeconds,P):[]:
[G$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
ee7=function(B,c){var x=[{thumbnailOverlayTimeStatusRenderer:{text:_.c3(WQA({seconds:B})),style:"DEFAULT"}}];c&&(B=c<=0||B<=0?0:c>=B?100:Math.ceil(c*100/B),B>0&&x.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:B}}));return x};
cvO=function(B,c,x,P,Y){if(c==="TRANSFER_STATE_UNKNOWN"||!B)return{};if(_.Ck(c)||c==="TRANSFER_STATE_PRE_TRANSFER")var g=[G$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var k,n;if(c==="TRANSFER_STATE_COMPLETE"&&((k=B.mainPlaylistEntity)==null?0:(n=k.videos)==null?0:n.length)){if(_.T("web_modern_collections_v2")){var b;var d=(g=B.mainPlaylistEntity)==null?void 0:(b=g.videos)==null?void 0:b.length;g=(g=lYO(d))?{thumbnailOverlayBottomPanelRenderer:{text:_.c3(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var q;g=E5d((d=B.mainPlaylistEntity)==null?void 0:(q=d.videos)==null?void 0:q.length)}var C;g=[OVX(),Object.assign({},(C=g)!=null?C:{})]}else g=[]}C=g;a:if(c==="TRANSFER_STATE_PRE_TRANSFER")x=xN(_.Up("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE")x=xN(_.Up("WAITING_TO_DOWNLOAD"));else if(_.Ck(c))x=Math.floor(x*100).toString(),x=xN(_.Up("DOWNLOADING_PERCENT",{percent:x},"Downloading... "+x+"%"));else{if(P&&(_.T("playlist_is_offline_selector_killswitch")&&
(Y=_.cp().resolve(_.Z$).isNetworkAvailable()),Y)){x=vbo(_.Up("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),QXq(P));break a}x=void 0}c=c==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Up("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},C.length?{thumbnailOverlays:C}:{},x?{viewPlaylistText:x}:{viewPlaylistText:_.fk("")},c.length?{badges:c}:{})};
xmI=function(B,c,x,P,Y,g){if(c==="TRANSFER_STATE_UNKNOWN"||!B)return{};if(P==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var k=Bdx(B,c,P);if(B.videoEntity&&!B.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"){var n=_.Up("WAITING_TO_DOWNLOAD");if(n)return{shortViewCountText:_.fk(n),publishedTimeText:void 0,thumbnailOverlays:k}}if(!qZ(B.policyEntity)){g=B.policyEntity&&!W0A(B.policyEntity)?_.Up("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Up("TRANSFER_FAILED",{},"Download failed");var b;if((b=B.policyEntity)==null?0:b.shortMessageForDisabledAction)g=B.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:xN(g),publishedTimeText:void 0,thumbnailOverlays:k}}if(c==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.fk(_.Up("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:k};if(c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.fk(_.Up("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:k};if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.Up("WAITING_TO_DOWNLOAD"),P==="DOWNLOAD_STATE_PAUSED"&&(b=_.Up("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.fk(b),publishedTimeText:void 0,thumbnailOverlays:k};if(_.Ck(c))return B=Math.floor(x*100).toString(),{shortViewCountText:_.fk(_.Up("DOWNLOADING_PERCENT",{percent:B},"Downloading... "+B+"%")),publishedTimeText:void 0,thumbnailOverlays:k};c=void 0;B.videoEntity.publishedTimestampMillis&&
(c=new Date,Y&&(c=new Date(Y)),c=xN(ReO(new Date(Number(B.videoEntity.publishedTimestampMillis)),c)));Y=[];_.T("kevlar_woffle_badge_killswitch")||(Y=[{metadataBadgeRenderer:{label:_.Up("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var d;B=xN((d=B.videoEntity.localizedStrings)==null?void 0:d.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:B},g?{}:{publishedTimeText:c},{badges:Y,thumbnailOverlays:k})};
YMX=function(B,c){B=B===void 0?Pd$:B;switch(c.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:c.payload.playlistId,inviteLinkURL:c.payload.inviteLinkUrl};default:return B}};
gkQ=function(B,c){B=B===void 0?apX:B;switch(c.type){case "SET_CURRENT_FORM_ID":return c=c.payload.formId,B.currentFormId===c?B:{currentFormId:c,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var x=c.payload;c=x.groupId;x=x.command;if(B.currentFormId){var P=Object.assign({},B.commandsMap);P[c]=x;B=Object.assign({},B,{commandsMap:P})}return B;case "RESET_COMMAND_MAP":return Object.assign({},B,{commandsMap:{}});default:return B}};
pKC=function(B,c){B=B===void 0?skl:B;switch(c.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},B,{guideIsExpanded:c.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},B,{scrollAtTop:c.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},B,{guideIsVisibleButNotPersistent:c.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},B,{miniplayerIsActive:c.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},B,{singleOptionSurveyIsActive:c.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},B,{slimlineSurveyRatingSelectedIndex:c.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},B,{richGridMiniMode:c.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},B,{richGridItemsPerRow:c.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},B,{richGridSlimItemsPerRow:c.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},B,{richGridContainerWidth:c.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},B,{richGridStyle:c.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},B,{currentPageType:c.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},B,{inlinePreviewIsActive:c.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},B,{inlinePreviewIsEnabled:c.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},B,{darkModeIsEnabled:c.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
B,{miniplayerPlaybackState:c.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},B,{tabGesturesIsActive:c.payload});case "SET_ONLINE_STATUS":return Object.assign({},B,{isOnline:c.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},B,{chipBarIsSticky:c.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},B,{frostedGlassMode:c.payload});default:return B}};
XKI=function(B,c){B=B===void 0?kQl:B;switch(c.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},B,{transcription:c.payload});case "SET_OVERLAY_STATE":return Object.assign({},B,{overlay:c.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return B}};
hTq=function(){return $d(Object.assign({},{continuation:$mA,entities:e57,download:nkC,reportChannelAbuse:b0X,share:KjY,talkToRecs:jkO,ui:pKC,voiceSearch:XKI,watch:UmX,ypc:dmO,shorts:qMQ,radioButtonGroup:gkQ,collabInviteLink:YMX},Cdw))};
Voq=function(){return _.T("web_player_entities_middleware")?new Am(hTq(),[mmd,Tdw]):new Am(hTq(),[mmd])};
_.uG=function(){to$||(to$=Voq());return to$};
wKw=function(B,c,x){if(B.length)return{titleText:_.c3(c!=null?c:_.Up("DOWNLOADS",void 0,"Downloads")),contents:B.map(function(P){var Y=P.videoEntity;P={videoId:Y.videoId,title:xN(Y.title),shortBylineText:xN(P.channelEntity.title),thumbnail:Y.thumbnail};var g=Y.videoId?z$(_.uG().getState(),Y.videoId):0;Y.videoId&&x?P.navigationEndpoint=_.B3(Y.videoId,x,void 0,void 0,g):Y.videoId&&(P.navigationEndpoint=obX(Y.videoId,g,Y.lengthSeconds));Y.lengthSeconds&&(P.thumbnailOverlays=ee7(Y.lengthSeconds,g));return{playlistPanelVideoRenderer:P}}),
totalVideos:B.length}};
Ndq=function(B){return(B=(0,_.wW.getValueByKeys)(B,"playlistId"))?{playlistId:B}:null};
Ip7=function(){return{}};
Jv$=function(B,c){return new _.bb(function(x,P){B.then(function(Y){if(Y){if(Y=c(Y))return x(Y);P()}},P)})};
Wj$=function(B){var c,x,P,Y=(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.autoplay)==null?void 0:P.autoplay,g,k,n;c=(g=B.contents)==null?void 0:(k=g.twoColumnWatchNextResults)==null?void 0:(n=k.playlist)==null?void 0:n.playlist;return Y&&c&&c.playlistId?{rawResponse:B,autoplayRenderer:Y,playlistPanelRenderer:c,playlistId:c.playlistId}:null};
Ekx=function(B){var c=c===void 0?"UNKNOWN_INTERFACE":c;if(B.length===1)return B[0];var x=lpI[c];if(x){x=new RegExp(x);for(var P=_.p(B),Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,x.exec(Y))return Y}var g=[];Object.entries(lpI).forEach(function(k){var n=_.p(k);k=n.next().value;n=n.next().value;c!==k&&g.push(n)});
x=new RegExp(g.join("|"));B.sort(function(k,n){return k.length-n.length});
P=_.p(B);for(Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,!x.exec(Y))return Y;return B[0]};
_.Dj=function(B){return"/youtubei/v1/"+Ekx(B)};
_.rL=function(B){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:B}}}}};
_.Rw=function(B){return _.rL(_.fk(B))};
O0o=function(B,c){var x={mode:"NORMAL"};B&&(x.autoplayVideo=B.navigationEndpoint,x.nextButtonVideo=B.navigationEndpoint);c&&(x.previousButtonVideo=c.navigationEndpoint);return x};
Fjw=function(B,c,x){if(!x||!x.sets)return{sets:[O0o(B,c)]};var P=x.sets.find(function(k){return k.mode==="NORMAL"}),Y=(0,_.wW.unsafeClone)(x);
if(!P)return Y.sets.push(O0o(B,c)),Y;if(!B)return x;P=_.wW.getValueByKeys.apply(null,[P].concat(_.wq(okI)));var g=_.wW.getValueByKeys.apply(null,[B].concat(_.wq(Qk7)));if(P===g)return x;Y.sets=Y.sets.filter(function(k){return k.mode!=="NORMAL"});
Y.sets.push(O0o(B,c));return Y};
vkl=function(B){return!!B.playlistPanelVideoRenderer&&!B.playlistPanelVideoRenderer.unplayableText};
zTw=function(B){return!!B.playlistPanelVideoRenderer&&!!B.playlistPanelVideoRenderer.title};
SMq=function(B,c){if(c.contents&&!(B>=c.contents.length)&&(B=c.contents.slice(B).find(vkl)))return B.playlistPanelVideoRenderer};
yvq=function(B,c){if(c.contents)return(c=c.contents.find(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId===B}))?c.playlistPanelVideoRenderer:void 0};
GQ7=function(B,c){return c.contents?c.contents.findIndex(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId===B}):-1};
MoQ=function(B,c){return c.contents?c.contents.findIndex(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.playlistSetVideoId===B}):-1};
Ljd=function(B,c){B.contents&&c!==-1&&B.contents.splice(c,1).length===1&&B.totalVideos!==void 0&&(--B.totalVideos,delete B.videoCountText)};
_.Z0l=function(B){var c=[];if(!B||!B.contents)return c;B=_.p(B.contents);for(var x=B.next();!x.done;x=B.next())x=x.value,x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId&&c.push(x.playlistPanelVideoRenderer.videoId);return c};
_.H0o=function(B){if(B&&B.contents)return(B=B.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&!!c.playlistPanelVideoRenderer.selected})||B.contents[B.currentIndex])?B.playlistPanelVideoRenderer:void 0};
fpo=function(B,c,x,P,Y,g,k){Y=Y===void 0?!1:Y;g=g===void 0?!1:g;k=k===void 0?!1:k;if(B.contents&&B.contents.length!==0){P&&(B.contents=B.contents.filter(P));P=B.contents.length;for(var n=0;n<P;n++){var b=B.contents[n].playlistPanelVideoRenderer;b&&(n===c?(g&&delete b.menu,b.indexText=_.fk("\u25b6")):Y||B.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.fk((n+1+x).toString()))}B.currentIndex=c+x;k&&(delete B.videoCountText,B.totalVideos=P)}};
_.eB=function(B){B=i07(B);if(B){var c=B.length;var x=-50%c;x<0&&(x=c+x);B=B.slice(c-x)+B.slice(0,c-x)}else B="";x="";for(c=0;c<B.length&&B[c]!==Avw;c++)x+=B[c];return x};
_.uad=function(B,c){var x=document.body;c=c===void 0?function(n){return n}:c;
var P,Y=null;B=_.p(B);for(P=B.next();!P.done;P=B.next()){var g=P.value;P=void 0;var k=(P=g[2])!=null?P:"div";P=document.createElement(k);Y||(Y=P);k=g[0];g=g[1];k&&(P.id=c(k));if(g)for(g=_.p(g),k=g.next();!k.done;k=g.next())P.classList.add(c(k.value));x.appendChild(P);x=P}return[Y,x]};
Dm7=function(B,c){for(var x="",P=0;P<c;P++)x+=B.charAt(Math.floor(Math.random()*B.length));return x};
Bq=function(B){return Dm7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",B)};
cq=function(B){return Dm7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",B)};
xH=function(B){return Dm7("0123456789",B)};
Pq=function(){var B=performance.now(),c=new Date;var x="2."+c.getFullYear()+String(c.getMonth()+1).padStart(2,"0")+String(c.getDate()).padStart(2,"0");for(var P,Y=Math.floor(Math.random()*11)+15,g=[],k=0;k<Y;k++)g.push(Math.floor(Math.random()*26476865)+24547720);P=g.join(",");var n=Bq(10),b=Bq(100),d=Bq(102),q=Bq(106),C=Bq(108),h=Bq(11),V=Bq(1140),N=Bq(123),l=Bq(14),E=Bq(16),S=Bq(1900),M=Bq(23),f=Bq(26),Z=Bq(34),u=Bq(397),e=Bq(44),px=Bq(5),kI=Bq(72),Ul=Bq(74),wC=Bq(75),W$=Bq(88),El=Bq(91),H$="rr4---sn-ntq7yner rr3---sn-q4fl6nsy rr5---sn-5hne6ns6 rr5---sn-5hne6nsr rr1---sn-q4flrnss rr3---sn-5hnekn7z rr2---sn-q4fl6nd7 rr2---sn-5hnekn7z rr4---sn-5hne6nsd rr3---sn-q4flrnl6 rr4---sn-ntqe6nes rr1---sn-q4fl6n6s rr5---sn-q4fzen7s rr2---sn-q4fzenee rr1---sn-t0a7lnee rr4---sn-q4flrnsl rr4---sn-5hneknek rr3---sn-q4fl6ns6 rr2---sn-q4fl6n6s rr3---sn-5hnednss".split(" ");
var yw=H$[Math.floor(Math.random()*H$.length)];var r9=(new Date("2010-01-01")).getTime();var cs=(new Date(r9+Math.random()*((new Date).getTime()-r9))).toISOString().split("T")[0];for(var NQ,n4=[],L4=0;L4<4;L4++)n4.push(Math.floor(Math.random()*100));NQ=n4.join(".");var UF=Number(xH(5)),uX=Number(xH(6)),yr=Number(xH(7)),uz=Number(xH(9)),XO=xH(1),qQ=xH(10),lt=xH(16),D8=xH(19),VW=xH(2),ut=xH(20),M8=xH(21),An=xH(3),g9=xH(4),SZ=xH(5),hc=xH(6),C4=xH(7),I0=xH(8),bz=xH(9);var sG=Dm7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var sF=[cq(5),cq(5),cq(5)].join("%2C"),h0=[xH(3),xH(5),xH(5)].join("%2C"),yD=cq(0),G5=cq(1),Jc=cq(10),cN=cq(108),xP=cq(11),CS=cq(12),Ft=cq(13),JM=cq(14),WR=cq(15),Qc=cq(16),Gk=cq(17),T7=cq(18),FO=cq(19),MY=cq(2),jZ=cq(20),gl=cq(22),lm=cq(23),KA=cq(24),d9=cq(266),K4=cq(3),mo=cq(30),jJ=cq(34),s3=cq(35),d8=cq(36),NR=cq(4),Fe=cq(40),mX=cq(43),Zt=cq(47),iR=cq(5),ZA=cq(6),pA=cq(7),GB=cq(75),rl=cq(8),eT=cq(80),BF=cq(9),U0="https://www."+cq(12)+".com",JE={},Wi={},vC={},Ac$={},zA={},Yh={},aK={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:x},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+cq(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:x},{key:"client.name",value:"WEB"},{key:"client.fexp",value:P}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:M8+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+cq(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Fe,ypcGetOfflineUpsellEndpoint:{params:eT}},trackingParams:s3+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&cnr="+VW+"&ratebypass=yes&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&c=WEB&txp="+C4+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:uX,width:640,height:360,lastModified:lt,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C4,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+h0+"&mn="+
sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&cnr="+VW+"&ratebypass=yes&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&c=WEB&txp="+C4+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+cN+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:uX,width:1280,
height:720,lastModified:lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C4,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+sF+"&ms="+
sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:yr,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yr,approxDurationMs:C4},{itag:248,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+sF+"&ms="+sF+"&mv="+
G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:yr,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:399,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:yr,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:136,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:yr,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uX,approxDurationMs:C4},{itag:247,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+
sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:yr,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:398,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+bz+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:yr,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:bz,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:135,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:uX,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uX,approxDurationMs:C4},{itag:244,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+
sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+cN+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:uX,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:397,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:uX,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:134,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:uX,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uX,highReplication:!0,approxDurationMs:C4},{itag:243,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:uX,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:396,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:uX,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:133,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:uX,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uX,approxDurationMs:C4},{itag:242,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+
sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:uX,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:395,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:uX,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:160,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:uX,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UF,approxDurationMs:C4},{itag:278,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+h0+"&mn="+
sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/webm; codecs="vp9"',bitrate:uX,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:394,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&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="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=video%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:UF,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C4},{itag:140,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=audio%2Fmp4&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:uX,
initRange:{start:"0",end:"631"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uX,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C4,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+
VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=audio%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+C4+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'audio/webm; codecs="opus"',bitrate:UF,initRange:{start:"0",end:"265"},indexRange:{start:An,
end:g9},lastModified:lt,contentLength:C4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:UF,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=audio%2Fwebm&ns="+
KA+"&gir="+K4+"&clen="+C4+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'audio/webm; codecs="opus"',bitrate:UF,initRange:{start:"0",end:"265"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:C4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:UF,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+yw+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+M+"&ip="+NQ+"&id=o-AF"+mX+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+h0+"&mn="+sF+"&ms="+sF+"&mv="+G5+"&mvi="+XO+"&pl="+VW+"&initcwndbps="+C4+"&siu="+XO+"&spc="+e+"&vprv="+XO+"&svpuc="+XO+"&mime=audio%2Fwebm&ns="+KA+"&gir="+K4+"&clen="+I0+"&dur="+I0+"&lmt="+lt+"&mt="+qQ+"&fvip=3&keepalive="+K4+"&c=WEB&txp="+
C4+"&n="+Qc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+C,mimeType:'audio/webm; codecs="opus"',bitrate:uX,initRange:{start:"0",end:"265"},indexRange:{start:An,end:g9},lastModified:lt,contentLength:I0,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uX,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C4,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="+bz+"&docid="+h+"&ei="+M+"&feature="+n+"&fexp="+yD+"&ns="+MY+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G5+"&el="+Jc+"&len="+g9+"&of="+gl+
"&uga="+VW+"&vm="+d9},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+bz+"&docid="+h+"&ei="+M+"&feature="+n+"&fexp="+yD+"&ns="+MY+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G5+"&el="+Jc+"&len="+g9+"&of="+gl+"&uga="+VW+"&vm="+d9},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+bz+"&docid="+h+"&ei="+M+"&feature="+n+"&fexp="+yD+"&ns="+MY+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
G5+"&el="+Jc+"&len="+g9+"&of="+gl+"&uga="+VW+"&vm="+d9},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+M+"&m="+W$+"&oid="+gl+"&plid="+E+"&pltype="+pA+"&ptchn="+gl+"&ptk="+l+"&video_id="+h},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+bz+"&docid="+h+"&ei="+M+"&event="+JM+"&feature="+n+"&fexp="+yD+"&ns="+MY+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+G5},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+h+"&ei="+M+"&feature="+
n+"&len="+g9+"&ns="+MY+"&plid="+E+"&ver="+XO,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+K4+"&opi="+bz+"&xoaf="+XO+"&hl="+MY+"&ip="+NQ+"&ipbits="+XO+"&expire="+qQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+NQ+"&key="+K4+"&lang="+px,name:{simpleText:CS},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+K4+"&opi="+bz+"&xoaf="+XO+"&hl="+MY+"&ip="+NQ+"&ipbits="+XO+"&expire="+qQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+NQ+"&key="+K4+"&kind="+K4+"&lang="+MY,name:{simpleText:WR},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:xP,title:Ft,lengthSeconds:"1155",keywords:[Ft,rl,Gk,ZA],
channelId:KA,isOwnerViewing:!1,shortDescription:T7,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+jJ,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+jJ,width:196,height:110},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
h+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:C4,author:Ft,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:C4,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+gl+"/featured_channel.jpg?v="+rl,width:40,height:40}]},trackingParams:s3+"=",navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"/channel/"+KA,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:KA}},channelName:Ft,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Gk}]},subscribed:!1,enabled:!0,type:"FREE",channelId:KA,showPreferences:!1,subscribedButtonText:{runs:[{text:JM}]},unsubscribedButtonText:{runs:[{text:iR}]},trackingParams:s3+"=",unsubscribeButtonText:{runs:[{text:FO}]},serviceEndpoints:[{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[KA],params:rl}},{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Fe,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:s3+"=",dialogMessages:[{runs:[{text:Ft},{text:WR},{text:CS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:NR}]},serviceEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[KA],params:rl}},accessibility:{label:ZA},trackingParams:s3+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:iR}]},accessibility:{label:rl},trackingParams:s3+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:T7}},unsubscribeAccessibility:{accessibilityData:{label:Ft}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:I0},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[KA],params:rl}},unsubscribeCommand:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[KA],params:rl}},addToWatchLaterCommand:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:xP,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:xP}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+h+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+d8+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
h+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+xP,width:1280,height:720},title:{simpleText:JM},description:{simpleText:Qc},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+T7,externalChannelId:KA,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:C4,category:"Travel & Events",publishDate:cs,ownerChannelName:Ft,uploadDate:cs}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:rl},trackingParams:s3+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Fe,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:s3+"="}}],headerText:{simpleText:xP},icon:{infoCardIconRenderer:{trackingParams:s3+"="}},closeButton:{infoCardIconRenderer:{trackingParams:s3+"="}},trackingParams:s3+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:s3+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+xP+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:sG,interpreterSafeUrl:(JE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+mo+".js",JE),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:rl},{text:CS,bold:!0}]},endpoint:{clickTrackingParams:Fe,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:s3+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:T7}]},actionButton:{buttonRenderer:{text:{runs:[{text:jZ}]},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+h,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
h,target:"TARGET_NEW_WINDOW"}},trackingParams:s3+"="}},trackingParams:s3+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+kI+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+kI+"=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:C4,endMs:C4,title:{accessibility:{accessibilityData:{label:rl}},simpleText:FO},metadata:{simpleText:jZ},callToAction:{simpleText:Qc},dismiss:{simpleText:T7},endpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"/channel/"+KA,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:KA}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:jZ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:KA,showPreferences:!1,
subscribedButtonText:{runs:[{text:WR}]},unsubscribedButtonText:{runs:[{text:WR}]},trackingParams:s3+"=",unsubscribeButtonText:{runs:[{text:ZA}]},serviceEndpoints:[{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[KA],params:rl}},{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Fe,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:s3+
"=",dialogMessages:[{runs:[{text:JM},{text:CS},{text:xP}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:rl}]},serviceEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[KA],params:rl}},accessibility:{label:CS},trackingParams:s3+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Qc}]},
accessibility:{label:Qc},trackingParams:s3+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:NR}},unsubscribeAccessibility:{accessibilityData:{label:Gk}}}},trackingParams:s3+"=",isSubscribe:!0,id:ut}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+Z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+jJ,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+d8+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:C4,endMs:C4,title:{accessibility:{accessibilityData:{label:BF}},simpleText:pA},metadata:{simpleText:Jc},endpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
xP,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:xP,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+yw+".googlevideo.com/videoplayback?source=youtube&oeis="+XO+"&c=WEB&oad="+g9+"&ovd="+g9+"&oaad="+SZ+"&oavd="+SZ+"&ocs="+An+"&oewis="+XO+"&oputc="+XO+"&ofpcc="+XO+"&siu="+XO+"&msp="+XO+"&odepv="+XO+
"&id=o-AF"+mX+"&ip="+NQ+"&initcwndbps="+C4+"&mt="+qQ+"&oweuc="+yD}}}}},trackingParams:s3+"=",id:ut,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:NR}},simpleText:BF},style:"DEFAULT"}}]}}],startMs:C4,trackingParams:s3+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:XO,offsetEndMilliseconds:SZ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";ord="+qQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+An+";dc_sk="+XO+";dc_ctype="+VW+";dc_ref=http://www.youtube.com/video/"+xP+";dc_pubid="+XO+";dc_btype=23?gclid="+El+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+XO+"&ns="+XO+"&event="+XO+"&device="+XO+"&content_v="+h+"&el="+Jc+"&ei="+M+"&devicever="+x+"&bti="+C4+"&format="+hc+"&break_type="+XO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+XO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+NQ+"&slot_pos="+XO+"&slot_len="+XO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+h0+"&ad_len="+SZ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
xP+"&aqi="+M+"&ad_rmp="+XO+"&sli="+XO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+
";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+C4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&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"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&ctype="+An+"&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"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_engaged_view&ctype="+An+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+D8+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&dc_pubid="+XO+"&dc_exteid="+ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+XO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&avm="+XO+"&dc_pubid="+XO+"&dc_exteid="+
ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&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="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
d+"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+XO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&dc_pubid="+XO+"&dc_exteid="+ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Fe,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+
An+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:s3+"="},trackingParams:s3+
"=",templatedCountdown:{templatedAdText:{text:CS,isTemplated:!0,trackingParams:s3+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Gk,isTemplated:!1,trackingParams:s3+"="},trackingParams:s3+"="}},trackingParams:s3+"=",skipOffsetMilliseconds:5E3}},trackingParams:s3+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:xP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:BF,isTemplated:!1,trackingParams:s3+"="},trackingParams:s3+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:BF,isTemplated:!0,trackingParams:s3+"="}},trackingParams:s3+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Fe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Wi.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+MY+"&origin=www.youtube.com&ata_theme="+NR,Wi),trackingParams:s3+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:s3+"="}},hoverText:{runs:[{text:iR}]},trackingParams:s3+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:s3+"="},headline:{text:xP,isTemplated:!1,trackingParams:s3+"="},description:{text:WR,
trackingParams:s3+"="},actionButton:{buttonRenderer:{text:{simpleText:pA},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"="}},startMs:XO,trackingParams:s3+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:WR},elementId:NR}},elementId:CS,trackingParams:s3+"=",legacyInfoCardVastExtension:BF,sodarExtensionData:{siub:xP,bgub:WR,scs:Ft,bgp:xP},externalVideoId:xP,adLayoutLoggingData:{serializedAdServingDataEntry:FO},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:s3+"="},
headline:{text:BF,isTemplated:!1,trackingParams:s3+"="},description:{text:ZA,isTemplated:!1,trackingParams:s3+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:FO},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+
ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+
XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:s3+"="}},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+
bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:s3+"="},abandonCommands:{commands:[{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&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="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+
XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Fe,commandExecutorCommand:{commands:[{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:pA,isTemplated:!1,trackingParams:s3+
"="},trackingParams:s3+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:CS},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+C4+";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="+bz+";dc_trk_cid="+bz+";ord="+qQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+An+";dc_sk="+XO+";dc_ctype="+VW+";dc_ref=http://www.youtube.com/video/"+xP+";dc_pubid="+XO+";dc_btype=23?gclid="+El+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+XO+"&ns="+XO+"&event="+XO+"&device="+XO+"&content_v="+h+"&el="+Jc+"&ei="+M+"&devicever="+x+"&bti="+C4+"&format="+hc+"&break_type="+XO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+XO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+NQ+"&slot_pos="+XO+"&slot_len="+XO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
h0+"&ad_len="+SZ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+xP+"&aqi="+M+"&ad_rmp="+XO+"&sli="+XO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+
f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+C4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&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"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&ctype="+An+"&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"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_engaged_view&ctype="+An+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+
ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&dc_pubid="+XO+"&dc_exteid="+ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+
"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+XO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&avm="+XO+"&dc_pubid="+XO+"&dc_exteid="+ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&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="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+lm+"&ad_cpn=[AD_CPN]&id="+ZA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+XO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZA+"&dc_pubid="+XO+"&dc_exteid="+ut+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+
An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:s3+"="},trackingParams:s3+"=",templatedCountdown:{templatedAdText:{text:Ft,isTemplated:!0,trackingParams:s3+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:BF,isTemplated:!1,trackingParams:s3+"="},trackingParams:s3+"="}},
trackingParams:s3+"=",skipOffsetMilliseconds:5E3}},trackingParams:s3+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:xP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:JM,isTemplated:!1,trackingParams:s3+"="},trackingParams:s3+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Jc,
isTemplated:!0,trackingParams:s3+"="}},trackingParams:s3+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Fe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+MY+"&origin=www.youtube.com&ata_theme="+NR,vC),trackingParams:s3+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:s3+"="}},hoverText:{runs:[{text:Ft}]},trackingParams:s3+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ul+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:s3+"="},headline:{text:rl,isTemplated:!1,trackingParams:s3+"="},description:{text:WR,trackingParams:s3+"="},actionButton:{buttonRenderer:{text:{simpleText:T7},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"="}},startMs:XO,trackingParams:s3+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:JM},elementId:iR}},elementId:pA,trackingParams:s3+"=",legacyInfoCardVastExtension:FO,sodarExtensionData:{siub:ZA,bgub:Jc,scs:Jc,bgp:Qc},externalVideoId:xP,adLayoutLoggingData:{serializedAdServingDataEntry:WR},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ul+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:s3+"="},headline:{text:JM,
isTemplated:!1,trackingParams:s3+"="},description:{text:CS,isTemplated:!1,trackingParams:s3+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:xP},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:s3+"="}},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+
XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:s3+"="},abandonCommands:{commands:[{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&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="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+VW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Fe,commandExecutorCommand:{commands:[{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Ft,isTemplated:!1,trackingParams:s3+"="},trackingParams:s3+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Jc},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+XO+";dc_exteid="+ut+";met="+XO+";ecn"+XO+"="+XO+";etm1="+XO+";eid1="+
C4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:T7}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:SZ,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+VW+"&token=ALHj"+u+"&index="+XO+"&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="+x+"&m_pos_ms="+SZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:hc,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+An+"&token=ALHj"+u+"&index="+XO+"&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="+
x+"&m_pos_ms="+hc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hc,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+An+"&token=ALHj"+u+"&index="+XO+"&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="+
x+"&m_pos_ms="+hc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:CS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hc,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+An+"&token=ALHj"+u+"&index="+XO+"&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="+
x+"&m_pos_ms="+hc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hc,offsetEndMilliseconds:VW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+An+"&token=ALHj"+u+"&index="+XO+"&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="+
x+"&m_pos_ms="+hc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gk}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:VW,offsetEndMilliseconds:VW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+VW+"&token=ALHj"+u+"&index="+XO+"&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="+
x+"&m_pos_ms="+VW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:JM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:FO,isTemplated:!1,trackingParams:s3+"="},description:{text:JM,isTemplated:!1,trackingParams:s3+"="},actionButton:{buttonRenderer:{text:{simpleText:Jc},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zt+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:s3+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+wC+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:s3+"="},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+
";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Fe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ac$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+MY+"&origin=www.youtube.com&ata_theme="+NR,Ac$),trackingParams:s3+"="}},popupType:"DIALOG"}},trackingParams:s3+"="}},hoverText:{runs:[{text:JM}]},trackingParams:s3+"="}},adVideoId:xP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:FO},associatedCompositePlayerBytesLayoutId:Qc}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:T7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qc,isTemplated:!1,trackingParams:s3+"="},description:{text:ZA,isTemplated:!1,trackingParams:s3+"="},actionButton:{buttonRenderer:{text:{simpleText:CS},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ul+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:s3+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GB+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:s3+"="},navigationEndpoint:{clickTrackingParams:Fe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+
XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Fe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+MY+"&origin=www.youtube.com&ata_theme="+NR,zA),trackingParams:s3+"="}},popupType:"DIALOG"}},trackingParams:s3+"="}},
hoverText:{runs:[{text:Qc}]},trackingParams:s3+"="}},adVideoId:xP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+xP+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:xP},associatedCompositePlayerBytesLayoutId:Qc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:JM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:BF,
isTemplated:!1,trackingParams:s3+"="},description:{text:iR,isTemplated:!1,trackingParams:s3+"="},actionButton:{buttonRenderer:{text:{simpleText:jZ},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+
VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+
Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:s3+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zt+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:s3+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+wC+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:s3+
"="},navigationEndpoint:{clickTrackingParams:Fe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+bz+";dc_trk_cid="+bz+";dc_dbm_token="+C+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+XO+";ord="+bz+";dc_rui="+XO+";dc_exteid="+ut+";dc_av="+XO+";dc_sk="+XO+";dc_ctype="+VW+";dc_pubid="+XO+";dc_btype=3?gclid="+El+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+N+"AxAA&ase=2&num="+XO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+U0+"&label=video_click_to_advertiser_site&ctype="+An+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:s3+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Fe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Yh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+MY+"&origin=www.youtube.com&ata_theme="+NR,Yh),trackingParams:s3+"="}},popupType:"DIALOG"}},trackingParams:s3+
"="}},hoverText:{runs:[{text:pA}]},trackingParams:s3+"="}},adVideoId:xP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+N+"AxAA&sigh="+h+"&cid="+f+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Qc},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Qc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gk}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:mo,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:mo,command:{innertubeCommand:{clickTrackingParams:Fe,ypcGetOfflineUpsellEndpoint:{params:eT}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:s3+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:qQ,nanos:uz}}}},N$l=JSON.stringify(aK),gN=performance.now()-B;return{objectRepresentation:aK,jsonRepresentation:N$l,generationTime:gN}};
rvO=function(B,c){if(B===c)return!0;if(!B||!c||typeof B!==typeof c)return!1;if(B instanceof Array&&c instanceof Array){if(B.length!==c.length)return!1;for(var x=0;x<B.length;x++)if(!rvO(B[x],c[x]))return!1;return!0}if(typeof B==="object"&&typeof c==="object"&&B&&c){for(x in B)if(!(x in c&&rvO(B[x],c[x])))return!1;for(var P in c)if(!(P in B))return!1;return!0}return!1};
_.au=function(){if(!YH){YH=new KS(new RTO);var B=_.Yu("client_streamz_web_flush_count",-1);B!==-1&&(YH.invocationLimit=B)}return YH};
g_=function(B,c,x,P){if(B===c)return!0;if(Array.isArray(B)&&Array.isArray(c)){if(B.length!==c.length)return!1;for(var Y=0;Y<B.length;Y++)if(!g_(B[Y],c[Y],x,P))return!1;return!0}if(B instanceof Set||c instanceof Set){if(B instanceof Set&&c instanceof Set){if(B.size!==c.size)return!1;P=_.p(B.values());for(Y=P.next();!Y.done;Y=P.next())if(!c.has(Y.value))return!1;return!0}return!1}if(B instanceof Function){if(P)return!0;B.name===""&&_.lb(Error("If"),"ERROR");return!1}if(B instanceof Date&&c instanceof
Date)return B.getTime()===c.getTime();if(B instanceof Object&&c instanceof Object){if(eTO(B)&&eTO(c))try{return B.equals(c)}catch(k){_.lb(Error("Jf`"+k),"ERROR")}Y=Object.getOwnPropertyNames(B).filter(function(k){return x?B[k]!==void 0:!0});
var g=Object.getOwnPropertyNames(c).filter(function(k){return x?c[k]!==void 0:!0});
if(Y.length!==g.length)return!1;Y=_.p(Y);for(g=Y.next();!g.done;g=Y.next())if(g=g.value,!g_(B[g],c[g],x,P))return!1;return!0}return!1};
eTO=function(B){B=Object.getPrototypeOf(B).equals;return B instanceof Function&&B.length===1};
_.x4w=function(){return _.X(function(B){if(B.nextAddress==1)return Bkl!==2?B.jumpTo(2):_.K(B,c2d(),3);B.nextAddress!=2&&(Bkl=B.yieldResult);return B.return(Bkl)})};
_.a5C=function(){return _.X(function(B){if(B.nextAddress==1)return _.T("ab_pl_man")?P3A!==2?B.jumpTo(2):_.K(B,YQw(),3):B.return(1);B.nextAddress!=2&&(P3A=B.yieldResult);return B.return(P3A)})};
plY=function(){return _.X(function(B){if(B.nextAddress==1)return _.T("ab_fk_sk_cl")?ggA!==2?B.jumpTo(2):_.K(B,s$I(),3):B.return(1);B.nextAddress!=2&&(ggA=B.yieldResult);return B.return(ggA)})};
_.$4Y=function(){return _.X(function(B){if(B.nextAddress==1)return _.T("ab_det_apb_b")?kCX!==2?B.jumpTo(2):_.K(B,Xll(),3):B.return(1);B.nextAddress!=2&&(kCX=B.yieldResult);return B.return(kCX)})};
K8l=function(){var B;return _.X(function(c){if(c.nextAddress==1)return _.K(c,Promise.all([_.x4w(),_.$4Y(),_.a5C(),plY()]),2);if(c.nextAddress!=3)return ngO()?c.return(!0):_.K(c,_.by$(),3);B=c.yieldResult;return c.return(B===0)})};
ngO=function(){var B=!1,c=function(x,P){j$X.increment(P,x);x===0&&(B=!0)};
c(_.U4X(),"j.s_");c(Bkl,"f.i_");c(kCX,"a.b_");c(P3A,"p.m_");c(ggA,"i.f_");d4O===2&&(d4O=_.qQw(C3C));c(d4O,"e.h_");_.T("ks_det_gpbl")||c(_.hRw(),"p.i_");_.T("ks_get_o_pp")||c(_.m4$(),"g.o_");_.T("ab_deg_unex_thr")||c(_.Tkl(),"a.o_");c(VqQ,"s.t_");_.T("ab_det_sc_inj_enf")&&c(_.tqx(),"s.i_");c(wlQ,"d.p_");c(_.Nkq(_.si),"o.p_");c(_.I5I()===0?0:_.J2l(),"o.a_");return _.T("debug_sk_em_precheck")?!0:B};
l5d=function(){var B=[].concat(_.wq(W8C));try{var c=Pq();B.push({jsonRepresentation:c.jsonRepresentation,objectRepresentation:c.objectRepresentation})}catch(x){B=[].concat(_.wq(W8C))}return B};
Eg7=function(){var B=["adPlacements","adSlots"];try{return B.filter(function(){return!0}).length!==B.length?0:1}catch(c){return 0}};
_.m4$=function(){if(Eg7()===0)return 0;var B=Pq(),c=B.objectRepresentation,x=(0,_.wW.unsafeClone)(c),P=[];if(c&&typeof c==="object")for(var Y in c)P.push(Y);else return 4;B=B.objectRepresentation.adPlacements;if(!(B&&B.length>0))return 4;try{if(!rvO(P,Object.getOwnPropertyNames(c)))return 0}catch(g){return 0}return rvO(x,c)?1:0};
_.Nkq=function(B){if(!B||!B.length||typeof B==="string")return 0;for(var c=Object.getOwnPropertyNames(Object.prototype),x=0;x<B.length;x++)for(var P=_.eB(B[x]),Y=_.p(c),g=Y.next();!g.done;g=Y.next())if(P===g.value)return 0;return 1};
Oy$=function(B){var c=_.eB(B[1]);if(B[0]===null)return c;B=B[0];for(var x={},P=0;P<B.length;P++){var Y=_.eB(B[P]);if(P===0)x[Y]=c;else{var g={};g[Y]=x;x=g}}return x};
_.I5I=function(){for(var B=_.pr,c=0;c<B.length;c++){var x=Oy$(B[c]),P=[];P.push(x);if(P.length===0)return 0}return 1};
_.J2l=function(){for(var B=_.pr,c={},x=0;x<B.length;c={t58:void 0},x++){var P=[Oy$(B[x])];c.t58=[];P.forEach(function(Y){return function(g){Y.t58[Y.t58.length]=g}}(c));
if(c.t58.length===0)return 0}return 1};
_.U4X=function(){for(var B=_.p(l5d()),c=B.next();!c.done;c=B.next()){var x=c.value;c=x.jsonRepresentation;x=x.objectRepresentation;try{var P=JSON.parse(c);if(!g_(P,x,!1,!1))return 0}catch(Y){return 0}}return 1};
_.tqx=function(){try{var B=_.gr("ab_det_sc_inj_val");B.length===1&&B[0]===""&&(B=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var c=document.querySelectorAll("script"),x=_.p(c),P=x.next();!P.done;P=x.next())for(var Y=P.value,g=_.p(B),k=g.next();!k.done;k=g.next()){var n=k.value;c=void 0;if((c=Y.textContent)==null?0:c.includes(n))return 0}}catch(b){return 4}return 1};
_.by$=function(){var B,c,x,P,Y,g,k;return _.X(function(n){switch(n.nextAddress){case 1:_.kM(n,2),B=_.p(W8C),c=B.next();case 4:if(c.done)return n.return(1);P=x=c.value;Y=P.jsonRepresentation;g=P.objectRepresentation;return _.K(n,(new Response(Y,{status:200})).json(),7);case 7:k=n.yieldResult;if(!g_(k,g,!1,!1))return n.return(0);c=B.next();n.jumpTo(4);break;case 2:return _.be(n),n.return(4)}})};
_.Tkl=function(){try{btoa("abc")}catch(B){return 0}return 1};
c2d=function(){var B,c,x,P,Y,g,k,n,b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:_.kM(C,2),B=_.p(l5d()),c=B.next();case 4:if(c.done)return C.return(1);P=x=c.value;Y=P.jsonRepresentation;g=P.objectRepresentation;k=btoa(Y);n="data:application/json;base64,"+k;b=new Request(n);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return _.K(C,fetch(b),7);case 7:return d=C.yieldResult,_.K(C,d.json(),8);case 8:q=C.yieldResult;if(!g_(q,g,!1,!1))return C.return(0);c=B.next();C.jumpTo(4);break;case 2:return _.be(C),C.return(4)}})};
_.qQw=function(B){if(!B||!B.length||typeof B==="string")return 0;for(var c=function(Y){return _.eB(Y)},x=2,P=0;P<B.length&&(x=_.ogI(_.uad(B[P],c)),x!==0);P++);
return x};
_.ogI=function(B){var c=_.p(B);B=c.next().value;c=c.next().value;try{var x=document.createElement("div");document.body.appendChild(x);var P=getComputedStyle(x).display;document.body.removeChild(x);if(P==="none")return 4;var Y=getComputedStyle(c).display==="none"?0:1;document.body.removeChild(B);return Y}catch(g){return 4}};
s$I=function(){var B,c,x;return _.X(function(P){B=new _.kH;c=document.createElement("button");c.classList.add("ytp-ad-skip-button");c.style.opacity="0";c.style.height="0px";c.style.width="0px";c.style.padding="0px";c.style.border="none";x=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.onclick=function(){B.resolve(0);x()};
document.body.appendChild(c);setTimeout(function(){x();B.resolve(1)},50);
return P.return(B.promise)})};
YQw=function(){var B,c,x,P,Y,g,k;return _.X(function(n){B=new _.kH;c=document.createElement("ytd-player");try{document.body.prepend(c)}catch(b){return n.return(4)}x=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.getElementsByTagName("div").length>0?P=c.getElementsByTagName("div")[0]:(P=document.createElement("div"),c.appendChild(P));Y=document.createElement("div");P.appendChild(Y);g=document.createElement("video");k=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});g.src=_.UG(_.Vc(k));g.ontimeupdate=function(){x();B.resolve(0)};
Y.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){Y.classList.add("ad-interrupting")},200);
setTimeout(function(){x();B.resolve(1)},5E3);
return n.return(B.promise)})};
Q$I=function(B,c){var x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:x=[],P=0;case 2:if(!(P<3)){Y.jumpTo(4);break}return _.K(Y,fetch(B,{cache:"no-store",method:c}).then(function(g){x.push(g.status)}).catch(function(){x.push(-1)}),3);
case 3:P++;Y.jumpTo(2);break;case 4:return Y.return(x)}})};
F8d=function(B){return B.domainLookupStart===0&&B.domainLookupEnd===0&&B.connectStart===0&&B.connectEnd===0};
vgl=function(B,c,x){x=x===void 0?"GET":x;var P,Y,g,k,n,b,d,q,C,h;return _.X(function(V){if(V.nextAddress==1)return _.K(V,Promise.all([Q$I(B,x),Q$I(c,x)]),2);P=V.yieldResult;Y=_.p(P);g=Y.next().value;k=Y.next().value;n=g;b=k;if(Math.min.apply(Math,_.wq(b))!==Math.max.apply(Math,_.wq(b))||Math.min.apply(Math,_.wq(n))!==Math.max.apply(Math,_.wq(n)))return V.return(2);if(Math.min.apply(Math,_.wq(b))===Math.min.apply(Math,_.wq(n)))return V.return(1);q=(d=performance.getEntriesByName(B))==null?void 0:d[0];
h=(C=performance.getEntriesByName(c))==null?void 0:C[0];return q&&h?F8d(h)?V.return(1):F8d(q)?V.return(0):V.return(1):V.return(2)})};
Xll=function(){var B;return _.X(function(c){var x=[];var P;var Y,g,k;(Y=P=(Y=Pq().objectRepresentation.streamingData)==null?void 0:(g=Y.formats)==null?void 0:(k=g[0])==null?void 0:k.url)&&Y&&!P.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Y=Y.replace("initcwndbps","ctier=L&initcwndbps"),Y=Y.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),P={testUrl:Y,baseUrl:P,method:"GET"}):P=void 0;P&&x.push(P);_.T("ab_net_tp_e")&&x.push({testUrl:_.xI.location.origin+"/ad_companion",baseUrl:_.xI.location.origin+
"/generate_204",method:"OPTIONS"});if(_.T("ad_net_pb_ab")){var n;b:{P=/api\/stats\/ads/;var b,d,q,C;Y=(n=Pq().objectRepresentation.adPlacements)==null?void 0:(b=n[0])==null?void 0:(d=b.adPlacementRenderer)==null?void 0:(q=d.renderer)==null?void 0:(C=q.linearAdSequenceRenderer)==null?void 0:C.linearAds;if(Y!=null&&Y.length&&(n=_.t(Y[0],zRI))&&(n=n.pings,n!=null&&n.impressionPings))for(b=[].concat(_.wq(n.impressionPings)),n.progressPings&&(b=[].concat(_.wq(b),_.wq(n.progressPings))),n=_.p(b),b=n.next();!b.done;b=
n.next())if(b=b.value,b.baseUrl&&P.test(b.baseUrl)){n=b.baseUrl.replace("https://www.youtube.com","");break b}n=void 0}n&&x.push({testUrl:_.xI.location.origin+n,baseUrl:_.xI.location.origin+"/feed/download",method:"GET"})}if(_.T("ad_net_pb_pbp")){var h;b:{n=/api\/stats\/qoe/;if(b=Pq().objectRepresentation.playbackTracking){d=[];d.push(b==null?void 0:(h=b.videostatsPlaybackUrl)==null?void 0:h.baseUrl);var V;d.push(b==null?void 0:(V=b.videostatsDelayplayUrl)==null?void 0:V.baseUrl);var N;d.push(b==
null?void 0:(N=b.videostatsWatchtimeUrl)==null?void 0:N.baseUrl);var l;d.push(b==null?void 0:(l=b.ptrackingUrl)==null?void 0:l.baseUrl);var E;d.push(b==null?void 0:(E=b.qoeUrl)==null?void 0:E.baseUrl);var S;d.push(b==null?void 0:(S=b.atrUrl)==null?void 0:S.baseUrl);h=_.p(d);for(V=h.next();!V.done;V=h.next())if((V=V.value)&&n.test(V)){h=V.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}h=void 0}h&&x.push({testUrl:_.xI.location.origin+h,baseUrl:_.xI.location.origin+
"/feed/download",method:"GET"})}x=x.length!==0?x[Math.floor(Math.random()*x.length)]:void 0;return(B=x)?c.return(vgl(B.testUrl,B.baseUrl,B.method)):c.return(4)})};
_.hRw=function(){if(_.xI.pMp===void 0||_.xI.pMp===null||typeof _.xI.pMp!=="function")return 2;try{return _.xI.pMp()===!0?0:1}catch(B){return 0}};
SQQ=function(B){switch(B){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.kz(B,"unknown result type")}};
_.y27=function(B,c){var x=Number(_.v5("CATSTAT",0));if(c.ptb===void 0)return x;c=c.ptb;B=SQQ(B);return x&~(3<<c)|B<<c};
GCI=function(B){var c,x;if((B=(c=B.auxiliaryUi)==null?void 0:(x=c.messageRenderers)==null?void 0:x.bkaEnforcementMessageViewModel)&&B.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return B};
L8I=function(){for(var B=_.p(Object.values(_.MqQ)),c=B.next();!c.done;c=B.next())c=c.value,c.isAsync&&c.ptb&&_.FP("CATSTAT",_.y27(2,c))};
_.bI=function(B,c){B=_.XI("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",B);(c===void 0?0:c)?_.Zyq(B,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.$H(_.nr(),B,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
f5X=function(){if(!Hyd){if(Polymer.Base){var B=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{B.apply(this,arguments)}catch(C){_.SI(C)}};
var c=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{c.apply(this,arguments)}catch(C){_.SI(C)}};
var x=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{x.apply(this,arguments)}catch(C){_.SI(C)}};
var P=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{P.apply(this,arguments)}catch(C){_.SI(C)}};
var Y=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(C,h,V){var N=function(){try{V.apply(this,arguments)}catch(l){_.SI(l)}};
g.set(V,N);Y.call(this,C,h,N)};
var k=Polymer.Base._unlisten;Polymer.Base._unlisten=function(C,h,V){k.call(this,C,h,g.get(V))}}if(Polymer.Async){var n=Polymer.Async,b=n._atEndOfMicrotask;
n._atEndOfMicrotask=function(){try{b.apply(n,arguments)}catch(C){_.SI(C)}}}if(Polymer.RenderStatus){var d=Polymer.RenderStatus,q=d.afterNextRender;
d.afterNextRender=function(C,h,V){q.call(d,C,function(){try{h.apply(this,arguments)}catch(N){_.SI(N)}},V)}}Hyd=!0}};
_.Kr=function(B){var c=B?_.$u(B):"";if(c){if(c.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(c.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(c.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(c.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(c.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.T("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";c=c.toLowerCase();if(c==="/")return"home";if(c==="/channel_memberships")return"channel-memberships-shopfront";if(c.indexOf("/feed/trending")===0)return"trending";if(c.indexOf("/feed/explore")===0)return"explore";if(c.indexOf("/live")===0)return"live";if(c.indexOf("/results")===0)return"search";if(c.indexOf("/sports")===0)return"sports";if(c.indexOf("/fashion")===0||c.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(c))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(c))return _.T("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/")===0||c.indexOf("/user/")===0||c.indexOf("/gaming")===0||c.indexOf("/post/")===0)return"channel";if(iyY(B))return"show";if(c==="/playlist"||c.indexOf("/playlist/")===0||c==="/view_play_list"||c.indexOf("/view_play_list/")===0||c.indexOf("/show/")===0)return"playlist";if(c==="/feed/history"||c.indexOf("/feed/history/")===0)return"history";if(c===
"/new")return"labs";if(c==="/feed/subscriptions")return"subscriptions";if(c.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(c==="/history_controls")return"standalone";if(c.indexOf("/account")===0||c==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(c.indexOf("/paid_memberships")===0||c.indexOf("/refund")===0||c.indexOf("/purchases")===0||c.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(c.indexOf("/product")===0)return"yts-products";if(c.indexOf("/premium")===
0||c.indexOf("/musicpremium")===0)return c.indexOf("/premium/offers")===0||c.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(c==="/cart/checkout"||c==="/cart")return"ypc-checkout";if(c.indexOf("/feed/downloads")===0||c.indexOf("/redeem")===0||c.indexOf("/reporthistory")===0)return"browse";if(c.indexOf("/hashtag")===0)return"hashtag-landing-page";if(c.indexOf("/handle")===0)return"handle";if(c.indexOf("/source")===0)return"audio-pivot";if(c.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(c.indexOf("/playables")===0)return"playables";if(c.indexOf("/create/live/join")===0)return"open-in-app";if(c.indexOf("/shorts")===0)return"shorts";if(c.indexOf("/feed/channels")===0)return"subscriptions-channels";(c=B?_.$u(B):"")&&c.indexOf("/watch")===0&&_.T("web_watch_enable_learning_journey")?(B=_.fa(B),B=!!B.list&&B.list.indexOf("LJPP")===0):B=!1;if(B)return"learning_journey_watch"}};
_.d_=function(B){var c,x;(B=(x=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:x.url)&&(c=_.Kr(B));return c};
iyY=function(B){var c=B?_.$u(B):"";if(!c)return!1;c=c.toLowerCase();return c.indexOf("/show/")===0||c.indexOf("/playlist")===0&&(B=_.fa(B),B.list&&B.list.indexOf("EL")===0)?!0:!1};
hV=function(B){var c="unknown",x;var P=((x=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:x.webPageType)||"";P?(x=P.toLowerCase(),x.startsWith("web_page_type_")&&(x=x.slice(14))):x=P;x&&A2C[x.toUpperCase()]?c=A2C[x.toUpperCase()]:_.t(B,_.qA)||_.t(B,ujX)?c="browse":_.t(B,_.Cr)?c="search":_.t(B,_.fN)&&(c="watch");c==="watch"&&_.d_(B||null)==="learning_journey_watch"&&(c="learning_journey_watch");c==="unknown"&&_.Ob(Error("Lf`"+JSON.stringify({clickTrackingParams:B==null?void 0:B.clickTrackingParams,
commandMetadata:B==null?void 0:B.commandMetadata,allEndpointKeys:Object.keys(B||[])})));return c};
_.mz=function(B){if(!_.D4o||B)_.D4o=_.KH();return _.D4o};
_.r2X=function(B){return!!_.t(B,_.fN)||!!_.t(B,_.TF)&&_.T("kevlar_enable_shorts_prefetch")};
_.RRC=function(B,c){B=_.t(B,_.fN)||_.t(B,_.TF);return"v"+B.videoId+(B.playlistId?"-pl"+B.playlistId:"")+(c?"-an1":"")+(B.params?"-pr"+B.params:"")};
Vy=function(B){return function(){return new B}};
tV=function(B){var c=_.cp();return function(){return c.resolve(B)}};
BGQ=function(B){var c=_.Yu("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;if(!_.t(B,_.TF))return c&&_.Ob(Error("Of")),!1;var x;return _.T("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.t(B,_.TF))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:eR$(B)?!0:(c&&_.Ob(Error("Pf")),!1)};
eR$=function(B){var c=(_.t(B,_.fN)||_.t(B,_.TF)).videoId;if(!c||!c6$.test(c))return!1;var x;return(B=(x=_.t(B.commandMetadata,_.Br))==null?void 0:x.url)&&(B.includes(c)||B.startsWith("/clip"))?!0:!1};
_.PDY=function(){var B=_.CW();return B.getFlag(192)?B.getFlag(190):!(_.T("web_watch_cinematics_disabled_by_default")||_.T("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&x37())};
_.w_=function(B,c,x){var P={};P.currentUrl=c;P.vis=B.vis!==void 0?B.vis:0;P.splay=!1;c=_.CW();P.autoCaptionsDefaultOn=c.getFlag(66);c.getFlag(141)?c.getFlag(140)?P.autonavState="STATE_OFF":P.autonavState="STATE_ON":P.autonavState="STATE_NONE";P.html5Preference="HTML5_PREF_WANTS";isNaN(_.v5("STS"))||(P.signatureTimestamp=_.v5("STS"));B.autonav&&(P.autoplay=!0,P.autonav=!0);B.mutedAutoplay&&(P.autoplay=!0,P.mutedAutoplay=!0);B.inlinePlayback&&(P.autoplay=!0,P.autonav=!1,P.isInlineUnmutedPlayback=!!B.inlineUnmuted);
P.referer=x;P.lactMilliseconds=B.lact!==void 0?B.lact.toString():"-1";_.T("enable_unknown_lact_fix_on_html5")&&P.lactMilliseconds==="-1"&&_.Ob(new _.mc("Unknown LACT is set in playbackContext.",{"lact in tempData":B.lact||"undefined",autonav:B.autonav||"undefined"}));B={};c.getFlag(194)&&(B.hasShownAmbientMode=!0);c.getFlag(192)&&(B.hasToggledOffAmbientMode=!0);_.PDY()&&(B.watchAmbientModeEnabled=!0);P.watchAmbientModeContext=B;return P};
Y2q=function(B){var c={},x=B.pbis||0;x&&(c.playbackBeginsInSeconds=x);B.prefetch_reason&&B.prefetch_reason==="hc_pbis"&&(c.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return c};
_.Iu=function(B){B=B===void 0?!1:B;var c=_.CW(),x="USER_INTERFACE_THEME_LIGHT";c.getFlag(165)?x="USER_INTERFACE_THEME_DARK":c.getFlag(174)?x="USER_INTERFACE_THEME_LIGHT":_.NA()&&(x="USER_INTERFACE_THEME_DARK");return B?x:aPo()||x};
_.gJA=function(){return!_.T("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.NA=function(){return _.gJA()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.JV=function(){var B=_.CW();return _.gJA()&&!B.getFlag(165)&&!B.getFlag(174)};
aPo=function(){var B=B===void 0?window.location.href:B;if(_.T("kevlar_disable_theme_param"))return null;var c=_.$u(B);if(_.siC(c))return"USER_INTERFACE_THEME_DARK";try{var x=_.fa(B).theme;return pVQ.get(x)||null}catch(P){}return null};
_.siC=function(B){return _.T("enable_dark_theme_only_on_shorts")?!(B==null||!B.startsWith("/shorts/")):!1};
_.$3X=function(B,c,x,P,Y){c=c===void 0?!1:c;x=x===void 0?!1:x;var g=_.v5("INNERTUBE_CONTEXT");if(!g)return _.lb(Error("Sf")),{};g=(0,_.wW.unsafeClone)(g);_.T("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var k=g.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=_.v5("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints=window.innerHeight;k.screenPixelDensity=
Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());k.userInterfaceTheme=_.Iu();if(!c){var n=_.aaX();n&&(k.connectionType=n);_.T("web_log_effective_connection_type")&&(n=ss7())&&(g.client.effectiveConnectionType=n)}var b;if(_.T("web_log_memory_total_kbytes")&&((b=_.xI.navigator)==null?0:b.deviceMemory)){var d;b=(d=_.xI.navigator)==null?void 0:d.deviceMemory;g.client.memoryTotalKbytes=""+b*1E6}c&&P&&!_.T("web_it_context_set_original_url_ks")&&
(k.originalUrl=kOY(_.xI.location.href,P).toString());_.T("web_gcf_hashes_innertube")&&(n=qp7())&&(d=n.coldConfigData,b=n.coldHashData,n=n.hotHashData,g.client.configInfo=g.client.configInfo||{},d&&(g.client.configInfo.coldConfigData=d),b&&(g.client.configInfo.coldHashData=b),n&&(g.client.configInfo.hotHashData=n));d=_.fa(_.xI.location.href);!_.T("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(k.internalGeo=d.internalcountrycode);!_.T("web_populate_client_screen_killswitch")&&Y&&(k.clientScreen=
Y);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo||(k.mainAppWebInfo={}),k.mainAppWebInfo.graftUrl=P||_.xI.location.href,_.T("kevlar_woffle")&&_.Wq.instance&&(P=_.Wq.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!P.appInstalledEventFired&&P.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=Xr7(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&
(!_.T("web_lr_app_quality_killswitch")&&(P=_.v5("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:P})),P=_.v5("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:P}));!_.T("web_populate_time_zone_itc_killswitch")&&(P=Phw())&&(k.timeZone=P);(P=VOC())?k.experimentsToken=P:delete k.experimentsToken;k=tO$();P=_.XVA();P=(0,_.wW.getValues)(P.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:k,consistencyTokenJars:P});
!_.T("web_prequest_context_killswitch")&&(k=_.v5("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=k);P=_.CW();k=P.getFlag(58);P=P.get("gsml","");g.user=Object.assign({},g.user);k&&(g.user.enableSafetyMode=k);P&&(g.user.lockedSafetyMode=!0);_.T("warm_op_csn_cleanup")?x&&(c=_.Wf())&&(g.clientScreenNonce=c):!c&&(c=_.Wf())&&(g.clientScreenNonce=c);B&&(g.clickTracking={clickTrackingParams:B});if(B=_.Gu("yt.mdx.remote.remoteClient_"))g.remoteClient=B;_.lI.getInstance().setLocationOnInnerTubeContext(g);
try{var q=Q1l(),C=q.bid;delete q.bid;g.adSignalsInfo={params:[],bid:C};for(var h=_.p(Object.entries(q)),V=h.next();!V.done;V=h.next()){var N=_.p(V.value),l=N.next().value,E=N.next().value;q=l;C=E;B=void 0;(B=g.adSignalsInfo.params)==null||B.push({key:q,value:""+C})}var S,M;if(((S=g.client)==null?void 0:S.clientName)==="TVHTML5"||((M=g.client)==null?void 0:M.clientName)==="TVHTML5_UNPLUGGED"){var f=_.v5("INNERTUBE_CONTEXT");f.adSignalsInfo&&(g.adSignalsInfo.advertisingId=f.adSignalsInfo.advertisingId,
g.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=f.adSignalsInfo.limitAdTracking)}}catch(Z){_.lb(Z)}return g};
_.nJo=function(B){var c=new Ei(_.v5("ONE_PICK_URL",""));c.urlParamMap_.set("hostId",B);(B=_.v5("GAPI_LOCALE"))&&c.urlParamMap_.set("hl",B);(B=_.v5("SESSION_INDEX"))&&c.urlParamMap_.set("authuser",B);(B=_.v5("DELEGATED_SESSION_ID"))&&c.urlParamMap_.set("groupId",B);return c};
KWd=function(){var B=_.cp(),c=B.resolve(_.Oi);B=B.resolve(_.ou);return new bQY(c,B)};
U3x=function(B){if(window.IntersectionObserver)return new jid(B,400);throw new TypeError("Zf");};
q27=function(){var B=Hammer.TouchAction,c=B.prototype.preventDefaults;B.prototype.preventDefaults=function(x){var P=this.actions.indexOf("pan-down")>-1;if(!P)return c.call(this,x);if(!d3w){var Y=x.srcEvent;x=x.direction;var g;if((g=this.manager)==null?0:g.session.prevented)Y.preventDefault();else if(P&&x&Hammer.DIRECTION_DOWN)return this.preventSrc(Y)}}};
CDC=function(B){if(!B||B.size===0)return Hammer.DIRECTION_ALL;if(B.size===2){if(B.has("up")&&B.has("down"))return Hammer.DIRECTION_VERTICAL;if(B.has("right")&&B.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(B.size===1){if(B.has("up"))return Hammer.DIRECTION_UP;if(B.has("down"))return Hammer.DIRECTION_DOWN;if(B.has("right"))return Hammer.DIRECTION_RIGHT;if(B.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.m3l=function(){return hV7?Promise.resolve(hV7):new Promise(function(B,c){var x=self.indexedDB.open("swpushnotificationsdb");x.onerror=c;x.onsuccess=function(){var P=x.result;if(P.objectStoreNames.contains("swpushnotificationsstore"))hV7=P,B(hV7);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.m3l()};
x.onupgradeneeded=TGO})};
TGO=function(B){B=B.target.result;B.objectStoreNames.contains("swpushnotificationsstore")&&B.deleteObjectStore("swpushnotificationsstore");B.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
tp7=function(B){var c=Vp7(),x;return _.X(function(P){switch(P.nextAddress){case 1:return _.kM(P,2),_.K(P,B.match(c,{cacheName:"yt-appshell-assets"}),4);case 4:x=P.yieldResult;_.Gw(P,3);break;case 2:_.be(P);case 3:return P.return(x)}})};
Vp7=function(){var B=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?wV$.registration.scope:NGl;B.endsWith("/")&&(B=B.slice(0,-1));return B+"/app_shell_home"};
IPI=function(B){B.map(function(c){return c.source}).join("|")};
_.J6C=function(B){return _.X(function(c){return c.return(tp7(B))})};
WWC=function(){var B=window.caches,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,_.J6C(B),2);c=x.yieldResult;return x.return(!!c)})};
vJ7=function(){_.X(function(B){if(B.nextAddress==1){if(lP7)return B.jumpTo(0);lP7=!0;if(_.T("enable_system_health_primes_monitoring"))return _.ku(EJQ,3E4),OQ7(),B.return();if(!(Math.random()<_.Yu("web_system_health_fraction")))return B.jumpTo(0);oJd={heightPixels:screen.height,widthPixels:screen.width};Qy&&!isNaN(Qy.jsHeapSizeLimit)&&(oJd.memoryTotalKbytes=String(Math.round(Qy.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(oJd.devicePixelRatio=window.devicePixelRatio);return _.K(B,QiI(),4)}_.ku(EJQ,
3E4);return _.K(B,FW$(),0)})};
QiI=function(){return _.X(function(B){if(B.nextAddress==1)return FI.intersectionObserverPresent="IntersectionObserver"in window,FI.serviceWorkerPresent="serviceWorker"in navigator,FI.webSharePresent="share"in navigator,FI.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,FI.cacheStoragePresent="caches"in window,FI.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,FI.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
FI.webkitTemporaryStoragePresent="webkitTemporaryStorage"in vq&&vq.webkitTemporaryStorage&&"queryUsageAndQuota"in vq.webkitTemporaryStorage,FI.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.K(B,zkd(),2);FI.indexedDbPresent=B.yieldResult;FI.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;FI.broadcastChannelPresent="BroadcastChannel"in window;FI.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(FI.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,FI.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Kq(B)})};
EJQ=function(){var B=9E4+Math.random()*2E3;_.co()>B||(_.T("enable_system_health_primes_monitoring")?OQ7():FW$())};
FW$=function(){var B;return _.X(function(c){if(c.nextAddress==1)return _.K(c,zVY(),2);B=c.yieldResult;_.JP("systemHealthCaptured",B);_.Kq(c)})};
OQ7=function(){var B={metric:{}},c=S27();c.networkEvents.length&&(B.metric.networkEvents=y6$(c));_.JP("systemHealthCaptured",B)};
zVY=function(){var B,c,x,P,Y,g,k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:B={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)};c=window.screen;_.T("enable_is_extended_monitoring")&&c&&"isExtended"in c&&(B.isExtended=!!c.isExtended);x={metric:{staticContext:oJd,dynamicContext:B,webMetric:GO7,webApiSupport:FI}};
if(P=_.Wf())x.csn=P;Qy&&(x.metric.webMetric.currentHeapKbytes=Math.round(Qy.usedJSHeapSize/1E3));window.matchMedia&&(x.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,x.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,x.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in vq&&typeof vq.getBattery==="function")){q.jumpTo(2);break}return _.K(q,vq.getBattery(),3);case 3:if(Y=
q.yieldResult)x.metric.dynamicContext.chargingStatus=Y.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(x.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(FI.storageEstimatePresent)return _.K(q,navigator.storage.estimate(),8);if(!FI.webkitTemporaryStoragePresent){q.jumpTo(5);break}return _.K(q,Mp7(),7);case 7:g=q.yieldResult;q.jumpTo(5);break;case 8:g=q.yieldResult;case 5:return x.metric.dynamicContext.deviceStorageQuotaMbytes=((k=g)==null?0:k.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",x.metric.dynamicContext.deviceStorageUsageMbytes=((n=g)==null?0:n.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",b=x.metric.dynamicContext,_.K(q,WWC(),9);case 9:return b.hasAppShell=q.yieldResult,d=S27(),d.networkEvents.length&&(x.metric.networkEvents=y6$(d)),q.return(x)}})};
Mp7=function(){return new Promise(function(B){var c;FI.webkitTemporaryStoragePresent&&(c=vq.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?vq.webkitTemporaryStorage.queryUsageAndQuota(function(x,P){B({usage:x,quota:P})}):B(void 0)})};
_.zF=function(B){B&=16777215;B=[(B&16711680)>>16,(B&65280)>>8,B&255];return LWI(B[0],B[1],B[2])};
_.SF=function(B){B=[(B&16711680)>>>16,(B&65280)>>>8,B&255,(B&4278190080)>>>24];var c=_.ZQx(B,function(x){return x==(x&255)});
B[3]=(B[3]/255).toFixed(3);if(!c)throw Error("$f`"+B.join(","));return"rgba("+B.join(",")+")"};
_.HQl=function(B){return[(B&16711680)>>>16,(B&65280)>>>8,B&255]};
_.fPQ=function(B){B=B.map(function(c){c/=255;return c<=.03928?c/12.92:Math.pow((c+.05)/1.05,2.4)});
return B[0]*.2126+B[1]*.7152+B[2]*.0722};
yy=function(B,c){B=_.HQl(B);return"rgba("+B[0]+", "+B[1]+", "+B[2]+", "+c+")"};
_.iQI=function(){try{return!!self.localStorage}catch(B){return!1}};
r6l=function(){if(A6w())_.Ob(Error("ag"));else{var B=document.createElement("iframe");B.style.display="none";var c=c===void 0?window.location.href:c;var x=_.OE(_.v5("PERSIST_IDENTITY_IFRAME_URL"));c=x?x:(new URL(c)).host.indexOf("studio")===0?_.PM(urw,"persist_identity"):_.PM(D3A,"persist_identity");_.q07(B,1,c);B.id="persist_identity";var P;(P=document.body)==null||P.appendChild(B)}};
A6w=function(){var B=RVq;B||(B=document.querySelector("#persist_identity"));return B};
eVd=function(){var B=!1;try{B=!!window.sessionStorage.getItem("session_logininfo")}catch(c){B=!0}return(_.v5("INNERTUBE_CLIENT_NAME")==="WEB"||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&B};
BZO=function(B,c){if(!eVd())return!1;c||(c=_.v5("LOGIN_INFO"));return c?(B.session_logininfo=c,!0):!1};
xzC=function(B,c){B=B===void 0?!1:B;if((c===void 0||!c)&&cuX!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.zu("LOG_STICKINESS",!1)){c=_.Wf();var x=_.Jg(),P={identityStickinessData:{initialState:cuX}};c&&x&&_.Ai(c,x,P)}if(c=A6w())if(x=c.src?(new URL(c.src)).origin:"*",B){var Y;(Y=c.contentWindow)==null||Y.postMessage({action:"clear"},x)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(B=window.sessionStorage.getItem("session_logininfo"))){var g;(g=c.contentWindow)==null||g.postMessage({loginInfo:B},x)}};
_.GF=function(B){B=B===void 0?!0:B;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.FP("LOGIN_INFO",""),B&&window.sessionStorage.setItem("from_switch_account","1"),xzC(!0,B)}catch(c){}};
P6q=function(B){B&&(B.startsWith("https://accounts.google.com/AddSession")?_.GF():B.startsWith("https://accounts.google.com/ServiceLogin")?_.GF():B.startsWith("https://myaccount.google.com")&&_.ZM(B).getPath().endsWith("/youtubeoptions")&&_.GF())};
MA=function(B,c){P6q(B);if(_.zu("LOGGED_IN",!0)&&eVd()){var x=BBx(B);x==null&&(x={});BZO(x,c)&&_.Da(B,x)}};
YUw=function(){function B(c){for(c=c.target;c&&c.nodeName!=="A";)if(c=c.parentNode,!(c&&c instanceof HTMLElement))return;if(c&&!c.hasAttribute("download")&&c.getAttribute("rel")!=="external"&&c.href)return c.href}
document.addEventListener("mousedown",function(c){c.button!==0&&(c=B(c))&&MA(c)});
document.addEventListener("click",function(c){(c=B(c))&&MA(c)})};
seA=function(){var B=new a4w;try{if(_.zu("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(n){B.increment(5,!1);return}if(_.v5("LOGIN_INFO")){var c=gGC?gGC:window.location;_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&r6l();var x=BBx(c.href);x==null&&(x={});var P=x.session_logininfo,Y=Number(window.sessionStorage.getItem("stickiness_reload")),g=P===_.v5("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Y>=2||g)Y>=2?B.increment(2,g):g?B.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(B.increment(3,g),cuX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.v5("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.v5("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))B.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(Y<2){window.sessionStorage.setItem("stickiness_reload",String(Y+1));var k=c.href;k=_.rx(k,"sttick");MA(k,window.sessionStorage.getItem("session_logininfo"));k=_.ik(k,{sttick:Y});B.increment(Y,g);_.iV(c,k)}}else B.increment(6,!1)}else _.GF(!1)}catch(n){}};
_.Lr=function(B,c,x,P,Y){c=c===void 0?{}:c;x=x===void 0?"":x;P=P===void 0?window:P;B=_.AR(B,c);MA(B);x=_.Tz(B+x,Y);_.iV(P.location,x)};
_.pDw=function(B,c,x,P,Y){Y=Y===void 0?!1:Y;x&&_.Da(B,x);x=_.Tz(B);var g=_.UG(x);B!=g&&_.MR(Error("bg`"+B));B=g;c=c||zk(B).toString(36);try{if(Y)return Y=B,Y=brQ(Y),MA(Y),_.oW(window,Y,c,"attributionsrc")}catch(k){_.SI(k)}MA(B);return _.oW(window,x,c,P)};
kHC=function(B){if(B.urlEndpoint){if(B=_.fa(B.urlEndpoint.url),B.adurl)return eI(B.adurl)}else if(B.watchEndpoint)return"//www.youtube.com/watch?v="+B.watchEndpoint.videoId;return null};
XDY=function(B){if(!B||!B.reportingPings)return null;var c={};B.reportingPings.forEach(function(x){x.pingType in c?c[x.pingType].push(x.url):c[x.pingType]=[x.url]});
return{adpings:$M7(c)}};
_.Z3=function(){return{isShellLoad:_.zu("IS_SHELL_LOAD",!1)}};
nGq=function(){navigator.serviceWorker.getRegistrations().then(function(B){B.forEach($zI)})};
$zI=function(B){B&&_.bjC(KAY,B.scope)};
_.bjC=function(B,c){c={scope:c||_.aH("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.X_(B),c)};
Hq=function(B,c,x,P){if(c&&c.serializedYpcCujLoggingParams){if(x){var Y={};Y.transactionErrorType=x;P&&(Y.errorMessage=P);c.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Y}}}x={};x.ypcCujContext=c;B=_.XI("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",B,x);_.$H(_.nr(),B,"FLOW_TYPE_YPC_ACQUISITION")}};
_.jeX=function(B,c,x,P){var Y={};Y.serializedTransactionFlowLoggingParams=c;x&&(Y.errorType=x);P&&(Y.errorMessage=P);_.JP(B,Y);_.Wo()};
_.UzX=function(B){B&&_.jeX("transactionFlowStarted",B)};
_.dzo=function(B){B&&_.jeX("transactionFlowCancelled",B)};
_.fr=function(B,c,x){c&&_.jeX("transactionFlowFailed",c,B,x)};
qUX=function(B){var c=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");c&&(c.inert=B)};
_.iI=function(){this.megabloxUrl_=null};
_.AV=function(B){try{var c=C6d==null?void 0:C6d.composedPath(B)}catch(x){c=B.composedPath?B.composedPath():[]}return c&&c.length>0?c:B.composedPath?B.composedPath():[]};
_.uI=function(B){return _.AV(B)[0]};
_.D3=function(B){if(!(B instanceof Element))return null;B=B.classList?Array.from(B.classList):void 0;if(!B)return null;var c=B.indexOf("style-scope");return c>-1&&c+1<B.length?B[c+1]:null};
r_=function(B){if(!(B instanceof HTMLElement))return null;var c=B&&(B.$$||B.polymerController)?B.tagName.toLowerCase():null;return c?c:_.D3(B)};
h0$=function(B,c){return B.replace(/[^a-z]*[^\s]+/g,function(x){return x+".style-scope."+c})};
mz7=function(B,c){return c?B.split(",").map(function(x){return h0$(x.trim(),c)}).join(", "):B};
_.Ru=function(B){var c,x,P,Y;return(Y=(P=(x=(c=B.root)!=null?c:B.shadowRoot)!=null?x:B.__shady_native_shadowRoot)!=null?P:B.__shady_shadowRoot)!=null?Y:B};
eF=function(B){return B instanceof ShadowRoot?ShadowRoot:B instanceof DocumentFragment?DocumentFragment:B instanceof Document?Document:HTMLElement};
TZw=function(B){var c,x,P;return(P=(x=(c=B.parentElement)!=null?c:B.__shady_native_parentElement)!=null?x:B.__shady_parentElement)!=null?P:null};
VMX=function(B){var c,x,P;return(P=(x=(c=B.parentNode)!=null?c:B.__shady_native_parentNode)!=null?x:B.__shady_parentNode)!=null?P:null};
tMO=function(B){var c,x,P;return(P=(x=(c=B.__shady_parentNode)!=null?c:B.__shady_native_parentNode)!=null?x:B.parentNode)!=null?P:null};
wDY=function(B){var c,x;return(x=(c=VMX(B))!=null?c:B.host)!=null?x:null};
NZo=function(B){var c,x,P;return(P=(x=(c=B.nextSibling)!=null?c:B.__shady_native_nextSibling)!=null?x:B.__shady_nextSibling)!=null?P:null};
I4q=function(B){var c,x,P;return(P=(x=(c=B.previousSibling)!=null?c:B.__shady_native_previousSibling)!=null?x:B.__shady_previousSibling)!=null?P:null};
JuX=function(B){var c,x,P;return(P=(x=(c=B.nextElementSibling)!=null?c:B.__shady_native_nextElementSibling)!=null?x:B.__shady_nextElementSibling)!=null?P:null};
WA7=function(B){var c,x,P;return(P=(x=(c=B.previousElementSibling)!=null?c:B.__shady_native_previousElementSibling)!=null?x:B.__shady_previousElementSibling)!=null?P:null};
l4w=function(B){var c,x,P;return new Set([].concat(_.wq((c=B.children)!=null?c:[]),_.wq((x=B.__shady_native_children)!=null?x:[]),_.wq((P=B.__shady_children)!=null?P:[])))};
EG7=function(B){var c,x,P;return new Set([].concat(_.wq((c=B.childNodes)!=null?c:[]),_.wq((x=B.__shady_native_childNodes)!=null?x:[]),_.wq((P=B.__shady_childNodes)!=null?P:[])))};
Ojo=function(B){if(!B)return null;var c=_.D3(B);if(!c){var x;return(x=Node.prototype.getRootNode)==null?void 0:x.call(B)}c=c.toUpperCase();for(B=TZw(B);B&&B.tagName!==c;)B=TZw(B);return B?_.Ru(B):null};
oGl=function(B){for(;B&&!(B instanceof HTMLElement);)B=wDY(B);return B};
QeY=function(B){var c=oGl(B);return B===c?_.D3(B):c?r_(c):null};
FAl=function(B){return(B=oGl(B))?r_(B):null};
vGd=function(B){if(B instanceof Comment)return!1;if(B instanceof Text){var c,x;if(((x=(c=B.textContent)==null?void 0:c.trim())!=null?x:"")==="")return!1}return!0};
BW=function(B,c,x){var P=c(B);for(x=x===void 0?FAl(B):x;P&&(QeY(P)!==x||!vGd(P));)B=P,P=c(B);return P};
z0Y=function(B,c,x){if(!c)return null;B=FAl(B);return QeY(c)===B&&vGd(c)?c:BW(c,x,B)};
SU7=function(B){return BW(B,tMO,_.D3(B))};
yuo=function(B){return BW(B,JuX)};
GHx=function(B){return BW(B,NZo)};
MMC=function(B){return BW(B,WA7)};
LA$=function(B){return BW(B,I4q)};
ZjO=function(B){return z0Y(B,B.firstChild||B.__shady_native_firstChild||B.__shady_firstChild||null,NZo)};
Hjo=function(B){var c,x,P;var Y=(P=(x=(c=B.firstElementChild)!=null?c:B.__shady_native_firstElementChild)!=null?x:B.__shady_firstElementChild)!=null?P:null;return z0Y(B,Y,JuX)};
f4I=function(B){var c,x,P;var Y=(P=(x=(c=B.lastChild)!=null?c:B.__shady_native_lastChild)!=null?x:B.__shady_lastChild)!=null?P:null;return z0Y(B,Y,I4q)};
ij7=function(B){var c,x,P;var Y=(P=(x=(c=B.lastElementChild)!=null?c:B.__shady_native_lastElementChild)!=null?x:B.__shady_lastElementChild)!=null?P:null;return z0Y(B,Y,WA7)};
Auq=function(B){var c=FAl(B);return Array.from(EG7(B)).filter(function(x){return QeY(x)===c})};
uhO=function(B){var c=r_(B);return Array.from(l4w(B)).filter(function(x){return _.D3(x)===c})};
_.cW=function(B,c,x){if(B instanceof HTMLElement&&_.D3(B)===x){var P=Array.from(B.classList).indexOf("style-scope");if(P===-1)B.classList.add("style-scope"),B.classList.add(c);else if(!(P+1>=B.classList.length)){P=B.classList[P+1];var Y,g;B==null||(Y=B.classList)==null||(g=Y.replace)==null||g.call(Y,P,c)}}if(B instanceof HTMLElement||B instanceof DocumentFragment)for(Y=_.p(l4w(B)),g=Y.next();!g.done;g=Y.next())_.cW(g.value,c,x);return B};
x9=function(B,c){if(B instanceof HTMLElement&&_.D3(B)===c){var x=Array.from(B.classList).indexOf("style-scope");x===-1||x+1>=B.classList.length||B.classList.remove("style-scope",B.classList[x+1])}if(B instanceof HTMLElement||B instanceof DocumentFragment){x=_.p(B.children);for(var P=x.next();!P.done;P=x.next())x9(P.value,c)}return B};
_.DzA=function(B,c){return eF(B).prototype.appendChild.call(B,c)};
ruY=function(B,c){if(B===c)return!0;B=EG7(B);return Array.from(B).some(function(x){return ruY(x,c)})};
_.Y9=function(B,c){if(B instanceof PW)return B;(c==null?0:c.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(B,"ownerDocument")&&Object.defineProperty(B,"ownerDocument",{get:function(){return window.document}});
return new PW(B)};
e07=function(){var B=PW.prototype,c=[].concat(_.wq(R0Y?[]:["getRootNode"]),["setAttribute","removeAttribute"]);c=_.p(c);for(var x=c.next(),P={};!x.done;P={method$jscomp$48:void 0},x=c.next())P.method$jscomp$48=x.value,B[P.method$jscomp$48]=function(Y){return function(){return this.host[Y.method$jscomp$48].apply(this.host,arguments)}}(P)};
c7C=function(){var B=PW.prototype,c=[].concat(_.wq(R0Y?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.wq(BAd?[]:["querySelector","querySelectorAll"]));c=_.p(c);for(var x=c.next(),P={};!x.done;P={method$jscomp$49:void 0},x=c.next())P.method$jscomp$49=x.value,B[P.method$jscomp$49]=function(Y){return function(){return this.root[Y.method$jscomp$49].apply(this.root,arguments)}}(P)};
Yfo=function(){var B=PW.prototype,c=[].concat(_.wq(xTC?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.wq(PSI?[]:["parentNode"]));c=_.p(c);for(var x=c.next(),P={};!x.done;P={prop$jscomp$62:void 0},x=c.next())P.prop$jscomp$62=x.value,Object.defineProperty(B,P.prop$jscomp$62,{get:function(Y){return function(){return this.host[Y.prop$jscomp$62]}}(P),
configurable:!0})};
sN$=function(){var B=PW.prototype,c=["activeElement"].concat(_.wq(xTC?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.wq(arX?[]:["children"]),_.wq(gSl?[]:["lastChild"]));c=_.p(c);for(var x=c.next(),P={};!x.done;P={prop$jscomp$63:void 0},x=c.next())P.prop$jscomp$63=x.value,Object.defineProperty(B,P.prop$jscomp$63,{get:function(Y){return function(){return this.root[Y.prop$jscomp$63]}}(P),
configurable:!0})};
pC7=function(){for(var B=PW.prototype,c=_.p(["innerHTML","textContent"]),x=c.next(),P={};!x.done;P={prop$jscomp$64:void 0},x=c.next())P.prop$jscomp$64=x.value,Object.defineProperty(B,P.prop$jscomp$64,{get:function(Y){return function(){return this.root[Y.prop$jscomp$64]}}(P),
set:function(Y){return function(g){this.root[Y.prop$jscomp$64]=g}}(P),
configurable:!0})};
kAC=function(B){var c=PW.prototype;B=_.p(Object.entries(B));for(var x=B.next(),P={};!x.done;P={fn$jscomp$361:void 0},x=B.next()){var Y=_.p(x.value);x=Y.next().value;Y=Y.next().value;P.fn$jscomp$361=Y;c[x]=function(g){return function(){return g.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.wq(arguments)))}}(P)}};
$T7=function(){for(var B=PW.prototype,c=_.p(Object.entries(XCq)),x=c.next(),P={};!x.done;P={fn$jscomp$362:void 0},x=c.next()){var Y=_.p(x.value);x=Y.next().value;Y=Y.next().value;P.fn$jscomp$362=Y;Object.defineProperty(B,x,{get:function(g){return function(){return g.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.wq(arguments)))}}(P),
configurable:!0})}};
_.aB=function(B){return B instanceof nSC||B instanceof Document?B:new nSC(B)};
bG7=function(){for(var B=nSC.prototype,c=_.p("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),x=c.next(),P={};!x.done;P={method$jscomp$50:void 0},x=c.next())P.method$jscomp$50=x.value,B[P.method$jscomp$50]=function(Y){return function(){return HTMLElement.prototype[Y.method$jscomp$50].call.apply(HTMLElement.prototype[Y.method$jscomp$50],[this.node].concat(_.wq(arguments)))}}(P)};
KPl=function(){for(var B=nSC.prototype,c=_.p("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),x=c.next(),P={};!x.done;P={prop$jscomp$65:void 0},x=c.next())P.prop$jscomp$65=x.value,Object.defineProperty(B,P.prop$jscomp$65,{get:function(Y){return function(){var g;return(g=this.node["__shady_native_"+Y.prop$jscomp$65])!=null?g:this.node[Y.prop$jscomp$65]}}(P),
configurable:!0})};
_.gM=function(B,c,x){x===void 0&&(x=!B.classList.contains(c));x?B.classList.add(c):B.classList.remove(c)};
_.sm=function(B,c,x){x===void 0&&(x=!B.hasAttribute(c));if(c==="class")throw Error("fg");x?_.aB(B).setAttribute(c,""):_.aB(B).removeAttribute(c)};
jNw=function(B){return(B.localName!=="slot"?[]:(0,_.pF)(B).assignedNodes({flatten:!0})).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
_.UTl=function(B){return(B=_.Y9(B).querySelector("slot"))&&B.localName==="slot"?jNw(B):[]};
_.k9=function(B,c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(B,c)};
X2=function(B,c){var x=c.bind(B);return function(P){x(P,P.detail)}};
_.$9=function(B,c){var x=dTX.get(B);x||(x=new WeakMap,dTX.set(B,x));if(x.has(c))return x.get(c);if(_.T("web_fi_listen_disable_bound_fn_helper")){var P=c.bind(B);B=function(Y){P(Y,Y==null?void 0:Y.detail)}}else B=X2(B,c);
x.set(c,B);return B};
h8Q=function(B,c){qfq(B);B.created[CSw].push(c)};
qfq=function(B){if(!B.created||!B.created[CSw]){var c=B.created,x=c?[c]:[];B.created=function(){for(var P=_.p(x),Y=P.next();!Y.done;Y=P.next())Y.value.apply(this)};
B.created[CSw]=x}};
mT7=function(B){return function(){var c=_.ts.apply(0,arguments);return function(x,P,Y){B.apply(null,_.wq(c))(x,P,Y)}}};
TAA=function(){return function(){var B=_.ts.apply(0,arguments);return function(c,x,P){hvC.apply(null,_.wq(B))(c,x,P)}}};
_.J=function(B){return TAA()(B)};
_.Q=function(){return mT7(tXd).apply(null,_.wq(_.ts.apply(0,arguments)))};
_.nF=function(B){return _.T("pbcm_fi_listen_decorators")?V6C(B):mT7(T2C)(B)};
V6C=function(B){return function(c,x){h8Q(c,function(){var P=this[x],Y=_.T("web_fi_listen_disable_bound_fn_helper")?function(g){P(g,g.detail)}.bind(this):X2(this,P);
t67.has(B)?I1(this.hostElement,B,Y):this.hostElement.addEventListener(B,Y)})}};
_.bF=function(){return mT7(VXI).apply(null,_.wq(_.ts.apply(0,arguments)))};
_.F=function(B){B=B===void 0?{}:B;return mT7(mbQ)(B)};
_.KF=function(B){if(B.hostElement&&B!==B.hostElement){var c=_.m4(B.hostElement);c=B.renderIdom?c:c.shadowRoot}c||(B=B.root,c=B instanceof Node?_.m4(B):null);return c};
_.jr=function(B){return wCo?NAI(B):function(c,x){Object.defineProperty(c,x,{get:function(){var P;return(P=_.KF(this))==null?void 0:P.querySelector(B)},
enumerable:!0,configurable:!0})}};
NAI=function(B){return function(c,x){Object.defineProperty(c,x,{get:function(){var P,Y=(P=_.Y9(this.hostElement))==null?void 0:P.querySelector(B);if(Y)return Y;var g;return(g=_.KF(this))==null?void 0:g.querySelector(B)},
enumerable:!0,configurable:!0})}};
_.Um=function(B){return wCo?Ir7(B):function(c,x){Object.defineProperty(c,x,{get:function(){var P;return(P=_.KF(this))==null?void 0:P.querySelectorAll(B)},
enumerable:!0,configurable:!0})}};
Ir7=function(B){return function(c,x){Object.defineProperty(c,x,{get:function(){var P,Y=(P=_.Y9(this.hostElement))==null?void 0:P.querySelectorAll(B);if(Y==null?0:Y.length)return Y;var g;return(g=_.KF(this))==null?void 0:g.querySelectorAll(B)},
enumerable:!0,configurable:!0})}};
J7Y=function(B){return function(c){if(![_.u4,_.z].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("gg");nlA(Object.assign({},typeof B!=="string"?B:{is:B,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(c)}};
_.qi=function(){var B=B===void 0?{}:B;return function(c){if(![DF,_.dM].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("hg");bCY(Object.assign({},B,{disableInheritanceCheck:!0}))(c)}};
lrI=function(B,c){WP7[B]!=null||(WP7[B]=new Set);WP7[B].add(c)};
_.CF=function(){var B=_.bF.apply(null,_.wq(_.ts.apply(0,arguments)));return function(c,x){lrI(c.is,x);B(c,x)}};
TZ=function(B,c,x){if(h9(B)&&!ESw.has(c)){c=c.replace(/^JSC\$[\d]+_/,"");c=c.replace(/\.\d+(\.|$)/g,function(g,k){return".#"+k});
mU[B]!=null||(mU[B]={});var P,Y;(P=mU[B])[Y=c]!=null||(P[Y]=new Set);mU[B][c].has(x)||(mU[B][c].add(x),_.JP("polymerPropertyAccessEvent",{componentName:B,propertyName:c,accessType:x}))}};
OGX=function(){return _.T("polymer_property_access_logging_debug")||_.T("polymer_enable_property_access_logging")};
h9=function(B){if(_.T("polymer_property_access_logging_debug"))return!0;if(!_.T("polymer_enable_property_access_logging"))return!1;oSO||(oSO=Date.now());return(zk(B)+oSO)%100<_.Yu("polymer_property_access_logging_percent")};
QN7=function(B,c){return h9(c)&&B.hostElement.loggingStatus?new Proxy(B,{get:function(x,P,Y){if(x.hostElement.loggingStatus.bypassProxyController)return x[P];x.hostElement.loggingStatus.isExternalGet=!0;var g=x[P];x.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var k=_.ts.apply(0,arguments);try{return x.hostElement.loggingStatus.currentExternalCall=P,TZ(c,P,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===Y?x:this,k)}finally{x.hostElement.loggingStatus.currentExternalCall=
void 0}};
TZ(c,P,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(x,P,Y){if(x.hostElement.loggingStatus.bypassProxyController)return x[P]=Y,!0;x.hostElement.loggingStatus.isRendererStamper?TZ(c,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):x.hostElement.loggingStatus.isDeclarativeExternal||TZ(c,P,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{x.hostElement.loggingStatus.currentExternalSet=P,x[P]=Y}finally{x.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):B};
FP$=function(B,c){B&&B.loggingStatus&&!B.loggingStatus.isDeclarativeExternal&&!B.loggingStatus.isExternalGet&&B.loggingStatus.currentExternalSet!==c&&TZ(B.tagName.toLowerCase(),c,"PROPERTY_ACCESS_GET_INTERNAL")};
Vo=function(B,c,x){B&&(x||B.loggingStatus&&!B.loggingStatus.isInitializing&&!B.loggingStatus.isDefiningPropertyAccessor&&B.loggingStatus.currentExternalSet!==c)&&TZ(B.tagName.toLowerCase(),c,"PROPERTY_ACCESS_SET_INTERNAL")};
vSx=function(){return{_definePropertyAccessor:function(B,c){var x=this,P=x.hostElement.loggingStatus;P&&(P.isDefiningPropertyAccessor=!0);var Y=x[B];Y!==void 0&&(x.__data?x._setPendingProperty(B,Y):(x.__dataProto!=null||(x.__dataProto={}),x.__dataProto[B]=Y));P&&(P.isDefiningPropertyAccessor=!1);Object.defineProperty(this,B,{get:function(){FP$(x.hostElement,B);return this.__data[B]},
set:function(g){c||this._setPendingProperty(B,g,!0)&&this._invalidateProperties()}})},
created:function(){var B=this._setPendingProperty.bind(this);this._setPendingProperty=function(c,x,P){Vo(this.hostElement,c);return B.apply(this,[c,x,P])}}}};
z8I=function(B){OGX()&&_.J(t9.prototype)(B.prototype,"__templateBindingLoggingBehavior")};
Sfw=function(B,c){if(c.resolvedFactories.length!==B.resolvedFactories.length)return!0;c=_.p(c.resolvedFactories.entries());for(var x=c.next();!x.done;x=c.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;if(P.providerClass){if(P.providerClass!==B.resolvedFactories[x].providerClass)return!0}else if(P.providerValue){if(P.providerValue!==B.resolvedFactories[x].providerValue)return!0}else if(P.factory!==B.resolvedFactories[x].factory)return!0}return!1};
y7o=function(B,c){B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x.constructor===Array)y7o(x,c);else{var P=c;P.has(x)||(x.inject&&P.add(x),x.behaviors&&y7o(x.behaviors,P))}};
wM=function(B,c){var x=B[c];B[c]=function(){var P=_.ts.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(x)return x.apply(this,P)}};
ZG$=function(){_.Ni.Class=function(x,P){x=GAq(x,P);wM(x.prototype,"created");return x};
wM(IB.prototype,"_initializeProperties");wM(_.J9.prototype,"_initializeProperties");if(M6d)wM(LP$,"created");else{var B=function(){wM(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))B();else{var c=customElements.define;customElements.define=function(x,P,Y){c.call(customElements,x,P,Y);x==="tp-yt-iron-list"&&(B(),customElements.define=c)}}}};
fr7=function(B,c){B.prototype.behaviors=B.prototype.behaviors||[];B.prototype.behaviors.unshift(HGx.InjectBehavior);B.prototype.provide=c};
_.Em=function(B){return function(c){if(!B.disableElementRegistration){B.noInjection||fr7(c,B.providers);var x=c.prototype;x.__templateHelpers||hvC(WW.prototype)(x,"__templateHelpers");x=B.is;iGw||(iGw=Date.now());(zk(x)+iGw)%100<_.Yu("polymer_log_prop_change_observer_percent")&&hvC(lF.prototype)(c.prototype,"__propertyObserverObserver");c.prototype.behaviors=c.prototype.behaviors||[];c.prototype.behaviors.unshift(_.A7X.YtHostElementBehavior);z8I(c);J7Y({is:B.is,notifyObserversOnUndefined:B.notifyObserversOnUndefined!==
!1,fastInit:B.fastInit,template:B.template,disableEnforceFastDefaultValuesCheck:!0})(c)}}};
_.y=function(B){return _.Em({is:B.is,template:B.template,disableElementRegistration:B.disableElementRegistration,cssBuildOptOut:B.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
r7O=function(B,c){if(uN7){B=new B;for(var x=_.p(Object.getOwnPropertyNames(B)),P=x.next();!P.done;P=x.next())P=P.value,c[P]=B[P];for(x=c;x&&x!==Object.prototype;x=Object.getPrototypeOf(x)){P=_.p(Object.getOwnPropertyNames(x));for(var Y=P.next();!Y.done;Y=P.next())Y=Y.value,B.hasOwnProperty(Y)||Object.defineProperty(B,Y,DTI(c,Y))}}else B.apply(c)};
DTI=function(B,c){return{get:function(){var x=B[c];return x instanceof Function?x.bind(B):x},
set:function(x){B[c]=x}}};
e8l=function(B,c){for(var x=B._noAccessors,P=_.p(Object.getOwnPropertyNames(B)),Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,!R87.has(Y))if(x)c[Y]=B[Y];else{var g=Object.getOwnPropertyDescriptor(B,Y);g&&(g.configurable=!0,Object.defineProperty(c,Y,g))}};
B5q=function(B,c,x){return function(P){if(x){var Y=x();P.model=Y}if(B[c])B[c](P,P.detail)}};
Om=function(B){var c=[];if(typeof B==="string")B.length>0&&c.push.apply(c,_.wq(B.split(".")));else{B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,typeof x==="string"?c.push.apply(c,_.wq(x.split("."))):c.push(x)}return c};
cf7=function(B,c){if(c[c.length-1]!=="*"&&c[c.length-1]!=="splices"){for(var x=0;x<c.length;x++){if(!B)return;B=B[c[x]]}return B}};
xBO=function(B,c){if(B.length>c.length)return!1;for(var x=0;x<B.length;x++)if(B[x]!==c[x])return!1;return!0};
YAA=function(B,c,x){if(c.type==="compute"){var P=c.getter.bind(x);var Y=c.args}else P=function(){return x[c.method.methodName].apply(x,_.wq(_.ts.apply(0,arguments)))},Y=c.method.args;
POx(B,c.propertyKey,P,Y,c.value)};
gR7=function(B,c){if(c.readOnly){var x=Object.getOwnPropertyDescriptor(B.model,c.propertyKey);Object.defineProperty(B.model,c.propertyKey,{get:x.get,set:function(){}});
B.model[afx(c.propertyKey)]=x.set}};
sSl=function(B,c,x){if(x){var P=c.propertyKey,Y=c.selector;c=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.wq(c.selectorArgs.map(function(g){return{type:"path",path:g}})));
POx(B,P,function(g){var k=_.ts.apply(1,arguments);return Y.apply(null,[x.getState()].concat(_.wq(k)))},c)}};
k8Y=function(B,c,x){var P=_.bh(c.propertyKey)+"-changed";pTO(B,function(Y){var g={value:Y.value,queueProperty:!0};Y.path.split(".").length>1&&(g.path=Y.path);x.dispatchEvent(new CustomEvent(P,{detail:g}))},[{type:"wildcard",
path:c.propertyKey}])};
XTI=function(B,c,x){pTO(B,function(){x[c.method.methodName].apply(x,_.wq(_.ts.apply(0,arguments)))},c.method.args)};
afx=function(B){return"_set"+(B.charAt(0).toUpperCase()+B.slice(1))};
$Bo=function(){var B,c=Ex(function(x){B=x},!1);
return[B,c]};
UB7=function(B){B=B.trim().replace(nRx,",").replace(b87,"$1");var c=B[0];c==="-"&&(c=B[1]);if(c>="0"&&c<="9")return{type:"literal",value:Number(B)};if(c==="'"||c==='"')return{type:"literal",value:B.slice(1,-1)};if(c=B.match(K$w)){c=c[1];var x=jS$[c];if(x)return{type:x,path:B.slice(0,-(c.length+1))}}return{type:"path",path:B}};
hAY=function(B){var c=B.match(dBO);if(c)return B={methodName:c[1],args:qAx},c[2].trim()&&(c=c[2].replace(COw,"&comma;").split(","),B.args=c.map(UB7)),B};
mB7=function(B,c,x,P){P=P===void 0?!1:P;c=_.bh(c);var Y=Uk;Y&&(x=Y(x,c,"attribute",B));oB(B,x,c,P)};
oB=function(B,c,x,P){c=T5w(c,P===void 0?!1:P);c===void 0?B.removeAttribute(x):B.setAttribute(x,c)};
T5w=function(B,c){switch(typeof B){case "object":case "function":if(B instanceof Date)return B.toString();if(B){if((c===void 0?0:c)&&!_.T("polymer_reflect_objects_as_boolean_killswitch"))return B?"":void 0;c=window.trustedTypes?window.trustedTypes.isHTML(B)||window.trustedTypes.isScript(B)||window.trustedTypes.isScriptURL(B):void 0;if(c)return B;try{return JSON.stringify(B)}catch(x){_.Ob(Error("Dg`"+B))}}break;case "boolean":return B?"":void 0;default:return B!==null&&B!==void 0?B.toString():void 0}};
VSO=function(B){if(B===void 0)throw Error("Eg");return B};
Jf7=function(B,c,x,P){var Y=tSI(P);if(Y.length){P=x;var g="property";wTX.test(x)?g="attribute":x[x.length-1]==="$"&&(x=x.slice(0,-1),g="attribute");var k=N57(Y);k&&g==="attribute"&&(x==="class"&&B.hasAttribute("class")&&(k+=" "+B.getAttribute(x)),oB(B,k,x));g==="attribute"&&P==="disable-upgrade$"&&B.setAttribute("disable-upgrade","");B.localName==="input"&&P==="value"&&B.setAttribute("value","");B.removeAttribute(P);g==="property"&&(x=_.KN(x));c=VSO(c);Ifd(c,g,x,Y);return!0}return x.slice(0,3)===
"on-"?(B.removeAttribute(x),(g=c).events!=null||(g.events=[]),c.events.push({name:x.slice(3),value:P}),!0):x==="id"?(c.id=P,!0):!1};
tSI=function(B){for(var c=[],x=0,P;(P=W$w.exec(B))!==null;){P.index>x&&c.push({type:"literal",value:B.slice(x,P.index)});var Y=P[1][0];x=!!P[2];P=P[3].trim();if(Y==="{")throw Error("Fg");(Y=hAY(P))?c.push({type:"method",negate:x,signature:Y}):c.push({type:"path",negate:x,path:P});x=W$w.lastIndex}x&&x<B.length&&(B=B.substring(x))&&c.push({type:"literal",value:B});return c};
N57=function(B){for(var c="",x=0;x<B.length;x++){var P=B[x];P.type==="literal"&&(c+=P.value)}return c};
Ifd=function(B,c,x,P){B.bindings!=null||(B.bindings=[]);B.bindings.push({kind:c,target:x,parts:P})};
QSX=function(B,c,x){var P=!1;if(B.localName==="template"){P=x;var Y=c.stripWhitespace;Y=lfI(B,Y===void 0?!1:Y);var g=B.content.ownerDocument.createDocumentFragment();Y.content=g;g.appendChild(B.content);P&&(P.templateInfo=Y);P=!0}else B.localName==="slot"&&(c.hasInsertionPoint=!0);if(B.firstChild&&(Y=x,B.localName!=="script"&&B.localName!=="style")){g=0;for(var k=B.firstChild;k;){var n=k;if(n.localName==="template"){var b=n.getAttribute("is");if((k=b==="dom-if")||b==="dom-repeat"){n.removeAttribute("is");
b=n.ownerDocument.createElement("ps-"+b);n.parentNode.replaceChild(b,n);b.appendChild(n);var d=Array.from(n.attributes);d=_.p(d);for(var q=d.next();!q.done;q=d.next())q=q.value,k?ERq.has(q.name)&&oB(b,q.value,q.name):O8Q.has(q.name)?oB(b,q.value,q.name):oRx.has(q.name),n.removeAttribute(q.name);k=b}else k=n}if(k.nodeType===Node.TEXT_NODE){n=void 0;b=B;for(d=k;((n=d.nextSibling)==null?void 0:n.nodeType)===Node.TEXT_NODE;)q=void 0,(q=d).textContent!=null||(q.textContent=""),d.nextSibling.textContent&&
(d.textContent+=d.nextSibling.textContent),b.removeChild(d.nextSibling);if(c.stripWhitespace&&k.textContent&&!k.textContent.trim()){B.removeChild(k);k=k.nextSibling;continue}}QSX(k,c,{parentIndex:g,parentInfo:Y});k.parentNode&&g++;k=k.nextSibling}}var C;if((C=B.hasAttributes)==null?0:C.call(B)){C=x=VSO(x);Y=!1;g=Array.from(B.attributes);g=_.p(g);for(n=g.next();!n.done;n=g.next())n=n.value,Y=Jf7(B,C,n.name,n.value)||Y;P=Y||P}B.nodeType===Node.TEXT_NODE&&(C=tSI(B.textContent),C.length&&(B.textContent=
N57(C)||" ",x=VSO(x),Ifd(x,"text","textContent",C),P=!0));x&&P&&(x.infoIndex=c.nodeInfoList.push(x)-1)};
lfI=function(B,c){c={nodeInfoList:[],stripWhitespace:(c===void 0?!1:c)||B.hasAttribute("strip-whitespace")};QSX(B.content,c);return c};
F$X=function(B){Object.assign(B,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
zAI=function(B,c,x){c.signalCache!=null||(c.signalCache={});var P=c.signalCache[x];if(!P){var Y=x.split(".");P=!vRl(B,Y[0]);if(Y.length>1&&P){var g=B.getPathMutationSignal(Y);P=function(){var k=QG(B.owner,function(){return B.getWithPath([Y[0]])}),n,b=(n=g())==null?void 0:n.value;
return{rootWasDefined:k!==void 0,value:b}}}else P=function(){var k=B.getWithPath(Y);
return{rootWasDefined:k!==void 0,value:k}};
c.signalCache[x]=P}return P()};
yfx=function(B,c,x,P,Y){c=c.parts.map(function(k,n){if(k.type==="literal"){x.partWasDefined!=null||(x.partWasDefined=[]);var b;(b=x.partWasDefined)[n]||(b[n]=k.value!==void 0);return k.value}var d;if(k.type==="method"){var q,C=(q=(d=x.partWasDefined)==null?void 0:d[n])!=null?q:!1;C||(C=k.signature.args.every(function(N){return N.type==="literal"}));
var h=!1,V=!0;d=k.signature.args.map(function(N){if(N.type==="literal")return N.value;if(N.type!=="path")throw Error("Gg`"+N.type);var l=zAI(B,x,N.path);N=l.value;l=l.rootWasDefined;h||(h=l);V&&(V=l);return N});
C||(C=Y===1?V:h);x.partWasDefined!=null||(x.partWasDefined={});x.partWasDefined[n]=C;if(!C)return;d=(n=zAI(B,x,k.signature.methodName).value)&&typeof n==="function"?n.apply(P,d):void 0}else q=zAI(B,x,k.path),d=q.value,x.partWasDefined!=null||(x.partWasDefined={}),(C=x.partWasDefined)[n]||(C[n]=d!==void 0||q.rootWasDefined);k.negate&&(d=!d);return d});
if(c.length===1){var g;return((g=x.partWasDefined)==null?0:g[0])?c[0]:SAA}return c.join("")};
G8O=function(B){return typeof B==="object"&&!!B&&"notifyPath"in B&&"canNotifyPath"in B};
MSQ=function(B){return typeof B==="object"&&!!B&&"notifyPath"in B};
L$I=function(B){return"polymerController"in B};
Z8A=function(B,c){c=""+Om(c)[0];if(G8O(B))return B.canNotifyPath(c);if(L$I(B)&&G8O(B.polymerController))return B.polymerController.canNotifyPath(c);if(MSQ(B)){var x;return!((x=B.properties)==null||!x[c])}if(L$I(B)&&MSQ(B.polymerController)){var P;return!((P=B.polymerController.properties)==null||!P[c])}return!1};
H8C=function(B,c,x){G8O(B)||MSQ(B)?B.notifyPath(c,x):L$I(B)&&(G8O(B.polymerController)||MSQ(B.polymerController))&&B.polymerController.notifyPath(c,x)};
i8d=function(B,c,x){if(x!==SAA){B.kind==="attribute"||B.target!=="textContent"&&(B.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(x=x===void 0?"":x);var P,Y=(P=ffd.Polymer)==null?void 0:P.sanitizeDOMValue;Y&&(x=Y(x,B.target,B.kind,c));if(B.kind==="attribute"){B=B.target;if(B==="class"||B==="name"||B==="slot")c=(0,_.pF)(c);oB(c,x,B)}else if(B=B.target,x!==c[B]||typeof x==="object")c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!0,TZ(c.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
c[B]=x,c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!1)}};
Afq=function(B,c,x,P){var Y=c.parts[0];if(c.parts.length!==1||Y.type!=="path"||!Z8A(x,c.target))return!1;var g=_.p(Y.path.split(".")),k=g.next().value,n=uW(g);if(vRl(B,k))return!1;P.signalCache!=null||(P.signalCache={});g=P.signalCache[Y.path];var b;g=(b=g)==null?void 0:b().value;if((g==null?void 0:g.path)!==void 0){P=Om(g.path);var d=Om(Y.path);P=[c.target].concat(_.wq(P.slice(d.length-1)));H8C(x,P,Y.negate?!g.value:g.value);return!0}var q=Qo(B,k);var C=q.getChangeRecordSignal(n),h=!1;g=function(){if(!h){var N=
QG(B.owner,function(){return q.getWithPath([])});
h||(h=N!==void 0)}return{value:C(),rootWasDefined:h}};
P.signalCache[Y.path]=g;P.partWasDefined!=null||(P.partWasDefined={});g=g();(d=P.partWasDefined)[0]||(d[0]=g.rootWasDefined);var V=QG(B.owner,function(){return q.getWithPath(n)});
P.partWasDefined[0]&&QG(B.owner,function(){return void i8d(c,x,Y.negate?!V:V)});
return!0};
u0x=function(B,c,x,P,Y,g){if(!Afq(B,c,x,P)){var k=yfx(B,c,P,Y,g);QG(B.owner,function(){return void i8d(c,x,k)})}};
DBY=function(B,c,x,P,Y,g){x=_.p(x);for(var k=x.next(),n={};!k.done;n={infoIndex:void 0},k=x.next()){k=k.value;var b=k.bindings;n.infoIndex=k.infoIndex;k=k.parentInfo;if(b){b=_.p(b);for(var d=b.next(),q={};!d.done;q={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},d=b.next()){q.b$jscomp$252=d.value;if(n.infoIndex===void 0)throw Error("Hg");q.bindingCtx$jscomp$4={};B.effect(function(C,h){return function(){Y&&!Y()||u0x(B,C.b$jscomp$252,c[h.infoIndex],C.bindingCtx$jscomp$4,P,g)}}(q,n))}}k&&DBY(B,c,[k],
P,Y,g)}};
rfX=function(B,c){B=(c.parentInfo?rfX(B,c.parentInfo):B).firstChild;for(var x=0;B;B=B.nextSibling)if(c.parentIndex===x++)return B;throw Error("Ig");};
eA$=function(B,c,x,P){B=document.importNode(B.content,!0);B.__noInsertionPoint=!(P==null?0:P.hasInsertionPoint);for(var Y=Array(c.length),g={},k=0;k<c.length;k++){var n=c[k],b=rfX(B,n);Y[k]=b;n.id&&(g[n.id]=b);if(n.templateInfo){var d=b.parentElement;d&&(d.templateInfo=n.templateInfo,d.parentSignalProxy=x,d.eventListenerHost=P.eventListenerHost,d.stampingEnabled=P.enabledSignal)}d=void 0;if((d=n.events)==null?0:d.length)for(d=0;d<n.events.length;d++){var q=n.events[d];RAq(P.eventListenerHost,b,q.name,
q.value,P.getModel)}}DBY(x,Y,c,P.thisCtx,P.enabledSignal,P.methodInvocationRequirement);return{root:B,nodes:Y,nodesById:g}};
cIw=function(B,c){B=B();var x;(x=Box.ShadyCSS)==null||x.prepareTemplate(B,c);c=lfI(B);return{template:B,nodeInfoList:c.nodeInfoList,hasInsertionPoint:c.hasInsertionPoint}};
Ygw=function(){xnw=!1;for(var B=F2.length,c=0;c<B;c++){var x=F2[c];if(x)try{x()}catch(P){Promise.resolve().then(function(){throw P;})}}F2.splice(0,B);
PcC+=B};
pzO=function(B){xnw||(xnw=!0,aTI.textContent=(gT7++).toString());F2.push(B);return spd++};
_.Sr=function(B,c,x){vW++;B=c?new kGO(vW,B,c,x):new XzO(vW,B);zZ.set(vW,B);return vW};
$n7=function(B){(B=zZ.get(B))&&B.cancel()};
bb$=function(B,c){B=nTl.get(B);return B?(c=B.get(c))?c:null:null};
_.yo=function(B,c,x,P){var Y=bb$(B,c);if(!Y){Y=new KfQ;var g=nTl.get(B);g||(g=new Map,nTl.set(B,g));g.set(c,Y)}B=x.bind(B);Y.run(B,P,void 0)};
_.jpo=function(B,c){var x;(x=bb$(B,c))==null||x.cancel()};
UnO=function(B){var c;(c=bb$(B,"doRender"))==null||c.flush()};
GZ=function(B){var c;return(c=B.hostElement)!=null?c:B};
dnq=function(B){var c=B.indexOf(".");return c===-1?B:B.slice(0,c)};
qgl=function(B,c,x,P,Y,g){g=(Y=(P=g?dnq(c):c)?c:null)?B.get(Y):B.__data[c];Y&&g===void 0&&(g=x[c]);_.aJ(B.hostElement,rBC(P)+"-changed",{value:g,queueProperty:!0,path:Y!=null?Y:void 0},{bubbles:!1,composed:!1})};
CcO=function(B,c){B.__isReflecting=!0;mB7(B.hostElement,c,B.__data[c]);B.__isReflecting=!1};
h$q=function(B){if(B._onIronRequestResizeNotifications){var c=B._onIronRequestResizeNotifications.bind(B);B._onIronRequestResizeNotifications=function(x){_.uI(x)!==B.hostElement&&c(x)}}B._ariaActiveAttributeChanged&&(B._ariaActiveAttributeChanged=B._ariaActiveAttributeChanged.bind(B.hostElement));
B._activeChanged&&(B._activeChanged=function(x){B.toggles?oB(B.hostElement,x?"true":"false",B.ariaActiveAttribute):B.hostElement.removeAttribute(B.ariaActiveAttribute);B._changedButtonState()});
B._asyncClick&&(B._asyncClick=function(){_.Sr(function(){B.hostElement.click()},1)});
!B.keyEventTarget||B.keyEventTarget instanceof EventTarget||(B.keyEventTarget=GZ(B.keyEventTarget));B._disabledChanged&&(B._disabledChanged=B._disabledChanged.bind(B.hostElement));B._observeItems&&(B._observeItems=function(x){var P=GZ(x);return _.m4(P).observeNodes(function(Y){B._updateItems();B._updateSelected();_.aJ(P,"iron-items-changed",Y,{bubbles:!1,cancelable:!1})})});
B._updateItems&&B._updateItems===_.Mi._updateItems&&(B._updateItems=function(){var x=_.m4(B.hostElement).queryDistributedElements(B.selectable||"*");x=Array.prototype.filter.call(x,B._bindFilterItem);B._setItems(x)});
B._computeKeyboardClass&&(B._computeKeyboardClass=function(x){_.gM(B.hostElement,"keyboard-focus",x)});
B.ensureRipple&&(B.ensureRipple=function(x){if(B.hasRipple&&!B.hasRipple()){if(!B._createRipple)return;B._ripple=B._createRipple();B._ripple.noink=B.noink;var P=B._rippleContainer||B.hostElement;P&&_.Y9(P).appendChild(B._ripple)}var Y;if(x&&((Y=B._ripple)==null?0:Y.uiDownAction)){P=_.Y9(B._rippleContainer||B.hostElement);var g;Y=(g=x.composedPath())==null?void 0:g[0];P.contains(Y)&&B._ripple.uiDownAction(x)}});
B._updateMultiselectable&&(B._updateMultiselectable=function(x){x?B.hostElement.setAttribute("aria-multiselectable","true"):B.hostElement.removeAttribute("aria-multiselectable")})};
mnO=function(B,c,x){x=_.p(x);for(var P=x.next();!P.done;P=x.next())r7O(P.value.constructor,B);r7O(c.constructor,B)};
V4Y=function(B,c){B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x.type==="signal"){var P=x.propertyKey;if(c.hasOwnProperty(P)&&c[P]!=null&&x.attributeType===Object){a:{P=c[P].constructor;for(var Y=_.p(Too),g=Y.next();!g.done;g=Y.next())if(g=g.value,P===g){P=g;break a}P=Object}x.attributeType=P}}};
t4Q=function(){};
wzC=function(B){var c;return(c=B.hostElement)!=null?c:B};
No7=function(){throw Error("Mg");};
ITx=function(B,c){B.constructor.prototype.useSignals=!0;var x=new B.constructor;mnO(x,B,c.behaviors);V4Y(c.reactiveSchemas,x);x={};for(var P=_.p(c.reactiveSchemas),Y=P.next();!Y.done;Y=P.next())Y=Y.value,Y.type==="signal"&&(x[Y.propertyKey]=Y.attributeType);var g={copyPropertiesToProto:No7,didRegister:!1,typesForSignals:x},k=["disable-upgrade"].concat(_.wq(c.observedAttributes)),n=function(b){LF.call(this,B,c,g,b)};
_.w(n,LF);_.AJ.Object.defineProperties(n,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
g.copyPropertiesToProto=function(){for(var b=0;b<c.behaviors.length;b++)e8l(c.behaviors[b],n.prototype);e8l(B,n.prototype)};
c.legacyOptimizations||g.copyPropertiesToProto();n.prototype.is=B.is;return n};
JI7=function(B,c){if(Object.getPrototypeOf(c.prototype).constructor!==_.z)throw Error("Ng");c.prototype.is=B.is;return ITx(c.prototype,B)};
Wfq=function(B){return B.type==="compute"||B.type==="computeWithMethod"};
lTw=function(B){for(var c=B.reactiveSchemas.filter(Wfq),x=new Map,P=new Map,Y=new Map,g=_.p(c),k=g.next();!k.done;k=g.next())k=k.value,x.set(k.propertyKey,k),P.set(k.propertyKey,[]),Y.set(k.propertyKey,0);g=0;c=_.p(c);for(k=c.next();!k.done;k=c.next()){k=k.value;for(var n=_.p(k.type==="computeWithMethod"?k.method.args:k.args),b=n.next();!b.done;b=n.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],P.has(b)&&(P.get(b).push(k.propertyKey),Y.set(k.propertyKey,Y.get(k.propertyKey)+1),g++))}k=
[].concat(_.wq(P.keys())).filter(function(d){return Y.get(d)===0});
for(c=[];k.length;)for(n=k.shift(),c.push(x.get(n)),n=_.p(P.get(n)),b=n.next();!b.done;b=n.next())b=b.value,Y.set(b,Y.get(b)-1),g--,Y.get(b)===0&&k.push(b);x=B.reactiveSchemas.filter(function(d){return!Wfq(d)});
B.reactiveSchemas=[].concat(_.wq(x),_.wq(c))};
ETw=function(B,c){if(c.properties)for(var x=_.p(Object.entries(c.properties)),P=x.next();!P.done;P=x.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;B.properties[P]=typeof Y==="function"?{type:Y}:Y}c.observers&&B.observers.push.apply(B.observers,_.wq(c.observers));c.disabledPolySiReactions&&B.disabledPolySiReactions.push.apply(B.disabledPolySiReactions,_.wq(c.disabledPolySiReactions))};
ObA=function(B,c){for(var x=c.length-1;x>=0;x--){var P=c[x];Array.isArray(P)?ObA(B,P):B.indexOf(P)<0&&B.unshift(P)}};
oTw=function(B,c){B.reactiveSchemas=B.reactiveSchemas.filter(function(x){return x.type==="observe"&&c.includes(x.method.methodName)||Wfq(x)&&c.includes(x.propertyKey)?!1:!0})};
Ff7=function(B,c){var x=c.prototype,P,Y,g={is:B.is,reactiveSchemas:[],observedAttributes:[],behaviors:[HGx.InjectBehavior,WW.prototype],disableElementRegistration:B.disableElementRegistration,provide:(P=B.providers)!=null?P:[],reactivityMode:B.reactivityMode,signalProperties:(Y=x.signalProperties)!=null?Y:[]};"template"in c?g.templateGetter=function(){return c.template}:B.getTemplate&&(g.templateGetter=B.getTemplate);
x.behaviors&&ObA(g.behaviors,x.behaviors);Qpd(g,c);return g};
Qpd=function(B,c){for(var x=c.prototype,P={properties:{},observers:[],disabledPolySiReactions:[]},Y=_.p(B.behaviors),g=Y.next();!g.done;g=Y.next())ETw(P,g.value);ETw(P,x);if(B.signalProperties)for(x=_.p(B.signalProperties),Y=x.next();!Y.done;Y=x.next())delete P.properties[Y.value];x=_.p(Object.entries(P.properties));for(Y=x.next();!Y.done;Y=x.next()){g=_.p(Y.value);Y=g.next().value;g=g.next().value;var k=void 0;if((k=B.signalProperties)==null||!k.includes(Y)){k=void 0;var n=B,b=g.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",c,Y);for(var d=_.p(vT$),q=d.next();!q.done;q=d.next())if(q=q.value,b===q){b=q;break a}b=Object}else b=String;g.computed||g.selector||(n.reactiveSchemas.push({type:"signal",propertyKey:Y,value:g.value,attributeType:b,readOnly:g.readOnly}),n.observedAttributes.push(_.bh(Y)));g.reflectToAttribute&&n.reactiveSchemas.push({type:"reflect",propertyKey:Y});if(g.computed){b=hAY(g.computed);if(!b)throw Error("Og");n.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Y,method:b,value:g.value})}g.observer&&n.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:Y}]}});g.notify&&n.reactiveSchemas.push({type:"notify",propertyKey:Y});g.selector&&n.reactiveSchemas.push({type:"redux",propertyKey:Y,selector:g.selector,selectorArgs:(k=g.selectorArgs)!=null?k:[]})}}z$q&&lTw(B);c=_.p(P.observers);for(Y=c.next();!Y.done;Y=c.next())x=B,Y=Y.value,(g=hAY(Y))?x.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
Y+'"');oTw(B,P.disabledPolySiReactions)};
SgI=function(B,c){for(var x=0;x<c.length;x++){var P=c[x],Y=void 0;(Y=P).showHideApi!=null||(Y.showHideApi={});Y=void 0;!!B!==!((Y=P.showHideApi)==null||!Y.hideTemplateChildren)&&(P.nodeType===Node.TEXT_NODE?B?(P.showHideApi.polymerTextContent=P.textContent,P.textContent=""):(Y=void 0,P.textContent=(Y=P.showHideApi.polymerTextContent)!=null?Y:null):P instanceof Element&&P.localName==="slot"?B?(P.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.pF)((0,_.pF)(P).parentNode).replaceChild(P.showHideApi.polymerReplaced,
P)):(Y=P.showHideApi.polymerReplaced)&&(0,_.pF)((0,_.pF)(Y).parentNode).replaceChild(P,Y):P instanceof HTMLElement&&P.style&&(B?(P.showHideApi.polymerDisplay=P.style.display,P.style.display="none"):P.style.display=P.showHideApi.polymerDisplay));P.showHideApi.hideTemplateChildren=B;P.showHideChildren&&P.showHideChildren(B)}};
GGX=function(){if(!yIC){var B=document.createElement("style");B.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(B);yIC=!0}};
Zx=function(){return _.T("disable_hidden_dom_if_using_stamper")||_.T("creator_disable_hidden_dom_if_using_stamper")};
M4q=function(B,c){var x=_.HW().getState();return c?B.apply(null,[x].concat(_.wq(c))):B(x)};
Hbq=function(){if(LfX)return LfX;var B=_.p(_.$D(0,void 0,"Nl6eIe")),c=B.next().value;B.next();var x=B.next().value;_.HW().subscribe(function(){ZbO(x)});
return LfX=c};
ZbO=function(B){_.T("delay_redux_signal_update_killswitch")?B(function(c){return c+1}):fTx||(fTx=!0,Promise.resolve().then(function(){B(function(c){return c+1});
fTx=!1}))};
_.HW=function(){return ibd.getAppStore()};
fF=function(B,c){return ibd.getSelectFn()(B,c)};
_.iF=function(B){ibd.getDispatchFn()(B)};
AIQ=function(B,c){var x={},P;for(P in B)x[P]=c(B[P],P);return x};
_.A9=function(B,c){return function(){var x;return(x=_.Ox(B))!=null?x:c}};
_.uF=function(B,c){var x=Object.assign({},B),P;for(P in c)c.hasOwnProperty(P)&&(x[P]=_.A9(B[P],c[P]));return x};
uKo=function(B,c,x){B instanceof Element&&(x.debugName||(x.debugName="<"+B.tagName.toLowerCase()+(B.tagName.includes("-")?">":"."+B.className+">")),_.T("ytwiz_enable_debug_component_props")&&(B.debugProps||(B.debugProps=AIQ(c,function(P){return function(){return P()}}))))};
DnQ=function(B){var c;if(!(c=Dx.traceAllComponents)){var x;c=(x=D1)==null?void 0:x.activeSpan;c=(c==null?void 0:c.name)!=="ytComponent"}return c?JZC("ytComponent",{},B):B()};
_.rM=function(B,c){var x=function(P){return DnQ(function(Y){var g=rIA={};var k;if(((k=x)==null?0:k.idomCompat)&&P.renderedFromIdom){var n;k=typeof x.idomCompat==="object"?(n=x)==null?void 0:n.idomCompat.callbacks:{};k=_.p(R$7(P,k,x.debugName));n=k.next().value;k.next();k=k.next().value;var b=e$X(B,n);g.privateValue=b;rIA=void 0;uKo(b,n,x);g={debugName:x.debugName};Y&&g&&Object.assign(Y.attributes,g);Y=Zpx(b);Y=Array.isArray(Y)?Y[0]:Y;Y[$6]||(Y[$6]={});Y[$6].updateSignalsFromIdomProps=k;BTx(n,b);return b}k=
AIQ(P,c8q);n=e$X(B,k);g.privateValue=n;rIA=void 0;uKo(n,k,x);g={debugName:x.debugName};Y&&g&&Object.assign(Y.attributes,g);BTx(k,n);return n})};
x.debugName=c===void 0?"":c;return x};
e$X=function(B,c){B=B(c);return jI(B)};
xPI=function(B,c){B[c]||(B=new _.mc("IDOM interop setter undefined. Key:",c),_.lb(B))};
c8q=function(B,c){return c==="children"||c==="ref"||typeof B==="function"||B===void 0?B:function(){return _.Ox(B)}};
R$7=function(B,c,x){var P={},Y={},g={},k={},n;for(n in B){k={key$jscomp$894:k.key$jscomp$894};k.key$jscomp$894=n;var b=B[k.key$jscomp$894];if(k.key$jscomp$894==="children"||k.key$jscomp$894==="ref")P[k.key$jscomp$894]=b;else if(typeof b==="function")k.key$jscomp$894 in c||b.length>0?(g[k.key$jscomp$894]=b,P[k.key$jscomp$894]=function(q){return function(){return g[q.key$jscomp$894].apply(g,_.wq(_.ts.apply(0,arguments)))}}(k)):P[k.key$jscomp$894]=b;
else if(!(B[k.key$jscomp$894]===void 0&&k.key$jscomp$894 in c)){var d=_.p(_.$D(B[k.key$jscomp$894],{debugName:"__cwis:"+x+":"+k.key$jscomp$894},"WAasgc"));b=d.next().value;d=d.next().value;P[k.key$jscomp$894]=b;Y[k.key$jscomp$894]=d}}return[P,Y,function(q){var C={},h;for(h in q)C={key$jscomp$895:C.key$jscomp$895,val$jscomp$117:void 0},C.key$jscomp$895=h,C.val$jscomp$117=q[C.key$jscomp$895],C.key$jscomp$895!=="children"&&C.key$jscomp$895!=="ref"&&(typeof C.val$jscomp$117==="function"?C.key$jscomp$895 in
c?g[C.key$jscomp$895]=C.val$jscomp$117:C.val$jscomp$117.length>0&&(g[C.key$jscomp$895]=C.val$jscomp$117,_.Ob(new _.mc("Callback detected that was not set in the idomCompat callbacks map. Key:",C.key$jscomp$895))):C.key$jscomp$895 in c&&C.val$jscomp$117===void 0||(xPI(Y,C.key$jscomp$895),qO(function(V){return function(){Y[V.key$jscomp$895](V.val$jscomp$117)}}(C))))}]};
aCw=function(B,c,x){var P=pi$(B.prototype,PBq,B.prototype.behaviors);P.prototype.is=c;P.prototype.localName=c;x&&YJ7(P,x);return function(Y){Y&&(P.prototype.hostElement=Y);var g=new P;g.root=g;g.hostElement=Y;return g}};
YJ7=function(B,c){var x;Object.defineProperty(B.prototype,"_template",{get:function(){x===void 0&&(x=c());return x},
set:function(P){x=P},
configurable:!0,enumerable:!0})};
XI$=function(B,c,x,P){function Y(){if(!V){for(var N=new Set,l=_.p(q),E=l.next();!E.done;E=l.next()){E=E.value;for(var S=_.p(Object.getOwnPropertyNames(E)),M=S.next();!M.done;M=S.next()){M=M.value;var f=void 0,Z=(f=Object.getOwnPropertyDescriptor(E,M))==null?void 0:f.value;Z&&Z instanceof Function&&!RB(M)&&(!n[M]||_.T("polymer_forward_method_killswitch"))&&N.add(M)}}l=_.p(Object.entries(Object.getOwnPropertyDescriptors(B.prototype)));for(E=l.next();!E.done;E=l.next())S=_.p(E.value),E=S.next().value,
S=S.next().value,S.value instanceof Function&&!RB(E)&&N.add(E);V=N}return V}
gyA(B,c,P==null?void 0:P.providers);keX(B.prototype,B,!0);var g=aCw(B,c,x),k,n=(k=B.prototype.properties)!=null?k:{},b,d,q=(d=(b=B.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?d:[];x=_.p(q);for(k=x.next();!k.done;k=x.next())n=Object.assign({},k.value.properties,n);var C=[].concat(_.wq(sjq),_.wq(Object.keys(n).map(function(N){return _.bh(N)}))),h=!1,V;
return{ctor:function(N,l){var E=g(N),S,M;N=[].concat(_.wq((S=P==null?void 0:P.allowedProps)!=null?S:[]),_.wq((M=P==null?void 0:P.allowedPropsFromBehaviors)!=null?M:[]));E.allowedProps=N.length>0?N:void 0;S={};M=_.p(C);for(N=M.next();!N.done;N=M.next())N=N.value,S[N]=_.KN(N);E.__dataAttributes=S;var f=E.ready.bind(E);E.ready=function(){l.beforeReady();f();if(h9(c)&&!h){var Z=E.__templateInfo;if(Z==null?0:Z.hostProps){Z=_.p(Object.keys(Z.hostProps));for(var u=Z.next();!u.done;u=Z.next())TZ(c,u.value,
"PROPERTY_ACCESS_GET_INTERNAL")}h=!0}};
E._overrideLegacyUndefined=!0;return E},
props:n,observedAttributes:C,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var N=[],l=new Set,E=_.p(Object.keys(n)),S=E.next();!S.done;S=E.next())S=S.value,N.push([S,n[S].readOnly]),l.add(S);E=Y();S=_.p(Object.keys(Object.getOwnPropertyDescriptors(B.prototype)));for(var M=S.next();!M.done;M=S.next())M=M.value,!pII(M)||E.has(M)||l.has(M)||(N.push([M,!1]),l.add(M));l=_.p(knC);for(E=l.next();!E.done;E=l.next())N.push([E.value,!0]);return N},
getPropsToForwardBeforeReady:function(N){for(var l=[],E=_.p(Object.entries(N)),S=E.next();!S.done;S=E.next()){var M=_.p(S.value);S=M.next().value;M=M.next().value;if(pII(S)&&!(M instanceof Function)&&(l.push([S,!1]),h9(c))){var f=M=void 0;(f=(M=N)._createPropertyAccessor)==null||f.call(M,S)}}return l},
shouldForwardProp:pII,shouldLog:h9}};
gyA=function(B,c,x){fr7(B,x);B.prototype.behaviors.unshift($PC);if(OGX()){if(h9(c)){var P;(P=B.prototype).behaviors!=null||(P.behaviors=[]);B.prototype.behaviors.unshift(vSx())}z8I(B)}_.J(WW.prototype)(B.prototype,"__templateHelpers")};
RB=function(B){return nyl.has(B)||B.startsWith("__compute__")};
pII=function(B){return!RB(B)&&!B.startsWith("_")&&!B.endsWith("_")};
dPX=function(B,c){function x(){var h=b();h=_.p(h);for(var V=h.next();!V.done;V=h.next()){var N=_.p(V.value);V=N.next().value;N=N.next().value;bMC(C.prototype,V,N)}P=!0}
var P=!1,Y=B.ctor,g=B.getInitialMethods,k=B.observedAttributes,n=B.getPropsToForwardBeforeReady,b=B.getPropsToForwardBeforeRegister,d=B.shouldForwardProp,q=B.shouldLog,C=function(){var h=HTMLElement.call(this)||this;h.didForwardDynamicProps=!1;h.loggingStatus={};P||x();h.inst=Y(h,{beforeReady:function(){h.didForwardDynamicProps||(h.forwardDynamicProps(),h.didForwardDynamicProps=!0)}});
h.controllerProxy=QN7(h.inst,c);h.forwardMethods();return h};
_.w(C,HTMLElement);C.prototype.forwardMethods=function(){for(var h=this,V=_.p(this.inst.getExtraMethodsToForward()),N=V.next(),l={};!N.done;l={method$jscomp$60:void 0},N=V.next()){var E=_.p(N.value);N=E.next().value;E=E.next().value;l.method$jscomp$60=E;this[N]=function(S){return function(){return S.method$jscomp$60.call.apply(S.method$jscomp$60,[h.inst].concat(_.wq(_.ts.apply(0,arguments))))}}(l)}V=_.p(g());
for(l=V.next();!l.done;l=V.next())l=l.value,d(l)&&Kxd(this,l),q(c)&&!RB(l)&&jjX(this.inst,l)};
C.prototype.forwardDynamicProps=function(){var h=n(this.inst);h=_.p(h);for(var V=h.next();!V.done;V=h.next()){var N=_.p(V.value);V=N.next().value;N=N.next().value;bMC(this,V,N);q(c)&&!RB(V)&&UP$(this.inst,V)}};
C.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
C.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
C.prototype.attributeChangedCallback=function(h,V,N){this.inst.attributeChangedCallbackWrapper(h,V,N)};
_.AJ.Object.defineProperties(C.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return c}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.AJ.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
customElements.define(c,C)};
bMC=function(B,c,x){B.hasOwnProperty(c)||Object.defineProperty(B,c,{get:function(){var P,Y=((P=B.is)!=null?P:B.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||TZ(Y,c,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,P=this.polymerController[c],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,P},
set:function(P){if(!x){var Y,g=((Y=B.is)!=null?Y:B.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||TZ(g,c,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=c,this.loggingStatus.bypassProxyController=!0,this.polymerController[c]!==P&&(Y={},this.polymerController.setProperties((Y[c]=P,Y)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Kxd=function(B,c,x){var P=B.polymerController;B[c]=function(){var Y=_.ts.apply(0,arguments);B.loggingStatus.currentExternalCall=c;B.loggingStatus.bypassProxyController=!0;var g,k=((g=B.is)!=null?g:B.tagName).toLowerCase();TZ(k,c,"PROPERTY_ACCESS_CALL_EXTERNAL");var n;g=(n=x!=null?x:P[c])==null?void 0:n.call.apply(n,[P].concat(_.wq(Y)));B.loggingStatus.currentExternalCall=void 0;B.loggingStatus.bypassProxyController=!1;return g}};
jjX=function(B,c){var x=B.hostElement,P=B[c];B[c]=function(){var Y=_.ts.apply(0,arguments);if(x.loggingStatus.currentExternalCall!==c){var g,k=((g=x.is)!=null?g:x.tagName).toLowerCase();TZ(k,c,"PROPERTY_ACCESS_CALL_INTERNAL")}return P==null?void 0:P.apply(B,Y)}};
UP$=function(B,c){var x=Object.getOwnPropertyDescriptor(B,c);x&&!x.get&&Object.defineProperty(B,c,{get:function(){FP$(B.hostElement,c);return x.value},
set:function(P){Vo(B.hostElement,c);x.value=P}})};
qJI=function(B){return _.T("poly_si_dom_repeat_detached_fix_killswitch")||B.tagName!=="PS-DOM-REPEAT"?B.tagName==="DOM-REPEAT":!0};
hf7=function(B,c){var x=CBq(B);B instanceof Element&&x.unshift(B);B=_.p(x.filter(qJI));for(var P=B.next();!P.done;P=B.next()){var Y=void 0;P=_.p((Y=P.value.__instances)!=null?Y:[]);for(Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,Y.root){Y=Array.from(Y.root.children);Y=_.p(Y);for(var g=Y.next();!g.done;g=Y.next())x.push.apply(x,_.wq(hf7(g.value,c)))}}return x.filter(function(k){return k.usePatchedLifecycles&&k.lifecycleIsConnected===c})};
CBq=function(B){var c=null;B instanceof Element?c=Element.prototype.querySelectorAll:B instanceof DocumentFragment&&(c=DocumentFragment.prototype.querySelectorAll);return c?Array.from(c.call(B,"*")):[]};
er=function(B){XS(function(){for(var c=_.p(hf7(B,!1)),x=c.next();!x.done;x=c.next()){x=x.value;x.lifecycleIsConnected=!0;try{var P=void 0,Y=void 0,g=void 0,k=void 0;(P=(k=x.polymerController)!=null?k:x)==null||(g=(Y=P).connectedCallback)==null||g.call(Y)}catch(n){_.lb(n)}}})};
BH=function(B){XS(function(){for(var c=_.p(hf7(B,!0)),x=c.next();!x.done;x=c.next()){x=x.value;x.lifecycleIsConnected=!1;try{var P=void 0,Y=void 0,g=void 0,k=void 0;(P=(k=x.polymerController)!=null?k:x)==null||(g=(Y=P).disconnectedCallback)==null||g.call(Y)}catch(n){_.lb(n)}}})};
ICO=function(){if(!mPI){mPI=!0;var B=[Node];cH&&B.push(cH.Wrapper);var c=Node.prototype.insertBefore,x=Node.prototype.removeChild;B=_.p(B);for(var P=B.next(),Y={};!P.done;Y={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},P=B.next())P=P.value,Y.nativeInsertBefore=P.prototype.insertBefore,P.prototype.insertBefore=function(k){return function(n,b){if(n instanceof DocumentFragment){var d=Array.from(n.children);n=k.nativeInsertBefore.call(this,n,b);
if(this.isConnected&&k.nativeInsertBefore===c)for(b=_.p(d),d=b.next();!d.done;d=b.next())er(d.value);return n}d=n instanceof Element&&n.isConnected;b=k.nativeInsertBefore.call(this,n,b);d&&BH(n);this.isConnected&&er(n);return b}}(Y),Y.nativeAppendChild=P.prototype.appendChild,P.prototype.appendChild=function(k){return function(n){if(n instanceof DocumentFragment){var b=Array.from(n.children);
n=k.nativeAppendChild.call(this,n);if(this.isConnected){b=_.p(b);for(var d=b.next();!d.done;d=b.next())er(d.value)}return n}b=n instanceof Element&&n.isConnected;d=k.nativeAppendChild.call(this,n);b&&BH(n);this.isConnected&&er(n);return d}}(Y),Y.nativeRemoveChild=P.prototype.removeChild,P.prototype.removeChild=function(k){return function(n){var b=n instanceof Element&&n.isConnected,d=k.nativeRemoveChild.call(this,n);
b&&x===k.nativeRemoveChild&&BH(n);return d}}(Y),Y.nativeReplaceChild=P.prototype.replaceChild,P.prototype.replaceChild=function(k){return function(n,b){if(n instanceof DocumentFragment){var d=Array.from(n.children);
n=k.nativeReplaceChild.call(this,n,b);if(this.isConnected)for(BH(b),b=_.p(d),d=b.next();!d.done;d=b.next())er(d.value);return n}d=n instanceof Element&&n.isConnected;var q=this.isConnected,C=k.nativeReplaceChild.call(this,n,b);q&&BH(b);d&&BH(n);q&&er(n);return C}}(Y);
B=[Element];cH&&B.push(cH.Wrapper);B=_.p(B);P=B.next();for(Y={};!P.done;Y={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},P=B.next())P=P.value,P.prototype.before=TTC(P.prototype.before),P.prototype.after=TTC(P.prototype.after),Y.nativeReplaceWith=P.prototype.replaceWith,P.prototype.replaceWith=function(k){return function(){var n=_.ts.apply(0,arguments),b=_.p(VYX(n)),d=b.next().value,
q=b.next().value;b=this.isConnected;k.nativeReplaceWith.apply(this,n);n=_.p(q);for(q=n.next();!q.done;q=n.next())BH(q.value);if(b)for(BH(this),d=_.p(d),b=d.next();!b.done;b=d.next())b=b.value,b instanceof Element&&er(b)}}(Y),Y.nativeRemove=P.prototype.remove,P.prototype.remove=function(k){return function(){var n=this.isConnected;
k.nativeRemove.call(this);n&&BH(this)}}(Y),Y.nativeInsertAdjacentElement=P.prototype.insertAdjacentElement,P.prototype.insertAdjacentElement=function(k){return function(n,b){var d=b.isConnected;
n=k.nativeInsertAdjacentElement.call(this,n,b);d&&BH(b);n.isConnected&&er(n);return n}}(Y),Y.nativeSetAttribute=P.prototype.setAttribute,P.prototype.setAttribute=function(k){return function(n,b){var d=tYo(this);
if(!d.usePatchedLifecycles)return k.nativeSetAttribute.call(this,n,b);var q=this.getAttribute(n);k.nativeSetAttribute.call(this,n,b);b=this.getAttribute(n);wIA(d,n,q,b)}}(Y),Y.nativeRemoveAttribute=P.prototype.removeAttribute,P.prototype.removeAttribute=function(k){return function(n){var b=tYo(this);
if(!b.usePatchedLifecycles)return k.nativeRemoveAttribute.call(this,n);var d=this.getAttribute(n);k.nativeRemoveAttribute.call(this,n);d!==null&&wIA(b,n,d,null)}}(Y),Y.nativeToggleAttribute=P.prototype.toggleAttribute,P.prototype.toggleAttribute=function(k){return function(n,b){var d=tYo(this);
if(!this.usePatchedLifecycles)return k.nativeToggleAttribute.call(this,n,b);var q=this.getAttribute(n),C=q!==null;b=k.nativeToggleAttribute.call(this,n,b);b!==C&&wIA(d,n,q,b?"":null);return b}}(Y);
B=[Document,DocumentFragment,Element,ShadowRoot];cH&&B.push(cH.Wrapper);B=_.p(B);for(Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y.prototype.prepend=TTC(Y.prototype.prepend),Y.prototype.append=TTC(Y.prototype.append);(cH==null?void 0:cH.noPatch)===!0&&NTx();document.readyState==="complete"?er(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&er(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(k){k||BH(this);g.set.call(this,k);return k}})}};
TTC=function(B){return function(){var c=_.ts.apply(0,arguments),x=_.p(VYX(c)),P=x.next().value;x=x.next().value;B.apply(this,c);c=_.p(x);for(x=c.next();!x.done;x=c.next())BH(x.value);if(this.isConnected)for(P=_.p(P),c=P.next();!c.done;c=P.next())c=c.value,c instanceof Element&&er(c)}};
NTx=function(){for(var B=_.p(J8w),c=B.next();!c.done;c=B.next()){c=c.value.prototype;for(var x=_.p(WxO),P=x.next();!P.done;P=x.next()){P=P.value;var Y=Object.getOwnPropertyDescriptor(c,P);Y&&Object.defineProperty(c,"__shady_native_"+P,Y)}}};
wIA=function(B,c,x,P){var Y,g;if((Y=B.polymerController)==null?0:(g=Y.observedAttributes)==null?0:g.includes(c))if(B=B.polymerController,B.attributeChangedCallbackWrapper)B.attributeChangedCallbackWrapper.call(B,c,x,P);else{var k;(k=B.attributeChangedCallback)==null||k.call(B,c,x,P)}};
VYX=function(B){var c=[],x=[];B=_.p(B);for(var P=B.next();!P.done;P=B.next())P=P.value,P instanceof Element&&P.isConnected&&x.push(P),P instanceof DocumentFragment?c.push.apply(c,_.wq(Array.from(P.children))):c.push(P);return[c,x]};
tYo=function(B){return!(B instanceof Element)&&B.node instanceof Element?B.node:B};
lCd=function(B,c){var x=c?["children"].concat(_.wq(c)):["children"];c=[];x=_.p(x);for(var P=x.next();!P.done;P=x.next()){var Y=P.value;if(B.hasOwnProperty(Y)){P=B[Y];P=typeof P==="function"?P():P;P=jI(Array.isArray(P)?P:[P]).flat();if(Y!=="children"){Y=rBC(Y);for(var g=_.p(P),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Element&&k.setAttribute("slot",Y)}c.push(P)}}c.length===0?B=[]:(B=jI(_.U("div",null,c)),B=Array.from(B.childNodes));return B};
OMw=function(B,c,x){var P={};_.oO(function(){var Y={},g;for(g in c)if(c.hasOwnProperty(g)){var k=void 0,n=void 0;if(!(((k=x.slotProps)==null?0:k.includes(g))||g==="children"||((n=x.callbackProps)==null?0:n.includes(g))||g==="ref")&&(k=_.Ox(c[g]),P[g]!==k)){P[g]=k;n=void 0;var b=(n=B.hostElement)!=null?n:B;EyI.has(g)&&(b[g]=k);Y[g]=k}}qO(function(){if(B.setProperties)B.setProperties(Y);else for(var d=_.p(Object.entries(Y)),q=d.next();!q.done;q=d.next()){var C=_.p(q.value);q=C.next().value;C=C.next().value;
B[q]=C}})})};
Qj$=function(B,c,x,P){var Y=lCd(x,P.slotProps),g=(0,_.pF)(B);Y=_.p(Y);for(var k=Y.next();!k.done;k=Y.next())g.appendChild(k.value);OMw(c,x,P);P=_.p(P.callbackProps||[]);Y=P.next();for(g={};!Y.done;g={kebabEventName:void 0,eventListener:void 0},Y=P.next())k=Y=Y.value,String(Y).substring(0,2)==="on"&&x[k]?(g.kebabEventName=rBC(String(Y).substring(2)),g.eventListener=x[k],B.addEventListener(g.kebabEventName,g.eventListener),_.lP(function(q){return function(){B.removeEventListener(q.kebabEventName,q.eventListener)}}(g))):
c[k]=x[k];
if(x.ref){x=_.p(oyO(x.ref));var n=x.next().value,b=x.next().value,d=c.attached.bind(c);c.attached=function(){n(B);d()};
_.lP(function(){b()})}};
oyO=function(B){if(typeof B==="function"){var c;return[function(x){c=B(x)},
function(){var x;(x=c)==null||x()}]}if(!B.onRender||!B.onUnmount)throw Error("Sg");
return[B.onRender,B.onUnmount]};
SJ$=function(B,c,x,P,Y){P=P===void 0?{}:P;var g=FxA,k=!1;g?(k=!0,FxA=void 0):(vyQ=c,g=document.createElement(c),vyQ=void 0);var n=g;n.usePatchedLifecycles=!0;n.lifecycleIsConnected=!1;g.loggingStatus={};var b=zfo(B,c,g,P,Y);_.lP(function(){n.lifecycleIsConnected&&(n.lifecycleIsConnected=!1,b.disconnectedCallback())});
k||Qj$(g,b,x,P);return g};
zfo=function(B,c,x,P,Y){Y=Y===void 0?XI$:Y;y8l[c]!=null||(y8l[c]=Y(B,c,P==null?void 0:P.getTemplate,P));var g=y8l[c],k=g.ctor;Y=g.getInitialMethods;var n=g.getPropsToForwardBeforeReady;B=g.getPropsToForwardBeforeRegister;P=g.shouldForwardProp;var b=g.observedAttributes,d=g.shouldLog,q=k(x,{beforeReady:function(){var C=q;C._takeAttributes?C._takeAttributes():C.setPropertiesFromInitialAttributeValues&&C.setPropertiesFromInitialAttributeValues();C=_.p(n(x.polymerController));for(var h=C.next();!h.done;h=
C.next()){var V=_.p(h.value);h=V.next().value;V=V.next().value;bMC(x,h,V);d(c)&&!RB(h)&&UP$(x.polymerController,h)}x.polymerController=QN7(q,c)}});
x.polymerController=q;x.polymerController.observedAttributes=b;g=_.p(q.getExtraMethodsToForward());for(k=g.next();!k.done;k=g.next())b=_.p(k.value),k=b.next().value,b=b.next().value,Kxd(x,k,b);Y=_.p(Y());for(g=Y.next();!g.done;g=Y.next())g=g.value,P(g)&&Kxd(x,g),d(c)&&!RB(g)&&jjX(q,g);B=_.p(B());for(P=B.next();!P.done;P=B.next())Y=_.p(P.value),P=Y.next().value,Y=Y.next().value,bMC(x,P,Y);return q};
MYQ=function(B,c){return x0===c?(B.isInert=!0,x0="",!0):Gnl===c?(B.isInert=!0,Gnl="",!0):!1};
LxY=function(B){var c=PH;PH=B;return c};
HMx=function(B){if(Y0.has(B))Gnl=B;else if(am.has(B)&&PH&&ZMw(PH)===B){var c;(c=PH)._numRenders!=null||(c._numRenders=0);PH._numRenders++;if(PH._numRenders>1)throw Error("Tg");return PH}};
fCl=function(B){Y0.has(ZMw(B))?Gnl=ZMw(B):am.has(ZMw(B))&&PH!==B&&(B._isInert=!0)};
ZMw=function(B){var c;return(c=B==null?void 0:B.tagName.toLowerCase())!=null?c:""};
iMX=function(B,c){if(B.componentType===VG)throw Error("Ug");am.add(c);var x=function(){var P=HTMLElement.call(this)||this;P.is=c;if(vyQ===c)return P.isInert=!0,P;P.createElement();return P};
_.w(x,HTMLElement);x.prototype.createElement=function(){if(!this.isInert){FxA=this;var P=_.p(_.$ed(function(){return _.U(B,null)})).next().value;
FxA=void 0;F$X(this);return P}};
customElements.define(c,x)};
uqx=function(B,c,x,P,Y){B.prototype.is=c;(P==null?0:P.useSink)?A8d(B,c,x,P,Y):(x=XI$(B,c,x,P),dPX(x,c));return B};
A8d=function(B,c,x,P,Y){ICO();var g=_.rM(function(k){return SJ$(B,c,k,Object.assign({},P,{getTemplate:x}),Y)},"a");
iMX(g,c);return g};
r8x=function(B){return!DPA.has(B)};
Beq=function(B,c,x,P){function Y(){if(!C){for(var h=new Set(Rf7),V=_.p(g.behaviors),N=V.next();!N.done;N=V.next()){N=N.value;for(var l=_.p(Object.getOwnPropertyNames(N)),E=l.next();!E.done;E=l.next()){E=E.value;var S=void 0,M=(S=Object.getOwnPropertyDescriptor(N,E))==null?void 0:S.value;M&&M instanceof Function&&(!d[E]||_.T("polymer_forward_method_killswitch"))&&h.add(E)}}V=_.p(Object.entries(Object.getOwnPropertyDescriptors(B.prototype)));for(N=V.next();!N.done;N=V.next())l=_.p(N.value),N=l.next().value,
l=l.next().value,l.value instanceof Function&&h.add(N);C=h}return C}
var g=Ff7({is:c,disableElementRegistration:!1,getTemplate:x,providers:P==null?void 0:P.providers,reactivityMode:P==null?void 0:P.reactivityMode},B);if((P==null?0:P.allowedProps)||(P==null?0:P.allowedPropsFromBehaviors)){var k,n;g.allowedProps=[].concat(_.wq((k=P.allowedProps)!=null?k:[]),_.wq((n=P.allowedPropsFromBehaviors)!=null?n:[]))}var b=JI7(g,B);c=b.observedAttributes;var d={};x=_.p(g.reactiveSchemas);for(P=x.next();!P.done;P=x.next())if(P=P.value,P.type==="signal")d[P.propertyKey]={readOnly:P.readOnly},
P.readOnly&&(d[afx(P.propertyKey)]={readOnly:!0});else if(P.type==="compute"||P.type==="computeWithMethod"||P.type==="redux")d[P.propertyKey]={readOnly:!0};var q=g.reactiveSchemas.length,C;return{ctor:function(h,V){h=new b(h);h.beforeReady=V.beforeReady;return h},
props:d,observedAttributes:c,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var h=[],V=new Set,N=_.p(efo),l=N.next();!l.done;l=N.next())l=l.value,h.push([l,l!=="observers"&&l!=="properties"]),V.add(l);N=_.p(Object.keys(d));for(l=N.next();!l.done;l=N.next())l=l.value,h.push([l,d[l].readOnly]),V.add(l);N=Y();l=_.p(Object.keys(Object.getOwnPropertyDescriptors(B.prototype)));for(var E=l.next();!E.done;E=l.next())E=E.value,!r8x(E)||N.has(E)||V.has(E)||(h.push([E,!1]),V.add(E));h.push(["allowedProps",
!0]);return h},
getPropsToForwardBeforeReady:function(h){var V=[];h=_.p(Object.keys(h));for(var N=h.next();!N.done;N=h.next()){N=N.value;var l=Y();r8x(N)&&!l.has(N)&&V.push([N,!1])}h=_.p(g.reactiveSchemas.slice(q));for(N=h.next();!N.done;N=h.next())N=N.value,N.type!=="compute"&&N.type!=="computeWithMethod"&&N.type!=="redux"&&N.type!=="signal"||V.push([N.propertyKey,N.type==="signal"?N.readOnly:!0]);return V},
shouldForwardProp:r8x,shouldLog:h9}};
_.G=function(B,c,x,P){var Y,g,k=(g=(Y=P)==null?void 0:Y.mode)!=null?g:0;P!=null||(P={});var n;(n=P).reactivityMode!=null||(n.reactivityMode=0);k===1&&_.gr("creator_poly_si_disable_list").includes(c)&&(k=2);return k===1?uqx(B,c,x,Object.assign({},P,{useSink:!0}),Beq):uqx(B,c,x,Object.assign({},P,{useSink:k===2}))};
_.gX=function(){return function(B,c,x,P){var Y,g,k=(g=(Y=P)==null?void 0:Y.mode)!=null?g:2;P!=null||(P={});var n;(n=P).reactivityMode!=null||(n.reactivityMode=0);if(k===0)throw Error("Vg`"+k);return A8d(B,c,x,P,k===1?Beq:void 0)}};
_.sL=function(B){return _.T("creator_poly_si_killswitch")?!1:_.T("force_all_poly_si_batches")&&(B==="poly_si_all_on_test_check"||B==="creator_poly_si_batch_050"?0:B)||document.documentElement.hasAttribute("use-signals")?!0:!B||_.T(B+"_holdback_enabled")&&_.T("kevlar_polysi_holdback")?!1:_.T(B)};
pL=function(B){return B?B.icon?B.icon.iconType.toLowerCase():B.customThumbnail?"member":"":""};
clw=function(B){if(!B)return"";B=_.p(B);for(var c=B.next();!c.done;c=B.next())if((c=c.value)&&c.liveChatAuthorBadgeRenderer&&(c=pL(c.liveChatAuthorBadgeRenderer))&&c!=="verified")return c;return""};
xI$=function(B,c){if(!B)return null;var x;return((x=B.find(function(P){return P&&P.liveChatAuthorBadgeRenderer?pL(P.liveChatAuthorBadgeRenderer)===c:!1}))==null?void 0:x.liveChatAuthorBadgeRenderer)||null};
_.pdl=function(B){var c=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;B=Pl7(B);c=Pl7(c);var x=Yo7(B.hex);c=Yo7(c.hex);var P=c[0]/255;var Y=c[1]/255,g=c[2]/255,k=Math.max(P,Y,g),n=Math.min(P,Y,g),b=0,d=0,q=.5*(k+n);k!=n&&(k==P?b=60*(Y-g)/(k-n):k==Y?b=60*(g-P)/(k-n)+120:k==g&&(b=60*(P-Y)/(k-n)+240),d=0<q&&q<=.5?(k-n)/(2*q):(k-n)/(2-2*q));P=[Math.round(b+360)%360,d,q];x=aGA(x,c);for(B=gsq(B.hex);x<4.5;){B=P[2]>=.5?B.darker((4.5-x)/2):B.brighter((4.5-x)/2);x=B.toString();
Y=sn7(x);if(!Y.length)throw Error("Sd`"+x);x=Y;x=aGA(x,c)}return B.hex()};
aGA=function(B,c){B=_.fPQ(B);c=_.fPQ(c);return(Math.max(B,c)+.05)/(Math.min(B,c)+.05)};
_.k0=function(B){return"#"+("000000"+(B&16777215).toString(16)).slice(-6)};
_.kYw=function(B){for(var c=0,x=0;x<B.length;x++)c=B.charCodeAt(x)+((c<<5)-c);B="#";for(x=0;x<3;x++)B+=("00"+(c>>x*8&255).toString(16)).slice(-2);return B};
XdI=function(B){B=(B||"").split(":");B.length===1&&B.unshift("yt-icons");B[1]=B[1].toLowerCase();return B};
UI$=function(B,c){var x=(c=c===void 0?!1:c)?$IQ:ns7,P=c?bsx:KR7;B.getIconNames().forEach(function(Y){Y=c?Y:Y.substring(Y.indexOf(":")+1);B.name==="yt-icons"?jnC.add(Y):Y.includes("-filled")?x.add(Y):P.add(Y)})};
Xo=function(B,c,x,P){x=x===void 0?!1:x;P=P===void 0?!1:P;var Y,g,k;return _.X(function(n){if(n.nextAddress==1)return _.K(n,dIX,2);if(P)return n.return(jnC.has(B));Y=x?$IQ:ns7;g=x?bsx:KR7;return c?(k=B.includes("-filled")?B:B.concat("-filled"),n.return(Y.has(k))):n.return(g.has(B))})};
_.hyo=function(B){if(qoI(B))return B;var c=B=B.toLowerCase();(B=ClA.get(B))&&(c=B);return c};
_.$0=function(B){if(qoI(B))return B.toString();var c=mI7.get(B);if(c)return c;c=B.toLowerCase();var x="yt-icons",P=c.replace(/_/g,"-");switch(B){case "MY_CHANNEL":c="account_circle";break;case "ADD_TO_LIBRARY":c="add";break;case "ALERT_WARN_RED":c="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":c="person_music";break;case "BLOCK_USER":c="block";break;case "CAPTIONS":c="closed_caption";break;case "CLOSED_CAPTION":x="av";c="closed-caption";break;case "COLLECTION":x="maps";c="layers";break;case "CONTACT":x=
"icons";c="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":x="ytcp-icons";c=P.split("creator-studio-")[1];break;case "DISMISSAL":c="close";break;case "DO_NOT_DISTURB":c="block";break;case "DOGFOOD":x="icons";c="pets";break;case "DRAFT":c="paper_corner_folded";break;
case "EMPTY_LIKE":c="like_outline";break;case "EXIT_APP":c="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":c=P;break;case "GAMES":x="ytg";c="my-games";break;case "GO_TO_PAGE":c="arrow-forward";break;case "GROUP":x="social";break;case "HIDE":c="not_interested";break;case "INPUT_COMPONENT":x="icons";c="settings-input-component";break;case "KIDS_BLOCK":c="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":x="ytg";c="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":x=
"ytg";c="membership-post-purchase";break;case "MULTIVIEW":c="screen_multi_view";break;case "MY_LOCATION":x="maps";c=P;break;case "NOTIFICATIONS_INBOX":c="NOTIFICATIONS";break;case "NEXT":c="chevron_right";break;case "OFFLINE":c="power-settings-new";break;case "PAUSE":x="miniplayer";break;case "PAYMENT":x="icons";break;case "PHONE_DOWNLOAD":c="phone_download";break;case "PREMIUM_STANDALONE":x="yt-logos";c="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":x="yt-logos";c="premium_standalone_cairo";
break;case "QUESTION_ANSWER":c="question_answer";break;case "REDEEM":x="icons";c="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":c="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":c="library_add";break;case "SCHOOL":x="yt-sys-icons";c="creator_academy";break;case "SETTINGS_LIGHT":c="settings_applications";break;case "SETTINGS_MATERIAL":c="settings";break;case "SEARCH_HISTORY":c="watch_history";break;case "SHOPPING_BAG":c="bag";break;case "SOCIAL":case "PEOPLE":x=
"yt-icons";c="people";break;case "STAFF_PICK":x="ytg";c="spotlight";break;case "START_DVR":c="add";break;case "STOP_DVR":x="av";c="stop";break;case "TAB_LIKED":c="like";break;case "TAB_INBOX":c="mail";break;case "TERMS_OF_SERVICE":x="icons";c="description";break;case "TRENDING":c="fire";break;case "UNBLOCK_USER":c="remove";break;case "UNPLUGGED_DARK_THEME":x="image";c="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":c="live";break;case "UNPLUGGED_SPORTS":x="ytu";c="visibility-off";break;
case "VIDEOS":x="av";c="play-circle-filled";break;case "YOUTUBE":x="yt-logos";c="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":x="yt-logos-ext";c="yt-logo-red-updated";break;case "YOUTUBE_LOGO":x="yt-logos-ext";c="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":x="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":x="shorts";c=P;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":x="yt-sys-icons";c="youtube_improve_tv";break;case "OUTLINE_BAG":x=
"yt-sys-icons";c="bag";break;case "QUEUE_PLAY_LAST":x="yt-sys-icons";c="list_queue_last";break;case "SLASH_CIRCLE_LEFT":c="slash_circle_left";break;case "SPEED_1_POINT_2X":c="1_point_2x";break;case "SPEED_1_POINT_5X":c="1_point_5x";break;case "SPEED_1_POINT_8X":c="1_point_8x";break;case "SPEED_POINT_2X":c="point_2x";break;case "SPEED_POINT_5X":c="point_5x";break;case "SPEED_POINT_8X":c="point_8x";break;case "SPEED_1X":c="1x";break;case "SPEED_2X":c="2x";break;case "TAB_BOOKMARK":c="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":x="yt-sys-icons";c="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":x="yt-sys-icons";c="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":x="yt-sys-icons",c="tic_tac_toe"}c=x+":"+c;mI7.set(B,c);return c};
qoI=function(B){var c;_.T("kevlar_use_wil_icons")?c=!!_.cp().resolve(_.nL).resolveIcon({iconName:B.toString()}):c=!1;return c};
_.KL=function(B,c,x,P){x=x===void 0?{}:x;P=P===void 0?!1:P;x===null&&(x={});var Y=_.gr("kevlar_command_handler_command_banlist");Y=_.p(Y);for(var g=Y.next();!g.done;g=Y.next())if(g=B?B.hasOwnProperty(g.value):void 0,g)return!1;Y=_.t(B.commandMetadata,_.Br);return P&&Y!=null&&Y.url?!1:!c.disableCommandHandlerOverride&&_.bA.instance?(P=_.bA.instance,x.form||(x.form={element:c}),x.form.element||(x.form.element=c),!x.clickedVisualElement&&c.visualElement&&(x.clickedVisualElement=c.visualElement),P.resolveCommand(B,
x),!0):!1};
Te7=function(B,c){B=j_(B);for(var x=_.p(B.visibilityMonitorKeys||[]),P=x.next();!P.done;P=x.next())c.unobserveByKey(P.value);B.visibilityMonitorKeys=void 0};
NeI=function(B,c){if(_.Wf()){if(_.T("kevlar_vimio_use_shared_monitor"))VLQ(B,c.data);else if(!VLQ(B,c.data))return;var x=c.data,P=tLX(x);if(_.T("enable_client_ve_spec_logging"))Te7(B,c.observer);else{var Y=j_(B);Y.trackedParams&&Y.trackedParams!==P&&Te7(B,c.observer)}Y=j_(B);!x||Y.data&&Y.data===x||(Y.data=x);wdA(B,c);Y.trackedParams=P}};
wdA=function(B,c){var x=c.observer;if(!x&&_.T("web_skip_missing_vimio_observer")){var P,Y;_.Ob(new _.mc("VisibilityObserver is not defined.",B.tagName,B.trackedParams,(P=c.data)==null?void 0:P.trackingParams,(Y=c.data)==null?void 0:Y.loggingDirectives))}else{var g=c.layer,k=c.visibilityCallback||function(){},n=c.prescanCallback,b=j_(B);
P=[];c.showOption&&P.push(x.observe(B,function(){c.skipLogging&&c.skipLogging()||_.UL().reportShown(b,void 0,g);k(!0)},c.showOption));
c.hideOption&&P.push(x.observe(B,function(){_.UL().reportHidden(b,void 0,g);k(!1)},c.hideOption));
c.prescanOption&&n&&P.push(x.observe(B,function(){n()},c.prescanOption));
b.visibilityMonitorKeys=P}};
VLQ=function(B,c){B=j_(B);if(B.visualElement&&!c)return!0;if(!c)return!1;var x=!1;if(_.T("enable_client_ve_spec_logging")){var P,Y;x=!!((P=c.loggingDirectives)==null?0:(Y=P.clientVeSpec)==null?0:Y.uiType)}P=tLX(c);if(!P&&!x)return!1;_.T("mweb_component_visibility_logging")&&(B.veContainer||(B.veContainer={}),B.veContainer.trackingParams=P);if(B.trackedParams&&B.trackedParams===P)return!1;var g;if(_.T("enable_client_ve_spec_logging")&&((g=B.visualElement)==null?0:g.isClientVe())){var k;g=(k=B.visualElement)==
null?void 0:k.getAsJspb();var n,b,d,q;if(_.Ph(g,2)===((n=c.loggingDirectives)==null?void 0:(b=n.clientVeSpec)==null?void 0:b.uiType)&&_.Ph(g,3,-1)===((d=c.loggingDirectives)==null?void 0:(q=d.clientVeSpec)==null?void 0:q.elementIndex))return!1}if(_.T("enable_client_ve_spec_logging")){var C,h;!B.visualElement&&((C=c.loggingDirectives)==null?0:(h=C.clientVeSpec)==null?0:h.uiType)&&(n=c.loggingDirectives.clientVeSpec,c=n.uiType,k=n.elementIndex,n=n.clientYoutubeData,B.visualElement=_.dX(_.q_(),{veType:c,
elementIndex:k,clientYouTubeData:n}))}return!0};
tLX=function(B){if(B==null?0:B.rendererContext){var c=_.t(B.rendererContext,_.CL);if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams}return(B==null?0:B.loggingDirectives)?B.loggingDirectives.trackingParams:B==null?void 0:B.trackingParams};
j_=function(B){var c;return(c=B.polymerController)!=null?c:B};
lGl=function(B){_.UL();if(_.ya(hX().JSC$10524_elementShouldLogGesture).bind(hX())(B,4)){IGl(B);var c=Jl7(B);WRX.set(B,c)}};
IGl=function(B){WRX.has(B)&&(WRX.get(B).cancel("untrack hover element"),WRX.delete(B))};
Jl7=function(B){var c,x=[],P=!1,Y=new _.bb(function(g,k){ml(B,"mouseenter",_.ya(function(){var n,b,d;return _.X(function(q){if(q.nextAddress==1)return c=(0,_.BA)(),n=Es$(B),x.push(n),b=Oso(B,function(){P=!0;k(Error("Wg"))}),_.K(q,n,2);
if(q.nextAddress!=3)return b&&Tl(b),d=oso(B),x.push(d),_.K(q,d,3);g();_.Kq(q)})}))});
Y.then(function(){var g=(0,_.BA)()-c;g=Math.round(g);if(!(500>g||6E5<=g)){var k=B.getScreenLayer?B.getScreenLayer():void 0;k=_.Wf(k)||"";var n=QnO(_.UL(),B);_.ig(k,B.visualElement?B.visualElement:_.VF(n),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}lGl(B)},function(){tX&&(tX(),tX=null);
P&&(IGl(B),lGl(B))});
return Y};
Es$=function(B){var c;return(new _.bb(function(x,P){tX=function(){P(Error("Xg"))};
c=_.EE.debounce(_.ya(function(){Tl(Y);x()}),1,100);
var Y=_.wX(B,"mousemove",c)})).thenCatch(function(){var x=_.EE.cancelDebouncedJobMap.get(c);
x&&_.EE.cancelJob(x)})};
oso=function(B){var c;return(new _.bb(function(x,P){tX=function(){P(Error("Yg"))};
c=ml(B,"mouseleave",_.ya(function(){x()}))})).thenCatch(function(){Tl(c)})};
Oso=function(B,c){return ml(B,"mouseleave",_.ya(c))};
vsw=function(B){FRY&&_.N_.cancel(FRY);FRY=_.N_.run(function(){_.aJ(B,"yt-visibility-refresh");FRY=0})};
zyA=function(B){B=Number(B);return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
ylo=function(B){if(!B)return!1;if(_.t(B,_.Soq))return!0;var c;if(B=(c=_.t(B,_.nW))==null?void 0:c.commands)for(c=_.p(B),B=c.next();!B.done;B=c.next())if(_.t(B.value,_.Soq))return!0;return!1};
GYA=function(B){var c=!0;c=c===void 0?!0:c;if(!B.useSignals&&!B.experimentalPropertiesChanged||_.T("experimental_templating_behavior_nopatch_killswitch")){var x=B._propertiesChanged;B._propertiesChanged=function(P,Y,g){c?B.debounceRender():B.doRender();x&&x.call(B,P,Y,g)}}};
ML7=function(B,c){if(B.useSignals||B.experimentalPropertiesChanged)if(_.T("experimental_templating_behavior_nopatch_killswitch"))B.experimentalPropertiesChanged=function(){};
else return;var x=new Set,P=[B].concat(_.wq(B.behaviors));P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next()){Y=Y.value;for(var g in Y.properties)x.has(g)||(B._addPropertyEffect(g,"function",c),x.add(g))}};
LRI=function(){var B=Polymer.Element,c=B._prepareTemplate;B._prepareTemplate=function(){c.call(this);var x=this.prototype;if(x.experimentalTemplatingInUse&&x.experimentalTemplatingInUse()&&x.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.lb(Error("Zg"));else{x=this.template.content.childNodes;for(var P=x.length-1;P>=0;P--){var Y=x[P];Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y.nodeName!=="SCRIPT"&&Y.nodeName!=="#comment"&&Y.remove()}}}};
ZsC=function(B){var c=!0;c=c===void 0?!0:c;LRI();var x=B.ready;B.ready=function(){this._template=null;x.call(this)};
ML7(B,c?B.debounceRender:B.doRender)};
fGq=function(B,c,x){if(x===null||x===void 0)return x;var P=YEw(B.tagName.toLowerCase(),c,function(){throw Error("Sb");});
if(P===null)return x;P=HsO[P];var Y;if((Y=P.isUnwrappable)==null?0:Y.call(P,x)){if(P.unwrap)return P.unwrap(x);throw Error("bh");}return P.filterString?P.filterString(B.tagName,c,String(x)):x};
is$=function(B,c,x){var P=c[c.length-1]!=="$",Y=fGq(B,c,x);if(P)if(typeof Y==="function"&&c.startsWith("reactiveon")&&c===c.toLowerCase()){var g=RD;K1d(B,c.slice(8),function(k){QG(g,function(){Y(k)})})}else B[c]=Y;
else x=Y==null?null:String(Y),bpQ(B,c.slice(0,-1),x)};
JX=function(B){Al$.length===0&&requestAnimationFrame(function(){setTimeout(function(){var c=Al$.slice();Al$.length=0;c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;try{x()}catch(P){_.Im(P)}}})});
Al$.push(B)};
uAx=function(B){if(B){var c=B.component;if(c){var x;c==null||(x=c.events)==null||x.publish("DISCONNECTED");var P;c==null||(P=c.onDisconnected)==null||P.call(c)}var Y,g;(Y=B.__spec)==null||(g=Y.didUnmount)==null||g.call(Y);for(c=0;c<B.childNodes.length;c++)uAx(B.childNodes[c])}};
lA=function(B,c,x){var P=c&&c.key,Y=uP;Y[0]=B;Y[1]=P;Y[2]=void 0;for(var g in c)c.hasOwnProperty(g)&&(B=c[g],P=Dc,P.push(g),P.push(B));c=uP;a:{if(g=uP[2])for(B=0;B<g.length;B+=2)if(g[B]==="nonce"){g=g[B+1];break a}g=""}g=I$l(c[0],c[1],g);B=GI(g);P=c[2];if(!B.staticsApplied&&(B.staticsApplied=!0,P&&P.length))if((Y=B._attrsArr)&&Y.length){for(Y=0;Y<P.length;Y+=2)WH[P[Y]]=Y+1;Y=B._attrsArr||(B._attrsArr=nr7(0));for(var k=0,n=0;n<Y.length;n+=2){var b=Y[n],d=Y[n+1],q=WH[b];q?P[q]===d&&delete WH[b]:(Y[k]=
b,Y[k+1]=d,k+=2)}Sw(Y,k);for(var C in WH)Cr7(g,C,P[WH[C]],D6),delete WH[C]}else for(C=0;C<P.length;C+=2)Cr7(g,P[C],P[C+1],D6);QxQ(g,B,D6);Sw(c,0);x&&x(MO);JjI()};
DIA=function(B){var c=B.toString().toLowerCase();return function(x,P){lA(c,x,P)}};
_.EL=function(B,c,x){x===void 0?delete B[c.name]:B[c.name]=x};
_.OL=function(B){var c={androidIncludeFontPadding:!1},x=0,P=[],Y=[],g=[];if(B.simpleText)return c.content=B.simpleText,c;if(B.runs===void 0)return c.content="",c;B=_.p(B.runs);for(var k=B.next();!k.done;k=B.next()){k=k.value;var n=k.text,b=void 0,d=(b=n)==null?void 0:b.length;if(n&&d){P.push(n);if(k.bold||k.italics||k.strikethrough||k.underline||k.textColor!=null&&k.textColor!==0||k.deemphasize){n=Y;b=n.push;var q={startIndex:x,length:d};k.bold&&(q.weightLabel="FONT_WEIGHT_MEDIUM");k.italics&&(q.italic=
!0);k.strikethrough&&(q.strikethrough="LINE_STYLE_SINGLE");k.underline&&(q.underline="LINE_STYLE_SINGLE");k.textColor!=null&&k.textColor!==0?document.documentElement.hasAttribute("dark")?q.fontColor=k.darkModeTextColor||k.textColor:q.fontColor=k.textColor:k.deemphasize&&(document.documentElement.hasAttribute("dark")?q.fontColor=parseInt("ff"+rlI("#aaa").substring(1),16):q.fontColor=parseInt("ff"+rlI("#606060").substring(1),16));b.call(n,q)}k.navigationEndpoint&&(n=g,b=n.push,q={startIndex:x,length:d,
onTap:{innertubeCommand:k.navigationEndpoint}},k.loggingDirectives&&_.EL(q,Ryo,k.loggingDirectives),b.call(n,q));x+=d}}c.content=P.join("");c.styleRuns=Y.length?Y:void 0;c.commandRuns=g.length?g:void 0;return c};
B4d=function(B){if(B==null||!B.runs)return!0;B=_.p(B.runs);for(var c=B.next();!c.done;c=B.next())if(c=c.value,c.bracket||c.errorUnderline||c.deemphasize||_.t(c,om)||_.t(c,eyw))return!1;return!0};
cw$=function(B,c){return function(x){var P=c.unit;if(P!==x)throw Error("eh`"+B+"`"+P+"`"+x);return c}};
QF=function(B){if(!((B==null?0:B.value)&&(B==null?0:B.unit)))return"";switch(B.unit){case "DIMENSION_UNIT_FRACTION":var c="%";break;default:c="px"}B=B.value;c==="%"&&(B*=100);return""+B+c};
x7x=function(B){try{return B()}catch(c){_.Ob(c)}};
_.vH=function(B){var c=_.t(B,_.Fo);if(c)return c;if((c=_.t(B,PNd))&&c.commands)return YCl(c.commands);if((c=_.t(B,akC))&&c.commands)return YCl(c.commands);if((B=_.t(B,gmI))&&B.identifier&&B.command&&(s5d||(s5d=[]),!s5d.includes(B.identifier)))return s5d.push(B.identifier),_.t(B.command,_.Fo)};
YCl=function(B){if(B.length!==0){var c=[];B=_.p(B);for(var x=B.next();!x.done;x=B.next())(x=_.vH(x.value))&&c.push(x);return{commandExecutorCommand:{commands:c}}}};
_.S_=function(B){var c=B.defaultTarget,x=B.elementConfig,P=B.elementsCommand,Y=B.skipOnClick,g=B.forceNewState,k=B.additionalCommandArgs,n=B.innertubeCommand||_.vH(P);if(n){B={};var b=ptI(n);P=b.navigatingCommand;b=b.href;P&&b?(B.href$=b,kcO(B,P,b,c),_.T("web_atagconfig_pointerdown")&&Xtd(B,P),g&&(B["force-new-state$"]=!0)):(B.role$="button",B.href$="javascript:void(0);");_.t(n,$7Y)&&(B["aria-haspopup$"]=!0);Y||(B.onclick=function(d){if(nmO(d)){var q=Object.assign({},{form:{element:d.target,event:d}},
k);d.preventDefault();_.zl(n,q)}});
return Object.assign({},x,B)}};
b7Y=function(B){if(B.length){if(B.length===1)return B[0];var c={};_.EL(c,_.nW,{commands:B});return c}};
yF=function(B){return B&&B.href$!=="javascript:void(0);"};
ptI=function(B){var c,x=((c=_.t(B,_.nW))==null?void 0:c.commands)||[B];B=_.p(x);for(c=B.next();!c.done;c=B.next()){c=c.value;var P=void 0,Y=void 0;x=(Y=_.t((P=c)==null?void 0:P.commandMetadata,_.Br))==null?void 0:Y.url;_.T("web_remove_web_navigation_endpoint_data")||(P=void 0,x=x||((P=_.t(c,KIA))==null?void 0:P.url));if(x&&x!=="/service_ajax"){if(P=C6(x,j5Y))return B=_.UG(P),{navigatingCommand:c,href:B};_.Ob(new _.mc("AttributedString URL could not be sanitized",x))}}return{}};
nmO=function(B){return B.button!==void 0?B.button===0&&!(B.shiftKey||B.altKey||B.metaKey||B.ctrlKey):!(B.shiftKey||B.altKey||B.metaKey||B.ctrlKey)};
kcO=function(B,c,x,P){x=!Rt(x);var Y,g,k;if((Y=_.t(c,_.qA))!=null&&Y.nofollow||(g=_.t(c,_.fN))!=null&&g.nofollow||(k=_.t(c,_.yp))!=null&&k.nofollow||x)B.rel$="nofollow";var n;c=((n=_.t(c,_.yp))==null?void 0:n.target)==="TARGET_NEW_WINDOW"?"_blank":P===void 0?"":P;B.target$=c};
Xtd=function(B,c){c.clickTrackingParams&&(B.params={itct:c.clickTrackingParams});B.onpointerdown=function(x){U7q(x)};
B._data=c};
d7X=function(B){(B.loggingUrls||[]).forEach(function(c){Lp(c.baseUrl,c.attributionSrcMode)})};
qCC=function(B){B.currentTarget._data&&d7X(B.currentTarget._data)};
U7q=function(B){var c=B.currentTarget;B=x7x(function(){return c.href});
var x=c.params;B&&_.Da(B,x||{},8,!0)};
CNX=function(B,c){if(c=_.t(c,_.yp))(c==null?void 0:c.target)==="TARGET_NEW_WINDOW"&&(B.target="_blank"),c.nofollow&&(B.rel="nofollow")};
hXl=function(B){B=_.t(B==null?void 0:B.commandMetadata,_.Br);return(B==null?0:B.url)?B.url:null};
_.Gl=function(B,c){(B=_.vH(B))&&_.zl(B,c)};
_.zl=function(B,c){mMo(function(x){c?x.resolveCommand(B,c):x.resolveCommand(B)})};
t9O=function(B,c){var x=["yt-core-attributed-string__link"];c!=null&&c.noLinkColor||((c==null?0:c.isOverlay)?x.push("yt-core-attributed-string__link--overlay-call-to-action-color"):x.push("yt-core-attributed-string__link--call-to-action-color"),(c==null?0:c.linkInheritColor)&&x.push("yt-core-attributed-string--link-inherit-color"));x={className:x.join(" "),tabindex$:"0"};var P=B.onTap||B.onLongPress;if(!P)return x;var Y=m77(B);Y&&(x["aria-label$"]=Y);c=_.S_({elementsCommand:P,elementConfig:x,skipOnClick:!(c==
null||!c.skipOnClick),forceNewState:!0});B.onLongPress&&(P=new T4I(function(){var g=_.vH(B.onLongPress);g&&_.cp().resolve(_.xu).resolveCommand(g)}),c&&V9o(P,c));
return c||x};
m77=function(B){var c,x;return(c=B.onTapOptions)==null?void 0:(x=c.accessibilityInfo)==null?void 0:x.accessibilityLabel};
wt7=function(B){var c=B;B<=16777215&&(c+=parseInt("ff000000",16));return _.SF(c)};
N4O=function(B){var c=B.isDarkTheme;var x=B.extension;B=B.runColor;var P=void 0;if(x=x==null?void 0:x.colorMap){c=c?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";x=_.p(x);for(var Y=x.next();!Y.done;Y=x.next())if(Y=Y.value,c===Y.key){P=Y.value;break}}P==null&&B&&(P=B);if(P)return wt7(P)};
M_=function(B){var c=B.config;var x=B.image;var P=B.imageConfig;var Y=B.imageWrapperConfig;var g=B.run;var k=B.tag;var n=B.textLength;var b=B.startIndex===void 0?0:B.startIndex;B=B.length;b===void 0&&(b=0);g={run:g,startIndex:b,endIndex:B!==void 0?b+B:n,tag:k};x&&(g.image=x);P&&(g.imageConfig=P);Y&&(g.imageWrapperConfig=Y);c&&(g.config=c);return g};
JwY=function(B,c){var x=[];x.push("yt-core-attributed-string");(c==null?0:c.className)&&x.push(c==null?void 0:c.className);(c==null?0:c.ellipsisTruncate)?x.push("yt-core-attributed-string--ellipsis-truncate"):(c==null?0:c.noWrap)?x.push("yt-core-attributed-string--white-space-no-wrap"):(c==null?0:c.noPreWrap)||x.push("yt-core-attributed-string--white-space-pre-wrap");(c==null?0:c.linkInheritColor)&&x.push("yt-core-attributed-string--link-inherit-color");B.alignment&&x.push(IkI(B.alignment));B.lineBreakMode&&
x.push("yt-core-attributed-string--word-wrapping");return x.join(" ")};
WIQ=function(B){if(B.weight)return B.weight;switch(B.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
lkI=function(B){switch(B){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"}};
IkI=function(B){switch(B){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"}};
HH=function(B,c,x){var P=c;B.content&&x&&(x=B.content.indexOf("\n"),x!==-1&&(P=Math.min(c,x)));if(!B.content||B.content.length<=P)c=B;else if(B.attachmentRuns||B.commandRuns||B.decorationRuns||B.styleRuns||B.paragraphStyleRuns){c=LL(B.content,P);x=P;var Y=B.attachmentRuns;if(Y){var g=[];Y=_.p(Y);for(var k=Y.next();!k.done;k=Y.next())k=Object.assign({},k.value),k.startIndex===void 0||k.startIndex>=x||(k.length||(k.length=0),k.length+k.startIndex>x&&(k.length=x-k.startIndex),g.push(k));x=g}else x=void 0;
g=EmX(P,B.commandRuns);Y=P;var n=B.decorationRuns;if(n){k=[];n=_.p(n);for(var b=n.next();!b.done;b=n.next()){b=b.value;var d=_.t(b.textDecorator,Z9);if(d&&d.startIndex!==void 0&&!(d.startIndex>=Y)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},d)}});d=_.t(b.textDecorator,Z9);if(!d.length||d.length+d.startIndex>Y)d.length=Y-d.startIndex;k.push(b)}}Y=k}else Y=void 0;k=EmX(P,B.styleRuns);if(n=B.paragraphStyleRuns)for(B=[],n=_.p(n),b=n.next();!b.done;b=n.next()){var q=b.value;
b=Object.assign({},q);if(!(b.startIndex===void 0||b.startIndex>=P)){if(!b.length||b.length+b.startIndex>P)b.length=P-b.startIndex;d=[];var C=void 0,h=void 0;if((C=q)==null?0:(h=C.listGroup)==null?0:h.listItems)for(q=_.p(q.listGroup.listItems),C=q.next();!C.done;C=q.next())if(C=Object.assign({},C.value),!(C.startIndex===void 0||C.startIndex>=P)){if(!C.length||C.length+C.startIndex>P)C.length=P-C.startIndex;d.push(C)}d.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:d}));B.push(b)}}else B=void 0;c={content:c,attachmentRuns:x,commandRuns:g,decorationRuns:Y,styleRuns:k,paragraphStyleRuns:B}}else c=Object.assign({},B,{content:LL(B.content,P)});return c};
EmX=function(B,c){if(c){var x=[];c=_.p(c);for(var P=c.next();!P.done;P=c.next())if(P=Object.assign({},P.value),!(P.startIndex===void 0||P.startIndex>=B)){if(!P.length||P.length+P.startIndex>B)P.length=B-P.startIndex;x.push(P)}return x}};
LL=function(B,c){var x=c,P;if(P=x>0)P=B.charCodeAt(x-1),P=P>=55296&&P<=56319;P&&(x=B.charCodeAt(x),P=x>=56320&&x<=57343);P&&--c;return B.substring(0,c)};
FIA=function(B,c,x){x=x===void 0?O7A:x;if(B){var P=_.cp().resolve(RG);P||_.T("mweb_no_observer_killswitch")?NeI(B,{data:c,observer:P,visibilityCallback:x,hideOption:omQ,showOption:Q5C,layer:B.layer}):_.Ob(new _.mc("Warning: monitorVisibility called with null observer",B.tagName,c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams))}else _.Ob(new _.mc("Warning: monitorVisibility called with null element",c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams,c==null?void 0:
c.rendererContext))};
LI7=function(B,c){var x=[],P=B.content.length,Y,g=(Y=_.cp().resolve(_.Bp(_.fL)))==null?void 0:Y();if(B.paragraphStyleRuns){Y=_.p(B.paragraphStyleRuns);for(var k=Y.next();!k.done;k=Y.next()){var n=x.push,b=n.apply;var d=void 0;k=k.value;if((d=k.listGroup)!=null&&d.listItems){d=[];b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var q="ul";break b;default:q="span"}d.push(M_({run:k,textLength:P,tag:q,config:{className:"yt-core-attributed-string__list-group"},startIndex:k.startIndex,length:k.length}));
q=_.p(k.listGroup.listItems);for(var C=q.next();!C.done;C=q.next()){C=C.value;b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var h="li";break b;default:h="span"}d.push(M_({run:k,textLength:P,tag:h,startIndex:C.startIndex,length:C.length}))}k=d}else k=[];b.call(n,x,_.wq(k))}}if(B.styleRuns&&(c==null||!c.noStyleRuns))for(Y=_.p(B.styleRuns),n=Y.next();!n.done;n=Y.next()){n=n.value;b=N4O({extension:_.t(n.styleRunExtensions,vmo),isDarkTheme:g===void 0?!1:g,runColor:n.fontColor});d=[];b&&d.push("yt-core-attributed-string--link-inherit-color");
n.italic&&d.push("yt-core-attributed-string--italicized");n.underline&&n.strikethrough?d.push("yt-core-attributed-string--underline-strikethrough",lkI(n.underline)):n.underline?d.push("yt-core-attributed-string--underlined",lkI(n.underline)):n.strikethrough&&d.push("yt-core-attributed-string--strikethrough",lkI(n.strikethrough));if(n.baselineOffset){a:switch(n.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":k="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":k=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:k="yt-core-attributed-string--baseline-offset-unknown"}d.push(k)}k=d.join(" ");d=n;q={};if(d.weight||d.weightLabel)q.fontWeight=WIQ(d).toString();b&&(q.color=b);x.push(M_({run:n,textLength:P,tag:"span",config:{className:k,style:q},startIndex:n.startIndex,length:n.length}))}if(B.decorationRuns)for(Y=_.p(B.decorationRuns),n=Y.next();!n.done;n=Y.next())n=n.value,b={},n.textDecorator&&(q=n.textDecorator,k=g===void 0?!1:g,C=[],d=
_.t(q,Z9),q=_.t(q,zXO),d?(q=C,C=q.concat,h=[],(k=N4O({extension:_.t(d.highlightTextDecoratorExtensions,SCd),isDarkTheme:k,runColor:d.backgroundColor}))&&h.push("background-color: "+k+";"),d.backgroundCornerRadius!==void 0&&h.push("border-radius: "+d.backgroundCornerRadius+"px;"),d.leftPadding!==void 0&&h.push("padding-left: "+d.leftPadding+"px;"),d.rightPadding!==void 0&&h.push("padding-right: "+d.rightPadding+"px;"),d.topPadding!==void 0&&h.push("padding-top: "+d.topPadding+"px;"),d.bottomPadding!==
void 0&&h.push("padding-bottom: "+d.bottomPadding+"px;"),C=C.call(q,h)):q&&(d=C,C=d.concat,k=k?"#2ba640":"#107516",k=q.color?wt7(q.color):k,k=["padding: 2px;","border-top: solid "+k+" 2px;","border-bottom: solid "+k+" 2px;","background: linear-gradient(135deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px);"],C=C.call(d,k)),k=C.join(" "),b.style$=k,k=n.textDecorator,d=[],q=_.t(k,zXO),_.t(k,Z9)?d.push("yt-core-attributed-string--highlight-text-decorator"):
q&&d.push("yt-core-attributed-string--bracket-text-decorator"),k=d.join(" "),b.className=k,b.dir="auto"),k=_.t(n.textDecorator,Z9),d=_.t(n.textDecorator,zXO),q=_.t(n.textDecorator,Z9),C=_.t(n.textDecorator,zXO),x.push(M_({run:n,textLength:P,tag:"span",config:b,startIndex:(k==null?void 0:k.startIndex)||(d==null?void 0:d.startIndex)||0,length:(q==null?void 0:q.length)||(C==null?void 0:C.length)||0}));if(B.commandRuns&&(c==null||!c.noEndpoints))for(g=_.p(B.commandRuns),Y=g.next();!Y.done;Y=g.next())Y=
Y.value,n=t9O(Y,c),x.push(M_({run:Y,textLength:P,tag:"a",config:n,startIndex:Y.startIndex,length:Y.length}));if(B.attachmentRuns)for(B=_.p(B.attachmentRuns),g=B.next();!g.done;g=B.next()){g=g.value;b=n=void 0;Y={className:"yt-core-attributed-string--inline-block-mod"};if((b=g.element)==null?0:b.properties){b=(n=g.element)==null?void 0:n.properties;n=[];b=_.t(b,ywq);if(b==null?0:b.margin)b=b.margin,b.left&&n.push("margin-left: "+QF(b.left)+";"),b.right&&n.push("margin-right: "+QF(b.right)+";"),b.top&&
n.push("margin-top: "+QF(b.top)+";"),b.bottom&&n.push("margin-bottom: "+QF(b.bottom)+";");n=n.length!==0?n.join(" "):void 0;Y.style$=n}k=void 0;n={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":d="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":d="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:d=
"yt-core-attributed-string__image-element--image-alignment-bottom"}b.push(d)}if((k=g.element)==null?0:k.properties)k=[],d=_.t(g.element.properties,ywq),(d==null?0:d.height)&&k.push("height: "+QF(d.height)+";"),(d==null?0:d.width)&&k.push("width: "+QF(d.width)+";"),k=k.length!==0?k.join(" "):void 0,n.style$=k,d=void 0,k=((d=_.t(g.element.properties,Gc7))==null?void 0:d.label)||"",n.alt=k;n.className=b.join(" ");b=void 0;q=d=void 0;k=((q=g.element)==null?0:q.type)?(d=_.t(g.element.type,M97))==null?
void 0:d.image:void 0;x.push(M_({run:g,textLength:P,tag:"img",image:k,imageConfig:n,imageWrapperConfig:Y,startIndex:g.startIndex,length:(b=g.length)!=null?b:0}))}if(c==null?0:c.headerRuns)for(c=_.p(c.headerRuns),B=c.next();!B.done;B=c.next())if(B=B.value,B.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(B.headerMapping)){a:{switch(B.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}x.push(M_({run:B,textLength:P,tag:"span",config:g?{className:g}:void 0,startIndex:B.startIndex,length:B.length}))}return x};
_.iA=function(B){return(B==null?void 0:B.content)!==void 0};
Z7d=function(B){return _.iA(B)?B:_.OL(B)};
H7w=function(B){return B.image!==void 0&&B.imageConfig!==void 0};
fkl=function(B,c){if(c==null?0:c.userInput)for(B=_.p(B),c=B.next();!c.done;c=B.next())if(c=c.value,c.tag!=="a"&&c.tag!=="li"){var x=void 0;(x=c).config||(x.config={});c.config.dir=c.tag==="ul"?_.cp().resolve(_.AX):"auto"}};
i77=function(B){return function(c){var x=B.run;(x.onTap!==void 0||x.onLongPress!==void 0)&&_.t(x,Ryo)&&FIA(c,{loggingDirectives:_.t(x,Ryo)})}};
Awd=function(B){return function(c){for(var x in B)(D6[x]||D6[yG["default"]])(c,x,B[x])}};
RXC=function(B,c){ux7(c);var x={data:null,start:0,end:B.length,parts:[]};c=_.p(c);for(var P=c.next();!P.done;P=c.next())P=P.value,D7Y(x,P.startIndex,P.endIndex,P);rw7(B,x);return x};
D7Y=function(B,c,x,P){for(var Y=_.p(B.parts),g=Y.next();!g.done;g=Y.next()){g=g.value;if(typeof g==="string")throw Error("gh");if(g.start<=c&&x<=g.end){D7Y(g,c,x,P);return}}B.parts.push({data:P,parts:[],start:c,end:x})};
rw7=function(B,c){for(var x=c.parts.length;x>=0;x--){var P=c.parts[x],Y=c.parts[x-1],g=x===c.parts.length?c.end:P.start;Y=x===0?c.start:Y.end;g!==Y&&c.parts.splice(x,0,B.slice(Y,g));P&&rw7(B,P)}};
ux7=function(B){B.sort(function(c,x){if(c.startIndex<x.startIndex)return-1;if(x.startIndex<c.startIndex)return 1;c=c.endIndex-c.startIndex;x=x.endIndex-x.startIndex;return c>x?-1:x>c?1:0})};
_.eX$=function(B){var c=B.thumbnails;if(c){B={sources:[]};c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P={};P.url=x.url;P.width=x.width;P.height=x.height;B.sources.push(P)}return B}};
B1I=function(B,c,x,P){if(!c)return B.length>=1?B[B.length-1]:null;if(P)for(var Y=_.p(B),g=Y.next();!g.done;g=Y.next()){g=g.value;var k=void 0,n=(k=g.url)==null?void 0:k.indexOf(P);if(n!==void 0&&n>=0)return g}P=_.p(B);for(Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,Y.width&&Y.height&&(x&&Y.width>=c||!x&&Y.height>=c))return Y;for(c=B.length-1;c>=0;c--)if(x&&B[c].width||!x&&B[c].height)return B[c];return B[0]};
_.cN7=function(B){var c;return(B=(c=B.sources)==null?void 0:c[0])?B.width/B.height:0};
_.x5C=function(B){if(B.sources){B=_.p(B.sources);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=void 0;if((x=c.clientResource)==null?0:x.imageName)return c}}};
PQC=function(B){var c;if((c=B.clientResource)!=null&&c.imageColor)return _.SF(B.clientResource.imageColor)};
_.ahI=function(B,c,x,P,Y,g,k){if(!c||c.length===0||c[0].clientResource)return null;if(x&&c[0].url)return c[0].url;P===void 0&&(P=!0);if(P){var n;B=YzY*(Y||(B==null?void 0:(n=B.getBoundingClientRect())==null?void 0:n.width)||0)}else{var b;B=YzY*(g||(B==null?void 0:(b=B.getBoundingClientRect())==null?void 0:b.height)||0)}c=B1I(c,B,P,k);return(c==null?0:c.url)?c.url:(c==null?0:c.imageData)?c.imageData:null};
gBC=function(B,c,x){x=x?[x]:[];B.opacity&&x.push("opacity: "+B.opacity+";");c&&B.placeholderColor?(B=_.SF(B.placeholderColor),x.push("background-color: "+B+";")):x.push("background-color: transparent;");return x.join(" ")};
sh$=function(B,c,x,P,Y){var g=["yt-core-image"];c&&g.push(c);x||g.push("yt-core-image--fill-parent-height");P||g.push("yt-core-image--fill-parent-width");switch(B.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":g.push("yt-core-image--content-mode-center");break;default:g.push("yt-core-image--content-mode-scale-to-fill")}B.flipForRtlLayout&&
g.push("yt-core-image--flip-rtl");switch(Y){case "TOP_START":var k;g.push(((k=document.body)==null?void 0:k.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return g.join(" ")};
kJY=function(B){var c;if(B==null?0:(c=B.clientResource)==null?0:c.imageName){var x;B=(x=B.clientResource)==null?void 0:x.imageName;a:{switch(B){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":x="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":x="yt-logos-ext:yt-logo-updated";break a}x=void 0}return x||p07.get(B)||B}};
nB7=function(B){return _.T("mweb_wiz_skip_render")?X0x(B):$5C(B)};
X0x=function(B){return function(c){var x=I$l("wink-root");AM();JjI();HLl(x,_.U(B,c))}};
$5C=function(B){var c=c===void 0?!1:c;return function(x){if(!c||!_.T("mweb_skip_keto_to_c3_if_no_data")||x.data!==void 0){var P=gD(!1);try{var Y=x.children;_.T("mweb_render_outside_patch_killswitch")||MO?Y?ub(_.U(B,x,Y)):ub(_.U(B,x)):_.Ob(new _.mc("ketoToC3 called outside of a patch",{tagName:B.TAG_NAME}))}finally{gD(P)}}}};
bid=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
jhQ=function(B,c){B.onViewportEntered=c;K9C.observe(B)};
U5$=function(){var B={rootMargin:"10%",threshold:.01};_.T("mweb_enable_set_io_root_to_null_safari")?B.root=null:_.T("mweb_enable_set_io_root_to_body_safari")&&(B.root=document.body);return new IntersectionObserver(function(c,x){c.filter(function(P){return P.intersectionRect.height>0}).forEach(function(P){P=P.target;
if(!_.T("mweb_enable_only_update_image_when_connected")||P.isConnected!==!1){var Y;(Y=P.onViewportEntered)==null||Y.call(P);x.unobserve(P)}})},B)};
d5l=function(B,c,x,P,Y){function g(){if(P){var n=P.loadedClass,b=P.notifyOnUnloaded;n&&_.uA(B,n);b&&B.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function k(){var n=x(c,B);n&&B.getAttribute("src")!==n&&(_.T("mweb_enable_only_update_image_when_connected")&&B.isConnected===!1||n===B.src||(B.src=n),g())}
Y=Y===void 0?!0:Y;B.removeAttribute("src");g();c&&(Y?jhQ(B,k):k())};
qzO=function(B,c,x){if(!c)return!1;c=x(c,B);x=B.getAttribute("src");return c&&c===x&&B.complete};
CQ7=function(B,c){for(var x in c)x==="className"?B.className=c[x]:(D6[x]||D6[yG.default])(B,x,c[x])};
hGl=function(B,c,x,P){nB7(_.D9)({contentMode:c.contentMode,loadedClass:c.loadedClass,isPreloaded:c.isPreloaded,notifyOnLoaded:c.notifyOnLoaded,notifyOnUnloaded:c.notifyOnUnloaded,preferredThumbnail:c.preferredThumbnail,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,objectPosition:c.objectPosition,targetWidth:c.targetWidth,targetHeight:c.targetHeight,shouldShowPlaceholder:c.shouldShowPlaceholder,useWidth:c.useWidth,isToggled:c.isToggled,alt:c.alt,className:c.className,onerror:c.onerror,
onload:c.onload,style$:c.style$,color:c.color,width:c.width,height:c.height,"aria-hidden$":c["aria-hidden$"],draggable:c.draggable,"data-disabled$":c["data-disabled$"],data:B,callback:x,renderLazy:P===void 0?!0:P,hideOn404:!1})};
T1$=function(B,c,x){x=x===void 0?!1:x;var P=B.sources!==void 0?B:_.eX$(B);if(P){var Y=c.onload;c.onload=function(b){var d=b.target;x&&d.naturalWidth===120||_.rX(d,"yt-core-image--loaded");c.notifyOnLoaded&&d.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Y==null||Y(b)};
c.targetWidth&&c.preserveWidth&&(c.width=c.targetWidth);c.targetHeight&&c.preserveHeight&&(c.height=c.targetHeight);var g=_.x5C(P),k=g&&kJY(g);if(k)return(B=PQC(g))&&(c.color=B),{type:"icon",iconName:k,config:Object.assign({},c,c.alt?{}:{"aria-hidden$":"true"},{"aria-label$":c.alt,role:"img"})};if(B.sources===void 0){c.alt=B.accessibility&&B.accessibility.accessibilityData&&B.accessibility.accessibilityData.label||c.alt;c.style$=gBC(B,c.shouldShowPlaceholder,c.style$);var n;c.isPreloaded=!((n=_.t(B,
m5w))==null||!n.isPreloaded)}c.contentMode&&!P.contentMode&&(P.contentMode=c.contentMode);c.className=sh$(P,c.className,c.preserveHeight,c.preserveWidth,c.objectPosition);c.loadedClass="yt-core-image--loaded";return{type:"image",image:P,config:c}}};
_.Rm=function(){var B=_.ts.apply(0,arguments);return _.fE(_.ib,function(c){var x=B.map(function(P){return P(c)});
return function(){return void x.forEach(function(P){return void(P==null?void 0:P())})}})};
e_=function(B,c){var x=c==null?void 0:c.initial;return _.db(function(){_.Ox(!0);return x=B(x)},{equals:c==null?void 0:c.isEqual},"rSlKsc")};
Vu7=function(B,c){if(B===c)return!0;if(B===void 0||c===void 0)return!1;var x,P,Y,g,k,n,b,d;return B.content===c.content&&((x=B.styleRuns)==null?void 0:x.length)===((P=c.styleRuns)==null?void 0:P.length)&&((Y=B.commandRuns)==null?void 0:Y.length)===((g=c.commandRuns)==null?void 0:g.length)&&((k=B.attachmentRuns)==null?void 0:k.length)===((n=c.attachmentRuns)==null?void 0:n.length)&&((b=B.decorationRuns)==null?void 0:b.length)===((d=c.decorationRuns)==null?void 0:d.length)};
N17=function(B,c){if(B){var x=Z7d(B);if(x!=null&&x.content)if(_.T("attr_string_reactive"))nB7(tuA)({text:B,config:c});else{var P=!(c==null||!c.ariaLabel)||!(x.commandRuns&&x.commandRuns.length!==0||x.paragraphStyleRuns&&x.paragraphStyleRuns.length!==0);B=P?c==null?void 0:c.ariaLabel:null;P=P?"text":null;lA("span",{className:JwY(x,c),dir$:(c==null?0:c.userInput)?"auto":void 0,"aria-label$":B,role$:P},function(){if(x.styleRuns||x.commandRuns||x.attachmentRuns||x.decorationRuns){var Y=LI7(x,c);fkl(Y,
c);Y=RXC(x.content,Y);Y=_.p(Y.parts);for(var g=Y.next();!g.done;g=Y.next())w07(g.value)}else B5(x.content)})}}};
w07=function(B){typeof B==="string"?B5(B):H7w(B.data)?lA("span",B.data.imageWrapperConfig,function(){hGl(B.data.image,B.data.imageConfig)}):lA(B.data.tag,B.data.config,function(c){i77(B.data)(c);
c=_.p(B.parts);for(var x=c.next();!x.done;x=c.next())w07(x.value)})};
JNX=function(B){return B.parts.map(Ihq)};
Ihq=function(B){if(typeof B==="string")return B;B=H7w(B.data)?_.U("span",{el:_.Rm(Awd(B.data.imageWrapperConfig))},_.U(_.D9,Object.assign({},{data:B.data.image},B.data.imageConfig))):_.U(B.data.tag,{el:_.Rm(i77(B.data),Awd(B.data.config))},B.parts.map(Ihq));return jI(B)};
W9$=function(B,c){return B===c?!0:B===void 0||c===void 0?!1:B.noStyleRuns===c.noStyleRuns&&B.noLinkColor===c.noLinkColor&&B.noEndpoints===c.noEndpoints&&B.headerRuns===c.headerRuns&&B.isOverlay===c.isOverlay&&B.linkInheritColor===c.linkInheritColor&&B.userInput===c.userInput};
lhC=function(B){return function(){var c,x,P,Y,g,k,n,b,d,q,C,h,V,N;return{ariaLabel:(c=B.ariaLabel)==null?void 0:c.call(B),className:(x=B.className)==null?void 0:x.call(B),ellipsisTruncate:(P=B.ellipsisTruncate)==null?void 0:P.call(B),isOverlay:(Y=B.isOverlay)==null?void 0:Y.call(B),linkInheritColor:(g=B.linkInheritColor)==null?void 0:g.call(B),noEndpoints:(k=B.noEndpoints)==null?void 0:k.call(B),noStyleRuns:(n=B.noStyleRuns)==null?void 0:n.call(B),noLinkColor:(b=B.noLinkColor)==null?void 0:b.call(B),
noPreWrap:(d=B.noPreWrap)==null?void 0:d.call(B),noWrap:(q=B.noWrap)==null?void 0:q.call(B),skipOnClick:(C=B.skipOnClick)==null?void 0:C.call(B),stopPropagation:(h=B.stopPropagation)==null?void 0:h.call(B),userInput:(V=B.userInput)==null?void 0:V.call(B),headerRuns:(N=B.headerRuns)==null?void 0:N.call(B)}}};
EB7=function(B){return B.value===""||B.value==="true"?!0:B.value==="false"?!1:isNaN(Number(B.value))?B.value:Number(B.value)};
Bw=function(B,c){B=new OiX(B,c);_.lb(B);throw B;};
oBC=function(B,c,x){var P=LxY(B);B._numRenders=0;try{var Y=_.$ed(function(){return _.U(c,Object.assign({},x))})}catch(k){var g=function(n){n.args||(n.args=[]);
n.args.push("Error in web component wrapper");n.args.push(B.tagName.toLowerCase());return n};
_.Eb(k instanceof Error?g(k):new OiX("Wiz rendering error",B.tagName.toLowerCase()));throw k;}finally{LxY(P)}return Y};
_.xU=function(B,c,x){function P(q){var C={};q=_.p(q);for(var h=q.next();!h.done;h=q.next()){h=h.value;var V=void 0,N=void 0,l=void 0,E=_.KN((l=(N=(V=h).getAttribute)==null?void 0:N.call(V,"slot"))!=null?l:"children");if(V=C[E])V.push(h);else if(E in g||E==="children")C[E]=[h]}q=_.p(Object.keys(C));E=q.next();for(h={};!E.done;h={content$jscomp$56:void 0},E=q.next())E=E.value,E!=="children"&&(h.content$jscomp$56=C[E],C[E]=function(S){return function(){return S.content$jscomp$56}}(h));
return C}
x=x===void 0?{}:x;B.componentType!==VG||Bw("Components must be marked reactive to be used from web component wrapper.",c);Y0.has(c)&&Bw("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",c);var Y,g=(Y=x.props)!=null?Y:{};am.add(c);var k=Qhl();Y=function(){var q=k.apply(this,arguments)||this;q.rawProps={};q.queuingRender=!1;q.dispose=function(){};
q.isWebComponentWrapper=!0;q.isReparenting=!1;q.hasRendered=!1;return q};
_.w(Y,k);Y.prototype.render=function(){this.hasRendered=!0;for(var q=_.p([].concat(_.wq(this.attributes))),C=q.next();!C.done;C=q.next())C=C.value,C.name!=="slot"&&this.removeAttribute(C.name);q=Object.assign({},this.componentProps,this.slotProps);C=_.p(oBC(this,B,q));q=C.next().value;C=C.next().value;!(q[0]instanceof Element)||q.length>1?Bw("Wrapped Wiz components must return a single root element.",c):(q=q[0].tagName.toLowerCase(),q!==c&&Bw("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(q+" !== '"+c),c),this.dispose=C)};
Y.prototype.setUpProps=function(){for(var q=this.rawProps,C=this.attributes,h=_.p(Object.keys(g)),V=h.next();!V.done;V=h.next()){V=V.value;var N=void 0;((N=this)==null?0:N[V])&&this[V]!==F9d&&q[V]===void 0&&(q[V]=this[V],(N=Object.getOwnPropertyDescriptor(this.constructor.prototype,V))&&Object.defineProperty(this,V,N))}h=_.p(C);for(V=h.next();!V.done;V=h.next()){N=V.value;V=_.KN(N.name);var l=V==="class"&&!C.getNamedItem("class-name");if(V in g||l)N=EB7(N),V!=="class"||q.className?q[V]=N:q.className=
N}C={};for(var E in g)g[E]!==_.cw&&g[E]!==vBI&&(q[E]instanceof Function&&Bw("Function props must be configured as STATIC, not SIGNAL.",c),V=_.p(_.$D(q[E],void 0,"Ri8MSe")),h=V.next().value,V=V.next().value,C[E]=V,q[E]=h);q=_.p([q,C]);this.componentProps=q.next().value;this.setters=q.next().value;this.slotProps=P(this.childNodes)};
Y.prototype.connectedCallback=function(){x0===c&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Y.prototype.disconnectedCallback=function(){if(!this._isInert){var q;a:{if(_.zG$)for(q=this;q;){if(_.SzQ.has(q)){q=!0;break a}q=q.parentElement}q=!1}if(q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){q=_.p([].concat(_.wq(this.attributes)));for(var C=q.next();!C.done;C=q.next())C=C.value,C.name!=="slot"&&this.removeAttribute(C.name)}this.innerText="";F$X(this)}}};
Y.prototype._setPendingPropertyOrPath=function(){};
Y.prototype.notifyPath=function(){};
_.AJ.Object.defineProperties(Y.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var n=_.p(Object.keys(g)),b=n.next(),d={};!b.done;d={prop$jscomp$104:void 0},b=n.next())d.prop$jscomp$104=b.value,b=void 0,((b=x.legacyPolymer)==null?0:b.forwardHostProps)&&EyI.has(d.prop$jscomp$104)||Object.defineProperty(Y.prototype,d.prop$jscomp$104,{set:function(q){return function(C){var h=this;this._isInert||(this.setters?qO(function(){var V,N;return void((N=(V=h.setters)[q.prop$jscomp$104])==null?void 0:N.call(V,C))}):(this.rawProps[q.prop$jscomp$104]=C,this.queuingRender&&q.prop$jscomp$104===
"data"&&C!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(d),
get:yNd.has(d.prop$jscomp$104)?void 0:function(){return F9d}});
customElements.define(c,Y)};
_.GJY=function(B,c){return(B=_.Pw(B,c))?_.UG(_.Tz(B)):null};
_.YU=function(B){if(B=_.Pw(B,Number.MAX_VALUE,void 0,"width"))return _.Tz(B)};
_.Pw=function(B,c,x,P){P=P===void 0?"width":P;if(!B||!B.length)return null;if(_.T("kevlar_tuner_should_always_use_device_pixel_ratio")){var Y=window.devicePixelRatio;_.T("kevlar_tuner_should_clamp_device_pixel_ratio")?Y=Math.min(Y,_.Yu("kevlar_tuner_clamp_device_pixel_ratio")):_.T("kevlar_tuner_should_use_thumbnail_factor")&&(Y=_.Yu("kevlar_tuner_thumbnail_factor"));Mu7=Y}else Mu7||(Mu7=window.devicePixelRatio);Y=Mu7;_.T("kevlar_tuner_should_always_use_device_pixel_ratio")?c*=Y:Y>1&&(c*=Y);if(_.T("kevlar_tuner_min_thumbnail_quality"))return B[0].url||
null;Y=B.length;if(_.T("kevlar_tuner_max_thumbnail_quality"))return B[Y-1].url||null;if(x)for(var g=0;g<Y;g++)if(B[g].url.indexOf(x)>=0)return B[g].url||null;for(x=0;x<Y;x++)if(B[x][P]>=c)return B[x].url||null;for(c=Y-1;c>0;c--)if(B[c][P])return B[c].url||null;return B[0].url||null};
Hil=function(){a2.size?setTimeout(function(){gV(L9X)},0):ZiX=0};
L9X=function(){var B=(0,_.BA)(),c=null,x=!1;a2.forEach(function(Y){Y.loaded=!0;Y.loadTime=B;Y.pendingPaint=!1;var g=fh$.get(Y);g&&g.resolve(B);c=Y;x||!Y.ftlEligible&&Y.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(x=!0)});
var P;((P=c)==null?0:P.markDirty)&&c.markDirty();a2.clear();ZiX=0;x&&iiX(B)};
AN7=function(B){a2.add(B);B.pendingPaint=!0;ZiX||(ZiX=_.s9(_.EE,Hil))};
uRC=function(B){B.loaded=!1;B.loadTime=Infinity;var c=fh$.get(B);c&&(c.reject(Error("mh")),fh$.delete(B));B.pendingPaint&&(a2.delete(B),B.pendingPaint=!1)};
_.D5d=function(B){var c=B.indexOf(":");return c===-1?{originalName:B}:{originalName:B.substring(0,c),datasyncId:B.substring(c+1)}};
_.RGd=function(){return _.X(function(B){if(rNX!==void 0)return B.return(rNX);rNX=new Promise(function(c){var x;return _.X(function(P){switch(P.nextAddress){case 1:return _.kM(P,2),_.K(P,_.pw.open("test-only"),4);case 4:return _.K(P,_.pw.delete("test-only"),5);case 5:_.Gw(P,3);break;case 2:if(x=_.be(P),x instanceof Error&&x.name==="SecurityError")return c(!1),P.return();case 3:c("caches"in window),_.Kq(P)}})});
return B.return(rNX)})};
cCq=function(){return _.X(function(B){if(B.nextAddress==1)return _.K(B,_.RGd(),2);if(!B.yieldResult)return B.return(void 0);eGX||(eGX=new Bmw);return B.return(eGX)})};
xWY=function(B){var c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return _.K(g,cCq(),2);case 2:c=g.yieldResult;if(!c)throw Error("oh");return _.K(g,c.open("yt-player-local-img"),3);case 3:return x=g.yieldResult,_.K(g,x.match(B),4);case 4:P=g.yieldResult;if(!P)throw Error("ph");return _.K(g,P.blob(),5);case 5:return Y=g.yieldResult,g.return(Y)}})};
P1X=function(B,c){for(var x in B)if(B.hasOwnProperty(x)&&c[x])return x;return null};
YwY=function(B){return"stamp"+B.replace("-","_")+"_"};
a7x=function(B){var c=B.match(/\[\[([\w\.]+)\]\]/);if(c&&c.length>1)return c[1];_.lb(Error("rh`"+B));return null};
g8d=function(B){return B===void 0?_.zu("REUSE_COMPONENTS",!1):B||!1};
kvQ=function(B,c,x){x&&(c.is?(sT7.has(c)&&(B=sT7.get(c),x=B.listener,delete c[B.property],x.type==="element"&&c.removeEventListener(x.eventName,x.handler),sT7.delete(c)),pUw(c)):c.__proto__==HTMLElement.prototype&&(c=new _.mc("Rendererstamper removed a non custom element","Stamper: "+B+" element: "+(c&&c.nodeName)),_.Ob(c)))};
XUq=function(B,c,x,P){var Y=c.node?c.node:c;_.Y9(x).parentNode===Y&&(c.removeChild(x),kvQ(B,x,P));if(B=kU.get(x))kU.delete(x),_.EE.cancelJob(B);x.hidden=!1};
$WA=function(B,c,x,P){if(c&&c.children&&(x=c.children[x]))if(_.zu("DEFERRED_DETACH"))for(;x&&!kU.has(x);){var Y=B,g=c,k=x,n=P;k.hidden=!0;Y=_.Vp(_.EE,XUq.bind(null,Y,g,k,n),0);kU.set(k,Y);x=x.nextElementSibling}else for(;(k=c.lastElementChild)&&(c.removeChild(k),kvQ(B,k,P),k!=x););};
n8I=function(B){var c=_.Ho("__slot-el");_.lk(function(){for(var x=_.p(B.slotContent),P=x.next();!P.done;P=x.next())c.value.appendChild(P.value)});
return _.U("__slot-el",{el:c,skip:!0})};
_.XB=function(B,c,x){x=x===void 0?bcq:x;Y0.add(c);var P;(P=x).propNames!=null||(P.propNames=[]);var Y=new Set(x.propNames),g=Qhl();P=function(){var d=g.call(this)||this;d.props={};d.isUpdating=!1;d.hasAttached=!1;d.isInert=!1;d.updateQueued=!1;d.initialClasses=[];MYQ(d,c);return d};
_.w(P,g);P.prototype.forwardKebabCaseProp=function(d,q){d=_.KN(d);if(Y.has(d)||d==="children")this.props[d]=q};
P.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var d=_.p(this.initialClasses),q=d.next();!q.done;q=d.next())(q=q.value)&&this.classList.add(q);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
P.prototype.handleSlottedContent=function(){for(var d=new Map,q=_.p(this.children),C=q.next();!C.done;C=q.next()){C=C.value;var h=void 0,V=(h=C.getAttribute("slot"))!=null?h:"children";(h=d.get(V))?h.push(C):d.set(V,[C]);if(!C.getAttribute("key")){var N=void 0,l=void 0;C.setAttribute("key",V+"_"+((l=(N=h)==null?void 0:N.length)!=null?l:0))}}d=_.p(d);for(q=d.next();!q.done;q=d.next())C=_.p(q.value),q=C.next().value,C=C.next().value,this.forwardKebabCaseProp(q,_.U(n8I,{slotContent:C}))};
P.prototype.connectedCallback=function(){var d=this;if(!MYQ(this,c)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var q=_.p(this.attributes),C=q.next();!C.done;C=q.next())C=C.value,this.forwardKebabCaseProp(C.name,EB7(C));this.handleSlottedContent();x.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){d.afterFirstPatch()});
this.hasAttached=!0}};
P.prototype.attributeChangedCallback=function(d,q,C){this.isInert||this.isUpdating||this.isConnected||d!=="class"||this.initialClasses.push.apply(this.initialClasses,_.wq(C.split(" ")))};
P.prototype.disconnectedCallback=function(){WD7(this)};
P.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var d,q;HLl(this,_.U(B,Object.assign({},this.props,{idomKey:(q=(d=this.__incrementalDOMData)==null?void 0:d.key)!=null?q:c})),!0)}catch(h){var C=h instanceof Error?h:new _.mc("Wiz rendering error");C.args||(C.args=[]);C.args.push("Error in deprecated web component wrapper");C.args.push(c.toLowerCase());_.lb(C);throw h;}finally{this.updateQueued=this.isUpdating=!1}}};
P.prototype.enqueueUpdate=function(){var d=this;return _.X(function(q){if(x.synchronous)return d.update(),q.return();if(d.updateQueued)return q.return();d.updateQueued=!0;return q.return(Promise.resolve().then(function(){d.update()}))})};
P.prototype.notifyPath=function(){x.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.AJ.Object.defineProperties(P,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var k=_.p(x.propNames),n=k.next(),b={};!n.done;b={prop$jscomp$106:void 0},n=k.next())b.prop$jscomp$106=n.value,Object.defineProperty(P.prototype,b.prop$jscomp$106,{set:function(d){return function(q){this.isInert||q===this.props[d.prop$jscomp$106]||(this.props[d.prop$jscomp$106]=q,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(b)});
customElements.define(c,P)};
_.K3d=function(B,c){return _.X9(B.entities,"markersEngagementPanelSyncEntity",c)};
jTq=function(B,c){return _.X9(B.entities,"fantasyWinProbabilityEntity",c)};
UWO=function(B,c){return _.X9(B.entities,"fantasyTeamEntity",c)};
dWQ=function(B,c){return _.X9(B.entities,"fantasyPlayerEntity",c)};
qwx=function(B,c){return _.X9(B.entities,"booleanEntity",c)};
C1$=function(B,c){return _.X9(B.entities,"qrCodeEntity",c)};
hwl=function(B){return _.X9(B.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
mWw=function(){if($U)return $U;if(window.lottie)return $U=Promise.resolve(window.lottie);var B=_.OE(_.v5("LOTTIE_URL"));return B?$U=new Promise(function(c,x){var P=document.createElement("script");P.addEventListener("load",function(){c(lottie)});
P.addEventListener("error",function(Y){var g="Lottie library failed to load.";Y?Y.message&&(g+=" Original description: "+Y.message,_.oG(Y,g)):Y=Error(g);_.Ob(Y);x(Y)});
P.setAttribute("async","");_.Mg(P,B);document.head.appendChild(P)}):Promise.reject(Error("sh"))};
TmC=function(){return $U?$U:mWw()};
VUq=function(B){if(B)switch(B){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.T("kevlar_use_wil_icons"))return B=(B=hwl(_.uG().getState()))&&B.animationLightUrl&&B.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:B.animationLightUrl,pathDarkTheme:B.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,B?B:nw.get("LIKE")}};
tUO=function(B){var c=VUq(B);if(c)return c;switch(B){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return nw.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return nw.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return nw.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return nw.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return nw.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return nw.get("NOTIFICATION_BELL")}};
Nmx=function(B,c){if(!B||wUQ)c=!1;else{if(B.closest){var x=!!VUq(c);x=_.v5("ID_TOKEN")&&x?!!B.closest("segmented-like-dislike-button-view-model"):!1}else x=!1;if(!x)if(B.closest)if(x=!_.v5("ID_TOKEN"),B=B.closest("ytd-subscription-notification-toggle-button-renderer-next"),x||!B)x=!1;else{var P;x=((P=B.data)==null?void 0:P.targetId)==="notification-bell"&&c!=="EXPAND_MORE"}else x=!1;c=x}return c};
I7I=function(B){var c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.kM(P,2),_.K(P,fetch(B),4);case 4:return c=P.yieldResult,_.K(P,c.json(),5);case 5:return P.return(P.yieldResult);case 2:x=_.be(P),_.Ob(x),_.Kq(P)}})};
JCO=function(B,c){var x,P,Y;return _.X(function(g){if(g.nextAddress==1)return(x=c?B.pathDarkTheme:B.path)?_.K(g,Promise.all([I7I(x),mWw()]),2):g.return();P=g.yieldResult;Y=P[0];bv.set(x,Y);_.Kq(g)})};
_.Kw=function(){for(var B=_.ts.apply(0,arguments),c=!0,x=_.p(B),P=x.next();!P.done;P=x.next())if(typeof P.value!=="string"){c=!1;break}return c?B.join(" ").trim()||void 0:function(){for(var Y="",g=_.p(B),k=g.next();!k.done;k=g.next())if(k=k.value,typeof k==="function"&&(k=k()),k)if(typeof k==="string")Y+=" "+k;else for(var n in k)if(k.hasOwnProperty(n)){var b=k[n];typeof b==="function"&&(b=b());b&&(Y+=" "+n)}Y=Y.trim()||void 0;return _.Ox(Y)}};
_.j5=function(B){var c;var x=B.data;var P=B.className;var Y=B.animationName;var g=B.animationRef;var k=(c=B.elRefForInterop)||_.Ho("lottie-component"),n;_.lP(function(){var q;return void((q=n)==null?void 0:q.destroy())});
var b;_.IO(function(){var q=_.Ox(Y);if(q!==b){b=q;var C=Object.assign({},{animationName:q,animationRef:_.Ox(g)},_.Ox(x));try{_.cp().resolve(W3$)().then(function(N){var l;(l=n)==null||l.destroy();l=C.animationRef;var E=C.listeners;N=N.loadAnimation(Object.assign({},{container:k.value},C.animationConfig));l&&(l.lottieEl=N);if(E)for(l=_.p(Object.entries(E)),E=l.next();!E.done;E=l.next()){var S=_.p(E.value);E=S.next().value;(S=S.next().value)&&N.addEventListener(E,S)}n=N})}catch(N){q=N;
var h="LottieComponent error.";q.message&&(h+=" Original description: "+q.message);_.oG(q,h);_.Ob(q);var V;((V=C.listeners)==null?0:V.error)&&C.listeners.error(q)}}},"Cu2JNe");
var d=_.Kw("ytLottieComponentHost",P);return _.U(QG$,{cond:function(){return!c},
then:function(){return _.U("lottie-component",{class:d,el:k})}})};
E87=function(B,c,x,P){function Y(k,n){if(c.value===n&&B!=null&&B.value){for(;B.value.firstChild;)B.value.removeChild(B.value.firstChild);B.value.classList.add("yt-spec-icon-shape");k(B.value,P)}}
x=_.l7C(_.cp().resolve(_.nL),x);if(typeof x==="function")c.value=null,Y(x,null);else{var g=new _.bb(x.then,x);c.value=g;g.then(function(k){Y(k,g)})}};
o8X=function(B,c){var x=document.createElement("div"),P=_.It(x,function(){return _.U(_.m,{cond:B,then:function(Y){return _.U(Oc7,{data:Y,options:c})}})});
return[x,P]};
_.U9=function(){for(var B=[],c=_.p(_.ts.apply(0,arguments)),x=c.next();!x.done;x=c.next())if(x=x.value)if(typeof x==="string")B.push(x);else{x=_.p(Object.entries(x));for(var P=x.next();!P.done;P=x.next()){var Y=_.p(P.value);P=Y.next().value;(Y=Y.next().value)&&B.push(P)}}return B.join(" ")};
zwQ=function(B){var c=_.Ho("animated-rolling-character"),x=Os(),P=Ag(B.character)||Ag(B.previousCharacter);API(function(){if(B.marginMultiplier){var Y;(Y=x.value)==null||Y.cancel();P?(Y=B.previousCharacter?Number(B.previousCharacter)+10:B.rollUp?0:30,B.shouldAnimate||(Y-=QTO(B,Y))):(Y=B.rollUp?0:2,B.shouldAnimate||(Y-=B.rollUp?-1:1));c.value.style.marginTop="-"+Y*B.marginMultiplier+"px";B.shouldAnimate?x.value=F37(c.value,B,Y,P):c.value.style.display=B.character?"":"none"}});
return _.U("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},rf(P,function(){for(var Y=[],g=1;g<30;g++)Y.push(_.U("div",null,g%10));return _.U(_.at,null,_.U("div",null,"\u00a0"),Y,_.U("div",null,"\u00a0"))},function(){return v8$(B.character)}))};
v8$=function(B){return _.U(_.at,null,_.U("div",null,"\u00a0"),_.U(_.at,null,rf(!B||_.sl(B),function(){return _.U("div",null,"\u00a0")},function(){return _.U("div",null,B)})),_.U("div",null,"\u00a0"))};
F37=function(B,c,x,P){x=new Animation(new KeyframeEffect(B,[{transform:"translateY(0px)"},{transform:"translateY("+(P?QTO(c,x):c.rollUp?-1:1)*c.marginMultiplier+"px)"}],SwO),document.timeline);c.character?(B.style.display="",x.onfinish=null):x.onfinish=function(){B.style.display="none"};
x.play();return x};
QTO=function(B,c){var x=Number(B.character)+10;if(B.previousCharacter)if(B.character){var P=Number(B.character),Y=Number(B.previousCharacter);B=B.rollUp?Y<P?x:x+10:Y<P?x-10:x}else B=B.rollUp?30:0;else B=B.character==="0"?x:B.rollUp?x-10:x+10;return c-B};
_.dV=function(B,c){return function(x){var P={},Y;for(Y in x){var g=void 0,k=void 0;((g=c)==null?0:(k=g.callbacks)==null?0:k[Y])||(P[Y]=x[Y])}return _.U(Xwd,null,function(){for(var n in P)x[n]=_.Ox(P[n]);x.disableReactiveLogging=!0;return _.U(B,Object.assign({},x))})}};
MUY=function(B,c,x,P,Y,g,k){x=new Animation(new KeyframeEffect(B,[{transform:"translateY(0px)"},{transform:"translateY("+(g?yCO(c,x,P,Y):P?-1:1)*k+"px)"}],Gvd),document.timeline);c?(B.style.display="",x.onfinish=null):x.onfinish=function(){B.style.display="none"};
x.play();return x};
yCO=function(B,c,x,P){var Y=Number(B)+10;c?B?(B=Number(B),c=Number(c),x=x?c<B?Y:Y+10:c<B?Y-10:Y):x=x?30:0:x=B==="0"?Y:x?Y-10:Y+10;return P-x};
ZcC=function(B){var c=Os(),x=Os();W5(function(){c.value=B.numberText;x.value=B.numberValue},[B.numberText]);
var P=B.fontSizeMultiplier?B.heightPx*B.fontSizeMultiplier:B.heightPx,Y=P4Q(function(){if(B.numberText){var k=B.numberText;var n=B.forceRollUp||!x.value||!B.numberValue||x.value<B.numberValue;var b=!!B.shouldAnimate,d=c.value,q=[],C=0,h=0,V=(d?d.replace(/\D/g,"").length:0)-(k?k.replace(/\D/g,"").length:0);d=d?d.split(/(\d)/).filter(Boolean):[];for(k=k.split(/(\d)/).filter(Boolean);V<0;){var N=k[h];q.push({character:N,rollUp:n,marginMultiplier:P,shouldAnimate:b});h++;Ag(N)&&V++}for(;C<V;)N=d[C],q.push({previousCharacter:N,
rollUp:n,marginMultiplier:P,shouldAnimate:b}),C++,Ag(N)||V++;for(;h<k.length;)V=k[h],N=d[C],Ag(V)===Ag(N)?(h++,C++):Ag(V)?(C++,V=void 0):Ag(N)&&(h++,N=void 0),q.push({character:V,previousCharacter:N,rollUp:n,marginMultiplier:P,shouldAnimate:b});n=q}else n=[];return n},[B.numberText]),g=B.numberText?["height: "+P+"px;",
"line-height: "+B.heightPx+"px;"].join(" "):"";return _.U("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:g,dir:"ltr","aria-hidden":"true"},Y.map(function(k){return _.U(L3X,Object.assign({},k))}))};
f7X=function(B){var c;return(c=Hcx[B])!=null?c:"EVENT_SPAN_TYPE_UNKNOWN"};
icC=function(B){var c=B.nodeName;if(B.id)return c+="#"+B.id;if(B.classList)for(var x=_.p(B.classList),P=x.next();!P.done;P=x.next())c+="."+P.value;B.parentElement&&(c=icC(B.parentElement)+" > "+c);return c};
ACd=function(B){return function(c){var x=f7X(c.type);return x==="EVENT_SPAN_TYPE_UNKNOWN"?B(c):JZC("event",{type:x,nodepath:c.target instanceof Element?icC(c.target):void 0},function(){return B(c)})}};
_.qe=function(B){B&&wLd("event")&&(B=ACd(B));return Glx(function(c){var x,P=(x=B)==null?void 0:x(c);return typeof P==="boolean"?P:!0})};
Cw=function(B){return function(){return B()?B():void 0}};
uc7=function(B){return new KeyframeEffect(B,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
DW7=function(B){return new KeyframeEffect(B,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.mg=function(B){var c=e_(function(x){x=x?XS(x[0]):void 0;return _.$D(B(x),void 0,"AwTxXe")},{isEqual:function(x,P){return XS(x[0])===XS(P[0])}});
return[function(){return c()[0]()},
function(x){return void c()[1](x)}]};
_.TU=function(B){return function(){var c="",x;for(x in B){for(var P=B[x];typeof P==="function";)P=P();P!==void 0&&P!==null&&(c+="; "+x+": "+P)}return c.length>0?_.Ox(c.slice(2)):_.Ox()}};
rCq=function(B){switch(B){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"}};
cAd=function(B,c,x,P,Y,g){var k=RwY(B),n=k.disabled,b=k.iconPosition,d=k.style,q=k.focused,C=function(){return!!N()&&b()==="icon-only"},h=function(){return!!N()&&b()==="icon-only-40"},V=function(){return!!N()&&b()==="icon-with-label"},N=function(){return!!c||!(P==null||!P())};
return{type:function(){return d()==="call-to-action-inverse"?"text":d()==="overlay-dark"&&B().type!=="filled"&&B().type!=="tonal"?"tonal":B().type},
shouldFocus:function(){return(q()||(g==null?void 0:g()))&&!n()},
hasIconLeading:function(){return!!N()&&b()==="leading"},
hasIconTrailing:function(){return!!N()&&b()==="trailing"},
hasIconLeadingTrailing:function(){return!!N()&&!!(x||Y!=null&&Y())&&b()==="leading-trailing"},
hasIconOnly:C,hasIconOnly40:h,hasIconWithLabel:V,iconButton:function(){return C()||h()||V()},
visiblyDisabled:function(){return(n()?"disabled":B().state)==="disabled"||n()},
overrideSmallSizeIcon:function(){return ewx(B(),N())},
iconToRender:c?c:function(){return _.U(_.Vf,{icon:P,size:function(){return tW(B(),!0)},
active:function(){return B().toggled},
iconFilter:function(){return BHO(B())}})},
secondaryIconToRender:x?x:function(){return _.U(_.Vf,{icon:Y,size:function(){return tW(B(),!0)},
active:function(){return B().toggled},
iconFilter:function(){return BHO(B())}})}}};
RwY=function(B){return{size:function(){return B().size},
style:function(){return B().style},
focused:function(){return B().focused},
disabled:function(){return B().disabled},
onTap:function(c){var x,P;return(P=(x=B()).onTap)==null?void 0:P.call(x,c)},
alignByText:function(){return B().alignByText},
aTagConfig:function(){return B().aTagConfig},
customColors:function(){return B().customColors},
segmentedPosition:function(){return B().segmentedPosition},
toggled:function(){return B().toggled},
toggleable:function(){return B().toggleable},
accessibilityLabel:function(){return B().accessibilityLabel},
onToggle:function(c){var x,P;return(P=(x=B()).onToggle)==null?void 0:P.call(x,c)},
iconPosition:function(){return B().iconPosition},
oneOffCustomTextWrap:function(){return B().oneOffCustomTextWrap},
disableTextEllipsis:function(){return B().disableTextEllipsis},
disableBackdropFilter:function(){return B().disableBackdropFilter},
tooltipText:function(){return B().tooltipText},
ariaHidden:function(){return B().ariaHidden},
tabIndex:function(){return B().tabIndex},
buttonText:function(){return B().buttonText},
formattedButtonText:function(){return B().formattedButtonText},
animatedTextProps:function(){return B().animatedTextProps}}};
xJ7=function(B){return B.style==="overlay-dark"?4:B.style==="overlay"?B.type==="filled"?4:3:B.type==="filled"||B.style==="call-to-action-inverse"||B.style==="mono-inverse"?2:1};
ewx=function(B,c){c=(B.iconPosition==="icon-only"||B.iconPosition==="icon-only-40"||B.iconPosition==="icon-with-label")&&c;return!B.segmentedPosition&&c&&B.size==="S"};
PCI=function(){return!_.T("web_disable_backdrop_filter")};
tW=function(B,c){switch(B.size){case "XS":return 16;case "S":return ewx(B,c)?24:16;default:return 24}};
YHY=function(B){switch(B){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"}};
awq=function(B){switch(B){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"}};
g3d=function(B){switch(B){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"}};
BHO=function(B){if(B.style==="overlay-dark"&&B.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
s97=function(B){if(!B)return{};var c=B.color,x=B.backgroundColor;B=B.borderColor;var P="";c&&(P+="color: "+c+";");x&&(P+="background-color: "+x+";");B&&(P+="border-color: "+B+";");return{style:P}};
n3I=function(B,c,x){var P=B.buttonText,Y=B.formattedButtonText,g=B.formattedButtonTextLegacy,k=B.animatedTextProps,n=B.style,b=B.size,d=B.focused,q=B.disabled,C=B.onTap,h=B.alignByText,V=B.aTagConfig,N=B.customColors,l=B.segmentedPosition,E=B.toggled,S=B.toggleable,M=B.accessibilityLabel,f=B.onToggle,Z=B.iconPosition,u=B.oneOffCustomTextWrap,e=B.disableTextEllipsis,px=B.disableBackdropFilter,kI=B.tooltipText,Ul=B.ariaHidden,wC=B.tabIndex,W$=B.state,El=B.type;n==="call-to-action-inverse"&&(El="text");
n==="overlay-dark"&&El!=="filled"&&El!=="tonal"&&(El="tonal");var H$=!!c&&Z==="leading",yw=!!c&&Z==="trailing",r9=!!c&&!!x&&Z==="leading-trailing",cs=!!c&&Z==="icon-only",NQ=!!c&&Z==="icon-only-40",n4=!!c&&Z==="icon-with-label",L4=cs||NQ||n4;q&&(W$="disabled");var UF=W$==="disabled"||q;W$=ewx(B,!!c);var uX={},yr=(uX["yt-spec-button-shape-next"]=!0,uX[YHY(El)]=!0,uX[awq(n)]=!UF,uX["yt-spec-button-shape-next--disabled"]=!!UF,uX[g3d(b)]=!0,uX["yt-spec-button-shape-next--focused"]=!!d&&!q,uX["yt-spec-button-shape-next--icon-trailing"]=
yw,uX["yt-spec-button-shape-next--icon-leading"]=H$,uX["yt-spec-button-shape-next--icon-leading-trailing"]=r9,uX["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=r9&&!(P||Y),uX["yt-spec-button-shape-next--icon-button"]=cs||n4,uX["yt-spec-button-shape-next--icon-only-default"]=NQ,uX["yt-spec-button-shape-next--align-by-text"]=!!h,uX["yt-spec-button-shape-next--segmented-start"]=l==="start",uX["yt-spec-button-shape-next--segmented-end"]=l==="end",uX["yt-spec-button-shape-next--override-small-size-icon"]=
W$,uX["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!u,uX["yt-spec-button-shape-next--disable-text-ellipsis"]=!!e,uX["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!px&&PCI(),uX),uz=function(){if(k)nB7(_.p2w)(k);else if(g)g(Z==="icon-with-label"||u?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(Y){var ut=Z==="icon-with-label"||u;N17(Object.assign({},Y,ut?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!ut})}else P&&B5(P)},XO=function(ut){C==null||C(ut);
S&&(f==null||f(ut))},qQ=V?kao:X2C,lt=V?"aria-current$":"aria-pressed$",D8=function(){c&&(H$||r9||L4)&&function(){wV({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){c()})}();
(P||Y||g||k)&&!L4&&function(){wV({className:"yt-spec-button-shape-next__button-text-content"},function(){uz()})}();
yw&&function(){wV({className:"yt-spec-button-shape-next__icon"},function(){c()})}();
r9&&function(){wV({className:"yt-spec-button-shape-next__secondary-icon"},function(){x()})}();
q||nB7(_.Ne)({model:{color:xJ7(B)}})},VW=function(){var ut={};
qQ(Object.assign({},(ut.className=_.U9(yr),ut.onclick=V?void 0:XO,ut.disabled=q,ut["aria-disabled$"]=UF,ut.style=q&&V?"pointer-events:none":void 0,ut[lt]=S?!!E:void 0,ut["aria-label$"]=M,ut.title$=kI!=null?kI:"",ut["aria-hidden$"]=Ul,ut.tabindex$=wC,ut),V,s97(N)),function(){D8()})};
n4?(b={},n=(b["yt-spec-button-shape-with-label"]=!0,b["yt-spec-button-shape-with-label--is-overlay"]=n==="overlay"||n==="overlay-dark",b),$Jo({className:_.U9(n)},function(){VW();wV({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},uz)})):VW()};
KL$=function(B,c){if(!RD){var x;cjX(function(){return x=pw7(B,c)});
return x}B.parent=bfX();return pw7(B,c)};
bfX=function(){var B=CkX(RD||void 0,anY);return qsd(B)?void 0:B};
I2=function(B,c){_.zl(B,Object.assign({},c,{forceClickLogging:!0}))};
j97=function(B,c,x,P){var Y=void 0;return function(g){var k=_.vH(x?B==null?void 0:B.onDisabledTap:B==null?void 0:B.onTap);if(k){var n;Y=(n=Y)!=null?n:c==null?void 0:c.value;if(k)if(_.T("web_button_vm_click_client_ve_killswitch"))I2(k,Object.assign({},{form:{element:Y,event:g}},void 0));else{var b;n=k==null?void 0:k.clickTrackingParams;var d,q=B==null?void 0:(b=B.loggingDirectives)==null?void 0:(d=b.clientVeSpec)==null?void 0:d.uiType;b=q&&!n?_.JW(q):void 0;I2(k,Object.assign({},{form:{element:Y,event:g}},
{clickedVisualElement:b}))}}P&&P(g)}};
UJY=function(B){switch(B){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"}};
dJd=function(B){switch(B){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"}};
qHA=function(B){switch(B){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"}};
CCQ=function(B){switch(B){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"}};
hZC=function(B,c){return _.X9(B.entities,"engagementToolbarStateEntityPayload",c)};
THA=function(B){(B=_.VF(B))&&_.mJ7(B)};
_.mJ7=function(B){var c=_.Wf();c&&_.LW(c,B)};
Vfo=function(B,c,x){_.gj(B,"yt-open-popup-action",[c,x||B])};
tfY=function(B,c){var x=_.ot(B,"endpoint"),P=_.ot(B,"action");return(x=P?P:x)&&c&&(x=c.navigationEndpointPopupMap[x])&&(B=_.Gu(x,B),(x=_.ot(B,"renderer"))&&c.supportedPopups.hasOwnProperty(x))?{openPopupAction:{popupType:c.popupTypeMap[x],popup:B}}:null};
w2I=function(B,c,x,P){if(P){var Y;x=x==null?void 0:(Y=x.data)==null?void 0:Y.contents;(Y=x instanceof Array&&x.length?x[0]:x)&&(x=_.ot(Y,"renderer"))&&P.supportedPopups.hasOwnProperty(x)&&(c.stopPropagation(),Vfo(B,{openPopupAction:{popupType:P.popupTypeMap[x],popup:Y}}))}};
JAl=function(B,c,x,P){P=P===void 0?!1:P;var Y=NH7(c);if(Y){Y.href&&MA(Y.href);var g=c.button;g=g!==void 0?g===0&&!Ww(c):!Ww(c);Y.data&&g&&IwX(B,Y,c,x,P)}};
IwX=function(B,c,x,P,Y){Y=Y===void 0?!1:Y;var g=_.Yu("pbj_navigate_limit",-1)===0;WLC(c);_.cp().resolve(_.Bp(S3));var k=c.data;if(Object.keys(k).length!==0)if(!_.T("unplugged_web_disable_actions_for_cec_endpoint")&&_.t(k,_.nW))_.T("endpoint_behavior_command_executor_fix_killswitch")||(x.preventDefault(),x.stopPropagation()),_.XX(B,[k],B);else if(P=tfY(k,P))k.loggingUrls&&k.loggingUrls.forEach(function(b){b.baseUrl&&_.M6(b.baseUrl)}),x.preventDefault(),x.stopPropagation(),Vfo(B,P,c);
else{var n=lw$(0,c.data,x);if(B=c.getForm)B=B(),n.tempData=n.tempData||{},n.tempData=Object.assign({},n.tempData,B);B=_.AV(x);if(P=B.find(function(b){return!!b.visualElement}))n.createScreenConfig=n.createScreenConfig||{},n.createScreenConfig.clickedVisualElement=P.visualElement;
if(!g)if(x.preventDefault(),x.stopPropagation(),_.t(k,_.E3x)&&!Y&&_.bA.instance)_.bA.instance.resolveCommand(k,n);else if(_.T("kevlar_command_handler_formatted_string")&&!Y&&_.bA.instance&&Ofx(k))Y=B.find(function(b){return!!b.is})||x.target,x={form:Object.assign({},n,{event:x,
element:Y,originatingNode:c})},_.bA.instance.resolveCommand(k,x);else{k=_.AV(x);x=[];for(Y=0;Y<k.length;Y++)(g=k[Y].is)&&x.push(g);V_I({parents:x.join(","),text:c.innerText},function(){_.aJ(c,"yt-navigate",n)})}}};
o37=function(B){if(B=NH7(B))WLC(B),P6q(B.href)};
NH7=function(B){B=_.AV(B);for(var c,x=0;x<B.length;x++)if(c=B[x],c.tagName==="A"&&c.classList.contains("yt-simple-endpoint")){if(!c.data)break;return c}return null};
Ww=function(B){return B.shiftKey||B.altKey||B.metaKey||B.ctrlKey};
Q97=function(B,c){var x={itct:c.clickTrackingParams};_.T("kevlar_client_side_screens")&&(!_.t(c,_.TF)||_.T("kevlar_exclude_endpoint_killswitch"))&&(x.endpoint=JSON.stringify(c));_.T("enable_unknown_lact_fix_on_html5")&&_.cp().resolve(_.Bp(_.lv))&&(x.lact=_.co());BZO(x);_.Da(B,x)};
WLC=function(B){B.href&&Object.keys(B.data).length!==0&&Q97(B.href,B.data)};
Ofx=function(B){for(var c=_.p(FLd),x=c.next();!x.done;x=c.next())if(B[x.value])return!1;return!0};
_.E9=function(B,c){if(c){var x={};v3o.forEach(function(P){P=zZw(c,P,"--yt-lightsource-");Object.assign(x,P)});
SHY.forEach(function(P){P=zZw(c,P,"--yt-basic-");Object.assign(x,P)});
_.k9(B,x)}};
zZw=function(B,c,x){var P={};P[x+_.bh(c)]=B&&B[c]?_.SF(B[c]):"";return P};
_.o2=function(B,c,x){O9[B]||(O9[B]={});O9[B][c]=x};
_.Qf=function(B){O9[B]||(O9[B]={});return O9[B]};
yAA=function(B){if(!B)return{};var c=B.foregroundTitleColor,x=B.backgroundColor;B=B.borderColor;var P="text";B?P="outline":x&&(P="filled");return{type:P,customColors:{color:c?_.SF(c):void 0,backgroundColor:x?_.SF(x):void 0,borderColor:B?_.SF(B):void 0}}};
HfX=function(B){var c=B.renderer;var x=B.element;var P=B.commandController;var Y=B.onTapCallback;var g=B.skipCommandHandling;var k=B.overrides;var n=B.forceIcon;var b=B.forceModernIconButton;var d=B.forceDisabled;var q=B.isSubscribe===void 0?!1:B.isSubscribe;var C=B.isPressed===void 0?!1:B.isPressed;var h=B.useButtonSize===void 0?!1:B.useButtonSize;B=Gad(c);q&&(B.style="mono",B.type="filled");n=!c.icon||!n&&c.text?c.icon?c.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";n==="icon-only-40"&&(B.type="text");var V;b=Object;q=b.assign;h=MfY(c,h);C=!!c.isSelected||!_.T("web_propagate_is_pressed_killswitch")&&!!C;var N=c.isSelected!==void 0;d=d===void 0?c.isDisabled:d;var l=c.text?_.OL(c.text):void 0;var E,S,M,f=((E=c.accessibilityData)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label)||((M=c.accessibility)==null?void 0:M.label);E=f?f:_.iG(c.text);x=LLI(c,x,P,Y,g);P=Zfl(c);P!=null&&P.length?(P=_.S_({innertubeCommand:b7Y(P),
forceNewState:!0}),P=yF(P)?P:void 0):P=void 0;return q.call(b,{},B,h,{iconPosition:n},k,{focused:!1,toggled:C,toggleable:N,disabled:d,formattedButtonText:l,accessibilityLabel:E,onTap:x,aTagConfig:P},yAA((V=c.colorData)==null?void 0:V.basicColorPaletteData),{oneOffCustomTextWrap:c.oneOffCustomTextWrap})};
LLI=function(B,c,x,P,Y){return function(g){var k=Zfl(B);P(k,g);if(!Y){k=_.p(k);for(var n=k.next();!n.done;n=k.next())I2(n.value,{form:{element:c,event:g},commandController:x})}}};
Zfl=function(B){var c=[];B.command&&c.push(B.command);B.serviceEndpoint&&c.push(B.serviceEndpoint);B.navigationEndpoint&&c.push(B.navigationEndpoint);return c};
MfY=function(B,c){if(c)switch(B.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(B.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Gad=function(B){switch(B.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"}}};
_.FB=function(B){return _.db(function(){Hbq()();return fF(B)},void 0,"Icv7j")};
vw=function(B,c){return _.X9(B.entities,"likeStatusEntity",c)};
fww=function(B,c){return _.X9(B.entities,"likeCountEntity",c)};
_.if7=function(B,c){return _.X9(B.entities,"stringEntity",c)};
AAq=function(B,c){if(!B)return!1;var x,P=(x=_.t(B,_.KW))==null?void 0:x.signal;if(P&&c.signalEndpointMap)return!!c.signalEndpointMap[P];var Y;if((x=(Y=_.t(B,_.zU))==null?void 0:Y.request)&&c.continuationEndpointMap)return!!c.continuationEndpointMap[x];for(var g in B)if(c.commandEndpointMap[g])return!0;return!1};
uzX=function(B,c){if(c.streamingEndpointMap)for(var x in B)if(c.streamingEndpointMap[x]&&(B=c.streamingEndpointMap[x]))return B()};
DJl=function(B,c){var x,P=(x=_.t(B,_.KW))==null?void 0:x.signal;if(P&&c.signalEndpointMap&&(x=c.signalEndpointMap[P]))return x();var Y;if((x=(Y=_.t(B,_.zU))==null?void 0:Y.request)&&c.continuationEndpointMap&&(Y=c.continuationEndpointMap[x]))return Y();for(var g in B)if(c.commandEndpointMap[g]&&(B=c.commandEndpointMap[g]))return B()};
rA7=function(B){var c={"Content-Type":"application/json"};_.v5("EOM_VISITOR_DATA")?c["X-Goog-EOM-Visitor-Id"]=_.v5("EOM_VISITOR_DATA"):_.v5("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=_.v5("VISITOR_DATA"));c["X-Youtube-Bootstrap-Logged-In"]=_.v5("LOGGED_IN",!1);_.v5("DEBUG_SETTINGS_METADATA")&&(c["X-Debug-Settings-Metadata"]=_.v5("DEBUG_SETTINGS_METADATA"));B!=="cors"&&((B=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(c["X-Youtube-Client-Name"]=B),(B=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(c["X-Youtube-Client-Version"]=
B),(B=_.v5("CHROME_CONNECTED_HEADER"))&&(c["X-Youtube-Chrome-Connected"]=B),(B=_.v5("DOMAIN_ADMIN_STATE"))&&(c["X-Youtube-Domain-Admin-State"]=B),_.zu("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(B=_.v5("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(c["X-YouTube-Lava-Device-Context"]=B));return c};
RZO=function(B,c){c.watchNextResponse||c.reelItemWatchResponse?c.watchNextResponse?B.content=c.watchNextResponse:B.content=c.reelItemWatchResponse:c.playerResponse?B.player=c.playerResponse:c.reelWatchSequenceResponse&&(B.reelSequence=c.reelWatchSequenceResponse)};
_.S5=function(B){if(!B)return null;for(var c=[],x=0;x<B.textSegments.length;x++){var P=B.textSegments[x];P.text?c.push(P):P.emojiId&&c.push({emoji_id:P.emojiId})}return{text_segments:c}};
P_o=function(B,c,x,P,Y,g,k){g=g===void 0?[]:g;var n=new _.yf;n.endpoint=x;if(!x)return _.Eb(new _.mc("handle undefined endpoint",c.tagName)),n;var b=OLx(x);b.length&&(_.XX(B,b,c,P),n.actions=b);x.loggingUrls&&x.loggingUrls.forEach(function(q){q.baseUrl&&Lp(q.baseUrl,q.attributionSrcMode)});
b=!_.T("web_skip_impression_click_killswitch")&&P&&P.impression;if(x.clickTrackingParams&&!eZx(x)&&!B0w(c)&&!b&&(b=_.q_(),!_.GU(b,c))){var d=c.getScreenLayer&&c.getScreenLayer();d?b.clickCommand(x,null,d):b.clickCommand(x,null)}b=!1;for(d=0;d<g.length;d++)if((0,g[d])(c,x,P)){b=!0;break}!b&&ct$(x)&&(n.ajaxPromise=xUw(B,c,x,P,Y,k));return n};
B0w=function(B){var c;return(B=(c=B.data)==null?void 0:c.navigationEndpoint)&&!!B.clickTrackingParams};
eZx=function(B){var c=_.t(B,_.KW);if(c&&(c=c.signal)&&Yad.indexOf(c)>=0)return!0;for(var x in B)if(aBq.indexOf(x)>=0)return!0;return!1};
ct$=function(B){var c;if(((c=_.t(B,_.KW))==null?void 0:c.signal)==="CLIENT_SIGNAL")return!1;for(var x in B)if(gO7.indexOf(x)>=0)return!1;B=Object.keys(B);return B.length===1&&B[0]==="loggingUrls"?!1:!0};
KSA=function(B,c,x,P,Y,g,k){var n=_.Me.instance;if(n&&_.Lw(n,P))var b=_.Zn(n,P,Y).then(function(q){return(q==null?0:q.data)?q:{data:q}});
else b=B.requestDataForServiceEndpoint(P,Y),_.t(P,sYd)||_.t(P,pZl)||_.t(P,_.kMQ)||_.t(P,XZX)||_.Ob(new _.mc("No RequestBuilder for endpoint",P));var d=_.Hw();d.promise.thenCatch(function(){var q=_.ot(P,"action")||_.ot(P,"command")||_.ot(P,"endpoint");q&&(q=P[q],q.hasOwnProperty("onFailureAction")?_.XX(c,[q.onFailureAction],x):q.hasOwnProperty("onFailureCommand")&&_.XX(c,q.onFailureCommand,x));b.cancel("Resolver promise rejected")});
b.then(function(q){if(q){var C=q.error;if(C){if(g&&g.onServerError)g.onServerError(P,q);d.reject(new _.mc("Response error",P,C))}else if(q=q.data)if(C=q.error){if(g&&g.onServerError)g.onServerError(P,q);d.reject(new _.mc("Returned error",P,C))}else{$UQ(c,x,q,P);nOQ(q);if(C=E0O(q))for(var h=_.p(C),V=h.next();!V.done;V=h.next()){V=V.value;var N=_.cp().resolve(_.Bp(b_7))||fw;if(!_.Me.instance||!N.some(function(E){return!!_.t(P,E)})||_.T("kevlar_response_processor_allowlist_killswitch")){var l=N=void 0;
((l=_.t((N=V)==null?void 0:N.commandMetadata,_.Br))==null?0:l.sendPost)?_.kC(c,[V]):_.XX(c,[V],x)}}(h=_.t(q==null?void 0:q.frameworkUpdates,iv))&&k&&k(h);if(g&&g.onSuccess)g.onSuccess(P,q);d.resolve(new _.AW(q,C))}}else d.reject(new _.mc("Invalid service endpoint provided",P))},function(q){d.reject(q)});
return d.promise};
nOQ=function(B){var c;(B=(c=_.t(B==null?void 0:B.onResponseReceivedCommand,_.jYA))==null?void 0:c.continuationItems)&&(B==null?void 0:B.length)===1&&_.t(B[0],UU7)&&_.Op("so_r",void 0,"search_overview_answer")};
xUw=function(B,c,x,P,Y,g){var k;return(k=c.getNetworkManager&&c.getNetworkManager()?c.getNetworkManager():_.cp().resolve(_.Bp(_.Oi)))?KSA(k,B,c,x,P,Y,g):_.Im("No network manager.")};
$UQ=function(B,c,x,P){if(x=x.trackingParams||x.loggingDirectives&&x.loggingDirectives.trackingParams){var Y;(_.t(P,dUC)||_.t(P,qad)||_.t(P,C_A))&&P.clickTrackingParams?Y=_.VF(P.clickTrackingParams):_.T("web_graft_to_parent_command")&&P.clickTrackingParams&&(Y=_.VF(P.clickTrackingParams));var g;P=(g=c.getScreenLayer)==null?void 0:g.call(c);c=_.q_().graftServerVe(x,Y,P);_.sp(B,"yt-store-grafted-ve-action",[c])}};
_.hNx=function(B){var c=new Image;return new _.bb(function(x,P){c.addEventListener("load",function(){x()});
c.addEventListener("error",function(){P()});
c.src=B})};
mUl=function(B){return!!B};
T0d=function(B){return!!B};
Vel=function(B,c,x){var P=B.rowIndex;P!==void 0&&_.sp(B.hostElement,"yt-section-reactive-dismissal",[P,c,x])};
_.uv=function(B,c,x){B=_.p(B);for(var P=B.next();!P.done;P=B.next()){P=P.value;if(P===c)break;for(var Y=_.p(x),g=Y.next();!g.done;g=Y.next())if(g=g.value,P.tagName===g||!_.T("web_event_button_role_check_killswitch")&&P.role==="button"&&g==="BUTTON")return!0}return!1};
_.Dn=function(B,c,x){B=_.p(B);for(var P=B.next();!P.done;P=B.next()){P=P.value;if(P===c)break;for(var Y=_.p(x),g=Y.next();!g.done;g=Y.next())if(P.id===g.value)return!0}return!1};
te$=function(B){switch(B){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}};
wZ7=function(B,c){if(!B&&!c)return"medium";B=Math.max(B||0,c||0);return B>=256?"large":B>=96?"medium":"small"};
N0q=function(B){switch(B){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.e5=function(){var B=_.cp().resolve(_.Bp(_.rV));return B?(B=B.getCurrentPage())?_.R2(B):null:null};
_.Bv=function(){var B=_.e5();if(!B){var c=_.cp().resolve(_.Bp(_.rV)),x=c?typeof c:"no page manager";c=c?c.getCurrentPage():null;x=new _.mc("Player is missing when requested.",x,c?c.tagName:"no page");_.lb(x)}return B};
_.R2=function(B){return B&&B.getPlayer?B.getPlayer():null};
IBY=function(B,c){B={args:{raw_player_response:B}};c&&(B.args=Object.assign({},B.args,c));return B};
Jtw=function(B){if(B.args){if(B.args.raw_player_response)return B.args.raw_player_response;if(B.args.player_response)return JSON.parse(B.args.player_response)}};
_.WS7=function(B,c){var x={url:"/watch?v="+B.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};B.playlistId&&(x.url+="&list="+B.playlistId);B.playerParams&&(x.url+="&pp="+B.playerParams);B={watchEndpoint:B,commandMetadata:{webCommandMetadata:x}};c&&(B.clickTrackingParams=c);return B};
EOO=function(){return lBC||!!_.Gu("yt.player.Application")};
oOX=function(){return O_C||!!document.querySelector("link#player-css")};
FSI=function(){function B(){lBC=!0;QYQ.resolve()}
var c,x;return _.X(function(P){QYQ||(QYQ=new _.kH,EOO()?B():(c=document.createElement("script"),c.addEventListener("load",B),x=_.ID(_.v5("PLAYER_JS_URL")),_.Mg(c,x),document.head.appendChild(c)));return P.return(QYQ.promise)})};
zN7=function(){function B(){O_C=!0;vOI.resolve()}
if(!vOI)if(vOI=new _.kH,oOX())B();else{var c=document.createElement("link");c.id="player-css";c.addEventListener("load",B);var x=_.ID(_.v5("PLAYER_CSS_URL"));_.Ha(c,x,"stylesheet");document.head.appendChild(c)}return vOI.promise};
SaQ=function(){return EOO()&&oOX()?Promise.resolve([]):Promise.all([FSI(),zN7()])};
ytO=function(B,c,x){var P={args:{}};B&&(P.args.raw_player_response=B);c&&(P.args.raw_watch_next_response=c);x&&(P.args=Object.assign({},P.args,x));return P};
Z_7=function(B,c,x){var P=!1;P=P===void 0?!0:P;B=typeof B==="string"?_.cv(document,B):B;var Y=GMx+"_"+_.Py(B),g=Med[Y];if(g&&P)return LSA(c,x)?g.api.loadVideoByPlayerVars(c.args||null):g.loadNewVideoConfig(c),g.api;g=new xx(B,Y,c,x,void 0);Med[Y]=g;g.addOnDisposeCallback(function(){delete Med[g.getId()]});
return g.api};
LSA=function(B,c){return c&&c.serializedExperimentFlags?c.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):B&&B.args&&B.args.fflags?B.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
H_d=function(){var B=new _.kH;B.resolved=!1;var c=B.resolve;B.resolve=function(x){B.resolved=!0;c(x)};
return B};
i_7=function(B){var c={};fBd().install((c.document_disposed={callback:B},c))};
Pv=function(B,c){if(!B&&Math.random()<=_.Yu("kevlar_unified_player_logging_threshold")){B=Error("uh`"+(c?c:"Unspecified error"));if(_.T("kevlar_unified_player_throw_errors"))throw B;_.Ob(B)}};
_.AtQ=function(){var B=_.Gu("ytDebugData.callbacks");B||(B={},_.rr("ytDebugData.callbacks",B));return B};
DUo=function(B,c){var x=_.AtQ();if(_.T("web_dd_iu")||ukO.includes(B))x[B]=c};
rtd=function(){return _.X(function(B){return B.return({isLeader:_.dVq(_.uG().getState()),c:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
RN7=function(){var B;_.X(function(c){if(c.nextAddress==1)return DUo("APP_STATE",rtd),_.K(c,_.cp().resolve(_.Yx),2);B=c.yieldResult;DUo("PI",function(){return _.X(function(x){return x.return(B.getVideoStats())})});
_.Kq(c)})};
eNx=function(B){var c=_.uh(_.SW(_.xI.location.href));B=_.uh(_.SW(B));return _.T("kevlar_clear_non_displayable_url_params")?c==aF(B):aF(c)==aF(B)};
aF=function(B){var c=_.BE7(B);B=B.slice(0);var x=["frags"];_.T("kevlar_hide_pp_url_param")&&x.push("pp");_.T("kevlar_hide_time_continue_url_param")&&x.push("time_continue");x=_.p(x);for(var P=x.next();!P.done;P=x.next())P=P.value,B=_.rx(_.uh(B),P);return _.uh(B)+(c?"#"+c:"")};
g$=function(B,c){c=Number(c)*1E3;var x=Math.round((0,_.BA)()),P=x.toString();B={innertubeResponse:B,serverDateTimestampMs:P,lastModifiedTimestampMs:P,expireTimestampMs:(x+c).toString()};if(c=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"))B.clientName=c;return B};
x07=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++cho};
_.P2x=function(){var B=_.Jg(),c=_.Wf();c&&B&&_.Hr(c,[B],!0)};
aI$=function(B){return B&&Y$7.some(function(c){return B.includes(c)})};
$07=function(B){var c=_.t(B,_.yp);if(!c)return!1;var x=c.url,P=c.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!x)return _.lb(Error("zh")),!1;if(c.target==="TARGET_NEW_WINDOW"){var Y={};_.T("resolve_url_parent_tracking_params")&&(!_.Dg(x)||rD(window.location.href,x))&&(Y={endpoint:B,itct:B.clickTrackingParams});BZO(Y);B=null;try{if(P)return B=_.pDw(x,"_blank",Y,void 0,P),gix(_.cp().resolve(so7),B,x),!0}catch(h){_.lb(h)}_.Da(x,Y);c={target:"_blank",noopener:_.T("set_window_noopener_ks")&&
!c.allowOpener};B=window;P=jT(x)?x:_.Tz(typeof x.href!="undefined"?x.href:String(x));Y=self.crossOriginIsolated!==void 0;var g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var k=c.noreferrer;if(Y&&k&&g==="unsafe-url")throw Error("qe");g=k&&!Y;k=c.target||x.target;var n=[],b=[],d=!1;for(C in c){var q=c[C];switch(C){case "width":case "height":case "top":case "left":n.push(C+"="+q);break;case "target":break;case "noopener":case "noreferrer":q?b.push(C):(d=!0,
b.push(C+"=false"));break;case "attributionsrc":n.push(C+(q?"="+q:""));break;default:n.push(C+"="+(q?1:0))}}var C=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);C=I7()&&C;pxY&&Y&&n.length===0&&b.length>0&&!C&&!d?(b.length===2&&(b=["noreferrer"]),_.oW(B,P,k,b[0]),B=kmw()):(C=n.join(","),_.Qw()&&B.navigator&&B.navigator.standalone&&k&&k!="_self"?(C=_.df("A"),IW(C,P),C.target=k,g&&(C.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&C.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"),
c.initMouseEvent("click",!0,!0,B,1),C.dispatchEvent(c),B=kmw()):g?(B=_.oW(B,"",k,C),c=_.UG(P),B&&(B.opener=null,c===""&&(c="javascript:''"),c='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+sy(c)+'">',c=Wa(c),(P=B.document)&&P.write&&(P.write(lV(c)),P.close()))):((B=_.oW(B,P,k,C))&&c.noopener&&(B.opener=null),B&&c.noreferrer&&(B.opener=null)));gix(_.cp().resolve(so7),B,x);return!0}c=_.$u(x);c=aI$(c)||x==="https://studio.youtube.com/";P=!(!_.Dg(x)||rD(window.location.href,
x));C=x.indexOf("disable_polymer=1")>=0;if(P||C||c)MA(x),Wr(),_.Lr(x,void 0,void 0,window.top,Xxx);else return _.Ob(new _.mc("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",B)),!1;return!0};
_.Knx=function(B,c){c=c===void 0?0:c;if(!(_.t(B,nix)||_.t(B,bPq)||_.t(B,_.yp)&&_.t(B,_.yp).url))return!1;var x,P=(x=_.t(B,_.yp))==null?void 0:x.url;x=P?{externalLinkData:{url:P}}:null;return _.q_().clickCommand(B,x,c)};
joo=function(B,c){return _.X9(B.entities,"subscriptionStateEntity",c)};
U0$=function(B,c){return _.X9(B.entities,"subscriptionNotificationStateEntity",c)};
d07=function(B,c){return _.X9(B.entities,"upcomingEventReminderStateEntity",c)};
q$I=function(B,c){return _.X9(B.entities,"engagementToolbarSurfaceEntityPayload",c)};
C2A=function(B,c){return _.X9(B.entities,"triStateButtonStateEntityPayload",c)};
hMY=function(B,c){return _.X9(B.entities,"commerceCartCheckoutButtonEntity",c)};
_.m0Q=function(B,c){return _.X9(B.entities,"playlistLoopStateEntity",c)};
TEI=function(B,c){return _.X9(B.entities,"commandEntity",c)};
tKQ=function(B,c,x,P,Y){Y=Y===void 0?{}:Y;return function(g){var k,n;var b=((k=B.loggingDirectives)==null?0:(n=k.clientVeSpec)==null?0:n.uiType)?_.JW(B.loggingDirectives.clientVeSpec.uiType):void 0;Y.clickedVisualElement||(Y.clickedVisualElement=b);b=VKC(B,c);x(b,g);b=_.p(b);for(k=b.next();!k.done;k=b.next()){k=k.value;n=P;var d=g,q=Y;q.form?q.form.event=d:q.form={element:n,event:d};I2(k,q)}}};
VKC=function(B,c){var x=[];c?(B.toggledCommand&&x.push(B.toggledCommand),B.toggledServiceEndpoint&&x.push(B.toggledServiceEndpoint)):(B.defaultCommand&&x.push(B.defaultCommand),B.defaultServiceEndpoint&&x.push(B.defaultServiceEndpoint),B.defaultNavigationEndpoint&&x.push(B.defaultNavigationEndpoint));return x};
wx$=function(B,c){var x=B.toggledStyle||B.style,P;switch((P=c?x:B.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"}}};
_.p3=function(){return _.X(function(B){return B.nextAddress==1?_.K(B,_.cp().resolve(_.Yx),2):B.return(_.cp().resolve(NEC)())})};
_.kx=function(){return _.cp().resolve(NEC)()};
_.X5=function(){return Es(function(){return{lottieEl:void 0}})};
II7=function(B,c){return B.startsWith(c.uniqueId)};
JhC=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,_.p3(),2);c=P.yieldResult;if((x=c)==null||!x.addEventListener)return $x(),P.return();c.addEventListener("onCueRangeEnter",B);_.Kq(P)})};
Wnl=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,_.p3(),2);c=P.yieldResult;if((x=c)==null||!x.removeEventListener)return $x(),P.return();c.removeEventListener("onCueRangeEnter",B);_.Kq(P)})};
lI7=function(B){var c,x,P,Y,g;_.X(function(k){if(k.nextAddress==1)return _.K(k,_.p3(),2);c=k.yieldResult;if((x=c)==null||!x.addCueRange)return $x(),k.return();P=_.p(B.timings);for(Y=P.next();!Y.done;Y=P.next())g=Y.value,c.addCueRange(B.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.Kq(k)})};
Ei$=function(B){var c,x,P,Y,g;_.X(function(k){if(k.nextAddress==1)return _.K(k,_.p3(),2);c=k.yieldResult;if((x=c)==null||!x.removeCueRange)return $x(),k.return();P=_.p(B.timings);for(Y=P.next();!Y.done;Y=P.next())g=Y.value,c.removeCueRange(B.uniqueId+"-"+g);_.Kq(k)})};
OPI=function(){var B,c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.p3(),2);B=P.yieldResult;if((c=B)==null||!c.getPlayerState)return $x(),P.return();x=B.getPlayerState();return P.return(x===2)})};
$x=function(){_.Ob(new _.mc("Smartimation player does not exist or is corrupted"))};
oiX=function(){try{var B;return(B=window.CSS)!=null&&B.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(c){return _.Ob(new _.mc("Smartimation CSS.supports threw an error")),!1}};
Gmw=function(B,c,x,P,Y){var g=B.playlistId?QoQ:Fn$;c=c();x=x();Y=!!B.videoId&&Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Ck(c))return viC({data:B,actionType:g,disabled:Y},x);if(B.videoId&&P())return zMI({data:B,actionType:g,disabled:Y});switch(c){case "TRANSFER_STATE_UNKNOWN":return zMI({data:B,actionType:g,disabled:Y});case "TRANSFER_STATE_FAILED":return B.videoId?S$O({data:B,actionType:g,disabled:Y}):yho({data:B,actionType:g,disabled:Y});case "TRANSFER_STATE_COMPLETE":return yho({data:B,
actionType:g,disabled:Y});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return viC({data:B,actionType:g,disabled:Y},x);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return B.videoId?S$O({data:B,actionType:g,disabled:Y}):zMI({data:B,actionType:g,disabled:Y});default:return zMI({data:B,actionType:g,disabled:Y})}};
MKw=function(B,c){var x=B.onTapCommand,P=_.vH(x);if(B.videoId&&_.t(P,_.n3))return _.t(P,_.n3).action=c,x;B.playlistId&&_.t(P,_.bR)&&(_.t(P,_.bR).action=c);return x};
zMI=function(B){var c=B.data;var x=B.actionType;B=B.disabled;return{text:LnY,iconType:"OFFLINE_DOWNLOAD",onTap:MKw(c,x.ACTION_ADD),disabled:B}};
viC=function(B,c){var x=B.data;var P=B.actionType;B=B.disabled;var Y="OFFLINE_DOWNLOAD";c>=0&&c<=.1?Y="OFFLINE_DOWNLOADING_ZERO":c>.1&&c<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":c>.3&&c<=.5?Y="OFFLINE_DOWNLOADING_FORTY":c>.5&&c<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":c>.7&&c<1?Y="OFFLINE_DOWNLOADING_EIGHTY":c===1&&(Y="OFFLINE_PIN");return{text:ZPw,iconType:Y,onTap:MKw(x,P.ACTION_REMOVE_WITH_PROMPT),disabled:B}};
yho=function(B){var c=B.data;var x=B.actionType;B=B.disabled;return{text:HP7,iconType:"OFFLINE_PIN",onTap:MKw(c,x.ACTION_REMOVE_WITH_PROMPT),disabled:B}};
S$O=function(B){var c=B.data;var x=B.actionType;B=B.disabled;return{text:fIx,iconType:"OFFLINE_DOWNLOAD",onTap:MKw(c,x.ACTION_RETRY),disabled:B}};
D0C=function(B){var c=iPq;Ahw.push(B);uiw||(c(function(){for(var x=_.p(Ahw),P=x.next();!P.done;P=x.next())P=P.value,P();Ahw.length=0;uiw=!1}),uiw=!0)};
iPq=function(B){Promise.resolve().then(B)};
K3=function(B){B=_.p(PvQ(B));var c=B.next().value,x=B.next().value,P=!1;_.lk(function(){return function(){P=!0}});
return[c,function(Y){D0C(function(){P&&!_.T("cow_prevent_state_setter_after_cleanup_killswitch")||x(Y)})}]};
rhQ=function(){var B=_.p(K3(!1)),c=B.next().value,x=B.next().value;return function(){x(!c)}};
RM7=function(B){return Es(function(){return{value:B}})};
eMC=function(B,c){var x=RM7(B),P=RM7(c);W5(function(){x.value=B},[B]);
W5(function(){P.value=c},c&&c.length>=1?c:[void 0]);
var Y=Es(function(){return{value:void 0}});
if(B!==x.value||P.value!==c||Y.value===void 0)Y.value=fF(B,c);var g=rhQ();_.lk(function(){function k(){var b=fF(x.value,c);b!==Y.value&&(Y.value=b,g())}
var n=_.HW().subscribe(k);k();return n});
return Y.value};
_.jA=function(B,c){var x=Hbq();return _.db(function(){x();return fF(B,[_.Ox(c)||""])},void 0,"HaeHEc")};
Bzo=function(B){var c=_.jA(_.QI,function(){return B().videoId}),x=_.jA(_.F9,function(){return B().playlistId});
return function(){return B().videoId?c:B().playlistId?x:_.p(_.$D("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
cTI=function(B){var c=_.jA(v3,function(){return B().videoId}),x=_.jA(_.UV7,function(){return B().playlistId});
return function(){return B().videoId?c:B().playlistId?x:_.p(_.$D(0,void 0,"K4tgOc")).next().value}};
xCX=function(B){var c=_.jA(_.tPd,function(){return B().videoId});
return function(){return B().videoId?c:_.p(_.$D(!1,void 0,"Oaxwcf")).next().value}};
P5X=function(B){var c=_.jA(Cad,function(){return B().videoId});
return function(){return B().videoId?c:_.p(_.$D("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Y6I=function(){return{}};
adA=function(){var B,c;return(c=(B=_.cp().resolve(_.Bp(_.fL)))==null?void 0:B())!=null?c:!1};
sbC=function(B,c){B=B===void 0?gpl:B;switch(c.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},B,{isOpen:c.payload});default:return B}};
kNw=function(B,c){B=B===void 0?puw:B;switch(c.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},B,{isAllowed:c.payload});default:return B}};
$Co=function(B,c){B=B===void 0?Xuw:B;switch(c.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},B,{errorMessage:c.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},B,{title:c.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},B,{privacy:c.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},B,{isDisabled:c.payload});default:return B}};
buw=function(B,c){B=B===void 0?npI:B;switch(c.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},B,{isOpen:c.payload});default:return B}};
jbI=function(B,c){B=B===void 0?KNx:B;switch(c.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},B,{isFullscreen:c.payload});case "SET_NAVIGATION_BUTTON":var x=c.payload.targetId,P=Object.assign({},B.navigationButtons);P[x]=c.payload.button;return Object.assign({},B,{navigationButtons:P});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},B,{topPanelId:c.payload});case "SET_SECONDARY_HEADER":return x=c.payload.panelId,P=Object.assign({},B.secondaryHeader),P[x]=c.payload.secondaryHeader,
Object.assign({},B,{secondaryHeader:P});default:return B}};
C5C=function(){return $d(Object.assign({},{entities:e57,voiceSearch:XKI,engagementPanel:jbI,bottomSheet:sbC,cinematicSetting:kNw,shorts:qMQ,drawerLayout:buw,createPlaylist:$Co,locationCollection:UCx,reportChannel:dC7,reportForm:q6X},Cdw))};
hto=function(B,c){_.EE.addLowPriorityJob(function(){var x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return _.kM(g,2),_.K(g,mWw(),4);case 4:return _.K(g,fetch(B),5);case 5:return x=g.yieldResult,_.K(g,x.json(),6);case 6:P=g.yieldResult;bv.set(B,P);requestAnimationFrame(function(){c(P)});
_.Gw(g,0);break;case 2:Y=_.be(g),_.Ob(Y),_.Kq(g)}})})};
mCY=function(B){var c={animationConfig:{},listeners:{}},x=function(){B(!0)};
c.listeners.data_failed=x;c.listeners.error=x;c.listeners.data_ready=function(){B(!1)};
return c};
tvo=function(B){var c=B.model;var x=B.subscribed;var P=B.isOverlay;var Y=B.element;var g=B.commandController;var k=B.notificationState;if(x){var n,b;var d=(c==null?void 0:(n=c.buttonStyle)==null?void 0:n.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:c==null?void 0:(b=c.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var q;d=c==null?void 0:(q=c.subscribeButtonContent)==null?void 0:q.buttonText}a:{var C;switch(c==null?void 0:(C=c.buttonStyle)==
null?void 0:C.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":n="S";break a;default:n="M"}}a:if(P)P="overlay";else switch(c.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(x)var h="tonal";else switch((h=c.buttonStyle)==
null?void 0:h.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":h="tonal";break a;default:h="filled"}return{style:P,type:h,state:c.disableSubscribeButton?"disabled":"active",size:n,focused:B.focused,toggled:x,accessibilityLabel:TzC(c,x,k),buttonText:d,iconPosition:c.disableNotificationBell?"none":"leading-trailing",onTap:Vvx(c,x,Y,g),disableTextEllipsis:!!B.disableTextEllipsis}};
Vvx=function(B,c,x,P){return function(Y){if(c){var g;var k=B.disableNotificationBell?_.vH(B==null?void 0:(g=B.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.vH(B==null?void 0:B.onShowSubscriptionOptions)}else{var n;k=_.vH(B==null?void 0:(n=B.subscribeButtonContent)==null?void 0:n.onTapCommand)}k&&I2(k,{form:{element:x==null?void 0:x.value},commandController:P});Y.stopPropagation()}};
TzC=function(B,c,x){if(c){if(B==null?0:B.disableNotificationBell){var P;return B==null?void 0:(P=B.unsubscribeButtonContent)==null?void 0:P.accessibilityText}switch(x){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Y;return B==null?void 0:(Y=B.bellAccessibilityData)==null?void 0:Y.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return B==null?void 0:(g=B.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var k;return B==null?void 0:(k=
B.bellAccessibilityData)==null?void 0:k.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var n;return B==null?void 0:(n=B.bellAccessibilityData)==null?void 0:n.disabledLabel;default:var b;return B==null?void 0:(b=B.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var d;return B==null?void 0:(d=B.subscribeButtonContent)==null?void 0:d.accessibilityText}};
wuX=function(B){if(B){switch(B){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":B="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":B="NOTIFICATIONS_OFF";break;default:B="NOTIFICATIONS_NONE"}return B}};
NzC=function(B,c,x){x.subscribed!==c&&((x=x.key)&&_.iF(_.Uy("subscriptionStateEntity",x,{key:x,subscribed:c})),B.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:c})),c||_.gj(B,"yt-unsubscribe-action"))};
JTX=function(B){B=_.t(_.vH(B),_.d$);var c,x,P,Y;return(Y=_.t(B==null?void 0:(c=B.panelLoadingStrategy)==null?void 0:(x=c.inlineContent)==null?void 0:(P=x.sheetViewModel)==null?void 0:P.content,IdI))==null?void 0:Y.listItems};
WNd=function(B,c){if(B.onShowSubscriptionOptions&&c&&(B=JTX(B.onShowSubscriptionOptions),B!=null&&B.length)){var x=wuX(c);B.forEach(function(P){P=_.t(P,_.qv);var Y,g,k,n,b=P==null?void 0:(Y=P.leadingImage)==null?void 0:(g=Y.sources)==null?void 0:(k=g[0])==null?void 0:(n=k.clientResource)==null?void 0:n.imageName;P&&b&&(P.isSelected=b===x)})}};
ld7=function(B,c,x,P){c&&x?B.style.width=x+"px":!c&&P&&(B.style.width=P+"px")};
EpQ=function(B,c,x){var P;(P=B.lottieEl)==null||P.goToAndPlay(0);var Y;(Y=c.lottieEl)==null||Y.goToAndPlay(0);_.C3(_.EE,function(){var g;(g=x.lottieEl)==null||g.goToAndPlay(0)},300)};
hb=function(){return _.cp().resolve(_.Bp(OuC))||{}};
opd=function(B){return typeof B==="function"};
_.mp=function(B){Object.keys(B);var c=function(x,P){var Y=c.mapping||B;if(!x)return _.U(_.at,null);if(Array.isArray(x)&&(x=Qbl(Y,c,x),Array.isArray(x))){if(!x.length)return _.U(_.at,null);if(x.length>1){for(var g=!1,k=!1,n=[],b={},d=0;d<x.length;b={data$jscomp$1855:void 0},d++)if(b.data$jscomp$1855=x[d],b.data$jscomp$1855){var q=FNX(b.data$jscomp$1855,Y),C=q.mappingEntry;q=q.rendererName;C&&q&&(C&&(!opd(C)&&vpw(C)&&(k=!0),!opd(C)&&C.asyncId||(g=!0)),n.push(ztX(b.data$jscomp$1855,C,q,c,P)))}return k&&
!g?_.U(_.at,null,S6d()):_.U(_.at,null,n)}x=x[0]}if(!x)return _.U(_.at,null);x=Qbl(Y,c,[x])[0];if(!x)return _.U(_.at,null);g=FNX(x,Y);Y=g.mappingEntry;g=g.rendererName;return Y&&g?_.U(_.at,null,ztX(x,Y,g,c,P)):_.U(_.at,null)};
c.mapping=B;return c};
_.yTI=function(B){var c=void 0,x;for(x in B)if(B.hasOwnProperty(x)){c=x;break}return c};
Qbl=function(B,c,x){var P,Y=(P=hb().preProcessOptions)==null?void 0:P.idomOptions;if(!Y)return x;hb();return Y.preProcessPropsIdom(B,x,c.triggerRerender)};
FNX=function(B,c){return(B=_.yTI(B))?{mappingEntry:c[B],rendererName:B}:{mappingEntry:void 0,rendererName:void 0}};
ztX=function(B,c,x,P,Y){if(!c)return _.U(_.at,null);var g={};Y&&Y[x]&&(g=Object.assign({},Y[x]));B[x]!==void 0&&(g.data=B[x]);if(opd(c))return c.debugName||(c.debugName=x),_.U(c,g);c.asyncId&&(P.pendingIdsMap=P.pendingIdsMap||{},P.pendingIdsMap[x]=c.asyncId);return c.templateFn?c.templateFn(g):vpw(c)?S6d():_.U(_.at,null)};
vpw=function(B){var c;return(c=B.showPlaceholder)!=null?c:hb().defaultShowPlaceholder};
S6d=function(){var B=hb().placeholder;return B()};
GNO=function(B){B=_.t(B,_.Tj);return(B==null?void 0:B.iconName)&&!(B==null?0:B.title)};
Zux=function(B,c,x){var P;return _.U(_.at,null,B==null?void 0:(P=B.actions)==null?void 0:P.map(function(Y){return _.U("div",{class:function(){var g={"yt-flexible-actions-view-model-wiz__action":!0};g["yt-flexible-actions-view-model-wiz__action--row-action"]=c;g["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(GNO(Y))var k=!0;else if(k=_.t(Y,_.V7),(k==null?0:k.isToggled)&&GNO(k==null?void 0:k.toggledButtonViewModel)||(k==null||!k.isToggled)&&GNO(k==null?void 0:k.defaultButtonViewModel))k=
!0;else{var n;k=((n=_.t(Y,Mvq))==null?0:n.playlistId)?!0:!1}g=(g["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=k,g["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=x,g);return _.U9(g)}},LN7([Y],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!c}}))}))};
Hu7=function(B){var c=B.layout===1,x,P=((x=B.data)==null?void 0:x.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";x={};P=(x["yt-flexible-actions-view-model-wiz"]=!0,x["yt-flexible-actions-view-model-wiz--inline"]=!c,x["yt-flexible-actions-view-model-wiz--scrollable"]=P,x);var Y,g;return _.U("yt-flexible-actions-view-model",{class:_.U9(B.className,P)},(Y=B.data)==null?void 0:(g=Y.actionsRows)==null?void 0:g.map(function(k){if(c){var n;return _.U("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Zux(k,c,!((n=B.data)==null||!n.respectActionIntrinsicWidth)))}return Zux(k,c,!1)}))};
fd7=function(B,c){c=c===void 0?{shouldPersist:!0}:c;return{useUpdatableData:function(x,P){var Y=[],g=_.p(_.mg(function(){var d=x();if(P!=null&&P.length&&Y){var q=Y.length>0;for(var C=!1,h=0;h<P.length;h++){var V=P[h]();q&&V!==Y[h]&&(C=!0);Y[h]=V}q=C}else q=!1;if(q)_.tb.remove(b());else if(q=_.tb.get(b()))return q;return d})),k=g.next().value,n=g.next().value,b=_.db(function(){return B(x())},void 0,"VFraLb");
_.IO(function(){if(b()!=null){w$.set(b(),[k,n,!1]);var d=b();_.lP(function(){w$.delete(d)})}},"Fdafud");
return[k,function(d){n(d);c.shouldPersist&&_.tb.set(b(),d)}]},
getData:function(x){var P;return(P=w$.get(B(x)))==null?void 0:P[0]()},
updateData:function(x,P){x=B(x);var Y=w$.get(x);if(!Y)return!1;var g=_.p(Y);Y=g.next().value;g=g.next().value;P=P(Y());g(P);c.shouldPersist&&_.tb.set(x,P);return!0},
useUpdatableDataIdom:function(x,P){var Y=B(x),g=_.tb.get(Y),k=_.p(K3(g!=null?g:x)),n=k.next().value,b=k.next().value,d=Os(g!=null?g:x);W5(function(){if(Y!=null)return w$.set(Y,[function(){return d.value},
function(q){b(q);d.value=q},
w$.has(Y)]),_.EE.addJob(function(){_.Nv(_.EE,function(){var q=w$.get(Y);q&&(q[2]=!1)},0)},8),function(){var q;
((q=w$.get(Y))==null?0:q[2])||w$.delete(Y)}},[Y]);
W5(function(){n!==x&&(b(x),d.value=x)},P?[].concat(_.wq(P),[Y]):[Y]);
return[n,b]}}};
iu7=function(B){var c=_.p(_.$D(!0,void 0,"bKtO6d")),x=c.next().value;c.next();return function(){var P=jI(B.children());return _.U(_.m,{cond:x,then:function(){return P},
else:B.fallback})}()};
_.IF=function(B){var c=AT$(B),x=c.data,P=c.mapping,Y=c.wrapper;c=c.pendingFallback;var g=function(){return uvQ(_.Ox(x))},k=function(){var n=g(),b=[];
n=_.p(n);for(var d=n.next();!d.done;d=n.next()){var q=void 0;d=d.value;var C=void 0;for(q in d)if(!(!d).hasOwnProperty(q)){C=q;break}(q=C)&&b.push(q)}return b};
return B.data?_.U(iu7,{fallback:c},function(){return _.U(_.mV,{each:k},function(n,b){var d=Y?function(C){return Y(function(){return P[n](C,b)},q,b)}:function(C){return P[n](C,b)};
d.debugName||(d.debugName=String(n));if(!P[String(n)])return document.createComment("");d.componentType!==VG&&DCO(String(n));var q=rTw(g,n,b);return _.U(d,{data:q})})}):_.U(_.at,null)};
AT$=function(B){var c=B.targetId||RtO(B.children);if(!B.data||!c||_.T("mweb_new_replaceables_killswitch"))return Object.assign({},B,{mapping:B.children,wrapper:void 0});var x="stamper-"+etI++,P=function(){var n;return(n=typeof B.targetId==="function"?B.targetId(x):B.targetId)!=null?n:x};
c=_.p(B3X(function(){var n=uvQ(B.data());n.targetId=P;return n})).next().value;
var Y=Object.assign({},hb().replaceableMapping,B.children);if(B.replacementWrapper){var g=Y.notificationTextRenderer,k=Y.notificationMultiActionRenderer;g&&(Y.notificationTextRenderer=function(n,b){return B.replacementWrapper(g({data:n.data},b))});
k&&(Y.notificationMultiActionRenderer=function(n,b){return B.replacementWrapper(k({data:n.data},b))})}return Object.assign({},B,{data:c,
mapping:Y,wrapper:function(n,b,d){return KL$({targetId:P,stamperIndex:d},n)}})};
rTw=function(B,c,x){var P;return _.db(function(){var Y=B()[x()];if(Y)P=Y[c];else return _.Ob(new _.mc("Stamper failed to find "+String(c)+" at index "+x()+" of data array of length "+(B().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),P;return Y[c]},void 0,"wgRPHd")};
RtO=function(B){B=_.p(Object.keys(B));for(var c=B.next();!c.done;c=B.next())if(c=c.value,c5$.includes(c)||xdO.includes(c)||PTX.includes(c))return!0;return!1};
uvQ=function(B){return B?Array.isArray(B)?B:[B]:[]};
DCO=function(B){if(_.T("web_enable_renderer_logger")){var c;(c=_.cp().resolve(_.Bp(YOX)))!=null&&c.loggingEnabled&&!c.ids.has(B)&&c.ids.add(B)}};
aVQ=function(B){return!(B==null||!B.iconName||(B==null?0:B.title))};
g1A=function(B){var c=_.t(B.data.toggleButtonViewModel,_.V7),x,P=(x=B.data.dislikeEntityKey)!=null?x:"",Y=eMC(vw,[P]);c=Object.assign({},c,{isToggled:Y?Y.likeStatus==="DISLIKE":c.isToggled});return _.U("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.U(_.Jb,{data:c,buttonShapeOverrides:B.buttonShapeOverrideables,onToggle:function(g){Y&&g!==(Y.likeStatus==="DISLIKE")&&Y.key&&_.iF(_.Wv("likeStatusEntity",Y.key,{likeStatus:g?"DISLIKE":"INDIFFERENT",hadUserInteraction:g}))}}))};
pSq=function(B){var c=_.T("web_supports_animations_api"),x=_.t(B.data.toggleButtonViewModel,_.V7),P,Y,g,k,n=_.p(K3({numberText:(k=(P=B.likeCountEntity)==null?void 0:(Y=P.likeCountIfIndifferent)==null?void 0:Y.content)!=null?k:"",numberValue:Number((g=B.likeCountEntity)==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),b=n.next().value,d=n.next().value,q,C,h,V;P=_.p(K3({numberText:(V=(q=B.likeCountEntity)==null?void 0:(C=q.likeCountIfLiked)==null?void 0:C.content)!=null?
V:"",numberValue:Number((h=B.likeCountEntity)==null?void 0:h.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));q=P.next().value;var N=P.next().value;C=_.p(K3());var l=C.next().value,E=C.next().value,S;C=(S=B.data.likeStatusEntityKey)!=null?S:"";var M,f;S=(f=(M=B.likeCountEntity)==null?void 0:M.key)!=null?f:"";var Z=eMC(vw,[C]),u=eMC(fww,[S]);M=P4Q(function(){return(Z==null?void 0:Z.likeStatus)==="LIKE"},[Z]);
W5(function(){var e,px=u&&((e=u.likeCountIfIndifferent)==null?void 0:e.content)!==b.numberText;if(!l&&px){var kI,Ul;d({numberText:(Ul=u==null?void 0:(kI=u.likeCountIfIndifferent)==null?void 0:kI.content)!=null?Ul:"",numberValue:Number(u==null?void 0:u.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var wC,W$;N({numberText:(W$=u==null?void 0:(wC=u.likeCountIfLiked)==null?void 0:wC.content)!=null?W$:"",numberValue:Number(u==null?void 0:u.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[u]);
x=Object.assign({},x,{isToggled:M});c=c&&B.likeCountEntity;return _.U("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.U(_.Jb,{data:x,buttonShapeOverrides:B.buttonShapeOverrideables,animatedTextPropsDefault:c?b:void 0,animatedTextPropsToggled:c?q:void 0,onToggle:function(e){srI(e,Z,l,E)},
style:function(){return B.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
srI=function(B,c,x,P){x&&_.EE.cancelJob(x);x=_.EE.addLowPriorityJob(function(){P(void 0)},5E3);
P(x);c&&B!==(c.likeStatus==="LIKE")&&c.key&&_.iF(_.Uy("likeStatusEntity",c.key,{key:c.key,likeStatus:B?"LIKE":"INDIFFERENT",hadUserInteraction:B}))};
kT7=function(B,c,x,P){x&&_.EE.cancelJob(x);x=_.EE.addLowPriorityJob(function(){P(void 0)},5E3);
P(x);c&&B!==(c.likeStatus==="LIKE")&&c.key&&_.iF(_.Uy("likeStatusEntity",c.key,{key:c.key,likeStatus:B?"LIKE":"INDIFFERENT",hadUserInteraction:B}))};
n1$=function(B){var c,x=_.t((c=B.data)==null?void 0:c.likeButtonViewModel,_.lR),P;c=_.t((P=B.data)==null?void 0:P.dislikeButtonViewModel,_.Ey);var Y,g=(Y=eMC(vw,[(x==null?void 0:x.likeStatusEntityKey)||""]))!=null?Y:x==null?void 0:x.likeStatusEntity;P=P4Q(function(){var k=B.data,n;k=(k==null?void 0:(n=k.timedAnimationData)==null?void 0:n.animationTiming)||[];return{uniqueId:"like-dislike",timings:k,enabled:(g==null?void 0:g.likeStatus)==="INDIFFERENT"&&k.length>0,experimentEnabled:k.length>0}},[B.data,
g]);return _.U("segmented-like-dislike-button-view-model",{class:_.U9(B.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.U(Oy,{settings:P},_.U("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},x?_.U(XSO,{data:x,likeCountEntity:B.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,c?_.U($dI,{data:c,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
boO=function(B,c){var x=ug.get(B)||{layerNode:c};x.layerNode=c;tVQ(B,x);B.getScreenLayer=function(){return oF(x.layerNode)}};
KBQ=function(B){var c;B=B.parentNode;for(var x;B&&((c=ug.get(B))==null||!c.isRenderer)&&!((x=B.polymerController)!=null?x:B).isRenderer_;)B=B.parentNode||B.host;if(c=B)return ug.get(c)};
jrI=function(B){if(B){ug.delete(B);var c=_.cp().resolve(RG);Te7(B,c)}};
ddq=function(B,c,x){if(x===void 0?0:x){if(x=B.getAttribute("client-ve-type"),c.data&&!c.disableReactiveLogging||x)_.oO(function(){Ud7(B,_.Ox(c.data))}),_.lP(function(){return void jrI(B)})}else typeof c.data!=="function"&&Ud7(B,c.data)};
Ud7=function(B,c){qOY++;CTl(B,c)&&_.EE.addJob(function(){_.Nv(_.EE,function(){if(CTl(B,c)&&B.ownerDocument.documentElement===document.documentElement&&B){var x;if(B.getAttribute("layer")){var P=x=Number(B.getAttribute("layer")),Y=ug.get(B);Y?Y.layerNode.layer=P:boO(B,new hpq(P));(P=KBQ(B))&&(Y=ug.get(B))!=null&&(Y.layerNode.parent=P.layerNode)}else if(x=ug.get(B))x=oF(x.layerNode);else{x=oF;P=new hpq;if(Y=KBQ(B))P.parent=Y.layerNode;boO(B,P);x=x(P)}x!=null||(x=0);P=B.getAttribute("client-ve-type");
Y=Number(P);var g=!1;P=!1;var k=ug.get(B),n;if((n=k)&&!(n=k[mdl]!==c)&&(n=Y)){var b;n=((b=ug.get(B))==null?void 0:b.clientVeType)===void 0}n&&(k[mdl]=c,g=P=k.isRenderer=!0);ug.has(B)&&(ug.get(B).clientVeType=Y);B.visualElement&&(P=!0);if(_.T("wiz_next_ld_fix_client_ve_spec")){var d;b=((d=_.t(c==null?void 0:c.rendererContext,_.CL))==null?void 0:d.loggingDirectives)||(c==null?void 0:c.loggingDirectives)}else b=c==null?void 0:c.loggingDirectives;b&&b.clientVeSpec&&(d=T3O(_.UL(),B),d=_.V8q(_.q_(),b,d||
void 0,x))&&(B.visualElement=d);!B.visualElement&&Y&&g&&(B.veType=Y,d=void 0,_.T("wiz_next_client_ve_parent_fix")&&(d=T3O(_.UL(),B)),d=_.dX(_.q_(),B,d,x),B.visualElement=d);P&&(d=_.cp().resolve(RG),NeI(B,{data:c,observer:d,layer:x,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
CTl=function(B,c){return(c==null?0:c.trackingParams)||(c==null?0:c.loggingDirectives)||_.t(c==null?void 0:c.rendererContext,_.CL)||B.getAttribute("client-ve-type")?!0:!1};
wSd=function(B){return _.T("cow_logging_in_component_wrapper")?function(c){ddq(c,B,!0)}:t8O};
t8O=function(){};
_.N37=function(B,c){return _.X9(B.entities,"accountLinkStatusEntity",c)};
IVl=function(B,c){return _.X9(B.entities,"hatsSurveyEntity",c)};
J57=function(B,c){return _.X9(B.entities,"hatsSurveyStateEntity",c)};
WBw=function(B,c){return _.X9(B.entities,"quantityIncrementerEntity",c)};
QrO=function(B){var c=B.data;var x=B.className===void 0?"":B.className;var P=B.setMinWidth;B=B.forceIconOnly;var Y=_.Ho("account-link-button-view-model",wSd({data:c}));P=P?"ytwAccountLinkButtonViewModelHostMinWidth":"";var g=_.jA(_.N37,function(){var C;return(C=_.Ox(c).accountLinkStatusEntityKey)!=null?C:""}),k=_.jA(_.N37,function(){var C;
return(C=_.Ox(c).accountLinkStatusSecondaryEntityKey)!=null?C:""}),n=function(){if(!_.T("web_account_link_secondary_killswitch")){var C,h;
return((C=g())==null?void 0:C.linked)||((h=k())==null?void 0:h.linked)}var V;return(V=g())==null?void 0:V.linked};
_.IO(function(){var C=g();if(C){var h=lVl(new E1w,Oo7(new o1w,!!C.linked));_.p3().then(function(V){V&&(V.setAccountLinkState(_.PN(h.JSC$10128_serializeBinary(),4)),V.updateAccountLinkingConfig(!!C.linked))})}},"lLLHt");
var b=function(){return _.t(_.Ox(c).toggleButtonViewModel,_.V7)};
_.Z6("yt-signal-action-show-account-link-dialog",function(){if(b()){var C=n()?b().toggledButtonViewModel:b().defaultButtonViewModel;C=_.t(C,_.Tj);var h;if((h=g())==null?0:h.isWarning){h=_.t(_.Ox(c).warningButtonViewModel,_.Tj);if(!h){_.MR(Error("Ah"));return}C=h}var V;(h=_.vH((V=C)==null?void 0:V.onTap))&&_.bg([h],Y.value)}else _.MR(Error("Bh"))});
var d=function(){var C=b();return Object.assign({},C,{isToggled:n()})},q=B?{iconPosition:"icon-only"}:{};
return _.U("account-link-button-view-model",{class:_.Kw("ytwAccountLinkButtonViewModelHost",function(){return _.Ox(x)},P),
el:Y,"button-renderer":!0},_.U("div",null,_.U(_.m,{cond:function(){var C;if((C=g())==null?0:C.isWarning)return(C=_.t(_.Ox(c).warningButtonViewModel,_.Tj))||_.MR(Error("Ah")),C},
then:function(C){return _.U(_.Q7,{data:C,buttonOverrides:q})},
else:function(){return _.U(_.Jb,{data:d,buttonShapeOverrides:q})}})))};
FBd=function(B){switch(B){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
v1q=function(B){switch(B){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}};
zpo=function(B){switch(B){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.y5x=function(B){var c=_.Yu("web_generic_client_event_wait_period ",0);c||(c=3E5);var x=SOI.get(B);!_.T("enable_web_client_experiment_event_timeout_killswitch")&&x&&(0,_.BA)()-x<c||(SOI.set(B,(0,_.BA)()),_.JP("genericClientExperimentEvent",{eventType:B}))};
GTq=function(B){switch(B){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""}};
M8l=function(B){if(!B)return"";var c,x=(c=_.cp().resolve(_.Bp(_.fL)))==null?void 0:c(),P;if(!x&&((P=B.vibrantColorPalette)==null?0:P.iconInactiveColor))return yy(B.vibrantColorPalette.iconInactiveColor,"1");var Y;return x&&((Y=B.darkColorPalette)==null?0:Y.iconInactiveColor)?yy(B.darkColorPalette.iconInactiveColor,"1"):B.color?yy(B.color,"1"):B.sampledThumbnailColor?(B=B.sampledThumbnailColor,"rgba("+B.red+","+B.green+","+B.blue+");"):""};
_.F5=function(B,c){if(!B.includes("DATE_PLACEHOLDER"))return B;var x=new Date(0);x.setUTCSeconds(c);return B.replace("DATE_PLACEHOLDER",LBd(x))};
_.vv=function(B){return B!=null&&B.watch?B.watch.isTheaterMode:!1};
_.zj=function(B){return B!=null&&B.watch?B.watch.isWatchFullscreen:!1};
_.SA=function(B){B=_.ZoO(B);return _.T("web_watch_enable_single_column_grid_view")?B:!1};
_.ZoO=function(B){return B.watch.isWatchNarrowWidth};
Hoq=function(B,c,x){return function(P){var Y=B.command;Y&&(I2(Y,{form:{element:x}}),c([Y],P))}};
ioQ=function(B,c,x,P,Y){return function(g){var k=fVQ(B,c);k&&I2(k,{form:{element:x},commandController:P});Y&&g.stopPropagation()}};
fVQ=function(B,c){if(B.signInEndpoint&&!_.T("web_subscribe_sign_in_endpoint_killswitch"))return B.signInEndpoint;if(c){if(B.serviceEndpoints)return B.serviceEndpoints[1];if(B.onUnsubscribeEndpoints)return B.onUnsubscribeEndpoints[0]}else{if(B.serviceEndpoints)return B.serviceEndpoints[0];if(B.onSubscribeEndpoints)return B.onSubscribeEndpoints[0]}};
A5X=function(B,c){var x,P,Y,g;c=c&&((x=B.unsubscribeAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)||((Y=B.subscribeAccessibility)==null?void 0:(g=Y.accessibilityData)==null?void 0:g.label);return B.longSubscriberCountText?[c,_.iG(B.longSubscriberCountText)].filter(function(k){return k}).join(" "):c};
y7=function(B,c){return c||(B==null?0:B.isChannelDelegate)?"disabled":"active"};
uDX=function(B,c){var x;switch((x=B.style)==null?void 0:x.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:y7(B)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:y7(B)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:y7(B,!0)};case "OVERLAY":return c?{style:"overlay",type:"tonal",state:y7(B)}:{style:"overlay",type:"filled",state:y7(B)};default:return c?{style:"mono",type:"tonal",state:y7(B)}:{style:"mono",type:"filled",state:y7(B)}}};
Ddq=function(B){switch(B){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
r5X=function(B){switch(B){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Rpd=function(B,c){var x=B.map(function(P){return P.toString()});
return _.qe(function(P){if(x.includes(P.key)){c&&P.preventDefault();var Y;(Y=P.currentTarget)==null||Y.click()}})};
_.ep$=function(){return Rpd(["Enter"])};
_.Bsx=function(){return Rpd(["Enter"," "],!0)};
_.Gj=function(B){if(B.composedPath)return B.composedPath();if(!B.__composedPath){for(var c=[],x=B.target;x;)c.push(x),x=x.parentNode;c.push(window);B.__composedPath=c}return B.__composedPath};
_.Mv=function(B,c,x){B=_.p(B);for(var P=B.next();!P.done;P=B.next()){P=P.value;if(P===c)break;for(var Y=_.p(x),g=Y.next();!g.done;g=Y.next())if(g=g.value,P.tagName===g||P.role==="button"&&g==="BUTTON")return!0}return!1};
xKA=function(B,c){var x,P=(x=c.observer)!=null?x:_.cp().resolve(RG);if(B){x=c_$(B);var Y=[];c.showOption&&Y.push(P.observe(B,function(){c.visibilityCallback(!0)},c.showOption));
c.hideOption&&Y.push(P.observe(B,function(){c.visibilityCallback(!1)},c.hideOption));
c.prescanOption&&c.prescanCallback&&Y.push(P.observe(B,function(){c.prescanCallback()},c.prescanOption));
var g;x.visibilityMonitorKeys=((g=x.visibilityMonitorKeys)!=null?g:[]).concat(Y)}};
c_$=function(B){var c;return(c=B.polymerController)!=null?c:B};
_.Z_=function(B){return!!_.L3(B)};
_.aRq=function(B,c){var x=bfX();W5(function(){var P=B.value;if(P)return P8l(P,c),YD$(P,c,void 0,void 0,void 0,x)},[c])};
_.Hv=function(B,c,x,P,Y,g){var k=bfX();_.IO(function(){var n=B.value;n&&(P8l(n,c(),g),n=YD$(n,c(),x,P,Y,k),_.lP(n))},"GXtnHd")};
P8l=function(B,c,x){var P=g$q(c),Y=sL7(c);c=P&&pE7;var g=Y&&kDY;(P||Y)&&xKA(B,{visibilityCallback:function(k){var n=_.cp().resolve(_.xu);k&&P?n.resolveCommand(P,{form:{element:x?B:void 0},disableClickTracking:!0}):!k&&Y&&n.resolveCommand(Y,{form:{element:x?B:void 0},disableClickTracking:!0})},
showOption:c,hideOption:g})};
YD$=function(B,c,x,P,Y,g){var k=new Map;if(c=_.L3(c)){var n;B=(P==null?void 0:(n=P.onTap)==null?void 0:n.value)||B;x=XE7(c,B,x==null?void 0:x.onTap,Y,g);B.addEventListener("click",x);k.set("click",x)}return function(){for(var b=_.p(k),d=b.next();!d.done;d=b.next()){var q=_.p(d.value);d=q.next().value;q=q.next().value;B.removeEventListener(d,q)}}};
_.L3=function(B){var c;return(B=(c=_.t(B,$KI))==null?void 0:c.onTap)&&_.vH(B)};
g$q=function(B){var c;return(B=(c=_.t(B,$KI))==null?void 0:c.onVisible)&&_.vH(B)};
sL7=function(B){var c;return(B=(c=_.t(B,$KI))==null?void 0:c.onHidden)&&_.vH(B)};
XE7=function(B,c,x,P,Y){var g=function(n){_.cp().resolve(_.xu).resolveCommand(B,n)},k=function(n){P&&_.Mv(_.Gj(n),c,P)||g(n.target?{form:{element:n.target,
sourceData:B,mutationContext:Y}}:void 0)};
x&&(k=function(n){x(n,g)});
return k};
n$Q=function(B){switch(B){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}};
bvw=function(B){var c=B.numAvatarsInCluster;switch(B.clusterSize){case "small":return c===2?22:18;case "40":return c===2?24:22;default:return c===2?24:20}};
KJX=function(B,c){return function(x){var P=Object.keys(c);_.IO(function(){if(B()){for(var Y=_.p(P),g=Y.next();!g.done;g=Y.next())g=g.value,x.addEventListener(g,c[g]);_.lP(function(){for(var k=_.p(P),n=k.next();!n.done;n=k.next())n=n.value,x.removeEventListener(n,c[n])})}},"bXZGfe")}};
jLw=function(B){switch(bvw(B)){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""}};
UKX=function(B){switch(B){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""}};
dK7=function(B){switch(bvw(B)){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""}};
qDq=function(B){switch(B){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""}};
C87=function(B){switch(B){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}};
hiC=function(B){return B==="medium"||B==="48"||B==="large"||B==="extra-large"||B==="extra-extra-large"||B==="giant"};
mKQ=function(B){return!!((B==null?0:B.includes(3))||(B==null?0:B.includes(5)))};
VGO=function(B){return{size:Tsx(B.data.avatarImageSize),onTap:B.onTap,decorations:B.decorations||[],badgeText:B.badgeText,accessibilityText:B.accessibilityText,avatarButtonCustomClassName:B.avatarButtonCustomClassName,clusterLayoutConfig:B.clusterLayoutConfig}};
Tsx=function(B){switch(B){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"}};
tGx=function(B){switch(B){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}};
wEQ=function(B){switch(B){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""}};
Ns7=function(B){var c=B.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",x,P=B.avatars&&B.avatars.length>0?(x=_.t(B.avatars[0],_.f3))==null?void 0:x.avatarImageSize:"AVATAR_SIZE_UNKNOWN";x=tGx(P)||0;if(c){var Y,g=(Y=B.avatarClusterSize)!=null?Y:"AVATAR_SIZE_M";c=tGx(g);var k,n,b=Math.min((n=(k=B.avatars)==null?void 0:k.length)!=null?n:0,4),d;return{avatars:((d=B.avatars)==null?void 0:d.slice(0,4))||[],avatarSizeInPx:x,avatarStackStyle:{width:c+"px",height:c+"px",position:"relative"},avatarStyle:function(C){var h=
bvw({clusterSize:Tsx(g),numAvatarsInCluster:b,avatarIndex:C});var V=tGx(g);b===3&&C===2?(V=(V-h)/2,V=(_.v5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*V):V=void 0;return{position:"absolute",top:b===2&&C===1||b===3&&C===2||b===4&&C>=2?"0":void 0,bottom:b===2&&C===0||b>2&&C<2?"0":void 0,left:b===2&&C===1||b>2&&(C===1||C===3)?"0":void 0,right:b<=3&&C===0||b===4&&(C===0||C===2)?"0":void 0,transform:V?"translateX("+V+"px)":void 0,width:h+"px",height:h+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(C){return{clusterSize:Tsx(B.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:C}},
avatarButtonCustomClassName:void 0}}var q;return{avatars:((q=B.avatars)==null?void 0:q.slice())||[],avatarSizeInPx:x,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:wEQ(P),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
IRA=function(B,c,x){return function(){I2(B,{form:{element:c},commandController:x})}};
J_I=function(B){switch(B){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
WJq=function(B){switch(B){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"}};
lR7=function(B){var c=B.data;B=B.hidden===void 0?!1:B.hidden;var x={};B={class:_.U9("yt-page-indicator-view-model",(x["yt-page-indicator-view-model__indicator--hidden"]=!c.indicatorCount,x)),hidden:B};if(c.indicatorCount){x=[];for(var P=0;P<c.indicatorCount;P++){var Y={};Y=_.U9("yt-page-indicator-view-model__indicator",(Y["yt-page-indicator-view-model__indicator--selected"]=c.selectedIndex===P,Y));x.push(_.U("div",{class:Y}))}c=_.U(_.at,null,x)}else c=_.U(_.at,null);return _.U("yt-page-indicator-view-model",
B,c)};
Ovw=function(B){B&&(E$Q(B)?delete B.inlinePlayerData:"inlinePlaybackEndpoint"in B&&delete B.inlinePlaybackEndpoint)};
o$d=function(B){if("accessibilityText"in B)return B.accessibilityText||"";if("title"in B){var c,x,P;return((c=B.title)==null?void 0:(x=c.accessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)||""}if("accessibility"in B){var Y,g;return((Y=B.accessibility)==null?void 0:(g=Y.accessibilityData)==null?void 0:g.label)||""}return""};
E$Q=function(B){return"inlinePlayerData"in B};
Ab=function(B){return new QLo(B)};
_.FJl=function(B,c,x,P,Y,g){var k=function(d){d.preventDefault()},n=function(){var d=B.value;
if(d)return(d._data=c)?(d.addEventListener("touchstart",U7q,{passive:!0}),d.addEventListener("click",qCC),c.clickTrackingParams&&(d.params={itct:c.clickTrackingParams}),CNX(d,c),IW(d,hXl(c)||"")):d.addEventListener("click",k),function(){c?(d.removeEventListener("touchstart",U7q,{passive:!0}),d.removeEventListener("click",qCC)):d.removeEventListener("click",k)}},b=function(){var d=B.value;
if(d){var q=_.S_({innertubeCommand:c,elementsCommand:x,forceNewState:P,stopPropagation:g});if(q)return d._data=q._data,q["aria-haspopup$"]&&d.setAttribute("aria-haspopup",q["aria-haspopup$"].toString()),q["force-new-state$"]&&d.setAttribute("force-new-state",q["force-new-state$"].toString()),q.href$&&IW(d,q.href$),q.rel$&&(d.rel=q.rel$),q.role$&&d.setAttribute("role",q.role$),q.target$&&(d.target=q.target$),d.params=q.params,q.onclick&&d.addEventListener("click",q.onclick),q.onpointerdown&&d.addEventListener("onpointerdown",
q.onpointerdown),function(){q.onclick&&d.removeEventListener("click",q.onclick);q.onpointerdown&&d.removeEventListener("onpointerdown",q.onpointerdown)}}};
W5(Y?b:n,[c,x])};
v$O=function(B){var c=B.children;var x=B.className;var P=B.dir;var Y=B.style;var g=B.role;var k=B.ariaSelected;var n=B.ariaLabel;var b=B.ariaHidden;var d=B.ariaLabelledby;var q=B.ariaDescribedby;var C=B.command;var h=B.elementsCommand;var V=B.forceNewState;var N=B.isPlaceholder;var l=B.tabIdentifier;var E=B.target;var S=B.tabIndex;var M=B.useATagConfig;var f=B.stopPropagation;B=_.Ho("a");_.FJl(B,C,h,V,M,f);return _.U("a",{el:B,"on:click":_.qe(function(){return f===!1}),
class:x,style:Y,dir:P,role:g?g:C?void 0:"group","aria-hidden":b?!0:void 0,"aria-label":n,"aria-labelledby":d,"aria-describedby":q,"aria-selected":k,tabindex:S!==void 0?S:void 0,target:E,"tab-identifier":l,"force-new-state":V?!0:void 0,"is-placeholder":N?!0:void 0},c)};
zi7=function(B){var c=B.data;B=_.qe(function(){var Y=_.t(c.onTap,_.Fo);Y&&_.cp().resolve(_.xu).resolveCommand(Y);return!1});
var x={sources:[{url:c.thumbnailUrl,width:120,height:90}]},P=c.rating&&c.ratingA11yLabel&&c.reviewsCount&&c.reviewsCountA11yLabel;return _.U("place-data-view-model",null,c.placeName&&c.placeCategory?_.U("div",{class:"yt-spec-place-data-view-model-shape","on:click":B},_.U(_.D9,{data:x,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.U(v$O,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.t(c.onTap,_.Fo),forceNewState:!0,useATagConfig:!0},
_.U("h3",{class:"yt-spec-place-data-view-model-shape__name",title:c.placeName},c.placeName)),_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata"},P?_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.U("span",{class:"score",title:c.ratingA11yLabel},c.rating),_.U("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.U(_.Vf,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.U("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:c.reviewsCountA11yLabel},c.reviewsCount)):_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.U("span",{class:"category",title:c.placeCategory},c.placeCategory)))):null)};
SDq=function(B){return function(c){B&&(B.thumbnailElRef=c.thumbnailElRef,B.thumbnail=c.thumbnail,B.thumbnailOverlays=c.thumbnailOverlays,B.thumbnailSize=c.thumbnailSize)}};
y_C=function(B){var c;return(c=B.sharedUi)==null?void 0:c.animatedThumbnailEnabled};
GD7=function(B){var c;return(c=B.sharedUi)==null?void 0:c.inlinePreviewEnabled};
_.MGq=function(B){var c;return(c=B.sharedUi)==null?void 0:c.currentPageSubType};
LJQ=function(B){switch(B){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
fRI=function(B){var c=_.p(_.$D(!1,void 0,"RIOonf")),x=c.next().value,P=c.next().value;_.lk(function(){var Y=B==null?void 0:B();if(Y){var g=_.cp().resolve(_.Bp(ZvO));if(g){var k={triggeringElement:Y,onDwellTriggeredFn:function(){P(!0)},
onDwellEndFn:function(){P(!1)}};
g.registerElement(k);_.lP(function(){HvA(g,k)})}}});
return x};
ivA=function(B,c,x){x?x(c):_.Gl(c,B.target?{form:{element:B.target}}:void 0)};
_.uR=function(B,c,x,P){_.IO(function(){var Y=B.value;if(Y){var g=new Map,k,n=(k=c())==null?void 0:k.onTap;n&&(k=function(b){a:{var d=b.composedPath();d=_.p(d);for(var q=d.next();!q.done;q=d.next()){q=q.value;if(q===Y)break;if(q.className.indexOf("HostIsClickableAdComponent")>=0||q.tagName==="A".toString()||q.tagName==="BUTTON".toString()){d=!0;break a}}d=!1}d||ivA(b,n,x)},(P==null?0:P())||_.T("enable_web_home_top_landscape_image_layout_level_click")?(Y.addEventListener("tap",k),g.set("tap",k)):(Y.addEventListener("click",
k),g.set("click",k)));
_.lP(function(){for(var b=_.p(g),d=b.next();!d.done;d=b.next()){var q=_.p(d.value);d=q.next().value;q=q.next().value;Y.removeEventListener(d,q)}})}},"g9MHN")};
A_C=function(B,c){var x,P=(x=B.interaction)==null?void 0:x.onTap;if(B=_.S_({elementsCommand:P,forceNewState:!0,skipOnClick:!0}))return B.onclick=function(Y){nmO(Y)&&(Y.preventDefault(),P&&ivA(Y,P,c))},yF(B)?B:void 0};
ubo=function(B){switch(B){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
DKw=function(B){switch(B){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"}};
r_w=function(B){switch(B){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"}};
_.Rid=function(B){return _.T("rich_grid_enable_dynamic_offset")&&B?Math.max(Math.round((B-_.Yu("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Yu("rich_grid_dynamic_offset_offset_per_100",10)),_.Yu("rich_grid_dynamic_offset_lower_bound",-60)):0};
eix=function(B,c){switch(c){case 4:return 16;case 1:return B<528?16:B<1024?32:48;case 2:return(B>=528?16:8)/2;case 3:return(B<528?16:B<1024?32:48)+(B>=528?16:8)/2;default:return 0}};
B6O=function(B){var c=B.originalContainerWidth;var x=B.sizing;var P=B.standardUnit;if(B.isCompactList&&c<528)return 1;switch(x){case "STANDARD":return P;case "COMPACT":return P+1;case "EXTRA_COMPACT":return _.T("web_responsive_extra_compact_2x")?P*2:_.T("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}};
xLx=function(B){var c=B.containerWidth;var x=B.peek;var P=B.gutter;var Y=B.numItems;B=B.ignoreMaxWidthLimit;c=x?Math.max((c-x-P*Y)/Y,0):Math.max((c-P*(Y-1))/Y,0);return B?c:Math.min(c,cHw)};
_.D_=function(B){var c=B.containerWidth;var x=B.hasPeek;var P=B.sizing;var Y=B.marginSettings;var g=B.isCompactList;var k=B.enableFullBleedForSingleCol;var n=B.standardUnitMinWidth;P=P||"STANDARD";x=!!x;B=c>=528?16:8;var b=x?c>=528?48:24:0;Y=eix(c,Y);var d=Math.max(c-Y*2,0);n=_.T("kevlar_disable_min_width_override")?void 0:n;n=Math.min(Math.max(Math.floor((d-b+B)/((n!=null?n:P$7)+_.Rid(c)+B)),1),6);var q=(k=!!k&&n===1)||n===1&&P!=="STANDARD";x=x||q?d:Math.min(d,(cHw+B)*n-B);P=B6O({originalContainerWidth:c,
sizing:P,standardUnit:n,isCompactList:g});return{itemWidth:xLx({containerWidth:x,peek:b,gutter:B,numItems:P,ignoreMaxWidthLimit:q}),gutter:B,maxContainerWidth:x,numItems:P,margin:k?0:Y,contentMargin:eix(c,1),typographyBump:xLx({containerWidth:x,peek:b,gutter:B,numItems:n,ignoreMaxWidthLimit:q})>400&&!(g&&c<528),standardUnit:n}};
Yeo=function(B){switch(B){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.aX7=function(B){if(B){var c;if((c=B.responsiveContainerConfiguration)==null?0:c.responsiveSize)return Yeo(B.responsiveContainerConfiguration.responsiveSize);if(B.layoutSizing)switch(B.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"}}};
gL$=function(B){if(B.fullbleed)return 1;switch(B.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Xew=function(B,c,x,P,Y,g,k,n){a:if(B===4&&P==="LOCKUP_CONTENT_TYPE_SOURCE")var b=1;else switch(B){case 3:b=1;break a;default:b=0}a:switch(B){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(B){case 3:case 4:var d=P==="LOCKUP_CONTENT_TYPE_CHANNEL"||P==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:d=!1}a:switch(B){case 5:var q=!0;break a;case 4:q=!1;break a;default:q=!1}return{isOverlay:q,isCard:slI(P,k),sizing:c!=null?c:"STANDARD",typographyBump:x!=null?x:!1,isTiny:g,isCentered:d,isCollection:ped(P),
arrangement:b,addMarginForFullbleed:B===1&&P!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:B===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:khq(P,Y,n),disableRounding:B===5||slI(P,k)||B===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:ped(P)?2:0,useLegacyTypography:!(n==null||!n.useLegacyTypography),useRichGridLegacyTypography:!(n==null||!n.useRichGridLegacyTypography)&&!_.T("web_enable_typography_bump"),hideDescription:b===0&&P==="LOCKUP_CONTENT_TYPE_VIDEO"}};
ped=function(B){switch(B){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}};
slI=function(B,c){if(c&&B==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(B){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
khq=function(B,c,x){if(c&&(x==null||!x.alwaysRespectPodcastShowAspectRatio||B!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(B){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}};
$L7=function(B){switch(B){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"}};
nLo=function(B){switch(B){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
bZl=function(B){switch(B){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}};
_.r$=function(B){if(B){var c;return((c=_.cp().resolve(_.Bp(_.fL)))==null?0:c())?B.darkThemeImage:B.image}};
ULI=function(B,c,x,P,Y,g){if(Y&&g&&c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Y,height:g};if(!x)return{};Y=x.size;x=x.allowFullWidth;if(c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&x)return{fullWidth:!0};if(Y===void 0)return{};switch(B){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Y,height:Y};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Y,height:1/Kwl*Y};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Y*
jlx,height:Y};default:return(P==null?0:P.height)&&(P==null?0:P.width)?P.width/P.height>1?{maxWidth:Y*jlx}:{maxWidth:Y}:{maxWidth:Y}}};
dLo=function(B){var c;return B&&((c=_.r$(B.themedImage))!=null?c:B.image)};
qeY=function(B){var c;return B==null?void 0:(c=B.sources)==null?void 0:c[0]};
h4w=function(B,c){var x,P;return!!((B==null?0:(x=B.byline)==null?0:x.hideAvatar)&&((P=_.t(c,C$l))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
mLI=function(B,c){var x,P;return!!((B==null?0:(x=B.description)==null?0:x.hideDescription)&&((P=_.t(c,C$l))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION")};
T6A=function(B,c){var x,P;return!!((B==null?0:(x=B.byline)==null?0:x.addPadding)&&((P=_.t(c,C$l))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
V0d=function(B,c,x,P){var Y={},g=(Y["yt-content-metadata-view-model-wiz__delimiter"]=!0,Y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=P,Y);return rf(c-1>x,function(){return _.U("span",{class:_.U9(g),"aria-hidden":!0},B)})};
wed=function(B,c){return _.U(_.RF,{text:B.text,linkInheritColor:!0,className:t0q(c),userInput:!0})};
IXA=function(B){var c=B.metadataPart;var x=B.isOverlay;var P=B.useMediumText;var Y=B.hideAvatar;var g=1;c.maxLines!==void 0&&(g=c.maxLines);return _.U(_.at,null,rf(c.avatarStack,function(){return N6l(c.avatarStack,{avatarStackViewModel:{isOverlay:x,useMediumText:P,hideAvatar:Y}})}),rf(c.text,function(){var k=g;
return _.U(_.at,null,c.tooltip?_.U("span",{title:c.tooltip,role:"tooltip"},wed(c,k)):wed(c,k))}))};
t0q=function(B){switch(B){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"}};
JHC=function(B){var c=B.metadataRow;var x=B.isInline;var P=B.delimiter;var Y=B.isOverlay;var g=B.useMediumText;var k=B.extensions;if(mLI(k==null?void 0:k.lockupMetadata,c))return _.U(_.at,null);var n=h4w(k==null?void 0:k.lockupMetadata,c);B=T6A(k==null?void 0:k.lockupMetadata,c);k=!(!((k==null?0:k.lockupMetadata)&&c.badges)||c.metadataParts);var b={};B=(b["yt-content-metadata-view-model-wiz__metadata-row"]=!0,b["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=x,b["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
B,b["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=k,b);var d,q;return _.U("div",{class:_.U9(B)},(d=c.badges)==null?void 0:d.map(function(C){return _.U("div",{class:"yt-content-metadata-view-model-wiz__badge"},N6l(C))}),(q=c.metadataParts)==null?void 0:q.map(function(C,h){return _.U(_.at,null,IXA({metadataPart:C,
isOverlay:Y,useMediumText:g,hideAvatar:n}),V0d(P,c.metadataParts.length,h,!1))}),rf(c.isSpacerRow&&!x,function(){return _.U("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
WwA=function(B){var c=B.className;var x=B.data;var P=B.layout===void 0?0:B.layout;var Y=B.isOverlay===void 0?!1:B.isOverlay;var g=B.useMediumText;var k=B.extensions;B=_.Ho("yt-content-metadata-view-model");var n=P===0;P={};P=(P["yt-content-metadata-view-model-wiz"]=!0,P["yt-content-metadata-view-model-wiz--inline"]=n,P["yt-content-metadata-view-model-wiz--tappable"]=_.Z_(x.rendererContext),P["yt-content-metadata-view-model-wiz--medium-text"]=g,P);_.aRq(B,x.rendererContext);return _.U("yt-content-metadata-view-model",
{class:_.U9(c,P),el:B},rf(x.metadataRows,function(){return x.metadataRows.map(function(b,d){return _.U(_.at,null,JHC({metadataRow:b,isInline:n,delimiter:x.delimiter,isOverlay:Y,useMediumText:g,extensions:k}),rf(n&&!b.isSpacerRow,function(){return V0d(x.delimiter,x.metadataRows.length,d,!0)}))})}))};
lXC=function(B){switch(B){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"}};
ELO=function(B){switch(B.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"}}};
OZw=function(B){var c=_.MGq(_.HW().getState())||"";return B?B+c:""};
oL7=function(B){switch(B){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Fwd=function(B){var c=_.p(_.$D(void 0,void 0,"BIquNb")),x=c.next().value,P=c.next().value,Y=_.p(_.$D(void 0,void 0,"eR0GH"));c=Y.next().value;var g=Y.next().value;Y=_.p(_.$D(void 0,void 0,"UmkP0"));var k=Y.next().value,n=Y.next().value;return{touchFeedbackEvents:{pointerUpEvent:x,pointerDownEvent:c,pointerLeaveEvent:k},touchFeedbackOnPointerUp:_.qe(function(b){if(Qll(_.Gj(b)))return!1;P(b);g(void 0);n(void 0);return!0}),
touchFeedbackOnPointerDown:_.qe(function(b){B==null||B(b);if(Qll(_.Gj(b)))return!1;g(b);P(void 0);n(void 0);return!0}),
touchFeedbackOnPointerLeave:_.qe(function(b){Qll(_.Gj(b))||(n(b),g(void 0),P(void 0))})}};
Qll=function(B){var c=["BUTTON".toString()];B=_.p(B);for(var x=B.next();!x.done;x=B.next()){x=x.value;for(var P=_.p(c),Y=P.next();!Y.done;Y=P.next())if(x.tagName===Y.value)return!0}return!1};
vLq=function(B){switch(B){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"}};
z4l=function(B){return B.scrollHeight-B.offsetHeight>1};
SeA=function(B,c){var x;return HH(B,((x=B.content)==null?void 0:x.length)||0,!c)};
yHC=function(B,c){c=SeA(B,c);var x,P;return(((x=B.content)==null?void 0:x.length)||0)>(((P=c.content)==null?void 0:P.length)||0)};
Lw$=function(B,c,x,P,Y,g){if(!c||GhY){var k;return HH(B,((k=B.content)==null?void 0:k.length)||0,!0)}c=P.value;if(!x.value||!c||!B.content)return B;x=0;P=B.content.length;k=0;M0A||(M0A=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var n=M0A;for(Y=Y*g*n;x<=P;)g=Math.floor(x+(P-x)/2),n=HH(B,g)||B,c.firstChild&&(c.firstChild.textContent=n.content),c.scrollHeight>Y?P=g-1:(k=g,x=g+1);return HH(B,k)};
ZZC=function(B,c){var x,P;return(((x=B.content)==null?void 0:x.length)||0)>(((P=c.content)==null?void 0:P.length)||0)};
HZO=function(B){var c=B.isTruncated;var x=B.isAbsoluteButton;var P=B.lineHeight;var Y=B.contentRef.value,g=B.placeholderTruncationTextRef.value,k=B.truncationTextRef.value;B=B.appDirection==="rtl";if(Y&&g){var n=g.offsetLeft;B&&(n=Y.offsetWidth-g.offsetWidth-g.offsetLeft);if(c){c=g.offsetWidth;g=Y.offsetWidth;var b=x?g-c-70:n-70;P="linear-gradient(\n      to top, transparent 0%,\n      transparent "+P+"rem,\n      #000 "+P+"rem,\n      #000 100%), linear-gradient(\n      to "+((B?"left":"right")+
",\n      #000 0px,\n      #000 "+b+"px,\n      transparent "+(x?g-c:b+70)+"px)");Y.style.setProperty("-webkit-mask-image",P);Y.style.setProperty("mask-image",P)}else Y.style.setProperty("-webkit-mask-image",""),Y.style.setProperty("mask-image","");x?B?(k.style.setProperty("left","0"),k.style.setProperty("right","unset")):(k.style.setProperty("left",""),k.style.setProperty("right","0")):B?(k.style.setProperty("left","unset"),k.style.setProperty("right",n+"px")):(k.style.setProperty("left",n+"px"),
k.style.setProperty("right","unset"))}};
fXI=function(B,c,x,P,Y){var g=_.Ho("truncated-text-content"),k=_.Ho("truncated-text-content"),n=_.Ho("button"),b=_.Ho("button"),d=_.Ho("button"),q=_.cp().resolve(_.AX),C=_.p(K3(SeA(B,Y))),h=C.next().value,V=C.next().value;C=_.p(K3(_.T("enable_truncated_text_max_lines")?ZZC(B,h):yHC(B,Y)));var N=C.next().value,l=C.next().value,E=Os(null);W5(function(){function S(){if(g.value&&n.value&&d.value)if(_.T("enable_truncated_text_max_lines")){var Z=Lw$(B,Y,g,k,c,x);V(Z);P||requestAnimationFrame(function(){if(g.value&&
n.value&&d.value){var u=z4l(g.value)||ZZC(B,Z);l(u);HZO({isTruncated:u,isAbsoluteButton:z4l(g.value),lineHeight:x,contentRef:g,placeholderTruncationTextRef:n,truncationTextRef:d,appDirection:q})}})}else V(SeA(B,Y)),requestAnimationFrame(function(){if(g.value&&n.value&&d.value)if(z4l(g.value))l(!0),P||HZO({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:x,contentRef:g,placeholderTruncationTextRef:n,truncationTextRef:d,appDirection:q});else{var u=yHC(B,Y);l(u);P||HZO({isTruncated:u,isAbsoluteButton:!1,lineHeight:x,contentRef:g,placeholderTruncationTextRef:n,truncationTextRef:d,appDirection:q})}})}
var M,f;(M=E.value)==null||(f=M.stop)==null||f.call(M);M=new _.eA(S,17);S();E.value=M},[B.content,
c,x,q,P,Y]);_.lk(function(){var S=function(){M0A=void 0;var f,Z;(f=E.value)==null||(Z=f.fire)==null||Z.call(f)};
if(window.ResizeObserver){var M=new ResizeObserver(S);M.observe(g.value);return function(){var f,Z;(f=E.value)==null||(Z=f.stop)==null||Z.call(f);M.disconnect()}}window.addEventListener("resize",S);
return function(){var f,Z;(f=E.value)==null||(Z=f.stop)==null||Z.call(f);window.removeEventListener("resize",S)}});
return{isTruncated:N,displayText:h,contentRef:g,hiddenRef:k,placeholderTruncationTextRef:n,hiddenTruncationTextRef:b,truncationTextRef:d}};
iZX=function(B){var c=B.text;var x=B.alwaysShowTruncationText;var P=B.truncationText;var Y=B.onExpandClick;var g=B.maxLines===void 0?2:B.maxLines;var k=B.disableTextMask===void 0?!1:B.disableTextMask;var n=B.textStyle===void 0?"default":B.textStyle;var b=B.accessibilityLabel===void 0?"":B.accessibilityLabel;var d=B.textSize===void 0?"small":B.textSize;var q=_.qe(function(){return void(Y==null?void 0:Y())});
a:switch(d){case "medium":var C=2;break a;case "large":C=2.2;break a;default:C=1.8}var h=fXI(c,g,C,k,B.alwaysTruncateAtMaxLines===void 0?!1:B.alwaysTruncateAtMaxLines),V=h.isTruncated;B=h.displayText;c=h.contentRef;var N=h.hiddenRef,l=h.placeholderTruncationTextRef,E=h.hiddenTruncationTextRef;h=h.truncationTextRef;var S={};x=_.U9((S["truncated-text-wiz__absolute-button"]=!k,S["truncated-text-wiz__bottom-button"]=k,S["truncated-text-wiz--hidden"]=!(x||V),S));k={};n=_.U9((k["truncated-text-wiz"]=!0,
k["truncated-text-wiz--overlay"]=n==="overlay",k["truncated-text-wiz--medium-text"]=d==="medium",k["truncated-text-wiz--large-text"]=d==="large",k["truncated-text-wiz--primary-text"]=n==="primary-text",k));d={};d=_.U9((d["truncated-text-wiz__truncated-text-content"]=!0,d["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,d));return _.U("truncated-text",{class:n,"on:click":q,style:"line-height: "+C+"rem;"},_.U("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:c,style:"max-height: "+g*C+"rem;"},_.U(_.RF,{text:B}),_.U("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:l,style:"line-height: "+C+"rem;"},_.U(_.RF,{text:P}))),_.U("truncated-text-content",{class:d,el:N,style:"max-height: "+g*C+"rem;","aria-hidden":"true"},_.U(_.RF,{text:B}),_.U("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:E,style:"line-height: "+C+"rem;"},_.U(_.RF,{text:P}))),_.U("button",{"aria-label":b,class:x,el:h,
style:"line-height: "+C+"rem;"},_.U(_.RF,{text:P})))};
AHq=function(B){return{content:B!=null?B:""}};
rHo=function(B){var c=B.data;var x;B={class:B.className};a:switch(c.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var P="yt-video-attribute-view-model--vertical";break a;default:P="yt-video-attribute-view-model--horizontal"}a:switch(c.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var Y="yt-video-attribute-view-model--image-small";break a;default:Y="yt-video-attribute-view-model--image-large"}a:switch(c.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var g="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":g="yt-video-attribute-view-model--image-avatar";break a;default:g=""}a:switch(c.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var k="yt-video-attribute-view-model--metadata-header";break a;default:k=""}a:switch(c.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var n="yt-video-attribute-view-model--container-card";break a;default:n=""}var b=_.vH(c.onTap)||_.L3(c.rendererContext)?"yt-video-attribute-view-model--clickable":"";
P=["yt-video-attribute-view-model",P,Y,g,k,n,b].join(" ");if(c.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var d="";else Y=c.lightColorPalette,g=c.darkColorPalette,k=((d=_.cp().resolve(_.Bp(_.fL)))==null?0:d())&&g?g:Y,d=(d=k==null?void 0:k.section2Color)?_.SF(d):"";return _.U("yt-video-attribute-view-model",B,_.U("div",{class:P,style:_.TU({"background-color":d})},_.U(v$O,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(x=_.vH(c.onTap))!=
null?x:_.L3(c.rendererContext),role:"group",ariaLabel:c.title,forceNewState:!0},c.heroText||c.image?_.U(uZ7,{data:c}):null,_.U(DL7,{data:c,sizeSmall:c.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
R4Y=function(B){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:B.overflowMenuA11yLabel,onTap:function(c){c.preventDefault();c.stopPropagation();if(B.overflowMenuOnTap){var x=_.S_({elementsCommand:B.overflowMenuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(c)}}}};
uZ7=function(B){B=B.data;var c,x=((c=_.cp().resolve(_.Bp(_.fL)))==null?0:c())&&B.darkThemeImage?B.darkThemeImage:B.image;c=R4Y(B);return _.U("div",{class:"yt-video-attribute-view-model__hero-section"},x?_.U(_.D9,{data:x,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):B.heroText?_.U("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.U("span",{class:"yt-video-attribute-view-model__hero-text"},B.heroText)):null,B.overflowMenuOnTap?
_.U("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.U(B8,{data:c,iconName:"MORE_VERT"})):null)};
DL7=function(B){var c=B.data;B=B.sizeSmall;var x=c.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",P=_.vH(c.onTap)||_.L3(c.rendererContext);P=_.S_({innertubeCommand:P});P=yF(P);var Y={};B={class:_.U9("yt-video-attribute-view-model__metadata",(Y["yt-video-attribute-view-model--small-font"]=B,Y)),role:P?"link":"group"};P=_.U("h1",{class:"yt-video-attribute-view-model__title"},c.title);x=c.subtitle?_.U("h4",{class:"yt-video-attribute-view-model__subtitle"},x?_.U(iZX,{text:AHq(c.subtitle),truncationText:AHq(c.subtitleTruncationText),
maxLines:2}):_.U("span",null,c.subtitle)):null;if(c.secondarySubtitle){Y=c.secondarySubtitle;if(Y!=null&&Y.attachmentRuns){for(var g=[],k=_.p(Y.attachmentRuns),n=k.next();!n.done;n=k.next())n=n.value,n.element&&g.push(Object.assign({},n,{element:Object.assign({},n.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Y=Object.assign({},Y,{attachmentRuns:g})}Y=_.U("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.U(_.RF,{text:Y}))}else Y=null;return _.U("div",B,P,x,Y,c.buttonViewModel?e4l(c.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.c8=function(B,c,x,P,Y){P=P===void 0?{}:P;if(!Y||Math.random()<5E-4){c=c||null;x=x||null;B=B instanceof Error?B:new _.mc(B);if(B.args)for(var g=_.p(B.args),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Object&&(P=Object.assign({},k,P));P.category="H5 Ads Control Flow";c&&(P.slot=c?"slot:  "+c.slotType:"");x&&(P.layout=x?"layout:  "+x.layoutType:"",P.layoutId=x.layoutId);Y&&(P.known_error_aggressively_sampled=!0);B.args=[P];_.Ob(B)}};
_.Bvx=function(B,c){_.gj(B,"yt-open-popup-action",[_.rL(c),B])};
_.xE=function(B,c){_.Bvx(B,_.fk(c))};
xSd=function(B){if(!B)return"";if(cy$[B])return cy$[B];P8||(P8=_.df("A"));P8.href!==B&&IW(P8,B);var c=P8.pathname;cy$[B]=c.startsWith("/")?c:"/"+c;return cy$[B]};
PZO=function(){var B=xSd(window.location.href);if(B==="/")return"home";if(B.startsWith("/results"))return"search";if(B.startsWith("/watch"))return"watch";if(B.startsWith("/shorts"))return"shorts";if(B.startsWith("/hashtag"))return"hashtag";if(B.startsWith("/create_channel"))return"create_channel";if(B.startsWith("/@")||B.startsWith("/user/")||B.startsWith("/channel/"))return"channel";if(B.startsWith("/experiments"))return"experiments";if(B.startsWith("/sponsor_channel"))return"sponsorship";if(B.startsWith("/select_site"))return"settings";
if(B.startsWith("/locate"))return"locate";if(B.startsWith("/redeem"))return"redeem";if(B.startsWith("/musicpremium")||B.startsWith("/premium")||B.startsWith("/red"))return"premium";if(B.startsWith("/paid_memberships"))return"paid_memberships";if(B.startsWith("/oops"))return"oops";if(B.startsWith("/clip"))return"clip";var c;return(YE==null?void 0:(c=YE.response)==null?void 0:c.page)==="404"?"404":B.startsWith("/feed/history")?"history":B.startsWith("/feed/library")?"library":B.startsWith("/feed/subscriptions")?
"subscriptions":B.startsWith("/feed/trending")?"trending":B.startsWith("/feed/news_destination")?"news":B.startsWith("/playlist")?"playlist":B.startsWith("/minor_moment")?"minor_moment":B.startsWith("/playable/")||B.match("^/playables/(?!saved).")?"mini_app":B.startsWith("/playables")?"playables":B.startsWith("/create/live/join")?"open_in_app":B.startsWith("/feed/explore")?"explore":"browse"};
_.scw=function(){var B=YE==null?void 0:YE.response,c=B==null?void 0:B.endpoint;if(!c)return(B==null?void 0:B.page)==="watch"?"watch":PZO();var x;B=(x=_.t(c==null?void 0:c.commandMetadata,_.Br))==null?void 0:x.webPageType;x=!1;if(B&&!YtC.includes(B))switch(B){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=_.t(c==null?void 0:c.commandMetadata,_.Br))==null?0:P.url)&&xSd(_.t(c.commandMetadata,_.Br).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Y;return(c=(Y=_.t(c,_.qA))==null?void 0:Y.browseId)?abq[c]||"browse":"browse";default:x=!0}if(_.t(c,_.av)||_.t(c,goO))return"sponsorship";Y=xSd(window.location.href);if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/create_channel"))return"create_channel";
if(_.t(c,_.yp)&&Y.startsWith("/shorts"))return"shorts";if(_.t(c,_.yp)&&Y.startsWith("/watch"))return"watch";x&&(c=new _.mc("Unsupported mWeb page type",{pathname:Y,webPageType:B}),_.lb(c));return"browse"};
sr=function(B,c,x,P){return B&&c?B!==x||c!==P?(_.c8(Error("Hh"),void 0,void 0,{"stored-slot":B,"stored-layout":c,"latest-slot":x,"latest-layout":P}),!1):!0:!1};
pkO=function(B,c,x){return B({targetId:c},function(P){return x.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},P,{header:x.continuationItems?x.continuationItems[0]:void 0}):Object.assign({},P,{contents:x.continuationItems?x.continuationItems:[]})})};
ktd=function(B,c,x,P){if(c=c.trackingParams){var Y,g=(Y=x.getScreenLayer)==null?void 0:Y.call(x);x=_.Wf(g);Y=_.Jg(g);if(x&&Y){var k=_.VF(c);_.T("combine_ve_grafts")?B.graftServerVe(c,Y,g):_.Gq(x,Y,k);P==null||P(k)}}};
$S7=function(B){var c;return((c=Xk7.get(B))==null?void 0:c.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
KO$=function(B,c){var x={type:c.slotType,controlFlowManagerLayer:noC.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(x.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(x.slotPhysicalPosition=c.slotPhysicalPosition);if(B){x.debugData={slotId:c.slotId};if(B=c.slotEntryTrigger)x.debugData.slotEntryTriggerData=bhA(B);B=c.slotFulfillmentTriggers;x.debugData.fulfillmentTriggerData=[];B=_.p(B);for(var P=B.next();!P.done;P=B.next())x.debugData.fulfillmentTriggerData.push(bhA(P.value));
c=c.slotExpirationTriggers;x.debugData.expirationTriggerData=[];c=_.p(c);for(B=c.next();!B.done;B=c.next())x.debugData.expirationTriggerData.push(bhA(B.value))}return x};
bhA=function(B,c){var x={type:B.triggerType};c!=null&&(x.category=c);B.triggeringSlotId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedSlotId=B.triggeringSlotId);B.triggeringLayoutId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedLayoutId=B.triggeringLayoutId);return x};
jco=function(B,c,x,P){c={opportunityType:c};B&&(P||x)&&(P=_.I3(P||[],function(Y){return KO$(B,Y)}),c.debugData=Object.assign({},x&&x.length>0?{associatedSlotId:x}:{},P.length>0?{slots:P}:{}));
return c};
USO=function(B){return p2(B.opportunityAdapterMap).concat(p2(B.triggerAdapterMap)).concat(p2(B.fulfillmentAdapterFactoryMap)).concat(p2(B.slotAdapterFactoryMap)).concat(p2(B.layoutRenderingAdapterFactoryMap))};
p2=function(B){var c=[];B=_.p(B.values());for(var x=B.next();!x.done;x=B.next())x=x.value,x.isAdsControlFlowEventListener&&c.push(x);return c};
bj=function(B){var c=B.slotId,x=B.slotType,P=B.slotPhysicalPosition;return c===void 0?new kE("Cannot construct a slot due to the missing id.",{adSlotMetadata:B}):x===void 0?new kE("Cannot construct a slot due to the missing type.",{adSlotMetadata:B}):P===void 0?new kE("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:B}):{slotId:c,slotType:x,slotPhysicalPosition:P,managerLayer:"external",adSlotLoggingData:B.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new dSx}};
qt7=function(B){var c=B.layoutId,x=B.layoutType;return c===void 0?new K2("Cannot construct a layout due to the missing id.",{adLayoutMetadata:B}):x===void 0?new K2("Cannot construct a layout due to the missing type.",{adLayoutMetadata:B}):{layoutId:c,layoutType:x,managerLayer:"external",adLayoutLoggingData:B.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new dSx,interactionLoggingAdsClientData:{}}};
CZO=function(B){if((B=B.value)&&B.querySelector("img")){var c=B.querySelector("img");c.addEventListener("error",function(){xWY(c.src).then(function(x){(x=_.Vc(x).toString())?c.src=x:c.removeAttribute("src")}).catch(function(){c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Ur=function(B,c){if(c&&(hCX(c.viewableCommand)||hCX(c.endOfSessionCommand))){B=B.value;var x=mSY(c==null?void 0:c.viewableCommand);c=mSY(c==null?void 0:c.endOfSessionCommand);if(!jn){var P=_.Yu("custom_active_view_tos_timeout_ms");jn=P>0&&P!==36E5?new TvX(Vs7(),P):new TvX(Vs7())}tsQ(jn,B);wkx(jn,B,x,c)}};
dc=function(B){jn&&tsQ(jn,B.value)};
Vs7=function(){var B=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(B==null?void 0:B.length)===2?B[1]:null};
hCX=function(B){B=_.vH(B);return!(B==null||!B.loggingUrls)&&B.loggingUrls.length>0};
mSY=function(B){if(!B)return[];var c=[],x,P;((P=(x=_.vH(B))==null?void 0:x.loggingUrls)!=null?P:[]).forEach(function(Y){Y.baseUrl&&c.push(Y.baseUrl)});
return c};
NvA=function(B){return B.shorts.isDesktopSmallWidth};
_.Ibx=function(B){return B.shorts.isWatchWhileMode};
_.qs=function(B){return B.shorts.isFullscreen};
_.C2=function(B){return B.shorts.isShortsPipActive};
WOQ=function(B){var c,x;if(B=(c=_.t(B.reelsAdCardButtoned,JyY))==null?void 0:(x=c.animatedRenderingConfig)==null?void 0:x.easeOutSeconds)return B+"s"};
EoY=function(B,c,x){return _.X(function(P){return P.return(new Promise(function(Y){var g=new Image;g.onload=function(){Y(new lbq(B,c,x,g.naturalWidth,g.naturalHeight))};
g.src=x.toString()}))})};
OhC=function(B,c){return Math.round(B/1E-5)===Math.round(c/1E-5)};
ooX=function(B,c){return Math.round(B/1E-5)===Math.round(c/1E-5)};
Qc7=function(B,c){return B.year===c.year&&B.month===c.month&&B.day===c.day};
FOx=function(B,c){return B.year!==c.year?B.year<c.year:B.month!==c.month?B.month<c.month:B.day<c.day};
zCl=function(B){return B.day===vow(B.year,B.month)?B.month===11?{year:B.year+1,month:0,day:1}:{year:B.year,month:B.month+1,day:1}:{year:B.year,month:B.month,day:B.day+1}};
StQ=function(){var B=new Date,c={year:B.getFullYear(),month:B.getMonth(),day:B.getDate()};return{start:c,end:{year:B.getFullYear()+2,month:B.getMonth(),day:B.getDate()},selectedDate:zCl(c)}};
yyX=function(B){return(new Zj(2)).format(new Date(B.year,B.month,B.day))};
GtY=function(B){return{year:B.getFullYear(),month:B.getMonth(),day:B.getDate()}};
Ms7=function(B,c){B=(B+(Number(c.utcOffsetSec)+(new Date(B*1E3)).getTimezoneOffset()*60))*1E3;c=GtY(new Date(B));return{date:c,secondsSinceMidnight:Math.floor((B-(new Date(c.year,c.month,c.day)).getTime())/1E3)}};
LOd=function(B,c){c=c.months.findIndex(function(x){return x.year===B.year&&x.month===B.month});
return c>=0?c:void 0};
Zhx=function(B){if(!B)return!1;try{if(B.host&&B.host.tagName==="YT-FORMATTED-STRING"&&B.host.id==="contenteditable-textarea"||B.nodeType===Node.ELEMENT_NODE&&B.tagName==="YTD-COMMENTBOX")return!0}catch(c){return!1}return Zhx(B.parentNode)};
ha=function(B){return B?!(B.tagName!=="A"||!B.href||!B.classList.contains("yt-simple-endpoint")):!1};
Hhl=function(B){return B?B.tagName==="IMG"&&B.classList.contains("emoji"):!1};
fbl=function(B,c,x){if(!B)return null;var P=ha(B);if(P&&x)return c=B.pathname.substring(B.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(P&&!x)return document.createTextNode("");if(Hhl(B))return x=B.alt,B=B.dataset.emojiId,!B&&c&&(c=_.mT(c,x))&&c.isCustomEmoji&&(B=c.emojiId),B?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+B+">"):document.createTextNode(x);P=B.cloneNode(!1);for(var Y=0;Y<B.childNodes.length;++Y){var g=fbl(B.childNodes[Y],c,x);g&&P.appendChild(g)}return P};
T2=function(B){return B?ha(B)?B:T2(B.lastChild):null};
ih7=function(B){return B?ha(B)?B:ih7(B.firstChild):null};
Ay$=function(B){if(!B)return null;for(var c=B.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=T2(c))?B=c:B=(B=B.parentNode)?T2(B.previousElementSibling):null;return B};
uYX=function(B){if(!B)return null;for(var c=B.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=ih7(c))?c:uYX(B.parentNode)};
DSY=function(B){var c=_.V0(),x=c.JSC$9307_getStartNode();if(!Zhx(x.parentNode))return null;c=c.JSC$9307_getStartOffset();if(x.nodeType===Node.TEXT_NODE){var P=_.QE(x,ha);if(P){if(B&&c===0||!B&&c===x.length)return P}else{if(B&&c===x.length)return!x||x.nodeName==="BR"||x.nextElementSibling&&_.ta(x.nextElementSibling,"display")==="block"?null:ih7(x.nextElementSibling);if(!B&&c===0)return x?T2(x.previousElementSibling):null}}if(x.nodeType===Node.ELEMENT_NODE)if(B){if(0<=c&&c<x.childNodes.length)return ih7(x.childNodes[c])}else if(0<
c&&c<=x.childNodes.length)return T2(x.childNodes[c-1]);return null};
ry7=function(B,c,x){if(!B)return null;if(B.nodeType===Node.TEXT_NODE)if(x){var P=Ay$(B);if(P&&!/^\s+\S/.test(B.wholeText.substr(0,c)))return P}else if((P=uYX(B))&&!/\S\s+/.test(B.wholeText.substr(c,B.wholeText.length)))return P;return B.nodeType===Node.ELEMENT_NODE?x?Ay$(B.childNodes[c]):uYX(B.childNodes[c]):ry7(B.parentNode,c,x)};
RCd=function(B){if(B.hasChildNodes())switch(B.tagName){case "DIV":case "A":case "SPAN":var c="";for(B=B.firstChild;B;B=B.nextSibling)c+=RCd(B);return c;default:return""}else switch(B.nodeType){case 3:return B.textContent;default:return""}};
wc=function(B,c){return B.year===c.year&&B.month===c.month&&B.day===c.day};
Ns=function(B,c){return B.year!==c.year?B.year<c.year:B.month!==c.month?B.month<c.month:B.day<c.day};
eCd=function(B){return{year:B.getFullYear(),month:B.getMonth(),day:B.getDate()}};
BIw=function(B){var c=o5l;c=c===void 0?o5l:c;c(new Date(B.year,B.month,B.day))};
Iv=function(B){return eCd(new Date(Number(B.seconds)*1E3))};
cQO=function(B){return B.year!==void 0&&B.month!==void 0&&B.day!==void 0};
xtQ=function(B){return B.start!==void 0&&B.end!==void 0};
PwX=function(B){return xtQ(B)?B.start:B};
YW7=function(B){return xtQ(B)?B.end:void 0};
gKx=function(B,c){for(var x=[],P=new Date(B.start.year,B.start.month);P.getFullYear()<B.end.year||P.getFullYear()===B.end.year&&P.getMonth()<=B.end.month;){var Y=x,g=Y.push,k=P.getFullYear(),n=P.getMonth(),b=B,d=c,q=void 0,C=[],h=Object.freeze({extraCssClass:"invisible"}),V=new Date(k,n),N=eCd(V);V=V.getDay();for(var l=eCd(new Date);N.month===n;){V!==aod&&q||(q=Array.from({length:7}).fill(h),C.push(q));var E={date:{year:k,month:n,day:N.day},extraCssClass:"",debugClass:""};E.extraCssClass=d(E.date,
N,l,b).trim();q[(V-aod+7)%7]=E;N=N.day===vow(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1};V=(V+1)%7}g.call(Y,{weeks:C,monthLabel:Ja.SHORTMONTHS[n]+" "+k,year:k,month:n,monthLabelExtraCssClass:C[0][2]===h?"shift-down-label":""});P.setMonth(P.getMonth()+1)}return x};
sao=function(B,c){c=c.months.findIndex(function(x){return x.year===B.year&&x.month===B.month});
return c>=0?c:void 0};
k0w=function(B,c){a:{var x=x===void 0?[2,3]:x;x=_.p(x);for(var P=x.next();!P.done;P=x.next()){var Y=new Date;if((new p1Y(P.value)).parse(c,Y,{validate:!0})){Y.setHours(0,0,0,0);c=Y;break a}}c=null}if(!c)return{isValid:!1,value:void 0};c=eCd(c);x=B.end;return Ns(c,B.start)||Ns(x,c)?{isValid:!1,value:void 0}:{isValid:!0,value:c}};
KMl=function(B){var c=X1Y;c=c===void 0?$tQ:c;var x=B.columnsToShow||[],P=nKY(B.columnDimensions,B.columnsToShow,B.leftFloatingColumns,c);return x.map(function(Y,g){var k=B.columns[Y];if(k===void 0)throw Error("Nh");var n=P?P[g]:"";var b=B.getCustomTooltip?B.getCustomTooltip(Y,k.headerTooltipParagraphs):k.headerTooltipParagraphs;var d=b5x(B,Y);return{type:Y,index:g,style:n,classes:d,headerName:k.headerName||"",headerIcon:k.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:k.headerTooltipHelpContext,
sortOrders:k.sortOrders||[],selectionState:k.isSelectionCheckbox?B.selectionState:void 0}})};
b5x=function(B,c){var x=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],P=B.columns[c];if(P===void 0)return"";var Y=x.includes("DEFAULTS")&&P.cssClass?[P.cssClass]:[];if(x.includes("SORTING")){P.sortOrders&&P.sortOrders.length&&Y.push("sortable");if(B.sorting&&B.sorting.columnType===c)a:switch(B.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&Y.push(g)}x.includes("FLOATING")&&(c=B.columnsToShow.indexOf(c),B.leftFloatingColumns&&c<B.leftFloatingColumns&&
Y.push("floating-column"),B.leftFloatingColumns&&c===B.leftFloatingColumns-1&&Y.push("last-floating-column"));x.includes("RIGHT_ALIGN")&&P.rightAlignHeader&&Y.push("right-align");return Y.filter(function(k){return k}).join(" ")};
nKY=function(B,c,x,P){x=x===void 0?0:x;P=P===void 0?$tQ:P;if(B){var Y=[],g=0;jaA(B,c,P).forEach(function(k,n){var b="min-width:"+k.minWidth+"px;padding-left:"+k.paddingLeft+"px;padding-right:"+k.paddingRight+"px;flex:"+k.flexGrow+" 0 "+k.minWidth+"px;";k.maxWidth!==Infinity&&(b=[b,"max-width:"+k.maxWidth+"px;"].join(""));g>0&&n<x&&(b=[b,"left:"+g+"px;"].join(""));Y.push(b);g+=k.minWidth+k.paddingLeft+k.paddingRight});
return Y}};
jaA=function(B,c,x){x=x===void 0?$tQ:x;return c.map(function(P,Y){P=B&&B[P]||{};var g=Y===0?x.paddingLeftFirstColumn:x.padding;P.paddingLeft!==void 0&&(g=P.paddingLeft);Y=Y===c.length-1?x.paddingRightLastColumn:x.padding;P.paddingRight!==void 0&&(Y=P.paddingRight);return{paddingLeft:g,paddingRight:Y,minWidth:P.minWidth!==void 0?P.minWidth:x.minWidth,maxWidth:P.maxWidth!==void 0?P.maxWidth:x.maxWidth,flexGrow:P.flexGrow!==void 0?P.flexGrow:x.flexGrow}})};
UtQ=function(B){var c=B.reduce(function(P,Y){var g=Y.columnId,k={};Y.headerText&&(k.headerName=_.iG(Y.headerText));Y.rightAlignHeader&&(k.rightAlignHeader=Y.rightAlignHeader);var n;if((n=Y.headerIcon)==null?0:n.iconType)k.headerIcon=_.$0(Y.headerIcon.iconType);P[g]=k;return P},{}),x=B.filter(function(P){return!P.hideColumn}).map(function(P){return P.columnId});
B=B.filter(function(P){return!!P.dimensions}).reduce(function(P,Y){P[Y.columnId]=Y.dimensions;
return P},{});
return{columns:c,columnsToShow:x,columnDimensions:B}};
_.dtA=function(B){return B?B.simpleText?B.simpleText:B.runs?B.runs.map(function(c){return c.text}).join(""):"":""};
TIO=function(B){var c=B.data;var x=B.onTap;var P=B.isSelected;var Y=B.onFocusIn;if(!c)return{};B=qWd(c);P===void 0&&(P=c==null?void 0:c.isSelected);var g;return{text:Cwd(c,B),startIcon:(g=c.icon)==null?void 0:g.iconType,state:P?0:2,type:0,onTap:hjx(c,x),accessibilityLabel:mtX(c,B),onFocusIn:function(){return Y==null?void 0:Y()}}};
Cwd=function(B,c){if(!c)return B.text?_.dtA(B.text):void 0};
hjx=function(B,c){return function(x){c==null||c(x,B)}};
qWd=function(B){B=B.style&&B.style.styleType;return!GhY&&B==="STYLE_EXPLORE_LAUNCHER_CHIP"};
mtX=function(B,c){if(c){var x,P,Y;return(Y=(x=B.accessibilityData)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?Y:Cwd(B,!1)}};
W8=function(B){return{signalAction:{signal:B}}};
w1q=function(){return _.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Vyd:_.tyI};
NIw=function(B,c){B=B===void 0?"SOFT_RELOAD_PAGE":B;c=c===void 0?49504:c;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.c3(_.Up("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:c}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:B}}]}}}};
Io7=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.c3(_.Up("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:w1q()}};
JQA=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:w1q()}};
WM$=function(B,c){var x=_.c3(_.Up("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),P=_.c3(_.Up("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Y={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.c3(_.Up("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Y.serviceEndpoint=B?B:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[W8("SOFT_RELOAD_PAGE")]}};return{title:x,bodyText:P,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Y},
style:{value:c!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
EK7=function(B){B=B===void 0?{}:B;return{title:_.c3(B.localizedZeroStateTitleText===void 0?"":B.localizedZeroStateTitleText),bodyText:_.c3(B.localizedZeroStateMessage===void 0?"":B.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.c3(B.localizedZeroStateButtonText===void 0?"":B.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[low]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.QaX=function(B,c,x,P,Y,g,k,n){P=P===void 0?!1:P;Y=Y===void 0?!1:Y;g=g===void 0?0:g;k=k===void 0?-Infinity:k;n=n===void 0?!1:n;var b=[],d=_.c3(_.Up("SMART_DOWNLOADS",void 0,"Smart downloads"));k=_.c3(O5x(g,k,B.length));g=void 0;P?B.length>0?g=oKY(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.T("kevlar_manual_downloads_above"),d,k):n?g={alertBannerViewModel:{heading:{content:x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText},body:{content:x.localizedPromptMessage===
void 0?"":x.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Up("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Up("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:_.r4I}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:Y&&(g={backgroundPromoRenderer:{bodyText:_.c3(_.Up("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"}}}):Y&&(g={alertBannerViewModel:{heading:{content:x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText},
body:{content:x.localizedOptInMessage===void 0?"":x.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Up("TURN_ON",void 0,"Turn on"),accessibilityText:_.Up("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}}}}}});x=_.c3(_.Up("YOUR_DOWNLOADS",void 0,"Your downloads"));Y=void 0;c.length>0?(Y=void 0,_.T("kevlar_display_downloads_numbers")&&(Y=_.c3(_.dj("VIDEO_COUNT",c.length))),Y=oKY(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,x,Y)):P||B.length||(Y={backgroundPromoRenderer:{bodyText:_.c3(_.Up("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}}}});g&&!_.T("kevlar_manual_downloads_above")&&b.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});Y&&b.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:51721}}}});g&&_.T("kevlar_manual_downloads_above")&&b.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(c.length>0||P&&B.length>0)&&b.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.c3(_.Up("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:b}};
_.vK7=function(B){return FMl(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.zjA=function(B){return FMl(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
FMl=function(B,c){var x=[];B=oKY(B,c,!0);x.push({richSectionRenderer:{content:B}});return{contents:x}};
oKY=function(B,c,x,P,Y){x=x===void 0?!1:x;var g="RESPONSIVE_SIZE_STANDARD";_.T("kevlar_modern_downloads_compact")?g="RESPONSIVE_SIZE_COMPACT":_.T("kevlar_modern_downloads_extra_compact")&&(g="RESPONSIVE_SIZE_EXTRA_COMPACT");B={isExpanded:x,contents:lj(B),entitySelectorType:c,responsiveContainerConfiguration:{responsiveSize:g}};P&&(B.title=P);Y&&(B.subtitle=Y);x||(_.T("kevlar_smart_downloads_show_more_button")?(B.showMoreButton={buttonRenderer:{accessibility:{label:_.Up("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.c3(_.Up("SHOW_MORE",void 0,"Show more"))}},B.showLessButton={buttonRenderer:{accessibility:{label:_.Up("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.c3(_.Up("SHOW_LESS",void 0,"Show less"))}}):(B.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Up("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}}}},B.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Up("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}}}},B.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Up("VIEW_ALL",void 0,"View all"),accessibilityText:_.Up("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:ec("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:B}};
lj=function(B){var c=[];B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,oYQ(x)){var P=c,Y=P.push;var g=void 0;if(x==null?0:(g=x.videoEntity)==null?0:g.videoId){g=z$(_.uG().getState(),x.videoEntity.videoId);var k=_.uG().getState();var n=_.kN(x.videoEntity.videoId,"mainVideoEntity");k=!!_.tm(k.entities)[n];k={videoId:x.videoEntity.videoId,title:xN(x.videoEntity.title),shortBylineText:xN(x.channelEntity.title),thumbnail:x.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:k&&_.T("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:obX(x.videoEntity.videoId,g,x.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Up("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};x.videoEntity.lengthSeconds&&(k.thumbnailOverlays=ee7(x.videoEntity.lengthSeconds,g));k.isWatched=g>0;_.T("kevlar_modern_downloads_page")&&(k.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:x.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Up("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},k.badges=void 0);x=k}else x={};Y.call(P,{richItemRenderer:{content:{videoRenderer:x},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(OdA(x)){P=c;Y=P.push;var b=n=g=void 0,d=void 0,q=void 0,C=void 0,h=void 0,V=void 0,N=void 0,l=void 0,E=void 0,S=void 0;k=x.mainPlaylistEntity.playlistId;var M=x==null?void 0:(S=x.mainPlaylistEntity)==null?void 0:(E=S.thumbnailStyleData)==null?void 0:(l=E[0])==null?void 0:(N=l.value)==null?void 0:(V=N.collageThumbnail)==
null?void 0:V.coverThumbnail;if(k&&M){V=QXq(k);!_.T("enable_offline_playlist_page")&&(x==null?0:(h=x.mainPlaylistEntity)==null?0:h.videos)&&(h=x==null?void 0:(C=x.mainPlaylistEntity)==null?void 0:(q=C.videos)==null?void 0:q[0],q=_.gL(h).entityId,q=JSON.parse(q).videoId,q!==void 0&&(C=z$(_.uG().getState(),q),V=_.B3(q,k,void 0,void 0,C)));q=[];if(x==null?0:(d=x.mainPlaylistEntity)==null?0:(b=d.videos)==null?0:b.length)q=[OVX(),Object.assign({},(n=E5d(x==null?void 0:x.mainPlaylistEntity.videos.length))!=
null?n:{})];x={playlistId:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:M}},navigationEndpoint:V,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:q,title:xN(x.mainPlaylistEntity.title),shortBylineText:xN(x==null?void 0:(g=x.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.Up("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.T("kevlar_modern_downloads_page")&&(x.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:SWO,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:k,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Up("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},x.badges=void 0)}else x=void 0;Y.call(P,{richItemRenderer:{content:{playlistRenderer:x},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return c};
O5x=function(B,c,x){B=B?yQA(B):"";c!==void 0&&isFinite(c)?c===0?c=_.Up("UPDATING",void 0,"Updating..."):(c=ReO(new Date(c),new Date),c=_.Up("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var P="";B&&c&&(P=" \u2022 ");if(x&&_.T("kevlar_display_downloads_numbers")){x=_.dj("VIDEO_COUNT",x);if(B||c)P=" \u2022 ";return x+P+B+P+c}return B+P+c};
G0w=function(B){return tgO(B.entities).length};
_.MyX=function(B,c){var x=Yeo(B.responsiveSize),P;B=!((P=B.responsiveMap)==null||!P.some(function(Y){return Y.containerSize==="CONTAINER_SIZE_NARROW"&&Y.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:c,sizing:x,enableFullBleedForSingleCol:!1,isCompactList:x==="COMPACT"&&B}};
LMl=function(B,c){return _.X9(B.entities,"votingEntity",c)};
Z57=function(B){if(B){var c;return((c=_.cp().resolve(_.Bp(_.fL)))==null?0:c())?B.darkTheme:B.lightTheme}};
H5X=function(B,c){if(B.simpleText)return Object.assign({},B,{simpleText:LL(B.simpleText,c)});if(!B.runs)return B;for(var x=Object.assign({},B,{runs:[]}),P=0,Y=_.p(B.runs),g=Y.next();!g.done;g=Y.next())if(g=g.value,g.text)if(P+g.text.length<=c)x.runs.push(g),P+=g.text.length;else return x.runs.push(Object.assign({},g,{text:LL(g.text,c-P)})),x;return B};
foo=function(B,c){return _.X9(B.entities,"chipBarStateEntity",c)};
i5O=function(B,c){return _.X9(B.entities,"chipEntity",c)};
uEl=function(B,c,x,P){return function(){var Y=AQo.has(B.displayType)&&B.selected,g=Y&&B.deselectCommand?B.deselectCommand:B.tapCommand;!g||Y&&P||_.Gl(g,{form:{element:c==null?void 0:c.value}});x==null||x()}};
Dt7=function(B){switch(B){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
rQd=function(B,c){return{triggeringElement:B,onDwellTriggeredFn:function(){var x={triggeringElement:B,loadVideoPreviewEventData:c},P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:x}))},
onDwellEndFn:function(){var x=document.querySelector(".video-preview");x&&x.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Rjd=function(B,c){var x=_.cp().resolve(_.Bp(ZvO)),P=function(){var Y=c();return x&&Y?rQd(B.value,Y):null};
_.IO(function(){var Y=P();x&&Y&&Promise.resolve().then(function(){x.registerElement(Y)});
_.lP(function(){x&&Y&&Promise.resolve().then(function(){HvA(x,Y)})})},"csPUge")};
BN7=function(B){var c=B.dataset.resizeObserverId;if(c)return c;c=""+ejl++;return B.dataset.resizeObserverId=c};
ckw=function(B,c){var x=BN7(B);Er.has(x)||Er.set(x,new Set);Er.get(x).add(c);Or.has(x)&&c(Object.assign({},{target:B},Or.get(x)))};
xuY=function(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=BN7(c.target),P=Object.assign({},{target:c.target},Or.get(x));if(P!=null&&P.contentRect?P.contentRect.width!==c.contentRect.width||P.contentRect.height!==c.contentRect.height:1)for(Or.set(x,{borderBoxSize:c.borderBoxSize,contentBoxSize:c.contentBoxSize,contentRect:c.contentRect,devicePixelContentBoxSize:c.devicePixelContentBoxSize}),x=_.p(Er.get(x)||[]),P=x.next();!P.done;P=x.next())P=P.value,P(c)}};
Y8I=function(){return ov?ov:ov=new PsQ(xuY)};
aJl=function(B,c){var x=BN7(B);Er.has(x)&&(Er.get(x).delete(c),Er.get(x).size===0&&(Er.delete(x),Or.delete(x),ov.unobserve(B),delete B.dataset.resizeObserverId));Er.size===0&&ov&&(ov.disconnect(),ov=void 0)};
sKo=function(B,c){var x=_.cp().resolve(RG);return gh$.map(function(P){return x.observe(B,c,P)})};
pg7=function(B){var c=_.cp().resolve(RG);B.forEach(function(x){c.unobserveByKey(x)})};
_.$uO=function(B,c){var x=Object.assign({},ksY,c);c=_.p(NrO());var P=c.next().value,Y=c.next().value,g=function(k){var n=k.contentRect.height;if((k=k.contentRect.width)||n||x.canHaveZeroSize)P.width()===k&&P.height()===n||Y(P,{height:n,width:k})};
_.lk(function(){var k=B instanceof HTMLElement?B:B.value,n=XgO(g,x.throttleMs),b=[];x.useVisibilityObserver&&(b=sKo(k,function(d,q){requestAnimationFrame(function(){q==="visible"?(ckw(k,n),Y8I().observe(k)):aJl(k,n)})}));
b.length||(ckw(k,n),Y8I().observe(k));_.lP(function(){b.length&&(pg7(b),b.length=0);aJl(k,n)})});
return P};
beC=function(B){var c=B.data;var x=B.callback;var P=B.enableSingleChipSelection;var Y=B.disableChipsScrollAnimation;var g=_.fE("div"),k=Os(!1),n=Os(0);B={};B=_.p(K3(c.autoselectedChipIndex!=null?(B[c.autoselectedChipIndex]=!0,B):{}));var b=B.next().value,d=B.next().value,q=function(){var kI=g.value;return kI==null||kI.scrollLeft-1<=0},C=function(){var kI=g.value;
return kI==null?!1:kI.scrollLeft+1>=(kI==null?NaN:kI.scrollWidth)-(kI==null?NaN:kI.clientWidth)};
B=_.p(K3(q()));var h=B.next().value,V=B.next().value;B=_.p(K3(C()));var N=B.next().value,l=B.next().value;B=c.isHorizontallyScrollable;var E=function(kI){g.value!=null&&(_.v5("HTML_DIR")==="rtl"&&(kI=-kI),g.value.scrollBy({left:kI,behavior:Y?"instant":"smooth"}))},S=function(){E(-320)},M=function(){E(320)},f=_.qe(function(kI){k.value=!0;
n.value=kI.clientX}),Z=_.qe(function(kI){if(k.value){kI=kI.clientX;
var Ul=kI-n.value;n.value=kI;var wC;(wC=g.value)==null||wC.scrollBy({left:-Ul})}}),u=_.qe(function(){var kI=q(),Ul=C();
kI!==h&&V(kI);Ul!==N&&l(Ul)});
rU("pointerup",function(){k.value&&(k.value=!1)});
var e={},px={};return _.U("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},rf(c.title,function(){return _.U("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.U("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},c.title),nhd(c.overflowButton))}),_.U("div",{class:"ytChipsShelfViewModelChipsShelfContent"},rf(c.previousButton!=null,function(){var kI={};
return _.U("div",{class:_.U9("ytChipsShelfViewModelLeftArrowContainer",(kI.ytChipsShelfViewModelLeftArrowContainerIsHidden=h,kI))},nhd(c.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:S}}))}),_.U("div",{el:g,
"on:pointerdown":f,"on:pointermove":Z,"on:scroll":u,class:_.U9("ytChipsShelfViewModelChipsScrollContainer",(e.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!B,e))},_.U("div",{class:_.U9("ytChipsShelfViewModelChipsContainer",(px.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!B,px.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!B&&!1,px))},(c.contents||[]).map(function(kI,Ul){return _.U("div",{class:"ytChipsShelfViewModelChipWrapper"},nhd(kI,
{chipViewModel:{callback:function(wC,W$){if(P){var El={};d((El[Ul]=W$,El))}else El={},d(Object.assign({},b,(El[Ul]=W$,El)));x==null||x(wC,W$,Ul)},
disableDeselection:P,selected:!!b[Ul]}}))}))),rf(c.nextButton!=null,function(){var kI={};
return _.U("div",{class:_.U9("ytChipsShelfViewModelRightArrowContainer",(kI.ytChipsShelfViewModelRightArrowContainerIsHidden=N,kI))},nhd(c.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:M}}))})))};
jKA=function(B,c,x,P,Y){B=c?B.switchOffCommand:B.switchOnCommand;if(P&&Y)KZl(B,x,Y);else{var g,k;(g=_.S_({elementsCommand:B}))==null||(k=g.onclick)==null||k.call(g,x)}};
KZl=function(B,c,x){B=_.S_({elementsCommand:B,additionalCommandArgs:{commandController:{onSuccess:function(){x(!1)},
onServerError:function(){x(!1)}}}});
if(B==null?0:B.onclick)B.onclick(c),x(!0)};
duX=function(B){if(B)return _.t(B,UuO)};
TN7=function(B,c,x){if(c)return[q87];switch(B){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Q0];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return x?[Q0]:[Cs7,Q0];case "TRANSFER_STATE_PAUSED_BY_USER":return[ho7,Q0];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[mu7,Q0];default:return[q87]}};
VHX=function(B,c,x,P){return TN7(B,c,P).map(function(Y){var g=Y.text,k=Y.iconType,n=Y.videoAction;Y=Y.playlistAction;g=g?{content:g}:void 0;k=k&&{sources:[{clientResource:{imageName:k}}]};var b=(0,_.wW.unsafeClone)(x);if(b){var d=_.t(b,_.n3),q=_.t(b,_.bR);d&&n?d.action=n:q&&Y&&(q.action=Y)}return{title:g,leadingImage:k,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
tHO=function(B){B=_.L3(B.rendererContext);var c;return(c=_.t(B,_.bR))==null?void 0:c.playlistId};
wgQ=function(B){var c;return(c=B.listItems)==null?void 0:c.some(function(x){var P;return _.Z_((P=_.t(x,_.qv))==null?void 0:P.rendererContext)})};
IJd=function(B){var c;return(c=B.listItems)==null?void 0:c.some(function(x){x=_.t(x,_.qv);return!!_.t(x==null?void 0:x.leadingAccessory,NNl)})};
lJI=function(B){var c=B.element;var x=B.veType;var P=B.storedVisualElement===void 0?null:B.storedVisualElement;var Y=B.elementIndex===void 0?0:B.elementIndex;B=B.clientYouTubeData;var g=_.Wf();g!==Jk7&&(WZQ.clear(),Jk7=g);if(c.visualElement&&WZQ.has(c.visualElement))return null;if(P&&WZQ.has(P))return c.visualElement=P,null;x=_.dX(_.q_(),{veType:x,elementIndex:Y,clientYouTubeData:B});if(!x)return null;c.visualElement=x;WZQ.add(x);return x};
_.FF=function(B,c,x,P){x=x===void 0?null:x;P=P===void 0?O7A:P;var Y=Y===void 0?null:Y;JX(function(){if(c){x instanceof Function&&(x=x());var g=lJI({element:c,veType:B,storedVisualElement:x,clientYouTubeData:void 0});g&&(FIA(c,Y),P(g))}})};
v8=function(B){var c=_.cp().resolve(_.Bp(_.fL));return c!=null&&c()?B.darkThemeColorPalette:B.lightThemeColorPalette};
Sn=function(B){return{primaryTextColor:z2(B,0),secondaryTextColor:z2(B,1),optionColor:z2(B,2),backgroundColor:z2(B,3),videoBackgroundColor:z2(B,4)}};
z2=function(B,c){if(B){switch(c){case 0:B=B.primaryTitleColor;break;case 1:B=B.secondaryTitleColor;break;case 2:B=B.surgeColor;break;case 3:B=B.section2Color;break;case 4:B=B.section3Color;break;default:return}if(B)return _.zF(B)}};
EhQ=function(B){return B?_.SF(B):""};
OeY=function(B){return(B==null?void 0:B.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
oh7=function(B,c){var x;return"linear-gradient(to bottom, "+((x=c==null?void 0:c.map(function(P){var Y=B?P.darkThemeColor:P.lightThemeColor;return Y?_.SF(Y)+" "+((P==null?void 0:P.startLocation)||0)*100+"%":"transparent"}))==null?void 0:x.join(", "))+")"};
QKX=function(B,c,x,P,Y){if(!((P==null?0:P.height)&&(P==null?0:P.width)))return{size:0};var g=P.width;P=P.height;if(Y)return c==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>P?{size:312/jlx}:c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(x!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||B!==1&&B!==2||c!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&c!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&c!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(c==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||P===g)switch(B){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P>g)switch(B){case 1:case 3:return{size:240*Kwl};default:return{size:360*Kwl}}switch(B){case 1:case 2:return{size:1/jlx*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.FZA=function(B){if(!("matchMedia"in window))return _.MR(Error("Oh")),function(){return!1};
var c=window.matchMedia(B);B=_.p(_.$D(c.matches,void 0,"jLJc8e"));var x=B.next().value,P=B.next().value,Y=function(g){P(g.matches)};
c.addEventListener?(c.addEventListener("change",Y),_.lP(function(){c.removeEventListener("change",Y)})):c.addListener&&(c.addListener(Y),_.lP(function(){c.removeListener(Y)}));
return x};
vh7=function(B){return B==="IMAGE_BANNER_STYLE_INSET"||B==="IMAGE_BANNER_STYLE_UNKNOWN"};
zod=function(){if(!("matchMedia"in window))return _.MR(Error("Oh")),function(){return 0};
var B=Es(function(){return window.matchMedia("(max-width: 527.9px)")}),c=Es(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),x=Es(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),P=Es(function(){return window.matchMedia("(min-width: 1024px)")}),Y=_.p(_.$D(B.matches,void 0,"og9kEc")),g=Y.next().value,k=Y.next().value;
Y=_.p(_.$D(c.matches,void 0,"ybDWCb"));var n=Y.next().value,b=Y.next().value;Y=_.p(_.$D(x.matches,void 0,"o0Gfh"));var d=Y.next().value,q=Y.next().value;Y=_.p(_.$D(P.matches,void 0,"yqUUgd"));var C=Y.next().value,h=Y.next().value,V=Es(function(){return function(S){k(S.matches)}}),N=Es(function(){return function(S){b(S.matches)}}),l=Es(function(){return function(S){q(S.matches)}}),E=Es(function(){return function(S){h(S.matches)}});
_.lk(function(){B.addEventListener?(B.addEventListener("change",V),c.addEventListener("change",N),x.addEventListener("change",l),P.addEventListener("change",E)):B.addListener&&(B.addListener(V),c.addListener(N),x.addListener(l),P.addListener(E));_.lP(function(){B.removeEventListener?(B.removeEventListener("change",V),c.removeEventListener("change",N),x.removeEventListener("change",l),P.removeEventListener("change",E)):B.removeListener&&(B.removeListener(V),c.removeListener(N),x.removeListener(l),
P.removeListener(E))})});
return function(){return g()?1:n()?2:d()?3:C()?4:0}};
S8Y=function(B){var c=0;B=_.p([B.title,B.metadata,B.actions,B.description,B.attribution]);for(var x=B.next();!x.done;x=B.next())x.value&&c++;return c};
ykC=function(B){return B===1||B===2?1:0};
MH$=function(B){var c,x=((c=_.cp().resolve(_.Bp(_.fL)))==null?0:c())&&B.data.darkThemeImage?B.data.darkThemeImage:B.data.image;c=_.U("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.U("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},x?_.U(_.D9,{data:x,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Gsd(B.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));x=_.U(_.RF,{text:B.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var P=B.data;if(P.bodyText){var Y=[];P=_.p(P.bodyText);for(var g=P.next();!g.done;g=P.next())Y.push(_.U(_.RF,{text:g.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else Y=_.U(_.at,null);return _.U("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},c,x,Y,Gsd(B.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.U(_.RF,{text:B.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.U(_.RF,{text:B.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Zel=function(B){B=(new LZ7).parse(B);return(new kd).render(B).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(c){var x=c.split(":").map(Number),P=0,Y=0;if(x.length===3)x=_.p(x),P=x.next().value,Y=x.next().value,x=x.next().value;else if(x.length===2)x=_.p(x),Y=x.next().value,x=x.next().value;else if(x.length===1)x=_.p(x).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(P*3600+Y*60+x)+'" role="button">'+c+"</span>"})};
Hed=function(B){B=_.p(B.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var c=B.next(),x={};!c.done;x={clickHandler$jscomp$4:void 0},c=B.next()){c=c.value;x.clickHandler$jscomp$4=function(Y){Y=Number(Y.target.getAttribute("data-time"));if(isNaN(Y))throw Error("Qh");var g;(g=_.kx())==null||g.seekTo(Y,!0)};
var P=function(Y){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,Y.clickHandler$jscomp$4)(g)}}(x);
c.setAttribute("tabindex","0");c.removeEventListener("click",x.clickHandler$jscomp$4);c.removeEventListener("keydown",P);c.addEventListener("click",x.clickHandler$jscomp$4);c.addEventListener("keydown",P)}};
fJd=function(){return _.U("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.U(y0,{percentWidth:100}),_.U(y0,{animationDelay:200}),_.U(y0,{animationDelay:400}),_.U(y0,{animationDelay:600}),_.U(y0,{animationDelay:800,percentWidth:60}),_.U("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.U(y0,{percentWidth:100}),_.U(y0,{animationDelay:200}),_.U(y0,{animationDelay:400}),_.U(y0,{animationDelay:600,percentWidth:50}))};
y0=function(B){return _.U("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(B.percentWidth===void 0?100:B.percentWidth)+"%"},_.U("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(B.animationDelay===void 0?0:B.animationDelay)+"ms"}))};
ieY=function(){var B=_.p(_.$D(function(){return""},void 0,"v2wS5e")),c=B.next().value;
return[function(){return c()()},
B.next().value]};
ul7=function(B){B=B===void 0?{}:B;return{title:_.c3(B.localizedOptInBannerTitleText===void 0?"":B.localizedOptInBannerTitleText),titleLength:19,subtitle:_.c3(B.localizedOptInMessage===void 0?"":B.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.c3(_.Up("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:_.c3(_.Up("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:[AkQ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
DuO=function(B,c){var x=c=c===void 0?{}:c;c=x.offlineTitleText===void 0?"":x.offlineTitleText;var P=x.offlineDescriptionText===void 0?"":x.offlineDescriptionText,Y=x.formattedSupplementalText,g=x.actionButtonText===void 0?"":x.actionButtonText,k=x.titleText===void 0?"":x.titleText;x=x.descriptionText===void 0?"":x.descriptionText;var n={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.c3(g),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};B||(k=c,x=P,n={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.c3(g),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.c3(k),subtitle:_.c3(x),supplementalText:Y,primaryButton:{buttonRenderer:n},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[AkQ]},
loggingDirectives:{clientVeSpec:{uiType:266212}}}};
rkw=function(B,c){B=B?yQA(B):"";c!==void 0&&isFinite(c)?c===0?c=_.Up("UPDATING",void 0,"Updating..."):(c=ReO(new Date(c),new Date),c=_.Up("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var x="";B&&c&&(x=" \u2022 ");return _.c3(B+x+c)};
BOC=function(B,c,x,P,Y,g){c=c===void 0?0:c;var k=Roq[c],n=k.title,b=k.iconType,d=k.topButtonRenderer,q=k.sectionClientVE;k=k.videoClientVE;var C;if(c!==1||B.length){x=[];B=_.p(B);for(P=B.next();!P.done;P=B.next()){var h=P.value;if(oYQ(h))x.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:h.videoEntity.videoId,title:xN(h.videoEntity.title),shortBylineText:xN(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Up("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}}}});else if(OdA(h)){P=x;var V=P.push;var N=void 0,l=void 0,E=void 0,S=void 0,M=void 0,f=void 0,Z=void 0,u=void 0,e=h.mainPlaylistEntity.playlistId,px=h==null?void 0:(u=h.mainPlaylistEntity)==null?void 0:(Z=u.thumbnailStyleData)==null?void 0:(f=Z[0])==null?void 0:(M=f.value)==null?void 0:(S=M.collageThumbnail)==null?void 0:S.coverThumbnail;S=QXq(e);if(!_.T("enable_offline_playlist_page")&&
(h==null?0:(E=h.mainPlaylistEntity)==null?0:E.videos)){b:{E=h==null?void 0:(l=h.mainPlaylistEntity)==null?void 0:l.videos;l=_.uG().getState().entities;if(E!=null&&E.length&&l)for(E=_.p(E),M=E.next();!M.done;M=E.next())if(M=_.gL(M.value).entityId,(M=JSON.parse(M).videoId)&&Tyl(l,M)==="TRANSFER_STATE_COMPLETE"){l=M;break b}l=""}l!==void 0&&(S=z$(_.uG().getState(),l),S=_.B3(l,e,void 0,void 0,S))}l=vbo(_.Up("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),QXq(e));h=e&&px&&l?{playlistId:e,navigationEndpoint:S,
viewPlaylistText:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:px}},title:xN(h.mainPlaylistEntity.title),shortBylineText:xN(h==null?void 0:(N=h.channelEntity)==null?void 0:N.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:eoA,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:e,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Up("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}:
void 0;V.call(P,{gridPlaylistRenderer:h})}}k={gridRenderer:{items:x}};c===1&&(C=rkw(Y,g))}else if(P){var kI=_.c3((V=x==null?void 0:x.localizedPromptMessage)!=null?V:"");k={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.c3(_.Up("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.r4I}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.c3(_.Up("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};C=rkw(Y,g)}else kI=_.c3(_.Up("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
k={};return{contents:[{shelfRenderer:{title:n,titleAnnotation:C,icon:{iconType:b},subtitle:kI,content:k,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:d}]}}}}],loggingDirectives:{clientVeSpec:{uiType:q}}}};
czX=function(B,c,x,P,Y,g,k,n,b,d,q){x=x===void 0?{}:x;P=P===void 0?{}:P;Y=Y===void 0?!1:Y;g=g===void 0?!1:g;k=k===void 0?!1:k;n=n===void 0?!1:n;b=b===void 0?!1:b;d=d===void 0?0:d;q=q===void 0?-Infinity:q;if(!(c.length||B.length||Y||n))return g?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:EK7(x)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.c3(_.Up("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 C=[];B.length&&C.push(BOC(B,0));n?C.push({contents:[{statementBannerRenderer:DuO(b,P)}]}):Y?C.push(BOC(c,1,x,k,d,q)):g&&C.push({contents:[{statementBannerRenderer:ul7(x)}]});(Y&&c.length||B.length)&&C.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.c3(_.Up("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 C.map(function(h){return{itemSectionRenderer:h}})};
G2=function(B,c){if(typeof B!=="object")return null;B=_.p(Object.entries(B));for(var x=B.next();!x.done;x=B.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;if(x===c)return x;if(P=G2(P,c))return x+"."+P}return null};
Ms=function(B){var c=B.content;return(B=B.styleRuns)&&c?{runs:B.map(function(x){var P={text:c.slice(x.startIndex,x.startIndex+x.length)};x.fontColor&&(P.textColor=x.fontColor);return P})}:{simpleText:c}};
Y7Y=function(B,c,x,P){var Y=xqo;P&&(B.quantity=P);if(!B.quantity||!B.maxQuantity)return{};P=B.minusButton;var g=B.plusButton,k,n,b,d;return{value:B.quantity,maxValue:B.maxQuantity,onChangeCallback:function(q){Y(B,q)},
minusLabel:(k=_.t(P,PqO))==null?void 0:k.label,minimumReachedLabel:(n=_.t(P,PqO))==null?void 0:n.limitReachedLabel,plusLabel:(b=_.t(g,PqO))==null?void 0:b.label,maximumReachedLabel:(d=_.t(g,PqO))==null?void 0:d.limitReachedLabel,disabled:c,onRemoveCommand:x}};
xqo=function(B,c){var x=B.quantityIncrementerEntityKey;if(x){var P={};P.quantity=c;_.iF(_.Wv("quantityIncrementerEntity",x,P));B.onChangeCommand&&_.Gl(B.onChangeCommand)}};
sQQ=function(B,c){(B=alX(B))&&(c?gAY.push({command:B,sourceData:{},commandContext:void 0}):_.cp().resolve(_.xu).resolveCommand(B))};
alX=function(B){return _.t(B,_.Fo)};
pQw=function(){var B=window.performance.timeOrigin+window.performance.now(),c=(new _.L2).setSeconds(B/1E9);return _.N2(c,2,_.tc(B%1E9),0)};
Zs=function(B,c){var x=_.t(_.t(B,_.Fo),kpY);x&&(c&&(x.serializedAdditionalMetadata=_.PN(c)),sQQ(B,!0))};
XQX=function(B){switch(B){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"}};
$qd=function(){return!!_.v5("ID_TOKEN")};
Kr7=function(B){return B instanceof Error&&B.cause instanceof nAX&&B.cause.rpcErrorCode!==void 0?!bXx.includes(B.cause.rpcErrorCode):!0};
Uqo=function(){return _.AR(jQ7,{authuser:""+(_.v5("SESSION_INDEX")||0)})};
H8=function(B,c,x,P){x=x===void 0?"MINI_APP_SDK_API_UNSPECIFIED":x;P=P===void 0?"":P;var Y=new _.mc;x={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:P,sdkApi:x};B instanceof Error&&(Y.message=B.message,Y.name=B.name,B.cause instanceof nAX&&B.cause.rpcErrorCode!==void 0&&(x.rpcErrorCode=B.cause.rpcErrorCode));var g;(g=c.onError)==null||g.call(c,{loggingError:Y,metadata:x})};
q77=function(B,c,x,P){switch(B){case "MINI_APP_SOURCE_GAMESNACKS":return new f2(c,x,P);default:return new dqx(c,x,P)}};
CqO=function(B){switch(B){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"}};
hKC=function(B){switch(B){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"}};
mqI=function(B){switch(B){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"}};
TOl=function(){return Math.floor(Math.random()*4)+1};
VDQ=function(B,c,x,P){B=_.p(Object.entries(B));for(var Y=B.next(),g={};!Y.done;g={message$jscomp$958:void 0},Y=B.next()){var k=_.p(Y.value);Y=k.next().value;k=k.next().value;g.message$jscomp$958=k;c.push(setTimeout(function(n){return function(){P(!1);x(n.message$jscomp$958.text)}}(g),g.message$jscomp$958.delayMs));
Number(Y)>0&&c.push(setTimeout(function(){P(!0)},g.message$jscomp$958.delayMs-400))}};
tDQ=function(B,c){var x=x===void 0?O7A:x;_.T("mweb_fix_monitor_visibility_after_render")?B&&JX(function(){FIA(B,c,x)}):JX(function(){FIA(B,c,x)})};
NOI=function(B){var c=B.data;var x=B.uniqueId;B=B.overrides;var P,Y=((P=c.timedAnimationData)==null?void 0:P.animationTiming)||[];return _.U("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.U(Oy,{settings:{uniqueId:x,timings:Y,experimentEnabled:Y.length>0,enabled:Y.length>0}},wQC(c.buttonRenderer,{buttonRenderer:{buttonOverrides:B}})))};
llC=function(B){Ilw||(Ilw=Jz7(new _.yI(1,void 0,void 0,WrO),0));var c=Ilw.format(Math.floor(B));c=_.SB==="be"||_.SB==="bg"||_.SB==="es"||_.SB==="et"||_.SB==="hu"||_.SB==="ka"||_.SB==="lv"||_.SB==="pl"||_.SB==="pt-PT"||_.SB==="sq"?c.replace(new RegExp("^(\\d)"+WrO.GROUP_SEP.replace(".","\\.")+"(\\d+("+WrO.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):c;return B>=1E3&&B<=9999&&c[1]==="."&&(_.SB==="sl"||_.SB==="it")?c.replace(".",""):c};
EA7=function(B,c){lA("ytd-button-renderer",{data:B,className:c?c.className:"",overrides:c==null?void 0:c.buttonOverrides},AM)};
QQo=function(B,c,x,P){if(B)return P=P||B.likeStatus,c?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="LIKE",isDisabled:!B.likesAllowed,defaultIcon:{iconType:x},defaultText:P==="LIKE"?B.likeCountWithUnlikeText:B.likeCountText,toggledText:P==="LIKE"?B.likeCountText:B.likeCountWithLikeText,defaultNavigationEndpoint:OXI(B,"LIKE"),defaultServiceEndpoint:oAx(B,"LIKE"),toggledServiceEndpoint:oAx(B,"INDIFFERENT"),defaultTooltip:_.iG(B.likeCountTooltipText),toggledTooltip:_.iG(B.likeCountTooltipText),
targetId:B.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="DISLIKE",isDisabled:!B.likesAllowed,defaultIcon:{iconType:x},defaultText:P==="DISLIKE"?B.dislikeCountWithUndislikeText:B.dislikeCountText,toggledText:P==="DISLIKE"?B.dislikeCountText:B.dislikeCountWithDislikeText,defaultNavigationEndpoint:OXI(B,"DISLIKE"),defaultServiceEndpoint:oAx(B,"DISLIKE"),toggledServiceEndpoint:oAx(B,"INDIFFERENT"),defaultTooltip:_.iG(B.dislikeCountTooltipText),
toggledTooltip:_.iG(B.dislikeCountTooltipText)}};
OXI=function(B,c){if(c==="LIKE")return B.likeCommand;if(c==="DISLIKE")return B.dislikeNavigationEndpoint};
oAx=function(B,c){var x;return(x=B.serviceEndpoints)==null?void 0:x.find(function(P){var Y;return((Y=_.t(P,_.ij))==null?void 0:Y.status)===c})};
_.zK7=function(B,c,x){return window.spf&&!_.T("web_disable_spfjs_client")?FrQ(B,c,x):vAw(B,c)};
FrQ=function(B,c,x){var P=null,Y=(new _.bb(function(g,k){var n={};if(c){n.method=c.method;var b=c.postParams||{};zho(B,c)&&(b[_.v5("XSRF_FIELD_NAME")]=_.v5("XSRF_TOKEN"));n.postData=_.bp(b);c.type&&(n.type=c.type);b=c.headers}n.headers=EW$(B,b);_.T("debug_forward_web_query_parameters")&&(B=_.FeX(B,window.location.search));n.experimental_headers=n.headers;n.onError=function(d){d.err&&d.xhr&&(d.err.params={url:d.xhr.responseURL,response:d.xhr.responseText.substr(0,64)});k(d.err)};
n.onPartDone=function(d){x&&x.call(null,d.part)};
n.onDone=function(d){var q=S7w(d.response,"xsrf_token");rD(window.location.href,B)&&q&&_.FP("XSRF_TOKEN",q);if(q=S7w(d.response,"service_worker_killswitch"))_.FP("SERVICE_WORKER_KILLSWITCH",q),nGq();g(d.response)};
P=spf.request(B,n)})).then(yz7);
Y.thenCatch(function(g){var k=g instanceof _.Aa,n=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(n?k?TXQ(g):n===')]}\'\n{"reload":"now"}'?TXQ(g):(Gp7(g,B,n),MDw(g,n)?_.Ob(g):_.lb(g)):TXQ(g));P&&P.abort()});
return Y};
yz7=function(B){if(B.type==="multipart"){var c=B.timing;B=B.parts.reduce(function(x,P){Object.assign(x,P);return x},{});
B.timing=B.timing||{};Object.assign(B.timing,c);B.type="reduced"}return B};
vAw=function(B,c){c=c===void 0?{}:c;var x=null,P=new _.bb(function(Y,g){c.onFinish=function(k){if(k.readyState===XMLHttpRequest.DONE)if(k.status===200){if(k.responseType!=="json"){var n=k.response;n.substring(0,5)===")]}'\n"&&(n=n.substring(5));try{var b=JSON.parse(n)}catch(d){b=d}}else b=k.response;b instanceof Error?g(b):(n=S7w(b,"xsrf_token"),rD(window.location.href,B)&&n&&_.FP("XSRF_TOKEN",n),k=k.responseURL,window.performance&&window.performance.getEntriesByName?(n=window.performance.getEntriesByName(k).pop())?
k={responseStart:(0,_.BA)()-(n.responseEnd-n.responseStart)}:(Math.random()<.01&&(n=Error("bi"),n.params=k,_.Ob(n)),k={responseStart:-1}):k={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,k),Y(b))}else g(Error("ai`"+k.status))};
(x=_.nU(B,c))||g(Error("ai`"+x.status))});
P.thenCatch(function(Y){Y instanceof Error&&(Gp7(Y,B),MDw(Y)&&(Y.level="WARNING"))});
_.T("cancel_pending_navs")&&P.thenCatch(function(){x.abort()});
return P};
S7w=function(B,c){var x=B[c],P=B.parts;B.type==="multipart"&&P&&(x=(B=P.find(function(Y){return c in Y}))&&B[c]);
return x};
Gp7=function(B,c,x){var P=B.message||"";c={original:P,url:c};if(x)if(P=P.match(/position:?\s*(\d+)/)){P=P&&Number(P[1])?Number(P[1]):0;var Y=Math.max(P-25,0);c.position=P;c.response=x.substring(Y,P+25)}else c.response=x.substring(0,50);_.oG(B,c);try{B.message="JSON parse error"}catch(g){}};
MDw=function(B,c){B=B.message||"";B=!!(B.indexOf("<")>=0||B.indexOf("end of ")>=0||B.indexOf("Unterminated string")>=0||B.indexOf("Unexpected EOF"));if(!B&&c)for(var x=c.length,P=!1,Y=0;Y<x;Y++)if(P&&c[Y]==="\\")Y++;else if(c[Y]==='"')P=!P;else if(c[Y]==="<"&&!P){B=!0;break}return B};
LrA=function(){return document.documentElement.hasAttribute("dark")};
_.ZXO=function(B,c){if(B!=="GFEEDBACK"&&B!=="GUIDED_HELP")_.SI(Error("ci`"+B));else{var x=_.cp().resolve(_.Bp(_.rV));if(x&&(x=x.getCurrentPage())&&x.getServiceTrackingParams&&(x=x.getServiceTrackingParams()))for(var P=0,Y;Y=x[P++];)if(Y.service===B){if(B=Y.params)for(x=0;P=B[x++];)c[P.key]=P.value;break}}};
_.HXI=function(B){var c=_.e5();c&&(c=c.getPlayer())&&(c.pauseVideo(),B.playback_id=c.getVideoData().cpn,B.eid=c.getVideoData().eventId,Object.assign(B,c.getFeedbackProductData()))};
flw=function(){var B={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.v5("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(B.enableAnonymousFeedback=!0);_.v5("SESSION_INDEX")&&(B.authuser=String(_.v5("SESSION_INDEX")));_.T("enable_pageid_for_feedback")&&_.v5("DELEGATED_SESSION_ID")&&(B.pageId=String(_.v5("DELEGATED_SESSION_ID")));return B};
_.uj=function(B){_.T("enable_ypc_spinners")&&_.gj(B,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},B])};
_.Ds=function(B){_.T("enable_ypc_spinners")&&_.gj(B,"yt-close-popup-action",["yt-loading-renderer"])};
iXq=function(B){return new Promise(function(c,x){_.zl({verifyCommand:{recaptchaToken:B.recaptchaResponse}},{commandController:{onSuccess:function(P,Y){Y||x("ChallengeService did not return a response.");var g;c({challengeCompleted:(g=Y.verified)!=null?g:!1})},
onServerError:function(P,Y){x(Y)}}})})};
Azq=function(B,c,x,P){c({recaptchaResponse:P}).then(function(Y){Y.challengeCompleted?_.qD()?(x(3),_.cp().resolve(_.xu).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:B}})):x(2):x(4)},function(){x(4)})};
uwQ=function(B,c,x){_.vf("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.v5("HL"),function(){var P;(P=window.grecaptcha)==null||P.ready(function(){var Y=window.grecaptcha;Y?(x(Y.render(B,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Azq.bind(null,B,iXq,c)})),c(1)):c(4)})})};
Dq7=function(B,c){return function(){switch(c()){case 0:return B().captchaLoadingMessage;case 1:return B().challengeReason;case 3:return B().captchaSuccessfulMessage;case 2:return B().captchaCookieSetFailureMessage;case 4:return B().captchaFailedMessage;default:return B().challengeReason}}()};
_.rc=function(){if(!rzl){var B=document.querySelector("#player.skeleton");B&&(_.qH(B),rzl=!0)}};
_.eKQ=function(){return RKl=ngO()};
xoq=function(){return _.X(function(B){return BnI!==void 0?B.return():_.K(B,cSI(),0)})};
cSI=function(){return _.X(function(B){if(B.nextAddress==1)return _.K(B,K8l(),2);RKl=B.yieldResult;BnI=_.EE.addLowPriorityJob(cSI,5E3);_.Kq(B)})};
p4o=function(B){var c=c===void 0?P7l:c;var x,P,Y=(x=B.responseContext)==null?void 0:(P=x.mainAppWebResponseContext)==null?void 0:P.trackingParam;if(!Y){c.increment("MISSING");var g,k,n,b,d,q;_.Ob(new _.mc("282054944_a",{qEx:!!((g=B.responseContext)==null?0:(k=g.mainAppWebResponseContext)==null?0:k.loggedOut),aqq:((n=B.responseContext)==null?void 0:n.mainAppWebResponseContext)===void 0,rjM:B.responseContext===void 0,hqh:(b=B.playabilityStatus)==null?void 0:b.contextParams,ccQ:(((d=B.streamingData)==
null?void 0:d.formats)||[]).length>0,tZx:(((q=B.streamingData)==null?void 0:q.adaptiveFormats)||[]).length>0,os:!!B.offlineState,cotn:B.cotn}));return 2}x="";try{x=YXQ(Y)}catch(V){return c.increment("C_ERROR"),_.lb(V),2}try{var C=_.av$(x);var h=gaI(C)}catch(V){return c.increment("P_ERROR"),_.lb(V),2}h=_.ch(h,s_I,1,_.xw());Y=[];h=_.p(h);for(C=h.next();!C.done;C=h.next())P=C.value,C=P.getPath(),x=(0,_.wW.getValueByKeys)(B,C.split(".")),x=String(x===void 0||x===null?"":x),P=P.getValue()||"",g=/[+\-\/_]/g,
x.replace(g,"")!==P.replace(g,"")&&(c.increment("MISMATCH"),_.T("ab_mis_log_err")&&(x=new _.mc("282054944_p",{fNq:C,g:String(x),e:String(P)}),_.lb(x)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(C)||(C.match(/enforcementMessageViewModel/i)?Y.push(3):Y.push(2)));if(Y.length>0)return Math.max.apply(Math,_.wq(Y));c.increment("SUCCESS");return 1};
$ox=function(B){var c=new Rv;if(B.interpreterJavascript){var x=_.Kko(B.interpreterJavascript);x=yc(x).toString();var P=new kWA;_.dW(P,6,x);_.Pa(c,1,P,z5)}else B.interpreterUrl&&(x=_.OE(B.interpreterUrl),x=_.X_(x).toString(),P=new _.X4$,_.dW(P,4,x),_.Pa(c,2,P,z5));B.interpreterHash&&_.en(c,3,B.interpreterHash,z5);B.program&&_.en(c,4,B.program,z5);B.globalName&&_.en(c,5,B.globalName,z5);B.clientExperimentsStateBlob&&_.en(c,7,B.clientExperimentsStateBlob,z5);return c};
Bi=function(B){var c={};B=_.p(B.split("&"));for(var x=B.next();!x.done;x=B.next())x=x.value.split("="),x.length===2&&(c[x[0]]=x[1]);return c};
naw=function(B){return Number(B.t)||7200};
IMI=function(){if(_.T("bg_st_hr"))return"havuokmhhs-0";var B,c=((B=performance)==null?void 0:B.timeOrigin)||0;return"havuokmhhs-"+Math.floor(c)};
bzx=function(){return new Promise(function(B){var c=window.top;c.ntpevasrs!==void 0?B(new ci(c.ntpevasrs)):(c.ntpqfbel===void 0&&(c.ntpqfbel=[]),c.ntpqfbel.push(function(x){B(new ci(x))}))})};
KYX=function(B){var c=B.dji.bind(B);_.rr("yt.aba.att",c);B=B.hip.bind(B);_.rr("yt.aba.att2",B)};
UoY=function(B){switch(_.$u(B.input)){case _.Dj(j_d):var c={};return c.encryptedVideoId=B.innerTubeRequest.externalVideoId,c}return{}};
qXq=function(B){switch(_.$u(B.input)){case _.Dj(j_d):if(_.T("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Dj(xl):if(_.T("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&B.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Dj(do7):var c,x;if(_.T("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((x=_.t((c=B.config)==null?void 0:c.command,
dUC))==null?0:x.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.hJx=function(B){var c;if(B.playlistVideoRenderer&&((c=B.playlistVideoRenderer)==null?0:c.engagementBar))return C7Q(B.playlistVideoRenderer.engagementBar);if(_.t(B,Pi)){var x;if(B=(x=_.t(B,Pi))==null?void 0:x.engagementBar)return C7Q(B)}return""};
C7Q=function(B){if(!B)return"";B=_.t(B,_.mo7);if(B==null||!B.actions)return"";B=_.p(B.actions);for(B=B.next();!B.done;B=B.next()){B=_.t(B.value,_.TnY);var c=void 0;if((c=B)==null||!c.itemId)break;return B.itemId}return""};
_.Vzq=function(B){var c;if(B.playlistVideoRenderer&&((c=B.playlistVideoRenderer)==null?0:c.videoId))return B.playlistVideoRenderer.videoId;if(_.t(B,Pi)){var x,P;if(B=(x=_.t(B,Pi))==null?void 0:(P=x.playlistItemData)==null?void 0:P.videoId)return B}return""};
_.tzx=function(B){var c;if(B.playlistVideoRenderer&&((c=B.playlistVideoRenderer)==null?0:c.voteCount))return B.playlistVideoRenderer.voteCount;if(_.t(B,Pi)){var x,P;if(B=(x=_.t(B,Pi))==null?void 0:(P=x.playlistItemData)==null?void 0:P.voteCount)return B}return 0};
_.Yl=function(B,c){return _.X9(B.entities,"flowStateEntity",c)};
Nno=function(B,c,x,P){var Y=void 0;B=_.p(B[c.iconName]||[]);for(var g=B.next();!g.done;g=B.next()){g=g.value;var k=c.iconSize;var n=c.iconStyle;k=!k||k===g[2];var b=w4C[g[0]];P&&P!==g[1]||!k||n&&n!==b?n=!1:Y?(n=w4C[g[0]],n=!!c.iconStyle||n==="youtube_outline",k=Y.version<=g[1],n=(!!c.iconSize||g[2]===24)&&n&&k):n=!0;n&&(Y={name:c.iconName,style:w4C[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:x(c.iconName,g)})}return Y};
IvO=function(B,c,x,P){return B+(""+w4C[x[0]]+((P===void 0?0:P)?"_experimental":"")+"/"+c+"/v"+x[1]+"/")+(x[2]+"px.svg")};
aE=function(B){return _.T("web_bookmark_playlist_save_icon")?"bookmark":B};
JSC=function(B,c){return IvO("https://fonts.gstatic.com/s/i/",B,c)};
WYO=function(B,c){return IvO("https://fonts.gstatic.com/s/i/",B,c,!0)};
lvl=function(B,c){return IvO("https://www.gstatic.com/youtube/img/icons/web/",B,c)};
Ozo=function(B){var c=B.enabled;var x=B.itemPlaybackModel;var P=B.thumbnailElRef;var Y=B.containerElRef;var g=B.options;var k;_.IO(function(){var n=Y==null?void 0:Y.value;var b,d=(b=P())==null?void 0:b.value;b=x();var q=g();if(c&&b&&n&&d&&(q==null?0:q.thumbnail)){var C={data:b,hostElement:n},h,V,N=_.T("web_explore_hub_on_hover")||_.T("web_client_explore_hub_on_hover")?[].concat(_.wq((h=q.thumbnailOverlays)!=null?h:[]),_.wq((V=b.overlays)!=null?V:[])):q.thumbnailOverlays||[],l,E;n={mediaRenderer:C,
lockupElement:n,thumbnailElement:d,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.vH((l=b.inlinePlayerData)==null?void 0:l.onVisible),navigationEndpoint:_.vH((E=b.inlinePlayerData)==null?void 0:E.onSelect),thumbnail:q.thumbnail,thumbnailOverlays:N,accessibilityText:q.accessibilityText||""},thumbnailSize:q.thumbnailSize,enableRounding:q.enableRounding}}}else n=void 0;if(l=n){var S;(S=k)==null||g2(S);k=Ab(l);var M,f;((M=x())==null?0:(f=M.inlinePlayerData)==null?0:f.forceImpAutoplay)&&
Eax(k)}},"B33dEc");
_.lP(function(){var n;(n=k)==null||g2(n)})};
oax=function(B){B=atob(B);for(var c=[],x=0;x<B.length;x++)c.push(B.charCodeAt(x));return new Blob([new Uint8Array(c)],{type:"image/png"})};
FY7=function(B,c,x,P){P=P===void 0?"INSERTION_POSITION_UNSPECIFIED":P;return B({targetId:c},function(Y){var g,k=(g=Y.contents)!=null?g:[];g=x!=null?x:[];var n=Q_A(k);switch(P){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Y,{contents:[].concat(_.wq(k.slice(0,n)),_.wq(g),_.wq(k.slice(n+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Y,{contents:[].concat(_.wq(g),_.wq(k))});case "INSERTION_POSITION_LAST":return Object.assign({},Y,{contents:[].concat(_.wq(k),_.wq(g))});
default:return Y}})};
zJ7=function(B,c,x,P,Y){Y=Y===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Y;return B({targetId:c},function(g){var k,n=(k=g.contents)!=null?k:[];k=vaI(n,x);if(k<0)return g;k=Y==="RELATIVE_INSERTION_POSITION_BEFORE"?k:k+1;return Object.assign({},g,{contents:[].concat(_.wq(n.slice(0,k)),_.wq(P),_.wq(n.slice(k)))})})};
Q_A=function(B){var c=B.findIndex(function(x){return _.t(x,_.sB)});
return c>=0?c:B.length};
vaI=function(B,c){return B.findIndex(function(x){a:{x=_.p(Object.values(x));for(var P=x.next();!P.done;P=x.next())if((P=P.value)&&P.targetId){x=P.targetId;break a}x=""}return x===c})};
ySO=function(B,c,x){return B({targetId:c},function(P){var Y,g=(Y=P.contents)!=null?Y:[];return Object.assign({},P,{contents:SXl(g,x)})})};
SXl=function(B,c){return B.filter(function(x){var P=c.includes;a:{x=_.p(Object.values(x));for(var Y=x.next();!Y.done;Y=x.next())if((Y=Y.value)&&Y.targetId){x=Y.targetId;break a}x=""}return!P.call(c,x||"")})};
_.GW7=function(B,c){return{engagementPanelSectionListRenderer:{panelIdentifier:B,identifier:c,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.LYI=function(B){var c,x=(c=B.getOption("captions","tracklist",{includeAsr:!0}))!=null?c:[];return x=Mzo(x,B)};
ZzY=function(B){return B.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Mzo=function(B,c){c=ZzY(c);if(c==null||!c.length)return B;var x=c.filter(function(k){return k});
c=B.filter(function(k){return k.languageCode.startsWith("en")});
x=_.p(x);for(var P=x.next();!P.done;P=x.next())if(P=P.value,c.length){var Y=c[0],g=Object.assign({},Y);Y.languageCode!==P.languageCode&&(g.displayName=Y.languageName+" >> "+P.languageName,g.translationLanguage=P,B.push(g))}return B};
Hzo=function(B,c,x){B=_.LYI(B);if(B.length)return x?B.find(function(P){if(typeof(P==null?void 0:P.translationLanguage)==="object"){var Y;return((Y=P.translationLanguage)==null?void 0:Y.languageCode)===c}return!1}):B==null?void 0:B.find(function(P){return P.languageCode===c})};
fvo=function(B){return B.getOption("captions","tracklist",{includeAsr:!0})};
izq=function(B){return B.getOption("captions","tracklist",{includeAsr:!0})};
ASX=function(B){var c=izq(B);if(c==null?0:c.length)return c;B.loadModule("captions");return izq(B)};
uQO=function(B){var c=B.getOption("captions","track");if(c)return c;B.loadModule("captions");return B.getOption("captions","track")};
rSO=function(B){var c=ASX(B);if(c!=null&&c.length){var x=uQO(B),P;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Up("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(x==null?0:x.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.wq(c.map(function(Y){return{listItemViewModel:{title:{content:Y.displayName},
isSelected:Y.displayName===(x==null?void 0:x.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Y.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Up("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!x.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!x.translationLanguage&&{selectionText:{content:(x==null?void 0:(P=x.translationLanguage)==null?void 0:P.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[DoI(B)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
DoI=function(B){var c=ZzY(B);if(c==null||!c.length)throw Error("Ai");var x=uQO(B);B=c.filter(function(P){return!P.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.wq(B.map(function(P){var Y;return{listItemViewModel:{title:{content:P.languageName},isSelected:P.languageName===(x==null?void 0:(Y=x.translationLanguage)==null?void 0:Y.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:P.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
cDl=function(B){return new Promise(function(c,x){if(B===void 0)_.lb(Error("Ei"),"ERROR"),x(Error("Ei"));else{x=new _.RJ7;var P=_.eJO();x=x.init();var Y=_.BgC(_.v5("YPC_MB_URL"),!0);Promise.all([x,Y]).then(function(){var g=payments.business.integration.ClientTokenFactory.createClientToken(B,P);c(g)})}})};
Yj$=function(B,c,x,P,Y,g,k){var n=_.Hw();x=x.replace(/-/g,"+").replace(/_/g,"/");var b=_.CW().get("hl"),d=_.pC(_.iI),q=c==null?void 0:c.element;q&&_.uj(q);xrx(c,!0);_.PHw(d,x,n.resolve,function(){q&&_.Ds(q)},function(C){q&&_.Ds(q);
n.reject(C)},b,P?function(C){P&&_.Zn(B,P,{backend_analytics:C})}:void 0,n.resolve,Y,g,k);
return n.promise};
xrx=function(B,c){!(B=B==null?void 0:B.element)||B.tagName!=="YT-BUTTON-RENDERER"&&B.tagName!=="YTD-BUTTON-RENDERER"||(B.disabled=c)};
aLq=function(){var B=_.Up("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.c3(B),actionButton:{buttonRenderer:JQA()}}},popupType:"TOAST"}};
gZC=function(){var B=_.Up("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.c3(B),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
sMI=function(B){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:B}]}}};
kl=function(B,c,x,P){var Y;return _.X(function(g){if(g.nextAddress==1)return _.kM(g,2),_.K(g,B,4);if(g.nextAddress!=2)return(Y=_.mk(c.getState().entities).length>0)?g.return({title:_.c3(_.Up("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.c3(_.Up("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Io7()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(WM$(x,P));_.be(g);return g.return(WM$(x,P))})};
pcC=function(B,c){return c?c==="PPSV"||wbq(B,c):!1};
kX$=function(B){B.responseContext||(B.responseContext={});B.responseContext.maxAgeSeconds=0;return B};
$l=function(B){var c;return _.X(function(x){return x.nextAddress==1?_.K(x,XcQ(B,"service:topbar:fallback"),2):(c=x.yieldResult)&&_.Xs(c)?x.return(kX$(_.Xs(c))):x.return()})};
$rQ=function(B){var c;return _.X(function(x){return x.nextAddress==1?_.K(x,XcQ(B,"service:downloads_settings:fallback"),2):(c=x.yieldResult)&&_.Xs(c)?x.return(c):x.return()})};
XcQ=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return B?_.K(P,B.get(c),2):P.return();x=P.yieldResult;return!x||!_.Xs(x)||!isNaN(Number(x.data.expireTimestampMs))&&x.isExpired()?P.return():P.return(x)})};
nZO=function(B){var c=_.cp().resolve(nC).getState().entities;return B.playlistId?pcC(c,B.playlistId):!1};
bD7=function(B,c){var x;if(c==null?0:(x=c.requestTemplate)==null?0:x.panelId)B.panelId=c.requestTemplate.panelId;var P;if(c==null?0:(P=c.requestTemplate)==null?0:P.params)B.params=c.requestTemplate.params};
jMO=function(){if(KCA)return KCA();var B=!_.T("idb_response_store_auth_killswitch"),c={};KCA=eR("yt-it-response-store",{objectStores:(c.ResponseStore={addedAtVersion:1},c),shared:!B,upgrade:function(x,P){P(1)&&(x=Sl(x,"ResponseStore",{keyPath:["key","clientName"]}),yx(x,"byExpiration","expireTimestampMs"),yx(x,"byInterface","clientName"))},
version:1});return KCA()};
Url=function(B){return _.LU(jMO(),B)};
qjO=function(B,c){var x;return _.X(function(P){return P.nextAddress==1?_.K(P,_.RH(),2):(x=P.yieldResult)?P.return(new drQ(B,c,x)):P.return()})};
CHO=function(B){var c=Object.keys(B)[0];if(c)return B.screenExit&&(c=c+";"+B.screenExit.screen),c};
hsl=function(B){var c=new Map;B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,x!=null&&(c.has(x.taskType)||c.set(x.taskType,[]),c.get(x.taskType).push(x));return c};
mrw=function(B){return!isNaN(B)&&B>0};
Tgo=function(B){B=[].concat(_.wq(B)).sort(function(x,P){return x-P});
var c=Math.floor(B.length/2);return B.length%2?B[c]:(B[c-1]+B[c])/2};
wc7=function(B,c){B=B===void 0?smX:B;c=c===void 0?{}:c;_.rr("yt.logging.errors.log",_.lb);a9C();Vhd(n0X(),c);window.onerror=B;thQ=g0O;window.addEventListener("unhandledrejection",function(x){if(x.reason instanceof Error){var P=x.reason;_.oG(P,{source:"unhandledrejection"});P.name==="AbortError"&&(P.level="WARNING")}g0O(x.reason);x.preventDefault()})};
_.Ngl=function(B){return B.a11y.ephemeralAction||null};
_.ILY=function(B){var c,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI,Ul,wC,W$,El,H$,yw,r9,cs,NQ,n4,L4,UF,uX,yr,uz,XO;return _.X(function(qQ){if(qQ.nextAddress==1)return _.K(qQ,_.Uv(B,{mode:"readonly",enableRetries:!0},function(lt){return dL(lt,"playbackData").then(function(D8){var VW=D8.map(function(g9){return g9.transfer}).filter(function(g9){return!!g9}),ut=D8.map(function(g9){return g9.offlineVideoPolicy}).filter(function(g9){return!!g9}),M8=D8.filter(function(g9){return!!g9.key}).map(function(g9){return _.kN(_.gL(g9.key).entityId,
"downloadStatusEntity")});
VW=dL(lt,"transfer",VW);ut=dL(lt,"offlineVideoPolicy",ut);M8=dL(lt,"downloadStatusEntity",M8);var An=VW.then(function(g9){g9=g9.reduce(function(SZ,hc){(hc==null?0:hc.offlineVideoStreams)&&SZ.push.apply(SZ,_.wq(hc.offlineVideoStreams));return SZ},[]).filter(function(SZ){return!!SZ});
return dL(lt,"offlineVideoStreams",g9)});
return vp.all([VW,ut,An,M8]).then(function(g9){var SZ=_.p(g9);g9=SZ.next().value;var hc=SZ.next().value;var C4=SZ.next().value;SZ=SZ.next().value;return[D8,g9,hc,C4,SZ]})})}),2);
if(qQ.nextAddress!=3)return c=qQ.yieldResult,_.K(qQ,_.Uv(B,{mode:"readonly",enableRetries:!0},function(lt){return dL(lt,"mainDownloadsListEntity").then(function(D8){var VW,ut;return(ut=(VW=D8[0])==null?void 0:VW.downloads)!=null?ut:[]})}),3);
x=qQ.yieldResult;P=_.p(c);Y=P.next().value;g=P.next().value;k=P.next().value;n=P.next().value;b=P.next().value;d=Y;q=g;C=k;h=n;V=b;N={};l={};E={};S={};M={};f=[];Z=_.p(q);for(u=Z.next();!u.done;u=Z.next())(e=u.value)&&(N[e.key]=e);px=_.p(C);for(kI=px.next();!kI.done;kI=px.next())(Ul=kI.value)&&(l[Ul.key]=Ul);wC=_.p(V);for(W$=wC.next();!W$.done;W$=wC.next())(El=W$.value)&&(E[El.key]=El);H$=_.p(h);for(yw=H$.next();!yw.done;yw=H$.next())(r9=yw.value)&&(S[r9.key]=r9);cs=_.p(x);for(NQ=cs.next();!NQ.done;NQ=
cs.next())n4=NQ.value,L4=void 0,M[(L4=n4.videoItem)!=null?L4:""]=!0,n4.videoItem&&(uX=UF=void 0,yr=(uX=(UF=_.gL(n4.videoItem))==null?void 0:UF.entityId)!=null?uX:"",f.push({externalVideoId:yr}));uz=d.filter(function(lt){if(!lt||!lt.key||!lt.offlineVideoPolicy)return!1;lt=_.gL(lt.key).entityId;lt=_.kN(lt,"downloadStatusEntity");var D8;return!(lt&&((D8=E[lt])==null?void 0:D8.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
XO=uz.map(function(lt){var D8=N[lt.transfer],VW=[];if(D8==null?0:D8.offlineVideoStreams)for(var ut=_.p(D8.offlineVideoStreams),M8=ut.next();!M8.done;M8=ut.next())(M8=S[M8.value])&&VW.push(M8);ut=l[lt.offlineVideoPolicy];M8=M;var An=lt==null?void 0:lt.playerResponseTimestamp,g9=_.gL(ut.key).entityId;lt=_.kN(g9,"mainVideoEntity");if(ut.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var SZ="OFFLINE_VIDEO_STATE_DISABLED";ut.expirationTimestamp&&Number(ut.expirationTimestamp)<Date.now()/1E3&&(SZ="OFFLINE_VIDEO_STATE_EXPIRED")}else if(ut.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")SZ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(D8==null?void 0:D8.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":SZ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":SZ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":SZ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":SZ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":SZ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":SZ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:SZ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(SZ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(D8==null?void 0:D8.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":SZ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":SZ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":SZ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}g9={id:g9,videoState:SZ};if(D8==null?0:D8.cotn)g9.cotn=D8.cotn;if(D8==null?0:D8.maximumDownloadQuality)g9.selectedVideoQuality=D8==null?void 0:D8.maximumDownloadQuality;if(D8==null?0:D8.lastProgressTimeMs)g9.lastProgressTimeMs=D8.lastProgressTimeMs;An&&(g9.playerResponseSavedTimeMs=String(Number(An)*1E3));D8=String;An=0;VW=_.p(VW);for(SZ=VW.next();!SZ.done;SZ=VW.next())if(SZ=SZ.value,SZ.streamsProgress){SZ=_.p(SZ.streamsProgress);for(var hc=SZ.next();!hc.done;hc=
SZ.next()){var C4=void 0;An+=Number((C4=hc.value.numBytesDownloaded)!=null?C4:0)}}g9.downloadedBytes=D8(An);g9.selectedOfflineMode=M8[lt]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";ut.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(g9.offlinePlaybackDisabledReason=ut.offlinePlaybackDisabledReason);return g9});
return qQ.return({offlineVideos:XO,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:f}}})})};
JDd=function(){var B;return _.X(function(c){return c.nextAddress==1?_.K(c,_.bG(),2):(B=c.yieldResult)?c.return(_.ILY(B)):c.return({state:"PES Unavailable"})})};
EZw=function(){var B,c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,_.bG(),2);if(Y.nextAddress!=3)return(B=Y.yieldResult)?_.K(Y,WCA(B),3):Y.return({state:"PES Unavailable"});c=Y.yieldResult;x={};P=c.reduce(function(g,k){g[k.key]=k;return g},x);
return Y.return(lLO(P))})};
lLO=function(B){for(var c={},x=[],P=_.p(Object.keys(B)),Y=P.next();!Y.done;Y=P.next()){var g=Y.value;Y=B[g];var k=void 0;if(((k=Y)==null?void 0:k.entityType)==="mainVideoEntity"){delete B[g];var n=Y.data;Y={};if(n){var b=void 0;k=(b=n.videoId)!=null?b:"vid-"+g;g=B;Y.video=n;delete Y.video.formattedDescription;delete Y.video.thumbnail;n.owner&&(b=g[n.owner],b==null?0:b.data)&&(delete g[b.key],Y.video.owner=b.data,delete Y.video.owner.avatar);if(n=n.downloadState)if(b=g[n],b==null?0:b.data)if(delete g[n],
n=b.data.playbackData)if(b=g[n],b!=null&&b.data){delete g[n];n=b.data;delete n.playerResponseJson;Y.playbackData=n;if(n.transfer&&(b=g[n.transfer],b==null?0:b.data)){delete g[b.key];var d=b.data;Y.transfer=d;b=[];d=_.p(d.offlineVideoStreams||[]);for(var q=d.next();!q.done;q=d.next())if(q=g[q.value])delete g[q.key],b.push(q.data);b&&(Y.streams=b)}(n=n.offlineVideoPolicy)&&(n=g[n])&&n.data&&(delete g[n.key],Y.offlineVideoPolicy=n.data)}c[k]=Y}}else Y&&Y.entityType==="offlineOrchestrationActionWrapperEntity"&&
Y.data&&(delete B[Y.key],k=Y.data,g=void 0,x.push({id:k.rootActionId,type:((g=k.actionProto)==null?void 0:g.actionType)||"",entity:Y}))}c.wrapperEntities=x;Object.keys(B).length>0&&(c.unknownKeys=B);return c};
ODX=function(){var B,c,x,P,Y,g,k,n,b;return _.X(function(d){if(d.nextAddress==1)return B=!!(new _.vA("")).expiringStorage_,P=!!((c=_.xI.crypto)==null?0:(x=c.subtle)==null?0:x.importKey),Y=!!_.xI.BroadcastChannel,g=!!_.xI.navigator.locks,_.K(d,zkd(),2);k=d.yieldResult;n=B&&P&&Y&&g&&k;b={isSupported:n};if(n)return d.return(b);b.missingBrowserFeatures=[];k||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");B||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
P||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Y||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return d.return(b)})};
oZO=function(){var B;return!((B=bU?bU:null)==null||!B.window)};
_.FCY=function(B){if(_.lX()&&_.$Yw("Chromium")>=120){var c=_.QMd().mediaSession;try{c.setActionHandler("enterpictureinpicture",function(){B()})}catch(x){}}};
vZQ=function(B){for(var c=[],x=_.p(document.styleSheets),P=x.next(),Y={};!P.done;Y={node$jscomp$732:void 0},P=x.next())Y.node$jscomp$732=P.value.ownerNode,Y.node$jscomp$732&&(Y.node$jscomp$732 instanceof HTMLStyleElement||Y.node$jscomp$732 instanceof HTMLLinkElement)&&c.push(new Promise(function(g){return function(k){var n=g.node$jscomp$732.cloneNode(!0);n.onload=function(){k()};
n.onerror=function(){_.Ob(Error("gj"));k()};
B.document.head.appendChild(n)}}(Y)));
return Promise.all(c)};
iDq=function(B){var c=[_.cM(zsA),_.cM(Sjd),_.cM(yDx)];GXd(window.document.documentElement,B.document.documentElement,[_.cM(Mh7),_.cM(LCl),_.cM(ZDQ),_.cM(HDO),_.cM(fLQ)]);GXd(window.document.body,B.document.body,c)};
GXd=function(B,c,x){B=_.p(B.attributes);for(var P=B.next();!P.done;P=B.next())if(P=P.value)try{_.Zz(x,c,P.name,P.value)}catch(Y){}};
uu7=function(B,c){B=new _.KC(B.document.documentElement);B.start(AD7,c);return B};
Dr$=function(B){var c=B.document.documentElement;c.addEventListener("click",function(x){JAl(c,x)});
c.addEventListener("touchstart",function(x){o37(x)});
c.addEventListener("mousedown",function(x){o37(x)})};
RsX=function(B,c,x,P){P=P===void 0?!1:P;c=new rD$(c||B,x||B);return{x:B.x+((P===void 0?0:P)?c.lengthX*-1:c.lengthX)*.2,y:B.y+((P===void 0?0:P)?c.lengthY*-1:c.lengthY)*.2}};
esw=function(B){if(!B)return!1;var c=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",x,P,Y,g=(Y=(x=B.errorScreen)==null?void 0:x.playerLegacyDesktopYpcTrailerRenderer)!=null?Y:(P=B.errorScreen)==null?void 0:P.ypcTrailerRenderer;return!!c||!!g};
_.BFx=function(B,c){if(!B)return!1;var x,P=(x=B.errorScreen)==null?void 0:x.playerLegacyDesktopYpcOfferRenderer,Y;c=!!(c==null?0:(Y=c.playerOverlayRenderer)==null?0:Y.gatedActionsOverlayRenderer);return!!esw(B)||!!P||!!c};
Pu7=function(B){return cF$(B,0,"gclid",B.search(xEl))>=0||cF$(B,0,"gad_source",B.search(xEl))>=0};
g_O=function(B){var c=[],x=0;return{clear:function(){x=c.length=0},
push:function(P){c[x]=P;x=(x+1)%B},
iterate:function(){return function Y(){var g,k,n,b;return _.Y_C(Y,function(d){switch(d.nextAddress){case 1:_.$M(d,2),g=c.length,k=0;case 4:if(!(k<g)){d.jumpTo(2);break}n=x+k;b=_.aQq;return _.K(d,c[n%g],7);case 7:b(d.yieldResult);k++;d.jumpTo(4);break;case 2:_.Xt(d),_.nq(d,0)}})}()}}};
pj$=function(){var B=sRd,c=Dx.bufferSize;B||(B=[]);B=B.map(f7X);var x=new Set(B),P=g_O(c);return{flush:function(){var Y=Array.from(P.iterate());P.clear();Y=Y.map(function(g){return{name:g.name,timestamp:g.startTime,attributes:g.attributes}});
return JSON.stringify(Y)},
onSpanStart:function(Y){Y.name==="event"&&x.has(Y.attributes.type)||P.push(Y)}}};
kbx=function(){var B=pj$(),c=B.flush;NRA({onSpanStart:B.onSpanStart});d_Q.subscribe("handleError",function(x){try{x.params.breadcrumbs=c()}catch(P){_.lb(P,"WARNING")}})};
XjX=function(B,c,x){var P=B.endTime;if(P==null)throw Error("ij");x=_.ya(Mm7)(B.name,P-B.startTime,B.startTime,{webTracing:B.attributes},x,c);if(B.children)for(B=_.p(B.children),P=B.next();!P.done;P=B.next())XjX(P.value,c,x)};
n_w=function(){for(var B={},c=_.p(Dx.enabledSpansArray),x=c.next();!x.done;x=c.next())B[x.value]=!0;if(Dx.exportToCsi||Dx.exportBreadcrumbs)B={enabledSpans:B},D1={sessionId:B.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:B.enabledSpans};Dx.exportBreadcrumbs&&kbx();Dx.exportToCsi&&NRA($Ex)};
bId=function(B){return new Promise(function(c){window.setTimeout(c,B)})};
Kbl=function(B){var c={bicf:function(g){B.vqr=g},
blc:function(){return B.getLatestChallengeResponse()},
bcr:function(g){B.iJS.push(g)}},x=window.top;
x.ntpevasrs=c;if(x.ntpqfbel!==void 0)for(var P=_.p(x.ntpqfbel),Y=P.next();!Y.done;Y=P.next())Y=Y.value,Y(c);x.ntpqfbel=void 0};
jR$=function(B){return _.X(function(c){if(c.nextAddress==1)return _.kM(c,2),_.K(c,B.wYC(),4);if(c.nextAddress!=2)return _.Gw(c,0);_.be(c);_.Kq(c)})};
UEl=function(B){var c,x;(c=B.ytcsi)==null||(x=c.tick)==null||x.call(c,"pot_ist")};
dEI=function(B){if(B instanceof Error){var c=_.Gu("yt.logging.errors.log");c&&c(B,"WARNING")}};
q_I=function(B){try{var c=JSON.parse(B);if(c.bgChallenge)return c}catch(x){}};
hul=function(){var B=window,c={networkStatusManagerPromise:_.cp().resolve(new hh7(_.Z$)),initialChallengeSli:_.T("wpo_att_sli")?new _.Iu7("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};B=B===void 0?window:B;var x=B.ytAtR,P;c==null||(P=c.initialChallengeSli)==null||_.jX(P);if(x){if(x=q_I(x)){var Y;c==null||(Y=c.initialChallengeSli)==null||_.UB(Y,"SUCCESS");Cul(x,c)}B.ytAtR=void 0}else B.ytAtRC=function(g){if(g=q_I(g)){var k;c==null||(k=c.initialChallengeSli)==null||
_.UB(k,"SUCCESS");Cul(g,c);B.ytAtRC=void 0}}};
VCI=function(){if(mEl)return mEl;try{var B=_.df("IFRAME");_.EG(B,_.PM(TFC));B.sandbox.add("allow-same-origin");B.style.display="none";document.body.appendChild(B);return mEl=B}catch(c){B=new _.mc("Failed to create sandbox iframe"),_.lb(B)}};
tCO=function(B){var c,x;return(x=B==null?void 0:(c=B.contentWindow)==null?void 0:c.fetch)!=null?x:window.fetch};
wjQ=function(B){var c,x;return(x=B==null?void 0:(c=B.contentWindow)==null?void 0:c.JSON.parse)!=null?x:JSON.parse};
NFd=function(B){var c,x;return(x=B==null?void 0:(c=B.contentWindow)==null?void 0:c.Request)!=null?x:window.Request};
WbQ=function(){if(Wz7()==="hidden")var B="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Wz7()==="visible"&&(B="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",IQA=null);B&&JF$(B)};
JF$=function(B){if(B==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||B==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(lQO===B)return;lQO=B}var c=9E4+Math.random()*2E3;if(B!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.co()>c)&&Wz7()==="visible"){c=-1;IQA&&(c=Math.round((0,_.BA)()-IQA));var x=String;var P=_.Gu("_fact",window);P=P==null||P==-1?-1:Math.max(Date.now()-P,0);_.JP("foregroundHeartbeat",{firstActivityMs:x(P),clientDocumentNonce:kil,index:String(E_d),lastEventDeltaMs:String(c),trigger:B});
_.rr("_fact",-1,window);E_d++;IQA=(0,_.BA)()}};
_.OIw=function(){try{return!!self.sessionStorage}catch(B){return!1}};
o_O=function(){var B=navigator;return new Promise(function(c,x){var P;(P=B.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?B.webkitTemporaryStorage.queryUsageAndQuota(function(Y,g){c({usage:Y,quota:g})},function(Y){x(Y)}):x(Error("qj"))})};
QRQ=function(B,c){var x={errorSeverity:c.errorSeverity.toString(),wizFeatureFlags:Object.entries(c.featureFlags).join("\n")};YLw(c,x);c=c.errorSeverity;c===3?_.lb(B,"ERROR",void 0,void 0,void 0,x):c===2&&_.lb(B,"WARNING",void 0,void 0,void 0,x);_.T("cow_if_errors_in_popup")&&c===3&&B.message.indexOf("<If>")!==-1&&window.alert(B.message)};
Fb7=function(B,c,x){B.componentType!==VG&&x instanceof HTMLElement&&c&&!_.T("cow_logging_in_component_wrapper")&&ddq(x,c,!0)};
MC7=function(){if(!v_A){v_A=!0;var B=Object.assign({},{enableLazyTsx:_.T("mweb_enable_wiz_lazy_tsx")||_.T("kevlar_enable_wiz_lazy_tsx")||_.T("creator_enable_wiz_lazy_tsx")||zuX,flushRenderEffectsDuringRender:!0},{handleError:QRQ,enableComponentStacksInErrorMessages:!1});Object.assign(_.xD,B);TUd=S_$;yF$();I6$=HMx;t37=fCl;_.T("ytwiz_enable_debug_component_props")&&(B=document.body.firstElementChild,window.ng||B.__ngContext__||(B.__ngContext__={},B.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
Gbo))}};
yF$=function(){_.T("cow_logging_in_component_wrapper")?(BTx=function(B,c){c instanceof HTMLElement&&ddq(c,B,!0)},$aC=function(){}):(BTx=function(){},$aC=Fb7)};
Lbl=function(B,c,x){c=c===void 0?{}:c;var P,Y=(P=_.t(B.commandMetadata,_.Br))==null?void 0:P.url;P=c.form||{};!x||P.element||P.skipDefaultElement||(c.form=c.form||{},c.form.element=x);if(Y&&Y!=="/service_ajax")return{type:0,command:B,form:c.form};if(_.T("kevlar_service_command_check")){if(_.Lw(_.cp().resolve(_.ou),B))return Object.assign({},{type:1,command:B},c)}else{var g;if((g=_.t(B.commandMetadata,_.Br))==null?0:g.apiUrl)return Object.assign({},{type:1,command:B},c)}return{type:2,command:B,form:c.form}};
ZI$=function(B){if(B.form){var c=B.form,x=Object.assign({},c);c=c.element;x=(delete x.element,x);if(c)return[_.kC(c,[B.command,x,B.commandController])]}return[]};
HIq=function(B){if(B.form){var c=B.form,x=Object.assign({},c);c=c.element;x=(delete x.element,x);c&&_.XX(c,[B.command],c,x)}};
iIx=function(B,c,x){var P=new fQO(B,c),Y=new d2(B,c,x);B={"/youtubei/v1/browse":new qb(B,c,x),"/youtubei/v1/player":P,"/youtubei/v1/navigation/resolve_url":new CC,"/youtubei/v1/next":Y,"/youtubei/v1/guide":new hE(x),"/youtubei/v1/search":new mH(B,c,x),"/youtubei/v1/reel/reel_item_watch":new Te(B,c,x),"/youtubei/v1/get_watch":new VA(P,Y)};B["/youtubei/v1/account/account_menu"]=new tE;B["/youtubei/v1/notification/get_notification_menu"]=new w2;return B};
IE=function(){var B=_.cp().resolve(Nb);return Promise.resolve(AF$(B,_.xI.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
uJC=function(B){return B&&(B=_.lU(_.BE7(B)))?(new URLSearchParams(B)).get("service"):null};
oE=function(B,c){_.s9(_.EB(),function(){_.Op("adl")});
_.cp().resolve(DEX)(c);B=B.root;B.loadData&&B.loadData(c);(c==null?0:c.response)?_.UB(luA(),"SUCCESS"):_.Ob(new _.mc("Lifecycle: No response in data",_.zu("IS_SHELL_LOAD"),c?c.page:"NO_PAGE",c?c.endpoint:"NO_ENDPOINT"));B.polymerController.$["page-manager"].lazyPrepareCriticalPages((c==null?void 0:c.page)||"",c.endpoint);var x,P;((P=_.t(c==null?void 0:(x=c.endpoint)==null?void 0:x.commandMetadata,_.Br))==null?0:P.webPageType)&&_.uG().dispatch(_.OB(_.t(c.endpoint.commandMetadata,_.Br).webPageType))};
rFx=function(){var B,c;return _.X(function(x){switch(x.nextAddress){case 1:B=window;if(!B.getDataPromise){x.jumpTo(2);break}_.kM(x,3);return _.K(x,B.getDataPromise(),5);case 5:return x.return(x.yieldResult);case 3:return _.be(x),_.K(x,IE(),6);case 6:return x.return(x.yieldResult);case 2:if(B.getInitialData)return c=B.getInitialData(),B.getInitialData=void 0,x.return(c);throw Error("sj`"+_.xI.location.href);}})};
euI=function(){_.FP("CSI_SERVICE_NAME","youtube");_.lg({loadType:"cold"});_.T("kevlar_log_lcp")&&Rux(function(B){_.Op("lcp",B.value)})};
BhO=function(){var B=_.MH(document.location.href,"enable");B&&B.indexOf("scraper")>-1&&_.FP("ADD_SCRAPER_ATTRIBUTES",!0)};
aN$=function(B){var c=B.root;B=[cYY,xxw,_.QA];_.T("web_feedback_endpoint_autolog_allowlist_killswitch")&&B.push(_.Fs,PnA);YuO(function(x,P){return Lbl(x,P,c)},function(x){if(!x.command)return[];
var P;((P=x.form)==null?0:P.element)?x.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},x.form,{endpoint:x.command})})):c.handleNavigate(x);return[]},B);
_.cp().addProvider({provide:_.xu,useValue:_.bA.instance})};
sV$=function(){var B={},c={},x;for(x in gn$){var P=_.p(_.$D(gn$[x],void 0,"NBH2te"));B[x]=P.next().value;c[x]=P.next().value}return[B,function(Y){for(var g in Y){var k=void 0;(k=c[g])==null||k(Y[g])}}]};
_.Xn7=function(B,c){var x=_.wW.getValueByKeys(B,"contents","twoColumnWatchNextResults","results","results","contents"),P=_.wW.getValueByKeys(B,"contents","twoColumnWatchNextResults","playlist","playlist")||null,Y=null,g=null;if(P)Y=_.wW.getValueByKeys(P,"titleText"),g=_.wW.unsafeClone(_.wW.getValueByKeys(P,"longBylineText")),x="",g&&(x=_.iG(g)),g=_.fk(x);else if(x){x=_.p(x);for(var k=x.next();!k.done;k=x.next())k=k.value,k.videoPrimaryInfoRenderer&&(Y=_.wW.getValueByKeys.apply(_.wW,[k].concat(_.wq(pnX)))),
k.videoSecondaryInfoRenderer&&(g=_.wW.getValueByKeys.apply(_.wW,[k].concat(_.wq(kyd))))}else _.MR(Error("xj"));var n;B.currentVideoEndpoint?n=B.currentVideoEndpoint:_.MR(Error("yj"));var b;c&&(b=_.wW.getValueByKeys(c,"playabilityStatus","miniplayer","miniplayerRenderer"));B={miniplayerTitle:Y,miniplayerSubtitle:g,watchEndpoint:n,playlistData:P};b&&(B.miniplayerRenderer=b);return B};
$xO=function(B){if(B)return _.OL(B)};
_.nnA=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
bK$=function(B){return B.videoDuration?B.numTaps>1&&B.tapDirection!==0?_.vi(B.draggedTime/B.videoDuration,0,1):_.vi((B.playedTime||0)/B.videoDuration,0,1):0};
K2d=function(B){return B.videoDuration?B.isDragging||B.numTaps>1&&B.tapDirection!==0?_.vi(B.draggedTime/B.videoDuration,0,1):_.vi((B.playedTime||0)/B.videoDuration,0,1):0};
Uxw=function(B){var c,x,P;return _.t(B==null?void 0:(c=B.markersMap)==null?void 0:(x=c.find(function(Y){return Y.key==="HEATSEEKER"}))==null?void 0:(P=x.value)==null?void 0:P.heatmap,jVA)};
dxY=function(B){var c,x;return(x=(c=Uxw(B))==null?void 0:c.heatMarkersDecorations)!=null?x:[]};
quw=function(B){if(_.T("mweb_supported_chapters_killswitch"))return!0;var c;return!!(B==null?0:(c=B.markersMap)==null?0:c.find(function(x){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(x.key)}))};
_.CnY=function(B){var c=Object,x=c.assign,P;B={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(P=B==null?void 0:B.getPlayerState())!=null?P:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return x.call(c,{},{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},B,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
hgq=function(B){return function(c){var x=B(),P,Y=(P=x.playerApi)==null?void 0:P.getPlayerState();c&&c!==x.playerState&&(c===1||c===2)&&x.setState({playerState:Y})}};
Tho=function(B){return function(c){var x=B(),P=x.playerApi;P&&(c==null?void 0:c.type)==="newdata"&&(mxw&&(clearTimeout(mxw),mxw=void 0),_.T("web_shorts_use_progress_state_for_gapless")?(c=P==null?void 0:P.getProgressState(c==null?void 0:c.playertype),c=c.seekableEnd-c.seekableStart):c=P==null?void 0:P.getDuration(c==null?void 0:c.playertype),x.setState({playedTime:0,videoDuration:c}))}};
VaX=function(B){return function(c){var x=B(),P=x.playerApi;if(P){var Y=P.getPresentingPlayerType();_.T("web_shorts_use_progress_state_for_gapless")?(P=P.getProgressState(Y),P=P.seekableEnd-P.seekableStart):P=P.getDuration(Y);x.setState({playedTime:c,videoDuration:P})}}};
wnI=function(B){_.FF(112394,B,function(){return ta7},function(c){ta7=c})};
JY7=function(B,c){if(!B)return[];var x,P,Y;B=((x=B.markersMap)==null?void 0:(P=x.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(Y=P.value)==null?void 0:Y.chapters)||[];
!NhA(B)||(c==null?0:c.ignoreStub)||(B=[INq()].concat(_.wq(B)));return B};
INq=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
NhA=function(B){if(B.length===0)return!1;var c;return((c=_.t(B[0],ze))==null?void 0:c.timeRangeStartMillis)!==0};
SX=function(B){return B?B.timeRangeStartMillis||0:0};
lNX=function(B,c){if(B.isDragging&&c)return B=W2l(B,c),B===-1?INq():JY7(c)[B]};
W2l=function(B,c){return B.isDragging&&c?JY7(c,{ignoreStub:!0}).findIndex(function(x,P,Y){x=EnI(B);return OKx(x,Y,P).scrubberHovering}):-1};
EnI=function(B){return Object.assign({},B,{videoDuration:B.videoDuration*1E3,playedTime:B.playedTime*1E3,draggedTime:B.draggedTime*1E3})};
OKx=function(B,c,x){var P=SX(_.t(c[x],ze));c=SX(_.t(c[x+1],ze))||B.videoDuration;x=B.isDragging;var Y;if(Y=B.isDragging)Y=B.draggedTime,Y=Y!==null&&Y>=P&&Y<c;var g=B.playedTime;return g!==null&&g>=P&&g<c?{videoPosition:"active",isScrubbing:x,scrubberHovering:Y}:B.playedTime<P?{videoPosition:"pending",isScrubbing:x,scrubberHovering:Y}:{videoPosition:"seen",isScrubbing:x,scrubberHovering:Y}};
onC=function(B,c){return B.videoPosition==="seen"||(c===void 0?0:c)>0};
QVO=function(B,c,x){c=B/c.storyboardInterval;var P=JY7(x);if(!P.length)return-c*72;x=0;P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next())if(SX(_.t(Y.value,ze))/1E3<B)x++;else break;return-(c*72)-x*56};
F2$=function(B){return B?B.width/B.columns:0};
vnQ=function(B){return B.isHovering?B.hoveredTime:B.draggedTime};
zgI=function(B,c){B=B.draggedTime*1E3;return B>=c.visibleTimeRangeStartMillis&&B<=c.visibleTimeRangeEndMillis};
_.SuX=function(B){if(B===void 0||Number.isNaN(B))return"--:--";var c=Math.abs(Math.floor(B)),x=Math.floor(c/86400),P=Math.floor(c%86400/3600),Y=Math.floor(c%3600/60);c=Math.floor(c%60);var g="";x>0&&(g+=x+":",P<10&&(g+="0"));if(x>0||P>0)g+=P+":",Y<10&&(g+="0");g+=Y+":";c<10&&(g+="0");g+=c;return B>=0?g:"-"+g};
yYA=function(B,c){return function(){var x=vnQ(B());var P=c();var Y=B().playerApi;if(Y&&Y.getNumberOfStoryboardLevels()!==0){var g=Y.getStoryboardFrameIndex(x,1);g!==-1?P=Y.getStoryboardFrame(g,1):(x=Y.getStoryboardFrameIndex(x,0),Y=Y.getStoryboardFrame(x,0),P&&Y&&(Y.height*=3,Y.width*=3),P=Y)}else P=null;if(!P)return null;c()&&(P.width=90*P.columns,P.height=160*P.rows);return P}};
_.yA=function(B){if(!B||B.getVideoData)return B};
Gyx=function(){var B;return{playerApi:(B=_.kx())!=null?B:void 0}};
Mal=function(B){var c;_.X(function(x){if(x.nextAddress==1)return _.K(x,_.p3(),2);if(c=x.yieldResult)c.unMute(!0),c.setVolume(B,!0);_.Kq(x)})};
L2Q=function(B,c){B&&(B.value=""+c,B.style.setProperty("--gradient-percent",c+"%"))};
ZK$=function(B){var c;return(c=B==null?void 0:B.value)!=null?c:0};
HKo=function(){var B;_.X(function(c){if(c.nextAddress==1)return _.K(c,_.p3(),2);B=c.yieldResult;if(!B)return c.return();B.isMuted()?B.unMute(!0):B.mute(!0);_.Kq(c)})};
fNI=function(B){var c=_.cp().resolve(_.Ge).getPlayerElement();c&&B&&(B===1?c.pause():c.play())};
iKd=function(B){_.sp(B,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
AYX=function(B){_.sp(B,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Dxq=function(B){return _.It(B.document.body,function(){return _.U(u3X,null)})};
rYC=function(){var B=window.performance.getEntriesByType("navigation");return B?B.map(function(c){return c.type}).includes("reload"):!1};
aHd=function(){Mb(Mb(Mb(Mb(Mb(Mb(Mb(_.cp().resolve(_.LC),_.Rgd),_.egA),_.BSA),_.cLY),_.x1d),_.P0x),_.YS7)};
gQl=function(B,c){c=c===void 0?!1:c;var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return c||!_.T("kevlar_shorts_seedless_retry_initial_load")||(x=window,P=!(!x.getDataPromise&&!x.getInitialData),P)?_.K(k,rFx(),2):(setTimeout(gQl.bind(window,B,!0),1E3),k.return());if(k.nextAddress!=3)return Y=k.yieldResult,_.K(k,sPI(Y),3);g=k.yieldResult;oE(B,g);_.Kq(k)})};
sPI=function(B){var c;if((c=B.response)==null||!c.replacementEndpoint)return _.$C(B);c=_.cp().resolve(Nb);B=B.response;_.t(B.replacementEndpoint,_.TF)&&B.sequenceContinuation&&(_.t(B.replacementEndpoint,_.TF).sequenceParams=B.sequenceContinuation);return ZO(c,B.replacementEndpoint,{},_.xI.location.href,"shorts",function(){},function(){return!1})};
p9X=function(B){var c=_.uG(),x,P=_.t((x=B.response)==null?void 0:x.frameworkUpdates,iv),Y;x=_.t((Y=B.playerResponse)==null?void 0:Y.frameworkUpdates,iv);var g;B=_.t((g=B.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,iv);P&&_.jB(P,c);x&&_.jB(x,c);B&&_.jB(B,c)};
k9o=function(B){var c;_.T("enable_redirect_linking_for_desktop_web_client")&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&B.url&&(B.url=B.url.toString()+window.location.hash)};
nQl=function(B){var c=_.cp(),x=c.resolve(Nb);c=c.resolve(_.X9d);B.endpoint&&(x=$17(x,B.endpoint),x.content&&B.response&&_.Hi(c,B.response,x.content),x.player&&B.playerResponse&&_.Hi(c,B.playerResponse,x.player),x.reelSequence&&B.reelWatchSequenceResponse&&_.Hi(c,B.reelWatchSequenceResponse,x.reelSequence))};
fC=function(B,c){p9X(c);var x;(c==null?0:c.url)&&((x=window.location.hash)==null?0:x.includes("redirect_state"))&&(k9o(c),(x=uJC(c.url))&&_.gj(B.root,"yt-initialize-third-party",[x,c]));nQl(c);x=_.cp();var P=x.resolve(bJw);c.playerResponse&&x.resolve(K6O).handleResponse(c.playerResponse);if(c.playerResponse){x=void 0;if(_.T("ab_v_vid_sig")&&c.endpoint){var Y,g=(Y=_.t(c.endpoint,_.fN))!=null?Y:_.t(c.endpoint,_.TF);g&&(x=g.videoId)}jP7(P,c.playerResponse,x)}c.playerResponse&&GCI(c.playerResponse)&&
_.T("web_enable_ab_rsp_cl")?xoq().then(function(){U1Y(P,c.playerResponse);oE(B,c)}):oE(B,c)};
qSl=function(B){if(B=B.root.data){var c=_.cp().resolve(d1I);B.endpoint&&(B.response&&c.handleResponse(B.response,void 0,document.querySelector("ytd-app")),B.playerResponse&&c.handleResponse(B.playerResponse),B.reelWatchSequenceResponse&&c.handleResponse(B.reelWatchSequenceResponse))}};
C0X=function(B){var c,x,P,Y,g,k;return _.X(function(n){switch(n.nextAddress){case 1:c=window;if(!c.getDataPromise){n.jumpTo(2);break}_.kM(n,3);return _.K(n,c.getDataPromise(),5);case 5:x=n.yieldResult;fC(B,x);_.Gw(n,4);break;case 3:return _.be(n),_.K(n,IE(),6);case 6:P=n.yieldResult,oE(B,P);case 4:return n.return();case 2:if(!_.T("sw_nav_preload_pbj")){n.jumpTo(7);break}c.fetchInitialData=function(){var b;return _.X(function(d){if(d.nextAddress==1)return _.K(d,IE(),2);b=d.yieldResult;oE(B,b);_.Kq(d)})};
if(c.getInitialData){c.loadInitialData=function(b){fC(B,b)};
Y=c.getInitialData();c.getInitialData=void 0;fC(B,Y);n.jumpTo(8);break}c.fetchInitialData=void 0;return _.K(n,IE(),9);case 9:g=n.yieldResult,oE(B,g);case 8:return n.return();case 7:c.getInitialData?(k=c.getInitialData(),c.getInitialData=void 0,fC(B,k)):c.loadInitialData=function(b){fC(B,b)},_.Kq(n)}})};
hxl=function(B){var c=0;return function(){return c<B.length?{done:!1,value:B[c++]}:{done:!0}}};
m1d=typeof Object.defineProperties=="function"?Object.defineProperty:function(B,c,x){if(B==Array.prototype||B==Object.prototype)return B;B[c]=x.value;return B};
TSl=function(B){B=["object"==typeof globalThis&&globalThis,B,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<B.length;++c){var x=B[c];if(x&&x.Math==Math)return x}throw Error("a");};
_.AJ=TSl(this);iU=function(B,c){if(c)a:{var x=_.AJ;B=B.split(".");for(var P=0;P<B.length-1;P++){var Y=B[P];if(!(Y in x))break a;x=x[Y]}B=B[B.length-1];P=x[B];c=c(P);c!=P&&c!=null&&m1d(x,B,{configurable:!0,writable:!0,value:c})}};
iU("Symbol",function(B){if(B)return B;var c=function(g,k){this.$jscomp$symbol$id_=g;m1d(this,"description",{configurable:!0,writable:!0,value:k})};
c.prototype.toString=function(){return this.$jscomp$symbol$id_};
var x="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",P=0,Y=function(g){if(this instanceof Y)throw new TypeError("b");return new c(x+(g||"")+"_"+P++,g)};
return Y});
iU("Symbol.iterator",function(B){if(B)return B;B=Symbol("c");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x<c.length;x++){var P=_.AJ[c[x]];typeof P==="function"&&typeof P.prototype[B]!="function"&&m1d(P.prototype,B,{configurable:!0,writable:!0,value:function(){return VtY(hxl(this))}})}return B});
iU("Symbol.asyncIterator",function(B){return B?B:Symbol("d")});
var VtY=function(B){B={next:B};B[Symbol.iterator]=function(){return this};
return B},ttl=typeof Object.create=="function"?Object.create:function(B){var c=function(){};
c.prototype=B;return new c},w9w=function(){function B(){function x(){}
new x;Reflect.construct(x,[],function(){});
return new x instanceof x}
if(typeof Reflect!="undefined"&&Reflect.construct){if(B())return Reflect.construct;var c=Reflect.construct;return function(x,P,Y){x=c(x,P);Y&&Reflect.setPrototypeOf(x,Y.prototype);return x}}return function(x,P,Y){Y===void 0&&(Y=x);
Y=ttl(Y.prototype||Object.prototype);return Function.prototype.apply.call(x,Y,P)||Y}}(),NSQ;
if(typeof Object.setPrototypeOf=="function")NSQ=Object.setPrototypeOf;else{var IHo;a:{var JLl={a:!0},W6x={};try{W6x.__proto__=JLl;IHo=W6x.a;break a}catch(B){}IHo=!1}NSQ=IHo?function(B,c){B.__proto__=c;if(B.__proto__!==c)throw new TypeError("e`"+B);return B}:null}AE=NSQ;
_.w=function(B,c){B.prototype=ttl(c.prototype);B.prototype.constructor=B;if(AE)AE(B,c);else for(var x in c)if(x!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(c,x);P&&Object.defineProperty(B,x,P)}else B[x]=c[x];B.superClass_=c.prototype};
_.p=function(B){var c=typeof Symbol!="undefined"&&Symbol.iterator&&B[Symbol.iterator];if(c)return c.call(B);if(typeof B.length=="number")return{next:hxl(B)};throw Error("f`"+String(B));};
uW=function(B){for(var c,x=[];!(c=B.next()).done;)x.push(c.value);return x};
_.wq=function(B){return B instanceof Array?B:uW(_.p(B))};
_.r2=function(B){return uU(B,B)};
uU=function(B,c){B.raw=c;Object.freeze&&(Object.freeze(B),Object.freeze(c));return B};
RE=function(B,c){return Object.prototype.hasOwnProperty.call(B,c)};
lHO=typeof Object.assign=="function"?Object.assign:function(B,c){for(var x=1;x<arguments.length;x++){var P=arguments[x];if(P)for(var Y in P)RE(P,Y)&&(B[Y]=P[Y])}return B};
iU("Object.assign",function(B){return B||lHO});
var EQQ=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},OJI=function(B){if(B.isRunning_)throw new TypeError("h");
B.isRunning_=!0};
EQQ.prototype.JSC$6785_next_=function(B){this.yieldResult=B};
var oQI=function(B,c){B.abruptCompletion_={exception:c,isException:!0};B.nextAddress=B.catchAddress_||B.finallyAddress_};
EQQ.prototype.return=function(B){this.abruptCompletion_={return:B};this.nextAddress=this.finallyAddress_};
_.K=function(B,c,x){B.nextAddress=x;return{value:c}};
EQQ.prototype.jumpTo=function(B){this.nextAddress=B};
_.Kq=function(B){B.nextAddress=0};
_.kM=function(B,c,x){B.catchAddress_=c;x!=void 0&&(B.finallyAddress_=x)};
_.$M=function(B,c){B.catchAddress_=0;B.finallyAddress_=c||0};
_.Gw=function(B,c,x){B.nextAddress=c;B.catchAddress_=x||0};
_.be=function(B,c){B.catchAddress_=c||0;c=B.abruptCompletion_.exception;B.abruptCompletion_=null;return c};
_.Xt=function(B,c,x,P){P?B.finallyContexts_[P]=B.abruptCompletion_:B.finallyContexts_=[B.abruptCompletion_];B.catchAddress_=c||0;B.finallyAddress_=x||0};
_.nq=function(B,c,x){x=B.finallyContexts_.splice(x||0)[0];(x=B.abruptCompletion_=B.abruptCompletion_||x)?x.isException?B.nextAddress=B.catchAddress_||B.finallyAddress_:x.jumpTo!=void 0&&B.finallyAddress_<x.jumpTo?(B.nextAddress=x.jumpTo,B.abruptCompletion_=null):B.nextAddress=B.finallyAddress_:B.nextAddress=c};
QPq=function(B){this.JSC$6790_context_=new EQQ;this.program_=B};
vQ7=function(B,c){OJI(B.JSC$6790_context_);var x=B.JSC$6790_context_.yieldAllIterator_;if(x)return F6O(B,"return"in x?x["return"]:function(P){return{value:P,done:!0}},c,B.JSC$6790_context_.return);
B.JSC$6790_context_.return(c);return eX(B)};
F6O=function(B,c,x,P){try{var Y=c.call(B.JSC$6790_context_.yieldAllIterator_,x);if(!(Y instanceof Object))throw new TypeError("g`"+Y);if(!Y.done)return B.JSC$6790_context_.isRunning_=!1,Y;var g=Y.value}catch(k){return B.JSC$6790_context_.yieldAllIterator_=null,oQI(B.JSC$6790_context_,k),eX(B)}B.JSC$6790_context_.yieldAllIterator_=null;P.call(B.JSC$6790_context_,g);return eX(B)};
eX=function(B){for(;B.JSC$6790_context_.nextAddress;)try{var c=B.program_(B.JSC$6790_context_);if(c)return B.JSC$6790_context_.isRunning_=!1,{value:c.value,done:!1}}catch(x){B.JSC$6790_context_.yieldResult=void 0,oQI(B.JSC$6790_context_,x)}B.JSC$6790_context_.isRunning_=!1;if(B.JSC$6790_context_.abruptCompletion_){c=B.JSC$6790_context_.abruptCompletion_;B.JSC$6790_context_.abruptCompletion_=null;if(c.isException)throw c.exception;return{value:c.return,done:!0}}return{value:void 0,done:!0}};
zxq=function(B){this.next=function(c){OJI(B.JSC$6790_context_);B.JSC$6790_context_.yieldAllIterator_?c=F6O(B,B.JSC$6790_context_.yieldAllIterator_.next,c,B.JSC$6790_context_.JSC$6785_next_):(B.JSC$6790_context_.JSC$6785_next_(c),c=eX(B));return c};
this.throw=function(c){OJI(B.JSC$6790_context_);B.JSC$6790_context_.yieldAllIterator_?c=F6O(B,B.JSC$6790_context_.yieldAllIterator_["throw"],c,B.JSC$6790_context_.JSC$6785_next_):(oQI(B.JSC$6790_context_,c),c=eX(B));return c};
this.return=function(c){return vQ7(B,c)};
this[Symbol.iterator]=function(){return this}};
_.Y_C=function(B,c){c=new zxq(new QPq(c));AE&&B.prototype&&AE(c,B.prototype);return c};
SSO=function(B){function c(P){return B.next(P)}
function x(P){return B.throw(P)}
return new Promise(function(P,Y){function g(k){k.done?P(k.value):Promise.resolve(k.value).then(c,x).then(g,Y)}
g(B.next())})};
_.X=function(B){return SSO(new zxq(new QPq(B)))};
Z$o=function(B){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return B};
this.next=function(c){return Promise.resolve(B.next(c))};
this["throw"]=function(c){return new Promise(function(x,P){var Y=B["throw"];Y!==void 0?x(Y.call(B,c)):(x=B["return"],x!==void 0&&x.call(B),P(new TypeError("i")))})};
B["return"]!==void 0&&(this["return"]=function(c){return Promise.resolve(B["return"](c))})};
_.ts=function(){for(var B=Number(this),c=[],x=B;x<arguments.length;x++)c[x-B]=arguments[x];return c};
_.aQq=function(B){return B};
iU("globalThis",function(B){return B||_.AJ});
iU("Reflect",function(B){return B?B:{}});
iU("Reflect.construct",function(){return w9w});
iU("Reflect.setPrototypeOf",function(B){return B?B:AE?function(c,x){try{return AE(c,x),!0}catch(P){return!1}}:null});
iU("Promise",function(B){function c(){this.batch_=null}
function x(k){return k instanceof Y?k:new Y(function(n){n(k)})}
if(B&&(typeof _.AJ.PromiseRejectionEvent!=="undefined"||!_.AJ.Promise||_.AJ.Promise.toString().indexOf("[native code]")===-1))return B;c.prototype.asyncExecute=function(k){if(this.batch_==null){this.batch_=[];var n=this;this.asyncExecuteFunction(function(){n.executeBatch_()})}this.batch_.push(k)};
var P=_.AJ.setTimeout;c.prototype.asyncExecuteFunction=function(k){P(k,0)};
c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var n=0;n<k.length;++n){var b=k[n];k[n]=null;try{b()}catch(d){this.asyncThrow_(d)}}}this.batch_=null};
c.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};
var Y=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var n=this.createResolveAndReject_();try{k(n.resolve,n.reject)}catch(b){n.reject(b)}};
Y.prototype.createResolveAndReject_=function(){function k(d){return function(q){b||(b=!0,d.call(n,q))}}
var n=this,b=!1;return{resolve:k(this.resolveTo_),reject:k(this.JSC$6806_reject_)}};
Y.prototype.resolveTo_=function(k){if(k===this)this.JSC$6806_reject_(new TypeError("j"));else if(k instanceof Y)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var n=k!=null;break a;case "function":n=!0;break a;default:n=!1}n?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};
Y.prototype.resolveToNonPromiseObj_=function(k){var n=void 0;try{n=k.then}catch(b){this.JSC$6806_reject_(b);return}typeof n=="function"?this.settleSameAsThenable_(n,k):this.fulfill_(k)};
Y.prototype.JSC$6806_reject_=function(k){this.settle_(2,k)};
Y.prototype.fulfill_=function(k){this.settle_(1,k)};
Y.prototype.settle_=function(k,n){if(this.state_!=0)throw Error("k`"+k+"`"+n+"`"+this.state_);this.state_=k;this.result_=n;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Y.prototype.scheduleUnhandledRejectionCheck_=function(){var k=this;P(function(){if(k.notifyUnhandledRejection_()){var n=_.AJ.console;typeof n!=="undefined"&&n.error(k.result_)}},1)};
Y.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var k=_.AJ.CustomEvent,n=_.AJ.Event,b=_.AJ.dispatchEvent;if(typeof b==="undefined")return!0;typeof k==="function"?k=new k("unhandledrejection",{cancelable:!0}):typeof n==="function"?k=new n("unhandledrejection",{cancelable:!0}):(k=_.AJ.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.result_;return b(k)};
Y.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var k=0;k<this.onSettledCallbacks_.length;++k)g.asyncExecute(this.onSettledCallbacks_[k]);this.onSettledCallbacks_=null}};
var g=new c;Y.prototype.settleSameAsPromise_=function(k){var n=this.createResolveAndReject_();k.callWhenSettled_(n.resolve,n.reject)};
Y.prototype.settleSameAsThenable_=function(k,n){var b=this.createResolveAndReject_();try{k.call(n,b.resolve,b.reject)}catch(d){b.reject(d)}};
Y.prototype.then=function(k,n){function b(h,V){return typeof h=="function"?function(N){try{d(h(N))}catch(l){q(l)}}:V}
var d,q,C=new Y(function(h,V){d=h;q=V});
this.callWhenSettled_(b(k,d),b(n,q));return C};
Y.prototype.catch=function(k){return this.then(void 0,k)};
Y.prototype.callWhenSettled_=function(k,n){function b(){switch(d.state_){case 1:k(d.result_);break;case 2:n(d.result_);break;default:throw Error("l`"+d.state_);}}
var d=this;this.onSettledCallbacks_==null?g.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
Y.resolve=x;Y.reject=function(k){return new Y(function(n,b){b(k)})};
Y.race=function(k){return new Y(function(n,b){for(var d=_.p(k),q=d.next();!q.done;q=d.next())x(q.value).callWhenSettled_(n,b)})};
Y.all=function(k){var n=_.p(k),b=n.next();return b.done?x([]):new Y(function(d,q){function C(N){return function(l){h[N]=l;V--;V==0&&d(h)}}
var h=[],V=0;do h.push(void 0),V++,x(b.value).callWhenSettled_(C(h.length-1),q),b=n.next();while(!b.done)})};
return Y});
var BG=function(B,c,x){if(B==null)throw new TypeError("m`"+x);if(c instanceof RegExp)throw new TypeError("n`"+x);return B+""};
iU("String.prototype.startsWith",function(B){return B?B:function(c,x){var P=BG(this,c,"startsWith"),Y=P.length,g=c.length;x=Math.max(0,Math.min(x|0,P.length));for(var k=0;k<g&&x<Y;)if(P[x++]!=c[k++])return!1;return k>=g}});
iU("Object.setPrototypeOf",function(B){return B||AE});
iU("Symbol.dispose",function(B){return B?B:Symbol("o")});
iU("SuppressedError",function(B){function c(x,P,Y){if(!(this instanceof c))return new c(x,P,Y);Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.message=Y.message;this.error=x;this.suppressed=P}
if(B)return B;_.w(c,Error);c.prototype.name="SuppressedError";return c});
var yLA=function(B,c,x){B instanceof String&&(B=String(B));for(var P=B.length,Y=0;Y<P;Y++){var g=B[Y];if(c.call(x,g,Y,B))return{i:Y,v:g}}return{i:-1,v:void 0}};
iU("Array.prototype.find",function(B){return B?B:function(c,x){return yLA(this,c,x).v}});
iU("WeakMap",function(B){function c(){}
function x(b){var d=typeof b;return d==="object"&&b!==null||d==="function"}
function P(b){if(!RE(b,g)){var d=new c;m1d(b,g,{value:d})}}
function Y(b){var d=Object[b];d&&(Object[b]=function(q){if(q instanceof c)return q;Object.isExtensible(q)&&P(q);return d(q)})}
if(function(){if(!B||!Object.seal)return!1;try{var b=Object.seal({}),d=Object.seal({}),q=new B([[b,2],[d,3]]);if(q.get(b)!=2||q.get(d)!=3)return!1;q.delete(b);q.set(d,4);return!q.has(b)&&q.get(d)==4}catch(C){return!1}}())return B;
var g="$jscomp_hidden_"+Math.random();Y("freeze");Y("preventExtensions");Y("seal");var k=0,n=function(b){this.JSC$6813_id_=(k+=Math.random()+1).toString();if(b){b=_.p(b);for(var d;!(d=b.next()).done;)d=d.value,this.set(d[0],d[1])}};
n.prototype.set=function(b,d){if(!x(b))throw Error("p");P(b);if(!RE(b,g))throw Error("q`"+b);b[g][this.JSC$6813_id_]=d;return this};
n.prototype.get=function(b){return x(b)&&RE(b,g)?b[g][this.JSC$6813_id_]:void 0};
n.prototype.has=function(b){return x(b)&&RE(b,g)&&RE(b[g],this.JSC$6813_id_)};
n.prototype.delete=function(b){return x(b)&&RE(b,g)&&RE(b[g],this.JSC$6813_id_)?delete b[g][this.JSC$6813_id_]:!1};
return n});
iU("Map",function(B){if(function(){if(!B||typeof B!="function"||!B.prototype.entries||typeof Object.seal!="function")return!1;try{var n=Object.seal({x:4}),b=new B(_.p([[n,"s"]]));if(b.get(n)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var d=b.entries(),q=d.next();if(q.done||q.value[0]!=n||q.value[1]!="s")return!1;q=d.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!d.next().done?!1:!0}catch(C){return!1}}())return B;
var c=new WeakMap,x=function(n){this[0]={};this[1]=g();this.size=0;if(n){n=_.p(n);for(var b;!(b=n.next()).done;)b=b.value,this.set(b[0],b[1])}};
x.prototype.set=function(n,b){n=n===0?0:n;var d=P(this,n);d.list||(d.list=this[0][d.id]=[]);d.entry?d.entry.value=b:(d.entry={next:this[1],previous:this[1].previous,head:this[1],key:n,value:b},d.list.push(d.entry),this[1].previous.next=d.entry,this[1].previous=d.entry,this.size++);return this};
x.prototype.delete=function(n){n=P(this,n);return n.entry&&n.list?(n.list.splice(n.index,1),n.list.length||delete this[0][n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,!0):!1};
x.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
x.prototype.has=function(n){return!!P(this,n).entry};
x.prototype.get=function(n){return(n=P(this,n).entry)&&n.value};
x.prototype.entries=function(){return Y(this,function(n){return[n.key,n.value]})};
x.prototype.keys=function(){return Y(this,function(n){return n.key})};
x.prototype.values=function(){return Y(this,function(n){return n.value})};
x.prototype.forEach=function(n,b){for(var d=this.entries(),q;!(q=d.next()).done;)q=q.value,n.call(b,q[1],q[0],this)};
x.prototype[Symbol.iterator]=x.prototype.entries;var P=function(n,b){var d=b&&typeof b;d=="object"||d=="function"?c.has(b)?d=c.get(b):(d=""+ ++k,c.set(b,d)):d="p_"+b;var q=n[0][d];if(q&&RE(n[0],d))for(n=0;n<q.length;n++){var C=q[n];if(b!==b&&C.key!==C.key||b===C.key)return{id:d,list:q,index:n,entry:C}}return{id:d,list:q,index:-1,entry:void 0}},Y=function(n,b){var d=n[1];
return VtY(function(){if(d){for(;d.head!=n[1];)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:b(d)};d=null}return{done:!0,value:void 0}})},g=function(){var n={};
return n.previous=n.next=n.head=n},k=0;
return x});
iU("Set",function(B){if(function(){if(!B||typeof B!="function"||!B.prototype.entries||typeof Object.seal!="function")return!1;try{var x=Object.seal({x:4}),P=new B(_.p([x]));if(!P.has(x)||P.size!=1||P.add(x)!=P||P.size!=1||P.add({x:4})!=P||P.size!=2)return!1;var Y=P.entries(),g=Y.next();if(g.done||g.value[0]!=x||g.value[1]!=x)return!1;g=Y.next();return g.done||g.value[0]==x||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:Y.next().done}catch(k){return!1}}())return B;
var c=function(x){this.JSC$6827_map_=new Map;if(x){x=_.p(x);for(var P;!(P=x.next()).done;)this.add(P.value)}this.size=this.JSC$6827_map_.size};
c.prototype.add=function(x){x=x===0?0:x;this.JSC$6827_map_.set(x,x);this.size=this.JSC$6827_map_.size;return this};
c.prototype.delete=function(x){x=this.JSC$6827_map_.delete(x);this.size=this.JSC$6827_map_.size;return x};
c.prototype.clear=function(){this.JSC$6827_map_.clear();this.size=0};
c.prototype.has=function(x){return this.JSC$6827_map_.has(x)};
c.prototype.entries=function(){return this.JSC$6827_map_.entries()};
c.prototype.values=function(){return this.JSC$6827_map_.values()};
c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(x,P){var Y=this;this.JSC$6827_map_.forEach(function(g){return x.call(P,g,g,Y)})};
return c});
iU("Math.log2",function(B){return B?B:function(c){return Math.log(c)/Math.LN2}});
iU("Object.values",function(B){return B?B:function(c){var x=[],P;for(P in c)RE(c,P)&&x.push(c[P]);return x}});
iU("Object.is",function(B){return B?B:function(c,x){return c===x?c!==0||1/c===1/x:c!==c&&x!==x}});
iU("Array.prototype.includes",function(B){return B?B:function(c,x){var P=this;P instanceof String&&(P=String(P));var Y=P.length;x=x||0;for(x<0&&(x=Math.max(x+Y,0));x<Y;x++){var g=P[x];if(g===c||Object.is(g,c))return!0}return!1}});
iU("String.prototype.includes",function(B){return B?B:function(c,x){return BG(this,c,"includes").indexOf(c,x||0)!==-1}});
iU("Array.from",function(B){return B?B:function(c,x,P){x=x!=null?x:function(n){return n};
var Y=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(typeof g=="function"){c=g.call(c);for(var k=0;!(g=c.next()).done;)Y.push(x.call(P,g.value,k++))}else for(g=c.length,k=0;k<g;k++)Y.push(x.call(P,c[k],k));return Y}});
iU("Object.entries",function(B){return B?B:function(c){var x=[],P;for(P in c)RE(c,P)&&x.push([P,c[P]]);return x}});
iU("Number.isFinite",function(B){return B?B:function(c){return typeof c!=="number"?!1:!isNaN(c)&&c!==Infinity&&c!==-Infinity}});
iU("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
iU("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
iU("Number.isInteger",function(B){return B?B:function(c){return Number.isFinite(c)?c===Math.floor(c):!1}});
iU("Number.isSafeInteger",function(B){return B?B:function(c){return Number.isInteger(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER}});
iU("String.prototype.endsWith",function(B){return B?B:function(c,x){var P=BG(this,c,"endsWith");x===void 0&&(x=P.length);x=Math.max(0,Math.min(x|0,P.length));for(var Y=c.length;Y>0&&x>0;)if(P[--x]!=c[--Y])return!1;return Y<=0}});
var G9l=function(B,c){B instanceof String&&(B+="");var x=0,P=!1,Y={next:function(){if(!P&&x<B.length){var g=x++;return{value:c(g,B[g]),done:!1}}P=!0;return{done:!0,value:void 0}}};
Y[Symbol.iterator]=function(){return Y};
return Y};
iU("Array.prototype.entries",function(B){return B?B:function(){return G9l(this,function(c,x){return[c,x]})}});
iU("Math.trunc",function(B){return B?B:function(c){c=Number(c);if(isNaN(c)||c===Infinity||c===-Infinity||c===0)return c;var x=Math.floor(Math.abs(c));return c<0?-x:x}});
iU("Number.isNaN",function(B){return B?B:function(c){return typeof c==="number"&&isNaN(c)}});
iU("Array.prototype.keys",function(B){return B?B:function(){return G9l(this,function(c){return c})}});
iU("Array.prototype.values",function(B){return B?B:function(){return G9l(this,function(c,x){return x})}});
iU("Array.prototype.fill",function(B){return B?B:function(c,x,P){var Y=this.length||0;x<0&&(x=Math.max(0,Y+x));if(P==null||P>Y)P=Y;P=Number(P);P<0&&(P=Math.max(0,Y+P));for(x=Number(x||0);x<P;x++)this[x]=c;return this}});
var cG=function(B){return B?B:Array.prototype.fill};
iU("Int8Array.prototype.fill",cG);iU("Uint8Array.prototype.fill",cG);iU("Uint8ClampedArray.prototype.fill",cG);iU("Int16Array.prototype.fill",cG);iU("Uint16Array.prototype.fill",cG);iU("Int32Array.prototype.fill",cG);iU("Uint32Array.prototype.fill",cG);iU("Float32Array.prototype.fill",cG);iU("Float64Array.prototype.fill",cG);
iU("Object.fromEntries",function(B){return B?B:function(c){var x={};if(!(Symbol.iterator in c))throw new TypeError("r`"+c);c=c[Symbol.iterator].call(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;if(Object(P)!==P)throw new TypeError("s");x[P[0]]=P[1]}return x}});
iU("String.prototype.replaceAll",function(B){return B?B:function(c,x){if(c instanceof RegExp&&!c.global)throw new TypeError("t");return c instanceof RegExp?this.replace(c,x):this.replace(new RegExp(String(c).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),x)}});
iU("Object.getOwnPropertySymbols",function(B){return B?B:function(){return[]}});
iU("String.prototype.repeat",function(B){return B?B:function(c){var x=BG(this,null,"repeat");if(c<0||c>1342177279)throw new RangeError("u");c|=0;for(var P="";c;)if(c&1&&(P+=x),c>>>=1)x+=x;return P}});
iU("Array.prototype.findIndex",function(B){return B?B:function(c,x){return yLA(this,c,x).i}});
iU("Array.prototype.flatMap",function(B){return B?B:function(c,x){var P=[];Array.prototype.forEach.call(this,function(Y,g){Y=c.call(x,Y,g,this);Array.isArray(Y)?P.push.apply(P,Y):P.push(Y)});
return P}});
iU("String.prototype.codePointAt",function(B){return B?B:function(c){var x=BG(this,null,"codePointAt"),P=x.length;c=Number(c)||0;if(c>=0&&c<P){c|=0;var Y=x.charCodeAt(c);if(Y<55296||Y>56319||c+1===P)return Y;c=x.charCodeAt(c+1);return c<56320||c>57343?Y:(Y-55296)*1024+c+9216}}});
iU("String.fromCodePoint",function(B){return B?B:function(c){for(var x="",P=0;P<arguments.length;P++){var Y=Number(arguments[P]);if(Y<0||Y>1114111||Y!==Math.floor(Y))throw new RangeError("v`"+Y);Y<=65535?x+=String.fromCharCode(Y):(Y-=65536,x+=String.fromCharCode(Y>>>10&1023|55296),x+=String.fromCharCode(Y&1023|56320))}return x}});
iU("String.prototype.padStart",function(B){return B?B:function(c,x){var P=BG(this,null,"padStart");c-=P.length;x=x!==void 0?String(x):" ";return(c>0&&x?x.repeat(Math.ceil(c/x.length)).substring(0,c):"")+P}});
iU("Promise.prototype.finally",function(B){return B?B:function(c){return this.then(function(x){return Promise.resolve(c()).then(function(){return x})},function(x){return Promise.resolve(c()).then(function(){throw x;
})})}});
iU("Math.imul",function(B){return B?B:function(c,x){c=Number(c);x=Number(x);var P=c&65535,Y=x&65535;return P*Y+((c>>>16&65535)*Y+P*(x>>>16&65535)<<16>>>0)|0}});
iU("Object.hasOwn",function(B){return B?B:function(c,x){return Object.prototype.hasOwnProperty.call(c,x)}});
iU("Math.sign",function(B){return B?B:function(c){c=Number(c);return c===0||isNaN(c)?c:c>0?1:-1}});
iU("Array.prototype.flat",function(B){return B?B:function(c){c=c===void 0?1:c;var x=[];Array.prototype.forEach.call(this,function(P){Array.isArray(P)&&c>0?(P=Array.prototype.flat.call(P,c-1),x.push.apply(x,P)):x.push(P)});
return x}});
iU("String.raw",function(B){return B?B:function(c,x){if(c==null)throw new TypeError("w");for(var P=c.raw,Y=P.length,g="",k=0;k<Y;++k)g+=P[k],k+1<Y&&k+1<arguments.length&&(g+=String(arguments[k+1]));return g}});
iU("Reflect.ownKeys",function(B){return B?B:function(c){var x=[],P=Object.getOwnPropertyNames(c);c=Object.getOwnPropertySymbols(c);for(var Y=0;Y<P.length;Y++)(P[Y].substring(0,14)=="jscomp_symbol_"?c:x).push(P[Y]);return x.concat(c)}});
iU("Object.getOwnPropertyDescriptors",function(B){return B?B:function(c){for(var x={},P=Reflect.ownKeys(c),Y=0;Y<P.length;Y++)x[P[Y]]=Object.getOwnPropertyDescriptor(c,P[Y]);return x}});
iU("WeakSet",function(B){if(function(){if(!B||!Object.seal)return!1;try{var x=Object.seal({}),P=Object.seal({}),Y=new B([x]);if(!Y.has(x)||Y.has(P))return!1;Y.delete(x);Y.add(P);return!Y.has(x)&&Y.has(P)}catch(g){return!1}}())return B;
var c=function(x){this.JSC$6834_map_=new WeakMap;if(x){x=_.p(x);for(var P;!(P=x.next()).done;)this.add(P.value)}};
c.prototype.add=function(x){this.JSC$6834_map_.set(x,!0);return this};
c.prototype.has=function(x){return this.JSC$6834_map_.has(x)};
c.prototype.delete=function(x){return this.JSC$6834_map_.delete(x)};
return c});
iU("Promise.allSettled",function(B){function c(P){return{status:"fulfilled",value:P}}
function x(P){return{status:"rejected",reason:P}}
return B?B:function(P){var Y=this;P=Array.from(P,function(g){return Y.resolve(g).then(c,x)});
return Y.all(P)}});
iU("Number.parseInt",function(B){return B||parseInt});
_._DumpException=window._DumpException||function(B){throw B;};
window._DumpException=_._DumpException;var MtA,xV,PG,YV,L6Q,ZJY,HJ$,fH7,iz,iJ7;MtA=MtA||{};_.xI=this||self;_.rr=function(B,c,x){B=B.split(".");x=x||_.xI;for(var P;B.length&&(P=B.shift());)B.length||c===void 0?x[P]&&x[P]!==Object.prototype[P]?x=x[P]:x=x[P]={}:x[P]=c};
xV=function(B){var c=_.Gu("WIZ_global_data.oxN3nb");B=c&&c[B];return B!=null?B:!1};
PG=_.xI._F_toggles_default_kevlar_base||[];YV=function(){};
YV.get=function(){return null};
_.Gu=function(B,c){B=B.split(".");c=c||_.xI;for(var x=0;x<B.length;x++)if(c=c[B[x]],c==null)return null;return c};
_.ag=function(B){B.instance_=void 0;B.getInstance=function(){return B.instance_?B.instance_:B.instance_=new B}};
_.nA=function(B){var c=typeof B;return c!="object"?c:B?Array.isArray(B)?"array":c:"null"};
_.R7=function(B){var c=_.nA(B);return c=="array"||c=="object"&&typeof B.length=="number"};
_.xF=function(B){var c=typeof B;return c=="object"&&B!=null||c=="function"};
_.Py=function(B){return Object.prototype.hasOwnProperty.call(B,L6Q)&&B[L6Q]||(B[L6Q]=++ZJY)};
L6Q="closure_uid_"+(Math.random()*1E9>>>0);ZJY=0;HJ$=function(B,c,x){return B.call.apply(B.bind,arguments)};
fH7=function(B,c,x){if(!B)throw Error();if(arguments.length>2){var P=Array.prototype.slice.call(arguments,2);return function(){var Y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Y,P);return B.apply(c,Y)}}return function(){return B.apply(c,arguments)}};
_.wf=function(B,c,x){_.wf=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?HJ$:fH7;return _.wf.apply(null,arguments)};
_.q9=function(B,c){var x=Array.prototype.slice.call(arguments,1);return function(){var P=x.slice();P.push.apply(P,arguments);return B.apply(this,P)}};
_.gQ=function(){return Date.now()};
iz=function(B){return B};
_.sZ=function(B,c){function x(){}
x.prototype=c.prototype;B.superClass_=c.prototype;B.prototype=new x;B.prototype.constructor=B;B.base=function(P,Y,g){for(var k=Array(arguments.length-2),n=2;n<arguments.length;n++)k[n-2]=arguments[n];return c.prototype[Y].apply(P,k)}};
iJ7=function(B){return B};var AL7,uG7;_.L=function(B,c,x,P){var Y=arguments.length,g=Y<3?c:P===null?P=Object.getOwnPropertyDescriptor(c,x):P,k;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(B,c,x,P);else for(var n=B.length-1;n>=0;n--)if(k=B[n])g=(Y<3?k(g):Y>3?k(c,x,g):k(c,x))||g;Y>3&&g&&Object.defineProperty(c,x,g)};
_.H=function(B,c){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(B,c)};
AL7=function(B,c){if(c!==null&&c!==void 0){if(typeof c!=="object"&&typeof c!=="function")throw new TypeError("x");if(x===void 0){if(!Symbol.dispose)throw new TypeError("z");var x=c[Symbol.dispose]}if(typeof x!=="function")throw new TypeError("A");B.stack.push({value:c,dispose:x,async:!1})}return c};
uG7=function(B){function c(g){B.error=B.hasError?new SuppressedError(g,B.error,"An error was suppressed during disposal."):g;B.hasError=!0}
function x(){for(;P=B.stack.pop();)try{if(!P.async&&Y===1)return Y=0,B.stack.push(P),Promise.resolve().then(x);if(P.dispose){var g=P.dispose.call(P.value);if(P.async)return Y|=2,Promise.resolve(g).then(x,function(k){c(k);return x()})}else Y|=1}catch(k){c(k)}if(Y===1)return B.hasError?Promise.reject(B.error):Promise.resolve();
if(B.hasError)throw B.error;}
var P,Y=0;x()};_.sZ(_.B$,Error);_.B$.prototype.name="CustomError";var D1x;var rLl=void 0,Rxw,exX=typeof TextDecoder!=="undefined",PXl,xY7=typeof String.prototype.isWellFormed==="function",co$=typeof TextEncoder!=="undefined";var Buw;_.V_=function(B){for(var c=[],x=0,P=0;P<B.length;P++){var Y=B.charCodeAt(P);Y<128?c[x++]=Y:(Y<2048?c[x++]=Y>>6|192:((Y&64512)==55296&&P+1<B.length&&(B.charCodeAt(P+1)&64512)==56320?(Y=65536+((Y&1023)<<10)+(B.charCodeAt(++P)&1023),c[x++]=Y>>18|240,c[x++]=Y>>12&63|128):c[x++]=Y>>12|224,c[x++]=Y>>6&63|128),c[x++]=Y&63|128)}return c};
Buw=function(B){for(var c=[],x=0,P=0;x<B.length;){var Y=B[x++];if(Y<128)c[P++]=String.fromCharCode(Y);else if(Y>191&&Y<224){var g=B[x++];c[P++]=String.fromCharCode((Y&31)<<6|g&63)}else if(Y>239&&Y<365){g=B[x++];var k=B[x++],n=B[x++];Y=((Y&7)<<18|(g&63)<<12|(k&63)<<6|n&63)-65536;c[P++]=String.fromCharCode(55296+(Y>>10));c[P++]=String.fromCharCode(56320+(Y&1023))}else g=B[x++],k=B[x++],c[P++]=String.fromCharCode((Y&15)<<12|(g&63)<<6|k&63)}return c.join("")};var bX=String.prototype.trim?function(B){return B.trim()}:function(B){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(B)[1]},cqX=/&/g,xGw=/</g,PoO=/>/g,YKw=/"/g,a2I=/'/g,geO=/\x00/g,s4x=/[\x00&<>"']/;var pY=!!(PG[0]>>14&1),pOY=!!(PG[0]>>15&1),kfl=!!(PG[0]&8),XO7=!!(PG[0]&2),$GA=!!(PG[0]&4),neq=!!(PG[0]&16);var qY=pY?pOY:xV(610401301),bTl=pY?kfl:xV(772657768),KdI=pY?XO7:xV(513659523),j4$=pY?$GA:xV(568333945),pxY=pY?neq:xV(1331761403);var Cx,UG7=_.xI.navigator;Cx=UG7?UG7.userAgentData||null:null;var fp;_.G7=function(B,c){return Array.prototype.indexOf.call(B,c,void 0)};
_.Zg=function(B,c,x){Array.prototype.forEach.call(B,c,x)};
_.kV=function(B,c,x){return Array.prototype.filter.call(B,c,x)};
_.I3=function(B,c,x){return Array.prototype.map.call(B,c,x)};
fp=function(B,c,x){return Array.prototype.some.call(B,c,x)};
_.ZQx=function(B,c,x){return Array.prototype.every.call(B,c,x)};var X8=function(B){X8[" "](B);return B};
X8[" "]=function(){};
var Ed=function(B,c){try{return X8(B[c]),!0}catch(x){}return!1},baq=function(B,c,x,P){P=P?P(c):c;
return Object.prototype.hasOwnProperty.call(B,P)?B[P]:B[P]=x(c)};var dGx,up,qKl,Coo,mG$,TuA,AB7,VN$,tNw,wO$,GhY,I2$,Jq$,OT7,oex,Q4C;_.QMd=function(){return _.xI.navigator||null};
dGx=NY();_.$V=gII();up=Vw("Edge");qKl=up||_.$V;_.nY=Vw("Gecko")&&!(_.nx(_.dC(),"WebKit")&&!Vw("Edge"))&&!(Vw("Trident")||Vw("MSIE"))&&!Vw("Edge");_.bJ=_.nx(_.dC(),"WebKit")&&!Vw("Edge");Coo=_.bJ&&Vw("Mobile");_.hal=_.KqC();mG$=_.j7w();TuA=(o7()?Cx.platform==="Linux":Vw("Linux"))||_.UYO();AB7=_.nId();VN$=bxq();tNw=Vw("iPad");wO$=Vw("iPod");_.Nu7=_.Qw();GhY=_.nx(_.dC(),"KaiOS");I2$=function(){var B=_.xI.document;return B?B.documentMode:void 0};
a:{var Wdo="",l2w=function(){var B=_.dC();if(_.nY)return/rv:([^\);]+)(\)|;)/.exec(B);if(up)return/Edge\/([\d\.]+)/.exec(B);if(_.$V)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(B);if(_.bJ)return/WebKit\/(\S+)/.exec(B);if(dGx)return/(?:Version)[ \/]?(\S+)/.exec(B)}();
l2w&&(Wdo=l2w?l2w[1]:"");if(_.$V){var Eeo=I2$();if(Eeo!=null&&Eeo>parseFloat(Wdo)){Jq$=String(Eeo);break a}}Jq$=Wdo}OT7=Jq$;oex={};_.KY=function(B){return baq(oex,B,function(){return _.jd(OT7,B)>=0})};
if(_.xI.document&&_.$V){var Fd$=I2$();Q4C=Fd$?Fd$:parseInt(OT7,10)||void 0}else Q4C=void 0;_.veY=Q4C;var js$,Up$,zao;_.j2=I7();js$=bxq()||Vw("iPod");Up$=Vw("iPad");zao=_.p$d();_.UZ=_.lX();_.QY=_.Ol()&&!_.Qw();var SK7,dQ,i6O,i07,Gfd,yqA;SK7={};dQ=null;i6O=_.nY||_.bJ||typeof _.xI.btoa=="function";_.PN=function(B,c){c===void 0&&(c=0);yqA();c=SK7[c];for(var x=Array(Math.floor(B.length/3)),P=c[64]||"",Y=0,g=0;Y<B.length-2;Y+=3){var k=B[Y],n=B[Y+1],b=B[Y+2],d=c[k>>2];k=c[(k&3)<<4|n>>4];n=c[(n&15)<<2|b>>6];b=c[b&63];x[g++]=d+k+n+b}d=0;b=P;switch(B.length-Y){case 2:d=B[Y+1],b=c[(d&15)<<2]||P;case 1:B=B[Y],x[g]=c[B>>2]+c[(B&3)<<4|d>>4]+b+P}return x.join("")};
i07=function(B){var c="";Gfd(B,function(x){c+=String.fromCharCode(x)});
return c};
_.av$=function(B){var c=[];Gfd(B,function(x){c.push(x)});
return c};
_.kF=function(B){var c=B.length,x=c*3/4;x%3?x=Math.floor(x):_.$I("=.",B[c-1])&&(x=_.$I("=.",B[c-2])?x-2:x-1);var P=new Uint8Array(x),Y=0;Gfd(B,function(g){P[Y++]=g});
return Y!==x?P.subarray(0,Y):P};
Gfd=function(B,c){function x(b){for(;P<B.length;){var d=B.charAt(P++),q=dQ[d];if(q!=null)return q;if(!_.sl(d))throw Error("E`"+d);}return b}
yqA();for(var P=0;;){var Y=x(-1),g=x(0),k=x(64),n=x(64);if(n===64&&Y===-1)break;c(Y<<2|g>>4);k!=64&&(c(g<<4&240|k>>2),n!=64&&c(k<<6&192|n))}};
yqA=function(){if(!dQ){dQ={};for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"],x=0;x<5;x++){var P=B.concat(c[x].split(""));SK7[x]=P;for(var Y=0;Y<P.length;Y++){var g=P[Y];dQ[g]===void 0&&(dQ[g]=Y)}}}};var FqQ=typeof Uint8Array!=="undefined",NCx=!_.$V&&typeof btoa==="function",IAO=/[-_.]/g,tdw={"-":"+",_:"/",".":"="},o0={};var O3,LdX;O3=function(B,c){if(c!==o0)throw Error("G");this.JSC$6865_value_=B;if(B!=null&&B.length===0)throw Error("F");};
_.QW=function(){return MNY||(MNY=new O3(null,o0))};
LdX=function(B){return new Uint8Array(O0(B)||0)};
O3.prototype.isEmpty=function(){return this.JSC$6865_value_==null};
O3.prototype.sizeBytes=function(){var B=O0(this);return B?B.length:0};
var O0=function(B){if(o0!==o0)throw Error("G");var c=B.JSC$6865_value_;c=c==null||FqQ&&c!=null&&c instanceof Uint8Array?c:typeof c==="string"?JoA(c):null;return c==null?c:B.JSC$6865_value_=c},MNY;var lAx=void 0;var hn=typeof Symbol==="function"&&typeof Symbol()==="symbol",ZTd=U3("jas",void 0,!0),Hs=U3(void 0,"0di"),JO=U3(void 0,"1oa"),Ac=U3(void 0,Symbol()),lSo=U3(void 0,"0ub"),O47=U3(void 0,"0ubs"),FoX=U3(void 0,"0ubsb"),i4d=U3(void 0,"0actk"),LA=U3("m_m","messagePrototypeMarker",!0),G5O=U3(void 0,"vps"),ISI=U3();var Ox7,EIl,hO,HT$;Ox7={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};EIl=Object.defineProperties;_.mm=hn?ZTd:"internalArrayState";HT$=[];tn(HT$,7);hO=Object.freeze(HT$);var Z8={},Wy={},f2w=function(B,c,x){this.iterable=B;this.mapper=c;this.thisArg=x};
f2w.prototype.next=function(){var B=this.iterable.next();B.done||(B.value=this.mapper.call(this.thisArg,B.value));return B};
f2w.prototype[Symbol.iterator]=function(){return this};
var iTX=Object.freeze({}),z5={};_.AqA=MQ(function(B){return B!==null&&B!==void 0});var G7d=MQ(function(B){return typeof B==="number"}),yox=MQ(function(B){return typeof B==="string"}),Mdw=MQ(function(B){return typeof B==="boolean"}),und=MQ(function(B){return B!=null&&typeof B==="object"&&typeof B.then==="function"}),GI7=MQ(function(B){return typeof B==="function"}),PR=MQ(function(B){return!!B&&(typeof B==="object"||typeof B==="function")});var Hy=typeof _.xI.BigInt==="function"&&typeof _.xI.BigInt(0)==="bigint";var vs=MQ(function(B){return Hy?B>=DGq&&B<=rq$:B[0]==="-"?Lq7(B,Raq):Lq7(B,ead)}),Raq=Number.MIN_SAFE_INTEGER.toString(),DGq=Hy?BigInt(Number.MIN_SAFE_INTEGER):void 0,ead=Number.MAX_SAFE_INTEGER.toString(),rq$=Hy?BigInt(Number.MAX_SAFE_INTEGER):void 0;var BiC=typeof Uint8Array.prototype.slice==="function",DS=0,R0=0,um;var lz,oy,dl,Qr,DYC;lz=typeof BigInt==="function"?BigInt.asIntN:void 0;_.F6=typeof BigInt==="function"?BigInt.asUintN:void 0;oy=Number.isSafeInteger;dl=Number.isFinite;Qr=Math.trunc;DYC=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var MZA={};var wyO={},cpx=function(){try{var B=function(){return w9w(Map,[],this.constructor)};
_.w(B,Map);X8(new B);return!1}catch(c){return!0}}(),qy=function(){this.JSC$6885_map_=new Map};
_.a=qy.prototype;_.a.get=function(B){return this.JSC$6885_map_.get(B)};
_.a.set=function(B,c){this.JSC$6885_map_.set(B,c);this.size=this.JSC$6885_map_.size;return this};
_.a.delete=function(B){B=this.JSC$6885_map_.delete(B);this.size=this.JSC$6885_map_.size;return B};
_.a.clear=function(){this.JSC$6885_map_.clear();this.size=this.JSC$6885_map_.size};
_.a.has=function(B){return this.JSC$6885_map_.has(B)};
_.a.entries=function(){return this.JSC$6885_map_.entries()};
_.a.keys=function(){return this.JSC$6885_map_.keys()};
_.a.values=function(){return this.JSC$6885_map_.values()};
_.a.forEach=function(B,c){return this.JSC$6885_map_.forEach(B,c)};
qy.prototype[Symbol.iterator]=function(){return this.entries()};
var YP=function(){if(cpx)return Object.setPrototypeOf(qy.prototype,Map.prototype),Object.defineProperties(qy.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qy;var B=function(){return w9w(Map,[],this.constructor)};
_.w(B,Map);return B}(),fA=function(B,c,x,P){x=x===void 0?hIX:x;
P=P===void 0?hIX:P;var Y=YP.call(this)||this;Y.arrayState=B[_.mm]|0;Y.valueCtor=c;Y.keyToApi=x;Y.valueToApi=Y.valueCtor?T9l:P;for(var g=0;g<B.length;g++){var k=B[g],n=x(k[0],!1,!0),b=k[1];c?b===void 0&&(b=null):b=P(k[1],!1,!0,void 0,void 0,Y.arrayState);YP.prototype.set.call(Y,n,b)}return Y};
_.w(fA,YP);var xFX=function(B){if(B.arrayState&2)throw Error("K");};
_.a=fA.prototype;_.a.clear=function(){xFX(this);YP.prototype.clear.call(this)};
_.a.delete=function(B){xFX(this);return YP.prototype.delete.call(this,this.keyToApi(B,!0,!1))};
_.a.entries=function(){if(this.valueCtor){var B=YP.prototype.keys.call(this);B=new f2w(B,VZo,this)}else B=YP.prototype.entries.call(this);return B};
_.a.values=function(){if(this.valueCtor){var B=YP.prototype.keys.call(this);B=new f2w(B,fA.prototype.get,this)}else B=YP.prototype.values.call(this);return B};
_.a.forEach=function(B,c){this.valueCtor?YP.prototype.forEach.call(this,function(x,P,Y){B.call(c,Y.get(P),P,Y)}):YP.prototype.forEach.call(this,B,c)};
_.a.set=function(B,c){xFX(this);B=this.keyToApi(B,!0,!1);return B==null?this:c==null?(YP.prototype.delete.call(this,B),this):YP.prototype.set.call(this,B,this.valueToApi(c,!0,!0,this.valueCtor,!1,this.arrayState))};
_.a.has=function(B){return YP.prototype.has.call(this,this.keyToApi(B,!1,!1))};
_.a.get=function(B){B=this.keyToApi(B,!1,!1);var c=YP.prototype.get.call(this,B);if(c!==void 0){var x=this.valueCtor;return x?(x=this.valueToApi(c,!1,!0,x,this.callToMutableOnAccess,this.arrayState),x!==c&&YP.prototype.set.call(this,B,x),x):c}};
fA.prototype[Symbol.iterator]=function(){return this.entries()};
fA.prototype.toJSON=void 0;var tZQ;var Fmq=function(){},ei=function(B,c){for(var x in B)!isNaN(x)&&c(B,+x,B[x])},vFQ=function(B){var c=new Fmq;
ei(B,function(x,P,Y){c[P]=ay(Y)});
c.reviveUnknownFields=B.reviveUnknownFields;return c},Jnq={reviveIntoImmutable:!0};var Q0q;var LmQ,Z4X;var Pxq,tO,KE,CE,YTd,Ny,dU,aiQ,gtw,lJ,sCO,EZ,Ql,F8;Pxq=_.f4(0);_.CY={};_.hd=function(B,c,x,P,Y){c=tO(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,x,Y);if(c!==null||P&&B.noLegacyNull!==Wy)return c};
tO=function(B,c,x,P){if(c===-1)return null;var Y=c+(x?0:-1),g=B.length-1;if(!(g<1+(x?0:-1))){if(Y>=g){var k=B[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){x=k[c];var n=!0}else if(Y===g)x=k;else return}else x=B[Y];if(P&&x!=null){P=P(x);if(P==null)return P;if(!Object.is(P,x))return n?k[c]=P:B[Y]=P,P}return x}};
_.ax=function(B,c,x,P){K$(B);var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q2(Y,Y[_.mm]|0,c,x,P);return B};
_.mF=function(B,c,x){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WN(B,B[_.mm]|0,c,x)!==void 0};
_.To=function(B,c,x,P){var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WN(Y,Y[_.mm]|0,c,CE(B,P,x))!==void 0};
_.xw=function(B){return B===iTX?2:4};
_.Vl=function(B,c){B=_.hd(B,c,void 0,void 0,BlA);return B==null?_.QW():B};
KE=function(B,c,x,P){K$(B);var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=Y[_.mm]|0;if(P==null){var k=xNx(Y);if(Pzq(k,Y,g,x)===c)k.set(x,0);else return B}else g=YFd(Y,g,x,c);q2(Y,g,c,P);return B};
_.td=function(B,c,x,P){var Y=B[_.mm]|0,g=yW(Y);Y=YFd(B,Y,x,c,g);q2(B,Y,c,P,g)};
CE=function(B,c,x){return _.wQ(B,c)===x?x:-1};
_.wQ=function(B,c){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Pzq(xNx(B),B,void 0,c,void 0)};
YTd=function(B,c,x){var P=B[_.mm]|0,Y=yW(P),g=tO(B,x,Y);if(g!=null&&g[LA]===Z8){if(!E3(g))return n$(g),g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(g)&&(k=g);if(k){var n=k[_.mm]|0;n&2&&(k=kP(k,n))}k=p$(k,c,!0);k!==g&&q2(B,P,x,k,Y);return k};
_.PA=function(B,c,x,P){var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=Y[_.mm]|0;c=WN(Y,g,c,x,P);if(c==null)return c;g=Y[_.mm]|0;if(!E3(B,g)){var k=mQq(c);k!==c&&(n$(B)&&(Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=Y[_.mm]|0),c=k,g=q2(Y,g,x,c,P),dt(Y,g))}return c};
_.ch=function(B,c,x,P){var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return a8I(B,Y,Y[_.mm]|0,c,x,P,!1,!0)};
_.Pa=function(B,c,x,P){x=gzQ(x);_.ax(B,c,x,P);x&&!E3(x)&&dt(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return B};
_.YX=function(B,c,x,P){P=gzQ(P);KE(B,c,x,P);P&&!E3(P)&&dt(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return B};
Ny=function(B,c,x){K$(B);var P=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=P[_.mm]|0;if(x==null)return q2(P,Y,c),B;for(var g=x===hO?7:x[_.mm]|0,k=g,n=Vs(g),b=n||Object.isFrozen(x),d=!0,q=!0,C=0;C<x.length;C++){var h=x[C];n||(h=E3(h),d&&(d=!h),q&&(q=h))}n||(g=d?13:5,g=q?g&-4097:g|4096);b&&g===k||(x=ay(x),k=0,g=mG(g,Y));g!==k&&tn(x,g);Y=q2(P,Y,c,x);2&g||!(4096&g||16&g)||dt(P,Y);return B};
dU=function(B,c,x,P){psC(B,c,x,P);return B};
aiQ=function(B,c,x){psC(B,c,Ig,void 0,x,1,!0);return B};
_.Jd=function(B,c,x){B=_.hd(B,c,void 0,x);c=typeof B;B=B==null?B:c==="bigint"?_.f4((0,_.F6)(64,B)):_.CA(B)?c==="string"?_.$QX(B):_.k5$(B):void 0;return B};
_.WG=function(B,c){var x=x===void 0?!1:x;var P;return(P=_.uOI(_.hd(B,c)))!=null?P:x};
_.Ph=function(B,c,x){x=x===void 0?0:x;var P;return(P=_.wl(_.hd(B,c)))!=null?P:x};
gtw=function(B,c){var x=x===void 0?0:x;B=_.NN(_.hd(B,c));return B!=null?B:x};
lJ=function(B,c,x){x=x===void 0?Pxq:x;var P;return(P=_.KmA(_.hd(B,c)))!=null?P:x};
sCO=function(B){var c=c===void 0?Pxq:c;var x;return(x=_.Jd(B,23))!=null?x:c};
EZ=function(B,c){var x=x===void 0?0:x;var P;return(P=_.hd(B,c,void 0,void 0,_.$z))!=null?P:x};
_.OZ=function(B,c,x,P){x=x===void 0?"":x;var Y;return(Y=_.MN(_.hd(B,c,P)))!=null?Y:x};
_.og=function(B,c){var x=x===void 0?0:x;var P;return(P=_.Vr(_.hd(B,c)))!=null?P:x};
Ql=function(B,c){var x=x===void 0?"0":x;B=b4x(_.hd(B,c),!0);return B!=null?B:x};
F8=function(B,c,x){return _.OZ(B,CE(B,x,c))};
_.vG=function(B,c,x,P){return _.PA(B,c,CE(B,P,x),void 0)};
_.Uq=function(B,c){return _.MN(_.hd(B,c,void 0,_.CY))};
_.sq=function(B,c,x){return _.ax(B,c,Aox(x))};
_.wx=function(B,c,x){return _.N2(B,c,Aox(x),!1)};
_.zo=function(B,c,x){return _.ax(B,c,_.tc(x))};
_.mD=function(B,c,x){return _.ax(B,c,OF(x))};
_.dW=function(B,c,x){return _.ax(B,c,Si(x))};
_.en=function(B,c,x,P){return _.N2(B,c,Si(x),"",P)};
_.Yr=function(B,c,x){return _.ax(B,c,x==null?x:_.TB(x))};
_.S2=function(B,c,x){return _.N2(B,c,x==null?x:_.TB(x),0)};var E0=function(B,c,x){this.buffer=B;if(x&&!c)throw Error();this.JSC$6897_isImmutable=c};var pY$=function(B,c,x,P){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6900_start_=0;this.init(B,c,x,P)},yl,XYO,$FI,bBX,I8w,kdd;
_.a=pY$.prototype;_.a.init=function(B,c,x,P){var Y=P===void 0?{}:P;P=Y.aliasBytesFields===void 0?!1:Y.aliasBytesFields;Y=Y.treatNewDataAsImmutable===void 0?!1:Y.treatNewDataAsImmutable;this.aliasBytesFields=P;this.treatNewDataAsImmutable=Y;B&&(B=kBO(B,this.treatNewDataAsImmutable),this.bytes_=B.buffer,this.bytesAreImmutable_=B.JSC$6897_isImmutable,this.JSC$6900_start_=c||0,this.end_=x!==void 0?this.JSC$6900_start_+x:this.bytes_.length,this.cursor_=this.JSC$6900_start_)};
_.a.free=function(){this.clear();kdd.length<100&&kdd.push(this)};
_.a.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6900_start_=0;this.aliasBytesFields=!1};
_.a.reset=function(){this.cursor_=this.JSC$6900_start_};
_.a.atEnd=function(){return this.cursor_==this.end_};
_.Go=function(B,c){var x=0,P=0,Y=0,g=B.bytes_,k=B.cursor_;do{var n=g[k++];x|=(n&127)<<Y;Y+=7}while(Y<32&&n&128);Y>32&&(P|=(n&127)>>4);for(Y=3;Y<32&&n&128;Y+=7)n=g[k++],P|=(n&127)<<Y;yl(B,k);if(n<128)return c(x>>>0,P>>>0);throw Error("X");};
yl=function(B,c){B.cursor_=c;if(c>B.end_)throw Error("Y`"+c+"`"+B.end_);};
_.My=function(B){var c=B.bytes_,x=B.cursor_,P=c[x++],Y=P&127;if(P&128&&(P=c[x++],Y|=(P&127)<<7,P&128&&(P=c[x++],Y|=(P&127)<<14,P&128&&(P=c[x++],Y|=(P&127)<<21,P&128&&(P=c[x++],Y|=P<<28,P&128&&c[x++]&128&&c[x++]&128&&c[x++]&128&&c[x++]&128&&c[x++]&128)))))throw Error("X");yl(B,x);return Y};
_.LY=function(B){var c=B.bytes_,x=B.cursor_,P=c[x],Y=c[x+1],g=c[x+2];c=c[x+3];yl(B,B.cursor_+4);return(P<<0|Y<<8|g<<16|c<<24)>>>0};
XYO=function(B){var c=_.LY(B);B=_.LY(B);return fAx(c,B)};
$FI=function(B){var c=_.LY(B),x=_.LY(B);B=(x>>31)*2+1;var P=x>>>20&2047;c=4294967296*(x&1048575)+c;return P==2047?c?NaN:B*Infinity:P==0?B*4.9E-324*c:B*Math.pow(2,P-1075)*(c+4503599627370496)};
_.ntI=function(B){for(var c=0,x=B.cursor_,P=x+10,Y=B.bytes_;x<P;){var g=Y[x++];c|=g;if((g&128)===0)return yl(B,x),!!(c&127)}throw Error("X");};
bBX=function(B,c){if(c<0)throw Error("Z`"+c);var x=B.cursor_,P=x+c;if(P>B.end_)throw Error("Y`"+(B.end_-x)+"`"+c);B.cursor_=P;return x};
I8w=function(B,c){if(c==0)return _.QW();var x=bBX(B,c);B.aliasBytesFields&&B.bytesAreImmutable_?x=B.bytes_.subarray(x,x+c):(B=B.bytes_,c=x+c,x=x===c?new Uint8Array(0):BiC?B.slice(x,c):new Uint8Array(B.subarray(x,c)));return x.length==0?_.QW():new O3(x,o0)};
kdd=[];var jCO=function(B,c,x,P){if(kdd.length){var Y=kdd.pop();Y.init(B,c,x,P);B=Y}else B=new pY$(B,c,x,P);this.decoder_=B;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Kuw(this,P)},Kuw=function(B,c){c=c===void 0?{}:c;
B.discardUnknownFields=c.discardUnknownFields===void 0?!1:c.discardUnknownFields},l8x=function(B,c,x,P){if(UFO.length){var Y=UFO.pop();
Kuw(Y,P);Y.decoder_.init(B,c,x,P);return Y}return new jCO(B,c,x,P)},wso,ys,dFw,UFO;
jCO.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;UFO.length<100&&UFO.push(this)};
jCO.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
wso=function(B){if(B.decoder_.atEnd())return!1;B.fieldCursor_=B.decoder_.cursor_;var c=_.My(B.decoder_)>>>0,x=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Error("T`"+c+"`"+B.fieldCursor_);if(x<1)throw Error("U`"+x+"`"+B.fieldCursor_);B.nextField_=x;B.nextWireType_=c;return!0};
ys=function(B){switch(B.nextWireType_){case 0:B.nextWireType_!=0?ys(B):_.ntI(B.decoder_);break;case 1:B=B.decoder_;yl(B,B.cursor_+8);break;case 2:if(B.nextWireType_!=2)ys(B);else{var c=_.My(B.decoder_)>>>0;B=B.decoder_;yl(B,B.cursor_+c)}break;case 5:B=B.decoder_;yl(B,B.cursor_+4);break;case 3:c=B.nextField_;do{if(!wso(B))throw Error("V");if(B.nextWireType_==4){if(B.nextField_!=c)throw Error("W");break}ys(B)}while(1);break;default:throw Error("T`"+B.nextWireType_+"`"+B.fieldCursor_);}};
dFw=function(B,c,x){var P=B.decoder_.end_,Y=_.My(B.decoder_)>>>0,g=B.decoder_.cursor_+Y,k=g-P;k<=0&&(B.decoder_.end_=g,x(c,B,void 0,void 0,void 0),k=g-B.decoder_.cursor_);if(k)throw Error("S`"+Y+"`"+(Y-k));B.decoder_.cursor_=g;B.decoder_.end_=P};
_.qTq=function(B){var c=_.My(B.decoder_)>>>0;B=B.decoder_;var x=bBX(B,c);B=B.bytes_;if(exX){var P=B,Y;(Y=Rxw)||(Y=Rxw=new TextDecoder("utf-8",{fatal:!0}));c=x+c;P=x===0&&c===P.length?P:P.subarray(x,c);try{var g=Y.decode(P)}catch(d){if(rLl===void 0){try{Y.decode(new Uint8Array([128]))}catch(q){}try{Y.decode(new Uint8Array([97])),rLl=!0}catch(q){rLl=!1}}!rLl&&(Rxw=void 0);throw d;}}else{g=x;c=g+c;x=[];for(var k=null,n,b;g<c;)n=B[g++],n<128?x.push(n):n<224?g>=c?c$():(b=B[g++],n<194||(b&192)!==128?(g--,
c$()):x.push((n&31)<<6|b&63)):n<240?g>=c-1?c$():(b=B[g++],(b&192)!==128||n===224&&b<160||n===237&&b>=160||((Y=B[g++])&192)!==128?(g--,c$()):x.push((n&15)<<12|(b&63)<<6|Y&63)):n<=244?g>=c-2?c$():(b=B[g++],(b&192)!==128||(n<<28)+(b-144)>>30!==0||((Y=B[g++])&192)!==128||((P=B[g++])&192)!==128?(g--,c$()):(n=(n&7)<<18|(b&63)<<12|(Y&63)<<6|P&63,n-=65536,x.push((n>>10&1023)+55296,(n&1023)+56320))):c$(),x.length>=8192&&(k=BCA(k,x),x.length=0);g=BCA(k,x)}return g};
_.CxQ=function(B){var c=_.My(B.decoder_)>>>0;return I8w(B.decoder_,c)};
_.hrI=function(B,c,x){var P=_.My(B.decoder_)>>>0;for(P=B.decoder_.cursor_+P;B.decoder_.cursor_<P;)x.push(c(B.decoder_))};
UFO=[];var mFC=function(B,c){this.JSC$6907_lo=B>>>0;this.JSC$6907_hi=c>>>0},Vjx=function(B){if(!B)return TiI||(TiI=new mFC(0,0));
if(!/^\d+$/.test(B))return null;Yz(B);return new mFC(DS,R0)},TiI,MiY=function(B,c){this.JSC$6909_lo=B>>>0;
this.JSC$6909_hi=c>>>0},ycI=function(B){if(!B)return tjd||(tjd=new MiY(0,0));
if(!/^-?\d+$/.test(B))return null;Yz(B);return new MiY(DS,R0)},tjd;var wY$=function(){this.JSC$6911_buffer_=[]},GB7,Niq;
wY$.prototype.length=function(){return this.JSC$6911_buffer_.length};
wY$.prototype.end=function(){var B=this.JSC$6911_buffer_;this.JSC$6911_buffer_=[];return B};
GB7=function(B,c,x){for(;x>0||c>127;)B.JSC$6911_buffer_.push(c&127|128),c=(c>>>7|x<<25)>>>0,x>>>=7;B.JSC$6911_buffer_.push(c)};
Niq=function(B,c){for(;c>127;)B.JSC$6911_buffer_.push(c&127|128),c>>>=7;B.JSC$6911_buffer_.push(c)};
_.Loq=function(B,c){if(c>=0)Niq(B,c);else{for(var x=0;x<9;x++)B.JSC$6911_buffer_.push(c&127|128),c>>=7;B.JSC$6911_buffer_.push(1)}};
_.Dm=function(B,c){B.JSC$6911_buffer_.push(c>>>0&255);B.JSC$6911_buffer_.push(c>>>8&255);B.JSC$6911_buffer_.push(c>>>16&255);B.JSC$6911_buffer_.push(c>>>24&255)};var Ii7,Zm,HAx,u6q;Ii7=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new wY$};
Zm=function(B,c){c.length!==0&&(B.blocks_.push(c),B.totalLength_+=c.length)};
_.bA7=function(B,c){_.AO(B,c,2);c=B.encoder_.end();Zm(B,c);c.push(B.totalLength_);return c};
_.Kod=function(B,c){var x=c.pop();for(x=B.totalLength_+B.encoder_.length()-x;x>127;)c.push(x&127|128),x>>>=7,B.totalLength_++;c.push(x);B.totalLength_++};
_.AO=function(B,c,x){Niq(B.encoder_,c*8+x)};
HAx=function(B,c,x){if(x!=null){switch(typeof x){case "string":Vjx(x)}_.AO(B,c,1);switch(typeof x){case "number":B=B.encoder_;Zxw(x);_.Dm(B,DS);_.Dm(B,R0);break;case "bigint":x=BigInt.asUintN(64,x);x=new mFC(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));B=B.encoder_;c=x.JSC$6907_hi;_.Dm(B,x.JSC$6907_lo);_.Dm(B,c);break;default:x=Vjx(x),B=B.encoder_,c=x.JSC$6907_hi,_.Dm(B,x.JSC$6907_lo),_.Dm(B,c)}}};
u6q=function(B,c,x){_.AO(B,c,2);Niq(B.encoder_,x.length);Zm(B,B.encoder_.end());Zm(B,x)};var XsY,li$,Etw,QCY,FuQ;XsY=oU();_.Jpd=oU();_.Wu$=oU();li$=oU();Etw=oU();_.OBQ=oU();_.ZZ=oU();_.otx=oU();QCY=oU();FuQ=oU();_.vt7=oU();_.zrO=oU();_.zL=function(B,c,x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,c,x)};
_.zL.prototype.toJSON=function(){return aU(this)};
_.zL.prototype.serialize=function(B){return JSON.stringify(aU(this,B))};
var x2l=function(B,c){if(c==null||c=="")return new B;c=JSON.parse(c);if(!Array.isArray(c))throw Error("$");return new B(Q7I(c))};
_.zL.prototype.getExtension=function(B){EF7(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B.fieldIndex);Wmq(this,B.fieldIndex);return B.ctor?B.isRepeated?B.getExtensionFn(this,B.ctor,B.fieldIndex,_.xw(),B.JSC$6922_hasMessageId):B.getExtensionFn(this,B.ctor,B.fieldIndex,B.JSC$6922_hasMessageId):B.isRepeated?B.getExtensionFn(this,B.fieldIndex,_.xw(),B.JSC$6922_hasMessageId):B.getExtensionFn(this,B.fieldIndex,B.defaultValue,B.JSC$6922_hasMessageId)};
_.zL.prototype.clone=function(){var B=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=B[_.mm]|0;return $P(this,B,c)?Xe(this,B,!0):new this.constructor(kP(B,c,!1))};
_.zL.prototype[LA]=Z8;_.zL.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Qs=function(B,c,x){this.$$binaryReaderFn=B;this.$$binaryWriterFn=c;B=iz(XsY);this.$$isMsg=!!B&&x===B||!1},qFY=$Nw(function(B,c,x,P,Y){if(B.nextWireType_!==2)return!1;
dFw(B,YTd(c,P,x),Y);return!0},jy7),Cz$=$Nw(function(B,c,x,P,Y){if(B.nextWireType_!==2)return!1;
dFw(B,YTd(c,P,x),Y);return!0},jy7),M2=Symbol(),SJ=Symbol(),tiq=Symbol(),OAw=Symbol(),Jc7=Symbol(),UNO,dNO;var BtY,STC,yp7,Gd$,Mj$,LuA,ZBw,HBl,fiX,iBq,Apw,DFX,rpx,erA,BPq;BtY=function(B,c){var x=new Ii7;ozQ(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,vN(M2,GL,L$,c));Zm(x,x.encoder_.end());B=new Uint8Array(x.totalLength_);c=x.blocks_;for(var P=c.length,Y=0,g=0;g<P;g++){var k=c[g];B.set(k,Y);Y+=k.length}x.blocks_=[B];return B};
STC=_.HN(function(B,c,x){if(B.nextWireType_!==1)return!1;_.f$(c,x,$FI(B.decoder_));return!0},SFA,FuQ);
yp7=_.HN(function(B,c,x,P){if(B.nextWireType_!==1)return!1;_.td(c,x,P,$FI(B.decoder_));return!0},SFA,FuQ);
Gd$=_.HN(function(B,c,x,P){if(B.nextWireType_!==5)return!1;var Y=_.LY(B.decoder_);B=(Y>>31)*2+1;var g=Y>>>23&255;Y&=8388607;_.td(c,x,P,g==255?Y?NaN:B*Infinity:g==0?B*1.401298464324817E-45*Y:B*Math.pow(2,g-150)*(Y+8388608));return!0},function(B,c,x){c=_.$z(c);
c!=null&&(_.AO(B,x,5),B=B.encoder_,x=um||(um=new DataView(new ArrayBuffer(8))),x.setFloat32(0,+c,!0),R0=0,DS=x.getUint32(0,!0),_.Dm(B,DS))},QCY);
_.HG=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;_.f$(c,x,_.Go(B.decoder_,xz));return!0},_.rt,_.ZZ);
Mj$=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;B=_.Go(B.decoder_,xz);_.f$(c,x,B===0?void 0:B);return!0},_.rt,_.ZZ);
LuA=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.Go(B.decoder_,xz));return!0},_.rt,_.ZZ);
_.fY=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;_.f$(c,x,_.My(B.decoder_));return!0},ZAO,li$);
ZBw=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;B=_.My(B.decoder_);_.f$(c,x,B===0?void 0:B);return!0},ZAO,li$);
HBl=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.My(B.decoder_));return!0},ZAO,li$);
fiX=_.HN(function(B,c,x){if(B.nextWireType_!==1)return!1;_.f$(c,x,XYO(B.decoder_));return!0},_.f87,_.otx);
iBq=_.zSI(function(B,c,x){if(B.nextWireType_!==1&&B.nextWireType_!==2)return!1;c=_.IU(c,c[_.mm]|0,x);B.nextWireType_==2?_.hrI(B,XYO,c):c.push(XYO(B.decoder_));return!0},function(B,c,x){c=_.vzX(UQY,c,!1);
if(c!=null)for(var P=0;P<c.length;P++)HAx(B,x,c[P])},_.otx);
_.iJ=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;_.f$(c,x,_.ntI(B.decoder_));return!0},_.iAl,_.Jpd);
Apw=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.ntI(B.decoder_));return!0},_.iAl,_.Jpd);
_.Ad=_.HN(function(B,c,x){if(B.nextWireType_!==2)return!1;_.f$(c,x,_.qTq(B));return!0},_.DNA,_.Wu$);
_.uWC=_.HN(function(B,c,x,P){if(B.nextWireType_!==2)return!1;_.td(c,x,P,_.qTq(B));return!0},_.DNA,_.Wu$);
DFX=_.zSI(function(B,c,x){if(B.nextWireType_!==2)return!1;B=_.qTq(B);_.IU(c,c[_.mm]|0,x).push(B);return!0},function(B,c,x){c=_.vzX(_.MN,c,!0);
if(c!=null)for(var P=0;P<c.length;P++){var Y=B,g=x,k=c[P];k!=null&&u6q(Y,g,Yll(k))}},_.Wu$);
rpx=void 0;rpx=rpx===void 0?XsY:rpx;_.uJ=new Qs(function(B,c,x,P,Y){if(B.nextWireType_!==2)return!1;P=p$(void 0,P,!0);_.IU(c,c[_.mm]|0,x).push(P);dFw(B,P,Y);return!0},function(B,c,x,P,Y){if(Array.isArray(c))for(var g=0;g<c.length;g++)rcI(B,c[g],x,P,Y)},rpx);
_.DZ=$Nw(function(B,c,x,P,Y,g){if(B.nextWireType_!==2)return!1;var k=c[_.mm]|0;YFd(c,k,g,x,yW(k));c=YTd(c,P,x);dFw(B,c,Y);return!0},rcI);
_.Rro=_.HN(function(B,c,x){if(B.nextWireType_!==2)return!1;_.f$(c,x,_.CxQ(B));return!0},_.RS7,_.vt7);
erA=_.HN(function(B,c,x,P){if(B.nextWireType_!==2)return!1;_.td(c,x,P,_.CxQ(B));return!0},_.RS7,_.vt7);
BPq=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.My(B.decoder_)>>>0);return!0},function(B,c,x){c=_.NN(c);
c!=null&&c!=null&&(_.AO(B,x,0),Niq(B.encoder_,c))},Etw);
_.rQ=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;_.f$(c,x,_.My(B.decoder_));return!0},_.eSw,_.zrO);var PEx=function(){var B=c$x,c=xh7;this.fieldIndex=175237375;this.ctor=c;this.isRepeated=0;this.getExtensionFn=_.PA;this.defaultValue=void 0;this.JSC$6922_hasMessageId=B.messageId!=null?z5:void 0};
PEx.prototype.register=function(){X8(this)};var YRl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(YRl,_.zL);var aUQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(aUQ,_.zL);var amC=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(amC,_.zL);var gjA=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(gjA,_.zL);var sqd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(sqd,_.zL);var pPw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(pPw,_.zL);var kSw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kSw,_.zL);kSw.prototype.getData=function(){return _.Vl(this,2)};var XPo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(XPo,_.zL);var $hO=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w($hO,_.zL);$hO.prototype.getStyle=function(){return _.PA(this,YRl,1)};var xX=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xX,_.zL);xX.prototype.getPayloadCase=function(){return _.wQ(this,aW)};
xX.prototype.getStyle=function(){return _.vG(this,$hO,6,aW)};
var njA=function(){var B=new xX,c=new sqd;return _.YX(B,7,aW,c)},bnI=function(){var B=new xX,c=new pPw;
return _.YX(B,8,aW,c)},aW=[1,
2,3,4,5,6,7,8];var Kiw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Kiw,_.zL);var jq$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(jq$,_.zL);var Uhw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Uhw,_.zL);var dh$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(dh$,_.zL);var qRC=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(qRC,_.zL);var CEQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(CEQ,_.zL);var hHq=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(hHq,_.zL);var mhl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(mhl,_.zL);mhl.prototype.getData=function(){return _.Vl(this,2)};var TPd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(TPd,_.zL);var Y0d=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Y0d,_.zL);Y0d.prototype.getPayloadCase=function(){return _.wQ(this,Rg)};
var Rg=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var e2=function(B,c){B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=c===void 0?2:c};
_.w(e2,Error);var VbO=Promise;var tb$=function(B){this.channelPromise=B};
tb$.prototype.send=function(B,c,x){this.channelPromise.then(function(P){P.send(B,c,x)})};var wPA=function(B,c){this.data=B;this.channel=c};
wPA.prototype.reply=function(B,c,x){this.channel.send(B,c,x)};var NPI=function(B){this.JSC$6988_port_=B};
NPI.prototype.send=function(B,c,x){x=x===void 0?[]:x;var P=new MessageChannel;IUl(P.port1,c);this.JSC$6988_port_.postMessage(B,[P.port2].concat(x))};
var J$d=function(B,c){IUl(B,c);return new NPI(B)},IUl=function(B,c){c&&(B.onmessage=function(x){c(new wPA(x.data,J$d(x.ports[0])))})};var Wi$=function(B){this.verifier_=B},lUC=function(B){var c=Object.create(null);
(typeof B==="string"?[B]:B).forEach(function(x){if(x==="null")throw Error("ba");c[x]=!0});
return function(x){return c[x]===!0}};_.Ej$=function(){if(!_.xI.addEventListener||!Object.defineProperty)return!1;var B=!1,c=Object.defineProperty({},"passive",{get:function(){B=!0}});
try{var x=function(){};
_.xI.addEventListener("test",x,c);_.xI.removeEventListener("test",x,c)}catch(P){}return B}();var Onx;_.BJ=function(B){var c=B.destination;var x=B.iframe;var P=B.origin;var Y=B.channelName===void 0?"ZNWN1d":B.channelName;var g=B.onMessage===void 0?void 0:B.onMessage;B=B.onEstablished===void 0?void 0:B.onEstablished;return Onx({destination:c,getSource:function(){return x.contentWindow},
originVerifier:P instanceof Wi$?P:typeof P==="function"?new Wi$(P):new Wi$(lUC(P)),channelName:Y,onMessage:g,onEstablished:B})};
Onx=function(B){var c=B.destination;var x=B.getSource;var P=B.originVerifier;var Y=B.token===void 0?void 0:B.token;var g=B.channelName;var k=B.onMessage===void 0?void 0:B.onMessage;var n=B.onEstablished===void 0?void 0:B.onEstablished;return new tb$(new VbO(function(b,d){var q=function(C){C.source&&C.source===x()&&P.verifier_(C.origin)&&(C.data.n||C.data)===g&&(c.removeEventListener("message",q,!1),Y&&C.data.t!==Y?d(Error("ca`"+g+"`"+Y+"`"+C.data.t)):(b(J$d(C.ports[0],k)),n&&n(C)))};
c.addEventListener("message",q,!1)}))};var ojl=function(B){try{B()}catch(c){P$(c)}};var Fiw=function(B){var c=this;var x=B.getMessageType;var P=B.onUnregisteredMessage===void 0?function(){}:B.onUnregisteredMessage;
var Y=B.onBeforeRegisteredMessage===void 0?function(){}:B.onBeforeRegisteredMessage;
B=B.onAfterRegisteredMessage===void 0?function(){}:B.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=x;this.onUnregisteredMessage_=P;this.onBeforeRegisteredMessage_=Y;this.onAfterRegisteredMessage_=B;this.onMessage=function(g){return QqQ(c,g)}};
Fiw.prototype.register=function(B,c){this.registry_.set(B,c);return this};
var QqQ=function(B,c){var x=B.getMessageType_(c.data),P=B.registry_.get(x);P?(ojl(function(){return B.onBeforeRegisteredMessage_(c,x)}),ojl(function(){return P(c)}),ojl(function(){return B.onAfterRegisteredMessage_(c,x)})):ojl(function(){return B.onUnregisteredMessage_(c,x)})};var vjl=function(B){this.JSC$7005_channel_=B},SRx,y$w;
vjl.prototype.send=function(B,c,x){this.JSC$7005_channel_.send(aU(B),c,x)};
_.zHo=function(B,c){return function(x){var P=new B(x.data);return c(new wPA(P,x.channel))}};
SRx=function(B){return function(c){return B(new wPA(c.data,new vjl(c.channel)))}};
y$w=function(B,c){return SRx(_.zHo(B,c))};var GSl=function(B,c,x,P){this.registry=B;this.delegate=c;this.receiveMessageConstructor=x;this.createInitMessage=P;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Pmd=function(B){var c=new Fiw({getMessageType:B.getPayloadCase});
return new GSl(c,new vjl(_.BJ({iframe:B.child,destination:window,origin:B.origin,channelName:B.channelName,onMessage:y$w(B.receiveMessageConstructor,c.onMessage)})),B.receiveMessageConstructor,B.createInitMessage)},Mbd=function(B,c){B.createInitMessage=c};
GSl.prototype.send=function(B){if(!this.initialised)throw new e2("Attempted to send a message before initialisation.");this.delegate.send(B)};
var Lid=function(B,c){return _.X(function(x){if(!B.initialised)throw new e2("Attempted to send a message before initialisation.");return x.return(new Promise(function(P){B.delegate.send(c,y$w(B.receiveMessageConstructor,P))}))})};
GSl.prototype.init=function(){var B=this;return _.X(function(c){if(B.initialised)throw new e2("Attempted to initialise twice. The SDK can only be initialised once.");if(B.createInitMessage!==void 0){var x=B.delegate,P=x.send,Y=B.createInitMessage;var g=new aUQ;var k=[].concat(_.wq(B.features));g=_.wt(g,1,k,_.TB);P.call(x,Y.call(B,g))}B.initialised=!0;_.Kq(c)})};
var cJ=function(B,c){if(B.initialised)throw new e2('Attempted to set up API "'+c+'" after initialisation. All APIs must be set up before initialising the SDK.');B.features.add(c);return B.registry};
_.AJ.Object.defineProperties(GSl.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ZnY=function(B){this.channel=B;this.registered=!1};
ZnY.prototype.update=function(B){if(this.channel.isInitialised){if(!this.registered)throw new e2("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var c=new xX;var x=new gjA;x=_.sq(x,1,B);c=_.YX(c,2,aW,x);this.channel.send(c)}else this.register();this.JSC$7019_audioEnabled=B};
ZnY.prototype.register=function(){cJ(this.channel,1);this.registered=!0};
ZnY.prototype.isAudioEnabled=function(){return this.JSC$7019_audioEnabled};var HnC=function(B){this.channel=B};
_.a=HnC.prototype;_.a.onFirstFrameReady=function(B){cJ(this.channel,2).register(11,function(c){c=_.vG(c.data,Kiw,11,Rg);if(!c)throw new e2("Unexpectedly nonexistent GameFirstFrameReadyEvent");B(_.OZ(c,1))})};
_.a.onReady=function(B){cJ(this.channel,2).register(4,function(c){c=_.vG(c.data,Uhw,4,Rg);if(!c)throw new e2("Unexpectedly nonexistent GameReadyEvent");B(_.OZ(c,1))})};
_.a.onLevelComplete=function(B){cJ(this.channel,2).register(5,function(c){c=_.vG(c.data,dh$,5,Rg);if(!c)throw new e2("Unexpectedly nonexistent LevelCompleteEvent");B(_.OZ(c,1),_.Ph(c,2))})};
_.a.onGameOver=function(B){cJ(this.channel,2).register(6,function(c){c=_.vG(c.data,jq$,6,Rg);if(!c)throw new e2("Unexpectedly nonexistent GameOverEvent");B(_.OZ(c,1))})};
_.a.pause=function(){var B=this;if(!this.channel.isInitialised)return cJ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new e2("Using unregistered Game Feature: pause.");var c=njA();return new Promise(function(x){return _.X(function(P){if(P.nextAddress==1)return _.K(P,Lid(B.channel,c),2);x();_.Kq(P)})})};
_.a.resume=function(){var B=this;if(!this.channel.isInitialised)return cJ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new e2("Using unregistered Game Feature: resume.");var c=bnI();return new Promise(function(x){return _.X(function(P){if(P.nextAddress==1)return _.K(P,Lid(B.channel,c),2);x();_.Kq(P)})})};var fU7=function(B){this.channel=B};
fU7.prototype.onReady=function(B){cJ(this.channel,5).register(8,function(c){if(!_.vG(c.data,qRC,8,Rg))throw new e2("Unexpectedly nonexistent PageReadyEvent");B()})};var inl=function(B){this.channel=B};
inl.prototype.onChange=function(B){cJ(this.channel,3).register(7,function(c){c=_.vG(c.data,CEQ,7,Rg);if(!c)throw new e2("Unexpectedly nonexistent ScoreEvent");B(_.OZ(c,1),_.Ph(c,2))})};var A$Y={load:function(){throw new e2("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new e2("Storage used, but storage.onSave() listener not set!");}},uM$=function(B){this.channel=B;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},DhX=function(B){cJ(B.channel,4).register(2,A$Y.load).register(3,A$Y.save);
B.initialSetupDone=!0};
uM$.prototype.onLoad=function(B){this.initialSetupDone||DhX(this);this.loadRegistered||(this.loadRegistered=!0,cJ(this.channel,4).register(2,function(c){var x,P,Y;return _.X(function(g){if(g.nextAddress==1){x=_.vG(c.data,hHq,2,Rg);if(!x)throw new e2("Unexpectedly nonexistent StorageLoad");P=_.OZ(x,1);return _.K(g,B(P),2)}Y=g.yieldResult;var k=c.reply,n=new xX;var b=new kSw;b=_.dW(b,1,P);b=_.ax(b,2,_.Fd(Y,!1));n=_.YX(n,3,aW,b);k.call(c,n);_.Kq(g)})}))};
uM$.prototype.onSave=function(B){this.initialSetupDone||DhX(this);this.saveRegistered||(this.saveRegistered=!0,cJ(this.channel,4).register(3,function(c){var x,P,Y;return _.X(function(g){if(g.nextAddress==1){x=_.vG(c.data,mhl,3,Rg);if(!x)throw new e2("Unexpectedly nonexistent StorageSave");P=_.OZ(x,1);Y=LdX(x.getData());return _.K(g,B(P,Y),2)}var k=c.reply,n=new xX;var b=new XPo;b=_.dW(b,1,P);n=_.YX(n,4,aW,b);k.call(c,n);_.Kq(g)})}))};var r$X=function(B){this.channel=B};
r$X.prototype.update=function(B){if(!this.channel.features.has(6))throw new e2("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var c=new xX,x=new $hO;B=_.Pa(x,1,B);c=_.YX(c,6,aW,B);this.channel.send(c)};
r$X.prototype.register=function(){cJ(this.channel,6)};var RHo=function(B){this.channel=B;this.userActivityLoggingIntervalMs=0};
RHo.prototype.onUserActivity=function(B,c){this.userActivityLoggingIntervalMs=c;cJ(this.channel,7).register(9,function(x){if(!_.vG(x.data,TPd,9,Rg))throw new e2("Unexpectedly nonexistent ClickEvent");B()})};var eHO=function(B){var c=this;this.channel=B;this.init=this.channel.init.bind(this.channel);this.page=new fU7(this.channel);this.game=new HnC(this.channel);this.audio=new ZnY(this.channel);this.score=new inl(this.channel);this.storage=new uM$(this.channel);this.style=new r$X(this.channel);this.userActivity=new RHo(this.channel);Mbd(this.channel,function(x){var P=new amC;x=_.Pa(P,1,x);x=_.zo(x,3,c.userActivity.userActivityLoggingIntervalMs);P=c.audio.isAudioEnabled();P!==void 0&&_.sq(x,2,P);P=new xX;
return _.YX(P,5,aW,x)})};var Bw7=function(){this.timedFunctionContext=0};
Bw7.prototype.timeExecution=function(B,c){var x=this;return function(){var P=_.ts.apply(0,arguments);x.timedFunctionContext=B;return c.apply(null,_.wq(P))}};var c17=function(){var B={};this.priorityTasks=(B[3]=[],B[2]=[],B[1]=[],B);this.isFlushing=!1},k2=function(B,c,x){var P=x$$(B,x);
B.priorityTasks[x].push(c);P&&B.priorityTasks[x].length===1&&B.flush()},x$$=function(B,c){return Object.keys(B.priorityTasks).map(function(x){return Number(x)}).filter(function(x){return!isNaN(x)&&x>c}).every(function(x){return B.priorityTasks[x].length===0})};
c17.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(B){return B.length>0});)PfI(this,3),PfI(this,2),PfI(this,1)}catch(B){throw Object.values(this.priorityTasks).forEach(function(c){return void c.splice(0,c.length)}),B;
}finally{this.isFlushing=!1}}};
var PfI=function(B,c){for(;x$$(B,c)&&B.priorityTasks[c].length>0;)B.priorityTasks[c][0](),B.priorityTasks[c].shift()};
_.AJ.Object.defineProperties(c17.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(B){return B.length>0})}}});var $2o={};var Y1d=globalThis.trustedTypes,sUq=Y1d,kL7;var p6=function(B){this.privateDoNotAccessOrElseWrappedResourceUrl=B};
p6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var aqI,gq$,s6I,pmO,kRq,Xmx,$$I,nqQ;aqI=_.r2([""]);gq$=uU(["\x00"],["\\0"]);s6I=uU(["\n"],["\\n"]);pmO=uU(["\x00"],["\\u0000"]);kRq=_.r2([""]);Xmx=uU(["\x00"],["\\0"]);$$I=uU(["\n"],["\\n"]);nqQ=uU(["\x00"],["\\u0000"]);_.b17=n6(function(B){return B(aqI)})||n6(function(B){return B(gq$)})||n6(function(B){return B(s6I)})||n6(function(B){return B(pmO)});
_.KhI=_.$X(kRq)&&_.$X(Xmx)&&_.$X($$I)&&_.$X(nqQ);var m7;_.bV=function(B,c){this.privateDoNotAccessOrElseWrappedUrl=c};
_.bV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.j6X=K6("about:blank");m7=K6("about:invalid#zClosurez");var nPd=function(B){this.isValid=B},U$d=new nPd(function(B){return/^[^:]*([/?#]|$)/.test(B)}),d$q=qg("data"),q1d=qg("http"),CfA=qg("https"),hnd=qg("ftp"),m$q=qg("mailto"),TwY=qg("intent"),V7q=qg("vnd.youtube"),b$7=[d$q,
q1d,CfA,m$q,hnd,U$d],KGx=g8(function(){return typeof URL==="function"}),t7q=["data:",
"http:","https:","mailto:","ftp:"],U2Y=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Js=function(B){this.privateDoNotAccessOrElseWrappedHtml=B};
Js.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var X5O=g8(function(){return new Js(Y1d?Y1d.emptyHTML:"")});var wmC={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"},OG=function(B,c){var x=Error.call(this,B+" cannot be used with intent "+wmC[c]);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.type=B;this.intent=c;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.w(OG,Error);_.zz=function(B){this.privateDoNotAccessOrElseWrappedScript=B};
_.zz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var h9I=function(B){this.privateDoNotAccessOrElseWrappedAttributePrefix=B};
h9I.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var m2Y="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var $_Q=function(B){var c=_.Gu("window.location.href");B==null&&(B='Unknown Error of type "null/undefined"');if(typeof B==="string")return{message:B,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var x=!1;try{var P=B.lineNumber||B.line||"Not available"}catch(k){P="Not available",x=!0}try{var Y=B.fileName||B.filename||B.sourceURL||_.xI.$googDebugFname||c}catch(k){Y="Not available",x=!0}c=Nww(B);if(!(!x&&B.lineNumber&&B.fileName&&B.stack&&B.message&&B.name)){x=B.message;
if(x==null){if(B.constructor&&B.constructor instanceof Function){if(B.constructor.name)x=B.constructor.name;else if(x=B.constructor,x7[x])x=x7[x];else{x=String(x);if(!x7[x]){var g=/function\s+([^\(]+)/m.exec(x);x7[x]=g?g[1]:"[Anonymous]"}x=x7[x]}x='Unknown Error of type "'+x+'"'}else x="Unknown Error of unknown type";typeof B.toString==="function"&&Object.prototype.toString!==B.toString&&(x+=": "+B.toString())}return{message:x,name:B.name||"UnknownError",lineNumber:P,fileName:Y,stack:c||"Not available"}}return{message:B.message,
name:B.name,lineNumber:B.lineNumber,fileName:B.fileName,stack:c}},Nww=function(B,c){c||(c={});
c[Iqw(B)]=!0;var x=B.stack||"",P=B.cause;P&&!c[Iqw(P)]&&(x+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(x+=typeof P==="string"?P:P.message+"\n"),x+=Nww(P,c));B=B.errors;if(Array.isArray(B)){P=1;var Y;for(Y=0;Y<B.length&&!(P>4);Y++)c[Iqw(B[Y])]||(x+="\nInner error "+P++ +": ",B[Y].stack&&B[Y].stack.indexOf(B[Y].toString())==0||(x+=typeof B[Y]==="string"?B[Y]:B[Y].message+"\n"),x+=Nww(B[Y],c));Y<B.length&&(x+="\n... "+(B.length-Y)+" more inner errors")}return x},Iqw=function(B){var c=
"";
typeof B.toString==="function"&&(c=""+B);return c+B.stack},x7={};var J1$,eI,sy,lqx,EqO,Wh$,LS,zk,oqA;J1$=function(B,c){for(var x=B.split("%s"),P="",Y=Array.prototype.slice.call(arguments,1);Y.length&&x.length>1;)P+=x.shift()+Y.shift();return P+x.join("%s")};
_.La=function(B){return encodeURIComponent(String(B))};
eI=function(B){return decodeURIComponent(B.replace(/\+/g," "))};
sy=function(B){s4x.test(B)&&(B.indexOf("&")!=-1&&(B=B.replace(cqX,"&amp;")),B.indexOf("<")!=-1&&(B=B.replace(xGw,"&lt;")),B.indexOf(">")!=-1&&(B=B.replace(PoO,"&gt;")),B.indexOf('"')!=-1&&(B=B.replace(YKw,"&quot;")),B.indexOf("'")!=-1&&(B=B.replace(a2I,"&#39;")),B.indexOf("\x00")!=-1&&(B=B.replace(geO,"&#0;")));return B};
lqx=function(B){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var x=_.xI.document.createElement("div");return B.replace(Wh$,function(P,Y){var g=c[P];if(g)return g;Y.charAt(0)=="#"&&(Y=Number("0"+Y.slice(1)),isNaN(Y)||(g=String.fromCharCode(Y)));g||(_.L6(x,Wa(P+" ")),g=x.firstChild.nodeValue.slice(0,-1));return c[P]=g})};
EqO=function(B){return B.replace(/&([^;]+);/g,function(c,x){switch(x){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return x.charAt(0)!="#"||(x=Number("0"+x.slice(1)),isNaN(x))?c:String.fromCharCode(x)}})};
Wh$=/&([^;\s<&]+);?/g;_.oVI=function(B){return String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.O1o=String.prototype.repeat?function(B,c){return B.repeat(c)}:function(B,c){return Array(c+1).join(B)};
_.PJ=function(B,c){if(!Number.isFinite(B))return String(B);B=String(B);var x=B.indexOf(".");x===-1&&(x=B.length);var P=B[0]==="-"?"-":"";P&&(B=B.substring(1));return P+(0,_.O1o)("0",Math.max(0,c-x))+B};
LS=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.gQ()).toString(36)};
zk=function(B){for(var c=0,x=0;x<B.length;++x)c=31*c+B.charCodeAt(x)>>>0;return c};
_.KN=function(B){return String(B).replace(/\-([a-z])/g,function(c,x){return x.toUpperCase()})};
_.bh=function(B){return String(B).replace(/([A-Z])/g,"-$1").toLowerCase()};
oqA=function(B){return B.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(c,x,P){return x+P.toUpperCase()})};var Q6q=function(){this.names=new Map};
Q6q.prototype.getName=function(B){var c=this.names.get(B);if(c)return c;var x;c=(x=B.description)!=null?x:LS();this.names.set(B,c);return c};var FhY=function(B){var c=Error.call(this,B?B.length+" errors occurred during unsubscription:\n"+B.map(function(x,P){return P+1+") "+x.toString()}).join("\n  "):"");
this.message=c.message;"stack"in c&&(this.stack=c.stack);this.errors=B;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.w(FhY,Error);var Dz=function(B){this.initialTeardown=B;this.closed=!1;this._teardowns=this._parentage=null};
_.a=Dz.prototype;
_.a.unsubscribe=function(){if(!this.closed){this.closed=!0;var B=this._parentage;if(Array.isArray(B))for(var c=_.p(B),x=c.next();!x.done;x=c.next())x.value.remove(this);else B==null||B.remove(this);c=this.initialTeardown;if(uV(c))try{c()}catch(g){var P=g instanceof FhY?g.errors:[g]}var Y=this._teardowns;if(Y)for(this._teardowns=null,c=_.p(Y),x=c.next();!x.done;x=c.next()){x=x.value;try{uV(x)?x():x.unsubscribe()}catch(g){x=void 0,P=(x=P)!=null?x:[],g instanceof FhY?P=[].concat(_.wq(P),_.wq(g.errors)):
P.push(g)}}if(P)throw new FhY(P);}};
_.a.add=function(B){if(B&&B!==this)if(this.closed)uV(B)?B():B.unsubscribe();else{if(B instanceof Dz){if(B.closed||B._hasParent(this))return;B._addParent(this)}var c;(this._teardowns=(c=this._teardowns)!=null?c:[]).push(B)}};
_.a._hasParent=function(B){var c=this._parentage;return c===B||Array.isArray(c)&&c.includes(B)};
_.a._addParent=function(B){var c=this._parentage;this._parentage=Array.isArray(c)?(c.push(B),c):c?[c,B]:B};
_.a._removeParent=function(B){var c=this._parentage;c===B?this._parentage=null:Array.isArray(c)&&As(c,B)};
_.a.remove=function(B){var c=this._teardowns;c&&As(c,B);B instanceof Dz&&B._removeParent(this)};
var vqx=new Dz;vqx.closed=!0;Dz.JSC$7115_EMPTY=vqx;var wNI=function(){setTimeout.apply(null,_.wq(_.ts.apply(0,arguments)))};var Y7=function(B){Dz.call(this);this.JSC$7120_isStopped=!1;this.destination=B instanceof Y7?B:new af(!B||uV(B)?{next:B!=null?B:void 0}:B);tJq(B)&&B.add(this)};
_.w(Y7,Dz);Y7.JSC$7115_EMPTY=Dz.JSC$7115_EMPTY;Y7.create=function(B,c,x){return new gp(B,c,x)};
_.a=Y7.prototype;_.a.next=function(B){this.JSC$7120_isStopped||this._next(B)};
_.a.error=function(B){this.JSC$7120_isStopped||(this.JSC$7120_isStopped=!0,this._error(B))};
_.a.complete=function(){this.JSC$7120_isStopped||(this.JSC$7120_isStopped=!0,this._complete())};
_.a.unsubscribe=function(){this.closed||(this.JSC$7120_isStopped=!0,Dz.prototype.unsubscribe.call(this))};
_.a._next=function(B){this.destination.next(B)};
_.a._error=function(B){this.destination.error(B);this.unsubscribe()};
_.a._complete=function(){this.destination.complete();this.unsubscribe()};
var af=function(B){this.partialObserver=B};
af.prototype.next=function(B){var c=this.partialObserver;if(c.next)try{c.next(B)}catch(x){RW(x)}};
af.prototype.error=function(B){var c=this.partialObserver;if(c.error)try{c.error(B)}catch(x){RW(x)}else RW(B)};
af.prototype.complete=function(){var B=this.partialObserver;if(B.complete)try{B.complete()}catch(c){RW(c)}};
var gp=function(B,c,x){Y7.call(this);var P;uV(B)||!B?P={next:B!=null?B:void 0,error:c!=null?c:void 0,complete:x!=null?x:void 0}:P=B;this.destination=new af(P)};
_.w(gp,Y7);gp.JSC$7115_EMPTY=Y7.JSC$7115_EMPTY;gp.create=Y7.create;var ad=typeof Symbol==="function"&&Symbol.observable||"@@observable";var PF=function(B){B&&(this._subscribe=B)};
_.a=PF.prototype;_.a.lift=function(B){var c=new PF;c.source=this;c.operator=B;return c};
_.a.subscribe=function(B,c,x){B=B&&B instanceof Y7||B&&uV(B.next)&&uV(B.error)&&uV(B.complete)&&tJq(B)?B:new gp(B,c,x);c=this.operator;x=this.source;B.add(c?c.call(B,x):x?this._subscribe(B):this._trySubscribe(B));return B};
_.a._trySubscribe=function(B){try{return this._subscribe(B)}catch(c){B.error(c)}};
_.a.forEach=function(B,c){var x=this;c=ImY(c);return new c(function(P,Y){var g=x.subscribe(function(k){try{B(k)}catch(n){Y(n),g==null||g.unsubscribe()}},Y,P)})};
_.a._subscribe=function(B){var c;return(c=this.source)==null?void 0:c.subscribe(B)};
PF.prototype[ad]=function(){return this};
PF.prototype.pipe=function(){var B=_.ts.apply(0,arguments);return B.length?NtQ(B)(this):this};
PF.create=function(B){return new PF(B)};var znx=function(){var B=Error.call(this,"object unsubscribed");this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.w(znx,Error);var gW=function(){this.observers=[];this.hasError=this.JSC$7136_isStopped=this.closed=!1;this.thrownError=null};
_.w(gW,PF);_.a=gW.prototype;_.a.lift=function(B){var c=new sY(this,this);c.operator=B;return c};
_.a._throwIfClosed=function(){if(this.closed)throw new znx;};
_.a.next=function(B){this._throwIfClosed();if(!this.JSC$7136_isStopped){var c=this.observers.slice();c=_.p(c);for(var x=c.next();!x.done;x=c.next())x.value.next(B)}};
_.a.error=function(B){this._throwIfClosed();if(!this.JSC$7136_isStopped){this.hasError=this.JSC$7136_isStopped=!0;this.thrownError=B;for(var c=this.observers;c.length;)c.shift().error(B)}};
_.a.complete=function(){this._throwIfClosed();if(!this.JSC$7136_isStopped){this.JSC$7136_isStopped=!0;for(var B=this.observers;B.length;)B.shift().complete()}};
_.a.unsubscribe=function(){this.JSC$7136_isStopped=this.closed=!0;this.observers=null};
_.a._trySubscribe=function(B){this._throwIfClosed();return PF.prototype._trySubscribe.call(this,B)};
_.a._subscribe=function(B){this._throwIfClosed();this._checkFinalizedStatuses(B);return this._innerSubscribe(B)};
_.a._innerSubscribe=function(B){var c=this,x=this.JSC$7136_isStopped,P=this.observers;return this.hasError||x?Dz.JSC$7115_EMPTY:(P.push(B),new Dz(function(){return As(c.observers,B)}))};
_.a._checkFinalizedStatuses=function(B){var c=this.thrownError,x=this.JSC$7136_isStopped;this.hasError?B.error(c):x&&B.complete()};
gW.create=function(B,c){return new sY(B,c)};
var sY=function(B,c){gW.call(this);this.destination=B;this.source=c};
_.w(sY,gW);sY.create=gW.create;sY.prototype.next=function(B){var c,x;(c=this.destination)==null||(x=c.next)==null||x.call(c,B)};
sY.prototype.error=function(B){var c,x;(c=this.destination)==null||(x=c.error)==null||x.call(c,B)};
sY.prototype.complete=function(){var B,c;(B=this.destination)==null||(c=B.complete)==null||c.call(B)};
sY.prototype._subscribe=function(B){var c,x;return(x=(c=this.source)==null?void 0:c.subscribe(B))!=null?x:Dz.JSC$7115_EMPTY};var Sk=function(B){gW.call(this);this._value=B};
_.w(Sk,gW);Sk.create=gW.create;Sk.prototype._subscribe=function(B){var c=gW.prototype._subscribe.call(this,B);!c.closed&&B.next(this._value);return c};
Sk.prototype.getValue=function(){var B=this.thrownError,c=this._value;if(this.hasError)throw B;this._throwIfClosed();return c};
Sk.prototype.next=function(B){gW.prototype.next.call(this,this._value=B)};
_.AJ.Object.defineProperties(Sk.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var EI=new PF(function(B){return B.complete()});var YM=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var FGX=function(B){return B&&typeof B.length==="number"&&typeof B!=="function"};var S1Q={now:function(){return(S1Q.delegate||Date).now()},
delegate:void 0};var A0=function(B,c,x){B=B===void 0?Infinity:B;c=c===void 0?Infinity:c;x=x===void 0?S1Q:x;gW.call(this);this.bufferSize=B;this.windowTime=c;this.timestampProvider=x;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=c===Infinity;this.bufferSize=Math.max(1,B);this.windowTime=Math.max(1,c)};
_.w(A0,gW);A0.create=gW.create;A0.prototype.next=function(B){var c=this.buffer,x=this.infiniteTimeWindow,P=this.timestampProvider,Y=this.windowTime;this.JSC$7136_isStopped||(c.push(B),!x&&c.push(P.now()+Y));y1O(this);gW.prototype.next.call(this,B)};
A0.prototype._subscribe=function(B){this._throwIfClosed();y1O(this);for(var c=this._innerSubscribe(B),x=this.infiniteTimeWindow,P=this.buffer.slice(),Y=0;Y<P.length&&!B.closed;Y+=x?1:2)B.next(P[Y]);this._checkFinalizedStatuses(B);return c};
var y1O=function(B){var c=B.bufferSize,x=B.timestampProvider,P=B.buffer;B=B.infiniteTimeWindow;var Y=(B?1:2)*c;c<Infinity&&Y<P.length&&P.splice(0,P.length-Y);if(!B){c=x.now();x=0;for(B=1;B<P.length&&P[B]<=c;B+=2)x=B;x&&P.splice(0,x+1)}};var M7x=function(B,c){c=c===void 0?GR7:c;this.schedulerActionCtor=B;this.now=c};
M7x.prototype.schedule=function(B,c,x){c=c===void 0?0:c;return(new this.schedulerActionCtor(this,B)).schedule(x,c)};
var GR7=S1Q.now;var N8$=function(){var B=Error.call(this,"no elements in sequence");this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.w(N8$,Error);var TE=function(B,c,x,P,Y){Y7.call(this,B);this.onUnsubscribe=Y;c&&(this._next=function(g){try{c(g)}catch(k){this.destination.error(k)}});
x&&(this._error=function(g){try{x(g)}catch(k){this.destination.error(k)}this.unsubscribe()});
P&&(this._complete=function(){try{P()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.w(TE,Y7);TE.JSC$7115_EMPTY=Y7.JSC$7115_EMPTY;TE.create=Y7.create;TE.prototype.unsubscribe=function(){var B;this.closed||(B=this.onUnsubscribe)!=null&&B.call(this);Y7.prototype.unsubscribe.call(this)};var fq=function(B,c){this.source=B;this.subjectFactory=c;this._subject=null;this._refCount=0;this._connection=null};
_.w(fq,PF);fq.create=PF.create;fq.prototype._subscribe=function(B){return Lhx(this).subscribe(B)};
var Lhx=function(B){var c=B._subject;if(!c||c.JSC$7136_isStopped)B._subject=B.subjectFactory();return B._subject};
fq.prototype._teardown=function(){this._refCount=0;var B=this._connection;this._subject=this._connection=null;B==null||B.unsubscribe()};
fq.prototype.connect=function(){var B=this,c=this._connection;if(!c){c=this._connection=new Dz;var x=Lhx(this);c.add(this.source.subscribe(new TE(x,void 0,function(P){B._teardown();x.error(P)},function(){B._teardown();
x.complete()},function(){return B._teardown()})));
c.closed&&(this._connection=null,c=Dz.JSC$7115_EMPTY)}return c};var AOQ=Array.isArray;var D2$=Array.isArray,Z1w=Object,rOO=Z1w.getPrototypeOf,R9x=Z1w.prototype,e9x=Z1w.keys;var Id=function(B,c,x){Y7.call(this,B);this._next=c;this.shouldComplete=x};
_.w(Id,Y7);Id.JSC$7115_EMPTY=Y7.JSC$7115_EMPTY;Id.create=Y7.create;Id.prototype._complete=function(){this.shouldComplete()?Y7.prototype._complete.call(this):this.unsubscribe()};var sW7=["addListener","removeListener"],gXd=["addEventListener","removeEventListener"],kzo=["on","off"];var p9=function(){Dz.call(this)};
_.w(p9,Dz);p9.JSC$7115_EMPTY=Dz.JSC$7115_EMPTY;p9.prototype.schedule=function(){return this};var H17=function(B,c){return setInterval.apply(null,[B,c].concat(_.wq(_.ts.apply(2,arguments))))};var k7=function(B,c){Dz.call(this);this.scheduler=B;this.work=c;this.pending=!1};
_.w(k7,p9);k7.JSC$7115_EMPTY=p9.JSC$7115_EMPTY;k7.prototype.schedule=function(B,c){c=c===void 0?0:c;if(this.closed)return this;this.state=B;B=this.id;var x=this.scheduler;B!=null&&(this.id=fql(this,B,c));this.pending=!0;this.delay=c;this.id=this.id||this.requestAsyncId(x,this.id,c);return this};
k7.prototype.requestAsyncId=function(B,c,x){x=x===void 0?0:x;return H17(B.flush.bind(B,this),x)};
var fql=function(B,c,x){x=x===void 0?0:x;if(x!=null&&B.delay===x&&B.pending===!1)return c;clearInterval(c)};
k7.prototype.execute=function(B,c){if(this.closed)return Error("ma");this.pending=!1;if(B=this._execute(B,c))return B;this.pending===!1&&this.id!=null&&(this.id=fql(this,this.id,null))};
k7.prototype._execute=function(B){var c=!1;try{this.work(B)}catch(P){c=!0;var x=!!P&&P||Error(P)}if(c)return this.unsubscribe(),x};
k7.prototype.unsubscribe=function(){if(!this.closed){var B=this.id,c=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;As(c,this);B!=null&&(this.id=fql(this,B,null));this.delay=null;p9.prototype.unsubscribe.call(this)}};var i1o=function(B,c){c=c===void 0?GR7:c;M7x.call(this,B,c);this.actions=[];this.active=!1;this.scheduled=void 0};
_.w(i1o,M7x);i1o.prototype.flush=function(B){var c=this.actions;if(this.active)c.push(B);else{var x;this.active=!0;do if(x=B.execute(B.state,B.delay))break;while(B=c.shift());this.active=!1;if(x){for(;B=c.shift();)B.unsubscribe();throw x;}}};var T_=new PF(r8);var Xaq=Array.isArray;var X$=function(B,c){k7.call(this,B,c);this.scheduler=B;this.work=c};
_.w(X$,k7);X$.JSC$7115_EMPTY=k7.JSC$7115_EMPTY;X$.prototype.schedule=function(B,c){c=c===void 0?0:c;if(c>0)return k7.prototype.schedule.call(this,B,c);this.delay=c;this.state=B;this.scheduler.flush(this);return this};
X$.prototype.execute=function(B,c){return c>0||this.closed?k7.prototype.execute.call(this,B,c):this._execute(B,c)};
X$.prototype.requestAsyncId=function(B,c,x){x=x===void 0?0:x;return x!=null&&x>0||x==null&&this.delay>0?k7.prototype.requestAsyncId.call(this,B,c,x):B.flush(this)};var A1A=function(){i1o.apply(this,arguments)};
_.w(A1A,i1o);var fmX=new A1A(X$);var u7x=function(){this.performanceMonitor=new Bw7;this.queue=new c17;this.internalSymbol=Symbol();this.debugNames=new Q6q};
u7x.prototype.getOnBackgrounded=function(){return T_};
_.AJ.Object.defineProperties(u7x.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var $7=function(B,c){c=Error.call(this,c?B+": "+c:String(B));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=B;this.__proto__=$7.prototype;this.name=String(B)};
_.w($7,Error);var VE=function(B){$7.call(this,1E3,'sfr:"'+B+'"');this.measurementStrategyFailureReason=B;this.__proto__=VE.prototype};
_.w(VE,$7);var tx=function(){$7.call(this,1003);this.__proto__=tx.prototype};
_.w(tx,$7);var n9=function(){$7.call(this,1009);this.__proto__=n9.prototype};
_.w(n9,$7);var D$C=function(){$7.call(this,1011);this.__proto__=D$C.prototype};
_.w(D$C,$7);var r1C=function(){$7.call(this,1007);this.__proto__=tx.prototype};
_.w(r1C,$7);var qj=function(B){$7.call(this,1004,String(B));this.inputObservableIndex=B;this.__proto__=qj.prototype};
_.w(qj,$7);var zD$=function(B){$7.call(this,1010,B);this.__proto__=CH.prototype};
_.w(zD$,$7);var CH=function(B){$7.call(this,1005,B);this.__proto__=CH.prototype};
_.w(CH,$7);var Rno=function(B){var c=_.ts.apply(1,arguments),x=this;this.orderedFactories=[];this.orderedFactories.push(B);c.forEach(function(P){x.orderedFactories.push(P)})};
Rno.prototype.isSupported=function(B){return this.orderedFactories.some(function(c){return c.isSupported(B)})};
Rno.prototype.makeBeacon=function(B,c){for(var x=0;x<this.orderedFactories.length;x++)if(this.orderedFactories[x].isSupported(c))return this.orderedFactories[x].makeBeacon(B,c);throw new n9;};var TWI=Symbol("na"),eno=Symbol("oa"),vF=function(B,c){this.value=B;this.timeline=c},Qd=function(B,c){if(c.timeline!==B.timeline)throw new r1C;
return B.value-c.value};
_.a=vF.prototype;_.a.equals=function(B){return Qd(this,B)===0};
_.a.maximum=function(B){if(B.timeline!==this.timeline)throw new r1C;return this.value>=B.value?this:B};
_.a.round=function(){return new vF(Math.round(this.value),this.timeline)};
_.a.add=function(B){return new vF(this.value+B,this.timeline)};
_.a.toString=function(){return String(this.value)};var bL=function(B,c){this.context=B;this.JSC$7242_pinger=c};
bL.prototype.isSupported=function(B){return this.JSC$7242_pinger.isSupported(B)};
bL.prototype.makeBeacon=function(B,c){if(!this.isSupported(c))throw new n9;return new K9(this.context,this.JSC$7242_pinger,c!=null?c:void 0,B)};
var K9=function(B,c,x,P){var Y=this;this.JSC$7248_pinger=c;this.properties=x;this.url=P;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=x==null?void 0:x.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=B.getOnBackgrounded().subscribe(function(){Y.sendNow()})};
K9.prototype.deactivate=function(){this.internalIsPending=!1};
K9.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7248_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var B,c;this.JSC$7248_pinger.pingWithHeadersAndBody((B=this.properties)!=null?B:{},this.customHeaders,(c=this.body)!=null?c:"",this.url)}else this.JSC$7248_pinger.ping(this.url);this.internalIsPending=!1}catch(x){}else this.internalIsPending=!1};
K9.prototype.setHeader=function(B){this.customHeaders.set(B,void 0)};
_.AJ.Object.defineProperties(K9.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var coy=function(){for(var B=_.p(_.ts.apply(0,arguments)),c=B.next();!c.done;c=B.next())if(c=c.value,c.available()){this.timeProvider=c;return}this.timeProvider=new BCS};
_.a=coy.prototype;_.a.available=function(){return this.timeProvider.available()};
_.a.now=function(){return this.timeProvider.now()};
_.a.setTimeout=function(B,c){return this.timeProvider.setTimeout(B,c)};
_.a.clearTimeout=function(B){this.timeProvider.clearTimeout(B)};
_.a.interval=function(B,c){var x=this.intervalObservable(B).subscribe(c);return function(){return void x.unsubscribe()}};
_.a.intervalObservable=function(B){return this.timeProvider.intervalObservable(B)};
_.AJ.Object.defineProperties(coy.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var BCS=function(){this.timeline=Symbol()};
_.a=BCS.prototype;_.a.available=function(){return!1};
_.a.now=function(){return new vF(0,this.timeline)};
_.a.setTimeout=function(){return 0};
_.a.clearTimeout=function(){};
_.a.interval=function(){return function(){}};
_.a.intervalObservable=function(){return T_};var j1=function(B,c){this.intrinsicFunctionNamespace=B;this.performanceMonitor=c};
_.a=j1.prototype;_.a.setTimeout=function(B,c){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,B),c)};
_.a.clearTimeout=function(B){this.intrinsicFunctionNamespace.clearTimeout(B)};
_.a.interval=function(B,c){var x=this.intervalObservable(B).subscribe(c);return function(){return void x.unsubscribe()}};
_.a.intervalObservable=function(B){var c=this;return new PF(function(x){var P=0,Y=c.intrinsicFunctionNamespace.setInterval(function(){x.next(P++)},B);
return function(){c.intrinsicFunctionNamespace.clearInterval(Y)}})};
_.a.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var xY5=function(B,c){j1.call(this,B,c);this.timeline=eno};
_.w(xY5,j1);xY5.prototype.now=function(){return new vF(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
xY5.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&j1.prototype.available.call(this)};var PX3=function(B,c){j1.call(this,B,c);this.timeline=TWI};
_.w(PX3,j1);PX3.prototype.now=function(){return new vF(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
PX3.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&j1.prototype.available.call(this)};var aA3=function(B){this.context=B;if(Yl3===void 0)a:{var c,x,P=(c=B.global)==null?void 0:(x=c.document)==null?void 0:x.createElement("meta");if(P)try{P.httpEquiv="origin-trial";P.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";B.global.document.head.append(P);Yl3=P;break a}catch(Y){}Yl3=void 0}},
Yl3;
aA3.prototype.isSupported=function(B){return hPw(this.context)!==void 0&&!(B==null||!B.endOfSession)&&!UY(this.context)&&!(B==null?0:B.attributionEnabled)&&!(B==null?0:B.customHeaders)&&!(B==null?0:B.customBody)};
aA3.prototype.makeBeacon=function(B,c){if(!this.isSupported(c))throw new n9;return new dp(this.context,B,c)};
var dp=function(B,c,x){this.context=B;this.properties=x;this.JSC$7275_urlWithoutToken=c;var P;this.beaconMethod=(P=x==null?void 0:x.beaconMethod)!=null?P:"GET";B=hPw(this.context);if(B===void 0)throw Error();this.fetchLater=B;gIF(this,s79(this))},gIF=function(B,c){B.beaconResult&&B.beaconResult.activated||(B.beaconAbort=new AbortController,B.beaconResult=B.fetchLater(c,{method:B.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:B.beaconAbort.signal,activateAfter:96E4}))},s79=function(B){B=B.JSC$7275_urlWithoutToken;
return(B.slice(-1)[0]==="&"?B:B+"&")+"flapi=1"};
dp.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
dp.prototype.sendNow=function(){};
dp.prototype.setHeader=function(){};
_.AJ.Object.defineProperties(dp.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7275_urlWithoutToken},
set:function(B){this.JSC$7275_urlWithoutToken=B;B=s79(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);gIF(this,B)}},
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 p$Z=function(B){this.context=B};
p$Z.prototype.isSupported=function(){return!UY(this.context)&&!!this.context.global.fetch};
p$Z.prototype.ping=function(){var B=this;return OI.apply(null,_.wq(_.ts.apply(0,arguments).map(function(c){return pq(B.context.global.fetch(c,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(t0(function(x){return x.status===200}))}))).pipe(Iz7(function(c){return c}),W7d())};
p$Z.prototype.pingWithHeadersAndBody=function(B,c,x){for(var P=_.ts.apply(3,arguments),Y=this,g=new Headers,k=_.p(c.entries()),n=k.next();!n.done;n=k.next()){var b=_.p(n.value);n=b.next().value;b=b.next().value;g.set(n,b)}var d,q=(d=B.keepAlive)!=null?d:!1;OI.apply(null,_.wq(P.map(function(C){return pq(Y.context.global.fetch(C,Object.assign({},{method:String(B.beaconMethod),cache:"no-cache"},q?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:x}))).pipe(t0(function(h){return h.status===200}))}))).pipe(Iz7(function(C){return C}),
W7d())};var k79,XgO;_.qw=function(){};
_.Sd=function(B){return B};
k79=function(B){var c=c||0;return function(){return B.apply(this,Array.prototype.slice.call(arguments,0,c))}};
_.C9=function(B){var c=!1,x;return function(){c||(x=B(),c=!0);return x}};
_.he=function(B,c){var x=0;return function(P){_.xI.clearTimeout(x);var Y=arguments;x=_.xI.setTimeout(function(){B.apply(void 0,Y)},c)}};
XgO=function(B,c){var x=0,P=!1,Y=[],g=function(){x=0;P&&(P=!1,k())},k=function(){x=_.xI.setTimeout(g,c);
var n=Y;Y=[];B.apply(void 0,n)};
return function(n){Y=arguments;x?P=!0:k()}};var $YW=function(){return qY&&Cx?Cx.mobile:!X$F()&&(Vw("iPod")||Vw("iPhone")||Vw("Android")||Vw("IEMobile"))},X$F=function(){return qY&&Cx?!Cx.mobile&&(Vw("iPad")||Vw("Android")||Vw("Silk")):Vw("iPad")||Vw("Android")&&!Vw("Mobile")||Vw("Silk")};var nIZ;_.wW={};nIZ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.wW.add=function(B,c,x){if(B!==null&&c in B)throw Error("qa`"+c);B[c]=x};
_.wW.clear=function(B){for(var c in B)delete B[c]};
_.wW.clone=function(B){var c={},x;for(x in B)c[x]=B[x];return c};
_.wW.contains=function(B,c){return O6X(B,c)};
_.wW.containsKey=function(B,c){return B!==null&&c in B};
_.wW.containsValue=O6X;_.wW.create=F7Y;_.wW.createImmutableView=function(B){var c=B;Object.isFrozen&&!Object.isFrozen(B)&&(c=Object.create(B),Object.freeze(c));return c};
_.wW.createSet=vXw;_.wW.equals=function(B,c){for(var x in B)if(!(x in c)||B[x]!==c[x])return!1;for(var P in c)if(!(P in B))return!1;return!0};
_.wW.every=function(B,c,x){for(var P in B)if(!c.call(x,B[P],P,B))return!1;return!0};
_.wW.extend=function(B,c){for(var x,P,Y=1;Y<arguments.length;Y++){P=arguments[Y];for(x in P)B[x]=P[x];for(var g=0;g<nIZ.length;g++)x=nIZ[g],Object.prototype.hasOwnProperty.call(P,x)&&(B[x]=P[x])}};
_.wW.filter=function(B,c,x){var P={},Y;for(Y in B)c.call(x,B[Y],Y,B)&&(P[Y]=B[Y]);return P};
_.wW.findKey=oXO;_.wW.findValue=function(B,c,x){return(c=oXO(B,c,x))&&B[c]};
_.wW.forEach=function(B,c,x){for(var P in B)c.call(x,B[P],P,B)};
_.wW.get=function(B,c,x){return B!==null&&c in B?B[c]:x};
_.wW.getAllPropertyNames=function(B,c,x){if(!B)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return EXO(B);for(var P={};B&&(B!==Object.prototype||c)&&(B!==Function.prototype||x);){for(var Y=Object.getOwnPropertyNames(B),g=0;g<Y.length;g++)P[Y[g]]=!0;B=Object.getPrototypeOf(B)}return EXO(P)};
_.wW.getAnyKey=function(B){for(var c in B)return c};
_.wW.getAnyValue=function(B){for(var c in B)return B[c]};
_.wW.getCount=function(B){var c=0,x;for(x in B)c++;return c};
_.wW.getKeys=EXO;_.wW.getSuperClass=function(B){return(B=Object.getPrototypeOf(B.prototype))&&B.constructor};
_.wW.getValueByKeys=function(B,c){var x=_.R7(c),P=x?c:arguments;for(x=x?0:1;x<P.length;x++){if(B==null)return;B=B[P[x]]}return B};
_.wW.getValues=function(B){var c=[],x=0,P;for(P in B)c[x++]=B[P];return c};
_.wW.isEmpty=function(B){for(var c in B)return!1;return!0};
_.wW.isImmutableView=function(B){return!!Object.isFrozen&&Object.isFrozen(B)};
_.wW.map=function(B,c,x){var P={},Y;for(Y in B)P[Y]=c.call(x,B[Y],Y,B);return P};
_.wW.remove=function(B,c){var x;(x=c in B)&&delete B[c];return x};
_.wW.set=function(B,c,x){B[c]=x};
_.wW.setIfUndefined=function(B,c,x){return c in B?B[c]:B[c]=x};
_.wW.setWithReturnValueIfNotSet=function(B,c,x){if(c in B)return B[c];x=x();return B[c]=x};
_.wW.some=function(B,c,x){for(var P in B)if(c.call(x,B[P],P,B))return!0;return!1};
_.wW.transpose=function(B){var c={},x;for(x in B)c[B[x]]=x;return c};
_.wW.unsafeClone=QWQ;var mv=function(B,c,x,P,Y){this.allowedElements=B;this.elementPolicies=c;this.allowedGlobalAttributes=x;this.globalAttributePolicies=P;this.globallyAllowedAttributePrefixes=Y},bxm=function(B,c,x){x=B.elementPolicies.get(x);
return(x==null?0:x.has(c))?x.get(c):B.allowedGlobalAttributes.has(c)?{policyAction:1}:(x=B.globalAttributePolicies.get(c))?x:B.globallyAllowedAttributePrefixes&&[].concat(_.wq(B.globallyAllowedAttributePrefixes)).some(function(P){return c.indexOf(P)===0})?{policyAction:1}:{policyAction:0}};var Kq9="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(" "),
j7W=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],UYd="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(" "),
dYI=[["dir",{policyAction:3,conditions:g8(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:g8(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:g8(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:g8(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],qld=new mv(new Set(Kq9),new Map(j7W),new Set(UYd),new Map(dYI)),CXd=new mv(new Set(Kq9.concat(["BUTTON",
"INPUT"])),new Map(j7W),new Set(g8(function(){return UYd.concat(["class","id","name"])})),new Map(g8(function(){return dYI.concat([["style",
{policyAction:1}]])})));var hQt,mY3,Vd4;hQt=function(B,c,x,P){this.JSC$7335_sanitizerTable=B;this.styleElementSanitizer=c;this.styleAttributeSanitizer=x;this.JSC$7335_resourceUrlPolicy=P;this.changes=[]};
_.TC9=function(B,c){var x=document.implementation.createHTMLDocument("");B=mY3(B,c,x);x=x.body;x.appendChild(B);x=(new XMLSerializer).serializeToString(x);x=x.slice(x.indexOf(">")+1,x.lastIndexOf("</"));return Wa(x)};
mY3=function(B,c,x){c=SGA(c,x);c=document.createTreeWalker(c,5,function(n){if(n.nodeType===3)n=1;else if(GzO(n))if(n=ysX(n),n===null)n=2;else{var b=B.JSC$7335_sanitizerTable;n=n!=="FORM"&&(b.allowedElements.has(n)||b.elementPolicies.has(n))?1:2}else n=2;return n});
for(var P=c.nextNode(),Y=x.createDocumentFragment(),g=Y;P!==null;){var k=void 0;if(P.nodeType===3)B.styleElementSanitizer&&g.nodeName==="STYLE"?(P=B.styleElementSanitizer(P.data),k=B.createTextNode(P)):k=B.createTextNode(P.data);else if(GzO(P))k=Vd4(B,P,x);else throw Error("da");g.appendChild(k);if(P=c.firstChild())g=k;else for(;!(P=c.nextSibling())&&(P=c.parentNode());)g=g.parentNode}return Y};
hQt.prototype.createTextNode=function(B){return document.createTextNode(B)};
Vd4=function(B,c,x){var P,Y=ysX(c);x=x.createElement(Y);c=c.attributes;for(var g=_.p(c),k=g.next();!k.done;k=g.next()){var n=k.value;k=n.name;n=n.value;var b=bxm(B.JSC$7335_sanitizerTable,k,Y);a:{if(P=b.conditions){P=_.p(P);for(var d=P.next();!d.done;d=P.next()){var q=_.p(d.value);d=q.next().value;q=q.next().value;var C=void 0;if((d=(C=c.getNamedItem(d))==null?void 0:C.value)&&!q.has(d)){P=!1;break a}}}P=!0}if(P)switch(b.policyAction){case 1:x2(x,k,n);break;case 2:b=_.jUd(n);n=b!==void 0&&t7q.indexOf(b.toLowerCase())!==
-1?n:"about:invalid#zClosurez";x2(x,k,n);break;case 3:x2(x,k,n.toLowerCase());break;case 4:B.styleAttributeSanitizer?(n=B.styleAttributeSanitizer(n),x2(x,k,n)):x2(x,k,n);break;case 5:B.JSC$7335_resourceUrlPolicy?(b={type:2,attributeName:k,elementName:Y},n=zPd(n),(n=B.JSC$7335_resourceUrlPolicy(n,b))&&x2(x,k,n.toString())):x2(x,k,n);break;case 6:if(B.JSC$7335_resourceUrlPolicy){b={type:2,attributeName:k,elementName:Y};P=[];n=_.p(n.split(","));for(d=n.next();!d.done;d=n.next())q=_.p(d.value.trim().split(/\s+/,
2)),d=q.next().value,q=q.next().value,P.push({url:d,descriptor:q});n={parts:[]};P=_.p(P);for(d=P.next();!d.done;d=P.next())d=d.value,q=zPd(d.url),(q=B.JSC$7335_resourceUrlPolicy(q,b))&&n.parts.push({url:q.toString(),descriptor:d.descriptor});x2(x,k,MTX(n))}else x2(x,k,n)}}return x};
_.tdW=g8(function(){return new hQt(qld)});
_.w$5=g8(function(){return new hQt(CXd)});var NC4=function(){this.calledBuild=!1;this.JSC$7347_sanitizerTable=qld},IAd=function(){NC4.apply(this,arguments)};
_.w(IAd,NC4);IAd.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new hQt(this.JSC$7347_sanitizerTable,void 0,void 0,this.JSC$7347_resourceUrlPolicy)};var JoS=/[^#]*/;var Ax=function(B){try{return!!B&&B.location.href!=null&&Ed(B,"foo")}catch(c){return!1}},lA4=function(B){var c=Wqt;
if(c)for(var x in c)Object.prototype.hasOwnProperty.call(c,x)&&B(c[x],x,c)},EI3=function(){var B=[];
lA4(function(c){B.push(c)});
return B},Wqt={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"},Ox5=_.C9(function(){return EI3()}),Q7F=function(){var B=oIt("IFRAME"),
c={};
_.Zg(Ox5(),function(x){B.sandbox&&B.sandbox.supports&&B.sandbox.supports(x)&&(c[x]=!0)});
return c},oIt=function(B,c){c=c===void 0?document:c;
return c.createElement(String(B).toLowerCase())};var T1;_.vi=function(B,c,x){return Math.min(Math.max(B,c),x)};
T1=function(B,c,x){return B+x*(c-B)};_.Jx=function(B,c){this.x=B!==void 0?B:0;this.y=c!==void 0?c:0};
_.a=_.Jx.prototype;_.a.clone=function(){return new _.Jx(this.x,this.y)};
_.a.equals=function(B){return B instanceof _.Jx&&(this==B?!0:this&&B?this.x==B.x&&this.y==B.y:!1)};
_.a.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.a.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.a.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.a.translate=function(B,c){B instanceof _.Jx?(this.x+=B.x,this.y+=B.y):(this.x+=Number(B),typeof c==="number"&&(this.y+=c));return this};
_.a.scale=function(B,c){this.x*=B;this.y*=typeof c==="number"?c:B;return this};_.nH=function(B,c){this.width=B;this.height=c};
_.a=_.nH.prototype;_.a.clone=function(){return new _.nH(this.width,this.height)};
_.a.area=function(){return this.width*this.height};
_.a.aspectRatio=function(){return this.width/this.height};
_.a.isEmpty=function(){return!this.area()};
_.a.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.a.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.a.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.a.scale=function(B,c){this.width*=B;this.height*=typeof c==="number"?c:B;return this};var Qp=function(B,c){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=B===Klo&&c||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=FqI};
Qp.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vI5=function(B){return B instanceof Qp&&B.constructor===Qp&&B.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===FqI?B.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},FqI={},Klo={};
new Qp(Klo,"");var Ud,hG,te,zQm,G7Z,yo4,WM,Lq0,Hx9,ZxW,Je,fA4,eQW,RQZ,ro9,B95,cnF,xQ3,Ptm,OrX,Y30,gFS,s09,aSI,VQ;Ud=function(B){return B?new VQ(_.ly(B)):D1x||(D1x=new VQ)};
_.cv=function(B,c){return typeof c==="string"?B.getElementById(c):c};
hG=function(B,c){return(c||document).getElementsByTagName(String(B))};
_.SlI=function(B){return zQm("yt-formatted-string","paper-input-input",B)};
te=function(B,c,x,P){B=P||B;return(c=c&&c!="*"?String(c).toUpperCase():"")||x?B.querySelectorAll(c+(x?"."+x:"")):B.getElementsByTagName("*")};
zQm=function(B,c,x){var P=document,Y=B&&B!="*"?String(B).toUpperCase():"";return Y||c?(x||P).querySelector(Y+(c?"."+c:"")):te(P,B,c,x)[0]||null};
G7Z=function(B,c){_.wW.forEach(c,function(x,P){P=="style"?B.style.cssText=x:P=="class"?B.className=x:P=="for"?B.htmlFor=x:yo4.hasOwnProperty(P)?B.setAttribute(yo4[P],x):_.YI(P,"aria-")||_.YI(P,"data-")?B.setAttribute(P,x):B[P]=x})};
yo4={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"};_.KH=function(B){B=(B||window).document;B=B.compatMode=="CSS1Compat"?B.documentElement:B.body;return new _.nH(B.clientWidth,B.clientHeight)};
_.MdW=function(B){var c=_.wp(B);B=B.defaultView;return new _.Jx(B.pageXOffset||c.scrollLeft,B.pageYOffset||c.scrollTop)};
_.wp=function(B){return B.scrollingElement?B.scrollingElement:_.bJ||B.compatMode!="CSS1Compat"?B.body||B.documentElement:B.documentElement};
WM=function(B){return B?B.defaultView:window};
_.Nw=function(B,c,x){return Lq0(document,arguments)};
Lq0=function(B,c){var x=c[1],P=ZxW(B,String(c[0]));x&&(typeof x==="string"?P.className=x:Array.isArray(x)?P.className=x.join(" "):G7Z(P,x));c.length>2&&Hx9(B,P,c,2);return P};
Hx9=function(B,c,x,P){function Y(n){n&&c.appendChild(typeof n==="string"?B.createTextNode(n):n)}
for(;P<x.length;P++){var g=x[P];if(!_.R7(g)||_.xF(g)&&g.nodeType>0)Y(g);else{a:{if(g&&typeof g.length=="number"){if(_.xF(g)){var k=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){k=typeof g.item=="function";break a}}k=!1}_.Zg(k?_.DA(g):g,Y)}}};
_.df=function(B){return ZxW(document,B)};
ZxW=function(B,c){c=String(c);B.contentType==="application/xhtml+xml"&&(c=c.toLowerCase());return B.createElement(c)};
_.If=function(){return document.createTextNode("\n")};
Je=function(B){if(B.nodeType!=1)return!1;switch(B.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};
fA4=function(B,c){Hx9(_.ly(B),B,arguments,1)};
_.WJ=function(B){for(var c;c=B.firstChild;)B.removeChild(c)};
_.lL=function(B,c){c.parentNode&&c.parentNode.insertBefore(B,c)};
_.EY=function(B,c){c.parentNode&&c.parentNode.insertBefore(B,c.nextSibling)};
_.qH=function(B){return B&&B.parentNode?B.parentNode.removeChild(B):null};
_.ix9=function(B,c){var x=c.parentNode;x&&x.replaceChild(B,c)};
_.Ao4=function(B){var c,x=B.parentNode;if(x&&x.nodeType!=11)if(B.removeNode)B.removeNode(!1);else{for(;c=B.firstChild;)x.insertBefore(c,B);_.qH(B)}};
_.OY=function(B){return B.children!=void 0?B.children:Array.prototype.filter.call(B.childNodes,function(c){return c.nodeType==1})};
_.DY9=function(B){return B.nextElementSibling!==void 0?B.nextElementSibling:_.uOF(B.nextSibling,!0)};
_.uOF=function(B,c){for(;B&&B.nodeType!=1;)B=c?B.nextSibling:B.previousSibling;return B};
_.ur=function(B){return _.xF(B)&&B.nodeType==1};
_.GP=function(B,c){if(!B||!c)return!1;if(B.contains&&c.nodeType==1)return B==c||B.contains(c);if(typeof B.compareDocumentPosition!="undefined")return B==c||!!(B.compareDocumentPosition(c)&16);for(;c&&B!=c;)c=c.parentNode;return c==B};
eQW=function(B,c){if(B==c)return 0;if(B.compareDocumentPosition)return B.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in B||B.parentNode&&"sourceIndex"in B.parentNode){var x=B.nodeType==1,P=c.nodeType==1;if(x&&P)return B.sourceIndex-c.sourceIndex;var Y=B.parentNode,g=c.parentNode;return Y==g?ro9(B,c):!x&&_.GP(Y,c)?-1*RQZ(B,c):!P&&_.GP(g,B)?RQZ(c,B):(x?B.sourceIndex:Y.sourceIndex)-(P?c.sourceIndex:g.sourceIndex)}P=_.ly(B);x=P.createRange();x.selectNode(B);x.collapse(!0);B=P.createRange();B.selectNode(c);
B.collapse(!0);return x.compareBoundaryPoints(_.xI.Range.START_TO_END,B)};
RQZ=function(B,c){var x=B.parentNode;if(x==c)return-1;for(;c.parentNode!=x;)c=c.parentNode;return ro9(c,B)};
ro9=function(B,c){for(;c=c.previousSibling;)if(c==B)return-1;return 1};
B95=function(B){var c,x=arguments.length;if(!x)return null;if(x==1)return arguments[0];var P=[],Y=Infinity;for(c=0;c<x;c++){for(var g=[],k=arguments[c];k;)g.unshift(k),k=k.parentNode;P.push(g);Y=Math.min(Y,g.length)}g=null;for(c=0;c<Y;c++){k=P[0][c];for(var n=1;n<x;n++)if(k!=P[n][c])return g;g=k}return g};
_.ly=function(B){return B.nodeType==9?B:B.ownerDocument||B.document};
cnF=function(B){return B.contentDocument||B.contentWindow.document};
_.of=function(B,c){if("textContent"in B)B.textContent=c;else if(B.nodeType==3)B.data=String(c);else if(B.firstChild&&B.firstChild.nodeType==3){for(;B.lastChild!=B.firstChild;)B.removeChild(B.lastChild);B.firstChild.data=String(c)}else _.WJ(B),B.appendChild(_.ly(B).createTextNode(String(c)))};
xQ3={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Ptm={IMG:" ",BR:"\n"};OrX=function(B){var c;B.tagName=="A"&&B.hasAttribute("href")||B.tagName=="INPUT"||B.tagName=="TEXTAREA"||B.tagName=="SELECT"||B.tagName=="BUTTON"?c=!B.disabled&&(!B.hasAttribute("tabindex")||Y30(B)):c=B.hasAttribute("tabindex")&&Y30(B);return c};
Y30=function(B){B=B.tabIndex;return typeof B==="number"&&B>=0&&B<32768};
gFS=function(B){var c=[];aSI(B,c,!0);B=c.join("");B=B.replace(/ \xAD /g," ").replace(/\xAD/g,"");B=B.replace(/\u200B/g,"");B=B.replace(/ +/g," ");B!=" "&&(B=B.replace(/^\s*/,""));return B};
s09=function(B){var c=[];aSI(B,c,!1);return c.join("")};
aSI=function(B,c,x){if(!(B.nodeName in xQ3))if(B.nodeType==3)x?c.push(String(B.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(B.nodeValue);else if(B.nodeName in Ptm)c.push(Ptm[B.nodeName]);else for(B=B.firstChild;B;)aSI(B,c,x),B=B.nextSibling};
_.py4=function(B,c,x){if(!c&&!x)return null;var P=c?String(c).toUpperCase():null;return _.QE(B,function(Y){return(!P||Y.nodeName==P)&&(!x||typeof Y.className==="string"&&_.Lx(Y.className.split(/\s+/),x))},!0)};
_.QE=function(B,c,x){B&&!x&&(B=B.parentNode);for(x=0;B;){if(c(B))return B;B=B.parentNode;x++}return null};
VQ=function(B){this.JSC$7372_document_=B||_.xI.document||document};
_.a=VQ.prototype;_.a.getElement=function(B){return _.cv(this.JSC$7372_document_,B)};
_.a.$=VQ.prototype.getElement;_.a.getElementsByTagName=function(B,c){return(c||this.JSC$7372_document_).getElementsByTagName(String(B))};
_.a.getElementsByTagNameAndClass=function(B,c,x){return te(this.JSC$7372_document_,B,c,x)};
_.a.$$=VQ.prototype.getElementsByTagNameAndClass;_.a.setProperties=G7Z;_.a.JSC$7374_createDom=function(B,c,x){return Lq0(this.JSC$7372_document_,arguments)};
_.a.createElement=function(B){return ZxW(this.JSC$7372_document_,B)};
_.a.createTextNode=function(B){return this.JSC$7372_document_.createTextNode(String(B))};
_.a.getWindow=function(){return this.JSC$7372_document_.defaultView};
var jk=function(B){return _.MdW(B.JSC$7372_document_)};
_.a=VQ.prototype;_.a.appendChild=function(B,c){B.appendChild(c)};
_.a.append=fA4;_.a.canHaveChildren=Je;_.a.removeNode=_.qH;_.a.getChildren=_.OY;_.a.contains=_.GP;_.a=a3.prototype;_.a.getWidth=function(){return this.right-this.left};
_.a.getHeight=function(){return this.bottom-this.top};
_.a.clone=function(){return new a3(this.top,this.right,this.bottom,this.left)};
_.a.contains=function(B){return this&&B?B instanceof a3?B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom:B.x>=this.left&&B.x<=this.right&&B.y>=this.top&&B.y<=this.bottom:!1};
_.a.expand=function(B,c,x,P){_.xF(B)?(this.top-=B.top,this.right+=B.right,this.bottom+=B.bottom,this.left-=B.left):(this.top-=B,this.right+=Number(c),this.bottom+=Number(x),this.left-=Number(P));return this};
_.a.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};
_.a.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};
_.a.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};
_.a.translate=function(B,c){B instanceof _.Jx?(this.left+=B.x,this.right+=B.x,this.top+=B.y,this.bottom+=B.y):(this.left+=B,this.right+=B,typeof c==="number"&&(this.top+=c,this.bottom+=c));return this};
_.a.scale=function(B,c){c=typeof c==="number"?c:B;this.left*=B;this.right*=B;this.top*=c;this.bottom*=c;return this};var QQ=function(B,c,x,P){this.left=B;this.top=c;this.width=x;this.height=P};
_.a=QQ.prototype;_.a.clone=function(){return new QQ(this.left,this.top,this.width,this.height)};
_.a.boundingRect=function(B){var c=Math.max(this.left+this.width,B.left+B.width),x=Math.max(this.top+this.height,B.top+B.height);this.left=Math.min(this.left,B.left);this.top=Math.min(this.top,B.top);this.width=c-this.left;this.height=x-this.top};
_.a.contains=function(B){return B instanceof _.Jx?B.x>=this.left&&B.x<=this.left+this.width&&B.y>=this.top&&B.y<=this.top+this.height:this.left<=B.left&&this.left+this.width>=B.left+B.width&&this.top<=B.top&&this.top+this.height>=B.top+B.height};
_.a.distance=function(B){var c=B.x<this.left?this.left-B.x:Math.max(B.x-(this.left+this.width),0);B=B.y<this.top?this.top-B.y:Math.max(B.y-(this.top+this.height),0);return Math.sqrt(c*c+B*B)};
_.a.getSize=function(){return new _.nH(this.width,this.height)};
_.a.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};
_.a.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};
_.a.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};
_.a.translate=function(B,c){B instanceof _.Jx?(this.left+=B.x,this.top+=B.y):(this.left+=B,typeof c==="number"&&(this.top+=c));return this};
_.a.scale=function(B,c){c=typeof c==="number"?c:B;this.left*=B;this.width*=B;this.top*=c;this.height*=c;return this};var XyZ,z1,$j$,vJ,KmS,b44,j0t,wiI,UQQ,q3y;_.F$=function(B,c,x){if(typeof c==="string")(c=_.k5y(B,c))&&(B.style[c]=x);else for(var P in c){x=B;var Y=c[P],g=_.k5y(x,P);g&&(x.style[g]=Y)}};
XyZ={};_.k5y=function(B,c){var x=XyZ[c];if(!x){var P=_.KN(c);x=P;B.style[P]===void 0&&(P=(_.bJ?"Webkit":_.nY?"Moz":null)+oqA(P),B.style[P]!==void 0&&(x=P));XyZ[c]=x}return x};
_.ta=function(B,c){var x=_.ly(B);return x.defaultView&&x.defaultView.getComputedStyle&&(B=x.defaultView.getComputedStyle(B,null))?B[c]||B.getPropertyValue(c)||"":""};
_.zP=function(B,c){return _.ta(B,c)||(B.currentStyle?B.currentStyle[c]:null)||B.style&&B.style[c]};
_.$Qt=function(B){return _.zP(B,"position")};
z1=function(B,c,x){if(c instanceof _.Jx){var P=c.x;c=c.y}else P=c,c=x;B.style.left=vJ(P,!1);B.style.top=vJ(c,!1)};
$j$=function(B){try{return B.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}};
_.Od=function(B){var c=_.ly(B),x=new _.Jx(0,0);if(B==(c?_.ly(c):document).documentElement)return x;B=$j$(B);c=jk(Ud(c));x.x=B.left+c.x;x.y=B.top+c.y;return x};
_.nFm=function(B,c,x){if(c instanceof _.nH)x=c.height,c=c.width;else if(x==void 0)throw Error("ta");B.style.width=vJ(c,!0);B.style.height=vJ(x,!0)};
vJ=function(B,c){typeof B=="number"&&(B=(c?Math.round(B):B)+"px");return B};
KmS=function(B){return b44(B)};
b44=function(B){var c=j0t;if(_.zP(B,"display")!="none")return c(B);var x=B.style,P=x.display,Y=x.visibility,g=x.position;x.visibility="hidden";x.position="absolute";x.display="inline";B=c(B);x.display=P;x.position=g;x.visibility=Y;return B};
j0t=function(B){var c=B.offsetWidth,x=B.offsetHeight,P=_.bJ&&!c&&!x;return(c===void 0||P)&&B.getBoundingClientRect?(B=$j$(B),new _.nH(B.right-B.left,B.bottom-B.top)):new _.nH(c,x)};
wiI=function(B){var c=_.Od(B);B=b44(B);return new QQ(c.x,c.y,B.width,B.height)};
UQQ=function(B,c){B=B.style;"opacity"in B?B.opacity=c:"MozOpacity"in B?B.MozOpacity=c:"filter"in B&&(B.filter=c===""?"":"alpha(opacity="+Number(c)*100+")")};
_.iW=function(B,c){B.style.display=c?"":"none"};
_.dQy=function(B){return"rtl"==_.zP(B,"direction")};
q3y=function(B){var c=_.ta(B,"marginLeft"),x=_.ta(B,"marginRight"),P=_.ta(B,"marginTop");B=_.ta(B,"marginBottom");return new a3(parseFloat(P),parseFloat(x),parseFloat(B),parseFloat(c))};
_.CtW=function(B){var c=_.ta(B,"borderLeftWidth"),x=_.ta(B,"borderRightWidth"),P=_.ta(B,"borderTopWidth");B=_.ta(B,"borderBottomWidth");return new a3(parseFloat(P),parseFloat(x),parseFloat(B),parseFloat(c))};var S1=function(B){this.context=B};
S1.prototype.isSupported=function(B){return(B==null?0:B.attributionEnabled)||(B==null?void 0:B.beaconMethod)==="POST"||(B==null?0:B.customHeaders)||(B==null?0:B.customBody)||(B==null?0:B.keepAlive)?!1:!UY(this.context)};
S1.prototype.ping=function(){var B=this;return dq(_.ts.apply(0,arguments).map(function(c){try{var x=B.context.global,P=!1;P=P===void 0?!1:P;x.google_image_requests||(x.google_image_requests=[]);var Y=oIt("IMG",x.document);P&&(Y.attributionSrc="");Y.src=c;x.google_image_requests.push(Y);return!0}catch(g){return!1}}).every(function(c){return c}))};
S1.prototype.pingWithHeadersAndBody=function(B,c,x){this.ping.apply(this,_.wq(_.ts.apply(3,arguments)))};var hIt=function(B){this.context=B};
hIt.prototype.isSupported=function(B){return mQm&&!UY(this.context)&&Z6w(this.context)!==void 0&&!(B==null?0:B.attributionEnabled)&&(B==null?void 0:B.beaconMethod)!=="POST"&&!(B==null?0:B.customHeaders)&&!(B==null?0:B.customBody)};
hIt.prototype.makeBeacon=function(B,c){if(!this.isSupported(c))throw new n9;return new yQ(this.context,B)};
var mQm=!1,yQ=function(B,c){this.context=B;this.JSC$7393_urlWithoutToken=c;B=Z6w(this.context);if(B===void 0)throw Error();this.wrappedBeacon=new B(T93(this),{})},T93=function(B){B=B.JSC$7393_urlWithoutToken;
return(B.slice(-1)[0]==="&"?B:B+"&")+"pbapi=1"};
yQ.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
yQ.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
yQ.prototype.setHeader=function(){};
_.AJ.Object.defineProperties(yQ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7393_urlWithoutToken},
set:function(B){this.JSC$7393_urlWithoutToken=B;this.wrappedBeacon.setURL(T93(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(B){if(B!=="GET")throw new n9;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var VZn=function(B){this.context=B};
VZn.prototype.isSupported=function(B){if((B==null?0:B.attributionEnabled)||(B==null?void 0:B.beaconMethod)==="GET"||(B==null?0:B.customHeaders)||(B==null?0:B.customBody)||(B==null?0:B.keepAlive))return!1;var c;return!UY(this.context)&&((c=this.context.global.navigator)==null?void 0:c.sendBeacon)!==void 0};
VZn.prototype.ping=function(){var B=this;return dq(_.ts.apply(0,arguments).map(function(c){var x;return(x=B.context.global.navigator)==null?void 0:x.sendBeacon(c)}).every(function(c){return c}))};
VZn.prototype.pingWithHeadersAndBody=function(B,c,x){this.ping.apply(this,_.wq(_.ts.apply(3,arguments)))};var Xg=function(B){this.value=B},HM=function(B,c){return dq(B.value).pipe(pH(c))},De=new Xg(!1),hEq=new Xg(!0);var Fg=function(B){this.value=B;this.releasedSubject=new gW};
Fg.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.AJ.Object.defineProperties(Fg.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7406_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var PeQ=["FRAME","IMG","IFRAME"],rsl=/^[01](px)?$/,x8w=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},c07=function(){var B=new x8w;
B.crossDomainLoadedDefault=!0;B.pendingImagesBlockLoad=!0;return B};var tZI=function(B,c){var x=XFx(B);if(x)if(x.onCreativeLoad)x.onCreativeLoad(c);else{var P=c?[c]:[],Y=function(g){for(var k=0;k<P.length;++k)try{P[k](1,g)}catch(n){}P={push:function(n){n(1,g)}}};
x.onCreativeLoad=function(g){P.push(g)};
x.setAttribute("data-creative-load-listener","");x.addEventListener("creativeLoad",function(g){Y(g.detail)});
_.xI.addEventListener("message",function(g){kEo(x,Y,g)})}};var G1=function(B,c){var x=this;this.global=B;this.parentContext=c;this.JSC$7417_onVisibilityChange=this.document?OI(dq(!0),le(this.document,"visibilitychange")).pipe(zE(this.parentContext.performanceMonitor,748),t0(function(){return x.getVisibilityState()}),ZK()):dq("visible");
this.document?le(this.document,"DOMContentLoaded").pipe(zE(this.parentContext.performanceMonitor,739),Lq(1)):dq(u_x("DOMContentLoaded"))},CWo=function(B){return B.document!==null&&B.document.visibilityState!==void 0};
G1.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
G1.prototype.querySelector=function(B){return this.document?this.document.querySelector(B):null};
G1.prototype.querySelectorAll=function(B){return this.document?_.DA(this.document.querySelectorAll(B)):[]};
G1.prototype.elementFromPoint=function(B,c){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;B=this.document.elementFromPoint(B,c);return B===null?null:new Fg(B)};
var phx=function(B,c,x){x=x===void 0?!1:x;if(c.ref===void 0||!B.document)return dq(c).pipe(zE(B.parentContext.performanceMonitor,749));var P=new A0(1),Y=function(){P.next(c)};
x||tZI(c.ref,Y);YIA(c.ref,Y);return P.pipe(zE(B.parentContext.performanceMonitor,749),Lq(1))};
_.AJ.Object.defineProperties(G1.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Ed(this.global,"document")?this.global.document||null:null}}});var $8X=_.r2(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),nMl=_.r2(["./reach_worklet.js"]),bqd=_.r2(["./reach_worklet.js"]),wyd=_.r2(["./reach_worklet.html"]),N90=_.r2(["./reach_worklet.js"]),ISF=_.r2(["./reach_worklet.js"]);_.PM(wyd);_.PM(N90);_.PM(ISF);var yE={left:0,top:0,width:0,height:0};var Jnm,Wmm,lSn,EF5,rD,oFy,Q0m,Fmm,cF$,xEl,S3S,yn9;Jnm=function(B,c,x,P,Y,g,k){var n="";B&&(n+=B+":");x&&(n+="//",c&&(n+=c+"@"),n+=x,P&&(n+=":"+P));Y&&(n+=Y);g&&(n+="?"+g);k&&(n+="#"+k);return n};
Wmm=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.uk=function(B){return B.match(Wmm)};
_.lU=function(B,c){return B?c?decodeURI(B):decodeURIComponent(B):B};
lSn=function(B){B=_.uk(B)[1]||null;!B&&_.xI.self&&_.xI.self.location&&(B=_.xI.self.location.protocol.slice(0,-1));return B?B.toLowerCase():""};
_.Dg=function(B){return _.lU(_.uk(B)[3]||null,!0)};
_.$u=function(B){return _.lU(_.uk(B)[5]||null,!0)};
_.BE7=function(B){var c=B.indexOf("#");return c<0?null:B.slice(c+1)};
EF5=function(B){B=_.uk(B);return Jnm(B[1],B[2],B[3],B[4])};
_.O40=function(B){B=_.uk(B);return Jnm(B[1],null,B[3],B[4])};
_.SW=function(B){B=_.uk(B);return Jnm(null,null,null,null,B[5],B[6],B[7])};
_.uh=function(B){var c=B.indexOf("#");return c<0?B:B.slice(0,c)};
rD=function(B,c){B=_.uk(B);c=_.uk(c);return B[3]==c[3]&&B[1]==c[1]&&B[4]==c[4]};
oFy=function(B,c){if(B){B=B.split("&");for(var x=0;x<B.length;x++){var P=B[x].indexOf("="),Y=null;if(P>=0){var g=B[x].substring(0,P);Y=B[x].substring(P+1)}else g=B[x];c(g,Y?eI(Y):"")}}};
Q0m=function(B){var c=B.indexOf("#");c<0&&(c=B.length);var x=B.indexOf("?");if(x<0||x>c){x=c;var P=""}else P=B.substring(x+1,c);return[B.slice(0,x),P,B.slice(c)]};
Fmm=function(B,c){return c?B?B+"&"+c:c:B};
_.vFI=function(B,c){if(!c)return B;B=Q0m(B);B[1]=Fmm(B[1],c);return B[0]+(B[1]?"?"+B[1]:"")+B[2]};
_.zIQ=function(B,c,x){if(Array.isArray(c))for(var P=0;P<c.length;P++)_.zIQ(B,String(c[P]),x);else c!=null&&x.push(B+(c===""?"":"="+_.La(c)))};
_.bp=function(B){var c=[],x;for(x in B)_.zIQ(x,B[x],c);return c.join("&")};
_.AR=function(B,c){c=_.bp(c);return _.vFI(B,c)};
_.Mw=function(B,c,x){x=x!=null?"="+_.La(x):"";return _.vFI(B,c+x)};
cF$=function(B,c,x,P){for(var Y=x.length;(c=B.indexOf(x,c))>=0&&c<P;){var g=B.charCodeAt(c-1);if(g==38||g==63)if(g=B.charCodeAt(c+Y),!g||g==61||g==38||g==35)return c;c+=Y+1}return-1};
xEl=/#|$/;_.MH=function(B,c){var x=B.search(xEl),P=cF$(B,0,c,x);if(P<0)return null;var Y=B.indexOf("&",P);if(Y<0||Y>x)Y=x;P+=c.length+1;return eI(B.slice(P,Y!==-1?Y:0))};
S3S=/[?&]($|#)/;_.rx=function(B,c){for(var x=B.search(xEl),P=0,Y,g=[];(Y=cF$(B,P,c,x))>=0;)g.push(B.substring(P,Y)),P=Math.min(B.indexOf("&",Y)+1||x,x);g.push(B.slice(P));return g.join("").replace(S3S,"$1")};
_.FU=function(B,c,x){return _.Mw(_.rx(B,c),c,x)};
yn9=function(B){var c=Q0m(window.location.href),x=c[1],P=[];x&&x.split("&").forEach(function(Y){var g=Y.indexOf("=");g=g>=0?Y.slice(0,g):Y;B.hasOwnProperty(g)||P.push(Y)});
c[1]=Fmm(P.join("&"),_.bp(B));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};var oMO=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(oMO,_.zL);oMO.prototype.getVersion=function(){return _.OZ(this,2)};var OqX=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(OqX,_.zL);var Nq7=function(B,c){return _.dW(B,2,c)},EMQ=function(B,c){return _.dW(B,3,c)};
OqX.prototype.getModel=function(){return _.OZ(this,4)};
var J07=function(B,c){return _.dW(B,4,c)},wF$=function(B,c){return _.dW(B,5,c)},lKC=function(B,c){return _.dW(B,9,c)},txw=function(B,c){return Ny(B,10,c)},Vx7=function(B,c){return _.sq(B,11,c)},IKI=function(B,c){return _.dW(B,1,c)},WXO=function(B,c){return _.sq(B,7,c)};var m8x="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var uy=function(B,c,x,P){B=B===void 0?window:B;c=c===void 0?null:c;x=x===void 0?new Bw7:x;P=P===void 0?KX$():P;u7x.call(this);var Y=this;this.global=B;this.debugChannel=c;this.performanceMonitor=x;this.onPageHide=WF(function(){return le(Y.global,"pagehide")}).pipe(zE(this.performanceMonitor,941));
this.onLoad=WF(function(){return le(Y.global,"load")}).pipe(zE(this.performanceMonitor,738),Lq(1));
this.onResize=WF(function(){return le(Y.global,"resize")}).pipe(zE(this.performanceMonitor,741));
this.onMessage=WF(function(){return le(Y.global,"message")}).pipe(zE(this.performanceMonitor,740));
this.document=new G1(this.global,this);this.timeProvider=new coy(new PX3(this.intrinsicFunctionNamespace,this.performanceMonitor),new xY5(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Rno(new aA3(this),new hIt(this),new bL(this,new p$Z(this)),new bL(this,new VZn(this)),new bL(this,new S1(this)))};
_.w(uy,u7x);var UY=function(B){var c=B.global;return!!B.global.HTMLFencedFrameElement&&!!c.fence&&typeof c.fence.reportEvent==="function"};
_.a=uy.prototype;_.a.reportFencedFrameEvent=function(B){UY(this)&&this.global.fence.reportEvent(B)};
_.a.getOnBackgrounded=function(){return this.onPageHide.pipe(zE(this.performanceMonitor,942),pH(this.queue),t0(function(){}))};
_.a.postMessage=function(B,c,x){x=x===void 0?[]:x;this.global.postMessage(B,c,x)};
_.a.getWidth=function(){return Ax(this.global)?this.global.width:0};
_.a.getHeight=function(){return Ax(this.global)?this.global.height:0};
_.a.isMobile=function(){return X$F()||$YW()};
var vM=function(B,c){try{var x=qIl(c,B.global,B.isMobile());return{left:x.left,top:x.top,width:x.getWidth(),height:x.getHeight()}}catch(P){return yE}};
uy.prototype.validate=function(){var B=this.beaconFactory.isSupported()||UY(this);return this.global&&this.timeProvider.available()&&B};
var fz7=function(B){return(B=FXI(B.global))?pq(B):null};
_.AJ.Object.defineProperties(uy.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(B){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Ax(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}}});_.G5d=!_.$V&&!_.Ol();var mHA=function(B){return B};var V$w=function(B){return B.pipe(od(function(c){var x=c.endOfSessionReason;var P;return((P=c.viewable)==null?void 0:P.extrapolateToNow().value)||x!=void 0}),Lq(1),yd())};var Mxq=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},LXC=function(B){var c=B.sequenceNumber.toString(10).padStart(2,"0");
c=""+B.startTime+c;B.sequenceNumber<99&&B.sequenceNumber++;return c};var qq$=xM(ex(function(B){return B.endOfSessionReason===void 0}),t0(function(B){return Object.assign({},B,{timestamps:hx(B)})}),od(function(B){var c=B.viewable;
B=B.timestamps;var x;return(x=c==null?void 0:c.extrapolateUsingTimestampMap(B).value)!=null?x:!1}),t0(function(B){var c=B.beaconFactory;
var x=B.timestampedExposureHistory;var P=B.timeOnScreen;var Y=B.binaryContext;B=B.timestamps;if(c===void 0||x===void 0||P===void 0||Y===void 0)return!1;if(P.extrapolateUsingTimestampMap(B).value.every(function(g){return g>=0}))return!0;
x=x.map(function(g){return g.timestamp+":"+g.value}).join(",");
P=mK({bin:Y,tos:P},B);c.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+P+("&eh="+x)).sendNow();return!0}),ex(function(B){return!B}),yd());var HqO=function(B){return{id:B.pingId,mcvt:B.maxConsecutiveViewTime,p:B.creativePosition,asp:B.adSpeedPosition,tm:B.totalMeasurementTime,tu:B.totalUnviewedTime,mtos:B.maxTimeOnScreen,tos:B.timeOnScreen,v:B.binaryVersion,bin:B.binaryContext,avms:B.measurementStrategy,bs:B.browserSize,mc:B.maximumExposure,"if":B.crossDomainIframeState,vu:B.delayedImpressionJsState,app:B.inApp,mse:B.mraidError,mtop:B.mraidSituation,itpl:B.injectedTemplateId,adk:B.adKey,exk:B.awbidKey,rs:B.requestSource,la:B.isLargeAd,
cr:B.isContentRecommendationAd,uach:B.userAgentClientHints,vs:B.viewState,r:B.reasonCode,pay:B.hasCpmavUrl,co:B.clientPingOrderCounter,rst:B.adRenderStartTime,rpt:B.adRenderPeriodTime,isd:B.initialScrollDepth,lsd:B.loadedScrollDepth,context:B.errorContext,msg:B.errorMessage,stack:B.errorStack,name:B.errorName,ec:B.hasElementChanged,sfr:B.strategyFailureReasons,met:B.creativeSearchResult,wmsd:B.webMeasurementStartDiagnostic,pv:B.pageVisible,epv:B.eosPageVisible,pbe:B.inStatefulBeaconExperiment,fle:B.inFetchLaterBeaconExperiment,
vae:B.inViewableAttributionExperiment,spb:B.supportsPendingBeacon,sfl:B.supportsFetchLater,ffslot:B.isFencedFrameSlotTurtlex,reach:B.sharedStorageReachMode,io2:B.v2VisibilityBitVector,rxdbg:B.rxDebugger,omida:B.omidAppId,omidp:B.omidPartner,omidpv:B.omidPartnerVersion,omidor:B.omidOcclusionReasons,omidv:B.omidVersion,omids:B.omidSessionType,omidam:B.omidAccessMode,omidct:B.omidCreativeType,omidia:B.omidInApp,omiddc:B.omidDeviceCategory,omidlat:B.omidLastActivity,omiddit:B.omidDeviceIdleTime,qid:B.errorEscapedQueryId}};var Tf7=function(B){var c=[];return B.pipe(t0(function(x){var P=x.beaconFactory,Y=x.fetchBeaconFactory,g=x.timeOnScreen,k=x.timeOnScreenUrlPrefixes,n=x.payloadMapper,b=x.timeOnScreenPingId,d=x.timeOnScreenReason,q=x.urlSerializer,C=x.viewable,h=x.hasImpressionFired,V=x.inStatefulBeaconExperiment,N=x.supportsPendingBeacon,l=x.supportsFetchLater,E=x.turtlexReportEventData;if(!x.geometryMeasurable||!h||x.maxTimeOnScreen===void 0||g===void 0||k===void 0||n===void 0||b===void 0||q===void 0||P===void 0)return!1;
if(x.isTurtlex){if(d===void 0)return!1;k=x.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-time-on-screen",eventData:E!=null?E:"",destination:["buyer"]});return!0}if(!(V||l||d))return!1;E=hx(x);var S;C=(S=C==null?void 0:C.extrapolateUsingTimestampMap(E).value)!=null?S:!1;S=q(Object.assign({},x,{pingId:b,viewState:C?4:3,reasonCode:d!=null?d:"u",payloadMapper:n,urlPrefixes:k}),E);if(V){for(;c.length>k.length;)x=void 0,(x=c.shift())==null||x.deactivate();S.forEach(function(f,Z){Z>=c.length?
c.push(P.makeBeacon(f)):c[Z].url=f});
return N&&Y&&d!==void 0?(S.forEach(function(f){Y.makeBeacon(f).sendNow()}),!0):d!==void 0}if(N&&Y&&d!==void 0)return S.forEach(function(f){Y.makeBeacon(f).sendNow()}),!0;
if(l&&Y){for(;c.length>k.length;)N=void 0,(N=c.shift())==null||N.deactivate();var M=q(Object.assign({},x,{pingId:b,viewState:C?4:3,reasonCode:d!=null?d:"u",payloadMapper:n,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),E)[0];S.forEach(function(f,Z){Z>=c.length?c.push(P.makeBeacon(M,{endOfSession:!0})):c[Z].url=M});
return d!==void 0?(S.forEach(function(f){Y.makeBeacon(f).sendNow()}),!0):d!==void 0}return d!==void 0?(S.forEach(function(f){P.makeBeacon(f).sendNow()}),!0):!1}),ex(function(x){return!x}),yd())};var t$7=xM(od(function(B){return B.immediateUrlPrefixes!==void 0&&B.payloadMapper!==void 0&&B.urlSerializer!==void 0&&B.inferredPingId!==void 0&&B.beaconFactory!==void 0}),od(function(B){return eD7(B)!==null}),r0I(function(B){return B.activeViewUnmeasurableEvent},function(B){return B.emit}),t0(function(B){if(B.isTurtlex){var c=B.reportFencedFrameEvent;
if(c){var x;c({eventType:"active-view-unmeasurable",eventData:(x=B.turtlexReportEventData)!=null?x:"",destination:["buyer"]})}}else{x=void 0;var P=eD7(B);if(P==="x"){var Y,g=(Y=B.geometricMeasurementErrors)!=null?Y:B.contextValidationErrors;g&&(c=g.stack,x=g.message)}B.urlSerializer(Object.assign({},B,{urlPrefixes:B.immediateUrlPrefixes,payloadMapper:B.payloadMapper,pingId:B.inferredPingId,viewState:2,reasonCode:P,errorMessage:x,errorStack:c}),hx(B)).forEach(function(k){B.beaconFactory.makeBeacon(k).sendNow()})}}),
Lq(1),yd());var BWw=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var dHw=xM(od(function(B){return B.payloadMapper!==void 0&&B.immediateUrlPrefixes!==void 0&&B.urlSerializer!==void 0&&B.inferredPingId!==void 0&&B.beaconFactory!==void 0}),t0(function(B){return Object.assign({},B,{timestamps:hx(B)})}),od(function(B){var c=B.viewable;
var x=B.hasImpressionFired;B=B.timestamps;var P;return!!x&&((P=c==null?void 0:c.extrapolateUsingTimestampMap(B).value)!=null?P:!1)}),r0I(function(B){return B.activeViewViewableEvent},function(B){return B.emit}),t0(function(B){var c=B.beaconFactory,x=B.turtlexReportEventData;
if(B.isTurtlex){var P=B.reportFencedFrameEvent;if(!P)return!1;P({eventType:"active-view-viewable",eventData:x!=null?x:"",destination:["buyer"]});return!0}x=B.urlSerializer(Object.assign({},B,{urlPrefixes:B.immediateUrlPrefixes,payloadMapper:B.payloadMapper,pingId:B.inferredPingId,viewState:4,reasonCode:"v"}),B.timestamps);(P=B.cpmavUrls)&&P.length>0&&B.viewUrlSerializer&&B.viewUrlSerializer(P,B).forEach(function(Y){c.makeBeacon(Y).sendNow()});
(P=B.viewableRelayUrls)&&P.length>0&&B.viewUrlSerializer&&B.viewUrlSerializer(P,B).forEach(function(Y){c.makeBeacon(Y).sendNow()});
x.forEach(function(Y){c.makeBeacon(Y,{attributionEnabled:B.isViewableAttributionEnabled}).sendNow()});
return!0}),ex(function(B){return!B}),yd());var LKd=t0(function(B){return[B.value.topWindowViewportExternalGeometry.width,B.value.topWindowViewportExternalGeometry.height]});var z_=function(B,c){this.callback=B;this.options=c;this.intersectionObserverV2=this.intersectionObserverV1=null},tkA=function(B,c){c?B.intersectionObserverV2||(c=Object.assign({},B.options,{delay:100,
trackVisibility:!0}),B.intersectionObserverV2=new IntersectionObserver(B.callback,c)):B.intersectionObserverV1||(B.intersectionObserverV1=new IntersectionObserver(B.callback,B.options))},MZS=function(B,c){B=c?B.intersectionObserverV2:B.intersectionObserverV1;
if(!B)throw new D$C;return B};
z_.prototype.observe=function(B,c){MZS(this,B).observe(c)};
z_.prototype.unobserve=function(B,c){MZS(this,B).unobserve(c)};
z_.prototype.disconnect=function(B){MZS(this,B).disconnect()};
z_.prototype.takeRecords=function(B){return MZS(this,B).takeRecords()};var o3={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:yE,topWindowViewportExternalGeometry:yE,measurementRequests:new gW,elementGeometrySourceName:"ns",elementGeometry:yE,intersectionGeometry:yE,viewportLocalAppOffset:{x:0,y:0}};var E2d=G_(xM(t0(function(B){var c;return(c=B.exposureOverride)!=null?c:NWO(B)}),t0(function(B){return isFinite(B)?B:0}))),SdC=G_(xM(t0(function(B){var c;
return(c=B.exposureOverride)!=null?c:NWO(B)}),t0(function(B){return isFinite(B)?B:-1})));var L9=function(B,c){this.a=B;this.b=c;if(B.clock.timeline!==c.clock.timeline)throw Error();};
L9.prototype.equivalentTo=function(B){return B instanceof L9?this.a.equivalentTo(B.a)&&this.b.equivalentTo(B.b):!1};
L9.prototype.extrapolateToTime=function(B){var c=this.a.extrapolateToTime(B).value,x=this.b.extrapolateToTime(B).value;return{timestamp:B,value:[c,x]}};
_.AJ.Object.defineProperties(L9.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 B=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),c=this.a.lastMeasurement.timestamp.equals(B)?this.a.lastMeasurement.value:this.a.extrapolateToTime(B).value,x=this.b.lastMeasurement.timestamp.equals(B)?this.b.lastMeasurement.value:this.b.extrapolateToTime(B).value;return{timestamp:B,value:[c,x]}}}});var ZD=function(B,c){this.input=B;this.mapFunction=c;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
ZD.prototype.equivalentTo=function(B){return B instanceof ZD?this.input.equivalentTo(B.input)&&this.mapFunction===B.mapFunction:!1};
ZD.prototype.extrapolateToTime=function(B){B=this.input.extrapolateToTime(B);return{timestamp:B.timestamp,value:this.mapFunction(B.value)}};
_.AJ.Object.defineProperties(ZD.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var HJ=function(){};
HJ.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
HJ.prototype.extrapolateUsingTimestampMap=function(B){var c=this.clock.timeline,x,P=(x=B.get(c))!=null?x:this.clock.now();B.set(c,P);return this.extrapolateToTime(P)};
HJ.prototype.map=function(B){return new LmI(this,B)};
HJ.prototype.joinWith=function(B){return new Z4t(this,B)};
var Z4t=function(){L9.apply(this,arguments);this.map=HJ.prototype.map;this.joinWith=HJ.prototype.joinWith;this.extrapolateToNow=HJ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HJ.prototype.extrapolateUsingTimestampMap};
_.w(Z4t,L9);var LmI=function(){ZD.apply(this,arguments);this.map=HJ.prototype.map;this.joinWith=HJ.prototype.joinWith;this.extrapolateToNow=HJ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HJ.prototype.extrapolateUsingTimestampMap};
_.w(LmI,ZD);var LH=function(B,c){this.lastMeasurement=c;this.extrapolateToNow=HJ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HJ.prototype.extrapolateUsingTimestampMap;this.map=HJ.prototype.map;this.joinWith=HJ.prototype.joinWith;this.clock=B};
LH.prototype.equivalentTo=function(B){return B.active};
LH.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.AJ.Object.defineProperties(LH.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var MkQ=t0(function(B){if(B.value.viewportGeometrySourceName==="omid"){if(B.value.elementGeometrySourceName==="nio")return"omio";if(B.value.elementGeometrySourceName==="geo")return"omgeo"}return B.value.elementGeometrySourceName==="geo"||B.value.elementGeometrySourceName==="nio"?B.value.viewportGeometrySourceName:B.value.elementGeometrySourceName});var Jx7=xM(od(function(B){return!isNaN(B)}),DK(function(B,c){return isNaN(B)?c:Math.min(B,c)},NaN),ZK());var OHl=G_(xM(t0(function(B){return B.intersectionGeometry.width*B.intersectionGeometry.height/(B.exposedViewportLocalGeometry.width*B.exposedViewportLocalGeometry.height)}),t0(function(B){return isFinite(B)?Math.min(1,B):0})));var G_C=xM(G_(t0(function(B){B=B.exposureOverride?B.elementGeometry.width*B.elementGeometry.height*B.exposureOverride/(B.topWindowViewportExternalGeometry.width*B.topWindowViewportExternalGeometry.height):B.intersectionGeometry.width*B.intersectionGeometry.height/(B.topWindowViewportExternalGeometry.width*B.topWindowViewportExternalGeometry.height);return isFinite(B)?B:0})));var HH7=function(B,c){var x=this;this.timeProvider=B;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=c.pipe(ZK()).subscribe(function(P){iy(x);x.measurementRequestObserver=P})},iHo=function(B,c){iy(B);
B.lastMeasurementRequest=B.timeProvider.setTimeout(function(){var x;return void((x=B.measurementRequestObserver)==null?void 0:x.next())},c)},iy=function(B){B.lastMeasurementRequest!==null&&B.timeProvider.clearTimeout(B.lastMeasurementRequest);
B.lastMeasurementRequest=null};
HH7.prototype.dispose=function(){iy(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var H44=function(){};var KyC=function(B,c){this.context=B;this.strategies=c};
_.w(KyC,H44);KyC.prototype.buildGeometrySource=function(B,c){var x=this.strategies.map(function(g){return g.buildGeometrySource(B,c)}),P=ROA(x.map(function(g){return g.geometrySource})),Y=P.capturedErrors.pipe(fSS());
return{geometrySource:P.chain.pipe(pH(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Y,strategyErrors:P.capturedErrors}].concat(_.wq(x.map(function(g){return g.additionalOutputs}))))}};
var fSS=function(){return DK(function(B,c){c instanceof VE?B.push(c.measurementStrategyFailureReason):B.push(-1);return B},[])};var UHQ=function(B,c){this.context=B;this.poller=c};
_.w(UHQ,H44);UHQ.prototype.buildGeometrySource=function(B,c){var x=eOC(cGQ(this.context,this.poller),bHo(this.context,c.requestSource));return{geometrySource:rxI(B.measurableCreative.pipe(x),c.inApp),additionalOutputs:{}}};var jDI=function(B,c,x){x=x===void 0?Cy$(B,c):x;this.context=B;this.intersectionObserverStrategy=x};
_.w(jDI,H44);jDI.prototype.buildGeometrySource=function(B,c){var x=this.intersectionObserverStrategy(c.useV2);return{geometrySource:rxI(B.measurableCreative.pipe(x,hOx(this.context)),c.inApp),additionalOutputs:{}}};var i4Z=function(B,c,x){var P=P===void 0?Symbol():P;this.element=B;this.immediateUrls=c;this.timeOnScreenUrls=x;this.symbol=P};var fH=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),gwd=Object.freeze([1,.75,fH.exposureThreshold,fH.largeAdExposureThreshold,0]);var TvX=function(B,c){c=c===void 0?36E5:c;var x=x===void 0?!0:x;this.creatives=new gW;this.elementsToUnregister=new gW;this.elementMap=new Map;var P=new uy(window,null);P.beaconFactory=new bL(P,new S1(P));bSq(P,this.creatives,this.elementsToUnregister,B,c,x).subscribe()},wkx=function(B,c,x,P){if(!B.elementMap.has(c)){var Y=new Fg(c);
B.elementMap.set(c,Y);B.creatives.next(new i4Z(Y,x,P))}},tsQ=function(B,c){B.elementsToUnregister.next(c);
var x=B.elementMap.get(c);x!==void 0&&(x.release(),B.elementMap.delete(c))};var pqx=function(B){var c=B.url;B=B.uaDataValues;this.JSC$7522_url_=c;this.uaDataValues_=B;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var x=/[?&]([^&=]+)=([^&]*)/g;B=x.exec(c);)this.urlParamValues_[B[1]]=B[2]},kFl=function(B){B=B.uaDataValues_;
if(!B)return"";var c=rW("uap",B.platform)+rW("uapv",B.platformVersion)+rW("uafv",B.uaFullVersion)+rW("uaa",B.architecture)+rW("uam",B.model)+rW("uab",B.bitness);B.fullVersionList&&(c+="&uafvl="+encodeURIComponent(B.fullVersionList.map(function(x){return encodeURIComponent(x.brand)+";"+encodeURIComponent(x.version)}).join("|")));
B.wow64!=null&&(c+="&uaw="+Number(B.wow64));return c.slice(1)};var f9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(f9,_.zL);f9.prototype.getId=function(){return _.OZ(this,1)};
f9.prototype.setId=function(B){return _.en(this,1,B)};var iL=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(iL,_.zL);iL.prototype.getSeconds=function(){return lJ(this,1)};
iL.prototype.setSeconds=function(B){return _.N2(this,1,OF(B),"0")};_.L2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(_.L2,_.zL);_.L2.prototype.getSeconds=function(){return lJ(this,1)};
_.L2.prototype.setSeconds=function(B){return _.N2(this,1,OF(B),"0")};
_.AnW=function(B){var c=Number(Ql(B,1));B=_.Ph(B,2);return new Date(c*1E3+B/1E6)};var Ae=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Ae,_.zL);Ae.prototype.getUrl=function(){return _.OZ(this,1)};
Ae.prototype.setUrl=function(B){return _.en(this,1,B)};
Ae.prototype.getHeight=function(){return _.Ph(this,2)};
Ae.prototype.getWidth=function(){return _.Ph(this,3)};var uL=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(uL,_.zL);uL.prototype.getAspectRatio=function(){return EZ(this,1)};
uL.prototype.setAspectRatio=function(B){return _.N2(this,1,_.X6(B),0)};
uL.prototype.getDuration=function(){return _.PA(this,iL,2)};var udy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(udy,_.zL);var DQI=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(DQI,_.zL);var rn3=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(rn3,_.zL);var RII=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(RII,_.zL);var eI4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(eI4,_.zL);var BlS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(BlS,_.zL);var ccy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ccy,_.zL);var xN4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xN4,_.zL);var Pzm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Pzm,_.zL);var DD=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(DD,_.zL);var rp=[2,4,5,6,7];var YFZ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(YFZ,_.zL);var Ig=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Ig,_.zL);_.a=Ig.prototype;_.a.getId=function(){return _.PA(this,f9,1)};
_.a.setId=function(B){return _.Pa(this,1,B)};
_.a.getName=function(){return _.OZ(this,2)};
_.a.setDescription=function(B){return _.en(this,3,B)};
_.a.getUrl=function(){return _.OZ(this,8)};
_.a.setUrl=function(B){return _.en(this,8,B)};
var Rf=function(B){return _.ch(B,Ae,10,_.xw())};
Ig.prototype.getOwner=function(B){var c=_.TL(this,40,_.MN,3,!0);vy(c,B);return c[B]};
Ig.prototype.getVersion=function(){return lJ(this,45)};
var e1=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(e1,_.zL);_.a8F=[0,Mj$,ZBw];_.gzI=[0,Mj$,ZBw];var sy9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(sy9,_.zL);var cB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(cB,_.zL);cB.prototype.getStatus=function(){return _.og(this,1)};
cB.prototype.removeItem=function(B){return aiQ(this,2,B)};var ps9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ps9,_.zL);ps9.prototype.getName=function(){return _.OZ(this,8)};var xc=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xc,_.zL);xc.prototype.getCommand=function(){return _.og(this,1)};
xc.prototype.getSource=function(){return _.PA(this,ps9,2)};
xc.prototype.setVisible=function(B){return _.wx(this,5,B)};
xc.prototype.removeItem=function(B){return aiQ(this,7,B)};var kBd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kBd,_.zL);kBd.prototype.getCommand=function(){return _.og(this,1)};
kBd.prototype.removeItem=function(B){return aiQ(this,4,B)};
var XsQ=_.ca(kBd);var PB=function(B,c,x){x=x===void 0?Error():x;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=B;c+=":";x instanceof Error?(this.message=c+x.message,this.stack=x.stack||""):(this.message=c+String(x),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(PB,Error);_.tG=function(){this.JSC$7580_disposed_=this.JSC$7580_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.tG.prototype.JSC$7580_disposed_=!1;_.tG.prototype.isDisposed=function(){return this.JSC$7580_disposed_};
_.tG.prototype.dispose=function(){this.JSC$7580_disposed_||(this.JSC$7580_disposed_=!0,this.disposeInternal())};
_.tG.prototype[Symbol.dispose]=function(){this.dispose()};
_.bW=function(B,c){B.addOnDisposeCallback(_.q9(_.R3,c))};
_.tG.prototype.addOnDisposeCallback=function(B,c){this.JSC$7580_disposed_?c!==void 0?B.call(c):B():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),c&&(B=B.bind(c)),this.onDisposeCallbacks_.push(B))};
_.tG.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Yc=function(B){_.tG.call(this);this.wpc=B};
_.w(Yc,_.tG);Yc.prototype.wYC=function(){return this.wpc.f()};
Yc.prototype.p4A=function(B){return this.wpc.c(B)};
Yc.prototype.lN=function(B){return this.wpc.m(Wyw(B))};
Yc.prototype.dQ=function(B){return this.wpc.mws(Wyw(B))};
var Bh=function(B){_.tG.call(this);var c=this;this.eO=B;this.xAa="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.atr=void 0;this.tOC=this.eO.p;this.wWh=this.dUi.bind(this);this.addOnDisposeCallback(function(){return void $NW(c)})};
_.w(Bh,_.tG);var nz5=function(B){var c;return _.X(function(x){if(x.nextAddress==1){if(!B.eO.wpc)throw new PB(30,"NWA");return B.f6T?x.return(B.f6T):_.K(x,B.eO.wpc(),2)}c=x.yieldResult;B.f6T=new Yc(c);return x.return(B.f6T)})};
Bh.prototype.snapshot=function(B){return this.eO.s(Object.assign({},B.hY&&{c:B.hY},B.iii&&{s:B.iii},B.qIQ!==void 0&&{p:B.qIQ}))};
Bh.prototype.dUi=function(B){this.eO.e(B)};
Bh.prototype.kdb=function(B,c){return this.eO.c(B,c,!1)};
var $NW=function(B){B.atr!==void 0&&(B.xAa.forEach(function(c){var x;(x=B.atr)==null||x.removeEventListener(c,B.wWh)}),B.atr=void 0)};
Bh.prototype.yYn=function(){return this.eO.l()};var bA0,aZ=function(){_.tG.apply(this,arguments);this.d8a=1;this[bA0]=this.dispose};
_.w(aZ,_.tG);aZ.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.d8a++;return this};
aZ.prototype.dispose=function(){--this.d8a||_.tG.prototype.dispose.call(this)};
bA0=Symbol.dispose;var KoZ=function(B){this.uHe=B;B.addNewEventMetric("/client_streamz/bg/frs",_.gf("mk"))};
KoZ.prototype.record=function(B,c){this.uHe.record("/client_streamz/bg/frs",B,c)};
var jy5=function(B){this.d0X=B;B.addNewEventMetric("/client_streamz/bg/wrl",_.gf("mn"),aD("ac"),aD("sc"),_.gf("rk"),_.gf("mk"))};
jy5.prototype.record=function(B,c,x,P,Y,g){this.d0X.record("/client_streamz/bg/wrl",B,c,x,P,Y,g)};
var UNd=function(B){this.h6y=B;B.addNewCounter("/client_streamz/bg/ec",_.gf("en"),_.gf("mk"))};
UNd.prototype.increment=function(B,c){this.h6y.JSC$7833_incrementCounter("/client_streamz/bg/ec",B,c)};
var dNd=function(B){this.vcN=B;B.addNewEventMetric("/client_streamz/bg/el",_.gf("en"),_.gf("mk"))};
dNd.prototype.record=function(B,c,x){this.vcN.record("/client_streamz/bg/el",B,c,x)};
var qFQ=function(B){this.a8l=B;B.addNewCounter("/client_streamz/bg/cec",aD("ec"),_.gf("mk"))};
qFQ.prototype.increment=function(B,c){this.a8l.JSC$7833_incrementCounter("/client_streamz/bg/cec",B,c)};
var Czy=function(B){this.wnl=B;B.addNewCounter("/client_streamz/bg/po/csc",aD("cs"),_.gf("mk"))};
Czy.prototype.increment=function(B,c){this.wnl.JSC$7833_incrementCounter("/client_streamz/bg/po/csc",B,c)};
var hSS=function(B){this.rVW=B;B.addNewCounter("/client_streamz/bg/po/ctav",_.gf("av"),_.gf("mk"))};
hSS.prototype.increment=function(B,c){this.rVW.JSC$7833_incrementCounter("/client_streamz/bg/po/ctav",B,c)};
var mN9=function(B){this.pny=B;B.addNewCounter("/client_streamz/bg/po/cwsc",_.gf("su"),_.gf("mk"))};
mN9.prototype.increment=function(B,c){this.pny.JSC$7833_incrementCounter("/client_streamz/bg/po/cwsc",B,c)};var xOo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xOo,_.zL);var cMA=function(B,c){return _.wt(B,3,c,roC)};var Tln=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Tln,_.zL);var Vi5=[1,2,3];var tim=[0,Vi5,_.uWC,HBl,Apw];var wsn=[0,_.uJ,[0,STC,_.HG]];var Nld=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Nld,_.zL);var I8W=[1,2,3];var Jc5=[0,I8W,LuA,yp7,_.DZ,wsn];var Wod=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Wod,_.zL);var l84=[0,_.uJ,tim,Jc5];var Ezn=[0,_.Ad];var OAW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(OAW,_.zL);var ozI=[0,_.Ad,-1,_.iJ];var QyZ=[0,_.Ad,-1,_.fY,_.iJ];var Fot=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Fot,_.zL);var vzt=[1,2,3];var zSF=[0,vzt,_.DZ,ozI,_.DZ,QyZ,_.DZ,Ezn];var SFS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(SFS,_.zL);SFS.prototype.JSC$7653_serializeBinary=cOl([0,_.Ad,zSF,DFX,_.uJ,l84,fiX,iBq]);var ycF=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ycF,_.zL);var Lom=function(B){var c=new SFS;c=_.dW(c,1,B.JSC$7769_metricName);var x=GB5(B);c=_.wt(c,3,x,_.zB);x=[];for(var P=[],Y=_.p(B.cellMap.keys()),g=Y.next();!g.done;g=Y.next())P.push(g.value.split(","));for(Y=0;Y<P.length;Y++){g=P[Y];for(var k=B.cellType,n=B.getCells(g)||[],b=[],d=0;d<n.length;d++){var q=n[d],C=q&&q.cellValue;q=new Nld;switch(k){case 3:C=Number(C);Number.isFinite(C)&&KE(q,1,I8W,OF(C));break;case 2:KE(q,2,I8W,_.X6(Number(C)))}b.push(q)}k=b;for(n=0;n<k.length;n++){b=k[n];d=new Wod;b=_.Pa(d,
2,b);d=[];q=MiQ(B);for(C=0;C<q.length;C++){var h=q[C],V=g[C],N=new Tln;switch(h){case 3:KE(N,1,Vi5,Si(String(V)));break;case 2:h=Number(V);Number.isFinite(h)&&KE(N,2,Vi5,_.tc(h));break;case 1:KE(N,3,Vi5,Aox(V==="true"))}d.push(N)}Ny(b,1,d);x.push(b)}}Ny(c,4,x);return c};var ZAd=function(B){if(!B)return"";if(/^about:(?:blank|srcdoc)$/.test(B))return window.origin||"";B.indexOf("blob:")===0&&(B=B.substring(5));B=B.split("#")[0].split("?")[0];B=B.toLowerCase();B.indexOf("//")==0&&(B=window.location.protocol+B);/^[\w\-]*:\/\//.test(B)||(B=window.location.href);var c=B.substring(B.indexOf("://")+3),x=c.indexOf("/");x!=-1&&(c=c.substring(0,x));x=B.substring(0,B.indexOf("://"));if(!x)throw Error("va`"+B);if(x!=="http"&&x!=="https"&&x!=="chrome-extension"&&x!=="moz-extension"&&
x!=="file"&&x!=="android-app"&&x!=="chrome-search"&&x!=="chrome-untrusted"&&x!=="chrome"&&x!=="app"&&x!=="devtools")throw Error("wa`"+x);B="";var P=c.indexOf(":");if(P!=-1){var Y=c.substring(P+1);c=c.substring(0,P);if(x==="http"&&Y!=="80"||x==="https"&&Y!=="443")B=":"+Y}return x+"://"+c+B};var f80=function(B,c,x){var P=String(_.xI.location.href);return P&&B&&c?[c,HA4(ZAd(P),B,x||null)].join(" "):null},HA4=function(B,c,x){var P=[],Y=[];
if((Array.isArray(x)?2:1)==1)return Y=[c,B],_.Zg(P,function(n){Y.push(n)}),iA3(Y.join(" "));
var g=[],k=[];_.Zg(x,function(n){k.push(n.key);g.push(n.value)});
x=Math.floor((new Date).getTime()/1E3);Y=g.length==0?[x,c,B]:[g.join(":"),x,c,B];_.Zg(P,function(n){Y.push(n)});
B=iA3(Y.join(" "));B=[x,B];k.length==0||B.push(k.join(""));return B.join("_")},iA3=function(B){var c=zE7();
c.update(B);return c.digestString().toLowerCase()};var sV=function(B){this.JSC$7664_document_=B||{cookie:""}},Acy;
_.a=sV.prototype;_.a.isEnabled=function(){if(!_.xI.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};
_.a.set=function(B,c,x){var P=!1;if(typeof x==="object"){var Y=x.sameSite;P=x.secure||!1;var g=x.domain||void 0;var k=x.path||void 0;var n=x.maxAge}if(/[;=\s]/.test(B))throw Error("xa`"+B);if(/[;\r\n]/.test(c))throw Error("ya`"+c);n===void 0&&(n=-1);x=g?";domain="+g:"";k=k?";path="+k:"";P=P?";secure":"";n=n<0?"":n==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+n*1E3)).toUTCString();this.JSC$7664_document_.cookie=B+"="+c+x+k+n+P+(Y!=null?";samesite="+Y:"")};
_.a.get=function(B,c){for(var x=B+"=",P=(this.JSC$7664_document_.cookie||"").split(";"),Y=0,g;Y<P.length;Y++){g=bX(P[Y]);if(g.lastIndexOf(x,0)==0)return g.slice(x.length);if(g==B)return""}return c};
_.a.remove=function(B,c,x){var P=this.containsKey(B);this.set(B,"",{maxAge:0,path:c,domain:x});return P};
_.a.getKeys=function(){return Acy(this).keys};
_.a.getValues=function(){return Acy(this).values};
_.a.isEmpty=function(){return!this.JSC$7664_document_.cookie};
_.a.getCount=function(){return this.JSC$7664_document_.cookie?(this.JSC$7664_document_.cookie||"").split(";").length:0};
_.a.containsKey=function(B){return this.get(B)!==void 0};
_.a.containsValue=function(B){for(var c=Acy(this).values,x=0;x<c.length;x++)if(c[x]==B)return!0;return!1};
_.a.clear=function(){for(var B=Acy(this).keys,c=B.length-1;c>=0;c--)this.remove(B[c])};
Acy=function(B){B=(B.JSC$7664_document_.cookie||"").split(";");for(var c=[],x=[],P,Y,g=0;g<B.length;g++)Y=bX(B[g]),P=Y.indexOf("="),P==-1?(c.push(""),x.push(Y)):(c.push(Y.substring(0,P)),x.push(Y.substring(P+1)));return{keys:c,values:x}};
_.U4=new sV(typeof document=="undefined"?null:document);var iR$,u6m;iR$=function(){var B=_.xI.__SAPISID||_.xI.__APISID||_.xI.__3PSAPISID||_.xI.__1PSAPISID||_.xI.__OVERRIDE_SID;if(B)return!0;typeof document!=="undefined"&&(B=new sV(document),B=B.get("SAPISID")||B.get("APISID")||B.get("__Secure-3PAPISID")||B.get("__Secure-1PAPISID"));return!!B};
u6m=function(B,c,x,P){(B=_.xI[B])||typeof document==="undefined"||(B=(new sV(document)).get(c));return B?f80(B,x,P):null};
_.zlC=function(B){var c=ZAd(_.xI==null?void 0:_.xI.location.href),x=[];if(iR$()){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var P=c?_.xI.__SAPISID:_.xI.__APISID;P||typeof document==="undefined"||(P=new sV(document),P=P.get(c?"SAPISID":"APISID")||P.get("__Secure-3PAPISID"));(P=P?f80(P,c?"SAPISIDHASH":"APISIDHASH",B):null)&&x.push(P);c&&((c=u6m("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",B))&&x.push(c),
(B=u6m("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",B))&&x.push(B))}return x.length==0?null:x.join(" ")};var DNS=function(){this.minSize=1024};
DNS.prototype.compress=function(B){var c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return c=new CompressionStream("gzip"),x=(new Response(c.readable)).arrayBuffer(),P=c.writable.getWriter(),_.K(g,P.write((new TextEncoder).encode(B)),2);case 2:return _.K(g,P.close(),3);case 3:return Y=Uint8Array,_.K(g,x,4);case 4:return g.return(new Y(g.yieldResult))}})};
DNS.prototype.isSupported=function(B){return B<this.minSize?!1:typeof CompressionStream!=="undefined"};var rcF=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(rcF,_.zL);var pR=function(B,c){this.intervalMs=B;this.callback=c;this.enabled=!1;this.nowFn=function(){return _.gQ()};
this.lastTimeMs=this.nowFn()};
pR.prototype.setInterval=function(B){this.intervalMs=B;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
pR.prototype.start=function(){var B=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){B.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
pR.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
pR.prototype.tick=function(){var B=this;if(this.enabled){var c=Math.max(this.nowFn()-this.lastTimeMs,0);c<this.intervalMs*.8?this.timer=setTimeout(function(){B.tick()},this.intervalMs-c):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var RS0=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(RS0,_.zL);var eSW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(eSW,_.zL);var BtQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(BtQ,_.zL);BtQ.prototype.getTransmissionType=function(){return _.og(this,1)};var M$$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(M$$,_.zL);M$$.prototype.getVersion=function(){return _.OZ(this,2)};var kc=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kc,_.zL);var GPQ=function(B){Ny(pS,1,B)};
kc.prototype.getModel=function(){return _.OZ(this,6)};
var cO3=_.ca(kc);var x23=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(x23,_.zL);var SqQ=["platform","platformVersion","architecture","model","uaFullVersion"],pS=new kc,yG7=null;var XL=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(XL,_.zL);var PmZ=function(B){return _.Yr(B,1,1)};var Y0Z=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,4)};
_.w(Y0Z,_.zL);_.$c=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,36)};
_.w(_.$c,_.zL);_.$c.prototype.getExperimentIds=function(){return _.PA(this,rcF,16)};var am9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,19)};
_.w(am9,_.zL);am9.prototype.setLogSource=function(B){return _.Yr(this,2,B)};
am9.prototype.setScheduler=function(B){return _.Yr(this,10,B)};var sUm=function(B,c){this.isServiceWorkerScope=c=c===void 0?!1:c;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new am9;Number.isInteger(B)&&this.logRequest.setLogSource(B);c||(this.locale=document.documentElement.getAttribute("lang"));gPt(this,new XL)};
sUm.prototype.setLogSource=function(B){this.logRequest.setLogSource(B);return this};
var gPt=function(B,c){_.Pa(B.logRequest,1,c);_.og(c,1)||PmZ(c);B.isServiceWorkerScope||(c=nR(B),_.OZ(c,5)||_.dW(c,5,B.locale));B.uach&&(c=nR(B),_.PA(c,kc,9)||_.Pa(c,9,B.uach))},pN4=function(B,c){B.transmissionType=c},kL0=function(B){var c=c===void 0?SqQ:c;
var x=B.isServiceWorkerScope?void 0:WM();x?Lyo(x,c).then(function(P){B.uach=cO3(P!=null?P:"[]");P=nR(B);_.Pa(P,9,B.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},nR=function(B){var c=_.PA(B.logRequest,XL,1);
c||(c=new XL,gPt(B,c));B=c;c=_.PA(B,x23,11);c||(c=new x23,_.Pa(B,11,c));return c};
sUm.prototype.build=function(B,c,x,P,Y,g){c=c===void 0?0:c;x=x===void 0?0:x;P=P===void 0?null:P;Y=Y===void 0?0:Y;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var k=nR(this);var n=new BtQ;n=_.Yr(n,1,this.transmissionType);n=_.sq(n,2,this.isFinal);x=_.zo(n,3,x>0?x:void 0);x=_.zo(x,4,Y>0?Y:void 0);x=_.zo(x,5,g>0?g:void 0);Y=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=Y[_.mm]|0;x=E3(x,g)?x:$P(x,Y,g)?Xe(x,Y):new x.constructor(kP(Y,g,!0));_.Pa(k,10,x)}k=this.logRequest.clone();x=Date.now().toString();
k=_.ax(k,4,OF(x));B=B.slice();B=Ny(k,3,B);P&&(k=new RS0,P=_.zo(k,13,P),k=new eSW,P=_.Pa(k,2,P),k=new Y0Z,P=_.Pa(k,1,P),P=_.Yr(P,2,9),_.Pa(B,18,P));c&&_.mD(B,14,c);return B};kw.prototype.currBackoffCount_=0;kw.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
kw.prototype.getValue=function(){return this.currValue_};
var XNn=function(B){B.currBaseValue_=Math.min(B.maxValue_,B.currBaseValue_*B.backoffFactor_);B.currValue_=Math.min(B.maxValue_,B.currBaseValue_+(B.randomFactor_?Math.round(B.randomFactor_*(Math.random()-.5)*2*B.currBaseValue_):0));B.currBackoffCount_++};var c$x=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,8)};
_.w(c$x,_.zL);var $2n=_.ca(c$x);var xh7=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xh7,_.zL);var bK;bK=new PEx;var KR=function(B){_.tG.call(this);var c=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7742_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$7742_sendBeaconApiEnabled=!1;this.logSource=B.logSource;this.getAuthHeaderValue=
B.getAuthHeaderValue||function(){};
this.logRequestBuilder=new sUm(B.logSource,B.isServiceWorkerScope);this.network=B.network||null;this.productID=B.productID||null;this.bufferSize=1E3;this.clearcutUrl=B.urlOverride||null;this.sessionIndex=B.sessionIndex||null;this.disableAutomaticFlush=B.disableAutomaticFlush||!1;this.withCredentials=!B.disableWithCredentials;this.isServiceWorkerScope=B.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!WM()&&!!WM().navigator&&WM().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(nPZ())).searchParams&&!!(new URL(nPZ())).searchParams.set;var x=PmZ(new XL);gPt(this.logRequestBuilder,x);this.flushBackoff=new kw(1E4,3E5,.1);B=b$0(this,B.backgroundJobDeferrer);this.JSC$7742_flushTimer=new pR(this.flushBackoff.getValue(),B);this.backupTimer=new pR(6E5,B);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){KG4(c);
var P;(P=c.metalogService)==null||P.flush()}}),document.addEventListener("pagehide",function(){KG4(c);
var P;(P=c.metalogService)==null||P.flush()}))};
_.w(KR,_.tG);var b$0=function(B,c){return B.isBrowserSupported?c?function(){c().then(function(){B.flush()})}:function(){B.flush()}:function(){}};
KR.prototype.disposeInternal=function(){KG4(this);this.JSC$7742_flushTimer.stop();this.backupTimer.stop();_.tG.prototype.disposeInternal.call(this)};
var jUZ=function(B){B.clearcutUrl||(B.clearcutUrl=nPZ());try{return(new URL(B.clearcutUrl)).toString()}catch(c){return(new URL(B.clearcutUrl,WM().location.origin)).toString()}};
KR.prototype.dispatch=function(B){if(B instanceof _.$c)this.log(B);else try{var c=new _.$c,x=B.serialize();var P=_.dW(c,8,x);this.log(P)}catch(Y){jQ(this,4,1)}};
var jQ=function(B,c,x){B.metalogService&&B.metalogService.increment(c,x)};
KR.prototype.log=function(B){jQ(this,2,1);if(this.isBrowserSupported){B=B.clone();var c=this.sequencePosition++;B=_.mD(B,21,c);this.componentId&&_.dW(B,26,this.componentId);c=B;if(b4x(_.hd(c,1))==null){var x=Date.now();x=Number.isFinite(x)?x.toString():"0";_.ax(c,1,OF(x))}_.nFq(_.hd(c,15))!=null||_.mD(c,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),_.Pa(c,16,x));jQ(this,1,1);c=this.pendingEvents.length-this.bufferSize+1;c>0&&(this.pendingEvents.splice(0,c),
this.numLogsDroppedSinceLastFlush+=c,jQ(this,3,c));this.pendingEvents.push(B);this.disableAutomaticFlush||this.JSC$7742_flushTimer.enabled||this.JSC$7742_flushTimer.start()}};
KR.prototype.flush=function(B,c){var x=this;if(this.pendingEvents.length===0)B&&B();else if(this.JSC$7742_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,U2Q(this);else{var P=Date.now();if(this.noFlushUntilMs>P&&this.startWaitingMs<P)c&&c("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?pN4(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Y=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),k=this.getAuthHeaderValue();if(k&&this.lastFailedAuth===k)c&&c("stale-auth-token");else{this.pendingEvents=[];this.JSC$7742_flushTimer.enabled&&this.JSC$7742_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;P=g.serialize();var n;this.JSC$7742_compressor&&this.JSC$7742_compressor.isSupported(P.length)&&
(n=this.JSC$7742_compressor.compress(P));var b=d2d(this,P,k),d=function(h){x.flushBackoff.reset();x.JSC$7742_flushTimer.setInterval(x.flushBackoff.getValue());if(h){var V=null;try{var N=JSON.stringify(JSON.parse(h.replace(")]}'\n","")));V=$2n(N)}catch(l){}V&&(h=Number(lJ(V,1,_.f4("-1"))),h>0&&(x.startWaitingMs=Date.now(),x.noFlushUntilMs=x.startWaitingMs+h),EF7(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,bK.fieldIndex),Wmq(V,bK.fieldIndex),V=bK.ctor?bK.getExtensionFn(V,bK.ctor,bK.fieldIndex,
bK.JSC$6922_hasMessageId):bK.getExtensionFn(V,bK.fieldIndex,null,bK.JSC$6922_hasMessageId),V=V===null?void 0:V)&&(V=_.Ph(V,1,-1),V!==-1&&(x.flushBackoff=new kw(V<1?1:V,3E5,.1),x.JSC$7742_flushTimer.setInterval(x.flushBackoff.getValue())))}B&&B();x.numRetriesSinceLastSuccessfulFlush=0},q=function(h,V){var N=_.ch(g,_.$c,3,_.xw());
var l=Number(lJ(g,14));XNn(x.flushBackoff);x.JSC$7742_flushTimer.setInterval(x.flushBackoff.getValue());h===401&&k&&(x.lastFailedAuth=k);l&&(x.numLogsDroppedSinceLastFlush+=l);V===void 0&&(V=x.isRetryable(h));V&&(x.pendingEvents=N.concat(x.pendingEvents),x.disableAutomaticFlush||x.JSC$7742_flushTimer.enabled||x.JSC$7742_flushTimer.start());jQ(x,7,1);c&&c("net-send-failed",h);++x.numRetriesSinceLastSuccessfulFlush},C=function(){x.network&&x.network.send(b,d,q)};
n?n.then(function(h){jQ(x,5,Y);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=h;b.bodyType=2;C()},function(){jQ(x,6,Y);
C()}):C()}}}};
var d2d=function(B,c,x){x=x===void 0?null:x;var P=P===void 0?B.withCredentials:P;var Y={},g=new URL(jUZ(B));x&&(Y.Authorization=x);B.sessionIndex&&(Y["X-Goog-AuthUser"]=B.sessionIndex,g.searchParams.set("authuser",B.sessionIndex));B.pageId&&(Object.defineProperty(Y,"X-Goog-PageId",{value:B.pageId}),g.searchParams.set("pageId",B.pageId));return{url:g.toString(),body:c,bodyType:1,requestHeaders:Y,requestType:"POST",withCredentials:P,timeoutMillis:B.timeoutMillis}},KG4=function(B){B.logRequestBuilder.isFinal=
!0;
B.flush();B.logRequestBuilder.isFinal=!1},U2Q=function(B){q05(B,function(c,x){c=new URL(c);
c.searchParams.set("format","json");var P=!1;try{P=WM().navigator.sendBeacon(c.toString(),x.serialize())}catch(Y){}P||(B.isSendBeaconSupported=!1);return P})},q05=function(B,c){if(B.pendingEvents.length!==0){var x=new URL(jUZ(B));
x.searchParams.delete("format");var P=B.getAuthHeaderValue();P&&x.searchParams.set("auth",P);x.searchParams.set("authuser",B.sessionIndex||"0");for(P=0;P<10&&B.pendingEvents.length;++P){var Y=B.pendingEvents.slice(0,32),g=B.logRequestBuilder.build(Y,B.numLogsDroppedSinceLastFlush,B.numRetriesSinceLastSuccessfulFlush,B.productID,B.persistedLogRecoveredCount,B.persistedLogExpiredCount);if(!c(x.toString(),g)){++B.numRetriesSinceLastSuccessfulFlush;break}B.numLogsDroppedSinceLastFlush=0;B.numRetriesSinceLastSuccessfulFlush=
0;B.persistedLogRecoveredCount=0;B.persistedLogExpiredCount=0;B.pendingEvents=B.pendingEvents.slice(Y.length)}B.JSC$7742_flushTimer.enabled&&B.JSC$7742_flushTimer.stop()}};
KR.prototype.isRetryable=function(B){return 500<=B&&B<600||B===401||B===0};
var nPZ=function(){return"https://play.google.com/log?format=json&hasfast=true"};var CmQ=function(){this.abortSupported=typeof AbortController!=="undefined"};
CmQ.prototype.send=function(B,c,x){var P=this,Y,g,k,n,b,d,q,C,h,V;return _.X(function(N){switch(N.nextAddress){case 1:return g=(Y=P.abortSupported?new AbortController:void 0)?setTimeout(function(){Y.abort()},B.timeoutMillis):void 0,_.kM(N,2,3),k=Object.assign({},{method:B.requestType,
headers:Object.assign({},B.requestHeaders)},B.body&&{body:B.body},B.withCredentials&&{credentials:"include"},{signal:B.timeoutMillis&&Y?Y.signal:null}),_.K(N,fetch(B.url,k),5);case 5:n=N.yieldResult;if(n.status!==200){(b=x)==null||b(n.status);N.jumpTo(3);break}if((d=c)==null){N.jumpTo(7);break}return _.K(N,n.text(),8);case 8:d(N.yieldResult);case 7:case 3:_.Xt(N);clearTimeout(g);_.nq(N,0);break;case 2:q=_.be(N);switch((C=q)==null?void 0:C.name){case "AbortError":(h=x)==null||h(408);break;default:(V=
x)==null||V(400)}N.jumpTo(3)}})};
CmQ.prototype.getTransmissionType=function(){return 4};_.nS=function(B,c){c=c===void 0?"0":c;_.tG.call(this);this.logSource=B;this.sessionIndex=c;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7760_clearExperimentIds=this.productID=null;this.JSC$7760_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.w(_.nS,_.tG);var REo=function(B,c){B.buildLabel=c;return B},rGI=function(B,c){B.network=c;
return B},BbO=function(B,c){B.JSC$7760_clearExperimentIds=c},DHx=function(B){B.JSC$7760_sendBeaconApiEnabled=!0;
return B};
_.nS.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.nS.prototype.build=function(){this.network||(this.network=new CmQ);var B=new KR({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.zlC,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.bW(this,B);if(this.buildLabel){var c=this.buildLabel,x=
nR(B.logRequestBuilder);_.dW(x,7,c)}B.JSC$7742_compressor=new DNS;this.componentId&&(B.componentId=this.componentId);this.productID&&(B.productID=this.productID);this.pageId&&(B.pageId=this.pageId);this.JSC$7760_clearExperimentIds&&((x=this.JSC$7760_clearExperimentIds)?(B.experimentIds||(B.experimentIds=new rcF),c=B.experimentIds,x=x.serialize(),_.dW(c,4,x)):B.experimentIds&&_.ax(B.experimentIds,4));this.JSC$7760_sendBeaconApiEnabled&&(B.JSC$7742_sendBeaconApiEnabled=B.isSendBeaconSupported);kL0(B.logRequestBuilder);
this.bufferSize&&(B.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(B);return B};var PPA=function(B,c,x,P,Y,g,k){B=B===void 0?-1:B;c=c===void 0?"":c;x=x===void 0?"":x;P=P===void 0?!1:P;Y=Y===void 0?"":Y;_.tG.call(this);this.logSource=B;this.componentId=c;g?c=g:(B=new _.nS(B,"0"),B.componentId=c,_.bW(this,B),x!==""&&(B.destinationUrl=x),P&&(B.serviceWorkerScopeEnabled=!0),Y&&REo(B,Y),k&&rGI(B,k),c=B.build());this.JSC$7764_transport=c};
_.w(PPA,_.tG);PPA.prototype.flush=function(B){B=B||[];if(B.length){for(var c=new ycF,x=[],P=0;P<B.length;P++){var Y=B[P],g=Lom(Y);x.push(g);Y.clear()}Ny(c,1,x);this.JSC$7764_transport.dispatch(c);this.JSC$7764_transport.flush()}};var h9F=function(B){this.cellValue=B};var UV=function(B,c,x){this.JSC$7769_metricName=B;this.cellType=c;this.fields=x||[];this.cellMap=new Map},MiQ=function(B){return B.fields.map(function(c){return c.fieldType})},GB5=function(B){return B.fields.map(function(c){return c.fieldName})};
_.a=UV.prototype;_.a.addCell=function(B){var c=_.ts.apply(1,arguments),x=this.getCells(c);x?x.push(new h9F(B)):this.JSC$7769_setCell(B,c)};
_.a.JSC$7769_setCell=function(B){var c=this.JSC$7769_getKey(_.ts.apply(1,arguments));this.cellMap.set(c,[new h9F(B)])};
_.a.getCells=function(){var B=this.JSC$7769_getKey(_.ts.apply(0,arguments));return this.cellMap.has(B)?this.cellMap.get(B):void 0};
_.a.getCell=function(){var B=this.getCells(_.ts.apply(0,arguments));return B&&B.length?B[0]:void 0};
_.a.clear=function(){this.cellMap.clear()};
_.a.JSC$7769_getKey=function(){var B=_.ts.apply(0,arguments);return B?B.join(","):"key"};var m2Q=function(B,c){UV.call(this,B,3,c)};
_.w(m2Q,UV);m2Q.prototype.JSC$7772_incrementCounterBy=function(B){var c=_.ts.apply(1,arguments),x=0,P=this.getCell(c);P&&(x=P.cellValue);this.JSC$7769_setCell(x+B,c)};var Ttn=function(B,c){UV.call(this,B,2,c)};
_.w(Ttn,UV);Ttn.prototype.record=function(B){this.addCell(B,_.ts.apply(1,arguments))};_.da=function(B){this.id=B};
_.da.prototype.toString=function(){return this.id};_.qf=function(B,c){this.type=B instanceof _.da?String(B):B;this.currentTarget=this.target=c;this.defaultPrevented=this.propagationStopped_=!1};
_.qf.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.qf.prototype.preventDefault=function(){this.defaultPrevented=!0};_.CR=function(B,c){_.qf.call(this,B?B.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;B&&this.init(B,c)};
_.sZ(_.CR,_.qf);
_.CR.prototype.init=function(B,c){var x=this.type=B.type,P=B.changedTouches&&B.changedTouches.length?B.changedTouches[0]:null;this.target=B.target||B.srcElement;this.currentTarget=c;c=B.relatedTarget;c||(x=="mouseover"?c=B.fromElement:x=="mouseout"&&(c=B.toElement));this.relatedTarget=c;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=_.bJ||B.offsetX!==void 0?B.offsetX:B.layerX,
this.offsetY=_.bJ||B.offsetY!==void 0?B.offsetY:B.layerY,this.clientX=B.clientX!==void 0?B.clientX:B.pageX,this.clientY=B.clientY!==void 0?B.clientY:B.pageY,this.screenX=B.screenX||0,this.screenY=B.screenY||0);this.button=B.button;this.keyCode=B.keyCode||0;this.key=B.key||"";this.charCode=B.charCode||(x=="keypress"?B.keyCode:0);this.ctrlKey=B.ctrlKey;this.altKey=B.altKey;this.shiftKey=B.shiftKey;this.metaKey=B.metaKey;this.pointerId=B.pointerId||0;this.pointerType=B.pointerType;this.state=B.state;
this.timeStamp=B.timeStamp;this.event_=B;B.defaultPrevented&&_.CR.superClass_.preventDefault.call(this)};
_.CR.prototype.stopPropagation=function(){_.CR.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.CR.prototype.preventDefault=function(){_.CR.superClass_.preventDefault.call(this);var B=this.event_;B.preventDefault?B.preventDefault():B.returnValue=!1};var VJQ="closure_listenable_"+(Math.random()*1E6|0),hB=function(B){return!(!B||!B[VJQ])};var tJm=0;var wNF=function(B,c,x,P,Y){this.listener=B;this.proxy=null;this.src=c;this.type=x;this.capture=!!P;this.handler=Y;this.key=++tJm;this.removed=this.callOnce=!1},NtI=function(B){B.removed=!0;
B.listener=null;B.proxy=null;B.src=null;B.handler=null};XC.prototype.add=function(B,c,x,P,Y){var g=B.toString();B=this.listeners[g];B||(B=this.listeners[g]=[],this.typeCount_++);var k=ImQ(B,c,P,Y);k>-1?(c=B[k],x||(c.callOnce=!1)):(c=new wNF(c,this.src,g,!!P,Y),c.callOnce=x,B.push(c));return c};
XC.prototype.remove=function(B,c,x,P){B=B.toString();if(!(B in this.listeners))return!1;var Y=this.listeners[B];c=ImQ(Y,c,x,P);return c>-1?(NtI(Y[c]),_.iX(Y,c),Y.length==0&&(delete this.listeners[B],this.typeCount_--),!0):!1};
var JO3=function(B,c){var x=c.type;if(!(x in B.listeners))return!1;var P=_.Ao(B.listeners[x],c);P&&(NtI(c),B.listeners[x].length==0&&(delete B.listeners[x],B.typeCount_--));return P};
XC.prototype.removeAll=function(B){B=B&&B.toString();var c=0,x;for(x in this.listeners)if(!B||x==B){for(var P=this.listeners[x],Y=0;Y<P.length;Y++)++c,NtI(P[Y]);delete this.listeners[x];this.typeCount_--}return c};
XC.prototype.getListener=function(B,c,x,P){B=this.listeners[B.toString()];var Y=-1;B&&(Y=ImQ(B,c,x,P));return Y>-1?B[Y]:null};
XC.prototype.hasListener=function(B,c){var x=B!==void 0,P=x?B.toString():"",Y=c!==void 0;return _.wW.some(this.listeners,function(g){for(var k=0;k<g.length;++k)if(!(x&&g[k].type!=P||Y&&g[k].capture!=c))return!0;return!1})};
var ImQ=function(B,c,x,P){for(var Y=0;Y<B.length;++Y){var g=B[Y];if(!g.removed&&g.listener==c&&g.capture==!!x&&g.handler==P)return Y}return-1};var WGn,lmZ,EP0,oPW,QUy,ml,Tl,z9d,FGt,vPW,ms,S03,O$Q;WGn="closure_lm_"+(Math.random()*1E6|0);lmZ={};EP0=0;_.wX=function(B,c,x,P,Y){if(P&&P.once)return ml(B,c,x,P,Y);if(Array.isArray(c)){for(var g=0;g<c.length;g++)_.wX(B,c[g],x,P,Y);return null}x=O$Q(x);return hB(B)?B.listen(c,x,_.xF(P)?!!P.capture:!!P,Y):oPW(B,c,x,!1,P,Y)};
oPW=function(B,c,x,P,Y,g){if(!c)throw Error("Aa");var k=_.xF(Y)?!!Y.capture:!!Y,n=ms(B);n||(B[WGn]=n=new XC(B));x=n.add(c,x,P,k,g);if(x.proxy)return x;P=QUy();x.proxy=P;P.src=B;P.listener=x;if(B.addEventListener)_.Ej$||(Y=k),Y===void 0&&(Y=!1),B.addEventListener(c.toString(),P,Y);else if(B.attachEvent)B.attachEvent(FGt(c.toString()),P);else if(B.addListener&&B.removeListener)B.addListener(P);else throw Error("Ba");EP0++;return x};
QUy=function(){var B=vPW,c=function(x){return B.call(c.src,c.listener,x)};
return c};
ml=function(B,c,x,P,Y){if(Array.isArray(c)){for(var g=0;g<c.length;g++)ml(B,c[g],x,P,Y);return null}x=O$Q(x);return hB(B)?B.listenOnce(c,x,_.xF(P)?!!P.capture:!!P,Y):oPW(B,c,x,!0,P,Y)};
_.Ti=function(B,c,x,P,Y){if(Array.isArray(c))for(var g=0;g<c.length;g++)_.Ti(B,c[g],x,P,Y);else P=_.xF(P)?!!P.capture:!!P,x=O$Q(x),hB(B)?B.unlisten(c,x,P,Y):B&&(B=ms(B))&&(c=B.getListener(c,x,P,Y))&&Tl(c)};
Tl=function(B){if(typeof B==="number"||!B||B.removed)return!1;var c=B.src;if(hB(c))return JO3(c.eventTargetListeners_,B);var x=B.type,P=B.proxy;c.removeEventListener?c.removeEventListener(x,P,B.capture):c.detachEvent?c.detachEvent(FGt(x),P):c.addListener&&c.removeListener&&c.removeListener(P);EP0--;(x=ms(c))?(JO3(x,B),x.typeCount_==0&&(x.src=null,c[WGn]=null)):NtI(B);return!0};
z9d=function(B,c,x,P,Y){x=O$Q(x);P=!!P;return hB(B)?B.getListener(c,x,P,Y):B?(B=ms(B))?B.getListener(c,x,P,Y):null:null};
FGt=function(B){return B in lmZ?lmZ[B]:lmZ[B]="on"+B};
vPW=function(B,c){if(B.removed)B=!0;else{c=new _.CR(c,this);var x=B.listener,P=B.handler||B.src;B.callOnce&&Tl(B);B=x.call(P,c)}return B};
ms=function(B){B=B[WGn];return B instanceof XC?B:null};
S03="__closure_events_fn_"+(Math.random()*1E9>>>0);O$Q=function(B){if(typeof B==="function")return B;B[S03]||(B[S03]=function(c){return B.handleEvent(c)});
return B[S03]};_.V4=function(){_.tG.call(this);this.eventTargetListeners_=new XC(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.sZ(_.V4,_.tG);_.V4.prototype[VJQ]=!0;_.a=_.V4.prototype;_.a.setParentEventTarget=function(B){this.parentEventTarget_=B};
_.a.addEventListener=function(B,c,x,P){_.wX(this,B,c,x,P)};
_.a.removeEventListener=function(B,c,x,P){_.Ti(this,B,c,x,P)};
_.a.dispatchEvent=function(B){var c,x=this.parentEventTarget_;if(x)for(c=[];x;x=x.parentEventTarget_)c.push(x);x=this.actualEventTarget_;var P=B.type||B;if(typeof B==="string")B=new _.qf(B,x);else if(B instanceof _.qf)B.target=B.target||x;else{var Y=B;B=new _.qf(P,x);_.wW.extend(B,Y)}Y=!0;var g;if(c)for(g=c.length-1;!B.propagationStopped_&&g>=0;g--){var k=B.currentTarget=c[g];Y=yOy(k,P,!0,B)&&Y}B.propagationStopped_||(k=B.currentTarget=x,Y=yOy(k,P,!0,B)&&Y,B.propagationStopped_||(Y=yOy(k,P,!1,B)&&
Y));if(c)for(g=0;!B.propagationStopped_&&g<c.length;g++)k=B.currentTarget=c[g],Y=yOy(k,P,!1,B)&&Y;return Y};
_.a.disposeInternal=function(){_.V4.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.a.listen=function(B,c,x,P){return this.eventTargetListeners_.add(String(B),c,!1,x,P)};
_.a.listenOnce=function(B,c,x,P){return this.eventTargetListeners_.add(String(B),c,!0,x,P)};
_.a.unlisten=function(B,c,x,P){return this.eventTargetListeners_.remove(String(B),c,x,P)};
_.a.removeAllListeners=function(B){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(B):0};
var yOy=function(B,c,x,P){c=B.eventTargetListeners_.listeners[String(c)];if(!c)return!0;c=c.concat();for(var Y=!0,g=0;g<c.length;++g){var k=c[g];if(k&&!k.removed&&k.capture==x){var n=k.listener,b=k.handler||k.src;k.callOnce&&JO3(B.eventTargetListeners_,k);Y=n.call(b,P)!==!1&&Y}}return Y&&!P.defaultPrevented};
_.V4.prototype.getListener=function(B,c,x,P){return this.eventTargetListeners_.getListener(String(B),c,x,P)};
_.V4.prototype.hasListener=function(B,c){return this.eventTargetListeners_.hasListener(B!==void 0?String(B):void 0,c)};var tB=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(B){return B&&AsyncContext.Snapshot.wrap(B)}:function(B){return B};var GL4=function(B,c){this.create_=B;this.reset_=c;this.occupants_=0;this.JSC$7804_head_=null};
GL4.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var B=this.JSC$7804_head_;this.JSC$7804_head_=B.next;B.next=null}else B=this.create_();return B};
GL4.prototype.put=function(B){this.reset_(B);this.occupants_<100&&(this.occupants_++,B.next=this.JSC$7804_head_,this.JSC$7804_head_=B)};var MJQ=function(){this.workTail_=this.workHead_=null};
MJQ.prototype.add=function(B,c){var x=HS7.get();x.set(B,c);this.workTail_?this.workTail_.next=x:this.workHead_=x;this.workTail_=x};
MJQ.prototype.remove=function(){var B=null;this.workHead_&&(B=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),B.next=null);return B};
var HS7=new GL4(function(){return new LGS},function(B){return B.reset()}),LGS=function(){this.next=this.scope=this.fn=null};
LGS.prototype.set=function(B,c){this.fn=B;this.scope=c;this.next=null};
LGS.prototype.reset=function(){this.next=this.scope=this.fn=null};var Z$n,fMA,ZS7,H$d;fMA=!1;ZS7=new MJQ;_.wa=function(B,c){Z$n||H$d();fMA||(Z$n(),fMA=!0);ZS7.add(B,c)};
H$d=function(){var B=Promise.resolve(void 0);Z$n=function(){B.then(iSo)}};var fmt=function(B){B.prototype.$goog_Thenable=!0},i$m=function(B){if(!B)return!1;
try{return!!B.$goog_Thenable}catch(c){return!1}};var AOI,ue0,D2y,R94,e94,B8Q,YGF,sW5,$g0,kzn,thQ;_.bb=function(B,c){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(B!=_.qw)try{var x=this;B.call(c,function(P){x.resolve_(2,P)},function(P){x.resolve_(3,P)})}catch(P){this.resolve_(3,P)}};
AOI=function(){this.next=this.context=this.JSC$7815_onRejected=this.JSC$7815_onFulfilled=this.child=null;this.always=!1};
AOI.prototype.reset=function(){this.context=this.JSC$7815_onRejected=this.JSC$7815_onFulfilled=this.child=null;this.always=!1};
ue0=new GL4(function(){return new AOI},function(B){B.reset()});
D2y=function(B,c,x){var P=ue0.get();P.JSC$7815_onFulfilled=B;P.JSC$7815_onRejected=c;P.context=x;return P};
_.$C=function(B){if(B instanceof _.bb)return B;var c=new _.bb(_.qw);c.resolve_(2,B);return c};
_.Im=function(B){return new _.bb(function(c,x){x(B)})};
R94=function(B,c,x){rOd(B,c,x,null)||_.wa(_.q9(c,B))};
_.Nf=function(B){return new _.bb(function(c,x){var P=B.length,Y=[];if(P)for(var g=function(d,q){P--;Y[d]=q;P==0&&c(Y)},k=function(d){x(d)},n,b=0;b<B.length;b++)n=B[b],R94(n,_.q9(g,b),k);
else c(Y)})};
e94=function(B){return new _.bb(function(c){var x=B.length,P=[];if(x)for(var Y=function(n,b,d){x--;P[n]=b?{fulfilled:!0,value:d}:{fulfilled:!1,reason:d};x==0&&c(P)},g,k=0;k<B.length;k++)g=B[k],R94(g,_.q9(Y,k,!0),_.q9(Y,k,!1));
else c(P)})};
B8Q=function(B){return new _.bb(function(c,x){var P=B.length,Y=[];if(P)for(var g=function(d){c(d)},k=function(d,q){P--;
Y[d]=q;P==0&&x(Y)},n,b=0;b<B.length;b++)n=B[b],R94(n,g,_.q9(k,b));
else c(void 0)})};
_.Hw=function(){var B,c,x=new _.bb(function(P,Y){B=P;c=Y});
return new cs9(x,B,c)};
_.bb.prototype.then=function(B,c,x){return xgy(this,tB(typeof B==="function"?B:null),tB(typeof c==="function"?c:null),x)};
fmt(_.bb);YGF=function(B,c,x,P){PV3(B,D2y(c||_.qw,x||null,P))};
_.IZ=function(B,c){c=tB(c);c=D2y(c,c);c.always=!0;PV3(B,c);return B};
_.bb.prototype.finally=function(B){var c=this;B=tB(B);return new Promise(function(x,P){YGF(c,function(Y){B();x(Y)},function(Y){B();
P(Y)})})};
_.bb.prototype.thenCatch=function(B,c){return xgy(this,null,tB(B),c)};
_.bb.prototype.catch=_.bb.prototype.thenCatch;_.bb.prototype.cancel=function(B){if(this.state_==0){var c=new _.Aa(B);_.wa(function(){az0(this,c)},this)}};
var az0=function(B,c){if(B.state_==0)if(B.parent_){var x=B.parent_;if(x.callbackEntries_){for(var P=0,Y=null,g=null,k=x.callbackEntries_;k&&(k.always||(P++,k.child==B&&(Y=k),!(Y&&P>1)));k=k.next)Y||(g=k);Y&&(x.state_==0&&P==1?az0(x,c):(g?(P=g,P.next==x.callbackEntriesTail_&&(x.callbackEntriesTail_=P),P.next=P.next.next):gXZ(x),sW5(x,Y,3,c)))}B.parent_=null}else B.resolve_(3,c)},PV3=function(B,c){B.callbackEntries_||B.state_!=2&&B.state_!=3||paI(B);
B.callbackEntriesTail_?B.callbackEntriesTail_.next=c:B.callbackEntries_=c;B.callbackEntriesTail_=c},xgy=function(B,c,x,P){var Y=D2y(null,null,null);
Y.child=new _.bb(function(g,k){Y.JSC$7815_onFulfilled=c?function(n){try{var b=c.call(P,n);g(b)}catch(d){k(d)}}:g;
Y.JSC$7815_onRejected=x?function(n){try{var b=x.call(P,n);b===void 0&&n instanceof _.Aa?k(n):g(b)}catch(d){k(d)}}:k});
Y.child.parent_=B;PV3(B,Y);return Y.child};
_.bb.prototype.unblockAndFulfill_=function(B){this.state_=0;this.resolve_(2,B)};
_.bb.prototype.unblockAndReject_=function(B){this.state_=0;this.resolve_(3,B)};
_.bb.prototype.resolve_=function(B,c){this.state_==0&&(this===c&&(B=3,c=new TypeError("Ca")),this.state_=1,rOd(c,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=c,this.state_=B,this.parent_=null,paI(this),B!=3||c instanceof _.Aa||kzn(this,c)))};
var rOd=function(B,c,x,P){if(B instanceof _.bb)return YGF(B,c,x,P),!0;if(i$m(B))return B.then(c,x,P),!0;if(_.xF(B))try{var Y=B.then;if(typeof Y==="function")return Xam(B,Y,c,x,P),!0}catch(g){return x.call(P,g),!0}return!1},Xam=function(B,c,x,P,Y){var g=!1,k=function(b){g||(g=!0,x.call(Y,b))},n=function(b){g||(g=!0,P.call(Y,b))};
try{c.call(B,k,n)}catch(b){n(b)}},paI=function(B){B.executing_||(B.executing_=!0,_.wa(B.executeCallbacks_,B))},gXZ=function(B){var c=null;
B.callbackEntries_&&(c=B.callbackEntries_,B.callbackEntries_=c.next,c.next=null);B.callbackEntries_||(B.callbackEntriesTail_=null);return c};
_.bb.prototype.executeCallbacks_=function(){for(var B;B=gXZ(this);)sW5(this,B,this.state_,this.result_);this.executing_=!1};
sW5=function(B,c,x,P){if(x==3&&c.JSC$7815_onRejected&&!c.always)for(;B&&B.hadUnhandledRejection_;B=B.parent_)B.hadUnhandledRejection_=!1;if(c.child)c.child.parent_=null,$g0(c,x,P);else try{c.always?c.JSC$7815_onFulfilled.call(c.context):$g0(c,x,P)}catch(Y){thQ.call(null,Y)}ue0.put(c)};
$g0=function(B,c,x){c==2?B.JSC$7815_onFulfilled.call(B.context,x):B.JSC$7815_onRejected&&B.JSC$7815_onRejected.call(B.context,x)};
kzn=function(B,c){B.hadUnhandledRejection_=!0;_.wa(function(){B.hadUnhandledRejection_&&thQ.call(null,c)})};
thQ=P$;_.Aa=function(B){_.B$.call(this,B)};
_.sZ(_.Aa,_.B$);_.Aa.prototype.name="cancel";var cs9=function(B,c,x){this.promise=B;this.resolve=c;this.reject=x};var JB;_.Bf=function(B,c){_.V4.call(this);this.JSC$7827_interval_=B||1;this.timerObject_=c||_.xI;this.boundTick_=(0,_.wf)(this.tick_,this);this.last_=_.gQ()};
_.sZ(_.Bf,_.V4);_.a=_.Bf.prototype;_.a.enabled=!1;_.a.JSC$7829_timer_=null;_.a.setInterval=function(B){this.JSC$7827_interval_=B;this.JSC$7829_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7829_timer_&&this.stop()};
_.a.tick_=function(){if(this.enabled){var B=_.gQ()-this.last_;B>0&&B<this.JSC$7827_interval_*.8?this.JSC$7829_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7827_interval_-B):(this.JSC$7829_timer_&&(this.timerObject_.clearTimeout(this.JSC$7829_timer_),this.JSC$7829_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.a.start=function(){this.enabled=!0;this.JSC$7829_timer_||(this.JSC$7829_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7827_interval_),this.last_=_.gQ())};
_.a.stop=function(){this.enabled=!1;this.JSC$7829_timer_&&(this.timerObject_.clearTimeout(this.JSC$7829_timer_),this.JSC$7829_timer_=null)};
_.a.disposeInternal=function(){_.Bf.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
JB=function(B,c,x){if(typeof B==="function")x&&(B=(0,_.wf)(B,x));else if(B&&typeof B.handleEvent=="function")B=(0,_.wf)(B.handleEvent,B);else throw Error("Da");return Number(c)>2147483647?-1:_.xI.setTimeout(B,c||0)};
_.nX0=function(B){var c=null;return(new _.bb(function(x,P){c=JB(function(){x(void 0)},B);
c==-1&&P(Error("Ea"))})).thenCatch(function(x){_.xI.clearTimeout(c);
throw x;})};var KS=function(B){_.tG.call(this);this.streamzLogger=B;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7833_flushTimer=new _.Bf(this.flushInterval);this.JSC$7833_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.bW(this,this.JSC$7833_flushTimer)};
_.w(KS,_.tG);KS.prototype.sendIsolatedPayload=function(B){this.shouldSendIsolatedPayload=B;this.invocationLimit=1};
var b6y=function(B){B.JSC$7833_flushTimer.enabled||B.JSC$7833_flushTimer.start();B.invocationCount++;B.invocationCount>=B.invocationLimit&&B.snapshotAndFlush()};
KS.prototype.snapshotAndFlush=function(){var B=this.metricMap.values();B=[].concat(_.wq(B)).filter(function(c){return c.cellMap.size});
B.length&&this.streamzLogger.flush(B,this.shouldSendIsolatedPayload);K7Q(B);this.invocationCount=0;this.JSC$7833_flushTimer.enabled&&this.JSC$7833_flushTimer.stop()};
KS.prototype.addNewCounter=function(B){var c=_.ts.apply(1,arguments);this.metricMap.has(B)||this.metricMap.set(B,new m2Q(B,c))};
KS.prototype.addNewEventMetric=function(B){var c=_.ts.apply(1,arguments);this.metricMap.has(B)||this.metricMap.set(B,new Ttn(B,c))};
var jWm=function(B,c){return B.disabledMetrics.has(c)?void 0:B.metricMap.get(c)};
KS.prototype.JSC$7833_incrementCounter=function(B){this.JSC$7833_incrementCounterBy(B,1,_.ts.apply(1,arguments))};
KS.prototype.JSC$7833_incrementCounterBy=function(B,c){var x=_.ts.apply(2,arguments),P=jWm(this,B);P&&P instanceof m2Q&&(P.JSC$7772_incrementCounterBy(c,x),b6y(this))};
KS.prototype.record=function(B,c){var x=_.ts.apply(2,arguments),P=jWm(this,B);P&&P instanceof Ttn&&(P.record(c,x),b6y(this))};
var K7Q=function(B){for(var c=0;c<B.length;c++)B[c].clear()};_.WB=function(B,c,x){x=x===void 0?{}:x;c=Error.call(this,c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=B;this.metadata=x;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(_.WB,Error);_.WB.prototype.toString=function(){var B="RpcError("+(AGO(this.code)||String(this.code))+")";this.message&&(B+=": "+this.message);return B};_.UgF=_.xI.JSON.parse;_.lK=_.xI.JSON.stringify;_.tg=_.xI.JSON.parse;_.dg3=function(B){switch(B){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 qGZ=function(B){switch(B){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var CVy,hPW=function(){};
_.sZ(hPW,_.uCq);hPW.prototype.createInstance=function(){return new XMLHttpRequest};
CVy=new hPW;_.EV=function(B){_.V4.call(this);this.headers=new Map;this.JSC$7842_xmlHttpFactory_=B||null;this.JSC$7842_active_=!1;this.JSC$7842_xhr_=null;this.JSC$7842_lastUri_="";this.JSC$7842_lastErrorCode_=0;this.JSC$7842_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7842_timeoutId_=null;this.responseType_="";this.JSC$7842_withCredentials_=!1};
_.sZ(_.EV,_.V4);var mgd=/^https?$/i,T8d=["POST","PUT"],VT0=[],RWC=function(B,c,x,P,Y,g,k){var n=new _.EV;VT0.push(n);c&&n.listen("complete",c);n.listenOnce("ready",n.cleanupSend_);g&&(n.timeoutInterval_=Math.max(0,g));k&&(n.JSC$7842_withCredentials_=k);n.send(B,x,P,Y)};
_.EV.prototype.cleanupSend_=function(){this.dispose();_.Ao(VT0,this)};
_.EV.prototype.send=function(B,c,x,P){if(this.JSC$7842_xhr_)throw Error("Fa`"+this.JSC$7842_lastUri_+"`"+B);c=c?c.toUpperCase():"GET";this.JSC$7842_lastUri_=B;this.JSC$7842_lastError_="";this.JSC$7842_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7842_active_=!0;this.JSC$7842_xhr_=this.createXhr();this.JSC$7842_xhr_.onreadystatechange=tB((0,_.wf)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7842_xhr_.open(c,String(B),!0),this.inOpen_=!1}catch(k){tT3(this,k);return}B=x||"";x=new Map(this.headers);
if(P)if(Object.getPrototypeOf(P)===Object.prototype)for(var Y in P)x.set(Y,P[Y]);else if(typeof P.keys==="function"&&typeof P.get==="function"){Y=_.p(P.keys());for(var g=Y.next();!g.done;g=Y.next())g=g.value,x.set(g,P.get(g))}else throw Error("Ga`"+String(P));P=Array.from(x.keys()).find(function(k){return"content-type"==k.toLowerCase()});
Y=_.xI.FormData&&B instanceof _.xI.FormData;!_.Lx(T8d,c)||P||Y||x.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");c=_.p(x);for(P=c.next();!P.done;P=c.next())x=_.p(P.value),P=x.next().value,x=x.next().value,this.JSC$7842_xhr_.setRequestHeader(P,x);this.responseType_&&(this.JSC$7842_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7842_xhr_&&this.JSC$7842_xhr_.withCredentials!==this.JSC$7842_withCredentials_&&(this.JSC$7842_xhr_.withCredentials=this.JSC$7842_withCredentials_);
try{this.JSC$7842_timeoutId_&&(clearTimeout(this.JSC$7842_timeoutId_),this.JSC$7842_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7842_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7842_xhr_.send(B),this.inSend_=!1}catch(k){tT3(this,k)}};
_.EV.prototype.createXhr=function(){return this.JSC$7842_xmlHttpFactory_?this.JSC$7842_xmlHttpFactory_.createInstance():CVy.createInstance()};
_.EV.prototype.timeout_=function(){typeof MtA!="undefined"&&this.JSC$7842_xhr_&&(this.JSC$7842_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7842_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var tT3=function(B,c){B.JSC$7842_active_=!1;B.JSC$7842_xhr_&&(B.inAbort_=!0,B.JSC$7842_xhr_.abort(),B.inAbort_=!1);B.JSC$7842_lastError_=c;B.JSC$7842_lastErrorCode_=5;wam(B);N8y(B)},wam=function(B){B.errorDispatched_||(B.errorDispatched_=!0,B.dispatchEvent("complete"),B.dispatchEvent("error"))};
_.EV.prototype.abort=function(B){this.JSC$7842_xhr_&&this.JSC$7842_active_&&(this.JSC$7842_active_=!1,this.inAbort_=!0,this.JSC$7842_xhr_.abort(),this.inAbort_=!1,this.JSC$7842_lastErrorCode_=B||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),N8y(this))};
_.EV.prototype.disposeInternal=function(){this.JSC$7842_xhr_&&(this.JSC$7842_active_&&(this.JSC$7842_active_=!1,this.inAbort_=!0,this.JSC$7842_xhr_.abort(),this.inAbort_=!1),N8y(this,!0));_.EV.superClass_.disposeInternal.call(this)};
_.EV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Iz5(this);else this.onReadyStateChangeEntryPoint_()};
_.EV.prototype.onReadyStateChangeEntryPoint_=function(){Iz5(this)};
var Iz5=function(B){if(B.JSC$7842_active_&&typeof MtA!="undefined")if(B.inSend_&&_.OV(B)==4)setTimeout(B.onReadyStateChange_.bind(B),0);else if(B.dispatchEvent("readystatechange"),B.isComplete()){B.JSC$7842_active_=!1;try{if(B.isSuccess())B.dispatchEvent("complete"),B.dispatchEvent("success");else{B.JSC$7842_lastErrorCode_=6;try{var c=_.OV(B)>2?B.JSC$7842_xhr_.statusText:""}catch(x){c=""}B.JSC$7842_lastError_=c+" ["+B.getStatus()+"]";wam(B)}}finally{N8y(B)}}},N8y=function(B,c){if(B.JSC$7842_xhr_){B.JSC$7842_timeoutId_&&
(clearTimeout(B.JSC$7842_timeoutId_),B.JSC$7842_timeoutId_=null);
var x=B.JSC$7842_xhr_;B.JSC$7842_xhr_=null;c||B.dispatchEvent("ready");try{x.onreadystatechange=null}catch(P){}}};
_.EV.prototype.isActive=function(){return!!this.JSC$7842_xhr_};
_.EV.prototype.isComplete=function(){return _.OV(this)==4};
_.EV.prototype.isSuccess=function(){var B=this.getStatus(),c;if(!(c=qGZ(B))){if(B=B===0)B=lSn(String(this.JSC$7842_lastUri_)),B=!mgd.test(B);c=B}return c};
_.OV=function(B){return B.JSC$7842_xhr_?B.JSC$7842_xhr_.readyState:0};
_.a=_.EV.prototype;_.a.getStatus=function(){try{return _.OV(this)>2?this.JSC$7842_xhr_.status:-1}catch(B){return-1}};
_.a.getResponseText=function(){try{return this.JSC$7842_xhr_?this.JSC$7842_xhr_.responseText:""}catch(B){return""}};
_.a.getResponse=function(){try{if(!this.JSC$7842_xhr_)return null;if("response"in this.JSC$7842_xhr_)return this.JSC$7842_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7842_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7842_xhr_)return this.JSC$7842_xhr_.mozResponseArrayBuffer}return null}catch(B){return null}};
_.a.getAllResponseHeaders=function(){return this.JSC$7842_xhr_&&_.OV(this)>=2?this.JSC$7842_xhr_.getAllResponseHeaders()||"":""};
_.a.getLastError=function(){return typeof this.JSC$7842_lastError_==="string"?this.JSC$7842_lastError_:String(this.JSC$7842_lastError_)};var eEY=function(){};
eEY.prototype.send=function(B,c,x){c=c===void 0?function(){}:c;
x=x===void 0?function(){}:x;
RWC(B.url,function(P){P=P.target;P.isSuccess()?c(P.getResponseText()):x(P.getStatus())},B.requestType,B.body,B.requestHeaders,B.timeoutMillis,B.withCredentials)};
eEY.prototype.getTransmissionType=function(){return 1};var JsW=function(B,c){this.bPN=B;this.event=c;this.startTime=j$()},ac7;
JsW.prototype.done=function(){this.bPN.l1(this.event,j$()-this.startTime)};
var oZ=function(){aZ.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.w(oZ,aZ);_.Q4=function(B,c,x){var P=j$();c=c();B.l1(x,j$()-P);return c};
ac7=function(){oZ.apply(this,arguments)};
_.w(ac7,oZ);_.a=ac7.prototype;_.a.l3b=function(){};
_.a.hU=function(){};
_.a.l1=function(){};
_.a.logError=function(){};
_.a.hF=function(){};
_.a.y0T=function(){};
_.a.c0O=function(){};
_.a.gzY=function(){};
var W7Z=function(B){oZ.call(this);var c=this;this.og=B;this.TEST_ONLY={hRM:function(){return c.og},
getExperimentIds:function(){return c.og.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void c.og.dispose()})};
_.w(W7Z,oZ);_.a=W7Z.prototype;_.a.update=function(B){this.og.dispose();this.og=B};
_.a.hU=function(B){this.og.hU(B)};
_.a.l1=function(B,c){this.og.l1(B,c)};
_.a.logError=function(B){this.og.logError(B)};
_.a.hF=function(){this.og.hF()};
_.a.y0T=function(B){this.og.y0T(B)};
_.a.c0O=function(B){this.og.c0O(B)};
_.a.gzY=function(B){this.og.gzY(B)};
_.a.l3b=function(B){this.og.l3b(B)};
var lz5=function(B,c){_.tG.call(this);var x=this;this.callback=B;this.xgF=c;this.h1p=-c;this.addOnDisposeCallback(function(){return void clearTimeout(x.timer)})};
_.w(lz5,_.tG);var EXd=function(B){if(B.timer===void 0){var c=Math.max(0,B.h1p+B.xgF-j$());B.timer=setTimeout(function(){try{B.callback()}finally{B.h1p=j$(),B.timer=void 0}},c)}},O6t=function(B,c){oZ.call(this);
this.metrics=B;this.qU=c};
_.w(O6t,oZ);_.a=O6t.prototype;_.a.l3b=function(B){this.metrics.bCy.record(B,this.qU)};
_.a.hU=function(B){this.metrics.eventCount.increment(B,this.qU)};
_.a.l1=function(B,c){this.metrics.r7P.record(c,B,this.qU)};
_.a.logError=function(B){this.metrics.errorCount.increment(B,this.qU)};
_.a.y0T=function(B){this.metrics.zOl.increment(B,this.qU)};
_.a.c0O=function(B){this.metrics.ciO.increment(B,this.qU)};
_.a.gzY=function(B){this.metrics.iw6.increment(B,this.qU)};
var gDX=function(B,c){c=c===void 0?[]:c;var x={qU:B.qU||"_",adn:B.adn||[],l0c:B.l0c|0,destinationUrl:B.destinationUrl,sLO:B.sLO||function(){},
dVj:B.dVj||function(g,k){return YxC(g,k,x.sLO,x.destinationUrl)}},P=x.dVj("49",x.adn.concat(c));
O6t.call(this,{bCy:new KoZ(P),errorCount:new qFQ(P),eventCount:new UNd(P),r7P:new dNd(P),vOq:new jy5(P),zOl:new Czy(P),ciO:new hSS(P),iw6:new mN9(P)},x.qU);var Y=this;this.TEST_ONLY={getExperimentIds:function(){return Y.options.adn.concat(Y.coF).sort(function(g,k){return g-k})}};
this.options=x;this.service=P;this.hHN=!B.dVj;this.flushDebouncer=new lz5(function(){return void Y.service.snapshotAndFlush()},x.l0c);
this.addOnDisposeCallback(function(){Y.flushDebouncer.dispose();Y.hHN&&Y.service.dispose()});
(this.coF=c.slice()).sort(_.a0)};
_.w(gDX,O6t);gDX.prototype.hF=function(){EXd(this.flushDebouncer)};var kWA=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kWA,_.zL);_.X4$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(_.X4$,_.zL);var Rv=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,0,Rv.messageId)};
_.w(Rv,_.zL);var oXd=_.Ba(Rv);Rv.messageId="bfkj";var oww=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(oww,_.zL);var QWI=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(QWI,_.zL);var F7Q=_.ca(QWI);_.kH=function(){var B=this;this.promise=new Promise(function(c,x){B.resolve=c;B.reject=x})};_.FL=function(B){_.tG.call(this);var c=this;this.crT=Math.floor(Math.random()*200);this.u9b=new QWI;if("challenge"in B&&oXd(B.challenge)){var x=_.OZ(B.challenge,4,void 0,z5);var P=_.OZ(B.challenge,5,void 0,z5);_.OZ(B.challenge,7,void 0,z5)&&(this.u9b=F7Q(_.OZ(B.challenge,7,void 0,z5)))}else x=B.program,P=B.globalName;this.addOnDisposeCallback(function(){var N,l,E;return _.X(function(S){if(S.nextAddress==1)return _.K(S,c.o9L,2);N=S.yieldResult;l=N.hno;(E=l)==null||E();_.Kq(S)})});
this.uD=sOQ(B.ue||{},this.u9b);_.bW(this,this.uD);var Y=new _.kH;this.o9L=Y.promise;this.uD.hU("t");var g=this.uD.share(),k=new JsW(g,"t"),n=function(N,l,E,S){if(!c.uD.isDisposed()){var M="k";l?M="h":E&&(M="u");M!=="k"?S!==0&&(c.uD.hU(M),c.uD.l1(M,N)):c.crT<=0?(c.uD.hU(M),c.uD.l1(M,N),c.crT=Math.floor(Math.random()*200)):c.crT--}},b=function(N,l,E,S){Promise.resolve().then(function(){k.done();
g.hF();g.dispose();Y.resolve({qna:N,hno:l,mzX:E,lkl:S})})};
if(!_.xI[P])throw this.uD.logError(25),Error("Ha");if(!_.xI[P].a)throw this.uD.logError(26),Error("Ia");try{var d=_.xI[P].a;P=[];for(var q=[],C=QDq(this.u9b),h=0;h<C.length;h++)P.push(C[h]),q.push(1);var V=FyO(this.u9b);for(C=0;C<V.length;C++)P.push(V[C]),q.push(2);this.qmM=_.p(d(x,b,!0,B.pJX,n,[P,q],_.OZ(this.u9b,5))).next().value;this.tOC=Y.promise.then(function(){})}catch(N){throw this.uD.logError(28),N;
}};
_.w(_.FL,_.tG);_.FL.prototype.snapshot=function(B){if(this.isDisposed())throw Error("Ja");this.uD.hU("n");var c=this.uD.share();return this.o9L.then(function(x){var P=x.qna;return new Promise(function(Y){var g=new JsW(c,"n");P(function(k){g.done();c.l3b(k.length);c.hF();c.dispose();Y(k)},[B.hY,
B.iii,B.iOi,B.qIQ])})})};
_.FL.prototype.dUi=function(B){this.o9L.then(function(c){var x;(x=c.mzX)==null||x(B)})};
_.FL.prototype.kdb=function(B,c){return this.o9L.then(function(x){var P;return(P=x.lkl)==null?void 0:P(B,c,!1)})};
_.FL.prototype.yYn=function(){return this.uD.share()};var vXW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(vXW,_.zL);var AjQ=_.Ba(vXW);var zPZ=function(){this.wa7={};this.n6c=null},SGS=function(){zPZ.instance||(zPZ.instance=new zPZ);
return zPZ.instance},Gzd=function(B,c){return yst(B,_.PA(c,kWA,1,z5),_.PA(c,_.X4$,2,z5),_.OZ(c,3,void 0,z5))},yst=function(B,c,x,P){if(!c&&!x)return Promise.resolve();
if(!P)return nDw(c,x);var Y;(Y=B.wa7)[P]||(Y[P]=new Promise(function(g,k){nDw(c,x).then(function(){B.n6c=P;g()},function(n){delete B.wa7[P];
k(n)})}));
return B.wa7[P]};var MTt=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(MTt,_.zL);var L7n=function(B,c){return _.en(B,1,c)},Z6W=function(B,c){return _.en(B,2,c)};var vB=function(B){_.tG.call(this);var c=this;this.options=B;this.n0i=new _.kH;this.tOC=this.n0i.promise;this.osD=new _.kH;this.nPp=1;this.vyY=new _.kH;this.s3f=[];this.vTC=B.vTC||function(){};
this.ysi=new W7Z(sOQ(B.ue||{}));H64(this,B.eC,B.sxp,B.eKx,B.lcv,Object.assign({},fz0,B.kQw||{}));this.addOnDisposeCallback(function(){return void i6d(c)})};
_.w(vB,_.tG);vB.prototype.snapshot=function(B){var c=this;return _.X(function(x){switch(x.nextAddress){case 1:if(c.isDisposed())throw Error("Ja");if(c.vg||c.bsr){x.jumpTo(2);break}return _.K(x,c.osD.promise,2);case 2:if(!c.vg){x.jumpTo(4);break}return _.K(x,c.vg.snapshot(B),5);case 5:return x.return(x.yieldResult);case 4:throw c.bsr;}})};
var AsZ=function(B){var c;return _.X(function(x){if(B.isDisposed())throw Error("Ja");(c=B.g3)!=null&&(c.endTimeMs=0,c.resolver(1));return _.K(x,B.vyY.promise,0)})},i6d=function(B){B.bsr=Error("La");
B.osD.resolve();vwQ(B.n0i.promise);B.n0i.reject(Error("La"));B.ysi.dispose();Promise.all(B.s3f).then(function(){var x;return _.X(function(P){(x=B.vg)==null||x.dispose();B.vg=void 0;_.Kq(P)})});
B.s3f=[];var c;(c=B.g3)!=null&&(c.endTimeMs=0,c.resolver(1));vwQ(B.vyY.promise);B.vyY.reject(Error("La"))};
vB.prototype.dUi=function(B){var c,x;(c=this.vg)==null||(x=c.dUi)==null||x.call(c,B)};
vB.prototype.kdb=function(B,c){var x,P,Y;return(Y=(x=this.vg)==null?void 0:(P=x.kdb)==null?void 0:P.call(x,B,c))!=null?Y:Promise.resolve()};
var u_4=function(B,c){var x=B.vTC;B.vTC=function(){x();c()}},Dg0=function(B,c){B.isDisposed()||(B.vg=c,B.ysi.update(c.yYn()),B.osD.resolve(),B.n0i.resolve(void 0),B.vTC())};
vB.prototype.handleError=function(B){if(!this.isDisposed()){this.bsr=B;this.osD.resolve();var c,x;(x=(c=this.options).qOV)==null||x.call(c,B)}};
var rs3=function(B,c){c&&(Promise.all(B.s3f).then(function(){return void c.dispose()}),B.s3f=[])},zi=function(B,c){B.nPp=c;
var x,P;(P=(x=B.options).jx6)==null||P.call(x,c)},RPn=function(B){B.isDisposed()||(B.vyY.resolve(),B.vyY=new _.kH)},H64=function(B,c,x,P,Y,g){P=P===void 0?SGS():P;
Y=Y===void 0?Promise.resolve(void 0):Y;var k,n,b,d,q,C,h,V,N,l,E,S;_.X(function(M){switch(M.nextAddress){case 1:return _.K(M,0,3);case 3:n=null;if(!k){M.jumpTo(6);break}zi(B,7);_.kM(M,7);return _.K(M,my(k.snapshot({}),g.z2e,function(){return Promise.resolve("E:CTO")}),9);
case 9:n=M.yieldResult;_.Gw(M,6);break;case 7:_.be(M),n="E:UCE";case 6:b=void 0,d=k?g.zgl:g.umA,q=new kw(d,g.dFh,g.hgN,g.ipp),C=1;case 10:if(!(C<=g.maxAttempts)){M.jumpTo(12);break}if(C===1){M.jumpTo(13);break}zi(B,0);B.g3=new ePQ(q.getValue(),g.hnO,g.bCV);return _.K(M,B.g3.promise,14);case 14:h=M.yieldResult,B.g3=void 0,h===1?(C=1,q.reset()):XNn(q);case 13:_.kM(M,15);V=void 0;if(x){V=x;M.jumpTo(17);break}zi(B,5);N=P.n6c;return _.K(M,my(Bq9(c,N,n),g.dvV,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:V=M.yieldResult;case 17:return zi(B,3),_.K(M,my(Gzd(P,V),g.aIF,function(){return Promise.reject(Error("Na"))}),19);
case 19:return zi(B,8),_.K(M,Y,20);case 20:return l=new _.FL({challenge:V,ue:B.options.ue,pJX:B.options.pJX}),_.K(M,my(l.tOC,g.uno,function(){return Promise.reject(Error("Oa"))}),21);
case 21:b=l;M.jumpTo(12);break;case 15:E=_.be(M),B.handleError(E),RPn(B);case 11:C++;M.jumpTo(10);break;case 12:if(B.isDisposed()){M.jumpTo(5);break}b&&(x=void 0,rs3(B,k),k=b,Dg0(B,b),RPn(B));zi(B,2);B.g3=new ePQ(g.hYF,g.hnO,g.bCV);return _.K(M,B.g3.promise,22);case 22:B.g3=void 0;if(B.isDisposed()){M.jumpTo(5);break}M.jumpTo(3);break;case 5:(S=k)==null||S.dispose(),_.Kq(M)}})};
vB.prototype.yYn=function(){return this.ysi.share()};
var fz0={hYF:432E5,hnO:3E5,bCV:10,z2e:1E4,dvV:3E4,aIF:3E4,uno:6E4,umA:1E3,zgl:6E4,dFh:6E5,hgN:.25,ipp:2,maxAttempts:10},ePQ=function(B,c,x){var P=this;this.endTimeMs=Date.now()+B;this.promise=new Promise(function(g){P.resolver=g});
var Y=function(){var g=P.endTimeMs-Date.now();g<=x?P.resolver(0):setTimeout(Y,Math.min(g,c))};
Y()};var c05,OtY=(c05=Math.imul)!=null?c05:function(B,c){return B*c|0},TP=[196,
200,224,18],SQ=function(B,c,x){x=x===void 0?[]:x;this.maxItems=B;this.dH=c===void 0?0:c;this.dO=x},x8W=function(B){var c=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!c)return new SQ(B);var x=c.split(",");if(x.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SQ(B);c=x.slice(1);c.length===1&&c[0]===""&&(c=[]);x=Number(x[0]);return isNaN(x)||x<0||x>c.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SQ(B)):new SQ(B,x,c)};
SQ.prototype.serialize=function(){return String(this.dH)+","+this.dO.join()};
SQ.prototype.insert=function(B,c){var x=void 0;if(this.dO[this.dH]!==B){var P=this.dO.indexOf(B);P!==-1?(this.dO.splice(P,1),P<this.dH&&this.dH--,this.dO.splice(this.dH,0,B)):(x=this.dO[this.dH],this.dO[this.dH]=B)}this.dH=(this.dH+1)%this.maxItems;B=btq("iU5q-!O9@$",this.serialize());x&&B&&c(x);return B};
var PeI=function(B,c){this.pDL=c;try{var x=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){x=!1}x&&(this.index=x8W(B))},YIS=function(B,c,x,P,Y){var g=B.index?_.Q4(B.pDL,function(){return vDA(B.index,QOX(c),x,P,Y)},"W"):"u";
B.pDL.gzY(g)},aKZ=function(B,c,x){var P=_.p(B.index?_.Q4(B.pDL,function(){return zzo(QOX(c),x)},"R"):["u"]),Y=P.next().value;
P=P.next().value;B.pDL.c0O(Y);return P};var gMt={toString:function(B){var c=[],x=0;B-=-2147483648;c[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(B%52);for(B=Math.floor(B/52);B>0;)c[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(B%62),B=Math.floor(B/62);return c.join("")}};var kEn=function(B){B=sdn(B);for(var c=2654435769,x=2654435769,P=314159265,Y=B.length,g=Y,k=0,n=function(){c-=x;c-=P;c^=P>>>13;x-=P;x-=c;x^=c<<8;P-=c;P-=x;P^=x>>>13;c-=x;c-=P;c^=P>>>12;x-=P;x-=c;x^=c<<16;P-=c;P-=x;P^=x>>>5;c-=x;c-=P;c^=P>>>3;x-=P;x-=c;x^=c<<10;P-=c;P-=x;P^=x>>>15};g>=12;g-=12,k+=12)c+=pFn(B,k),x+=pFn(B,k+4),P+=pFn(B,k+8),n();
P+=Y;switch(g){case 11:P+=B[k+10]<<24;case 10:P+=B[k+9]<<16;case 9:P+=B[k+8]<<8;case 8:x+=B[k+7]<<24;case 7:x+=B[k+6]<<16;case 6:x+=B[k+5]<<8;case 5:x+=B[k+4];case 4:c+=B[k+3]<<24;case 3:c+=B[k+2]<<16;case 2:c+=B[k+1]<<8;case 1:c+=B[k]}n();return gMt.toString(P)},sdn=function(B){for(var c=[],x=0;x<B.length;x++)c.push(B.charCodeAt(x));
return c},pFn=function(B,c){return B[c]+(B[c+1]<<8)+(B[c+2]<<16)+(B[c+3]<<24)};var XF4,y4=function(B){_.tG.call(this);this.z1=B;this.pAr=new _.kH;this[XF4]=this.dispose};
_.w(y4,_.tG);var $8t=function(B,c){var x=setTimeout(function(){B.pAr.resolve()},c);
B.addOnDisposeCallback(function(){return void clearTimeout(x)})};
y4.prototype.dQ=function(B,c){var x=this.lN(B);c==null||c(x);return _.Q4(this.z1,function(){return _.PN(x,2)},this.gtL)};
var nM3=function(B,c,x,P){return _.Q4(B.z1,function(){return x?B.dQ(c,P):B.lN(c,P)},B.vY)};
XF4=Symbol.dispose;var bqZ=function(B,c,x,P){y4.call(this,B);this.oCl=c;this.fJO=x;this.vY="m";this.gtL="x";this.e1j=0;$8t(this,P)};
_.w(bqZ,y4);bqZ.prototype.lN=function(B,c){var x=this;this.z1.hU(this.vY);++this.e1j>=this.fJO&&this.pAr.resolve();var P=B();B=_.Q4(this.z1,function(){return x.oCl(P)},"C");
if(B===void 0)throw new PB(17,"YNJ:Undefined");if(!(B instanceof Uint8Array))throw new PB(18,"ODM:Invalid");c==null||c(B);return B};
var KXy=function(B,c,x){y4.call(this,B);this.ieV=c;this.vY="f";this.gtL="z";$8t(this,x)};
_.w(KXy,y4);KXy.prototype.lN=function(){return this.ieV};
var jdt=function(B,c,x){y4.call(this,B);this.zrP=c;this.vY="w";this.gtL="z";$8t(this,x)};
_.w(jdt,y4);jdt.prototype.lN=function(){var B=this;return _.Q4(this.z1,function(){return _.kF(B.zrP)},"d")};
jdt.prototype.dQ=function(){return this.zrP};
var U8y=function(B,c){y4.call(this,B);this.error=c;this.vY="e";this.gtL="y"};
_.w(U8y,y4);var d8n=function(B,c){var x=(c(B.error.message)+":"+c(B.error.stack)).substring(0,2048);c=x.length+1;x=SxY(x);var P=new Uint8Array(4+x.length);P.set([42,c&127|128,c>>7,B.error.code]);P.set(x,4);return P};
U8y.prototype.lN=function(){if(this.dwr)return this.dwr;this.dwr=d8n(this,function(B){return"_"+kEn(B)});
return d8n(this,function(B){return B})};
var qI3=function(B,c,x){y4.call(this,B);this.daA=c;this.clientState=x;this.vY="S";this.gtL="q"};
_.w(qI3,y4);qI3.prototype.lN=function(){var B=Math.floor(Date.now()/1E3),c=[Math.random()*255,Math.random()*255],x=c.concat([this.daA&255,this.clientState],[B>>24&255,B>>16&255,B>>8&255,B&255]);B=new Uint8Array(2+x.length);B[0]=34;B[1]=x.length;B.set(x,2);x=B.subarray(2);for(var P=c=c.length;P<x.length;++P)x[P]^=x[P%c];this.z1.y0T(this.clientState);return B};var CeZ={vTF:3E4,nix:2E4},Gi=function(B){_.tG.call(this);var c=this;this.irb=new _.kH;this.naL=0;this.fW=void 0;this.state=2;this.eO=B.eO;this.eC=B.eC;this.kQw=Object.assign({},CeZ,B.kQw||{});this.mr=B.eO.yYn();var x;this.onError=(x=B.onError)!=null?x:function(){};
this.wM7=B.wM7||!1;if(hDS(B)){var P=this.eO;this.sAo=function(){return AsZ(P).catch(function(k){k=c.reportError(new PB(c.tV?20:32,"TRG:Disposed",k));c.fW=k;var n;(n=c.tV)==null||n.dispose();c.tV=void 0;c.irb.reject(k)})};
u_4(P,function(){return void m84(c)});
P.nPp===2&&m84(this)}else this.sAo=B.w16,m84(this);var Y=this.mr.share();Y.hU("o");var g=new JsW(Y,"o");this.irb.promise.then(function(){g.done();Y.hF();Y.dispose()},function(){return void Y.dispose()});
this.addOnDisposeCallback(function(){c.tV?(c.tV.dispose(),c.tV=void 0):c.fW?c.mr.hF():(c.fW=c.reportError(new PB(32,"TNP:Disposed")),c.mr.hF(),c.irb.reject(c.fW))});
_.bW(this,this.mr)};
_.w(Gi,_.tG);Gi.prototype.wYC=function(){return this.irb.promise};
var Tqy=function(B,c){if(!(c instanceof PB))if(c instanceof _.WB){var x=Error(c.toString());x.stack=c.stack;c=new PB(11,"EBH:Error",x)}else c=new PB(12,"BSO:Unknown",c);return B.reportError(c)},m84=function(B){var c,x,P,Y,g,k,n,b,d,q,C,h,V,N,l;
return _.X(function(E){switch(E.nextAddress){case 1:c=void 0;B.naL++;x=new _.kH;B.eO instanceof vB&&B.eO.s3f.push(x.promise);if(!B.wM7){E.jumpTo(2);break}P=new _.kH;setTimeout(function(){return void P.resolve()});
return _.K(E,P.promise,2);case 2:return Y=B.mr.share(),_.kM(E,4,5),B.state=5,g={},k=[],_.K(E,my(B.eO.snapshot({hY:g,iOi:k}),B.kQw.nix,function(){return Promise.reject(new PB(15,"MDA:Timeout"))}),7);
case 7:n=E.yieldResult;if(B.isDisposed())throw new PB(B.tV?20:32,"MDA:Disposed");b=k[0];B.state=6;return _.K(E,my(Vx5(B.eC,n),B.kQw.vTF,function(){return Promise.reject(new PB(10,"BWB:Timeout"))}),8);
case 8:d=E.yieldResult;if(B.isDisposed())throw new PB(B.tV?20:32,"BWB:Disposed");B.state=7;c=_.Q4(Y,function(){var M=txW(B,d,x,b);M.pAr.promise.then(function(){return void B.sAo()});
return M},"i");
case 5:_.Xt(E);Y.dispose();_.nq(E,6);break;case 4:q=_.be(E);(C=c)==null||C.dispose();if(!B.fW){h=Tqy(B,q);x.resolve();var S;if(S=B.eO instanceof vB&&B.naL<2)a:if(q instanceof PB)S=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof _.WB)switch(q.code){case 2:case 13:case 14:case 4:break;default:S=!1;break a}S=!0}if(S)return V=(1+Math.random()*.25)*(B.tV?6E4:1E3),N=setTimeout(function(){return void B.sAo()},V),B.addOnDisposeCallback(function(){return void clearTimeout(N)}),E.return();
B.fW=h}Y.logError(B.tV?13:14);B.irb.reject(B.fW);return E.return();case 6:B.state=8,B.naL=0,(l=B.tV)==null||l.dispose(),B.tV=c,B.irb.resolve(),_.Kq(E)}})},txW=function(B,c,x,P){var Y=gtw(c,2)*1E3;
if(Y<=0)throw new PB(31,"TTM:Invalid");if(_.OZ(c,4))return new jdt(B.mr,_.OZ(c,4),Y);if(!gtw(c,3))return new KXy(B.mr,LdX(_.Vl(c,1)),Y);if(!P)throw new PB(4,"PMD:Undefined");P=P(LdX(_.Vl(c,1)));if(!(P instanceof Function))throw new PB(16,"APF:Failed");B.oWl=Math.floor((Date.now()+Y)/1E3);B=new bqZ(B.mr,P,gtw(c,3),Y);B.addOnDisposeCallback(function(){return void x.resolve()});
return B};
Gi.prototype.lN=function(B){return wFy(this,Object.assign({},B),!1)};
Gi.prototype.dQ=function(B){return wFy(this,Object.assign({},B),!0)};
Gi.prototype.p4A=function(B){if(B>150)return!1;try{return this.cache=new PeI(B,this.mr),!0}catch(c){return this.reportError(new PB(22,"GBJ:init",c)),!1}};
Gi.prototype.reportError=function(B){this.mr.logError(B.code);this.onError(B);return B};
var Nq0=function(B,c){c=c instanceof PB?c:new PB(5,"TVD:error",c);return B.reportError(c)},wFy=function(B,c,x){try{if(B.isDisposed())throw new PB(21,"BNT:disposed");
if(!B.tV&&B.fW)throw B.fW;var P,Y;return(Y=(P=IKF(B,c,x))!=null?P:J00(B,c,x))!=null?Y:WXd(B,c,x)}catch(g){if(!c.teb)throw Nq0(B,g);return lK9(B,x,g)}},IKF=function(B,c,x){var P;
return(P=B.tV)==null?void 0:nM3(P,function(){return EMI(B,c)},x,function(Y){var g;
if(B.tV instanceof bqZ&&((g=c.rS)==null?0:g.q1O))try{var k;(k=B.cache)==null||YIS(k,EMI(B,c),Y,c.rS.zBf,B.oWl-120)}catch(n){B.reportError(new PB(24,"ELX:write",n))}})},J00=function(B,c,x){var P;
if((P=c.rS)!=null&&P.q3b)try{var Y,g=(Y=B.cache)==null?void 0:aKZ(Y,EMI(B,c),c.rS.zBf);return g?x?_.Q4(B.mr,function(){return _.PN(g,2)},"a"):g:void 0}catch(k){B.reportError(new PB(23,"RXO:read",k))}},WXd=function(B,c,x){var P={stack:[],
error:void 0,hasError:!1};try{if(!c.fVU)throw new PB(29,"SDF:notready");return nM3(AL7(P,new qI3(B.mr,0,B.state)),function(){return EMI(B,c)},x)}catch(Y){P.error=Y,P.hasError=!0}finally{uG7(P)}},lK9=function(B,c,x){var P={stack:[],
error:void 0,hasError:!1};try{var Y=Nq0(B,x);return nM3(AL7(P,new U8y(B.mr,Y)),function(){return[]},c)}catch(g){P.error=g,P.hasError=!0}finally{uG7(P)}},EMI=function(B,c){return c.kjY?c.kjY:c.hY?_.Q4(B.mr,function(){return c.kjY=SxY(c.hY)},"c"):[]},hDS=function(B){return MQ(function(c){if(!PR(c))return!1;
for(var x=_.p(Object.entries(B)),P=x.next();!P.done;P=x.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;if(!(P in c)){if(Y.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Y(c[P]))return!1}return!0})}({eO:function(B){return MQ(function(c){return c instanceof B})}(vB)},"");var Oqt=function(){var B=_.au();this.JSC$7960_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Yw("cookie_enabled"),Yw("cookie_3p_enabled"),_.gf("browser"))};
Oqt.prototype.increment=function(B,c,x){this.JSC$7960_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",B,c,x)};
var a4w=function(){var B=_.au();this.JSC$7984_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",aD("tick"),Yw("from_st_cookie"))};
a4w.prototype.increment=function(B,c){this.JSC$7984_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",B,c)};
var oMd=function(){var B=_.au();this.JSC$7990_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.gf("status"))};
oMd.prototype.increment=function(B){this.JSC$7990_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",B)};
var Qdm=function(){var B=_.au();this.JSC$7993_streamzService=B;B.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.gf("stage"),Yw("is_using_ytd_player"),Yw("has_expandable_tiles"))};
Qdm.prototype.increment=function(B,c,x){this.JSC$7993_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",B,c,x)};
var FXF=function(){var B=_.au();this.JSC$7996_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/response_signature",_.gf("check_status"))};
FXF.prototype.increment=function(B){this.JSC$7996_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/response_signature",B)};
var vMm=function(){var B=_.au();this.JSC$7999_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.gf("sig"),aD("de"))};
vMm.prototype.increment=function(B,c){this.JSC$7999_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/e_sig_log",B,c)};
var zDy=function(){var B=_.au();this.JSC$8002_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.gf("sig"),aD("de"))};
zDy.prototype.increment=function(B,c){this.JSC$8002_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/e_sig_en",B,c)};
_.SIy=function(){var B=_.au();this.JSC$8005_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.gf("action"))};
_.SIy.prototype.increment=function(B){this.JSC$8005_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/enforcement_intent",B)};var Mf=window;var y0d=(new Date).getTime();var GEF=function(B){this.servicePromise_=B;B.then((0,_.wf)(function(){},this),function(){},this)},Mxm=function(B,c,x){B.servicePromise_.then(function(P){var Y=P[c];
if(!Y)throw Error("Pa`"+c);return Y.apply(P,x)})},Hqd=function(B,c,x){for(var P=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)P[Y-2]=arguments[Y];
Y=LX9(B,c).then(function(g){return g.apply(null,P)},function(g){g=Error("Qa`"+c+"`"+B,{cause:g});
delete Zqm[c];return _.Im(g)});
return new GEF(Y)},Zqm={},LX9=function(B,c){var x=Zqm[c];
if(x)return x;x=(x=_.Gu(c))?_.$C(x):(new _.bb(function(P,Y){var g=(new VQ(document)).createElement("SCRIPT");g.async=!0;_.Mg(g,_.kX(vI5(B)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||P()};
g.onerror=function(k){Y(Error("Ra`"+c+"`"+B,{cause:k}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var P=_.Gu(c);
if(!P)throw Error("Sa`"+c+"`"+B);return P});
return Zqm[c]=x};var fKQ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},A0W=function(){var B=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=yMq(function(){return _.X(function(c){if(c.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?c.return(Promise.resolve()):_.K(c,iq4(B),2);B.rsaForList.length>
0&&document.addEventListener("click",B.requestAccessForHelpPanel);_.Kq(c)})});
this.requestAccessForHelpPanel=function(){if(!(B.rsaForPromises.length>0)){for(var c=_.p(B.rsaForList),x=c.next();!x.done;x=c.next()){x=x.value;try{B.rsaForPromises.push(document.requestStorageAccessFor(x))}catch(P){}}Promise.all(B.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){B.reset()})}}};
A0W.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var iq4=function(B){var c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:c=_.p(Object.values(fKQ)),x=c.next();case 2:if(x.done){g.jumpTo(0);break}P=x.value;_.kM(g,5);return _.K(g,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:P}),7);case 7:Y=g.yieldResult;Y.state!=="granted"&&B.rsaForList.push(P);_.Gw(g,3);break;case 5:_.be(g);g.jumpTo(0);break;case 3:x=c.next(),g.jumpTo(2)}})};(new A0W).initialize();var utF=function(B){this.JSC$8019_loader_=B};
utF.prototype.startHelp=function(B){Mxm(this.JSC$8019_loader_,"startHelp",arguments)};
utF.prototype.JSC$8021_loadChatSupport=function(B){Mxm(this.JSC$8019_loader_,"loadChatSupport",arguments)};
var r0F=function(B,c){c=c||{};B=Hqd(D8F,"help.service.Lazy.create",B,{apiKey:c.apiKey||c.apiKey,asxUiUri:c.asxUiUri||c.asxUiUri,environment:c.environment||c.environment,flow:c.flow||c.flow,frdProductData:c.frdProductData||c.frdProductData,frdProductDataSerializedJspb:c.frdProductDataSerializedJspb||c.frdProductDataSerializedJspb,helpCenterPath:c.helpCenterPath||c.helpCenterPath,locale:c.locale||c.locale||"en-US".replace(/-/g,"_"),nonce:c.nonce||c.nonce,productData:c.productData||c.productData,receiverUri:c.receiverUri||
c.receiverUri,renderApiUri:c.renderApiUri||c.renderApiUri,theme:c.theme||c.theme,window:c.window||c.window});return new utF(B)},D8F=new Qp(Klo,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var RDW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(RDW,_.zL);var eD5=_.ca(RDW);_.BWW=new function(B,c,x,P){this.configType=B;this.flagName=x;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 xjW=function(){this.retriever=_.cp().resolve(cxI)};MwO(Node);MwO(Element);var Py0=MwO(HTMLElement);MwO(SVGElement);var Yd3,aed,HB,g2W;Yd3=function(B){return typeof B.className=="string"?B.className:B.getAttribute&&B.getAttribute("class")||""};
aed=function(B){return B.classList?B.classList:Yd3(B).match(/\S+/g)||[]};
_.LR=function(B,c){typeof B.className=="string"?B.className=c:B.setAttribute&&B.setAttribute("class",c)};
_.Zu=function(B,c){return B.classList?B.classList.contains(c):_.Lx(aed(B),c)};
_.rX=function(B,c){if(B.classList)B.classList.add(c);else if(!_.Zu(B,c)){var x=Yd3(B);_.LR(B,x+(x.length>0?" "+c:c))}};
HB=function(B,c){if(B.classList)Array.prototype.forEach.call(c,function(Y){_.rX(B,Y)});
else{var x={};Array.prototype.forEach.call(aed(B),function(Y){x[Y]=!0});
Array.prototype.forEach.call(c,function(Y){x[Y]=!0});
c="";for(var P in x)c+=c.length>0?" "+P:P;_.LR(B,c)}};
_.uA=function(B,c){B.classList?B.classList.remove(c):_.Zu(B,c)&&_.LR(B,Array.prototype.filter.call(aed(B),function(x){return x!=c}).join(" "))};
g2W=function(B,c){B.classList?Array.prototype.forEach.call(c,function(x){_.uA(B,x)}):_.LR(B,Array.prototype.filter.call(aed(B),function(x){return!_.Lx(c,x)}).join(" "))};var s34=function(B){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=B.document},XMn=function(B,c){pMt(B);
var x=document.createElement("div"),P;(P=c.parentNode)==null||P.insertBefore(x,c);x.tabIndex=0;x.id="fc-focus-trap-pre-div";x=document.createElement("div");var Y;(Y=c.parentNode)==null||Y.insertBefore(x,c.nextSibling);x.tabIndex=0;x.id="fc-focus-trap-post-div";var g=k_n(B,c),k=k_n(B,c,!0);g&&k&&(B.focusChangeHandler=function(){var n=B.document.activeElement;if(n)if(_.GP(c,n))B.previouslyFocusedElement=n;else if(n===B.document.activeElement)switch(B.previouslyFocusedElement){case g:k.focus();B.previouslyFocusedElement=
k;break;default:g.focus(),B.previouslyFocusedElement=g}},B.document.addEventListener("focus",B.focusChangeHandler,!0),B.document.addEventListener("focusin",B.focusChangeHandler))},pMt=function(B){B.focusChangeHandler&&(document.removeEventListener("focus",B.focusChangeHandler,!0),document.removeEventListener("focusin",B.focusChangeHandler),B.focusChangeHandler=null);
var c;(c=document.getElementById("fc-focus-trap-pre-div"))==null||c.remove();var x;(x=document.getElementById("fc-focus-trap-post-div"))==null||x.remove()},$jy=function(B,c,x,P,Y){x=x===void 0?!0:x;
var g;Y=(g=Y===void 0?null:Y)!=null?g:k_n(B,c,P===void 0?!1:P);Y!==null&&(Y.focus(),x&&XMn(B,c))};
s34.prototype.disableButton=function(B,c){c=c===void 0?null:c;B.disabled=!0;c&&_.rX(B,c)};
var k_n=function(B,c,x){x=x===void 0?!1:x;if(OrX(c)&&!x)return c;var P=x?[].slice.call(c.children,0).reverse():c.children;P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next())if(Y=Y.value,Py0(Y)&&(Y=k_n(B,Y,x)))return Y;return OrX(c)&&x?c:null};var n23=function(B){this.originalBodyOverflow="";this.JSC$8045_domHelper=Ud(B)};_.sZ(_.NH,_.tG);_.a=_.NH.prototype;_.a.JSC$8048_id_=0;_.a.disposeInternal=function(){_.NH.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8046_listener_;delete this.handler_};
_.a.start=function(B){this.stop();this.JSC$8048_id_=JB(this.callback_,B!==void 0?B:this.JSC$8046_interval_)};
_.a.stop=function(){this.isActive()&&_.xI.clearTimeout(this.JSC$8048_id_);this.JSC$8048_id_=0};
_.a.fire=function(){this.stop();this.JSC$8048_doAction_()};
_.a.isActive=function(){return this.JSC$8048_id_!=0};
_.a.JSC$8048_doAction_=function(){this.JSC$8048_id_=0;this.JSC$8046_listener_&&this.JSC$8046_listener_.call(this.handler_)};_.cf=function(B){_.tG.call(this);this.handler_=B;this.JSC$8049_keys_={}};
_.sZ(_.cf,_.tG);var bHn=[];_.cf.prototype.listen=function(B,c,x,P){Array.isArray(c)||(c&&(bHn[0]=c.toString()),c=bHn);for(var Y=0;Y<c.length;Y++){var g=_.wX(B,c[Y],x||this.handleEvent,P||!1,this.handler_||this);if(!g)break;this.JSC$8049_keys_[g.key]=g}return this};
_.cf.prototype.listenOnce=function(B,c,x,P){return KK4(this,B,c,x,P)};
var KK4=function(B,c,x,P,Y,g){if(Array.isArray(x))for(var k=0;k<x.length;k++)KK4(B,c,x[k],P,Y,g);else{c=ml(c,x,P||B.handleEvent,Y,g||B.handler_||B);if(!c)return B;B.JSC$8049_keys_[c.key]=c}return B};
_.cf.prototype.unlisten=function(B,c,x,P,Y){if(Array.isArray(c))for(var g=0;g<c.length;g++)this.unlisten(B,c[g],x,P,Y);else if(B=z9d(B,c,x||this.handleEvent,_.xF(P)?!!P.capture:!!P,Y||this.handler_||this))Tl(B),delete this.JSC$8049_keys_[B.key];return this};
_.cf.prototype.removeAll=function(){_.wW.forEach(this.JSC$8049_keys_,function(B,c){this.JSC$8049_keys_.hasOwnProperty(c)&&Tl(B)},this);
this.JSC$8049_keys_={}};
_.cf.prototype.disposeInternal=function(){_.cf.superClass_.disposeInternal.call(this);this.removeAll()};
_.cf.prototype.handleEvent=function(){throw Error("Ta");};var fR=function(){_.tG.call(this);this.services_={}};
_.sZ(fR,_.tG);fR.prototype.connect=function(B){B&&B()};
fR.prototype.isConnected=function(){return!0};
fR.prototype.registerService=function(B,c,x){this.services_[B]={callback:c,objectPayload:!!x}};
fR.prototype.getService=function(B,c){var x=this.services_[B];return x?x:this.defaultService_?{callback:_.q9(this.defaultService_,B),objectPayload:_.xF(c)}:null};
var j39=function(B,c){if(c&&typeof B==="string")try{return JSON.parse(B)}catch(x){return null}else if(!c&&typeof B!=="string")return(0,_.lK)(B);return B};
fR.prototype.disposeInternal=function(){fR.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 iK=function(B,c){this.sequence_=[];this.onCancelFunction_=B;this.defaultScope_=c||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};
iK.prototype.cancel=function(B){if(this.fired_)this.result_ instanceof iK&&this.result_.cancel();else{if(this.parent_){var c=this.parent_;delete this.parent_;B?c.cancel(B):(c.branches_--,c.branches_<=0&&c.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new AB(this))}};
iK.prototype.continue_=function(B,c){this.blocked_=!1;Uj3(this,B,c)};
var Uj3=function(B,c,x){B.fired_=!0;B.result_=x;B.hadError_=!c;dj9(B)},Cyy=function(B){if(B.fired_){if(!B.silentlyCanceled_)throw new qd0(B);
B.silentlyCanceled_=!1}};
iK.prototype.callback=function(B){Cyy(this);Uj3(this,!0,B)};
iK.prototype.errback=function(B){Cyy(this);Uj3(this,!1,B)};
var hO4=function(B,c,x){uK(B,c,null,x)};
iK.prototype.finally=function(B){var c=this;return new Promise(function(x,P){uK(c,function(Y){B();x(Y)},function(Y){B();
P(Y)})})};
var uK=function(B,c,x,P){var Y=B.fired_;Y||(c===x?c=x=tB(c):(c=tB(c),x=tB(x)));B.sequence_.push([c,x,P]);Y&&dj9(B)};
iK.prototype.then=function(B,c,x){var P,Y,g=new _.bb(function(k,n){Y=k;P=n});
uK(this,Y,function(k){k instanceof AB?g.cancel():P(k);return mj4},this);
return g.then(B,c,x)};
fmt(iK);var TWF=function(B,c){c instanceof iK?hO4(B,(0,_.wf)(c.branch,c)):hO4(B,function(){return c})};
iK.prototype.branch=function(B){var c=new iK;uK(this,c.callback,c.errback,c);B&&(c.parent_=this,this.branches_++);return c};
iK.prototype.isError=function(B){return B instanceof Error};
var Vk3=function(B){return fp(B.sequence_,function(c){return typeof c[1]==="function"})},mj4={},dj9=function(B){if(B.unhandledErrorId_&&B.fired_&&Vk3(B)){var c=B.unhandledErrorId_,x=tkS[c];
x&&(_.xI.clearTimeout(x.JSC$8066_id_),delete tkS[c]);B.unhandledErrorId_=0}B.parent_&&(B.parent_.branches_--,delete B.parent_);c=B.result_;for(var P=x=!1;B.sequence_.length&&!B.blocked_;){var Y=B.sequence_.shift(),g=Y[0],k=Y[1];Y=Y[2];if(g=B.hadError_?k:g)try{var n=g.call(Y||B.defaultScope_,c);n===mj4&&(n=void 0);n!==void 0&&(B.hadError_=B.hadError_&&(n==c||B.isError(n)),B.result_=c=n);if(i$m(c)||typeof _.xI.Promise==="function"&&c instanceof _.xI.Promise)P=!0,B.blocked_=!0}catch(b){c=b,B.hadError_=
!0,Vk3(B)||(x=!0)}}B.result_=c;P&&(n=(0,_.wf)(B.continue_,B,!0),P=(0,_.wf)(B.continue_,B,!1),c instanceof iK?(uK(c,n,P),c.blocking_=!0):c.then(n,P));x&&(c=new wMm(c),tkS[c.JSC$8066_id_]=c,B.unhandledErrorId_=c.JSC$8066_id_)},qd0=function(){_.B$.call(this)};
_.sZ(qd0,_.B$);qd0.prototype.message="Deferred has already fired";qd0.prototype.name="AlreadyCalledError";var AB=function(){_.B$.call(this)};
_.sZ(AB,_.B$);AB.prototype.message="Deferred was canceled";AB.prototype.name="CanceledError";var wMm=function(B){this.JSC$8066_id_=_.xI.setTimeout((0,_.wf)(this.throwError,this),0);this.JSC$8066_error_=B};
wMm.prototype.throwError=function(){delete tkS[this.JSC$8066_id_];throw this.JSC$8066_error_;};
var tkS={};var NWd={1:"NativeMessagingTransport"},Ie3=["pu","lru","pru","lpu","ppu"],WK3=function(){for(var B=10,c=Jx5,x=c.length,P="";B-- >0;)P+=c.charAt(Math.floor(Math.random()*x));return P},Jx5="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Du=function(B){_.tG.call(this);this.JSC$8069_domHelper_=B||Ud()};
_.sZ(Du,_.tG);Du.prototype.transportType=0;Du.prototype.getWindow=function(){return this.JSC$8069_domHelper_.getWindow()};
Du.prototype.getName=function(){return NWd[String(this.transportType)]||""};var ra=function(B,c,x,P,Y){Du.call(this,x);this.JSC$8072_channel_=B;this.protocolVersion_=Y||2;this.peerHostname_=c||"*";this.JSC$8072_eventHandler_=new _.cf(this);this.maybeAttemptToConnectTimer_=new _.Bf(100,this.getWindow());this.oneSidedHandshake_=!!P;this.setupAckReceived_=new iK;this.setupAckSent_=new iK;this.JSC$8072_connected_=new iK;this.endpointId_=WK3();this.peerEndpointId_=null;this.oneSidedHandshake_?lem(this.JSC$8072_channel_)==1?TWF(this.JSC$8072_connected_,this.setupAckReceived_):
TWF(this.JSC$8072_connected_,this.setupAckSent_):(TWF(this.JSC$8072_connected_,this.setupAckReceived_),this.protocolVersion_==2&&TWF(this.JSC$8072_connected_,this.setupAckSent_));hO4(this.JSC$8072_connected_,this.notifyConnected_,this);this.JSC$8072_connected_.callback(!0);this.JSC$8072_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.sZ(ra,Du);ra.prototype.peerProtocolVersion_=null;ra.prototype.initialized_=!1;ra.prototype.transportType=1;var E2Z={};ra.prototype.sendTimerId_=0;
var Q3S=function(B){var c=B.event_.data;if(typeof c!=="string")return!1;var x=c.indexOf("|"),P=c.indexOf(":");if(x==-1||P==-1)return!1;var Y=c.substring(0,x);x=c.substring(x+1,P);c=c.substring(P+1);if(P=RZ[Y])return P.xpcDeliver(x,c,B.event_.origin),!0;P=OH3(c)[0];for(var g in RZ){var k=RZ[g];if(lem(k)==1&&!k.isConnected()&&x=="tp"&&(P=="SETUP"||P=="SETUP_NTPV2")&&o2W(k,B.event_.origin))return delete RZ[k.name],k.name=Y,RZ[Y]=k,k.xpcDeliver(x,c),!0}return!1},FK0=function(B){B.protocolVersion_!=2||
B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=2||B.send("tp","SETUP_NTPV2,"+B.endpointId_);
B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=1||B.send("tp","SETUP")},v20=function(B,c){if(B.protocolVersion_!=2||B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=2||c!=2){if(B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=1||c!=1)return;
B.send("tp","SETUP_ACK")}else B.send("tp","SETUP_ACK_NTPV2");B.setupAckSent_.fired_||B.setupAckSent_.callback(!0)},zO3=function(B,c){c>B.peerProtocolVersion_&&(B.peerProtocolVersion_=c);
B.peerProtocolVersion_==1&&(B.setupAckSent_.fired_||B.oneSidedHandshake_||B.setupAckSent_.callback(!0),B.peerEndpointId_=null)};
_.a=ra.prototype;_.a.connect=function(){var B=this.getWindow(),c=_.Py(B),x=E2Z[c];typeof x!=="number"&&(x=0);x==0&&_.wX(B.postMessage?B:B.document,"message",Q3S,!1,ra);E2Z[c]=x+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.a.maybeAttemptToConnect_=function(){var B=lem(this.JSC$8072_channel_)==0;this.oneSidedHandshake_&&B||this.JSC$8072_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),FK0(this))};
_.a.send=function(B,c){var x=this.JSC$8072_channel_.peerWindowObject_;x&&(this.send=function(P,Y){var g=this,k=this.JSC$8072_channel_.name;this.sendTimerId_=JB(function(){g.sendTimerId_=0;try{var n=x.postMessage?x:x.document;n.postMessage&&n.postMessage(k+"|"+P+":"+Y,g.peerHostname_)}catch(b){}},0)},this.send(B,c))};
_.a.notifyConnected_=function(){var B=this.JSC$8072_channel_,c=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;B.isConnected()||B.connectionDelay_&&B.connectionDelay_.isActive()||(B.state_=2,_.R3(B.connectionDelay_),c!==void 0?(B.connectionDelay_=new _.NH(B.connectCb_,c),B.connectionDelay_.start()):(B.connectionDelay_=null,B.connectCb_()))};
_.a.disposeInternal=function(){if(this.initialized_){var B=this.getWindow(),c=_.Py(B),x=E2Z[c];E2Z[c]=x-1;x==1&&_.Ti(B.postMessage?B:B.document,"message",Q3S,!1,ra)}this.sendTimerId_&&(_.xI.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.R3(this.JSC$8072_eventHandler_);delete this.JSC$8072_eventHandler_;_.R3(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8072_connected_.cancel();delete this.JSC$8072_connected_;delete this.send;ra.superClass_.disposeInternal.call(this)};
var OH3=function(B){B=B.split(",");B[1]=B[1]||null;return B};var yxd;_.eQ=function(B){if(B.getValues&&typeof B.getValues=="function")return B.getValues();if(typeof Map!=="undefined"&&B instanceof Map||typeof Set!=="undefined"&&B instanceof Set)return Array.from(B.values());if(typeof B==="string")return B.split("");if(_.R7(B)){for(var c=[],x=B.length,P=0;P<x;P++)c.push(B[P]);return c}return _.wW.getValues(B)};
_.Sd9=function(B){if(B.getKeys&&typeof B.getKeys=="function")return B.getKeys();if(!B.getValues||typeof B.getValues!="function"){if(typeof Map!=="undefined"&&B instanceof Map)return Array.from(B.keys());if(!(typeof Set!=="undefined"&&B instanceof Set)){if(_.R7(B)||typeof B==="string"){var c=[];B=B.length;for(var x=0;x<B;x++)c.push(x);return c}return _.wW.getKeys(B)}}};
yxd=function(B,c,x){if(B.forEach&&typeof B.forEach=="function")B.forEach(c,x);else if(_.R7(B)||typeof B==="string")Array.prototype.forEach.call(B,c,x);else for(var P=_.Sd9(B),Y=_.eQ(B),g=Y.length,k=0;k<g;k++)c.call(x,Y[k],P&&P[k],B)};var kOY,gB,pO,iHn,G_9,LKZ,MkI,fe5,ZH5;
_.ih=function(B,c){this.JSC$8077_domain_=this.userInfo_=this.scheme_="";this.JSC$8077_port_=null;this.fragment_=this.JSC$8077_path_="";this.JSC$8077_ignoreCase_=!1;var x;B instanceof _.ih?(this.JSC$8077_ignoreCase_=c!==void 0?c:B.JSC$8077_ignoreCase_,_.B_(this,B.scheme_),this.userInfo_=B.userInfo_,_.c_(this,B.JSC$8077_domain_),_.xf(this,B.JSC$8077_port_),_.P_(this,B.getPath()),_.Yf(this,B.JSC$8077_queryData_.clone()),_.az(this,B.fragment_)):B&&(x=_.uk(String(B)))?(this.JSC$8077_ignoreCase_=!!c,_.B_(this,
x[1]||"",!0),this.userInfo_=gB(x[2]||""),_.c_(this,x[3]||"",!0),_.xf(this,x[4]),_.P_(this,x[5]||"",!0),_.Yf(this,x[6]||"",!0),_.az(this,x[7]||"",!0)):(this.JSC$8077_ignoreCase_=!!c,this.JSC$8077_queryData_=new _.sN(null,this.JSC$8077_ignoreCase_))};
_.ih.prototype.toString=function(){var B=[],c=this.scheme_;c&&B.push(pO(c,G_9,!0),":");var x=this.JSC$8077_domain_;if(x||c=="file")B.push("//"),(c=this.userInfo_)&&B.push(pO(c,G_9,!0),"@"),B.push(_.La(x).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x=this.JSC$8077_port_,x!=null&&B.push(":",String(x));if(x=this.getPath())this.JSC$8077_domain_&&x.charAt(0)!="/"&&B.push("/"),B.push(pO(x,x.charAt(0)=="/"?MkI:LKZ,!0));(x=this.JSC$8077_queryData_.toString())&&B.push("?",x);(x=this.fragment_)&&B.push("#",pO(x,
ZH5));return B.join("")};
_.ih.prototype.resolve=function(B){var c=this.clone(),x=!!B.scheme_;x?_.B_(c,B.scheme_):x=!!B.userInfo_;x?c.userInfo_=B.userInfo_:x=!!B.JSC$8077_domain_;x?_.c_(c,B.JSC$8077_domain_):x=B.JSC$8077_port_!=null;var P=B.getPath();if(x)_.xf(c,B.JSC$8077_port_);else if(x=!!B.JSC$8077_path_){if(P.charAt(0)!="/")if(this.JSC$8077_domain_&&!this.JSC$8077_path_)P="/"+P;else{var Y=c.getPath().lastIndexOf("/");Y!=-1&&(P=c.getPath().slice(0,Y+1)+P)}Y=P;if(Y==".."||Y==".")P="";else if(_.$I(Y,"./")||_.$I(Y,"/.")){P=
_.YI(Y,"/");Y=Y.split("/");for(var g=[],k=0;k<Y.length;){var n=Y[k++];n=="."?P&&k==Y.length&&g.push(""):n==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),P&&k==Y.length&&g.push("")):(g.push(n),P=!0)}P=g.join("/")}else P=Y}x?_.P_(c,P):x=B.JSC$8077_queryData_.toString()!=="";x?_.Yf(c,B.JSC$8077_queryData_.clone()):x=!!B.fragment_;x&&_.az(c,B.fragment_);return c};
_.ih.prototype.clone=function(){return new _.ih(this)};
_.B_=function(B,c,x){B.scheme_=x?gB(c,!0):c;B.scheme_&&(B.scheme_=B.scheme_.replace(/:$/,""));return B};
_.c_=function(B,c,x){B.JSC$8077_domain_=x?gB(c,!0):c;return B};
_.xf=function(B,c){if(c){c=Number(c);if(isNaN(c)||c<0)throw Error("Ua`"+c);B.JSC$8077_port_=c}else B.JSC$8077_port_=null;return B};
_.ih.prototype.getPath=function(){return this.JSC$8077_path_};
_.P_=function(B,c,x){B.JSC$8077_path_=x?gB(c,!0):c;return B};
_.Yf=function(B,c,x){c instanceof _.sN?(B.JSC$8077_queryData_=c,HH5(B.JSC$8077_queryData_,B.JSC$8077_ignoreCase_)):(x||(c=pO(c,fe5)),B.JSC$8077_queryData_=new _.sN(c,B.JSC$8077_ignoreCase_));return B};
_.fS=function(B,c,x){B.JSC$8077_queryData_.set(c,x);return B};
_.Hh=function(B,c){return B.JSC$8077_queryData_.get(c)};
_.az=function(B,c,x){B.fragment_=x?gB(c):c;return B};
_.kf=function(B){_.fS(B,"zx",LS());return B};
_.ZM=function(B,c){return B instanceof _.ih?B.clone():new _.ih(B,c)};
kOY=function(B,c){B instanceof _.ih||(B=_.ZM(B));c instanceof _.ih||(c=_.ZM(c));return B.resolve(c)};
gB=function(B,c){return B?c?decodeURI(B.replace(/%25/g,"%2525")):decodeURIComponent(B):""};
pO=function(B,c,x){return typeof B==="string"?(B=encodeURI(B).replace(c,iHn),x&&(B=B.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B):null};
iHn=function(B){B=B.charCodeAt(0);return"%"+(B>>4&15).toString(16)+(B&15).toString(16)};
G_9=/[#\/\?@]/g;LKZ=/[#\?:]/g;MkI=/[#\?]/g;fe5=/[#\?@]/g;ZH5=/#/g;_.sN=function(B,c){this.count_=this.keyMap_=null;this.encodedQuery_=B||null;this.JSC$8078_ignoreCase_=!!c};
_.Xf=function(B){B.keyMap_||(B.keyMap_=new Map,B.count_=0,B.encodedQuery_&&oFy(B.encodedQuery_,function(c,x){B.add(eI(c),x)}))};
_.a=_.sN.prototype;_.a.getCount=function(){_.Xf(this);return this.count_};
_.a.add=function(B,c){_.Xf(this);this.encodedQuery_=null;B=$f(this,B);var x=this.keyMap_.get(B);x||this.keyMap_.set(B,x=[]);x.push(c);this.count_+=1;return this};
_.a.remove=function(B){_.Xf(this);B=$f(this,B);return this.keyMap_.has(B)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(B).length,this.keyMap_.delete(B)):!1};
_.a.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.a.isEmpty=function(){_.Xf(this);return this.count_==0};
_.a.containsKey=function(B){_.Xf(this);B=$f(this,B);return this.keyMap_.has(B)};
_.a.containsValue=function(B){var c=this.getValues();return _.Lx(c,B)};
_.a.forEach=function(B,c){_.Xf(this);this.keyMap_.forEach(function(x,P){x.forEach(function(Y){B.call(c,Y,P,this)},this)},this)};
_.a.getKeys=function(){_.Xf(this);for(var B=Array.from(this.keyMap_.values()),c=Array.from(this.keyMap_.keys()),x=[],P=0;P<c.length;P++)for(var Y=B[P],g=0;g<Y.length;g++)x.push(c[P]);return x};
_.a.getValues=function(B){_.Xf(this);var c=[];if(typeof B==="string")this.containsKey(B)&&(c=c.concat(this.keyMap_.get($f(this,B))));else{B=Array.from(this.keyMap_.values());for(var x=0;x<B.length;x++)c=c.concat(B[x])}return c};
_.a.set=function(B,c){_.Xf(this);this.encodedQuery_=null;B=$f(this,B);this.containsKey(B)&&(this.count_-=this.keyMap_.get(B).length);this.keyMap_.set(B,[c]);this.count_+=1;return this};
_.a.get=function(B,c){if(!B)return c;B=this.getValues(B);return B.length>0?String(B[0]):c};
_.AxZ=function(B,c,x){B.remove(c);x.length>0&&(B.encodedQuery_=null,B.keyMap_.set($f(B,c),_.DA(x)),B.count_+=x.length)};
_.sN.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var B=[],c=Array.from(this.keyMap_.keys()),x=0;x<c.length;x++){var P=c[x],Y=_.La(P);P=this.getValues(P);for(var g=0;g<P.length;g++){var k=Y;P[g]!==""&&(k+="="+_.La(P[g]));B.push(k)}}return this.encodedQuery_=B.join("&")};
_.sN.prototype.clone=function(){var B=new _.sN;B.encodedQuery_=this.encodedQuery_;this.keyMap_&&(B.keyMap_=new Map(this.keyMap_),B.count_=this.count_);return B};
var $f=function(B,c){c=String(c);B.JSC$8078_ignoreCase_&&(c=c.toLowerCase());return c},HH5=function(B,c){c&&!B.JSC$8078_ignoreCase_&&(_.Xf(B),B.encodedQuery_=null,B.keyMap_.forEach(function(x,P){var Y=P.toLowerCase();
P!=Y&&(this.remove(P),_.AxZ(this,Y,x))},B));
B.JSC$8078_ignoreCase_=c};
_.sN.prototype.extend=function(B){for(var c=0;c<arguments.length;c++)yxd(arguments[c],function(x,P){this.add(P,x)},this)};var nO=function(B,c){fR.call(this);for(var x=0,P;P=Ie3[x];x++)if(P in B&&!/^https?:\/\//.test(B[P]))throw Error("Wa`"+B[P]+"`"+P);this.cfg_=B;this.name=this.cfg_.cn||WK3();this.JSC$8073_domHelper_=c||Ud();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.cf(this);B.lpu=B.lpu||EF5(this.JSC$8073_domHelper_.getWindow().location.href)+"/robots.txt";B.ppu=B.ppu||EF5(B.pu||"")+"/robots.txt";RZ[this.name]=this;z9d(window,"unload",ugI)||ml(window,"unload",ugI)};
_.sZ(nO,fR);var DjF=RegExp("^%*tp$"),rxF=RegExp("^%+tp$");_.a=nO.prototype;_.a.connectionDelay_=null;_.a.peerWindowDeferred_=null;_.a.transport_=null;_.a.state_=1;_.a.isConnected=function(){return this.state_==2};
_.a.peerWindowObject_=null;_.a.iframeElement_=null;_.a.connect=function(B){this.connectCb_=B||_.qw;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?hO4(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.a.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8073_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var B=this.iframeElement_.contentWindow;B||(B=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=B}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");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$8073_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new ra(this,this.cfg_.ph,this.JSC$8073_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.a.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.R3(this.transport_);this.connectCb_=this.transport_=null;_.R3(this.connectionDelay_);this.connectionDelay_=null};
_.a.send=function(B,c){if(this.isConnected()){try{var x=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Y){x=!1}if(x){_.xF(c)&&(c=(0,_.lK)(c));x=this.transport_;var P=x.send;DjF.test(B)&&(B="%"+B);B=B.replace(/[%:|]/g,encodeURIComponent);P.call(x,B,c)}else this.close()}};
_.a.xpcDeliver=function(B,c,x){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.wf)(this.xpcDeliver,this,B,c,x));else if(o2W(this,x)&&!this.isDisposed()&&this.state_!=3)if(B&&B!="tp")this.isConnected()&&(B=B.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),B=rxF.test(B)?B.substring(1):B,B=this.getService(B,c))&&(c=j39(c,B.objectPayload),c!=null&&B.callback(c));else switch(B=this.transport_,x=OH3(c),c=x[1],x[0]){case "SETUP_ACK":zO3(B,1);B.setupAckReceived_.fired_||B.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":B.protocolVersion_==2&&(zO3(B,2),B.setupAckReceived_.fired_||B.setupAckReceived_.callback(!0));break;case "SETUP":zO3(B,1);v20(B,1);break;case "SETUP_NTPV2":B.protocolVersion_==2&&(x=B.peerProtocolVersion_,zO3(B,2),v20(B,2),x!=1&&B.peerEndpointId_==null||B.peerEndpointId_==c||FK0(B),B.peerEndpointId_=c)}};
var lem=function(B){var c=B.cfg_.role;return typeof c==="number"?c:window.parent==B.peerWindowObject_?1:0},o2W=function(B,c){var x=B.cfg_.ph;
return _.sl(c==null?"":String(c))||_.sl(x==null?"":String(x))||c==B.cfg_.ph};
nO.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete RZ[this.name];_.R3(this.peerLoadHandler_);delete this.peerLoadHandler_;nO.superClass_.disposeInternal.call(this)};
var ugI=function(){for(var B in RZ)_.R3(RZ[B])},RZ={};var eO9=function(B,c){this.JSC$8087_win=B;this.allowAdsHttpEndpoint=c;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8087_domHelper=Ud(B);this.scrollManager=new n23(B);this.accessibilityManager=new s34(B);ROS(this)},ROS=function(B){var c=function(){B.allowAdsPopup&&B.allowAdsPopup.style.setProperty("display","none","important");
B.wallElement.style.setProperty("display","","important");pMt(B.accessibilityManager);$jy(B.accessibilityManager,B.wallElement.querySelector(".fc-dialog-container"),!1,!1,B.wallElement.querySelector(".fc-button-whitelist"));var Y=B.scrollManager;Y.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow=Y.originalBodyOverflow};
B.allowAdsPopup=B.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-whitelist-root"});B.allowAdsPopup.style.setProperty("display","none","important");B.JSC$8087_domHelper.appendChild(B.JSC$8087_domHelper.JSC$7372_document_.body,B.allowAdsPopup);var x=B.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-dialog-overlay"});B.JSC$8087_domHelper.appendChild(B.allowAdsPopup,x);var P=B.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:c});B.JSC$8087_domHelper.appendChild(B.allowAdsPopup,
P);x=B.JSC$8087_domHelper.JSC$7374_createDom("IFRAME");x.className="fc-whitelist-dialog";x.frameBorder="0";x.id="fc-whitelist-iframe";x.tabIndex="0";_.EG(x,B.allowAdsHttpEndpoint);B.JSC$8087_domHelper.appendChild(P,x);P={};P.pu=_.X_(B.allowAdsHttpEndpoint).toString();P.tp=1;P.cn="fc-whitelist-channel";P.ifrid=x.id;P.osh=!0;B.allowAdsCrossPageChannel=new nO(P);B.allowAdsCrossPageChannel.registerService("close",c);B.allowAdsCrossPageChannel.registerService("refresh",function(){B.JSC$8087_win.location.reload()});
B.allowAdsCrossPageChannel.registerService("resize",function(Y){if(Y){var g=B.allowAdsPopup.querySelector(".fc-whitelist-dialog");Y.width&&g.style.setProperty("width",Y.width,"important");Y.height&&g.style.setProperty("height",Y.height,"important")}},!0);
B.allowAdsCrossPageChannel.connect()};
eO9.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8087_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var bM=window,KO=document,BfF=bM.location,cGI=function(){},xHI=/\[native code\]/,jm=function(B,c,x){return B[c]=B[c]||x},PWS=function(B){B=B.sort();
for(var c=[],x=void 0,P=0;P<B.length;P++){var Y=B[P];Y!=x&&c.push(Y);x=Y}return c},UN=function(){var B;
if((B=Object.create)&&xHI.test(B))B=B(null);else{B={};for(var c in B)B[c]=void 0}return B},dB=jm(bM,"gapi",{});var qX={};qX=jm(bM,"___jsl",UN());jm(qX,"I",0);jm(qX,"hel",10);var YqW=function(){var B=BfF.href;if(qX.dpo)var c=qX.h;else{c=qX.h;var x=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),P=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(B=B&&(x.exec(B)||P.exec(B)))try{c=decodeURIComponent(B[2])}catch(Y){}}return c},aMZ=function(B){var c=jm(qX,"PQ",[]);
qX.PQ=[];var x=c.length;if(x===0)B();else for(var P=0,Y=function(){++P===x&&B()},g=0;g<x;g++)c[g](Y)},gwZ=function(B){return jm(jm(qX,"H",UN()),B,UN())};var CO=function(B){this.JSC$8089_obj_=B};
CO.prototype.value=function(){return this.JSC$8089_obj_};
CO.prototype.getWidth=function(){return this.JSC$8089_obj_.width};
CO.prototype.getHeight=function(){return this.JSC$8089_obj_.height};
CO.prototype.getStyle=function(){return this.JSC$8089_obj_.style};var sDn=function(B){this.JSC$8092_obj_=B||{}};
_.a=sDn.prototype;_.a.value=function(){return this.JSC$8092_obj_};
_.a.setUrl=function(B){this.JSC$8092_obj_.url=B;return this};
_.a.getUrl=function(){return this.JSC$8092_obj_.url};
_.a.getStyle=function(){return this.JSC$8092_obj_.style};
_.a.setId=function(B){this.JSC$8092_obj_.id=B;return this};
_.a.getId=function(){return this.JSC$8092_obj_.id};
_.a.getContext=function(){return this.JSC$8092_obj_.context};
var ph4=function(B){B.JSC$8092_obj_.attributes=B.JSC$8092_obj_.attributes||{};return new CO(B.JSC$8092_obj_.attributes)};var kP9=function(){sDn.apply(this,arguments)};
_.w(kP9,sDn);var Xhm=jm(qX,"perf",UN());jm(Xhm,"g",UN());var $H4=jm(Xhm,"i",UN());jm(Xhm,"r",[]);UN();UN();var bSm=function(B,c,x){c&&c.length>0&&(c=nw9(c),x&&x.length>0&&(c+="___"+nw9(x)),c.length>28&&(c=c.substr(0,28)+(c.length-28)),x=c,c=jm($H4,"_p",UN()),jm(c,x,UN())[B]=(new Date).getTime(),c=Xhm.r,typeof c==="function"?c(B,"_p",x):c.push([B,"_p",x]))},nw9=function(B){return B.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Ky9=UN(),jDF=[],hr=function(B){throw Error("Za`"+B);};
jDF.push(["jsl",function(B){for(var c in B)if(Object.prototype.hasOwnProperty.call(B,c)){var x=B[c];typeof x=="object"?qX[c]=jm(qX,c,[]).concat(x):jm(qX,c,x)}if(c=B.u)B=jm(qX,"us",[]),B.push(c),(c=/^https:(.*)$/.exec(c))&&B.push("http:"+c[1])}]);
var UHI=/^(\/[a-zA-Z0-9_\-]+)+$/,dHW=[/\/amp\//,/\/amp$/,/^\/amp$/],qqy=/^[a-zA-Z0-9\-_\.,!]+$/,CWn=/^gapi\.loaded_[0-9]+$/,hEm=/^[a-zA-Z0-9,._-]+$/,t$5=function(B,c,x,P,Y){var g=B.split(";"),k=g.shift(),n=Ky9[k],b=null;n?b=n(g,c,x,P):hr("no hint processor for: "+k);b||hr("failed to generate load url");c=b;x=c.match(mHS);(P=c.match(Tf0))&&P.length===1&&V$W.test(c)&&x&&x.length===1||hr("failed sanity: "+B);try{B="?";if(Y&&Y.length>0){YF(Y);var d=Y.join(",");b=b+"?le="+d;B="&"}if(qX.rol){var q=qX.ol;
q&&q.length&&(b=""+b+B+"ol="+q.length)}}catch(C){}return b},IMF=function(B,c,x,P){B=whZ(B);
CWn.test(x)||hr("invalid_callback");c=Nfn(c);P=P&&P.length?Nfn(P):null;var Y=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(B.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Y(B.version),"/m=",Y(c),P?"/exm="+Y(P):"","/rt=j/sv=1/d=1/ed=1",B.activeMods?"/am="+Y(B.activeMods):"",B.resourceSig?"/rs="+Y(B.resourceSig):"",B.zcms?"/t="+Y(B.zcms):"","/cb=",Y(x)].join("")},whZ=function(B){B.charAt(0)!=="/"&&hr("relative path");
for(var c=B.substring(1).split("/"),x=[];c.length;){B=c.shift();if(!B.length||B.indexOf(".")==0)hr("empty/relative directory");else if(B.indexOf("=")>0){c.unshift(B);break}x.push(B)}B={};for(var P=0,Y=c.length;P<Y;++P){var g=c[P].split("="),k=decodeURIComponent(g[0]),n=decodeURIComponent(g[1]);g.length==2&&k&&n&&(B[k]=B[k]||n)}c="/"+x.join("/");UHI.test(c)||hr("invalid_prefix");x=0;for(P=dHW.length;x<P;++x)dHW[x].test(c)&&hr("invalid_prefix");x=JGt(B,"k",!0);P=JGt(B,"am");Y=JGt(B,"rs");B=JGt(B,"t");
return{pathPrefix:c,version:x,activeMods:P,resourceSig:Y,zcms:B}},Nfn=function(B){for(var c=[],x=0,P=B.length;x<P;++x){var Y=B[x].replace(/\./g,"_").replace(/-/g,"_");
hEm.test(Y)&&c.push(Y)}return c.join(",")},JGt=function(B,c,x){B=B[c];
!B&&x&&hr("missing: "+c);if(B){if(qqy.test(B))return B;hr("invalid: "+c)}return null},V$W=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Tf0=/\/cb=/g,mHS=/\/\//g;
Ky9.m=function(B,c,x,P){(B=B[0])||hr("missing_hint");return"https://apis.google.com"+IMF(B,c,x,P)};
var WyW=decodeURI("%73cript"),lMZ=/^[-+_0-9\/A-Za-z]+={0,2}$/,Ew5=function(B,c){for(var x=[],P=0;P<B.length;++P){var Y=B[P],g;if(g=Y){a:{for(g=0;g<c.length;g++)if(c[g]===Y)break a;g=-1}g=g<0}g&&x.push(Y)}return x},OS3=function(){var B=qX.nonce;
return B!==void 0?B&&B===String(B)&&B.match(lMZ)?B:qX.nonce=null:KO.querySelector?(B=KO.querySelector("script[nonce]"))?(B=B.nonce||B.getAttribute("nonce")||"",B&&B===String(B)&&B.match(lMZ)?qX.nonce=B:qX.nonce=null):null:null},Fyd=function(B){if(KO.readyState!="loading")owW(B);
else{var c=OS3(),x="";c!==null&&(x=' nonce="'+c+'"');B="<"+WyW+' src="'+encodeURI(B)+'"'+x+"></"+WyW+">";KO.write(QDm?QDm.createHTML(B):B)}},owW=function(B){var c=KO.createElement(WyW);
c.setAttribute("src",QDm?QDm.createScriptURL(B):B);B=OS3();B!==null&&c.setAttribute("nonce",B);c.async="true";(B=KO.getElementsByTagName(WyW)[0])?B.parentNode.insertBefore(c,B):(KO.head||KO.body||KO.documentElement).appendChild(c)},zE5=function(B,c,x){vwI(function(){var P=c===YqW()?jm(dB,"_",UN()):UN();
P=jm(gwZ(c),"_",P);B(P)},x)},szq=function(B,c){var x=c||{};
typeof c=="function"&&(x={},x.callback=c);var P=(c=x)&&c._c;if(P)for(var Y=0;Y<jDF.length;Y++){var g=jDF[Y][0],k=jDF[Y][1];k&&Object.prototype.hasOwnProperty.call(P,g)&&k(P[g],B,c)}c=[];B?c=B.split(":"):x.features&&(c=x.features);if(!(B=x.h)&&(B=YqW(),!B))throw Error("$a");SqI(c||[],x,B)},SqI=function(B,c,x){B=PWS(B)||[];
var P=c.callback,Y=c.config,g=c.timeout,k=c.ontimeout,n=c.onerror,b=void 0;typeof n=="function"&&(b=n);var d=null,q=!1;if(g&&!k||!g&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";n=jm(gwZ(x),"r",[]).sort();var C=jm(gwZ(x),"L",[]).sort(),h=qX.le||[],V=[].concat(n),N=function(f,Z){if(q)return 0;bM.clearTimeout(d);C.push.apply(C,l);var u=((dB||{}).config||{}).update;u?u(Y):Y&&jm(qX,"cu",[]).push(Y);if(Z){bSm("me0",f,V);try{zE5(Z,x,b)}finally{bSm("me1",f,V)}}return 1};
g>0&&(d=bM.setTimeout(function(){q=!0;k()},g));
var l=Ew5(B,C);if(l.length){l=Ew5(B,n);var E=jm(qX,"CP",[]),S=E.length;E[S]=function(f){if(!f)return 0;bSm("ml1",l,V);var Z=function(e){E[S]=null;N(l,f)&&aMZ(function(){P&&P();e()})},u=function(){var e=E[S+1];
e&&e()};
S>0&&E[S-1]?E[S]=function(){Z(u)}:Z(u)};
if(l.length){var M="loaded_"+qX.I++;dB[M]=function(f){E[S](f);dB[M]=null};
B=t$5(x,l,"gapi."+M,n,h);n.push.apply(n,l);bSm("ml0",l,V);c.sync||bM.___gapisync?Fyd(B):owW(B)}else E[S](cGI)}else N(l)&&P&&P()},yG0;
var GPI=null,M$y=_.xI.trustedTypes;if(M$y&&M$y.createPolicy){try{GPI=M$y.createPolicy("goog#gapi",{createHTML:iJ7,createScript:iJ7,createScriptURL:iJ7})}catch(B){_.xI.console&&_.xI.console.error(B.message)}yG0=GPI}else yG0=GPI;var QDm=yG0,vwI=function(B,c){if(qX.hee&&qX.hel>0)try{return B()}catch(x){c&&c(x),qX.hel--,szq("debug_error",function(){try{window.___jsl.hefn(x)}catch(P){throw x;}})}else try{return B()}catch(x){throw c&&c(x),x;
}},Lyn=dB.load;
Lyn&&jm(qX,"ol",[]).push(Lyn);dB.load=function(B,c){return vwI(function(){return szq(B,c)})};var itX;var ZS5=function(B,c){this.serviceId_=B;this.moduleId_=c||null};
ZS5.prototype.toString=function(){return this.serviceId_};
ZS5.prototype.getModuleId=function(){return this.moduleId_};var DaC=new ZS5("MpJwZc","MpJwZc");var RqI=new _.da("a"),rPO=function(B,c,x){_.qf.call(this,B,c);this.node=c;this.kind=x};
_.w(rPO,_.qf);var HS0=function(){this.JSC$8105_keys_={};this.urlPrefix_="";this.JSC$8105_queryData_={}};
HS0.prototype.toString=function(){var B=this.urlPrefix_+fMS(this),c=_.bp(this.JSC$8105_queryData_),x="";c!=""&&(x="?"+c);return B+x};
var iSn=function(B){B=mt(B,"md");return!!B&&B!=="0"},fMS=function(B){var c=[],x=(0,_.wf)(function(P){this.JSC$8105_keys_[P]!==void 0&&c.push(P+"="+this.JSC$8105_keys_[P])},B);
iSn(B)?(x("md"),x("k"),x("ck"),x("am"),x("rs"),x("gssmodulesetproto"),x("slk"),x("dti")):(x("sdch"),x("k"),x("ck"),x("am"),x("rt"),"d"in B.JSC$8105_keys_||T4(B,"d","0"),x("d"),x("exm"),x("excm"),(B.JSC$8105_keys_.excm||B.JSC$8105_keys_.exm)&&c.push("ed=1"),x("im"),x("dg"),x("sm"),mt(B,"br")!="1"&&mt(B,"br")!="0"||x("br"),x("br-d"),mt(B,"rb")=="1"&&x("rb"),mt(B,"zs")!=="0"&&x("zs"),AGd(B)!==""&&x("wt"),x("gssmodulesetproto"),x("ujg"),x("sp"),x("rs"),x("cb"),x("ee"),x("slk"),x("dti"),x("m"));return c.join("/")},
mt=function(B,c){return B.JSC$8105_keys_[c]?B.JSC$8105_keys_[c]:null},T4=function(B,c,x){x?B.JSC$8105_keys_[c]=x:delete B.JSC$8105_keys_[c]},uCm=function(B,c){B.urlPrefix_=c},DH4=function(B,c){c&&c.length>0?(c.sort(),T4(B,"exm",c.join(","))):T4(B,"exm",null)},rGF=function(B,c){c&&c.length>0?(c.sort(),T4(B,"excm",c.join(","))):T4(B,"excm",null)},REn=function(B){return(B=mt(B,"m"))?B.split(","):[]},AGd=function(B){switch(mt(B,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},eEQ=function(B,c){var x=Object.keys(c).filter(function(P){return!!Object.keys(c[P]).length}).map(function(P){var Y=Object.keys(c[P]);
Y.length>1&&Y.sort();return P+":"+Y.join(",")});
x.sort();T4(B,"ee",x.join(";"))},yRA=function(B){var c=mt(B,"ee");
if(!c)return{};B={};c=_.p(c.split(";"));for(var x=c.next();!x.done;x=c.next()){var P=_.p(x.value.split(":"));x=P.next().value;P=P.next().value;B[x]={};P=_.p(P.split(","));for(var Y=P.next();!Y.done;Y=P.next())B[x][Y.value]=!0}return B},Bbd=function(B){delete B.JSC$8105_keys_.m;
delete B.JSC$8105_keys_.exm;delete B.JSC$8105_keys_.ed};
HS0.prototype.clone=function(){var B=new HS0;B.JSC$8105_keys_=Object.assign({},this.JSC$8105_keys_);B.urlPrefix_=this.urlPrefix_;B.JSC$8105_queryData_=Object.assign({},this.JSC$8105_queryData_);return B};
var Gu$=function(B,c){c=c===void 0?!0:c;var x=cMS(B),P=new HS0,Y=_.uk(x)[5];_.wW.forEach(xOn,function(k){var n=Y.match("/"+k+"=([^/]+)");n&&T4(P,k,n[1])});
var g="";g=B.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";uCm(P,B.substr(0,B.indexOf(g)+g.length));if(!c)return P;(B=_.uk(x)[6]||null)&&oFy(B,function(k,n){P.JSC$8105_queryData_[k]=n});
return P},v6q=function(B){B=_.$u(cMS(B));
return B===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(B)?/\/k=/.test(B):!1},cMS=function(B){return B.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?B.substr(65):B},xOn={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"},PPS=RegExp("^loaded_(g|h)?[_\\d]+$");_.VH=function(B){this.JSC$8117_id_=B;this.opts={}};
_.VH.prototype.JSC$8119_setLabel=function(B){this.label_=B||void 0;return this};
_.VH.prototype.addUploadMetadata=function(B,c){var x=this.opts.data||{};x[B]=c;this.opts.data=x;return this};
var Yx9=function(B){var c=_.wW.filter(B.opts,function(x){return x!==null});
c=_.wW.isEmpty(c)?null:c;B=[B.JSC$8117_id_,B.label_,c];c=qlO(B);return B=B.slice(0,c+1)};
_.VH.prototype.toString=function(){var B=Yx9(this);return"("+_.I3(B,function(c){return JSON.stringify(c)}).join(",")+")"};
_.VH.prototype.getId=function(){return this.JSC$8117_id_};
_.VH.prototype.getOptions=function(){return _.wW.clone(this.opts)};var tr=function(){_.VH.call(this,"image-search")};
_.w(tr,_.VH);tr.prototype.setSize=function(B){this.opts.imgsz=B;return this};
tr.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
tr.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};var wB=function(){_.VH.call(this,"maps")};
_.w(wB,_.VH);wB.prototype.setZoom=function(B){this.opts.zoom=B;return this};
wB.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
wB.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};_.NX=function(){_.VH.call(this,"photos")};
_.w(_.NX,_.VH);_.NX.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
_.NX.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};var Iz=function(){_.VH.call(this,"url")};
_.w(Iz,_.VH);var ac0=function(){var B=new Iz;B.opts.type="video";B.opts.site="youtube.com";return B};
Iz.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
Iz.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};var Jr=function(){_.VH.call(this,"video-search")};
_.w(Jr,_.VH);var gDt=function(){var B=new Jr;B.opts.site="youtube.com";return B};
Jr.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
Jr.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};var sOI=function(){_.VH.call(this,"web")};
_.w(sOI,_.VH);sOI.prototype.JSC$8119_setLabel=function(B){_.VH.prototype.JSC$8119_setLabel.call(this,B);return this};
sOI.prototype.addUploadMetadata=function(B,c){_.VH.prototype.addUploadMetadata.call(this,B,c);return this};var W_=function(){this.items_=[];this.opts={}},pR4=function(B){switch(B){case "image-search":return new tr;
case "maps":return new wB;case "photos":return new _.NX;case "url":return new Iz;case "video-search":return new Jr;case "web":return new sOI}return new _.VH(B)};
W_.prototype.addView=function(B){this.items_.push(typeof B==="string"?pR4(B):B);return this};
var kI4=function(B){return"("+_.I3(B.items_,function(c){return c.toString()}).join(",")+")"};
W_.prototype.toString=function(){return kI4(this)};
W_.prototype.getViews=function(B,c){c=c===void 0?[]:c;for(var x=this.items_,P=0;P<x.length;P++){var Y=x[P];Y instanceof W_?Y.getViews(B,c):Y.getId()==B&&c.push(Y)}return c};
W_.prototype.getOptions=function(){return _.wW.clone(this.opts)};var FC=function(B){this.basePickerUrl_=B||"https://docs.google.com/picker";this.nav_=new W_};
FC.prototype.nav_=null;FC.prototype.addView=function(B){this.nav_.addView(B);return this};
FC.prototype.getBaseUrl=function(){return this.basePickerUrl_};
FC.prototype.getViews=function(B){return this.nav_.getViews(B)};
_.XRm=function(B,c){B.callback_=c;return B};var $Oy=new Map;$Oy.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");$Oy.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");$Oy.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var nDW=new Set;nDW.add("application/vnd.google-apps.kix");nDW.add("application/vnd.google-apps.ritz");nDW.add("application/vnd.google-apps.punch");var twI=function(B,c,x){var P=x&&_.OZ(x,1);x=btm(x);var Y=B[0].getId();switch(_.og(Y,2)){case 13:return K_F(B,c,P,x);case 3:return jOn(B,c,P,x);case 10:return UOn(B,c,P,x);case 27:return UOn(B,c,P,x);case 12:return dOW(B,c);case 2:return qxd(B,c,P,x);case 5:return CP3(B,c,P,x);case 9:return hzW(B,c,P,x);case 6:return mO4(B,c,P,x);case 25:return TbQ(B,c,P,x);case 1:return _.mF(B[0],udy,26)?VwI(B,c,P,x):UOn(B,c,P,x);default:return{}}},mO4=function(B,c,x,P){B=B.map(function(Y){return{id:Y.getId().getId(),
serviceId:"youtube",name:Y.getName(),description:_.OZ(Y,3),type:lM(Y),lastEditedUtc:_.AnW(_.PA(Y,_.L2,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:_.OZ(Y,13),thumbnails:EN(Rf(Y))}});
return{action:c,docs:B,viewToken:P,view:x||"youtube",v2Translated:!0}},qxd=function(B,c,x,P){var Y=B.map(function(g){var k=g.getId().getId(),n=_.OZ(g,7),b=g.getName(),d=lM(g),q=_.AnW(_.PA(g,_.L2,12)).getTime(),C=g.getUrl(),h=Number(sCO(g)),V=_.OZ(g,3),N=_.OZ(g,11),l=EN(Rf(g));
var E=_.PA(g,e1,21);E=_.WG(E,1);var S=_.PA(g,e1,21);S=_.OZ(S,10);var M=_.OZ(g,13);var f=_.PA(g,e1,21);f=_.WG(f,9);var Z=_.PA(g,e1,21);Z=_.OZ(Z,11);k={id:k,serviceId:"docs",mimeType:n,name:b,type:d,lastEditedUtc:q,url:C,sizeBytes:h,description:V,iconUrl:N,thumbnails:l,isShared:E,downloadUrl:S,embedUrl:M,copyable:f,resourceKey:Z};n=_.PA(g,e1,21);_.WG(n,12)&&(k.uploadState="success",k.isNew=!0);n=_.PA(g,e1,21);_.mF(n,uL,3)&&(g=_.PA(g,e1,21),g=_.PA(g,uL,3),_.mF(g,iL,2)&&(n=oD(g.getDuration().getSeconds()),
b=g.getDuration(),b=_.Ph(b,2),k.duration=n+b/1E9),k.aspectRatio=g.getAspectRatio());return k});
return{action:c,docs:Y,viewToken:P,view:x||"all",extraUserInputs:wRI(B),v2Translated:!0}},CP3=function(B,c,x,P){B=B.map(function(Y){var g=_.PA(Y,YFZ,15);
g=_.PA(g,Ae,1);dU(Y,10,Ae,g);return{id:Y.getId().getId(),serviceId:"web",mimeType:_.OZ(Y,7),name:Y.getName(),type:lM(Y),url:Y.getUrl(),description:_.OZ(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(Y))}});
return{action:c,docs:B,viewToken:P,view:x||"image-search",v2Translated:!0}},hzW=function(B,c,x,P){B=B.map(function(Y){return{serviceId:"url",
name:Rf(Y)[0].getUrl().split("/").pop(),type:lM(Y),mimeType:_.OZ(Y,7),url:Y.getUrl(),description:_.OZ(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(Y))}});
return{action:c,docs:B,viewToken:P,view:x||"url",v2Translated:!0}},VwI=function(B,c,x,P){B=B.map(function(Y){return{id:Y.getId().getId(),
serviceId:"picasa",name:Y.getName(),type:lM(Y),description:_.OZ(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(Y))}});
return{action:c,docs:B,viewToken:P,view:x||"webcam",v2Translated:!0}},UOn=function(B,c,x,P){return{action:c,
docs:B.map(Nb5),viewToken:P,view:Icn(x||"upload",B),extraUserInputs:wRI(B),v2Translated:!0}},Icn=function(B,c){return c.some(function(x){var P;
return((P=_.PA(x,DD,30))==null?void 0:_.og(P,3))===9})?B+"/gmailphotos":B},jOn=function(B,c,x,P){var Y=B.map(function(g){var k={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.OZ(g,7),name:g.getName(),type:lM(g),lastEditedUtc:_.AnW(_.PA(g,_.L2,12)).getTime(),url:g.getUrl(),sizeBytes:Number(sCO(g)),description:_.OZ(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(g)),mediaKey:g.getId().getId(),parentId:_.OZ(g,4)},n,b=(n=_.PA(g,RII,18))==null?void 0:_.PA(n,rn3,3);b&&(k.latitude=EZ(b,1),k.longitude=EZ(b,2));var d;g=(d=_.PA(g,RII,18))==null?void 0:lJ(d,6);d=g!=null?oD(g):void 0;d&&(k.version=
d);return k});
return{action:c,docs:Y,viewToken:P,view:x||"photos",extraUserInputs:wRI(B),v2Translated:!0}},K_F=function(B,c,x,P){B=B.map(function(Y){return{id:Y.getId().getId(),
serviceId:"et",name:Rf(Y)[0].getUrl().split("/").pop(),description:_.OZ(Y,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(Y),"etjpg")}});
return{action:c,docs:B,viewToken:P,view:x||"et",v2Translated:!0}},TbQ=function(B,c,x,P){B=B.map(function(Y){var g=Y.getId().getId(),k=P["2"];
return{id:g,serviceId:k.type!=="gmail_themes"&&k.parent==="6226252643674576769"?"picasa":"static_themes",name:Y.getName(),mimeType:_.OZ(Y,7),type:lM(Y),description:_.OZ(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:Y.getUrl(),thumbnails:EN(Rf(Y))}});
return{action:c,docs:B,viewToken:P,view:x||"photos",v2Translated:!0}},dOW=function(B,c){B=B.map(function(x){var P=_.PA(x,DQI,27);
P=_.TL(P,1,_.MN,_.xw())[0];return{id:x.getId().getId(),serviceId:"contacts",mimeType:_.OZ(x,7),name:x.getName(),description:_.OZ(x,3),url:"mailto:"+P,thumbnail:[{url:_.OZ(x,11)}],email:P}});
return{action:c,docs:B,view:"contacts",v2Translated:!0}},btm=function(B){if(!B)return{};
var c=_.OZ(B,3);c=c&&JSON.parse(c)||{};return{0:_.OZ(B,1),1:_.OZ(B,2),2:c}},EN=function(B,c){c=c===void 0?"":c;
if(!B.length)return null;c=="etjpg"&&(B=B.filter(function(x){return x.getUrl().includes("w1200-h300")}));
return B.map(function(x){return{url:x.getUrl(),height:x.getHeight(),width:x.getWidth(),type:c}})},wRI=function(B){return{isAttachment:B.some(function(c){return _.WG(c,31)})}},Nb5=function(B){var c,x={id:(c=B.getId())==null?void 0:c.getId(),
serviceId:JMF(B),mimeType:_.OZ(B,7),name:B.getName(),type:lM(B),sizeBytes:Number(sCO(B)),description:_.OZ(B,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EN(Rf(B)),isNew:!0};if(c=_.PA(B,DD,30)){x.dataUrl=_.OZ(c,1)||null;a:{var P=_.PA(B,DD,30);switch(_.og(P,3)){case 9:P=_.vG(P,xN4,2,rp);P={remoteRefs:P&&_.OZ(P,1)};break a;case 10:case 15:P=_.vG(P,ccy,4,rp);var Y=Rf(B);P={photo_id:P&&_.OZ(P,1),media_key:B.getId().getId(),media_type:_.og(B,6)===1?1:2,image_url:Y&&
Y[0].getUrl(),width:Y&&String(Y[0].getWidth()),height:Y&&String(Y[0].getHeight())};break a}P=null}x.uploadMetadata=P;x.uploadId=_.OZ(c,9)||null;x.uploadState=W_0(c)||null}(P=c&&_.vG(c,ccy,4,rp))&&(x.id=_.OZ(P,1));(P=c&&_.vG(c,Pzm,5,rp))&&(x.contentId=_.OZ(P,1));(P=c&&_.vG(c,eI4,7,rp))&&(x.contentId=_.OZ(P,1));(P=c&&_.vG(c,BlS,6,rp))&&(x.contentId=_.OZ(P,1));(c==null?void 0:_.og(c,3))===1&&(x.mediaKey=B.getId().getId());return x},JMF=function(B){var c;
switch(((c=_.PA(B,DD,30))==null?void 0:_.og(c,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},lM=function(B){switch(_.og(B,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 _.OZ(B,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},W_0=function(B){switch(B==null?void 0:_.og(B,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 oD5,lc9,EDW,OtQ;_.QOt=function(B,c){var x=c||{};c=x.document||document;var P=_.X_(B).toString(),Y=(new VQ(c)).createElement("SCRIPT"),g={script_:Y,timeout_:void 0},k=new iK(lc9,g),n=null,b=x.timeout!=null?x.timeout:5E3;b>0&&(n=window.setTimeout(function(){EDW(Y,!0);k.errback(new OtQ(1,"Timeout reached for loading script "+P))},b),g.timeout_=n);
Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||(EDW(Y,x.cleanupWhenDone||!1,n),k.callback(null))};
Y.onerror=function(){EDW(Y,!0,n);k.errback(new OtQ(0,"Error while loading script "+P))};
g=x.attributes||{};_.wW.extend(g,{type:"text/javascript",charset:"UTF-8"});G7Z(Y,g);_.Mg(Y,B);oD5(c).appendChild(Y);return k};
oD5=function(B){var c=hG("HEAD",B);return c&&c.length!==0?c[0]:B.documentElement};
lc9=function(){if(this&&this.script_){var B=this.script_;B&&B.tagName=="SCRIPT"&&EDW(B,!0,this.timeout_)}};
EDW=function(B,c,x){x!=null&&_.xI.clearTimeout(x);B.onload=function(){};
B.onerror=function(){};
B.onreadystatechange=function(){};
c&&window.setTimeout(function(){_.qH(B)},0)};
OtQ=function(B,c){var x="Jsloader error (code #"+B+")";c&&(x+=": "+c);_.B$.call(this,x);this.code=B};
_.sZ(OtQ,_.B$);var F_Z=_.r2(["https://apis.google.com/js/api.js"]),vDS=_.PM(F_Z),GI0=function(B,c){var x=!1,P=zzn(B,c).then(function(g){x=!0;return g}),Y=_.nX0(5E3).then(function(){return x?zzn(B,c):SxQ(c).then(function(g){return yMm(g,B)})});
return B8Q([P,Y])},zzn=function(B,c){return Mwd(c).then(function(x){return yMm(x,B)})},yMm=function(B,c){var x=_.YI(c,"gapi.")?c.slice(5):c;
return B[x]?_.$C(B[x]):new _.bb(function(P,Y){var g=JB(function(){Y(Error("cb"))},3E4);
B.load(c,{callback:function(){_.xI.clearTimeout(g);P(B[x])},
onerror:function(k){_.xI.clearTimeout(g);Y(k)}})})},Mwd=function(B){return B.gapi&&B.gapi.load?_.$C(B.gapi):SxQ(B)},SxQ=function(B){return _.QOt(vDS,{document:B.document}).then(function(){return B.gapi})},L_Q=function(){};
L_Q.prototype.load=function(B,c){c=c===void 0?window:c;var x=Date.now();return GI0(B,c).then(function(P){var Y=Date.now();return{library:P,loadStartMs:x,loadEndMs:Y}},function(P){throw P instanceof Error?P:Error(String(P));
})};var g6d=function(){_.tG.call(this);this.gapiLoader_=new L_Q;this.origin_=null;this.gapiPickerIframeResolver_=_.Hw();this.gapiIframesResolver_=_.Hw();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.w(g6d,_.tG);var Zty=function(B,c){var x=_.Gu("gapi.iframes",c);return x?(B=Date.now(),_.$C({library:x,loadStartMs:B,loadEndMs:B})):B.gapiLoader_.load("gapi.iframes",c)},HtZ=function(B,c,x,P,Y,g){var k=!1;
k=k===void 0?!1:k;Zty(B,WM(c.ownerDocument)).then(function(n){var b=n.library;B.gapiIframesResolver_.resolve(b);n=B.gapiPickerIframeResolver_;var d=n.resolve,q=k;q=q===void 0?!1:q;var C={};C["host-message-handler"]=x;B.hostMessageHandlerInternal_=C;var h=_.ZM(P);h=_.ZM(h);h=_.xf(_.c_(_.B_(new _.ih,h.scheme_),h.JSC$8077_domain_),h.JSC$8077_port_).toString();B.origin_=h;h=(new kP9).setUrl(P);h.JSC$8092_obj_.where=c;h.JSC$8092_obj_.allowPost=q;h.JSC$8092_obj_.messageHandlers=C;q=_.Gu("makeWhiteListIframesFilter",
b)([B.origin_]);h.JSC$8092_obj_.messageHandlersFilter=q;Y!=null&&h.setId(Y);g!=null&&(h.JSC$8092_obj_.rpctoken=g);q=ph4(h);q.JSC$8089_obj_.style={display:"block","min-width":"100%",width:"1px"};q.JSC$8089_obj_.height="100%";ph4(h).value().allow="camera 'src' "+B.origin_;b=b.getContext().openChild(h.value());d.call(n,b)},function(n){B.gapiIframesResolver_.reject(n);
B.gapiPickerIframeResolver_.reject(n)});
return B.gapiPickerIframeResolver_.promise},fc4=function(B,c){return _.Nf([B.gapiIframesResolver_.promise,
B.gapiPickerIframeResolver_.promise]).then(function(x){var P=_.p(x);x=P.next().value;return(P=P.next().value)?P.send("picker-message-handler",c,void 0,_.Gu("makeWhiteListIframesFilter",x)([B.origin_])):_.Im(Error("db"))})};
g6d.prototype.disposeInternal=function(){itt(this);_.tG.prototype.disposeInternal.call(this)};
var itt=function(B){B.gapiPickerIframeResolver_.promise.then(function(c){c&&(c.unregister("host-message-handler"),delete B.hostMessageHandlerInternal_["host-message-handler"])})};var AMt=function(){this.nextId=0};var DOQ=function(B,c){switch(B.action){case "select-contacts":B=uS4(B.contacts);break;case "visibility":B=B.visible;var x=new xc;B=_.S2(x,1,7).setVisible(B);x={};x["iframe-command"]=B.serialize();B=x;break;default:B=null}return B?fc4(c,B):_.$C()},uS4=function(B){if(!B||B.length==0)return null;
var c=new xc;_.S2(c,1,11);var x=new AMt;B.forEach(function(P){if(P.email){var Y=new Ig;Y=_.en(Y,2,P.name?P.name:P.email);var g=new DQI;P=_.syC(g,1,_.zB,P.email,_.MN);P=_.Pa(Y,27,P);Y=P.setId;g=(new f9).setId(":"+(x.nextId++).toString(36));g=_.S2(g,2,12);P=Y.call(P,g)}else P=null;P&&dU(c,7,Ig,P)});
B={};B["iframe-command"]=c.serialize();return B};_.rMS=function(){if(mG$){var B=/Windows NT ([0-9.]+)/;return(B=B.exec(_.dC()))?B[1]:"0"}return _.hal?(B=/1[0|1][_.][0-9_.]+/,(B=B.exec(_.dC()))?B[0].replace(/_/g,"."):"10"):AB7?(B=/Android\s+([^\);]+)(\)|;)/,(B=B.exec(_.dC()))?B[1]:""):VN$||tNw||wO$?(B=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(B=B.exec(_.dC()))?B[1].replace(/_/g,"."):""):""}();var ON;ON=function(B){return(B=B.exec(_.dC()))?B[1]:""};
_.Rz3=function(){if(_.j2)return ON(/Firefox\/([0-9.]+)/);if(_.$V||up||dGx)return OT7;if(_.UZ){if(_.Qw()||_.KqC()){var B=ON(/CriOS\/([0-9.]+)/);if(B)return B}return ON(/Chrome\/([0-9.]+)/)}if(_.QY&&!_.Qw())return ON(/Version\/([0-9.]+)/);if(js$||Up$){if(B=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.dC()))return B[1]+"."+B[2]}else if(zao)return(B=ON(/Android\s+([0-9.]+)/))?B:ON(/Version\/([0-9.]+)/);return""}();var ez3=function(){};
_.ag(ez3);ez3.prototype.nextId_=0;_.oz=function(B){return":"+(B.nextId_++).toString(36)};var QH=function(B){_.V4.call(this);this.JSC$8187_dom_=B||Ud();this.JSC$8187_id_=null;this.inDocument_=!1;this.JSC$8187_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.sZ(QH,_.V4);QH.prototype.idGenerator_=ez3.getInstance();QH.prototype.getId=function(){return this.JSC$8187_id_||(this.JSC$8187_id_=_.oz(this.idGenerator_))};
QH.prototype.setId=function(B){this.parent_&&this.parent_.childIndex_&&(_.wW.remove(this.parent_.childIndex_,this.JSC$8187_id_),_.wW.add(this.parent_.childIndex_,B,this));this.JSC$8187_id_=B};
QH.prototype.getElement=function(){return this.JSC$8187_element_};
var Ff=function(B){B.googUiComponentHandler_||(B.googUiComponentHandler_=new _.cf(B));return B.googUiComponentHandler_},BDW=function(B,c){if(B==c)throw Error("eb");
var x;if(x=c&&B.parent_&&B.JSC$8187_id_){x=B.parent_;var P=B.JSC$8187_id_;x=x.childIndex_&&P?_.wW.get(x.childIndex_,P)||null:null}if(x&&B.parent_!=c)throw Error("eb");B.parent_=c;QH.superClass_.setParentEventTarget.call(B,c)};
QH.prototype.setParentEventTarget=function(B){if(this.parent_&&this.parent_!=B)throw Error("fb");QH.superClass_.setParentEventTarget.call(this,B)};
QH.prototype.JSC$8189_createDom=function(){this.JSC$8187_element_=this.JSC$8187_dom_.createElement("DIV")};
QH.prototype.render=function(B){cR5(this,B)};
var cR5=function(B,c,x){if(B.inDocument_)throw Error("gb");B.JSC$8187_element_||B.JSC$8189_createDom();c?c.insertBefore(B.JSC$8187_element_,x||null):B.JSC$8187_dom_.JSC$7372_document_.body.appendChild(B.JSC$8187_element_);B.parent_&&!B.parent_.inDocument_||B.enterDocument()};
_.a=QH.prototype;_.a.decorate=function(B){if(this.inDocument_)throw Error("gb");if(B&&this.canDecorate(B)){this.wasDecorated_=!0;var c=_.ly(B);this.JSC$8187_dom_&&this.JSC$8187_dom_.JSC$7372_document_==c||(this.JSC$8187_dom_=Ud(B));this.decorateInternal(B);this.enterDocument()}else throw Error("hb");};
_.a.canDecorate=function(){return!0};
_.a.decorateInternal=function(B){this.JSC$8187_element_=B};
_.a.enterDocument=function(){this.inDocument_=!0;xRm(this,function(B){!B.inDocument_&&B.getElement()&&B.enterDocument()})};
_.a.exitDocument=function(){xRm(this,function(B){B.inDocument_&&B.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.a.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);xRm(this,function(B){B.dispose()});
!this.wasDecorated_&&this.JSC$8187_element_&&_.qH(this.JSC$8187_element_);this.parent_=this.model_=this.JSC$8187_element_=this.childIndex_=this.children_=null;QH.superClass_.disposeInternal.call(this)};
_.a.getModel=function(){return this.model_};
_.a.addChild=function(B,c){var x=this.children_?this.children_.length:0;if(B.inDocument_&&(c||!this.inDocument_))throw Error("gb");if(x<0||x>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);B.parent_==this?(_.wW.set(this.childIndex_,B.getId(),B),_.Ao(this.children_,B)):_.wW.add(this.childIndex_,B.getId(),B);BDW(B,this);_.hQX(this.children_,x,0,B);B.inDocument_&&this.inDocument_&&B.parent_==this?(c=this.getContentElement(),
(c.childNodes[x]||null)!=B.getElement()&&(B.getElement().parentElement==c&&c.removeChild(B.getElement()),x=c.childNodes[x]||null,c.insertBefore(B.getElement(),x))):c?(this.JSC$8187_element_||this.JSC$8189_createDom(),x=this.children_?this.children_[x+1]||null:null,cR5(B,this.getContentElement(),x?x.JSC$8187_element_:null)):this.inDocument_&&!B.inDocument_&&B.JSC$8187_element_&&B.JSC$8187_element_.parentNode&&B.JSC$8187_element_.parentNode.nodeType==1&&B.enterDocument()};
_.a.getContentElement=function(){return this.JSC$8187_element_};
var xRm=function(B,c){B.children_&&B.children_.forEach(c,void 0)};
QH.prototype.removeChild=function(B,c){if(B){var x=typeof B==="string"?B:B.getId();B=this.childIndex_&&x?_.wW.get(this.childIndex_,x)||null:null;x&&B&&(_.wW.remove(this.childIndex_,x),_.Ao(this.children_,B),c&&(B.exitDocument(),B.JSC$8187_element_&&_.qH(B.JSC$8187_element_)),BDW(B,null))}if(!B)throw Error("jb");return B};_.sZ(rMA,DOY);_.sZ(Rzl,DOY);var Pk0;var YsI=function(B,c){c?B.setAttribute("role",c):B.removeAttribute("role")},v_=function(B,c,x){Array.isArray(x)&&(x=x.join(" "));
var P="aria-"+c;x===""||x==void 0?(Pk0||(x={},Pk0=(x.atomic=!1,x.autocomplete="none",x.dropeffect="none",x.haspopup=!1,x.live="off",x.multiline=!1,x.multiselectable=!1,x.orientation="vertical",x.readonly=!1,x.relevant="additions text",x.required=!1,x.sort="none",x.busy=!1,x.disabled=!1,x.hidden=!1,x.invalid="false",x)),x=Pk0,c in x?B.setAttribute(P,x[c]):B.removeAttribute(P)):B.setAttribute(P,x)};var agF;_.z4=function(B,c,x){_.V4.call(this);this.target=B;this.handle=c||B;this.limits=x||new QQ(NaN,NaN,NaN,NaN);this.JSC$8192_document_=_.ly(B);this.JSC$8192_eventHandler_=new _.cf(this);_.bW(this,this.JSC$8192_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;_.wX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=agF};
_.sZ(_.z4,_.V4);agF=_.xI.document&&_.xI.document.documentElement&&!!_.xI.document.documentElement.setCapture&&!!_.xI.document.releaseCapture;_.g6Z=function(B,c){B.hysteresisDistanceSquared_=Math.pow(c,2)};
_.a=_.z4.prototype;_.a.setEnabled=function(B){this.enabled_=B};
_.a.disposeInternal=function(){_.z4.superClass_.disposeInternal.call(this);_.Ti(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8192_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8192_document_.releaseCapture();this.handle=this.target=null};
_.a.startDrag=function(B){var c=B.type=="mousedown";if(!this.enabled_||this.dragging_||c&&(B.event_.button!=0||_.hal&&B.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Sm("start",this,B.clientX,B.clientY,B)))this.dragging_=!0,c&&B.preventDefault();else return;else c&&B.preventDefault();c=this.JSC$8192_document_;var x=c.documentElement,P=!this.useSetCapture_;this.JSC$8192_eventHandler_.listen(c,["touchmove","mousemove"],this.handleMove_,
{capture:P,passive:!1});this.JSC$8192_eventHandler_.listen(c,["touchend","mouseup"],this.endDrag,P);this.useSetCapture_?(x.setCapture(!1),this.JSC$8192_eventHandler_.listen(x,"losecapture",this.endDrag)):this.JSC$8192_eventHandler_.listen(WM(c),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8192_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,P);this.clientX=this.startX=B.clientX;this.clientY=this.startY=B.clientY;this.screenX=B.screenX;this.screenY=B.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=jk(Ud(this.JSC$8192_document_))}};
_.a.endDrag=function(B,c){this.JSC$8192_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8192_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Sm("end",this,B.clientX,B.clientY,B,stt(this,this.deltaX),p53(this,this.deltaY),c||B.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.a.handleMove_=function(B){if(this.enabled_){var c=B.clientX-this.clientX,x=B.clientY-this.clientY;this.clientX=B.clientX;this.clientY=B.clientY;this.screenX=B.screenX;this.screenY=B.screenY;if(!this.dragging_){var P=this.startX-this.clientX,Y=this.startY-this.clientY;if(P*P+Y*Y>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Sm("start",this,B.clientX,B.clientY,B)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(B);return}}x=kut(this,c,x);c=x.x;x=x.y;this.dragging_&&this.dispatchEvent(new Sm("beforedrag",
this,B.clientX,B.clientY,B,c,x))&&(X5d(this,B,c,x),B.preventDefault())}};
var kut=function(B,c,x){var P=jk(Ud(B.JSC$8192_document_));c+=P.x-B.pageScroll.x;x+=P.y-B.pageScroll.y;B.pageScroll=P;B.deltaX+=c;B.deltaY+=x;return new _.Jx(stt(B,B.deltaX),p53(B,B.deltaY))};
_.z4.prototype.onScroll_=function(B){var c=kut(this,0,0);B.clientX=this.clientX;B.clientY=this.clientY;X5d(this,B,c.x,c.y)};
var X5d=function(B,c,x,P){B.target.style.left=x+"px";B.target.style.top=P+"px";B.dispatchEvent(new Sm("drag",B,c.clientX,c.clientY,c,x,P))},stt=function(B,c){var x=B.limits;
B=isNaN(x.left)?null:x.left;x=isNaN(x.width)?0:x.width;return Math.min(B!=null?B+x:Infinity,Math.max(B!=null?B:-Infinity,c))},p53=function(B,c){var x=B.limits;
B=isNaN(x.top)?null:x.top;x=isNaN(x.height)?0:x.height;return Math.min(B!=null?B+x:Infinity,Math.max(B!=null?B:-Infinity,c))};
_.z4.prototype.isDragging=function(){return this.dragging_};
var Sm=function(B,c,x,P,Y,g,k){_.qf.call(this,B);this.clientX=x;this.clientY=P;this.browserEvent=Y;this.left=g!==void 0?g:c.deltaX;this.top=k!==void 0?k:c.deltaY};
_.sZ(Sm,_.qf);var yH=function(B){this.JSC$8199_map_=new Map;var c=arguments.length;if(c>1){if(c%2)throw Error("pa");for(var x=0;x<c;x+=2)this.set(arguments[x],arguments[x+1])}else B&&this.addAll(B)};
_.a=yH.prototype;_.a.getCount=function(){return this.JSC$8199_map_.size};
_.a.getValues=function(){return Array.from(this.JSC$8199_map_.values())};
_.a.getKeys=function(){return Array.from(this.JSC$8199_map_.keys())};
_.a.containsKey=function(B){return this.JSC$8199_map_.has(B)};
_.a.containsValue=function(B){return this.getValues().some(function(c){return c==B})};
_.a.equals=function(B,c){var x=this;c=c===void 0?function(P,Y){return P===Y}:c;
return this===B?!0:this.JSC$8199_map_.size!=B.getCount()?!1:this.getKeys().every(function(P){return c(x.JSC$8199_map_.get(P),B.get(P))})};
_.a.isEmpty=function(){return this.JSC$8199_map_.size==0};
_.a.clear=function(){this.JSC$8199_map_.clear()};
_.a.remove=function(B){return this.JSC$8199_map_.delete(B)};
_.a.get=function(B,c){return this.JSC$8199_map_.has(B)?this.JSC$8199_map_.get(B):c};
_.a.set=function(B,c){this.JSC$8199_map_.set(B,c);return this};
_.a.addAll=function(B){if(B instanceof yH){B=_.p(B.JSC$8199_map_);for(var c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;this.JSC$8199_map_.set(c,x)}}else if(B)for(B=_.p(Object.entries(B)),c=B.next();!c.done;c=B.next())x=_.p(c.value),c=x.next().value,x=x.next().value,this.JSC$8199_map_.set(c,x)};
_.a.forEach=function(B,c){var x=this;c=c===void 0?this:c;this.JSC$8199_map_.forEach(function(P,Y){return B.call(c,P,Y,x)})};
_.a.clone=function(){return new yH(this)};(function(){for(var B=["ms","moz","webkit","o"],c,x=0;c=B[x]&&!_.xI.requestAnimationFrame;++x)_.xI.requestAnimationFrame=_.xI[c+"RequestAnimationFrame"],_.xI.cancelAnimationFrame=_.xI[c+"CancelAnimationFrame"]||_.xI[c+"CancelRequestAnimationFrame"];if(!_.xI.requestAnimationFrame){var P=0;_.xI.requestAnimationFrame=function(Y){var g=(new Date).getTime(),k=Math.max(0,16-(g-P));P=g+k;return _.xI.setTimeout(function(){Y(g+k)},k)};
_.xI.cancelAnimationFrame||(_.xI.cancelAnimationFrame=function(Y){clearTimeout(Y)})}})();
var $Rn=[[],[]],n6d=0,bam=!1,KVW=0,URy=function(B,c){var x=KVW++,P={measureTask:{id:x,fn:B.measure,context:c},mutateTask:{id:x,fn:B.mutate,context:c},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,$Rn[n6d].push(P));bam||(bam=!0,window.requestAnimationFrame(jtQ))}},jtQ=
function(){bam=!1;
var B=$Rn[n6d],c=B.length;n6d=(n6d+1)%2;for(var x,P=0;P<c;++P){x=B[P];var Y=x.measureTask;x.isScheduled=!1;Y.fn&&Y.fn.apply(Y.context,x.args)}for(P=0;P<c;++P)x=B[P],Y=x.mutateTask,x.isScheduled=!1,Y.fn&&Y.fn.apply(Y.context,x.args),x.state={};B.length=0};var dRW=_.r2(["about:blank"]),qsZ=_.r2(["javascript:undefined"]),Ckt=_.PM(dRW);_.X_(Ckt);var h2m=_.PM(qsZ);_.X_(h2m);var G4=function(B){_.V4.call(this);this.JSC$8205_element_=B;this.listenKeyIn_=_.wX(this.JSC$8205_element_,"focus",this,!0);this.listenKeyOut_=_.wX(this.JSC$8205_element_,"blur",this,!0)};
_.sZ(G4,_.V4);G4.prototype.handleEvent=function(B){var c=new _.CR(B.event_);c.type=B.type=="focusin"||B.type=="focus"?"focusin":"focusout";this.dispatchEvent(c)};
G4.prototype.disposeInternal=function(){G4.superClass_.disposeInternal.call(this);Tl(this.listenKeyIn_);Tl(this.listenKeyOut_);delete this.JSC$8205_element_};var mR9=function(B,c){this.JSC$8208_element_=B;this.JSC$8208_dom_=c};var MX=function(B,c){QH.call(this,c);this.useIframeMask_=!!B;this.lastFocus_=null;this.resizeBackgroundTask_=URy({mutate:this.resizeBackground_},this);URy({mutate:this.updateModalAndBackground_},this)};
_.sZ(MX,QH);_.a=MX.prototype;_.a.focusHandler_=null;_.a.visible_=!1;_.a.bgEl_=null;_.a.bgIframeEl_=null;_.a.tabCatcherElement_=null;_.a.backwardTabWrapInProgress_=!1;_.a.getCssClass=function(){return"goog-modalpopup"};
_.a.getBackgroundElement=function(){return this.bgEl_};
_.a.JSC$8189_createDom=function(){MX.superClass_.JSC$8189_createDom.call(this);var B=this.getElement(),c=bX(this.getCssClass()).split(" ");HB(B,c);B.tabIndex=0;_.iW(B,!1);TDS(this);VIW(this)};
var TDS=function(B){if(B.useIframeMask_&&!B.bgIframeEl_){var c=B.JSC$8187_dom_.JSC$7374_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.EG(c,Ckt);B.bgIframeEl_=c;B.bgIframeEl_.className=B.getCssClass()+"-bg";_.iW(B.bgIframeEl_,!1);UQQ(B.bgIframeEl_,0)}B.bgEl_||(B.bgEl_=B.JSC$8187_dom_.JSC$7374_createDom("DIV",B.getCssClass()+"-bg"),_.iW(B.bgEl_,!1))},VIW=function(B){B.tabCatcherElement_||(B.tabCatcherElement_=B.JSC$8187_dom_.createElement("SPAN"),_.iW(B.tabCatcherElement_,
!1),B.tabCatcherElement_.tabIndex=0,B.tabCatcherElement_.style.position="absolute")};
_.a=MX.prototype;_.a.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.a.canDecorate=function(B){return!!B&&B.tagName=="DIV"};
_.a.decorateInternal=function(B){MX.superClass_.decorateInternal.call(this,B);B=bX(this.getCssClass()).split(" ");HB(this.getElement(),B);TDS(this);VIW(this);this.getElement().tabIndex=0;_.iW(this.getElement(),!1)};
_.a.enterDocument=function(){this.bgIframeEl_&&_.lL(this.bgIframeEl_,this.getElement());_.lL(this.bgEl_,this.getElement());MX.superClass_.enterDocument.call(this);_.EY(this.tabCatcherElement_,this.getElement());this.focusHandler_=new G4(this.JSC$8187_dom_.JSC$7372_document_);Ff(this).listen(this.focusHandler_,"focusin",this.onFocus);tI4(this,!1)};
_.a.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.R3(this.focusHandler_);MX.superClass_.exitDocument.call(this);_.qH(this.bgIframeEl_);_.qH(this.bgEl_);_.qH(this.tabCatcherElement_)};
_.a.setVisible=function(B){if(B!=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_&&tI4(this,B),B){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8187_dom_.JSC$7372_document_.activeElement}catch(Y){}this.updateModalAndBackground_();Ff(this).listen(this.JSC$8187_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8187_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);w5m(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ml(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Ff(this).unlisten(this.JSC$8187_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8187_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ml(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var c=this.JSC$8187_dom_,x=c.JSC$7372_document_.body,P=c.JSC$7372_document_.activeElement||x;if(!this.lastFocus_||this.lastFocus_==x){this.lastFocus_=null;break a}(P==x||c.contains(this.getElement(),P))&&this.lastFocus_.focus()}catch(Y){}this.lastFocus_=
null}}};
var tI4=function(B,c){B.modalAriaVisibilityHelper_||(B.modalAriaVisibilityHelper_=new mR9(B.JSC$8187_element_,B.JSC$8187_dom_));B=B.modalAriaVisibilityHelper_;if(c){B.hiddenElements_||(B.hiddenElements_=[]);c=B.JSC$8208_dom_.getChildren(B.JSC$8208_dom_.JSC$7372_document_.body);for(var x=0;x<c.length;x++){var P=c[x],Y;if(Y=P!=B.JSC$8208_element_)Y=P.getAttribute("aria-hidden"),Y=!(Y==null||Y==void 0?0:String(Y));Y&&(v_(P,"hidden",!0),B.hiddenElements_.push(P))}}else if(B.hiddenElements_){for(c=0;c<
B.hiddenElements_.length;c++)B.hiddenElements_[c].removeAttribute("aria-hidden");B.hiddenElements_=null}};
MX.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var w5m=function(B,c){B.bgIframeEl_&&_.iW(B.bgIframeEl_,c);B.bgEl_&&_.iW(B.bgEl_,c);_.iW(B.getElement(),c);_.iW(B.tabCatcherElement_,c)};
_.a=MX.prototype;_.a.onShow=function(){this.dispatchEvent("show")};
_.a.onHide=function(){w5m(this,!1);this.dispatchEvent("hide")};
_.a.isVisible=function(){return this.visible_};
_.a.focus=function(){this.focusElement_()};
_.a.resizeBackground_=function(){this.bgIframeEl_&&_.iW(this.bgIframeEl_,!1);this.bgEl_&&_.iW(this.bgEl_,!1);var B=this.JSC$8187_dom_.JSC$7372_document_;var c=_.KH(WM(this.JSC$8187_dom_.JSC$7372_document_)||window);var x=Math.max(c.width,Math.max(B.body.scrollWidth,B.documentElement.scrollWidth));B=Math.max(c.height,Math.max(B.body.scrollHeight,B.documentElement.scrollHeight));this.bgIframeEl_&&(_.iW(this.bgIframeEl_,!0),_.nFm(this.bgIframeEl_,x,B));this.bgEl_&&(_.iW(this.bgEl_,!0),_.nFm(this.bgEl_,
x,B))};
_.a.reposition=function(){var B;if(_.$Qt(this.getElement())=="fixed")var c=B=0;else c=jk(this.JSC$8187_dom_),B=c.x,c=c.y;var x=KmS(this.getElement());var P=_.KH(WM(this.JSC$8187_dom_.JSC$7372_document_)||window);B=Math.max(B+P.width/2-x.width/2,0);c=Math.max(c+P.height/2-x.height/2,0);z1(this.getElement(),B,c);z1(this.tabCatcherElement_,B,c)};
_.a.onFocus=function(B){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():B.target==this.tabCatcherElement_&&JB(this.focusElement_,0,this)};
_.a.focusElement_=function(){try{this.getElement().focus()}catch(B){}};
_.a.disposeInternal=function(){_.R3(this.popupShowTransition_);this.popupShowTransition_=null;_.R3(this.popupHideTransition_);this.popupHideTransition_=null;_.R3(this.bgShowTransition_);this.bgShowTransition_=null;_.R3(this.bgHideTransition_);this.bgHideTransition_=null;MX.superClass_.disposeInternal.call(this)};var Q_=function(B,c,x){MX.call(this,c,x);this.JSC$8218_class_=B||"modal-dialog";this.buttons_=(new LO).addButton(NDm,!0).addButton(IgS,!1,!0)};
_.sZ(Q_,MX);_.a=Q_.prototype;_.a.escapeToCancel_=!0;_.a.hasTitleCloseButton_=!0;_.a.modal_=!0;_.a.draggable_=!0;_.a.backgroundElementOpacity_=.5;_.a.title_="";_.a.JSC$8220_dragger_=null;_.a.JSC$8220_disposeOnHide_=!1;_.a.titleEl_=null;_.a.titleTextEl_=null;_.a.titleTextId_=null;_.a.titleCloseEl_=null;_.a.contentEl_=null;_.a.buttonEl_=null;_.a.getCssClass=function(){return this.JSC$8218_class_};
_.a.setTitle=function(B){this.title_=B;this.titleTextEl_&&_.of(this.titleTextEl_,B)};
_.a.getTitle=function(){return this.title_};
_.a.getContent=function(){return""};
_.a.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var JRS=function(B){B.getElement()||B.render();return B.getElement()};
Q_.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Q_.superClass_.getBackgroundElement.call(this)};
var WV9=function(B,c){B.backgroundElementOpacity_=c;B.getElement()&&(c=B.getBackgroundElement())&&UQQ(c,B.backgroundElementOpacity_)};
Q_.prototype.setDraggable=function(B){this.draggable_=B;lg5(this,B&&this.inDocument_)};
Q_.prototype.JSC$8220_handleDrag=function(){};
var lg5=function(B,c){var x=bX(B.JSC$8218_class_+"-title-draggable").split(" ");B.getElement()&&(c?HB(B.titleEl_,x):g2W(B.titleEl_,x));c&&!B.JSC$8220_dragger_?(c=new _.z4(B.getElement(),B.titleEl_),B.JSC$8220_dragger_=c,HB(B.titleEl_,x),_.wX(B.JSC$8220_dragger_,"start",B.setDraggerLimits_,!1,B),_.wX(B.JSC$8220_dragger_,"drag",B.JSC$8220_handleDrag,!1,B)):!c&&B.JSC$8220_dragger_&&(B.JSC$8220_dragger_.dispose(),B.JSC$8220_dragger_=null)};
_.a=Q_.prototype;
_.a.JSC$8189_createDom=function(){Q_.superClass_.JSC$8189_createDom.call(this);var B=this.getElement(),c=this.JSC$8187_dom_;this.titleTextId_=this.getId();var x=this.getId()+".contentEl";this.titleEl_=c.JSC$7374_createDom("DIV",this.JSC$8218_class_+"-title",this.titleTextEl_=c.JSC$7374_createDom("SPAN",{className:this.JSC$8218_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=c.JSC$7374_createDom("SPAN",this.JSC$8218_class_+"-title-close"));fA4(B,this.titleEl_,this.contentEl_=
c.JSC$7374_createDom("DIV",{className:this.JSC$8218_class_+"-content",id:x}),this.buttonEl_=c.JSC$7374_createDom("DIV",this.JSC$8218_class_+"-buttons"));YsI(this.titleTextEl_,"heading");YsI(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;v_(this.titleCloseEl_,"label","Close");YsI(B,"dialog");v_(B,"labelledby",this.titleTextId_||"");_.iW(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(B=this.buttons_,B.JSC$8221_element_=this.buttonEl_,B.render());_.iW(this.buttonEl_,!!this.buttons_);
WV9(this,this.backgroundElementOpacity_)};
_.a.decorateInternal=function(B){Q_.superClass_.decorateInternal.call(this,B);B=this.getElement();var c=this.JSC$8218_class_+"-content";this.contentEl_=te(document,null,c,B)[0];this.contentEl_||(this.contentEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",c),B.appendChild(this.contentEl_));c=this.JSC$8218_class_+"-title";var x=this.JSC$8218_class_+"-title-text",P=this.JSC$8218_class_+"-title-close";(this.titleEl_=te(document,null,c,B)[0])?(this.titleTextEl_=te(document,null,x,this.titleEl_)[0],this.titleCloseEl_=
te(document,null,P,this.titleEl_)[0]):(this.titleEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",c),B.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=gFS(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Nw("SPAN",{className:x,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;v_(B,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8187_dom_.JSC$7374_createDom("SPAN",
P),this.titleEl_.appendChild(this.titleCloseEl_));_.iW(this.titleCloseEl_,this.hasTitleCloseButton_);c=this.JSC$8218_class_+"-buttons";(this.buttonEl_=te(document,null,c,B)[0])?(this.buttons_=new LO(this.JSC$8187_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",c),B.appendChild(this.buttonEl_),this.buttons_&&(B=this.buttons_,B.JSC$8221_element_=this.buttonEl_,B.render()),_.iW(this.buttonEl_,!!this.buttons_));WV9(this,this.backgroundElementOpacity_)};
_.a.enterDocument=function(){Q_.superClass_.enterDocument.call(this);Ff(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Ff(this).listen(this.buttonEl_,"click",this.onButtonClick_);lg5(this,this.draggable_);Ff(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var B=this.getElement();YsI(B,"dialog");this.titleTextEl_.id!==""&&v_(B,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){B=this.JSC$8187_dom_;
var c=this.getBackgroundElement();B.removeNode(this.bgIframeEl_);B.removeNode(c)}this.isVisible()&&tI4(this,!1)}};
_.a.exitDocument=function(){this.isVisible()&&this.setVisible(!1);lg5(this,!1);Q_.superClass_.exitDocument.call(this)};
_.a.setVisible=function(B){B!=this.isVisible()&&(this.inDocument_||this.render(),Q_.superClass_.setVisible.call(this,B))};
_.a.onShow=function(){Q_.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.a.onHide=function(){Q_.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8220_disposeOnHide_&&this.dispose()};
_.a.setDraggerLimits_=function(){var B=this.JSC$8187_dom_.JSC$7372_document_,c=_.KH(WM(B)||window),x=Math.max(B.body.scrollWidth,c.width);B=Math.max(B.body.scrollHeight,c.height);var P=KmS(this.getElement());_.$Qt(this.getElement())=="fixed"?this.JSC$8220_dragger_.limits=new QQ(0,0,Math.max(0,c.width-P.width),Math.max(0,c.height-P.height)):this.JSC$8220_dragger_.limits=new QQ(0,0,x-P.width,B-P.height)};
_.a.onTitleCloseClick_=function(){E6n(this)};
var E6n=function(B){if(B.hasTitleCloseButton_){var c=B.buttons_,x=c&&c.cancelButton_;x?(c=c.get(x),B.dispatchEvent(new Z0(x,c))&&B.setVisible(!1)):B.setVisible(!1)}},Oa4=function(B){B.hasTitleCloseButton_=!1;
B.titleCloseEl_&&_.iW(B.titleCloseEl_,B.hasTitleCloseButton_)};
Q_.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Q_.superClass_.disposeInternal.call(this)};
Q_.prototype.onButtonClick_=function(B){a:{for(B=B.target;B!=null&&B!=this.buttonEl_;){if(B.tagName=="BUTTON")break a;B=B.parentNode}B=null}if(B&&!B.disabled){B=B.name;var c=this.buttons_.get(B);this.dispatchEvent(new Z0(B,c))&&this.setVisible(!1)}};
Q_.prototype.onKey_=function(B){var c=!1,x=!1,P=this.buttons_,Y=B.target;if(B.type=="keydown")if(this.escapeToCancel_&&B.keyCode==27){var g=P&&P.cancelButton_;Y=Y.tagName=="SELECT"&&!Y.disabled;g&&!Y?(x=!0,c=P.get(g),c=this.dispatchEvent(new Z0(g,c))):Y||(c=!0)}else{if(B.keyCode==9&&B.shiftKey&&Y==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(q){}JB(this.resetBackwardTabWrap_,0,this)}}else if(B.keyCode==13){if(Y.tagName=="BUTTON"&&!Y.disabled)g=Y.name;
else if(Y==this.titleCloseEl_)E6n(this);else if(P){var k=P.defaultButton_,n;if(n=k)a:{n=hG("BUTTON",P.JSC$8221_element_);for(var b,d=0;b=n[d];d++)if(b.name==k||b.id==k){n=b;break a}n=null}Y=(Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="A")&&!Y.disabled;!n||n.disabled||Y||(g=k)}g&&P&&(x=!0,c=this.dispatchEvent(new Z0(g,String(P.get(g)))))}else Y!=this.titleCloseEl_||B.keyCode!=32&&B.key!=" "||E6n(this);if(c||x)B.stopPropagation(),B.preventDefault();c&&this.setVisible(!1)};
var Z0=function(B,c){this.type="dialogselect";this.key=B;this.caption=c};
_.sZ(Z0,_.qf);var LO=function(B){yH.call(this);B||Ud();this.cancelButton_=this.JSC$8221_element_=this.defaultButton_=null};
_.sZ(LO,yH);_.a=LO.prototype;_.a.clear=function(){yH.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.a.set=function(B,c,x,P){yH.prototype.set.call(this,B,c);x&&(this.defaultButton_=B);P&&(this.cancelButton_=B);return this};
_.a.addButton=function(B,c,x){return this.set(B.key,B.caption,c,x)};
_.a.render=function(){if(this.JSC$8221_element_){_.L6(this.JSC$8221_element_,X5O);var B=Ud(this.JSC$8221_element_);this.forEach(function(c,x){c=B.JSC$7374_createDom("BUTTON",{name:x},c);x==this.defaultButton_&&(c.className="goog-buttonset-default");this.JSC$8221_element_.appendChild(c)},this)}};
_.a.decorate=function(B){if(B&&B.nodeType==1){this.JSC$8221_element_=B;B=hG("BUTTON",this.JSC$8221_element_);for(var c,x,P,Y=0;c=B[Y];Y++)if(x=c.name||c.id,P=gFS(c)||c.value,x){var g=Y==0;this.set(x,P,g,c.name=="cancel");g&&_.rX(c,"goog-buttonset-default")}}};
_.a.getElement=function(){return this.JSC$8221_element_};
var NDm={key:"ok",caption:"OK"},IgS={key:"cancel",caption:"Cancel"},o63={key:"yes",caption:"Yes"},Qt5={key:"no",caption:"No"},FVZ={key:"save",caption:"Save"},v6m={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new LO).addButton(NDm,!0,!0),(new LO).addButton(NDm,!0).addButton(IgS,!1,!0),(new LO).addButton(o63,!0).addButton(Qt5,!1,!0),(new LO).addButton(o63).addButton(Qt5,!0).addButton(IgS,!1,!0),(new LO).addButton(v6m).addButton(FVZ).addButton(IgS,!0,!0));_.sZ(ezl,Q_);_.sZ(BDw,FC);var z2I=_.r2(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Ssy=_.r2(["//apis.google.com/js/rpc.js"]),kuX=_.PM(z2I),p5l=_.PM(Ssy),xRq=null;var vh=function(B,c){_.V4.call(this);this.JSC$8230_element_=B;B=_.ur(this.JSC$8230_element_)?this.JSC$8230_element_:this.JSC$8230_element_?this.JSC$8230_element_.body:null;this.isRtl_=!!B&&_.dQy(B);this.listenKey_=_.wX(this.JSC$8230_element_,_.nY?"DOMMouseScroll":"mousewheel",this,c)};
_.sZ(vh,_.V4);vh.prototype.handleEvent=function(B){var c=0,x=0,P=B.event_;P.type=="mousewheel"?(B=yRS(-P.wheelDelta),P.wheelDeltaX!==void 0?(c=yRS(-P.wheelDeltaX),x=yRS(-P.wheelDeltaY)):x=B):(B=P.detail,B>100?B=3:B<-100&&(B=-3),P.axis!==void 0&&P.axis===P.HORIZONTAL_AXIS?c=B:x=B);typeof this.maxDeltaX_==="number"&&(c=_.vi(c,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(x=_.vi(x,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(c=-c);c=new Guy(B,P,c,x);this.dispatchEvent(c)};
var yRS=function(B){return _.bJ&&(_.hal||TuA)&&B%40!=0?B:B/40};
vh.prototype.disposeInternal=function(){vh.superClass_.disposeInternal.call(this);Tl(this.listenKey_);this.listenKey_=null};
var Guy=function(B,c,x,P){_.CR.call(this,c);this.type="mousewheel";this.detail=B;this.deltaX=x;this.deltaY=P};
_.sZ(Guy,_.CR);_.pC=function(B){var c="instance_";if(B.instance_&&B.hasOwnProperty(c))return B.instance_;c=new B;return B.instance_=c};var stX;var MIt=_.r2(["https://about:blank"]),LVd=_.r2(['javascript:""']),Za9=_.r2(["about:blank"]);_.sZ(AG,ezl);_.a=AG.prototype;_.a.JSC$8238_url_="";_.a.JSC$8238_iframe_=null;_.a.iframeLoaded_=!1;_.a.loadedFired_=!1;_.a.callback_=function(){};
_.a.enterDocument=function(){AG.superClass_.enterDocument.call(this);agI(this.getBackgroundElement(),Ff(this))};
_.a.render=function(B){var c=this;AG.superClass_.render.call(this,B);this.useGapi_?Zty(this.iframeManager_,window).then(function(){return Hat(c)}).then(null,function(){c.callback_({action:"error"})}):fgy(this)};
var Hat=function(B){var c=B.JSC$8187_dom_.JSC$7374_createDom("div",["picker-dialog-content","picker-frame"]);_.iW(c,!1);B.getContentElement().appendChild(c);return HtZ(B.iframeManager_,c,function(x){var P=XsQ(x["iframe-command"]);switch(P.getCommand()){case 1:x=B.callback_;P=_.PA(P,cB,2);var Y="";switch(P.getStatus()){case 2:Y="cancel";break;case 1:Y="picked";break;case 3:Y="error"}var g=_.ch(P,Ig,2,_.xw(iTX));P=g.length===0?{action:Y}:twI(g,Y,_.PA(P,sy9,7));x.call(B,P);B.setVisible(!1);break;case 4:Oa4(B);
B.callback_({action:"loaded"});break;case 7:case 8:x=B.callback_;a:{Y=P.getCommand();g=_.PA(P,cB,2);switch(Y){case 7:Y="uploadScheduled";break;case 8:Y="uploadStateChange";break;default:P={};break a}P=_.ch(g,Ig,2,_.xw(iTX));if(P.length===0)P={action:Y};else{var k=_.PA(g,sy9,7);g=k&&_.OZ(k,1);k=btm(k);P=UOn(P,Y,g,k)}}x.call(B,P)}},B.JSC$8238_url_,B.targetId_,B.rpcToken_).then(function(x){B.JSC$8238_iframe_=x.getIframeEl();
ia9(B);_.iW(B.JSC$8238_iframe_.parentElement,!0);_.rX(B.getElement(),"picker-dialog");ARI(B);return x})},fgy=function(B){B.JSC$8238_iframe_=B.JSC$8187_dom_.JSC$7374_createDom("IFRAME",{id:B.targetId_,
name:B.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.EG(B.JSC$8238_iframe_,uP9(B));_.rX(B.getElement(),"picker-dialog");B.getContentElement().appendChild(B.JSC$8238_iframe_);Ff(B).listen(B.JSC$8238_iframe_,"load",function(){return void ia9(B)});
B.JSC$8238_iframe_.src=B.JSC$8238_url_;ARI(B)},rRn=function(B){DRy(B,(0,_.wf)(function(c){c.setAuthToken(this.targetId_,this.rpcToken_)},B))},ARI=function(B){var c=_.Hh(_.ZM(B.JSC$8238_url_),"title");
c&&B.setTitle(c)},uP9=function(B){return _.$Yw("Internet Explorer")>=7&&_.YI(B.JSC$8238_url_,"https")?_.PM(MIt):_.$V?_.PM(LVd):_.PM(Za9)},ia9=function(B){rRn(B);
B.iframeLoaded_=!0;B.JSC$8238_iframe_.tabIndex=0;B.isVisible()&&B.focus()};
AG.prototype.handleKeydown_=function(B){B.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),B.stopPropagation(),B.preventDefault())};
var DRy=function(B,c){var x=B.JSC$8236_gadgetsDomHelper_;Pk7(function(){c(x.getWindow().gadgets.rpc)},x)};
AG.prototype.setUrl=function(B){B=_.fS(new _.ih(B),"rpcService",this.targetId_);_.fS(B,"rpctoken",this.rpcToken_);_.az(B,"rpctoken="+this.rpcToken_);_.B_(B,"https");this.JSC$8238_url_=B.toString();this.JSC$8238_iframe_&&(this.JSC$8238_iframe_.src=this.JSC$8238_url_)};
var R23=function(B,c){B.callback_=c;DRy(B,(0,_.wf)(function(x){x.register(this.targetId_,(0,_.wf)(this.handlePickerAction_,this))},B))};
AG.prototype.handlePickerAction_=function(B){var c=B.action;c=="loaded"&&(this.loadedFired_=!0,e2t(this,new Rzl(this.isVisible())),Brd(this),Oa4(this),Ff(this).unlisten(this.JSC$8187_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8238_iframe_.tabIndex=0);c!="picked"&&c!="cancel"||this.setVisible(!1);this.callback_(B)};
var Brd=function(B){B.JSC$8238_appId_&&e2t(B,new rMA(B.JSC$8238_appId_,window.location.protocol+"//"+window.location.host))};
AG.prototype.setRelayUrl=function(B){DRy(this,(0,_.wf)(function(c){c.setRelayUrl(this.targetId_,B)},this))};
var e2t=function(B,c){B.useGapi_&&DOQ(c,B.iframeManager_).then(null,function(){B.callback_({action:"error"})});
DRy(B,(0,_.wf)(function(x){x.call(this.targetId_,"picker",null,c)},B))};
AG.prototype.resizePicker_=function(){var B=WM(this.JSC$8187_dom_.JSC$7372_document_)||window;if(_.Hh(_.ZM(this.JSC$8238_url_),"ignoreLimits")=="true")B=new _.nH(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Hh(_.ZM(this.JSC$8238_url_),"shadeDialog")=="true"){var c=JRS(this);c=q3y(c);var x=_.KH(B);B=x.width-80;x=x.height-40;c&&(B-=c.left?c.left:0,B-=c.right?c.right:0,x-=c.top?c.top:0,x-=c.bottom?c.bottom:0);B=new _.nH(B>0?B:0,x>0?x:0)}else(c=this.preferredDialogWidth_)?(c=Math.max(320,
Math.min(1051,c)),(x=this.preferredDialogHeight_)||(x=_.KH(B).height*.85),x=Math.max(480,Math.min(650,x))):(c=_.KH(B),x=c.width*.618,x=x<c.height?Math.round(Math.max(480,Math.min(650,x*.85))):Math.round(Math.max(480,Math.min(650,c.height*.85))),c=Math.round(x/.618)),B=_.KH(B),c=Math.min(c,Math.max(B.width,320)),x=Math.min(x,Math.max(B.height,480)),B=new _.nH(c,x);_.nFm(this.getContentElement(),B);this.reposition()};
AG.prototype.reposition=function(){if(_.Hh(_.ZM(this.JSC$8238_url_),"shadeDialog")=="true"){var B=KmS(this.getElement()),c=_.KH(this.JSC$8187_dom_.getWindow());B=Math.floor(c.width/2-B.width/2);c=JRS(this);if(c=q3y(c)){var x=c.left?c.left:0;x+=c.right?c.right:0;B=Math.floor(B-x/2)}B=B>0?B:0;c=jk(this.JSC$8187_dom_).y;z1(this.getElement(),B,c)}else AG.superClass_.reposition.call(this)};
AG.prototype.setVisible=function(B){if(B!=this.isVisible()&&this.autoSizeDialog_){var c=this.JSC$8187_dom_.getWindow();B?(this.resizePicker_(),Ff(this).listen(c,"resize",this.resizePicker_),this.iframeLoaded_||Ff(this).listen(c,"keydown",this.handleKeydown_)):(Ff(this).unlisten(c,"resize",this.resizePicker_),this.iframeLoaded_||Ff(this).unlisten(c,"keydown",this.handleKeydown_))}AG.superClass_.setVisible.call(this,B);e2t(this,new Rzl(B))};
AG.prototype.focus=function(){AG.superClass_.focus.call(this);if(this.JSC$8238_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8238_iframe_.focus()}catch(B){}};var Ei=function(B,c){c=c===void 0?AG:c;FC.call(this,B);this.pickerConstructor=c;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(B=window.location.origin)||(B=window.location.protocol+"//"+window.location.host);B&&this.urlParamMap_.set("origin",B);this.postProcessors_=[]};
_.w(Ei,BDw);Ei.prototype.JSC$8243_disposeOnHide_=!1;
Ei.prototype.build=function(){this.JSC$8144_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8144_appId_);this.getRelayUrl()||this.setRelayUrl(_.P_(_.az(_.Yf(_.ZM(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var B=new this.pickerConstructor(cKI(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);B.JSC$8220_disposeOnHide_=this.JSC$8243_disposeOnHide_;
B.JSC$8238_appId_=this.JSC$8144_appId_;B.loadedFired_&&Brd(B);R23(B,this.callback_);return B};
var xDy=function(B){B.urlParamMap_.set("multiselectEnabled","true");return B};
Ei.prototype.getHeight=function(){return this.dialogHeight_};
Ei.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
Ei.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
Ei.prototype.getWidth=function(){return this.dialogWidth_};
var PpS=function(B){B.JSC$8243_disposeOnHide_=void 0;return B};
Ei.prototype.setRelayUrl=function(B){this.urlParamMap_.set("parent",B);return this};
var Y40=function(B,c){B.urlParamMap_.set("selectButtonLabel",c);return B};
Ei.prototype.setSize=function(B,c){this.dialogWidth_=B;this.dialogHeight_=c;return this};
Ei.prototype.setTitle=function(B){this.urlParamMap_.set("title",B);return this};
var cKI=function(B){B.postProcessors_.length&&B.urlParamMap_.set("pp",JSON.stringify(B.postProcessors_));B.urlParamMap_.set("nav",kI4(B.nav_));var c=new _.ih(B.getBaseUrl());B.urlParamMap_.forEach(function(x,P){_.fS(c,P,x)});
return c};var sHd=function(B,c){B.name!==void 0?(this.name=B.name,this.code=at4[B.name]):(this.code=B=B.code,this.name=gu0(B));_.B$.call(this,J1$("%s %s",this.name,c))};
_.sZ(sHd,_.B$);var gu0=function(B){var c=_.wW.findKey(at4,function(x){return B==x});
if(c===void 0)throw Error("mb`"+B);return c},H_={},at4=(H_.AbortError=3,H_.EncodingError=5,H_.InvalidModificationError=9,H_.InvalidStateError=7,H_.NotFoundError=1,H_.NotReadableError=4,H_.NoModificationAllowedError=6,H_.PathExistsError=12,H_.QuotaExceededError=10,H_.SecurityError=2,H_.SyntaxError=8,H_.TypeMismatchError=11,H_);var ppm=function(B,c){_.qf.call(this,B.type,c);this.event_=B};
_.sZ(ppm,_.qf);var kw3=function(B,c,x){x===void 0&&(x=B.size);return B.slice?B.slice(c,x):null};var n6O=new WeakMap,$Ro=function(B,c){B=[B];for(var x=c.length-1;x>=0;--x)B.push(typeof c[x],c[x]);return B.join("\v")};_.KVw(function(){if(!_.xI.Blob)return!1;var B=new Uint8Array(100);try{var c=new Blob([B])}catch(x){return!1}return c.size!=100?!1:!0});
var Xpd=_.KVw(function(){if(!_.xI.Blob)return!1;var B=new Uint8Array(100);try{var c=new Blob([B])}catch(x){return!1}return kw3(c,0,1)===null?!1:!0});_.xI.U3bHHf!=null||(_.xI.U3bHHf=0);_.xI.U3bHHf++;var jtY={};var RD=void 0;var dRw=Symbol("ub");var E6o=BR("WizInjectionContext_Dispatcher");var Y6=Symbol("vb");var Ka=function(){},ZEA=Symbol("wb"),hR=function(B){this.props=B;
this.__unmounted=!1};
hR.prototype.didPatch=function(){};
hR.prototype.didMount=function(){};
hR.prototype.didUnmount=function(){};
hR.prototype.didUpdate=function(){};var NDq=BR("WizInjectionContext_RootElement");var JRA=BR("WizInjectionContext_AppContext"),IgA=BR("WizInjectionContext_ModelRootElement"),WVC=BR("WizInjectionContext_RendererData"),lg7=BR("WizInjectionContext_InjectingConstructor"),w5q=BR("WizInjectionContext_AsyncDeps"),Oax={};var Ss$=!1;var LVO={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:KdI,enableLazyTsx:j4$,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:bTl,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.xD=Object.assign({},{attributes:{},handleError:function(B){throw B;}},LVO);var $DS=Symbol("Ab"),Eux=Symbol("Bb"),Fc7=Symbol("Cb"),ouI=Symbol("Db"),Lcx=MQ(function(B){return PR(B)&&$DS in B});var DR$=Symbol("Eb"),fO={},ARQ=(fO[DR$]=!0,fO.debugName="[component]",fO.getComponentStack=function(){for(var B=[],c=this;c;)rRo(c)&&B.push(c.debugName),c=c.parent;return B},fO.registerSignal=function(){},fO.registerEffect=function(){},fO);var YD=null,gb=!1,PpA=1,kD=Symbol("Fb"),Ux={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var iM=Symbol("Gb"),Ar=Symbol("Hb"),pt=Symbol("Ib"),$DA=Object.assign({},Ux,{value:iM,dirty:!0,error:null,equal:R2l,kind:"computed",producerMustRecompute:function(B){return B.value===iM||B.value===Ar},
producerRecomputeValue:function(B){if(B.value===Ar)throw Error("da");var c=B.value;B.value=Ar;var x=ppq(B),P=!1;try{var Y=B.computation();aO(null);P=c!==iM&&c!==pt&&Y!==pt&&B.equal(c,Y)}catch(g){Y=pt,B.error=g}finally{kwl(B,x)}P?B.value=c:(B.value=Y,B.version++)}});var jHo=function(){throw Error();};var dD7=null,bUd=Object.assign({},Ux,{equal:R2l,value:void 0,kind:"signal"});Object.assign({},Ux,{value:iM,dirty:!0,error:null,equal:R2l,kind:"linkedSignal",producerMustRecompute:function(B){return B.value===iM||B.value===Ar},
producerRecomputeValue:function(B){if(B.value===Ar)throw Error("da");var c=B.value;B.value=Ar;var x=ppq(B);try{var P=B.source();var Y=B.computation(P,c===iM||c===pt?void 0:{source:B.sourceValue,value:c});B.sourceValue=P}catch(g){Y=pt,B.error=g}finally{kwl(B,x)}c!==iM&&Y!==pt&&B.equal(c,Y)?B.value=c:(B.value=Y,B.version++)}});Object.assign({},Ux,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(B){B.schedule!==null&&B.schedule(B.ref)},
hasRun:!1,cleanupFn:function(){}});var CpQ=Symbol("Jb"),bP=Symbol("Kb");var Kt=Array.isArray;var JKw;var nuS={},lt7=ItY(Object.assign({},{consumerAllowSignalWrites:!0},nuS)),Us=ItY(Object.assign({},{consumerAllowSignalWrites:!0},nuS));var Ct=0,hM=!1,uM=function(){this.queue=new Set};
uM.prototype.remove=function(B){this.queue.delete(B)};
uM.prototype.clear=function(){this.queue.clear()};
var bUZ=function(){uM.apply(this,arguments)};
_.w(bUZ,uM);bUZ.prototype.schedule=function(B){this.queue.add(B)};
bUZ.prototype.flush=function(){if(this.queue.size){hM=!0;try{for(var B=_.p(this.queue),c=B.next();!c.done;c=B.next()){var x=c.value;this.queue.delete(x);try{x.run()}catch(P){Kcd(P)}}}finally{hM=!1}}};
var jHn=new bUZ,D0=function(){uM.apply(this,arguments)};
_.w(D0,uM);var UDF=function(){D0.apply(this,arguments)};
_.w(UDF,D0);UDF.prototype.schedule=function(B){B.hasRun?this.queue.add(B):B.run()};
UDF.prototype.flush=function(){if(this.queue.size)if(_.xD.flushRenderEffectsDuringRender){var B=this.queue;this.queue=new Set;ZUC(B)}else ZUC(this.queue)};
var OUO=new UDF,dD5=function(){D0.apply(this,arguments)};
_.w(dD5,D0);dD5.prototype.schedule=function(B){var c=this;return _.X(function(x){if(x.nextAddress==1)return B.hasRun?x.jumpTo(2):_.K(x,Promise.resolve(),3);if(x.nextAddress!=2)return B.run(),x.return();c.queue.add(B);_.Kq(x)})};
dD5.prototype.flush=function(){var B=this;return _.X(function(c){if(c.nextAddress==1)return B.queue.size?_.K(c,Promise.resolve(),2):c.return();ZUC(B.queue);_.Kq(c)})};
var vuQ=new dD5,q49=function(){D0.apply(this,arguments)};
_.w(q49,D0);q49.prototype.schedule=function(B){this.queue.add(B)};
q49.prototype.flush=function(){this.queue.size&&ZUC(this.queue)};
var QHO=new q49,Gwd=[OUO,jHn,QHO,vuQ],CpI=[OUO,QHO,vuQ],S47=[];dD7=function(){MRx();for(var B=_.p(S47),c=B.next();!c.done;c=B.next())c=c.value,c()};
var Kcd=P$;var VG=Symbol("Pb");var TI=null,iUx,AKC=null,u47;var rB={},h1t=Object.assign({},Ux,(rB[$DS]=!0,rB.effectType=Eux,rB.isResettableContext=!0,rB.hasRun=!1,rB.effectFn=null,rB.consumerIsAlwaysLive=!0,rB.consumerAllowSignalWrites=!0,rB.consumerMarkedDirty=z1x,rB.kind="effect",rB.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(gb)throw Error("Qb");this.dirty=!1;if(!this.hasRun||Y47(this)){this.hasRun=!0;tIx(this);var B=_.e$(this),c=ppq(this);HaX("effectRun",this.debugName);try{NO(this.effectFn,this.componentStack)}catch(x){throw _.xD.enableContextBasedComponentStacks&&
wb(x),x;}finally{fg$("effectRun",this.debugName),kwl(this,c),_.e$(B)}}}},rB.componentStack=void 0,rB.debugName="[effect]",rB[Symbol.dispose]=function(){e2X(this);
if(sx(this))for(var B=0;B<this.producerNode.length;B++)BrO(this.producerNode[B],this.producerIndexOfThis[B]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);B=_.p(CpI);for(var c=B.next();!c.done;c=B.next())c.value.remove(this);VIw(this)},rB));var R1$=Object.assign({},h1t,{effectType:Fc7});var e17=Symbol("Rb");var BK7=Object.assign({},h1t,{effectType:Eux});var F1l=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 Pro={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},x6l=
{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}]}},wGA={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},gr7=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],a$Y={"*":{async:1,dir:0,loading:2,target:3}};var mDd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Rz={},pAx=(Rz[1]=null,Rz[2]=function(B,c){return c instanceof Js?lV(c):m7.toString()},Rz[3]=function(B,c){return jT(c)?_.UG(c):mDd.test(String(c))?String(c):m7.toString()},Rz[4]=function(B,c){return c instanceof p6?_.X_(c):m7.toString()},Rz[5]=function(B,c){return String(c)},Rz[7]=null,Rz[8]=null,Rz[10]=null,Rz);var AXX=Symbol("Tb");var yQA=function(B){var c=Tr3,x=B,P="",Y="",g=1;B<0&&(B=-B);if(B===Infinity)B=(Infinity*Math.sign(x)).toString();else{for(var k=0;k<VRW.length;k++){var n=VRW[k];g=c[n];if(B>=g||g<=1&&B>.1*g){P=n;break}}P?(P+="B",Y=" "):g=1;B=Math.round(x/g*10)/10+Y+P}return B},VRW="Y Z E P T G M K  m u n".split(" "),Tr3={"":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};_.tR5=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 D6X={};RegExp.prototype.hasOwnProperty("sticky");var SEl=function(B){B=String(B);for(var c=function(P,Y,g){for(var k=Math.min(Y.length-g,P.length),n=0;n<k;n++){var b=Y[g+n];if(P[n]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},x=0;(x=B.indexOf("<",x))!=-1;){if(c("\x3c/script",B,x)||c("\x3c!--",B,x))return"zSoyz";
x+=1}return B},u1C=function(B){return B!=null&&B.contentKind===D6X};var yG={default:"__default"};var jxq=Object.prototype.hasOwnProperty;$6O.prototype=Object.create(null);var D6=qEX();var rb=null;var W1o=function(B){this.created=[];this.deleted=[];this.node=B};var l$d=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var B=this,c=B;B;)c=B,B=B.parentNode;return c};var hUY=function(B,c){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=B;this.key=c;this.text=void 0};var Zc=null,HR=null,MO=null,iP=null,wAY=[],tlA=TKl,uP=[],Dc=[],iLX=function(B){return Ero(function(c,x,P){MO=HR=c;HR=null;x(P);Vld(null);HR=MO;MO=MO.parentNode;return c},B)}(),f9o=function(B){return Ero(function(c,x,P){var Y={nextSibling:c};
HR=Y;x(P);MO&&Vld(c.nextSibling);return Y===HR?null:HR},B)}();var RO=[],orC=0;var ew=new $6O;var WH=new $6O;var wpS=qEX(),zUO=wpS[yG.default],yjw=wpS.style,vrq=["focusin","focusout"];var TUd=function(){},$aC=function(){},I6$=function(){},t37=function(){};var P5=Symbol("$b");var ipC,f$C=Hpo;var $6=Symbol("ac");var NUd=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(" ")),
woC=new Set(["a","font","script","style","title"]);var dD={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var qR=null,Ca=function(B,c){hR.call(this,B);var x=this;this.functionComponent=c;this.hooks=[];this.hookCounter=0;this.disposeEffects=Ex(function(P){x.effectContext=P;_.lP(function(){jG$(x,x.el)})},_.xD.alwaysTrackContexts||!!RD)};
_.w(Ca,hR);Ca.prototype.render=function(B){var c=qR;qR=this;this.hookCounter=0;var x=aO(Us),P=_.e$(this.effectContext);try{return HaX("render",this.componentName),this.functionComponent(B)}finally{fg$("render",this.componentName),_.e$(P),aO(x),qR=c}};
_.AJ.Object.defineProperties(Ca.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return HUo(this.functionComponent)}}});var JPQ=Symbol("oc"),hqO=function(B,c,x){this.kind=B;this.props=c;this.children=x};
_.w(hqO,Ka);hqO.prototype.render=function(){return Cbx(this.kind,this.props,this.children)};
hqO.prototype.getChildren=function(){return this.children};var l67=[];jHo=function(B){throw Error("tb`"+B.debugName);};
(function(){var B=rb;rb=function(c){B==null||B(c);E47(c)}})();var Nrd=new WeakMap,ItQ=0;var JKW=void 0,Wc9={},lt5=new WeakMap,Gbo={getComponent:function(B){if(B.hasAttribute("ng-version"))return Wc9;if(!B.__wizComponent)return null;B=B.__wizComponent;lt5.set(B.propsAndState,B);return B.propsAndState},
getDirectiveMetadata:function(B){if(B===Wc9)return{framework:"wiz",name:"<Root>",props:{}};B=lt5.get(B);if(!B)throw Error("pc");return{framework:"wiz",name:B.name,props:Object.fromEntries(Object.keys(B.props).map(function(c){return[c,c]}))}},
"\u0275setProfiler":function(B){var c;(c=JKW)==null||c();JKW=yK7(function(){B(2)})},
getInjector:function(B){return B.__wizComponent},
"\u0275getSignalGraph":function(B){var c;B=(c=B.effects)!=null?c:[];var x=OEC(B),P=Array.from(x.keys());c=[];B=[];for(var Y=new Map,g=0;g<P.length;g++)Y.set(P[g],g);x=_.p(x.entries());for(P=x.next();!P.done;P=x.next()){g=_.p(P.value);P=g.next().value;var k=g.next().value;g=P;P=Y.get(g);var n=Nrd.get(g);n||(n=ItQ.toString(),Nrd.set(g,n),ItQ++);var b=void 0,d=(b=g.debugName)!=null?b:"";b=d.startsWith("[signal]")?d:d.replace(/@.+/,"");g.kind==="computed"?c.push({label:b,value:g.value,kind:g.kind,epoch:g.version,
debuggableFn:g.computation,id:n}):g.kind==="signal"?c.push({label:b,value:g.value,kind:g.kind,epoch:g.version,id:n}):g.kind==="effect"?(d=void 0,c.push({label:b,kind:g.kind,epoch:g.version,debuggableFn:(d=g.effectFn)!=null?d:void 0,id:n})):c.push({label:b,kind:g.kind,epoch:g.version,id:n});g=_.p(k);for(k=g.next();!k.done;k=g.next())B.push({consumer:P,producer:Y.get(k.value)})}return{nodes:c,edges:B}},
isSignal:function(B){return typeof B==="function"&&B[kD]!==void 0}};_.m.debugName="RlDudd";var o4q={nonNullableCondIsNull:function(){return Error("sc")}};var yPw=function(){this.map=new Map};
yPw.prototype.push=function(B,c){var x=this.map;x.has(B)&&(this.multi||(this.multi=new Map),this.multi.set(c,x.get(B)));x.set(B,c)};
yPw.prototype.pop=function(B){var c=this.map,x=c.get(B),P;x!==void 0&&((P=this.multi)==null?0:P.has(x))?(c.set(B,this.multi.get(x)),this.multi.delete(x)):c.delete(B);return x};_.mV.debugName="nsTGHd";_.Tu.debugName="tbhMcf";_.Va.debugName="zyMFzb";_.tR.debugName="vI1rtf";_.wD={OUT_OF_ORDER_HOOK_CALL:function(B){return Error("tc`"+B)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(B,c){return Error("xc`"+((c===void 0?0:c)?"IDOM":"Reactive")+"`"+B)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(B,c){return Error("yc`"+B+"`"+c)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(B){return Error("zc`"+B)},
USE_ELEMENT_NOT_ASSIGNED:function(B){return Error("Ac`"+String(B))}};ipC=mad;var eqA=Symbol("Bc");bEA({beforeRender:function(B){var c=_.e$(B.effectContext);try{var x;((x=B.__syncEffects)==null?0:x.length)&&cJ$(B.__syncEffects)}finally{_.e$(c)}},
didPatch:function(B){var c=_.e$(B.effectContext);try{var x;((x=B.__syncEffects)==null?0:x.length)&&cJ$(B.__syncEffects)}finally{_.e$(c)}},
didUnmount:function(B){var c;((c=B.hooks)==null?0:c.length)&&B.hooks.forEach(BYY)}});var Eu4,OUd,ouF;Eu4=_.xI.window;_.Qa=(Eu4==null?void 0:(OUd=Eu4.yt)==null?void 0:OUd.config_)||(Eu4==null?void 0:(ouF=Eu4.ytcfg)==null?void 0:ouF.data_)||{};_.rr("yt.config_",_.Qa);var QHd={},aF7=[];_.mc=function(B){var c=_.ts.apply(1,arguments);var x=Error.call(this,B);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.args=[].concat(_.wq(c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(_.mc,Error);var gf$=function(B,c,x){this.actionName=B;this.optionalAction=c===void 0?!1:c;this.args=x===void 0?null:x;this.returnValue=[]};_.A=function(B){this.name=B};_.zr=new _.A("signalAction");var UMl=/^[\w.]*$/,XXO={q:!0,search_query:!0},kKX=String(pXC);var em;em=Symbol("Cc");_.BL=function(B){this.name=B};
_.BL.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dMx=function(B){this.key=B},hh7=function(B){this.deferredKey=B},C4l=function(){var B=this;
this.providers=new Map;this.JSC$8463_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(B.providers)}}};
C4l.prototype.addProvider=function(B){this.providers.set(B.provide,B);var c=this.JSC$8463_deferred.get(B.provide);if(c)try{c.resolver(this.resolve(B.provide))}catch(x){c.rejector(x)}};
C4l.prototype.resolve=function(B){return B instanceof hh7?Fc5(this,B):B instanceof dMx?vuI(this,B.key,[],!0):vuI(this,B,[])};
var Fc5=function(B,c){c=c.deferredKey;if(B.JSC$8463_deferred.has(c))return B.JSC$8463_deferred.get(c).promise;var x={};x.promise=new Promise(function(P,Y){x.resolver=P;x.rejector=Y});
B.JSC$8463_deferred.set(c,x);return x.promise},vuI=function(B,c,x,P){P=P===void 0?!1:P;
if(x.indexOf(c)>-1)throw Error("Dc`"+c);if(B.cachedValues.has(c))return B.cachedValues.get(c);if(!B.providers.has(c)){if(P)return;throw Error("Ec`"+c);}P=B.providers.get(c);x.push(c);if(P.useValue!==void 0)var Y=P.useValue;else if(P.useFactory)Y=P[em]?z14(B,P[em],x):[],Y=P.useFactory.apply(P,_.wq(Y));else if(P.useClass){Y=P.useClass;var g=Y[em]?z14(B,Y[em],x):[];Y=new (Function.prototype.bind.apply(Y,[null].concat(_.wq(g))))}else throw Error("Fc`"+c);x.pop();P.skipCache||B.cachedValues.set(c,Y);return Y},
z14=function(B,c,x){return c?c.map(function(P){return P instanceof dMx?vuI(B,P.key,x,!0):vuI(B,P,x)}):[]};var qkC;var S3=new _.BL("ENDPOINT_HANDLER_TOKEN");_.yp=new _.A("urlEndpoint");var S40=function(){this.data=[];this.cachedPackedInt52=-1};
S40.prototype.set=function(B,c){c=c===void 0?!0:c;0<=B&&B<52&&Number.isInteger(B)&&this.data[B]!==c&&(this.data[B]=c,this.cachedPackedInt52=-1)};
S40.prototype.get=function(B){return!!this.data[B]};
var yK0=function(B){B.cachedPackedInt52===-1&&(B.cachedPackedInt52=B.data.reduce(function(c,x,P){return c+(x?Math.pow(2,P):0)},0));
return B.cachedPackedInt52};var Q1l=function(B){var c=GwZ;B=B===void 0?_.Gu("yt.ads.biscotti.lastId_")||"":B;var x=Object,P=x.assign,Y={};Y.dt=y0d;Y.flash="0";a:{try{var g=c.JSC$8469_win_.top.location.href}catch(kI){g=2;break a}g=g?g===c.doc_.location.href?0:1:2}Y=(Y.frm=g,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();var k=k===void 0?Mf:k;try{var n=k.history.length}catch(kI){n=0}Y.u_his=n;var b;Y.u_h=(b=Mf.screen)==null?void 0:b.height;var d;Y.u_w=(d=Mf.screen)==null?void 0:d.width;var q;Y.u_ah=(q=Mf.screen)==null?void 0:q.availHeight;
var C;Y.u_aw=(C=Mf.screen)==null?void 0:C.availWidth;var h;Y.u_cd=(h=Mf.screen)==null?void 0:h.colorDepth}catch(kI){}n=c.JSC$8469_win_;try{var V=n.screenX;var N=n.screenY}catch(kI){}try{var l=n.outerWidth;var E=n.outerHeight}catch(kI){}try{var S=n.innerWidth;var M=n.innerHeight}catch(kI){}try{var f=n.screenLeft;var Z=n.screenTop}catch(kI){}try{S=n.innerWidth,M=n.innerHeight}catch(kI){}try{var u=n.screen.availWidth;var e=n.screen.availTop}catch(kI){}V=[f,Z,V,N,u,e,l,E,S,M];N=d8o(!1,c.JSC$8469_win_.top);
l={};var px=px===void 0?_.xI:px;E=new S40;"SVGElement"in px&&"createElementNS"in px.document&&E.set(0);S=Q7F();S["allow-top-navigation-by-user-activation"]&&E.set(1);S["allow-popups-to-escape-sandbox"]&&E.set(2);px.crypto&&px.crypto.subtle&&E.set(3);"TextDecoder"in px&&"TextEncoder"in px&&E.set(4);px=yK0(E);c=(l.bc=px,l.bih=N.height,l.biw=N.width,l.brdim=V.join(),l.vis=xHQ(c.doc_),l.wgl=!!Mf.WebGLRenderingContext,l);x=P.call(x,Y,c);x.ca_type="image";B&&(x.bid=B);return x},GwZ=new function(){var B=
window.document;
this.JSC$8469_win_=window;this.doc_=B};
_.rr("yt.ads_.signals_.getAdSignalsString",function(B){return $M7(Q1l(B))});_.gQ();navigator.userAgent.indexOf(" (CrKey ");var wXQ="XMLHttpRequest"in _.xI?function(){return new XMLHttpRequest}:null;var MR4="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Lc4=[].concat(_.wq(MR4),["client_dev_set_cookie"]);var oWI={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"},JJA="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(_.wq(MR4)),Zlo=!1,lFw=_.FeX,GKx=OlQ;var bLq=[{messageFn:function(B){return"Cannot read property '"+B.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(B){return"Cannot call '"+B.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(B){return B.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var ZU9={messageWeights:[],callbackWeights:[{callback:AJo,weight:500},{callback:upI,weight:500}]};var HUn=function(){this.callbackWeights=[];this.messageWeights=[]},fty,n0X=function(){if(!fty){var B=fty=new HUn;
B.messageWeights.length=0;B.callbackWeights.length=0;Vhd(B,ZU9)}return fty},Vhd=function(B,c){c.messageWeights&&B.messageWeights.push.apply(B.messageWeights,c.messageWeights);
c.callbackWeights&&B.callbackWeights.push.apply(B.callbackWeights,c.callbackWeights)};_.sZ(_.KU,_.tG);_.KU.prototype.subscribe=function(B,c,x){var P=this.topics_[B];P||(P=this.topics_[B]=[]);var Y=this.JSC$8493_key_;this.subscriptions_[Y]=B;this.subscriptions_[Y+1]=c;this.subscriptions_[Y+2]=x;this.JSC$8493_key_=Y+3;P.push(Y);return Y};
var iU4=function(B){var c=d_Q,x=!1,P=c.subscribe("handleError",function(Y){x||(x=!0,this.unsubscribeByKey(P),B.apply(void 0,arguments))},c)};
_.KU.prototype.unsubscribe=function(B,c,x){if(B=this.topics_[B]){var P=this.subscriptions_;if(B=B.find(function(Y){return P[Y+1]==c&&P[Y+2]==x}))return this.unsubscribeByKey(B)}return!1};
_.KU.prototype.unsubscribeByKey=function(B){var c=this.subscriptions_[B];if(c){var x=this.topics_[c];this.publishDepth_!=0?(this.pendingKeys_.push(B),this.subscriptions_[B+1]=function(){}):(x&&_.Ao(x,B),delete this.subscriptions_[B],delete this.subscriptions_[B+1],delete this.subscriptions_[B+2])}return!!c};
_.KU.prototype.publish=function(B,c){var x=this.topics_[B];if(x){var P=Array(arguments.length-1),Y=arguments.length,g;for(g=1;g<Y;g++)P[g-1]=arguments[g];if(this.async_)for(g=0;g<x.length;g++)Y=x[g],AK9(this.subscriptions_[Y+1],this.subscriptions_[Y+2],P);else{this.publishDepth_++;try{for(g=0,Y=x.length;g<Y&&!this.isDisposed();g++){var k=x[g];this.subscriptions_[k+1].apply(this.subscriptions_[k+2],P)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;x=this.pendingKeys_.pop();)this.unsubscribeByKey(x)}}return g!=
0}return!1};
var AK9=function(B,c,x){_.wa(function(){B.apply(c,x)})};
_.KU.prototype.clear=function(B){if(B){var c=this.topics_[B];c&&(c.forEach(this.unsubscribeByKey,this),delete this.topics_[B])}else this.subscriptions_.length=0,this.topics_={}};
_.KU.prototype.getCount=function(B){if(B){var c=this.topics_[B];return c?c.length:0}B=0;for(c in this.topics_)B+=this.getCount(c);return B};
_.KU.prototype.disposeInternal=function(){_.KU.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var d_Q=new _.KU;var gK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(gK,_.zL);gK.prototype.getColdHashData=function(){return _.OZ(this,3)};
gK.prototype.getHotHashData=function(){return _.OZ(this,5)};
gK.prototype.setHotHashData=function(B){return _.dW(this,5,B)};var kqQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kqQ,_.zL);var v9I=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(v9I,_.zL);_.a=v9I.prototype;_.a.getDeviceId=function(){return _.OZ(this,6)};
_.a.getExperimentIds=function(B){var c=_.TL(this,9,_.wl,3,!0);vy(c,B);return c[B]};
_.a.getPlayerType=function(){return _.og(this,36)};
_.a.setHomeGroupInfo=function(B){return _.Pa(this,81,B)};
_.a.clearLocationPlayabilityToken=function(){return _.ax(this,89)};var Ub=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Ub,_.zL);Ub.prototype.setKey=function(B){return _.dW(this,1,B)};
Ub.prototype.getValue=function(){return F8(this,2,SmQ)};
var SmQ=[2,3,4,5,6];var u45=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(u45,_.zL);u45.prototype.setTrackingParams=function(B){return _.ax(this,1,_.Fd(B,!1))};var zL$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(zL$,_.zL);var nCl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(nCl,_.zL);nCl.prototype.getExperimentIds=function(B){var c=_.TL(this,5,_.NN,3,!0);vy(c,B);return c[B]};var hP=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(hP,_.zL);hP.prototype.getToken=function(){return _.Uq(this,2)};
hP.prototype.setToken=function(B){return _.dW(this,2,B)};var qa=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(qa,_.zL);qa.prototype.setSafetyMode=function(B){return _.Yr(this,5,B)};var j3=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(j3,_.zL);j3.prototype.setClient=function(B){return _.Pa(this,1,B)};var $9w={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 Xr7;_.Wq=function(){var B=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.xI.addEventListener("beforeinstallprompt",function(c){c.preventDefault();B.deferredInstallPrompt=c});
_.xI.addEventListener("appinstalled",function(){B.appInstalledEventFired=!0},{once:!0})};
Xr7=function(){if(!_.xI.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.xI.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.xI.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.xI.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.xI.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(B){return"WEB_DISPLAY_MODE_UNKNOWN"}};var jJ$=function(){this.syncHeaders=!0},U9q=function(B){var c={},x=[];
"USER_SESSION_ID"in _.Qa&&x.push({key:"u",value:_.v5("USER_SESSION_ID")});if(x=_.zlC(x))c.Authorization=x,x=B=B==null?void 0:B.sessionIndex,x===void 0&&(x=Number(_.v5("SESSION_INDEX",0)),x=isNaN(x)?0:x),_.T("voice_search_auth_header_removal")||(c["X-Goog-AuthUser"]=x.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Qa||(c["X-Origin"]=window.location.origin),B===void 0&&"DELEGATED_SESSION_ID"in _.Qa&&(c["X-Goog-PageId"]=_.v5("DELEGATED_SESSION_ID"));return c};var DDy={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var cL=_.Gu("ytglobal.prefsUserPrefsPrefs_")||{},rK9;_.rr("ytglobal.prefsUserPrefsPrefs_",cL);_.xb=function(){this.cookieName=_.v5("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.v5("ALT_PREF_COOKIE_DOMAIN","youtube.com");var B=_.U4.get(this.cookieName,void 0);B&&this.parse(B)};
_.CW=function(){rK9||(rK9=new _.xb);return rK9};
_.xb.prototype.get=function(B,c){R1y(B);e10(B);B=cL[B]!==void 0?cL[B].toString():null;return B!=null?B:c?c:""};
_.xb.prototype.set=function(B,c){R1y(B);e10(B);if(c==null)throw Error("Ic");cL[B]=c.toString()};
_.xb.prototype.getFlag=function(B){return!!((BK0("f"+(Math.floor(B/31)+1))||0)&1<<B%31)};
_.hi=function(B,c,x){B="f"+(Math.floor(c/31)+1);c=1<<c%31;var P=BK0(B)||0;P=x?P|c:P&~c;P===0?delete cL[B]:(x=P.toString(16),cL[B]=x.toString())};
_.xb.prototype.remove=function(B){R1y(B);e10(B);delete cL[B]};
_.xb.prototype.save=function(){var B=!0;_.T("web_secure_pref_cookie_killswitch")&&(B=!1);_.dr(this.cookieName,this.dump(),63072E3,this.cookieDomain,B)};
_.xb.prototype.clear=function(){_.wW.clear(cL)};
_.xb.prototype.dump=function(){var B=[],c;for(c in cL)cL.hasOwnProperty(c)&&B.push(c+"="+encodeURIComponent(String(cL[c])));return B.join("&")};
var e10=function(B){if(/^f([1-9][0-9]*)$/.test(B))throw Error("Jc`"+B);},R1y=function(B){if(!/^\w+$/.test(B))throw Error("Kc`"+B);
},BK0=function(B){B=cL[B]!==void 0?cL[B].toString():null;
return B!=null&&/^[A-Fa-f0-9]+$/.test(B)?parseInt(B,16):null};
_.xb.prototype.parse=function(B){B=decodeURIComponent(B).split("&");for(var c=0;c<B.length;c++){var x=B[c].split("="),P=x[0];(x=x[1])&&(cL[P]=x.toString())}};var YnQ={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"},bW$={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},K5d={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},gdx={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var gV;_.PL=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Vp=function(B,c,x){return B.addJob(c,0,x)};
_.PL.prototype.addLowPriorityJob=function(B,c){return this.addJob(B,1,c)};
_.C3=function(B,c,x){return B.addJob(c,2,x)};
_.Nv=function(B,c,x){return B.addJob(c,3,x)};
_.s9=function(B,c,x){return B.addJob(c,4,x)};
gV=function(B){var c=_.Gu("yt.scheduler.instance.addImmediateJob");c?c(B):B()};
_.PL.prototype.debounce=function(B,c,x){var P=this,Y=0,g=function(){Y&&P.cancelJob(Y);Y=P.addJob(B,c,x);P.cancelDebouncedJobMap.set(g,Y)};
return g};
_.PL.prototype.cancelThrottle=function(B){(B=this.cancelThrottledJobMap.get(B))&&B()};var Yb=function(){_.PL.apply(this,arguments)};
_.w(Yb,_.PL);_.EB=function(){Yb.instance||(Yb.instance=new Yb);return Yb.instance};
Yb.prototype.addJob=function(B,c,x){x!==void 0&&Number.isNaN(Number(x))&&(x=void 0);var P=_.Gu("yt.scheduler.instance.addJob");return P?P(B,c,x):x===void 0?(B(),NaN):_.pU(B,x||0)};
Yb.prototype.cancelJob=function(B){if(B===void 0||!Number.isNaN(Number(B))){var c=_.Gu("yt.scheduler.instance.cancelJob");c?c(B):_.X4(B)}};
Yb.prototype.start=function(){var B=_.Gu("yt.scheduler.instance.start");B&&B()};
Yb.prototype.pause=function(){var B=_.Gu("yt.scheduler.instance.pause");B&&B()};
_.EE=_.EB();_.Tw.prototype.set=function(B,c){c===void 0?this.mechanism.remove(B):this.mechanism.set(B,(0,_.lK)(c))};
_.Tw.prototype.get=function(B){try{var c=this.mechanism.get(B)}catch(x){return}if(c!==null)try{return JSON.parse(c)}catch(x){throw"Storage: Invalid value was encountered";}};
_.Tw.prototype.remove=function(B){this.mechanism.remove(B)};var aX=function(B){this.mechanism=B};
_.sZ(aX,_.Tw);var cjt=function(B){this.data=B},x63=function(B){return B===void 0||B instanceof cjt?B:new cjt(B)};
aX.prototype.set=function(B,c){aX.superClass_.set.call(this,B,x63(c))};
aX.prototype.getWrapper=function(B){B=aX.superClass_.get.call(this,B);if(B===void 0||B instanceof Object)return B;throw"Storage: Invalid value was encountered";};
aX.prototype.get=function(B){if(B=this.getWrapper(B)){if(B=B.data,B===void 0)throw"Storage: Invalid value was encountered";}else B=void 0;return B};_.sZ(VY,aX);_.Prn=function(B){var c=B.creation;B=B.expiration;return!!B&&B<_.gQ()||!!c&&c>_.gQ()};
VY.prototype.set=function(B,c,x){if(c=x63(c)){if(x){if(x<_.gQ()){VY.prototype.remove.call(this,B);return}c.expiration=x}c.creation=_.gQ()}VY.superClass_.set.call(this,B,c)};
VY.prototype.getWrapper=function(B,c){var x=VY.superClass_.getWrapper.call(this,B);if(x)if(!c&&_.Prn(x))VY.prototype.remove.call(this,B);else return x};var gR=function(){};
gR.prototype.next=function(){return sh};
var sh={done:!0,value:void 0},pm=function(B){return{value:B,done:!1}};
gR.prototype.__iterator__=function(){return this};
_.YEW=function(B){if(B instanceof gR)return B;if(typeof B.__iterator__=="function")return B.__iterator__(!1);if(_.R7(B)){var c=0,x=new gR;x.next=function(){for(;;){if(c>=B.length)return sh;if(c in B)return pm(B[c++]);c++}};
return x}throw Error("Lc");};var a$Q=function(B){if(B instanceof kb||B instanceof XH||B instanceof $b)return B;if(typeof B.next=="function")return new kb(function(){return B});
if(typeof B[Symbol.iterator]=="function")return new kb(function(){return B[Symbol.iterator]()});
if(typeof B.__iterator__=="function")return new kb(function(){return B.__iterator__()});
throw Error("Mc");},kb=function(B){this.func_=B};
kb.prototype.__iterator__=function(){return new XH(this.func_())};
kb.prototype[Symbol.iterator]=function(){return new $b(this.func_())};
kb.prototype.toEs6=function(){return new $b(this.func_())};
var XH=function(B){this.JSC$8577_iter_=B};
_.w(XH,gR);XH.prototype.next=function(){return this.JSC$8577_iter_.next()};
XH.prototype[Symbol.iterator]=function(){return new $b(this.JSC$8577_iter_)};
XH.prototype.toEs6=function(){return new $b(this.JSC$8577_iter_)};
var $b=function(B){kb.call(this,function(){return B});
this.JSC$8580_iter_=B};
_.w($b,kb);$b.prototype.next=function(){return this.JSC$8580_iter_.next()};var gr0=function(){};var nm=function(){};
_.sZ(nm,gr0);nm.prototype.getCount=function(){for(var B=0,c=_.p(this),x=c.next();!x.done;x=c.next())B++;return B};
nm.prototype[Symbol.iterator]=function(){return a$Q(this.__iterator__(!0)).toEs6()};
nm.prototype.clear=function(){var B=Array.from(this);B=_.p(B);for(var c=B.next();!c.done;c=B.next())this.remove(c.value)};_.sZ(tK,nm);_.a=tK.prototype;_.a.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var B=this.storage_;if(B)try{B.setItem("__sak","1");B.removeItem("__sak");var c=!0}catch(x){c=x instanceof DOMException&&(x.name==="QuotaExceededError"||x.code===22||x.code===1014||x.name==="NS_ERROR_DOM_QUOTA_REACHED")&&B&&B.length!==0}else c=!1;this.cachedIsStorageAvailable_=c}return this.cachedIsStorageAvailable_};
_.a.set=function(B,c){bY(this);try{this.storage_.setItem(B,c)}catch(x){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.a.get=function(B){bY(this);B=this.storage_.getItem(B);if(typeof B!=="string"&&B!==null)throw"Storage mechanism: Invalid value was encountered";return B};
_.a.remove=function(B){bY(this);this.storage_.removeItem(B)};
_.a.getCount=function(){bY(this);return this.storage_.length};
_.a.__iterator__=function(B){bY(this);var c=0,x=this.storage_,P=new gR;P.next=function(){if(c>=x.length)return sh;var Y=x.key(c++);if(B)return pm(Y);Y=x.getItem(Y);if(typeof Y!=="string")throw"Storage mechanism: Invalid value was encountered";return pm(Y)};
return P};
_.a.clear=function(){bY(this);this.storage_.clear()};
_.a.key=function(B){bY(this);return this.storage_.key(B)};
var bY=function(B){if(B.storage_==null)throw Error("Nc");B.isAvailable()||P$(Error("Nc"))};_.sZ(pf7,tK);_.sZ(kkl,tK);_.sZ(wr,nm);wr.prototype.set=function(B,c){this.mechanism_.set(this.JSC$8595_prefix_+B,c)};
wr.prototype.get=function(B){return this.mechanism_.get(this.JSC$8595_prefix_+B)};
wr.prototype.remove=function(B){this.mechanism_.remove(this.JSC$8595_prefix_+B)};
wr.prototype.__iterator__=function(B){var c=this.mechanism_[Symbol.iterator](),x=this,P=new gR;P.next=function(){var Y=c.next();if(Y.done)return Y;for(Y=Y.value;Y.slice(0,x.JSC$8595_prefix_.length)!=x.JSC$8595_prefix_;){Y=c.next();if(Y.done)return Y;Y=Y.value}return pm(B?Y.slice(x.JSC$8595_prefix_.length):x.mechanism_.get(Y))};
return P};_.vA=function(B){this.expiringStorage_=(B=_.Xfq(B))?new VY(B):null;this.JSC$8599_domain_=document.domain||window.location.hostname};
_.vA.prototype.set=function(B,c,x,P){x=x||31104E3;this.remove(B);if(this.expiringStorage_)try{this.expiringStorage_.set(B,c,Date.now()+x*1E3);return}catch(g){}var Y="";if(P)try{Y=escape((0,_.lK)(c))}catch(g){return}else Y=escape(c);_.dr(B,Y,x,this.JSC$8599_domain_)};
_.vA.prototype.get=function(B,c){var x=void 0,P=!this.expiringStorage_;if(!P)try{x=this.expiringStorage_.get(B)}catch(Y){P=!0}if(P&&(x=_.U4.get(B,void 0))&&(x=unescape(x),c))try{x=JSON.parse(x)}catch(Y){this.remove(B),x=void 0}return x};
_.vA.prototype.remove=function(B){this.expiringStorage_&&this.expiringStorage_.remove(B);_.cgO(B,"/",this.JSC$8599_domain_)};
_.vA.prototype.getCreationTime=function(B){return this.expiringStorage_&&(B=(this.expiringStorage_.getWrapper(B)||{}).creation,typeof B==="number")?B:null};var ndQ=function(){var B;return function(){B||(B=new _.vA("ytidb"));return B}}();var K4o;_.IH=[];K4o=!1;var od$=js$||Up$;var Km={},sx9=(Km.AUTH_INVALID="No user identifier specified.",Km.EXPLICIT_ABORT="Transaction was explicitly aborted.",Km.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Km.MISSING_INDEX="Index not created.",Km.MISSING_OBJECT_STORES="Object stores not created.",Km.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Km.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Km.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Km.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Km.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Km.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Km.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Km),jV={},pA4=(jV.AUTH_INVALID="ERROR",jV.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",jV.EXPLICIT_ABORT="IGNORED",
jV.IDB_NOT_SUPPORTED="ERROR",jV.MISSING_INDEX="WARNING",jV.MISSING_OBJECT_STORES="ERROR",jV.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",jV.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",jV.QUOTA_EXCEEDED="WARNING",jV.QUOTA_MAYBE_EXCEEDED="WARNING",jV.UNKNOWN_ABORT="WARNING",jV.INCOMPATIBLE_DB_VERSION="WARNING",jV),Uh={},k63=(Uh.AUTH_INVALID=!1,Uh.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Uh.EXPLICIT_ABORT=!1,Uh.IDB_NOT_SUPPORTED=!1,Uh.MISSING_INDEX=!1,Uh.MISSING_OBJECT_STORES=!1,Uh.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Uh.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Uh.QUOTA_EXCEEDED=!1,Uh.QUOTA_MAYBE_EXCEEDED=!0,Uh.UNKNOWN_ABORT=!0,Uh.INCOMPATIBLE_DB_VERSION=!1,Uh),oH=function(B,c,x,P,Y){c=c===void 0?{}:c;x=x===void 0?sx9[B]:x;P=P===void 0?pA4[B]:P;Y=Y===void 0?k63[B]:Y;_.mc.call(this,x,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:B},c));this.type=B;this.message=x;this.level=P;this.retryable=Y;Object.setPrototypeOf(this,oH.prototype)};
_.w(oH,_.mc);var XAI=function(B,c){oH.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:c,foundObjectStores:B},sx9.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,XAI.prototype)};
_.w(XAI,oH);var qno=function(B,c){var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.index=B;this.objectStore=c;Object.setPrototypeOf(this,qno.prototype)};
_.w(qno,Error);var ChA=["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 zw=function(B){this.executor=B},vp=function(B){var c=this;
this.state={status:"PENDING"};this.JSC$8627_onFulfilled=[];this.JSC$8627_onRejected=[];B=B.executor;var x=function(Y){if(c.state.status==="PENDING"){c.state={status:"FULFILLED",value:Y};Y=_.p(c.JSC$8627_onFulfilled);for(var g=Y.next();!g.done;g=Y.next())g=g.value,g()}},P=function(Y){if(c.state.status==="PENDING"){c.state={status:"REJECTED",
reason:Y};Y=_.p(c.JSC$8627_onRejected);for(var g=Y.next();!g.done;g=Y.next())g=g.value,g()}};
try{B(x,P)}catch(Y){P(Y)}};
vp.all=function(B){return new vp(new zw(function(c,x){var P=[],Y=B.length;Y===0&&c(P);for(var g={i$jscomp$462:0};g.i$jscomp$462<B.length;g={i$jscomp$462:g.i$jscomp$462},++g.i$jscomp$462)vp.resolve(B[g.i$jscomp$462]).then(function(k){return function(n){P[k.i$jscomp$462]=n;Y--;Y===0&&c(P)}}(g)).catch(function(k){x(k)})}))};
vp.resolve=function(B){return new vp(new zw(function(c,x){B instanceof vp?B.then(c,x):c(B)}))};
vp.reject=function(B){return new vp(new zw(function(c,x){x(B)}))};
vp.prototype.then=function(B,c){var x=this,P=B!=null?B:Txx,Y=c!=null?c:mpw;return new vp(new zw(function(g,k){x.state.status==="PENDING"?(x.JSC$8627_onFulfilled.push(function(){$6d(x,x,P,g,k)}),x.JSC$8627_onRejected.push(function(){nr0(x,x,Y,g,k)})):x.state.status==="FULFILLED"?$6d(x,x,P,g,k):x.state.status==="REJECTED"&&nr0(x,x,Y,g,k)}))};
vp.prototype.catch=function(B){return this.then(void 0,B)};
var $6d=function(B,c,x,P,Y){try{if(B.state.status!=="FULFILLED")throw Error("Qc");var g=x(B.state.value);g instanceof vp?bpI(B,c,g,P,Y):P(g)}catch(k){Y(k)}},nr0=function(B,c,x,P,Y){try{if(B.state.status!=="REJECTED")throw Error("Rc");
var g=x(B.state.reason);g instanceof vp?bpI(B,c,g,P,Y):P(g)}catch(k){Y(k)}},bpI=function(B,c,x,P,Y){c===x?Y(new TypeError("Sc")):x.then(function(g){g instanceof vp?bpI(B,c,g,P,Y):P(g)},function(g){Y(g)})};var dR;dR=window;_.BA=dR.ytcsi&&dR.ytcsi.now?dR.ytcsi.now:dR.performance&&dR.performance.timing&&dR.performance.now&&dR.performance.timing.navigationStart?function(){return dR.performance.timing.navigationStart+dR.performance.now()}:function(){return(new Date).getTime()};var yY=function(B,c){this.JSC$8639_wrapped=B;this.options=c;this.transactionCount=0;this.startedMs=Math.round((0,_.BA)());this.hasUnknownAbortedTransaction=!1},U60,d69,hZ,hUQ;
yY.prototype.add=function(B,c,x){return _.Hp(this,[B],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(B).add(c,x)})};
yY.prototype.clear=function(B){return _.Hp(this,[B],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(B).clear()})};
yY.prototype.close=function(){this.JSC$8639_wrapped.close();var B;((B=this.options)==null?0:B.closed)&&this.options.closed()};
yY.prototype.count=function(B,c){return _.Hp(this,[B],{mode:"readonly",enableRetries:!0},function(x){return x.objectStore(B).count(c)})};
var Sl=function(B,c,x){B=B.JSC$8639_wrapped.createObjectStore(c,x);return new qc(B)};
yY.prototype.delete=function(B,c){return _.Hp(this,[B],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore(B).delete(c)})};
var K1Z=function(B,c){return _.Hp(B,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore("ResponseStore").index("byInterface").delete(c)})};
yY.prototype.get=function(B,c){return _.Hp(this,[B],{mode:"readonly",enableRetries:!0},function(x){return x.objectStore(B).get(c)})};
yY.prototype.getAll=function(B,c,x){return _.Hp(this,[B],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(B).getAll(c,x)})};
yY.prototype.put=function(B,c,x){return _.Hp(this,[B],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(B).put(c,x)})};
yY.prototype.objectStoreNames=function(){return Array.from(this.JSC$8639_wrapped.objectStoreNames)};
_.Hp=function(B,c,x,P){var Y,g,k,n,b,d,q,C,h,V,N,l;return _.X(function(E){switch(E.nextAddress){case 1:var S={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof x==="string"?S.mode=x:Object.assign(S,x);Y=S;B.transactionCount++;g=Y.enableRetries?3:1;k=0;case 2:if(n){E.jumpTo(4);break}k++;b=Math.round((0,_.BA)());_.kM(E,5);d=B.JSC$8639_wrapped.transaction(c,Y.mode);S=new NxX(d);S=jxm(S,P);return _.K(E,S,7);case 7:return q=E.yieldResult,C=Math.round((0,_.BA)()),U60(B,b,C,k,void 0,
c.join(),Y),E.return(q);case 5:h=_.be(E);V=Math.round((0,_.BA)());N=hkI(h,B.JSC$8639_wrapped.name,c.join(),B.JSC$8639_wrapped.version);if((l=N instanceof oH&&!N.retryable)||k>=g)U60(B,b,V,k,N,c.join(),Y),n=N;E.jumpTo(2);break;case 4:return E.return(Promise.reject(n))}})};
U60=function(B,c,x,P,Y,g,k){c=x-c;Y?(Y instanceof oH&&(Y.type==="QUOTA_EXCEEDED"||Y.type==="QUOTA_MAYBE_EXCEEDED")&&Wp("QUOTA_EXCEEDED",{dbName:E4(B.JSC$8639_wrapped.name),objectStoreNames:g,transactionCount:B.transactionCount,transactionMode:k.mode}),Y instanceof oH&&Y.type==="UNKNOWN_ABORT"&&(x-=B.startedMs,x<0&&x>=2147483648&&(x=0),Wp("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:c,transactionCount:B.transactionCount,dbDuration:x}),B.hasUnknownAbortedTransaction=!0),
d69(B,!1,P,g,c,k.tag),_.JK(Y)):d69(B,!0,P,g,c,k.tag)};
d69=function(B,c,x,P,Y,g){Wp("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:B.hasUnknownAbortedTransaction,duration:Y,isSuccessful:c,tryCount:x,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
yY.prototype.getVersion=function(){return this.JSC$8639_wrapped.version};
yY.prototype.getName=function(){return this.JSC$8639_wrapped.name};
var qc=function(B){this.JSC$8654_wrapped=B};
qc.prototype.add=function(B,c){return SR(this.JSC$8654_wrapped.add(B,c))};
qc.prototype.autoIncrement=function(){return this.JSC$8654_wrapped.autoIncrement};
qc.prototype.clear=function(){return SR(this.JSC$8654_wrapped.clear()).then(function(){})};
var yx=function(B,c,x){B.JSC$8654_wrapped.createIndex(c,x,{unique:!1})};
qc.prototype.count=function(B){return SR(this.JSC$8654_wrapped.count(B))};
var qEt=function(B,c){return AK(B,{query:c},function(x){return x.delete().then(function(){return x.continue()})}).then(function(){})};
qc.prototype.delete=function(B){return B instanceof IDBKeyRange?qEt(this,B):SR(this.JSC$8654_wrapped.delete(B))};
qc.prototype.get=function(B){return SR(this.JSC$8654_wrapped.get(B))};
qc.prototype.getAll=function(B,c){return"getAll"in IDBObjectStore.prototype?SR(this.JSC$8654_wrapped.getAll(B,c)):Cr5(this,B,c)};
var Cr5=function(B,c,x){var P=[];return AK(B,{query:c},function(Y){if(!(x!==void 0&&P.length>=x))return P.push(Y.getValue()),Y.continue()}).then(function(){return P})};
qc.prototype.index=function(B){try{return new Cm(this.JSC$8654_wrapped.index(B))}catch(c){if(c instanceof Error&&c.name==="NotFoundError")throw new qno(B,this.JSC$8654_wrapped.name);throw c;}};
qc.prototype.getName=function(){return this.JSC$8654_wrapped.name};
qc.prototype.keyPath=function(){return this.JSC$8654_wrapped.keyPath};
qc.prototype.put=function(B,c){return SR(this.JSC$8654_wrapped.put(B,c))};
var AK=function(B,c,x){B=B.JSC$8654_wrapped.openCursor(c.query,c.direction);return hUQ(B).then(function(P){return wfI(P,x)})},NxX=function(B){var c=this;
this.JSC$8662_wrapped=B;this.objectStoreCache=new Map;this.JSC$8662_aborted=!1;this.done=new Promise(function(x,P){c.JSC$8662_wrapped.addEventListener("complete",function(){x()});
c.JSC$8662_wrapped.addEventListener("error",function(Y){Y.currentTarget===Y.target&&P(c.JSC$8662_wrapped.error)});
c.JSC$8662_wrapped.addEventListener("abort",function(){var Y=c.JSC$8662_wrapped.error;if(Y)P(Y);else if(!c.JSC$8662_aborted){Y=oH;for(var g=c.JSC$8662_wrapped.objectStoreNames,k=[],n=0;n<g.length;n++){var b=g.item(n);if(b===null)throw Error("Tc");k.push(b)}Y=new Y("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:c.JSC$8662_wrapped.db.name,mode:c.JSC$8662_wrapped.mode});P(Y)}})})},jxm=function(B,c){var x=new Promise(function(P,Y){try{c(B).then(function(g){P(g)}).catch(Y)}catch(g){Y(g),B.abort()}});
return Promise.all([x,B.done]).then(function(P){return _.p(P).next().value})};
NxX.prototype.abort=function(){this.JSC$8662_wrapped.abort();this.JSC$8662_aborted=!0;throw new oH("EXPLICIT_ABORT");};
NxX.prototype.objectStore=function(B){B=this.JSC$8662_wrapped.objectStore(B);var c=this.objectStoreCache.get(B);c||(c=new qc(B),this.objectStoreCache.set(B,c));return c};
var Cm=function(B){this.JSC$8664_wrapped=B};
Cm.prototype.count=function(B){return SR(this.JSC$8664_wrapped.count(B))};
Cm.prototype.delete=function(B){return _.cA(this,{query:B},function(c){return c.delete().then(function(){return c.continue()})})};
Cm.prototype.get=function(B){return SR(this.JSC$8664_wrapped.get(B))};
Cm.prototype.getAll=function(B,c){return"getAll"in IDBIndex.prototype?SR(this.JSC$8664_wrapped.getAll(B,c)):m63(this,B,c)};
var m63=function(B,c,x){var P=[];return _.cA(B,{query:c},function(Y){if(!(x!==void 0&&P.length>=x))return P.push(Y.getValue()),Y.continue()}).then(function(){return P})};
Cm.prototype.keyPath=function(){return this.JSC$8664_wrapped.keyPath};
Cm.prototype.unique=function(){return this.JSC$8664_wrapped.unique};
_.cA=function(B,c,x){B=B.JSC$8664_wrapped.openCursor(c.query===void 0?null:c.query,c.direction===void 0?"next":c.direction);return hUQ(B).then(function(P){return wfI(P,x)})};
hZ=function(B,c){this.request=B;this.cursor=c};
hUQ=function(B){return SR(B).then(function(c){return c?new hZ(B,c):null})};
hZ.prototype.continue=function(B){this.cursor.continue(B);return hUQ(this.request)};
hZ.prototype.delete=function(){return SR(this.cursor.delete()).then(function(){})};
hZ.prototype.getValue=function(){return this.cursor.value};
hZ.prototype.update=function(B){return SR(this.cursor.update(B))};var mE=function(B,c){this.name=B;this.options=c;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},TK3;
mE.prototype.openDb=function(B,c,x){x=x===void 0?{}:x;return Jgl(B,c,x)};
mE.prototype.delete=function(B){B=B===void 0?{}:B;return _.MD(this.name,B)};
TK3=function(B,c){return new oH("INCOMPATIBLE_DB_VERSION",{dbName:B.name,oldVersion:B.options.version,newVersion:c})};
_.LU=function(B,c){if(!c)throw F4("openWithToken",E4(B.name));return B.open()};
mE.prototype.open=function(){var B=this;if(!this.isCompatible)throw TK3(this);if(this.connectionPromise)return this.connectionPromise;var c,x=function(){B.connectionPromise===c&&(B.connectionPromise=void 0)},P={blocking:function(g){g.close()},
closed:x,terminated:x,upgrade:this.options.upgrade},Y=function(){var g,k,n,b,d,q,C,h,V,N;return _.X(function(l){switch(l.nextAddress){case 1:return k=(g=Error().stack)!=null?g:"",_.kM(l,2),_.K(l,B.openDb(B.name,B.options.version,P),4);case 4:for(var E=n=l.yieldResult,S=B.options,M=[],f=_.p(Object.keys(S.objectStores)),Z=f.next();!Z.done;Z=f.next()){Z=Z.value;var u=S.objectStores[Z],e=u.removedAtVersion===void 0?Number.MAX_VALUE:u.removedAtVersion;!(E.JSC$8639_wrapped.version>=u.addedAtVersion)||E.JSC$8639_wrapped.version>=
e||E.JSC$8639_wrapped.objectStoreNames.contains(Z)||M.push(Z)}b=M;if(b.length===0){l.jumpTo(5);break}d=Object.keys(B.options.objectStores);q=n.objectStoreNames();if(B.timesReopenedToFixMissingObjectStore<_.Yu("ytidb_reopen_db_retries",0))return B.timesReopenedToFixMissingObjectStore++,n.close(),_.JK(new oH("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:d,foundObjectStores:q})),l.return(Y());if(!(B.timesDeletedToFixMissingObjectStore<_.Yu("ytidb_remake_db_retries",1))){l.jumpTo(6);
break}B.timesDeletedToFixMissingObjectStore++;return _.K(l,B.delete(),7);case 7:return _.JK(new oH("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:d,foundObjectStores:q})),l.return(Y());case 6:throw new XAI(q,d);case 5:return l.return(n);case 2:C=_.be(l);if(C instanceof DOMException?C.name!=="VersionError":"DOMError"in self&&C instanceof DOMError?C.name!=="VersionError":!(C instanceof Object&&"message"in C)||C.message!=="An attempt was made to open a database using a lower version than the existing version."){l.jumpTo(8);
break}return _.K(l,B.openDb(B.name,void 0,Object.assign({},P,{upgrade:void 0})),9);case 9:h=l.yieldResult;V=h.getVersion();if(B.options.version!==void 0&&V>B.options.version+1)throw h.close(),B.isCompatible=!1,TK3(B,V);return l.return(h);case 8:throw x(),C instanceof Error&&!_.T("ytidb_async_stack_killswitch")&&(C.stack=C.stack+"\n"+k.substring(k.indexOf("\n")+1)),hkI(C,B.name,"",(N=B.options.version)!=null?N:-1);}})};
return this.connectionPromise=c=Y()};var W4d=new mE("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(B,c){c(1)&&Sl(B,"databases",{keyPath:"actualName"})}});var vd7,Qsq=new function(){}(new function(){});new _.kH;var VlZ=function(B,c){mE.call(this,B,c);this.options=c;lp(B)};
_.w(VlZ,mE);var iNX=function(B,c){var x;return function(){x||(x=new VlZ(B,c));return x}};
VlZ.prototype.openDb=function(B,c,x){x=x===void 0?{}:x;return(this.options.shared?MWl:GkY)(B,c,Object.assign({},x))};
VlZ.prototype.delete=function(B){B=B===void 0?{}:B;return(this.options.shared?fao:L4$)(this.name,B)};var tlS={},Ag7=eR("ytGcfConfig",{objectStores:(tlS.coldConfigStore={addedAtVersion:1},tlS.hotConfigStore={addedAtVersion:1},tlS),shared:!1,upgrade:function(B,c){c(1)&&(yx(Sl(B,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),yx(Sl(B,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var wAQ=function(){_.tG.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var B=_.Gu("yt.gcf.config.hotUpdateCallbacks");B?(this.localHotConfigJobQueue=[].concat(_.wq(B)),this.sharedHotConfigJobQueue=B):(this.sharedHotConfigJobQueue=[],_.rr("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.w(wAQ,_.tG);wAQ.prototype.disposeInternal=function(){for(var B=_.p(this.localHotConfigJobQueue),c=B.next();!c.done;c=B.next()){var x=this.sharedHotConfigJobQueue;c=x.indexOf(c.value);c>=0&&x.splice(c,1)}this.localHotConfigJobQueue.length=0;_.tG.prototype.disposeInternal.call(this)};var tP=function(){var B=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new wAQ;this.TEST_ONLY={initializeConfigDb:function(){B.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return B.coldGlobalConfigGroup},
setHotConfigGroup:function(c){NKt(B,c)},
setHotHashData:function(c){B.setHotHashData(c)},
setColdConfigGroup:function(c){I$3(B,c)},
getColdHashData:function(){return B.coldHashData},
getHotHashData:function(){return B.hotHashData},
getHotConfigGroup:function(){return B.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return JjF()},
getExportedHotConfigGroup:function(){return Tx()},
getExportedColdHashData:function(){return _.Gu("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Gu("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){W1n(B)},
resetInstance:function(){B.setHotHashData(void 0);l$Z(B);delete tP.instance},
setDebounceTimer:function(c){B.debounceTimer=c},
getDebounceTimer:function(){return B.debounceTimer}}},Ern=function(){if(!tP.instance){var B=new tP;
tP.instance=B}return tP.instance},QxI=function(B){var c;
_.X(function(x){if(x.nextAddress==1)return _.T("start_client_gcf")||_.T("delete_gcf_config_db")?_.T("start_client_gcf")?_.K(x,_.RH(),3):x.jumpTo(2):x.return();x.nextAddress!=2&&((c=x.yieldResult)&&_.hK()&&!_.T("delete_gcf_config_db")?(B.isConfigDbInitialized=!0,W1n(B)):(OpQ(B),or9(B)));return _.T("delete_gcf_config_db")?_.K(x,Bjd(),0):x.jumpTo(0)})},cX7=function(){var B;
return(B=Tx())!=null?B:_.v5("RAW_HOT_CONFIG_GROUP")},F13=function(B){var c,x,P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:if(B.hotGlobalConfigGroup)return n.return(Tx());if(!B.isConfigDbInitialized)return c=F4("getHotConfig IDB not initialized"),_.MR(c),n.return(Promise.reject(c));x=Dt();P=_.v5("TIME_CREATED_MS");if(!x){Y=F4("getHotConfig token error");_.MR(Y);n.jumpTo(2);break}return _.K(n,ekx(x),3);case 3:if((g=n.yieldResult)&&g.timestamp>P)return NKt(B,g.config),B.setHotHashData(g.hashData),n.return(Tx());case 2:or9(B);if(!(x&&B.hotGlobalConfigGroup&&B.hotHashData)){n.jumpTo(4);
break}return _.K(n,Dp7(B.hotGlobalConfigGroup,B.hotHashData,x,P),4);case 4:return B.hotGlobalConfigGroup?n.return(Tx()):(k=new _.mc("Config not available in ytConfig"),_.MR(k),n.return(Promise.reject(k)))}})},zUd=function(B){var c,x,P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:if(B.coldGlobalConfigGroup)return n.return(JjF());if(!B.isConfigDbInitialized)return c=F4("getColdConfig IDB not initialized"),_.MR(c),n.return(Promise.reject(c));x=Dt();P=_.v5("TIME_CREATED_MS");if(!x){Y=F4("getColdConfig");_.MR(Y);n.jumpTo(2);break}return _.K(n,Rk$(x),3);case 3:if((g=n.yieldResult)&&g.timestamp>P)return I$3(B,g.config),vrm(B,g.configData),l$Z(B,g.hashData),n.return(JjF());case 2:OpQ(B);if(!(x&&B.coldGlobalConfigGroup&&B.coldHashData&&
B.configData)){n.jumpTo(4);break}return _.K(n,rgd(B.coldGlobalConfigGroup,B.coldHashData,B.configData,x,P),4);case 4:return B.coldGlobalConfigGroup?n.return(JjF()):(k=new _.mc("Config not available in ytConfig"),_.MR(k),n.return(Promise.reject(k)))}})},W1n=function(B){if(!B.hotGlobalConfigGroup||!B.coldGlobalConfigGroup){if(!Dt()){var c=F4("scheduleGetConfigs");
_.MR(c)}B.initJob||(B.initJob=_.EE.addLowPriorityJob(function(){return _.X(function(x){switch(x.nextAddress){case 1:return _.kM(x,2),_.K(x,F13(B),4);case 4:_.Gw(x,3);break;case 2:_.be(x);case 3:return _.kM(x,5),_.K(x,zUd(B),7);case 7:_.Gw(x,6);break;case 5:_.be(x);case 6:B.initJob&&(B.initJob=0),_.Kq(x)}})},100))}},DiX=function(B,c,x){var P,Y,g;
return _.X(function(k){switch(k.nextAddress){case 1:if(!_.T("start_client_gcf")){k.jumpTo(0);break}x&&NKt(B,x);B.setHotHashData(c);P=Dt();if(!P){k.jumpTo(3);break}if(x){k.jumpTo(4);break}return _.K(k,ekx(P),5);case 5:Y=k.yieldResult,x=(g=Y)==null?void 0:g.config;case 4:return _.K(k,Dp7(x,c,P),3);case 3:if(x)for(var n=x,b=_.p(B.configUpdateService.sharedHotConfigJobQueue),d=b.next();!d.done;d=b.next())d=d.value,d(n);_.Kq(k)}})},r9q=function(B,c,x){var P,Y,g,k;
return _.X(function(n){if(n.nextAddress==1){if(!_.T("start_client_gcf"))return n.jumpTo(0);l$Z(B,c);return(P=Dt())?x?n.jumpTo(4):_.K(n,Rk$(P),5):n.jumpTo(0)}n.nextAddress!=4&&(Y=n.yieldResult,x=(g=Y)==null?void 0:g.config);if(!x)return n.jumpTo(0);k=x.configData;return _.K(n,rgd(x,c,k,P),0)})},qp7=function(){var B=Ern(),c=(0,_.BA)()-B.debounceTimer;
if(!(B.debounceTimer!==0&&c<_.Yu("send_config_hash_timer"))){c=_.Gu("yt.gcf.config.coldConfigData");var x=_.Gu("yt.gcf.config.hotHashData"),P=_.Gu("yt.gcf.config.coldHashData");c&&x&&P&&(B.debounceTimer=(0,_.BA)());return{coldConfigData:c,hotHashData:x,coldHashData:P}}},OpQ=function(B){I$3(B,_.v5("RAW_COLD_CONFIG_GROUP"));
l$Z(B,_.v5("SERIALIZED_COLD_HASH_DATA"));var c;vrm(B,(c=B.coldGlobalConfigGroup)==null?void 0:c.configData)},or9=function(B){NKt(B,_.v5("RAW_HOT_CONFIG_GROUP"));
B.setHotHashData(_.v5("SERIALIZED_HOT_HASH_DATA"))},NKt=function(B,c){B.hotGlobalConfigGroup=c;
_.rr("yt.gcf.config.hotConfigGroup",B.hotGlobalConfigGroup||null)},I$3=function(B,c){B.coldGlobalConfigGroup=c;
_.rr("yt.gcf.config.coldConfigGroup",B.coldGlobalConfigGroup||null)};
tP.prototype.setHotHashData=function(B){this.hotHashData=B;_.rr("yt.gcf.config.hotHashData",this.hotHashData||null)};
var l$Z=function(B,c){B.coldHashData=c;_.rr("yt.gcf.config.coldHashData",B.coldHashData||null)},vrm=function(B,c){B.configData=c;
_.rr("yt.gcf.config.coldConfigData",B.configData||null)},Tx=function(){return _.Gu("yt.gcf.config.hotConfigGroup")},JjF=function(){return _.Gu("yt.gcf.config.coldConfigGroup")};var $r={},SE3=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";$r.assign=function(B){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var x=c.shift();if(x){if(typeof x!=="object")throw new TypeError("Wc`"+x);for(var P in x)Object.prototype.hasOwnProperty.call(x,P)&&(B[P]=x[P])}}return B};
$r.shrinkBuf=function(B,c){if(B.length===c)return B;if(B.subarray)return B.subarray(0,c);B.length=c;return B};
var yjW={arraySet:function(B,c,x,P,Y){if(c.subarray&&B.subarray)B.set(c.subarray(x,x+P),Y);else for(var g=0;g<P;g++)B[Y+g]=c[x+g]},
flattenChunks:function(B){var c,x;var P=x=0;for(c=B.length;P<c;P++)x+=B[P].length;var Y=new Uint8Array(x);P=x=0;for(c=B.length;P<c;P++){var g=B[P];Y.set(g,x);x+=g.length}return Y}},G6F={arraySet:function(B,c,x,P,Y){for(var g=0;g<P;g++)B[Y+g]=c[x+g]},
flattenChunks:function(B){return[].concat.apply([],B)}};
$r.setTyped=function(){SE3?($r.Buf8=Uint8Array,$r.Buf16=Uint16Array,$r.Buf32=Int32Array,$r.assign($r,yjW)):($r.Buf8=Array,$r.Buf16=Array,$r.Buf32=Array,$r.assign($r,G6F))};
$r.setTyped();var Mld=!0;try{new Uint8Array(1)}catch(B){Mld=!1}
var edq=function(B){var c,x,P=B.length,Y=0;for(c=0;c<P;c++){var g=B.charCodeAt(c);if((g&64512)===55296&&c+1<P){var k=B.charCodeAt(c+1);(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),c++)}Y+=g<128?1:g<2048?2:g<65536?3:4}var n=new $r.Buf8(Y);for(c=x=0;x<Y;c++)g=B.charCodeAt(c),(g&64512)===55296&&c+1<P&&(k=B.charCodeAt(c+1),(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),c++)),g<128?n[x++]=g:(g<2048?n[x++]=192|g>>>6:(g<65536?n[x++]=224|g>>>12:(n[x++]=240|g>>>18,n[x++]=128|g>>>12&63),n[x++]=
128|g>>>6&63),n[x++]=128|g&63);return n};var yix={};yix=function(B,c,x,P){var Y=B&65535|0;B=B>>>16&65535|0;for(var g;x!==0;){g=x>2E3?2E3:x;x-=g;do Y=Y+c[P++]|0,B=B+Y|0;while(--g);Y%=65521;B%=65521}return Y|B<<16|0};for(var tj={},Vb,L15=[],Zp4=0;Zp4<256;Zp4++){Vb=Zp4;for(var Hpn=0;Hpn<8;Hpn++)Vb=Vb&1?3988292384^Vb>>>1:Vb>>>1;L15[Zp4]=Vb}tj=function(B,c,x,P){x=P+x;for(B^=-1;P<x;P++)B=B>>>8^L15[(B^c[P])&255];return B^-1};var jl={};jl={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 Ji$=[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],l1I=[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],Rd7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zdd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cp=Array(576);sE(Cp);var hj=Array(60);sE(hj);var br=Array(512);sE(br);var np=Array(256);sE(np);var W5A=Array(29);sE(W5A);var ECX=Array(30);sE(ECX);var uX7,D9l,ri7,AiC=!1;var lr;
lr=[new WA(0,0,0,0,function(B,c){var x=65535;for(x>B.pending_buf_size-5&&(x=B.pending_buf_size-5);;){if(B.lookahead<=1){wK(B);if(B.lookahead===0&&c===0)return 1;if(B.lookahead===0)break}B.strstart+=B.lookahead;B.lookahead=0;var P=B.block_start+x;if(B.strstart===0||B.strstart>=P)if(B.lookahead=B.strstart-P,B.strstart=P,m1(B,!1),B.strm.avail_out===0)return 1;if(B.strstart-B.block_start>=B.w_size-262&&(m1(B,!1),B.strm.avail_out===0))return 1}B.insert=0;if(c===4)return m1(B,!0),B.strm.avail_out===0?3:
4;B.strstart>B.block_start&&m1(B,!1);return 1}),
new WA(4,4,8,4,GqQ),new WA(4,5,16,8,GqQ),new WA(4,6,32,32,GqQ),new WA(4,4,16,16,Jj),new WA(8,16,32,32,Jj),new WA(8,16,128,128,Jj),new WA(8,32,128,256,Jj),new WA(32,128,258,1024,Jj),new WA(32,258,258,4096,Jj)];var iWq={};iWq=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 BL$=Object.prototype.toString;
f1q.prototype.push=function(B,c){var x=this.strm,P=this.options.chunkSize;if(this.ended)return!1;var Y=c===~~c?c:c===!0?4:0;typeof B==="string"?x.input=edq(B):BL$.call(B)==="[object ArrayBuffer]"?x.input=new Uint8Array(B):x.input=B;x.next_in=0;x.avail_in=x.input.length;do{x.avail_out===0&&(x.output=new $r.Buf8(P),x.next_out=0,x.avail_out=P);B=HWx(x,Y);if(B!==1&&B!==0)return f$9(this,B),this.ended=!0,!1;if(x.avail_out===0||x.avail_in===0&&(Y===4||Y===2))if(this.options.to==="string"){var g=$r.shrinkBuf(x.output,
x.next_out);c=g;g=g.length;if(g<65537&&(c.subarray&&Mld||!c.subarray))c=String.fromCharCode.apply(null,$r.shrinkBuf(c,g));else{for(var k="",n=0;n<g;n++)k+=String.fromCharCode(c[n]);c=k}this.chunks.push(c)}else c=$r.shrinkBuf(x.output,x.next_out),this.chunks.push(c)}while((x.avail_in>0||x.avail_out===0)&&B!==1);if(Y===4)return(x=this.strm)&&x.state?(P=x.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?B=UE(x,-2):(x.state=null,B=P===113?UE(x,-3):0)):B=-2,f$9(this,B),this.ended=
!0,B===0;Y===2&&(f$9(this,0),x.avail_out=0);return!0};
var f$9=function(B,c){c===0&&(B.result=B.options.to==="string"?B.chunks.join(""):$r.flattenChunks(B.chunks));B.chunks=[];B.err=c;B.msg=B.strm.msg};var ip9=typeof TextEncoder!=="undefined"?new TextEncoder:null,Wkx=ip9?function(B){return ip9.encode(B)}:function(B){B=_.V_(B);
for(var c=new Uint8Array(B.length),x=0;x<c.length;x++)c[x]=B[x];return c};var cZq={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},PYd={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var tZ=function(B,c){this.version=B;this.args=c};
tZ.prototype.serialize=function(){return{version:this.version,args:this.args}};var ajQ=function(B,c){this.topic=B;this.dataClass=c};
ajQ.prototype.toString=function(){return this.topic};var AjI=_.Gu("ytPubsub2Pubsub2Instance")||new _.KU;_.KU.prototype.subscribe=_.KU.prototype.subscribe;_.KU.prototype.unsubscribeByKey=_.KU.prototype.unsubscribeByKey;_.KU.prototype.publish=_.KU.prototype.publish;_.KU.prototype.clear=_.KU.prototype.clear;_.rr("ytPubsub2Pubsub2Instance",AjI);var Yvx=_.Gu("ytPubsub2Pubsub2SubscribedKeys")||{};_.rr("ytPubsub2Pubsub2SubscribedKeys",Yvx);var swY=_.Gu("ytPubsub2Pubsub2TopicToKeys")||{};_.rr("ytPubsub2Pubsub2TopicToKeys",swY);
var gNC=_.Gu("ytPubsub2Pubsub2IsAsync")||{};_.rr("ytPubsub2Pubsub2IsAsync",gNC);_.rr("ytPubsub2Pubsub2SkipSubKey",null);var dZA=void 0,jww=void 0;var w3Y=_.Yu("max_body_size_to_compress",5E5),NLx=_.Yu("min_body_size_to_compress",500),ox=!0,Okd=0,Qx=0,ENX=_.Yu("compression_performance_threshold_lr",250),oNY=_.Yu("slow_compressions_before_abandon_count",4),hlo=!1,mZ7=new Map,JmX=1,Ijo=!0;_.sZ(F1,vNx);F1.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 u19=function(B,c,x){x||(x=0);var P=B.W_;if(typeof c==="string")for(var Y=0;Y<16;Y++)P[Y]=c.charCodeAt(x)<<24|c.charCodeAt(x+1)<<16|c.charCodeAt(x+2)<<8|c.charCodeAt(x+3),x+=4;else for(Y=0;Y<16;Y++)P[Y]=c[x]<<24|c[x+1]<<16|c[x+2]<<8|c[x+3],x+=4;for(c=16;c<80;c++)x=P[c-3]^P[c-8]^P[c-14]^P[c-16],P[c]=(x<<1|x>>>31)&4294967295;c=B.chain_[0];x=B.chain_[1];Y=B.chain_[2];for(var g=B.chain_[3],k=B.chain_[4],n,b,d=0;d<80;d++)d<40?d<20?(n=g^x&(Y^g),b=1518500249):(n=x^Y^g,b=1859775393):d<60?(n=x&Y|g&(x|Y),
b=2400959708):(n=x^Y^g,b=3395469782),n=(c<<5|c>>>27)+n+k+b+P[d]&4294967295,k=g,g=Y,Y=(x<<30|x>>>2)&4294967295,x=c,c=n;B.chain_[0]=B.chain_[0]+c&4294967295;B.chain_[1]=B.chain_[1]+x&4294967295;B.chain_[2]=B.chain_[2]+Y&4294967295;B.chain_[3]=B.chain_[3]+g&4294967295;B.chain_[4]=B.chain_[4]+k&4294967295};
F1.prototype.update=function(B,c){if(B!=null){c===void 0&&(c=B.length);for(var x=c-this.blockSize,P=0,Y=this.buf_,g=this.inbuf_;P<c;){if(g==0)for(;P<=x;)u19(this,B,P),P+=this.blockSize;if(typeof B==="string")for(;P<c;){if(Y[g]=B.charCodeAt(P),++g,++P,g==this.blockSize){u19(this,Y);g=0;break}}else for(;P<c;)if(Y[g]=B[P],++g,++P,g==this.blockSize){u19(this,Y);g=0;break}}this.inbuf_=g;this.total_+=c}};
F1.prototype.digest=function(){var B=[],c=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var x=this.blockSize-1;x>=56;x--)this.buf_[x]=c&255,c/=256;u19(this,this.buf_);for(x=c=0;x<5;x++)for(var P=24;P>=0;P-=8)B[c]=this.chain_[x]>>P&255,++c;return B};var ymY;var Nc=function(B){var c=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(q){c.databaseToken=q},
triggerThrottle:function(){c.throttledSend()},
cancelThrottle:function(){c.cancelThrottledSend()},
immediateSend:function(q){return _.X(function(C){return _.K(C,c.immediateSend(q),0)})},
requestWithinAgeLimit:function(q,C){return c.requestWithinAgeLimit(q,C)},
retryQueuedRequests:function(){c.retryQueuedRequests()}};
var x;this.throttleTimeout=(x=B.throttleTimeout)!=null?x:100;var P;this.retryMaxAttempts=(P=B.retryMaxAttempts)!=null?P:1;var Y;this.requestAgeLimitMs=(Y=B.requestAgeLimitMs)!=null?Y:2592E6;var g;this.queuedRequestAgeLimitMs=(g=B.queuedRequestAgeLimitMs)!=null?g:12E4;var k;this.retryDelayMs=(k=B.retryDelayMs)!=null?k:5E3;var n;this.databaseToken=(n=B.databaseToken)!=null?n:void 0;this.enableCleaning=!!B.enableCleaning;var b;this.cleaningRate=(b=B.cleaningRate)!=null?b:.1;var d;this.potentialEsfErrorLimit=
(d=B.potentialEsfErrorLimit)!=null?d:10;B.handleError&&(this.handleError=B.handleError);B.handleWarning&&(this.handleWarning=B.handleWarning);B.disableYtIdbTransactions&&(this.disableYtIdbTransactions=B.disableYtIdbTransactions);B.bypassDbTokenDependency&&(this.bypassDbTokenDependency=B.bypassDbTokenDependency);this.getBooleanFlag=B.getBooleanFlag;this.jobManager=B.jobManager;this.logsStore=B.logsStore;this.networkManager=B.networkManager;this.sendFn=B.sendFn;this.onlineEvent=B.onlineEvent;this.offlineEvent=
B.offlineEvent;wR(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&D6t(this)},D6t=function(B){wR(B)&&!B.disableYtIdbTransactions&&(B.initialized=!0,B.enableCleaning&&Math.random()<=B.cleaningRate&&B.logsStore.cleanLogsStore(B.databaseToken),B.retryQueuedRequests(),B.networkManager.isNetworkAvailable()&&B.throttledSend(),B.networkManager.listen(B.onlineEvent,B.throttledSend.bind(B)),B.networkManager.listen(B.offlineEvent,B.cancelThrottledSend.bind(B)))};
_.a=Nc.prototype;_.a.writeThenSend=function(B,c){var x=this;c=c===void 0?{}:c;if(wR(this)&&this.initialized){var P={url:B,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(P,this.databaseToken).then(function(Y){P.id=Y;x.networkManager.isNetworkAvailable()&&x.immediateSend(P)}).catch(function(Y){x.immediateSend(P);
rjW(x,Y)})}else this.sendFn(B,c)};
_.a.sendThenWrite=function(B,c,x){var P=this;c=c===void 0?{}:c;if(wR(this)&&this.initialized){var Y={url:B,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Y.skipRetry=x);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Y.skipRetry){if(!Y.skipRetry){var g=c.onError?c.onError:function(){};
c.onError=function(k,n){return _.X(function(b){if(b.nextAddress==1)return _.K(b,P.logsStore.set(Y,P.databaseToken).catch(function(d){rjW(P,d)}),2);
g(k,n);_.Kq(b)})}}this.sendFn(B,c,Y.skipRetry)}else this.logsStore.set(Y,this.databaseToken).catch(function(k){P.sendFn(B,c,Y.skipRetry);
rjW(P,k)})}else this.sendFn(B,c,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&x)};
_.a.sendAndWrite=function(B,c){var x=this;c=c===void 0?{}:c;if(wR(this)&&this.initialized){var P={url:B,options:c,timestamp:this.now(),status:"NEW",sendCount:0},Y=!1,g=c.onSuccess?c.onSuccess:function(){};
P.options.onSuccess=function(k,n){P.id!==void 0?x.logsStore.deleteRequest(P.id,x.databaseToken):Y=!0;x.networkManager.networkStatusHint&&x.getBooleanFlag&&x.getBooleanFlag("vss_network_hint")&&x.networkManager.networkStatusHint(!0);g(k,n)};
this.sendFn(P.url,P.options,void 0,!0);this.logsStore.set(P,this.databaseToken).then(function(k){P.id=k;Y&&x.logsStore.deleteRequest(P.id,x.databaseToken)}).catch(function(k){rjW(x,k)})}else this.sendFn(B,c,void 0,!0)};
_.a.throttledSend=function(){var B=this;if(!wR(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.logsStore.getMostRecentByStatus("NEW",B.databaseToken),2);if(x.nextAddress!=3)return c=x.yieldResult,c?_.K(x,B.immediateSend(c),3):(B.cancelThrottledSend(),x.return());B.intervalJob&&(B.intervalJob=0,B.throttledSend());_.Kq(x)})},this.throttleTimeout))};
_.a.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.a.immediateSend=function(B){var c=this,x;return _.X(function(P){switch(P.nextAddress){case 1:if(!wR(c))throw Error("$c");if(B.id===void 0){P.jumpTo(2);break}return _.K(P,c.logsStore.markAsQueued(B.id,c.databaseToken),3);case 3:(x=P.yieldResult)||c.handleWarning(Error("ad"));case 2:if(c.requestWithinAgeLimit(B,c.requestAgeLimitMs)){P.jumpTo(4);break}c.handleWarning(Error("bd"));if(B.id===void 0){P.jumpTo(5);break}return _.K(P,c.logsStore.deleteRequest(B.id,c.databaseToken),5);case 5:return P.return();
case 4:B.skipRetry||(B=RUn(c,B));if(!B){P.jumpTo(0);break}if(!B.skipRetry||B.id===void 0){P.jumpTo(8);break}return _.K(P,c.logsStore.deleteRequest(B.id,c.databaseToken),8);case 8:c.sendFn(B.url,B.options,!!B.skipRetry),_.Kq(P)}})};
var RUn=function(B,c){if(!wR(B))throw Error("cd");var x=c.options.onError?c.options.onError:function(){};
c.options.onError=function(Y,g){var k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:k=Hk7(g);(n=fjO(g))&&B.getBooleanFlag&&B.getBooleanFlag("web_enable_error_204")&&B.handleError(Error("dd"),c.url,g);if(!(B.getBooleanFlag&&B.getBooleanFlag("nwl_consider_error_code")&&k||B.getBooleanFlag&&!B.getBooleanFlag("nwl_consider_error_code")&&B.potentialEsfErrorCounter<=B.potentialEsfErrorLimit)){q.jumpTo(2);break}if(!B.networkManager.sendNetworkCheckRequest){q.jumpTo(3);break}return _.K(q,B.networkManager.sendNetworkCheckRequest(),
3);case 3:if(B.networkManager.isNetworkAvailable()){q.jumpTo(2);break}x(Y,g);if(!B.getBooleanFlag||!B.getBooleanFlag("nwl_consider_error_code")||((b=c)==null?void 0:b.id)===void 0){q.jumpTo(6);break}return _.K(q,B.logsStore.resetRequest(c.id,B.databaseToken,!1),6);case 6:return q.return();case 2:if(B.getBooleanFlag&&B.getBooleanFlag("nwl_consider_error_code")&&!k&&B.potentialEsfErrorCounter>B.potentialEsfErrorLimit)return q.return();B.potentialEsfErrorCounter++;if(((d=c)==null?void 0:d.id)===void 0){q.jumpTo(8);
break}return c.sendCount<B.retryMaxAttempts?_.K(q,B.logsStore.resetRequest(c.id,B.databaseToken,!0,n?!1:void 0),12):_.K(q,B.logsStore.deleteRequest(c.id,B.databaseToken),8);case 12:B.jobManager.addLowPriorityJob(function(){B.networkManager.isNetworkAvailable()&&B.throttledSend()},B.retryDelayMs);
case 8:x(Y,g),_.Kq(q)}})};
var P=c.options.onSuccess?c.options.onSuccess:function(){};
c.options.onSuccess=function(Y,g){var k;return _.X(function(n){if(n.nextAddress==1)return((k=c)==null?void 0:k.id)===void 0?n.jumpTo(2):_.K(n,B.logsStore.deleteRequest(c.id,B.databaseToken),2);B.networkManager.networkStatusHint&&B.getBooleanFlag&&B.getBooleanFlag("vss_network_hint")&&B.networkManager.networkStatusHint(!0);P(Y,g);_.Kq(n)})};
return c};
Nc.prototype.requestWithinAgeLimit=function(B,c){B=B.timestamp;return this.now()-B>=c?!1:!0};
Nc.prototype.retryQueuedRequests=function(){var B=this;if(!wR(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(c){c&&!B.requestWithinAgeLimit(c,B.queuedRequestAgeLimitMs)?B.jobManager.addLowPriorityJob(function(){return _.X(function(x){if(x.nextAddress==1)return c.id===void 0?x.jumpTo(2):_.K(x,B.logsStore.resetRequest(c.id,B.databaseToken),2);B.retryQueuedRequests();_.Kq(x)})}):B.networkManager.isNetworkAvailable()&&B.throttledSend()})};
var rjW=function(B,c){B.writeError&&!B.networkManager.isNetworkAvailable()?B.writeError(c):B.handleError(c)},wR=function(B){return!!B.databaseToken||B.bypassDbTokenDependency};var ik$;var BXx={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};var eUZ={},PI7=eR("ServiceWorkerLogsDatabase",{objectStores:(eUZ.SWHealthLog={addedAtVersion:1},eUZ),shared:!0,upgrade:function(B,c){c(1)&&yx(Sl(B,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var $Ax={},XqI=0;var juq;var IX=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},HA=function(){if(!IX.instance){var B=_.Gu("yt.networkRequestMonitor.instance")||new IX;
_.rr("yt.networkRequestMonitor.instance",B);IX.instance=B}return IX.instance};
IX.prototype.requestComplete=function(B,c){c&&(this.anyRequestHasSucceeded=!0);B=this.removeParams(B);this.requestMap.get(B)||this.requestMap.set(B,c)};
IX.prototype.isEndpointCFR=function(B){B=this.removeParams(B);return(B=this.requestMap.get(B))?!1:B===!1&&this.anyRequestHasSucceeded?!0:null};
IX.prototype.removeParams=function(B){return B.split("?")[0]};
IX.prototype.removeParams=IX.prototype.removeParams;IX.prototype.isEndpointCFR=IX.prototype.isEndpointCFR;IX.prototype.requestComplete=IX.prototype.requestComplete;IX.getInstance=HA;var JZ=function(B){_.V4.call(this);var c=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=B!=null?B:{addLowPriorityJob:function(Y,g){return setTimeout(Y,g)},
cancelJob:function(Y){clearTimeout(Y)}};
var x,P;this.isOnline=(P=(x=window.navigator)==null?void 0:x.onLine)!=null?P:!0;this.onNavigatorChange=function(){return _.X(function(Y){return _.K(Y,BU9(c),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||cP5(this)};
_.w(JZ,_.V4);JZ.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete JZ.instance};
JZ.prototype.isNetworkAvailable=function(){return this.isOnline};
var cP5=function(B){B.pollingJob=B.jobManager.addLowPriorityJob(function(){var c;return _.X(function(x){if(x.nextAddress==1)return B.isOnline?((c=window.navigator)==null?0:c.onLine)?x.jumpTo(3):_.K(x,BU9(B),3):_.K(x,BU9(B),3);cP5(B);_.Kq(x)})},3E4)},BU9=function(B,c){return B.networkRequestPromise?B.networkRequestPromise:B.networkRequestPromise=new Promise(function(x){var P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:return P=window.AbortController?new window.AbortController:void 0,g=(Y=P)==null?void 0:Y.signal,k=!1,_.kM(n,2,3),P&&(B.abortTimeoutKey=B.jobManager.addLowPriorityJob(function(){P.abort()},c||2E4)),_.K(n,fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:k=!0;case 3:_.Xt(n);B.networkRequestPromise=void 0;B.abortTimeoutKey&&(B.jobManager.cancelJob(B.abortTimeoutKey),B.abortTimeoutKey=0);k!==B.isOnline&&(B.isOnline=k,B.isOnline?B.dispatchEvent("networkstatus-online"):B.dispatchEvent("networkstatus-offline"));x(k);_.nq(n,0);break;case 2:_.be(n),k=!1,n.jumpTo(3)}})})};var WL=function(){_.V4.call(this);var B=this;this.shouldFlushErrors=!1;JZ.instance||(JZ.instance=new JZ(_.EE));this.sharedNetworkStatusManager=JZ.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(B.shouldFlushErrors&&_.T("offline_error_handling")){var c=UAO().get("errors",!0);if(c){for(var x in c)if(c[x]){var P=new _.mc(x,"sent via offline_errors");P.name=c[x].name;P.stack=c[x].stack;P.level=c[x].level;_.SI(P)}UAO().set("errors",{},2592E3,!0)}}})};
_.w(WL,_.V4);var xan=function(){if(!WL.instance){var B=_.Gu("yt.networkStatusManager.instance")||new WL;_.rr("yt.networkStatusManager.instance",B);WL.instance=B}return WL.instance};
_.a=WL.prototype;_.a.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.a.networkStatusHint=function(B){this.sharedNetworkStatusManager.isOnline=B};
_.a.getWindowStatus=function(){var B=window.navigator.onLine;return B===void 0?!0:B};
_.a.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.a.listen=function(B,c){return this.sharedNetworkStatusManager.listen(B,c)};
_.a.sendNetworkCheckRequest=function(B){B=BU9(this.sharedNetworkStatusManager,B);B.then(function(c){_.T("use_cfr_monitor")&&HA().requestComplete("generate_204",c)});
return B};
WL.prototype.sendNetworkCheckRequest=WL.prototype.sendNetworkCheckRequest;WL.prototype.listen=WL.prototype.listen;WL.prototype.enableErrorFlushing=WL.prototype.enableErrorFlushing;WL.prototype.getWindowStatus=WL.prototype.getWindowStatus;WL.prototype.networkStatusHint=WL.prototype.networkStatusHint;WL.prototype.isNetworkAvailable=WL.prototype.isNetworkAvailable;WL.getInstance=xan;_.Z$=function(B){B=B===void 0?{}:B;_.V4.call(this);var c=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=xan();var x=_.Gu("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);x&&(B.rateLimit?(this.rateLimit=B.rateLimit,x("networkstatus-online",function(){PbZ(c,"publicytnetworkstatus-online")}),x("networkstatus-offline",function(){PbZ(c,"publicytnetworkstatus-offline")})):(x("networkstatus-online",function(){c.dispatchEvent("publicytnetworkstatus-online")}),x("networkstatus-offline",
function(){c.dispatchEvent("publicytnetworkstatus-offline")})))};
_.w(_.Z$,_.V4);_.Z$.prototype.isNetworkAvailable=function(){var B=_.Gu("yt.networkStatusManager.instance.isNetworkAvailable");return B?B.bind(this.nsmInstance)():!0};
_.Z$.prototype.networkStatusHint=function(B){var c=_.Gu("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);c&&c(B)};
_.Z$.prototype.sendNetworkCheckRequest=function(B){var c=this,x;return _.X(function(P){x=_.Gu("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(c.nsmInstance);return _.T("skip_network_check_if_cfr")&&HA().isEndpointCFR("generate_204")?P.return(new Promise(function(Y){var g;c.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);Y(c.isNetworkAvailable())})):x?P.return(x(B)):P.return(!0)})};
var PbZ=function(B,c){B.rateLimit?B.lastJobTime?(_.EE.cancelJob(B.schedulerJob),B.schedulerJob=_.EE.addLowPriorityJob(function(){B.lastPublicSignalSent!==c&&(B.dispatchEvent(c),B.lastPublicSignalSent=c,B.lastJobTime=(0,_.BA)())},B.rateLimit-((0,_.BA)()-B.lastJobTime))):(B.dispatchEvent(c),B.lastPublicSignalSent=c,B.lastJobTime=(0,_.BA)()):B.dispatchEvent(c)};var mAq,lY=function(){Nc.call(this,{logsStore:{cleanLogsStore:cVC,deleteRequest:B_7,getMostRecentByStatus:rmQ,markAsQueued:Rlo,resetRequest:elw,set:DZ7},networkManager:_.T_7(),handleError:function(B,c,x){var P,Y=x==null?void 0:(P=x.error)==null?void 0:P.code;if(Y===400||Y===415){var g;B=new _.mc(B.message,c,x==null?void 0:(g=x.error)==null?void 0:g.code);_.MR(B,void 0,void 0,void 0,!0)}else _.SI(B)},
handleWarning:_.MR,sendFn:CI$,now:_.BA,writeError:dAO,jobManager:_.EB(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Yu("potential_esf_error_limit",10),getBooleanFlag:_.T,disableYtIdbTransactions:!(_.hK()&&_.VFq())});this.initializationPromise=new _.kH;_.T("networkless_immediately_drop_all_requests")&&xAo();fao("LogsDatabaseV2")};
_.w(lY,Nc);_.a63=function(){var B=_.Gu("yt.networklessRequestController.instance");B||(B=new lY,_.rr("yt.networklessRequestController.instance",B),_.T("networkless_logging")&&_.RH().then(function(c){B.databaseToken=c;D6t(B);B.initializationPromise.resolve();B.enableCleaning&&Math.random()<=B.cleaningRate&&B.databaseToken&&a3l(B.databaseToken);_.T("networkless_immediately_drop_sw_health_store")&&YbF(B)}));
return B};
lY.prototype.writeThenSend=function(B,c){c||(c={});c=h6X(B,c);_.hK()||(this.initialized=!1);Nc.prototype.writeThenSend.call(this,B,c)};
lY.prototype.sendThenWrite=function(B,c,x){c||(c={});c=h6X(B,c);_.hK()||(this.initialized=!1);Nc.prototype.sendThenWrite.call(this,B,c,x)};
lY.prototype.sendAndWrite=function(B,c){c||(c={});c=h6X(B,c);_.hK()||(this.initialized=!1);Nc.prototype.sendAndWrite.call(this,B,c)};
lY.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var YbF=function(B){var c;_.X(function(x){if(!B.databaseToken)throw c=F4("clearSWHealthLogsDb"),c;return x.return(gHx(B.databaseToken).catch(function(P){B.handleError(P)}))})};_.wqX=!1;_.tFX=_.xI.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.wqX};_.rr("ytNetworklessLoggingInitializationOptions",_.tFX);var IG=function(B){var c=this;this.config_=null;B?this.config_=B:cid()&&(this.config_=_.xr());_.Vp(_.EE,function(){Zk7(c)},5E3)};
IG.prototype.isReady=function(){!this.config_&&cid()&&(this.config_=_.xr());return!!this.config_};
var Lk7=function(B,c,x,P){!_.v5("VISITOR_DATA")&&c!=="visitor_id"&&Math.random()<.01&&_.MR(new _.mc("Missing VISITOR_DATA when sending innertube request.",c,x,P));if(!B.isReady()){var Y=new _.mc("innertube xhrclient not ready",c,x,P);_.SI(Y);throw Y;}var g={headers:P.headers||{},method:"POST",postParams:x,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()},
onFetchTimeout:P.onTimeout,onSuccess:function(C,h){if(P.onSuccess)P.onSuccess(h)},
onFetchSuccess:function(C){if(P.onSuccess)P.onSuccess(C)},
onError:function(C,h){if(P.onError)P.onError(h)},
onFetchError:function(C){if(P.onError)P.onError(C)},
timeout:P.timeout,withCredentials:!0,compress:P.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var k="";(Y=B.config_.innertubeHostOverride)&&(k=Y);var n=B.config_.innertubeUseThirdPartyAuth||!1,b=_.d9x(n,k,P);Object.assign(g.headers,b);g.headers.Authorization&&!k&&n&&(g.headers["x-origin"]=window.location.origin);var d=_.ik(k+("/youtubei/"+B.config_.innertubeApiVersion+"/"+c),{alt:"json"}),q=function(C){C=C===void 0?!1:C;var h;if(P.retry&&k!="www.youtube-nocookie.com"&&
(C||_.T("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(h=G$w(c,x,b,n)),h)){var V=g.onSuccess,N=g.onFetchSuccess;g.onSuccess=function(S,M){MBl(h);V(S,M)};
x.onFetchSuccess=function(S,M){MBl(h);N(S,M)}}try{if(C&&P.retry&&!P.networklessOptions.bypassNetworkless)g.method="POST",P.networklessOptions.writeThenSend?_.a63().writeThenSend(d,g):_.a63().sendAndWrite(d,g);
else if(P.compress){var l=!P.networklessOptions.writeThenSend;if(g.postBody){var E=g.postBody;typeof E!=="string"&&(E=JSON.stringify(g.postBody));ljO(d,E,g,_.nU,l)}else ljO(d,JSON.stringify(g.postParams),g,vWA,l)}else _.T("web_all_payloads_via_jspb")?_.nU(d,g):vWA(d,g)}catch(S){if(S.name==="InvalidAccessError")h&&(MBl(h),h=0),_.MR(Error("fd"));else throw S;}h&&_.Vp(_.EE,function(){Zk7(B)},5E3)};
_.N_O()?zkd().then(function(C){q(C)}):q(!1)};var Jrl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Jrl,_.zL);var g4W=0,JVl=_.bJ?"webkit":_.nY?"moz":_.$V?"ms":dGx?"o":"";_.rr("ytDomDomGetNextId",_.Gu("ytDomDomGetNextId")||function(){return++g4W});var sGn={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},rK=function(B){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(B=
B||window.event){this.event=B;for(var c in B)c in sGn||(this[c]=B[c]);this.scale=B.scale;this.rotation=B.rotation;var x=B.target||B.srcElement;x&&x.nodeType==3&&(x=x.parentNode);this.target=x;var P=B.relatedTarget;if(P)try{P=P.nodeName?P:null}catch(Y){P=null}else this.type=="mouseover"?P=B.fromElement:this.type=="mouseout"&&(P=B.toElement);this.relatedTarget=P;this.clientX=B.clientX!=void 0?B.clientX:B.pageX;this.clientY=B.clientY!=void 0?B.clientY:B.pageY;this.keyCode=B.keyCode?B.keyCode:B.which;
this.charCode=B.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=B.altKey;this.ctrlKey=B.ctrlKey;this.shiftKey=B.shiftKey;this.metaKey=B.metaKey;this.pageX_=B.pageX;this.pageY_=B.pageY}}catch(Y){}},poQ=function(B){if(document.body&&document.documentElement){var c=document.body.scrollTop+document.documentElement.scrollTop;
B.pageX_=B.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);B.pageY_=B.clientY+c}};
rK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
rK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
rK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var D$=_.xI.ytEventsEventsListeners||{};_.rr("ytEventsEventsListeners",D$);var Quw=_.xI.ytEventsEventsCounter||{count:0};_.rr("ytEventsEventsCounter",Quw);var FzC=_.C9(function(){var B=!1;try{var c=Object.defineProperty({},"capture",{get:function(){B=!0}});
window.addEventListener("test",null,c)}catch(x){}return B});_.sZ(el,_.tG);el.prototype.onMouseMove_=function(B){B.pageX_===void 0&&poQ(B);var c=B.pageX_;B.pageY_===void 0&&poQ(B);this.position_=new _.Jx(c,B.pageY_)};
el.prototype.checkPosition_=function(){if(this.position_){var B=(0,_.BA)();if(this.previousTime_!=0){var c=this.previousPosition_,x=this.position_,P=c.x-x.x;c=c.y-x.y;P=Math.sqrt(P*P+c*c)/(B-this.previousTime_);this.cycles_[this.index_]=Math.abs((P-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(x=c=0;x<4;x++)c+=this.cycles_[x]||0;c>=3&&this.callback_();this.previousVelocity_=P}this.previousTime_=B;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
el.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.vH7(this.mouseListenerKey_)};var GF7={};var u2$=new _.A("rawColdConfigGroup");var A9q=new _.A("rawHotConfigGroup");var kry=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kry,_.zL);var I0d=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(I0d,_.zL);var Tr=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B,500)};
_.w(Tr,_.zL);Tr.prototype.getPayloadCase=function(){return _.wQ(this,Xo5)};
Tr.prototype.getContext=function(){return _.PA(this,I0d,33)};
var Xo5=[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];var MrY=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(MrY,_.zL);var did=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(did,_.zL);did.prototype.setVideoId=function(B){return KE(this,1,qmw,Si(B))};
did.prototype.getPlaylistId=function(){return _.Uq(this,CE(this,qmw,2))};
var qmw=[1,2];var FUw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(FUw,_.zL);FUw.prototype.getContext=function(){return _.PA(this,j3,1)};
FUw.prototype.getTier=function(){return _.og(this,7)};var $a9,Po,Y4;$a9=_.xI.ytPubsubPubsubInstance||new _.KU;Po=_.xI.ytPubsubPubsubSubscribedKeys||{};Y4=_.xI.ytPubsubPubsubTopicToKeys||{};_.MFX=_.xI.ytPubsubPubsubIsSynchronous||{};_.KU.prototype.subscribe=_.KU.prototype.subscribe;_.KU.prototype.unsubscribeByKey=_.KU.prototype.unsubscribeByKey;_.KU.prototype.publish=_.KU.prototype.publish;_.KU.prototype.clear=_.KU.prototype.clear;_.rr("ytPubsubPubsubInstance",$a9);_.rr("ytPubsubPubsubTopicToKeys",Y4);_.rr("ytPubsubPubsubIsSynchronous",_.MFX);
_.rr("ytPubsubPubsubSubscribedKeys",Po);var gU=window;var Eh=_.T("web_enable_lifecycle_monitoring")&&ird()!==0,n44=_.T("web_enable_lifecycle_monitoring");var KDS=function(B){var c=this;var x=x===void 0?0:x;var P=P===void 0?_.EB():P;this.JSC$8861_defaultPriority=x;this.scheduler=P;this.completedResolver=new _.kH;this.scheduledPayloads=B;for(B={i$jscomp$486:0};B.i$jscomp$486<this.scheduledPayloads.length;B={payload$jscomp$18:void 0,i$jscomp$486:B.i$jscomp$486},B.i$jscomp$486++)B.payload$jscomp$18=this.scheduledPayloads[B.i$jscomp$486],x=function(Y){return function(){Y.payload$jscomp$18.job();c.scheduledPayloads[Y.i$jscomp$486].processed=!0;c.scheduledPayloads.every(function(g){return g.processed===
!0})&&c.completedResolver.resolve()}}(B),P=this.scheduler.addJob(x,bES(this,B.payload$jscomp$18)),this.scheduledPayloads[B.i$jscomp$486]=Object.assign({},B.payload$jscomp$18,{job:x,
jobId:P})};
KDS.prototype.flushJobs=function(){var B=this,c=Array.from(this.scheduledPayloads.keys()).sort(function(P,Y){return bES(B,B.scheduledPayloads[Y])-bES(B,B.scheduledPayloads[P])});
c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=this.scheduledPayloads[x.value],x.jobId===void 0||x.processed||(this.scheduler.cancelJob(x.jobId),this.scheduler.addJob(x.job,10))};
KDS.prototype.cancel=function(){for(var B=_.p(this.scheduledPayloads),c=B.next();!c.done;c=B.next())c=c.value,c.jobId===void 0||c.processed||this.scheduler.cancelJob(c.jobId),c.processed=!0;this.completedResolver.resolve()};
var bES=function(B,c){var x;return(x=c.priority)!=null?x:B.JSC$8861_defaultPriority};var Oh=function(B){this.state=B;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Eh&&AV7(this.state)};
Oh.prototype.install=function(B){this.plugins.push(B);return this};
Oh.prototype.uninstall=function(){var B=this;_.ts.apply(0,arguments).forEach(function(c){c=B.plugins.indexOf(c);c>-1&&B.plugins.splice(c,1)})};
Oh.prototype.transition=function(B,c){var x=this;Eh&&uIO(this.state);var P=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(k){return k===x.state&&g.to===B}):g.from===x.state&&g.to===B});
if(P){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);jGy(this,B,c);this.state=B;Eh&&AV7(this.state);P=P.action.bind(this);var Y=this.plugins.filter(function(g){return g[B]}).map(function(g){return g[B]});
P(Uad(this,Y),c)}else throw Error("gd`"+this.state+"`"+B);};
var Uad=function(B,c){var x=c.filter(function(Y){return da4(B,Y)===10}),P=c.filter(function(Y){return da4(B,Y)!==10});
return B.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Y=_.ts.apply(0,arguments);return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.runImmediateJobsAsync.apply(B,[x].concat(_.wq(Y))),2);B.setJobSetWithScheduledJobs.apply(B,[P].concat(_.wq(Y)));_.Kq(g)})}:function(){var Y=_.ts.apply(0,arguments);
B.runImmediateJobsSync.apply(B,[x].concat(_.wq(Y)));B.setJobSetWithScheduledJobs.apply(B,[P].concat(_.wq(Y)))}};
Oh.prototype.runImmediateJobsSync=function(B){var c=_.ts.apply(1,arguments);_.EB();for(var x=_.p(B),P=x.next(),Y={};!P.done;Y={lifecycle$jscomp$2:void 0},P=x.next())Y.lifecycle$jscomp$2=P.value,gV(function(g){return function(){qb0(g.lifecycle$jscomp$2.name);rVl(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.wq(c))});
oX(g.lifecycle$jscomp$2.name)}}(Y))};
Oh.prototype.runImmediateJobsAsync=function(B){var c=_.ts.apply(1,arguments),x,P,Y,g;return _.X(function(k){k.nextAddress==1&&(_.EB(),x=_.p(B),P=x.next(),Y={});if(k.nextAddress!=3){if(P.done)return k.jumpTo(0);Y.lifecycle$jscomp$3=P.value;Y.asyncJobCompletion=void 0;g=function(n){return function(){qb0(n.lifecycle$jscomp$3.name);var b=rVl(function(){return n.lifecycle$jscomp$3.callback.apply(n.lifecycle$jscomp$3,_.wq(c))});
und(b)?n.asyncJobCompletion=_.T("web_lifecycle_error_handling_killswitch")?b.then(function(){oX(n.lifecycle$jscomp$3.name)}):b.then(function(){oX(n.lifecycle$jscomp$3.name)},function(d){DAA(d);
oX(n.lifecycle$jscomp$3.name)}):oX(n.lifecycle$jscomp$3.name)}}(Y);
gV(g);return Y.asyncJobCompletion?_.K(k,Y.asyncJobCompletion,3):k.jumpTo(3)}Y={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};P=x.next();return k.jumpTo(2)})};
Oh.prototype.setJobSetWithScheduledJobs=function(B){var c=_.ts.apply(1,arguments),x=this,P=B.map(function(Y){return{job:function(){qb0(Y.name);rVl(function(){return Y.callback.apply(Y,_.wq(c))});
oX(Y.name)},
priority:da4(x,Y)}});
P.length&&(this.jobSet=new KDS(P))};
var da4=function(B,c){var x,P;return(P=(x=B.overridePriority)!=null?x:c.priority)!=null?P:0},qb0=function(B){Eh&&B&&AV7(B)},oX=function(B){Eh&&B&&uIO(B)},jGy=function(B,c,x){n44&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+B.constructor.name+"] '"+B.state+"' to '"+c+"'"),console.log("with message: ",x),console.groupEnd())};
_.AJ.Object.defineProperties(Oh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Cb4=function(B){Oh.call(this,B===void 0?"none":B);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(){}}]},hqd;
_.w(Cb4,Oh);Cb4.prototype.runApplicationNavigationBegin=function(B,c){var x=this;this.navigationTimer=_.Vp(_.EE,function(){x.currentState==="application_navigating"&&x.transition("none")},5E3);
B(c==null?void 0:c.event)};
Cb4.prototype.runApplicationNavigationEnd=function(B,c){this.navigationTimer&&(_.EE.cancelJob(this.navigationTimer),this.navigationTimer=null);B(c==null?void 0:c.event)};
_.iFd=function(){hqd||(hqd=new Cb4);return hqd};var fxO=[];_.rr("yt.logging.transport.getScrapedGelPayloads",function(){return fxO});var sb=function(){var B=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return B.totalEntries}}};
sb.prototype.storePayload=function(B,c){B=R6X(B);this.store[B]?this.store[B].push(c):(this.memoizedKeySequences={},this.store[B]=[c]);this.totalEntries++;_.T("more_accurate_gel_parser")&&(c=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(c));return B};
sb.prototype.smartExtractMatchingEntries=function(B){if(!B.keys.length)return[];for(var c=maZ(this,B.keys.splice(0,1)[0]),x=[],P=0;P<c.length;P++)this.store[c[P]]&&B.sizeLimit&&(this.store[c[P]].length<=B.sizeLimit?(x.push.apply(x,_.wq(this.store[c[P]])),delete this.store[c[P]]):x.push.apply(x,_.wq(this.store[c[P]].splice(0,B.sizeLimit))));this.totalEntries-=x.length;(B==null?0:B.sizeLimit)&&x.length<(B==null?void 0:B.sizeLimit)&&(B.sizeLimit-=x.length,x.push.apply(x,_.wq(this.smartExtractMatchingEntries(B))));
return x};
sb.prototype.extractMatchingEntries=function(B){B=maZ(this,B);for(var c=[],x=0;x<B.length;x++)this.store[B[x]]&&(c.push.apply(c,_.wq(this.store[B[x]])),delete this.store[B[x]]);this.totalEntries-=c.length;return c};
sb.prototype.getSequenceCount=function(B){B=maZ(this,B);for(var c=0,x=0;x<B.length;x++){var P=void 0;c+=((P=this.store[B[x]])==null?void 0:P.length)||0}return c};
var maZ=function(B,c){var x=R6X(c);if(B.memoizedKeySequences[x])return B.memoizedKeySequences[x];var P=Object.keys(B.store)||[];if(P.length<=1&&R6X(c)===P[0])return P;for(var Y=[],g=0;g<P.length;g++){var k=P[g].split("/");if(TUZ(c.auth,k[0])){var n=c.isJspb;TUZ(n===void 0?"undefined":n?"true":"false",k[1])&&TUZ(c.cttAuthInfo,k[2])&&(n=c.tier,n=n===void 0?"undefined":JSON.stringify(n),TUZ(n,k[3])&&Y.push(P[g]))}}return B.memoizedKeySequences[x]=Y},TUZ=function(B,c){return B===void 0||B==="undefined"?
!0:B===c};
sb.prototype.getSequenceCount=sb.prototype.getSequenceCount;sb.prototype.extractMatchingEntries=sb.prototype.extractMatchingEntries;sb.prototype.smartExtractMatchingEntries=sb.prototype.smartExtractMatchingEntries;sb.prototype.storePayload=sb.prototype.storePayload;var IxI,wWw,J97,XU,V3W,eLO,RLx,tr7,Vrq,n9l,NMd,ZFx,hL$;IxI=_.Yu("initial_gel_batch_timeout",2E3);wWw=_.Yu("gel_queue_timeout_max_ms",6E4);J97=_.Yu("gel_min_batch_size",5);XU=void 0;V3W=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
eLO=new V3W;RLx=new V3W;tr7=new V3W;Vrq=new V3W;NMd=!0;ZFx=1;_.LUC=new Map;hL$=_.xI.ytLoggingTransportTokensToCttTargetIds_||{};_.rr("ytLoggingTransportTokensToCttTargetIds_",hL$);var CF$=_.xI.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.rr("ytLoggingTransportTokensToJspbCttTargetIds_",CF$);var k4={};var wU=_.xI.ytLoggingGelSequenceIdObj_||{};_.rr("ytLoggingGelSequenceIdObj_",wU);var PAQ=[];var jmO=new Set,pHC=0,CA7=0,qLl=0,XHl=[],kl7=[],hY$=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var o0o=function(){};
o0o.prototype.getUrl=function(B,c){c=c===void 0?!1:c;return B.hasOwnProperty("shareEndpoint")?null:_.t_O(B,null,c)};
var lw$=function(B,c,x){B={endpoint:c,actions:[]};x=(x.path?x.path[0]:x.target).icon||"";c=x.indexOf(":");c>0&&(x=x.substr(c+1));x&&B.actions.push(x);return B};var l9Y=/Command$/,Wlx=/Endpoint$/,NXO=new Map;var t30,wo9;t30=1;_.Gr=function(){this.actionRoutingMap=new Map};
_.Gr.prototype.triggerAction=function(B){var c=new gf$(B,!1,_.ts.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.Gr.prototype.triggerOptionalAction=function(B){var c=new gf$(B,!0,_.ts.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.Qb=function(B,c,x){c.forEach(function(P){var Y=JXq(P);Y&&B.triggerOptionalAction(Y,P,x,void 0)})};
_.Gr.prototype.handleAction=function(B){var c=this.actionRoutingMap.get(B.actionName);c&&wo9(B,c);B.optionalAction||B.returnValue.length!==0||(B=new _.mc("Unhandled action",B.actionName),_.MR(B))};
wo9=function(B,c){c.forEach(function(x){var P=null;x?P=x.apply(null,B.args):(x=Error("hd"),x.params=B.actionName,_.SI(x));B.returnValue.push(P)})};
_.Ma=function(B,c,x){x||(x=t30++);for(var P=_.p(Object.keys(c)),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;var g=B.actionRoutingMap.get(Y);g||(g=new Map,B.actionRoutingMap.set(Y,g));B.registerActionHandler(x,Y,c[Y],g)}return x};
_.Gr.prototype.registerActionHandler=function(B,c,x,P){P.set(B,_.ya(x))};
_.LE=function(B,c,x){c=_.p(Object.keys(c));for(var P=c.next();!P.done;P=c.next())(P=B.actionRoutingMap.get(P.value))&&P.delete(x)};
_.ag(_.Gr);var v0A=function(B,c){var x=_.Gr.getInstance();_.lk(function(){var P={},Y=_.Ma(x,(P[B]=c,P));_.lP(function(){var g={};_.LE(x,(g[B]="",g),Y)})})};_.ib=Symbol("jd");ipC=mad;var eYY=new Set(["For","If","Match","Watch"]),NUZ={},I6y=(NUZ[yG.default]=function(){return G6I},NUZ.style=function(){return G6I},NUZ),JPI;
for(JPI in I6y)_.xD.attributes[JPI]=I6y[JPI](_.xD.attributes[JPI]);var RG=new _.BL("VISIBILITY_OBSERVER");var kUo={retrieve:function(B){return this.id.\u0275prov.token===B.\u0275prov.token?this.contextValue:this?CkX(this,this.id):dRw}};var S_$=function(B,c,x){if(B!==AP)return!1;B=iLX(document.createElement("div"),function(){var P=gD(!1);try{x[0]()}finally{gD(P)}});
B=Array.from(B.childNodes);B.length===1&&(B=B[0]);return B};var WD0=function(B){B=B.clone();Bbd(B);T4(B,"dg",null);T4(B,"d","0");DH4(B,null);rGF(B,null);return B},l60=!0,E45=function(B,c,x){var P=x===void 0?{}:x;
x=P.cssRowKey===void 0?void 0:P.cssRowKey;var Y=P.combinedSignature===void 0?void 0:P.combinedSignature;var g=P.extraEdges===void 0?void 0:P.extraEdges;P=P.callback===void 0?void 0:P.callback;T4(B,"m",c.join(","));g&&eEQ(B,g);x&&(T4(B,"ck",x),Y?T4(B,"rs",Y):l60&&(l60=!1));if(P){if(P!=null&&!PPS.test(P))throw Error("bb`"+P);T4(B,"cb",P)}B=B.toString();_.YI(B,"/")&&(B=EF5(document.location.href)+B);return _.kX(B)};var o4m=function(B){return OE9(B).then(function(c){return JSON.parse(c.responseText)})},OE9=function(B){var c={},x=c.xmlHttpFactory?c.xmlHttpFactory.createInstance():CVy.createInstance();
return(new _.bb(function(P,Y){var g;try{x.open("GET",B,!0)}catch(b){Y(new FH("Error opening XHR: "+b.message,B,x))}x.onreadystatechange=function(){if(x.readyState==4){_.xI.clearTimeout(g);var b;!(b=qGZ(x.status))&&(b=x.status===0)&&(b=lSn(B),b=!(b=="http"||b=="https"||b==""));b?P(x):Y(new QGy(x.status,B,x))}};
x.onerror=function(){Y(new FH("Network error",B,x))};
if(c.headers)for(var k in c.headers){var n=c.headers[k];n!=null&&x.setRequestHeader(k,n)}c.withCredentials&&(x.withCredentials=c.withCredentials);c.responseType&&(x.responseType=c.responseType);c.mimeType&&x.overrideMimeType(c.mimeType);c.timeoutMs>0&&(g=_.xI.setTimeout(function(){x.onreadystatechange=function(){};
x.abort();Y(new FD5(B,x))},c.timeoutMs));
try{x.send(null)}catch(b){x.onreadystatechange=function(){},_.xI.clearTimeout(g),Y(new FH("Error sending XHR: "+b.message,B,x))}})).thenCatch(function(P){P instanceof _.Aa&&x.abort();
throw P;})},FH=function(B,c,x){_.B$.call(this,B+", url="+c);
this.url=c;this.xhr=x};
_.sZ(FH,_.B$);FH.prototype.name="XhrError";var QGy=function(B,c,x){FH.call(this,"Request Failed, status="+B,c,x);this.status=B};
_.sZ(QGy,FH);QGy.prototype.name="XhrHttpError";var FD5=function(B,c){FH.call(this,"Request timed out",B,c)};
_.sZ(FD5,FH);FD5.prototype.name="XhrTimeoutError";YV=YV||{};var vL=function(){_.tG.call(this)};
_.sZ(vL,_.tG);vL.prototype.initialize=function(){};var v4t=function(B,c){this.fn_=B;this.handler_=c};
v4t.prototype.execute=function(B){this.fn_&&(this.fn_.call(this.handler_||null,B),this.fn_=this.handler_=null)};
v4t.prototype.abort=function(){this.handler_=this.fn_=null};var zx=function(B,c){_.tG.call(this);this.deps_=B;this.JSC$8989_id_=c;this.onloadCallbacks_=[];this.JSC$8989_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.sZ(zx,_.tG);zx.prototype.moduleConstructor_=vL;zx.prototype.module_=null;zx.prototype.getId=function(){return this.JSC$8989_id_};
zx.prototype.registerCallback=function(B,c){return zq3(this.onloadCallbacks_,B,c)};
var SbS=function(B,c){zq3(B.JSC$8989_onErrorCallbacks_,c)},zq3=function(B,c,x){c=new v4t(c,x);
B.push(c);return c};
zx.prototype.isLoaded=function(){return!!this.module_};
zx.prototype.onLoad=function(B){var c=new this.moduleConstructor_;c.initialize(B());this.module_=c;c=(c=yPW(this.earlyOnloadCallbacks_,B()))||yPW(this.onloadCallbacks_,B());c||(this.JSC$8989_onErrorCallbacks_.length=0);return c};
zx.prototype.onError=function(B){(B=yPW(this.JSC$8989_onErrorCallbacks_,B))&&P$(Error("nd`"+B));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var yPW=function(B,c){for(var x=[],P=0;P<B.length;P++)try{B[P].execute(c)}catch(Y){P$(Y),x.push(Y)}B.length=0;return x.length?x:null};
zx.prototype.disposeInternal=function(){zx.superClass_.disposeInternal.call(this);_.R3(this.module_)};var GrS,iE0,HEW,f6d,LDy,ZES,RqF,Da9,rPd;
_.yb=function(B,c,x,P,Y){P=P===void 0?!1:P;Y=Y===void 0?!1:Y;var g=g===void 0?!0:g;this.scsReferenceUrl_=Gu$(_.X_(B).toString(),g);this.cssRowKey_=c;this.combinedSignature_=x;this.useNegativeLoading_=P;this.requestedModuleMap_={};this.JSC$8992_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(B=mt(this.scsReferenceUrl_,"excm"))?B.split(","):[];this.shouldScanForCss_=Y;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;MIX();_.SV(this,REn(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
GrS=function(B,c){if(c.href||c.getAttribute("data-href"))if(c=c.href||c.getAttribute("data-href"),v6q(c)&&!Gu$(c).urlPrefix_.endsWith("_/js/")){c=REn(Gu$(c));c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,B.loadedCssModuleList_.includes(x)||B.loadedCssModuleList_.push(x)}};
_.yb.prototype.JSC$8994_loadModules=function(B,c,x){var P=x===void 0?{}:x;x=P.extraEdges;var Y=P.onError;var g=P.onSuccess;P=P.forceReload;this.JSC$8992_moduleInfoMap_=c;if(!B)throw Error("od");if(this.shouldScanForCss_){c=_.p(document.getElementsByTagName("style"));for(var k=c.next();!k.done;k=c.next())GrS(this,k.value);c=_.p(document.getElementsByTagName("link"));for(k=c.next();!k.done;k=c.next())GrS(this,k.value)}M3t(this,LDy(this,B),x,Y,g,P)};
var M3t=function(B,c,x,P,Y,g){P=P===void 0?function(){}:P;
Y=Y===void 0?function(){}:Y;
g=g===void 0?!1:g;ZES(B,c,function(k,n,b){b=b===void 0?n:b;B.enableFallbackFetch&&g?B.loadWithFetch(k,n,P,Y,b):B.load(k,n,P,Y,b,x)},x)||P(-1)};
_.yb.prototype.loadWithFetch=function(){_.X(function(){throw Error("pd");})};
_.yb.prototype.maybeSetAdditionalFields=function(){};
iE0=function(B,c,x){if(B.useNegativeLoading_){var P=B.scsReferenceUrl_;B={cssRowKey:B.cssRowKey_,combinedSignature:B.combinedSignature_,extraEdges:x,requestedModuleIds:HEW(B),requestedCssModuleIds:f6d(B)};var Y=B===void 0?{}:B;B=Y.requestedModuleIds===void 0?[]:Y.requestedModuleIds;x=Y.requestedCssModuleIds===void 0?[]:Y.requestedCssModuleIds;var g=Y.cssRowKey===void 0?void 0:Y.cssRowKey;var k=Y.combinedSignature===void 0?void 0:Y.combinedSignature;var n=Y.extraEdges===void 0?void 0:Y.extraEdges;
Y=Y.callback===void 0?void 0:Y.callback;P=WD0(P);T4(P,"d","1");DH4(P,B);rGF(P,x);c=E45(P,c,{cssRowKey:g,combinedSignature:k,extraEdges:n,callback:Y})}else P=B.scsReferenceUrl_,B={cssRowKey:B.cssRowKey_,combinedSignature:B.combinedSignature_,requestedModuleIds:HEW(B),requestedCssModuleIds:f6d(B)},n=B===void 0?{}:B,B=n.requestedCssModuleIds===void 0?[]:n.requestedCssModuleIds,x=n.cssRowKey===void 0?void 0:n.cssRowKey,g=n.combinedSignature===void 0?void 0:n.combinedSignature,k=n.extraEdges===void 0?
void 0:n.extraEdges,n=n.callback===void 0?void 0:n.callback,P=WD0(P),rGF(P,B),c=E45(P,c,{cssRowKey:x,combinedSignature:g,extraEdges:k,callback:n});return c};
_.SV=function(B,c){for(var x=!1,P=[],Y=0;Y<c.length;++Y){var g=c[Y];B.requestedModuleMap_[g]||(B.requestedModuleMap_[g]=!0,B.requestedModuleList_.push(g),x=!0,P.push(g))}x&&(B.requestedModuleListSorted_=!1)};
_.Gx=function(B,c){for(var x=[],P=0;P<c.length;++P){var Y=c[P];B.requestedModuleMap_[Y]&&(delete B.requestedModuleMap_[Y],_.Ao(B.requestedModuleList_,Y),x.push(Y))}};
_.yb.prototype.load=function(B,c,x,P,Y){Y=Y===void 0?c:Y;_.X_(B);var g=this.useCors_,k=this.corsMode_,n=this.fetchPriority,b=_.df("SCRIPT");_.Mg(b,B);g&&(b.crossOrigin=k);b.async=!1;n&&b.setAttribute("fetchpriority",n);_.SV(this,c);_.APF(this,B,b,c,x,P,Y)};
_.APF=function(B,c,x,P,Y,g,k){k=k===void 0?P:k;B.lastScript_=x;B.insertPos.insertBefore(x,B.insertPos.firstChild);_.uUQ(x,P,function(){x.parentElement.removeChild(x);B.lastScript_==x&&(B.lastScript_=null);var n=new Set;P.map(function(d){return n.add(d)});
for(var b in B.JSC$8992_moduleInfoMap_)B.JSC$8992_moduleInfoMap_[b].isLoaded()&&n.add(b);Array.from(n);g()},function(n){x.parentElement.removeChild(x);
B.lastScript_==x&&(B.lastScript_=null);_.Gx(B,n);B.pendingModuleGraphUpdate_?B.pendingModuleGraphUpdate_.then(function(){Y(-1,c)}):Y(-1,c)},k)};
_.uUQ=function(B,c,x,P,Y){Y=Y===void 0?c:Y;var g=c.length,k=function(){g=0;B.onload=null;B.onerror=null;n=function(){}},n=function(){k();
var d=Y.filter(function(q){return!lW().getModuleInfo(q).isLoaded()});
d.length!==0?P(d,"Response was successful but was missing module(s) "+d+"."):x()},b=function(){g--;
g==0&&n()};
c.forEach(function(d){d=lW().getModuleInfo(d);d.isLoaded()?b():(zq3(d.earlyOnloadCallbacks_,b),SbS(d,b))});
B.onload=function(){return n()};
B.onerror=function(){k();P(c)}};
HEW=function(B){B.requestedModuleListSorted_||(B.requestedModuleListSorted_=!0,B.requestedModuleList_.sort());return B.requestedModuleList_};
f6d=function(B){B=B.loadedCssModuleList_;B.sort();return B};
LDy=function(B,c){return c.filter(function(x){return!B.requestedModuleMap_[x]})};
ZES=function(B,c,x,P){if(B.pendingModuleGraphUpdate_)return B.pendingModuleGraphUpdate_.then(function(){ZES(B,c,x,P)}),!0;
if(!B.useNegativeLoading_){var Y=[],g=Object.assign({},B.requestedModuleMap_);Da9(B,c,function(q){Y.push(q.getId())},P,function(q){return!q.isLoaded()},g);
c=Y}for(g=0;g<c.length;){for(var k=c.length-g,n=g==0?c:c.slice(g,c.length),b=iE0(B,n,P),d=_.X_(b).toString();d.length>B.urlMaxLength;)if(k>1)k-=Math.ceil((d.length-B.urlMaxLength)/6),k=Math.max(k,1),n=c.slice(g,g+k),b=iE0(B,n,P),d=_.X_(b).toString();else return B.useNegativeLoading_?(B.useNegativeLoading_=!1,B.pendingModuleGraphUpdate_=rPd(B).then(function(q){RqF(B,q,P)}),ZES(B,c.slice(g),x,P)):!1;
g+=k;B.useNegativeLoading_?x(b,n):x(b,n,g===c.length?c:[])}return!0};
RqF=function(B,c,x){lW().setAllModuleInfoString((c||{}).moduleGraph);Da9(B,HEW(B),function(P){_.SV(B,[P.getId()])},x);
B.pendingModuleGraphUpdate_=null};
Da9=function(B,c,x,P,Y,g){g=g===void 0?{}:g;var k=lW();c=_.p(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var b=k.getModuleInfo(n);if(!(g[n]||Y&&!Y(b))){g[n]=!0;var d=b.deps_||[];if(P){var q=[];P[n]&&(q=Object.keys(P[n]));d=d.concat(q)}Da9(B,d,x,P,Y,g);x(b)}}};
rPd=function(B){B=B.scsReferenceUrl_.clone();Bbd(B);T4(B,"dg",null);T4(B,"md","1");return o4m(B.toString())};var nUl=new Uint8Array(123);var eqS=[];var BYQ=function(){this.JSC$8099_loader_=null};
_.a=BYQ.prototype;_.a.setBatchModeEnabled=function(){};
_.a.setAllModuleInfoString=function(){};
_.a.addExtraEdge=function(){throw Error("qd");};
_.a.removeExtraEdge=function(){throw Error("rd");};
_.a.getModuleContext=function(){return null};
_.a.isActive=function(){return!1};
_.a.isUserActive=function(){return!1};
_.a.registerCallback=function(){};var Mc=function(B,c,x,P,Y){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="ModuleLoadFailure";this.type=B;this.status=c;this.requestedModuleIds=x;this.url=P;this.cause=Y;this.message=this.toString()};
_.w(Mc,Error);Mc.prototype.toString=function(){return cJy(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var cJy=function(B){switch(B.type){case Mc.JSC$9004_Type.UNAUTHORIZED:return"Unauthorized";case Mc.JSC$9004_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Mc.JSC$9004_Type.TIMEOUT:return"Timed out";case Mc.JSC$9004_Type.OLD_CODE_GONE:return"Out of date module id";case Mc.JSC$9004_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+B.type}};
YV.ModuleLoadFailure=Mc;YV.ModuleLoadFailure.JSC$9004_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Lm=function(){this.moduleIds_=this.JSC$8099_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$9007_extraEdges_={};this.JSC$9007_callbackMap_={};this.JSC$9007_currentlyLoadingModule_=this.baseModuleInfo_=new zx([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new iK;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.sZ(Lm,BYQ);var xMZ=function(B,c){_.B$.call(this,"Error loading "+B+": "+c)};
_.sZ(xMZ,_.B$);Lm.prototype.setBatchModeEnabled=function(B){this.batchModeEnabled_=B};
Lm.prototype.setAllModuleInfoString=function(B,c){if(!(this instanceof Lm))this.setAllModuleInfoString(B,c);else if(typeof B==="string"){if(B.startsWith("d$")){B=B.substring(2);for(var x=[],P=0,Y=B.indexOf("/"),g=0,k=!1,n=0;;){var b=k?B.substring(g):B.substring(g,Y);if(b.length===0)P++,g="sy"+P.toString(36),b=[];else{var d=b.indexOf(":");if(d<0)g=b,b=[];else if(d===b.length-1)g=b.substring(0,d),b=Array(x[n-1]);else{g=b.substring(0,d);b=b.substring(d+1).split(",");d=n;for(var q=0;q<b.length;q++)d-=
b[q].length===0?1:Number(b[q]),b[q]=x[d]}d=0;if(g.length===0)d=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")d=Number(g);d!==0&&(P+=d,g="sy"+P.toString(36))}x.push(g);P4I(this,g,b);if(k)break;g=Y+1;Y=B.indexOf("/",g);Y===-1&&(k=!0);n++}this.moduleIds_=x}else if(B.startsWith("p$"))Ykm(this,B);else{B=B.split("/");x=[];for(P=0;P<B.length;P++){n=B[P].split(":");Y=n[0];k=[];if(n[1])for(k=n[1].split(","),n=0;n<k.length;n++)k[n]=x[parseInt(k[n],36)];x.push(Y);P4I(this,Y,k)}this.moduleIds_=x}c&&c.length?
(_.ed(this.loadingModuleIds_,c),this.lastInitialModuleId_=_.v$(c)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$9007_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$9007_currentlyLoadingModule_=null,(c=this.baseModuleInfo_.onLoad((0,_.wf)(this.getModuleContext,this)))&&c.length&&aF5(this,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.INIT_ERROR,void 0,void 0,void 0,c[0])),ZW(this))}};
var Ykm=function(B,c){var x=c.substring(2);for(c=0;c<64;c++)nUl["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(c)]=c;var P={buf:x,pos:0};cX(P);var Y=cX(P),g=cX(P)+1;c=Array(Y);var k=Array(Y),n=Array(Y);g=Array(g);var b=0,d=0,q=P.pos,C=P.buf.indexOf("|",P.pos);P.pos=C+1;for(C=0;C<Y;C++){var h=cX(P),V=h&2,N=h&1;h>>>=2;N?(b+=h>>>1^-(h&1),h="sy"+b.toString(36)):(N=q,q+=h,h=x.substring(N,q));c[C]=h;V&&(g[d++]=h)}g[d]="";P.pos++;d=Y&-2;x=Y&1;for(b=0;b<d;b+=2)q=bw7(P),n[b]=
q&7,n[b+1]=q>>>3&7;x&&(x=bw7(P),n[d]=x&7);P.pos++;for(d=0;d<Y;d++)n[d]===7&&(n[d]=cX(P));P.pos++;for(x=d=0;x<Y;x++){b=n[x];q=b===0?eqS:Array(b);k[x]=q;C=d;for(V=0;V<b;V++)C-=cX(P),q[V]=g[C];g[d]===c[x]&&d++}for(P=0;P<c.length;P++)P4I(B,c[P],k[P]);B.moduleIds_=c};
_.a=Lm.prototype;_.a.getModuleInfo=function(B){return this.moduleInfoMap[B]};
_.a.addExtraEdge=function(B,c){var x=this.getModuleInfo(B);x&&x.isLoaded()?this.load(c):(this.JSC$9007_extraEdges_[B]||(this.JSC$9007_extraEdges_[B]={}),this.JSC$9007_extraEdges_[B][c]=!0)};
_.a.removeExtraEdge=function(B,c){if(this.JSC$9007_extraEdges_[B]){delete this.JSC$9007_extraEdges_[B][c];for(var x in this.JSC$9007_extraEdges_[B])return;delete this.JSC$9007_extraEdges_[B]}};
_.a.isActive=function(){return this.loadingModuleIds_.length>0};
_.a.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var ZW=function(B){var c=B.lastActive_,x=B.isActive();x!=c&&(B.executeCallbacks_(x?"active":"idle"),B.lastActive_=x);c=B.isUserActive();c!=B.userLastActive_&&(B.executeCallbacks_(c?"userActive":"userIdle"),B.userLastActive_=c)},P4I=function(B,c,x){B.moduleInfoMap[c]?(B=B.moduleInfoMap[c].deps_,B!=x&&B.splice.apply(B,[0,
B.length].concat(_.wq(x)))):B.moduleInfoMap[c]=new zx(x,c)},s19=function(B,c,x){var P=[];
YF(c,P);c=[];for(var Y={},g=0;g<P.length;g++){var k=P[g],n=B.getModuleInfo(k);if(!n)throw Error("sd`"+k);var b=new iK;Y[k]=b;n.isLoaded()?b.callback(null):(gW4(B,k,n,!!x,b),B.isModuleLoading(k)||c.push(k))}c.length>0&&(B.loadingModuleIds_.length===0?B.loadModules_(c):(B.requestedModuleIdsQueue_.push(c),ZW(B)));return Y},gW4=function(B,c,x,P,Y){x.registerCallback(Y.callback,Y);
SbS(x,function(g){Y.errback(new xMZ(c,g))});
B.isModuleLoading(c)?P&&(pX9(B,c),ZW(B)):P&&pX9(B,c)};
Lm.prototype.loadModules_=function(B,c,x){var P=this;c||(this.consecutiveFailures_=0);var Y=kKt(this,B);this.loadingModuleIds_=Y;this.requestedLoadingModuleIds_=this.batchModeEnabled_?B:_.DA(Y);ZW(this);if(Y.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Y);if(Object.keys(this.JSC$9007_extraEdges_).length>0&&!this.JSC$8099_loader_.supportsExtraEdges)throw Error("td");B=(0,_.wf)(this.JSC$8099_loader_.JSC$8994_loadModules,this.JSC$8099_loader_,_.DA(Y),this.moduleInfoMap,{extraEdges:this.JSC$9007_extraEdges_,
forceReload:!!x,onError:function(g,k){var n=P.requestedLoadingModuleIds_;g=g!=null?g:void 0;P.consecutiveFailures_++;var b=_.DA(Y);P.requestedLoadingModuleIds_=n;Y.forEach(_.q9(_.Ao,P.requestedModuleIds_),P);g==401?(aF5(P,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.UNAUTHORIZED,g)),P.requestedModuleIdsQueue_.length=0):g==410?(XXd(P,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.OLD_CODE_GONE,g)),$M5(P)):P.consecutiveFailures_>=3?(XXd(P,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.CONSECUTIVE_FAILURES,
g,b,k)),$M5(P)):P.loadModules_(P.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.wf)(this.handleLoadTimeout_,this)});(c=Math.pow(this.consecutiveFailures_,2)*5E3)?_.xI.setTimeout(B,c):B()}};
var kKt=function(B,c){c=c.filter(function(Y){return B.moduleInfoMap[Y].isLoaded()?(_.xI.setTimeout(function(){return Error("ud`"+Y)},0),!1):!0});
for(var x=[],P=0;P<c.length;P++)x=x.concat(nWF(B,c[P]));YF(x);return!B.batchModeEnabled_&&x.length>1?(c=x.shift(),B.requestedModuleIdsQueue_=x.map(function(Y){return[Y]}).concat(B.requestedModuleIdsQueue_),[c]):x},nWF=function(B,c){var x=_.wW.createSet(B.requestedModuleIds_),P=[];
x[c]||P.push(c);c=[c];for(var Y=0;Y<c.length;Y++)for(var g=B.getModuleInfo(c[Y]).deps_,k=g.length-1;k>=0;k--){var n=g[k];B.getModuleInfo(n).isLoaded()||x[n]||(P.push(n),c.push(n))}P.reverse();YF(P);return P};
Lm.prototype.JSC$9002_setLoaded=function(){if(this.JSC$9007_currentlyLoadingModule_){var B=this.JSC$9007_currentlyLoadingModule_.getId(),c=[];if(this.JSC$9007_extraEdges_[B]){for(var x=_.p(Object.keys(this.JSC$9007_extraEdges_[B])),P=x.next();!P.done;P=x.next()){P=P.value;var Y=this.getModuleInfo(P);Y&&!Y.isLoaded()&&(this.removeExtraEdge(B,P),c.push(P))}this.loadMultiple(c)}this.isDisposed()||((c=this.moduleInfoMap[B].onLoad((0,_.wf)(this.getModuleContext,this)))&&c.length&&aF5(this,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.INIT_ERROR,
void 0,void 0,void 0,c[0])),_.Ao(this.userInitiatedLoadingModuleIds_,B),_.Ao(this.loadingModuleIds_,B),this.loadingModuleIds_.length===0&&$M5(this),this.lastInitialModuleId_&&B==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),ZW(this),this.JSC$9007_currentlyLoadingModule_=null)}};
Lm.prototype.isModuleLoading=function(B){if(_.Lx(this.loadingModuleIds_,B))return!0;for(var c=0;c<this.requestedModuleIdsQueue_.length;c++)if(_.Lx(this.requestedModuleIdsQueue_[c],B))return!0;return!1};
Lm.prototype.load=function(B,c){return s19(this,[B],c)[B]};
Lm.prototype.loadMultiple=function(B){return s19(this,B)};
var pX9=function(B,c){_.Lx(B.userInitiatedLoadingModuleIds_,c)||B.userInitiatedLoadingModuleIds_.push(c)};
Lm.prototype.beforeLoadModuleCode=function(B){var c=this;this.JSC$9007_currentlyLoadingModule_&&this.JSC$9007_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$9002_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[B]&&bly(this,this.moduleInfoMap[B].deps_||[],function(x){x.module_=new vL;_.Ao(c.loadingModuleIds_,x.getId())},function(x){return!x.isLoaded()});
this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo(B)};
Lm.prototype.handleLoadTimeout_=function(){XXd(this,new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.TIMEOUT));$M5(this)};
var XXd=function(B,c){B.requestedLoadingModuleIds_.length>1?B.requestedModuleIdsQueue_=B.requestedLoadingModuleIds_.map(function(x){return[x]}).concat(B.requestedModuleIdsQueue_):aF5(B,c)},aF5=function(B,c){var x=B.requestedLoadingModuleIds_;
B.loadingModuleIds_.length=0;for(var P=[],Y=0;Y<B.requestedModuleIdsQueue_.length;Y++){var g=B.requestedModuleIdsQueue_[Y].filter(function(b){var d=nWF(this,b);return fp(x,function(q){return _.Lx(d,q)})},B);
_.ed(P,g)}for(Y=0;Y<x.length;Y++)_.fx(P,x[Y]);for(Y=0;Y<P.length;Y++){for(g=0;g<B.requestedModuleIdsQueue_.length;g++)_.Ao(B.requestedModuleIdsQueue_[g],P[Y]);_.Ao(B.userInitiatedLoadingModuleIds_,P[Y])}if(Y=B.JSC$9007_callbackMap_.error)for(g=0;g<Y.length;g++)for(var k=Y[g],n=0;n<P.length;n++)k("error",P[n],c);for(P=0;P<x.length;P++)if(B.moduleInfoMap[x[P]])B.moduleInfoMap[x[P]].onError(c);B.requestedLoadingModuleIds_.length=0;ZW(B)},$M5=function(B){for(;B.requestedModuleIdsQueue_.length;){var c=
B.requestedModuleIdsQueue_.shift().filter(function(x){return!this.getModuleInfo(x).isLoaded()},B);
if(c.length>0){B.loadModules_(c);return}}ZW(B)};
Lm.prototype.registerCallback=function(B,c){Array.isArray(B)||(B=[B]);for(var x=0;x<B.length;x++){var P=B[x],Y=c,g=this.JSC$9007_callbackMap_;g[P]||(g[P]=[]);g[P].push(Y)}};
Lm.prototype.executeCallbacks_=function(B){for(var c=this.JSC$9007_callbackMap_[B],x=0;c&&x<c.length;x++)c[x](B)};
var bly=function(B,c,x,P,Y){P=P===void 0?function(){return!0}:P;
Y=Y===void 0?{}:Y;c=_.p(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var k=B.getModuleInfo(g);!Y[g]&&P(k)&&(Y[g]=!0,bly(B,k.deps_||[],x,P,Y),x(k))}};
Lm.prototype.dispose=function(){_.ek(_.wW.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$9007_callbackMap_={};this.isDisposed_=!0};
Lm.prototype.isDisposed=function(){return this.isDisposed_};
_.Wh=function(){return new Lm};var Ke0=[5E3,2E4],j1n=function(){this.JSC$8099_loader_=null;this.JSC$9015_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9015_queue_=[];this.JSC$9015_extraEdges_=Object.create(null);this.JSC$9015_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.w(j1n,BYQ);_.a=j1n.prototype;_.a.setAllModuleInfoString=function(){this.JSC$9015_currentlyLoadingModule_&&this.JSC$9015_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$9002_setLoaded()};
_.a.getModuleInfo=function(B){var c=this.JSC$9015_moduleInfoMap_[B];c||(c=new zx([],B),this.JSC$9015_moduleInfoMap_[B]=c);return c};
_.a.addExtraEdge=function(B,c){this.getModuleInfo(B).isLoaded()?this.load(c):(this.JSC$9015_extraEdges_[B]||(this.JSC$9015_extraEdges_[B]={}),this.JSC$9015_extraEdges_[B][c]=!0)};
_.a.removeExtraEdge=function(B,c){if(this.JSC$9015_extraEdges_[B]){delete this.JSC$9015_extraEdges_[B][c];for(var x in this.JSC$9015_extraEdges_[B])return;delete this.JSC$9015_extraEdges_[B]}};
_.a.isModuleLoading=function(B){return!!this.loadingModules_[B]};
_.a.load=function(B){UM3(this,[B]);return dM4(this,B)};
_.a.loadMultiple=function(B){var c=this,x=Object.create(null),P=[];B.forEach(function(Y){x[Y]||(x[Y]=dM4(c,Y),P.push(Y))});
UM3(this,P);return x};
_.a.beforeLoadModuleCode=function(B){var c;((c=this.JSC$9015_currentlyLoadingModule_)==null?void 0:c.getId())==="synthetic_module_overhead"&&this.JSC$9002_setLoaded();var x,P;qk9(this,(P=(x=this.JSC$9015_moduleInfoMap_[B])==null?void 0:x.deps_)!=null?P:[],function(Y){Y.module_=new vL},function(Y){return!Y.isLoaded()});
this.JSC$9015_currentlyLoadingModule_=this.getModuleInfo(B)};
_.a.JSC$9002_setLoaded=function(){if(this.JSC$9015_currentlyLoadingModule_){var B=this.JSC$9015_currentlyLoadingModule_.getId(),c=[];if(this.JSC$9015_extraEdges_[B]){for(var x=_.p(Object.keys(this.JSC$9015_extraEdges_[B])),P=x.next();!P.done;P=x.next())P=P.value,this.getModuleInfo(P).isLoaded()||(this.removeExtraEdge(B,P),c.push(P));this.loadMultiple(c)}this.JSC$9015_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9015_currentlyLoadingModule_=null;(!this.isModuleLoading(B)&&/^sy[0-9a-z]{0,4}$/.test(B)||B==="synthetic_module_overhead")&&delete this.JSC$9015_moduleInfoMap_[B];this.unsetModulesAsLoading(B)}};
_.a.setModulesAsLoading=function(){var B=this;_.ts.apply(0,arguments).forEach(function(c){B.loadingModules_[c]=!0})};
_.a.unsetModulesAsLoading=function(){var B=this;_.ts.apply(0,arguments).forEach(function(c){delete B.loadingModules_[c]})};
var dM4=function(B,c){return new _.bb(function(x,P){var Y=B.getModuleInfo(c);Y.isLoaded()?x(null):(Y.registerCallback(function(){x(null)}),SbS(Y,function(g){var k="Error loading "+c+": "+g;
g instanceof YV.ModuleLoadFailure&&g.url&&(k=k+", requested url: "+g.url.toString());P(Error(k))}))})},UM3=function(B,c){c=c.filter(function(x){return!B.isModuleLoading(x)&&!B.getModuleInfo(x).isLoaded()});
c.length>0&&(B.setModulesAsLoading.apply(B,_.wq(c)),B.JSC$9015_queue_.push(c),C43(B))},C43=function(B){for(var c={};B.activeLoads_<Infinity&&B.JSC$9015_queue_.length>0;c={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})c.ids$jscomp$36=B.JSC$9015_queue_.shift().filter(function(x){return!B.getModuleInfo(x).isLoaded()}),c.ids$jscomp$36.length>0&&(B.activeLoads_++,c.finishLoad=function(x){return function(){B.activeLoads_--;
C43(B);x.finishLoad=function(){}}}(c),_.Nf(c.ids$jscomp$36.map(function(x){return dM4(B,x)})).then(function(x){return function(){(0,x.finishLoad)()}}(c)),c.attempt$jscomp$6=0,c.load$jscomp$1=function(x){return function(){if(Object.keys(B.JSC$9015_extraEdges_).length>0&&!B.JSC$8099_loader_.supportsExtraEdges)throw Error("td");
B.JSC$8099_loader_.JSC$8994_loadModules(x.ids$jscomp$36,B.JSC$9015_moduleInfoMap_,{extraEdges:B.JSC$9015_extraEdges_,onError:function(P,Y){var g=Ke0[x.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,x.load$jscomp$1)()},g):(B.unsetModulesAsLoading.apply(B,_.wq(x.ids$jscomp$36)),(0,x.finishLoad)(),x.ids$jscomp$36.forEach(function(k){k=B.getModuleInfo(k);
if(!k.isLoaded())k.onError(new YV.ModuleLoadFailure(YV.ModuleLoadFailure.JSC$9004_Type.CONSECUTIVE_FAILURES,P,x.ids$jscomp$36,Y))}))}})}}(c),(0,c.load$jscomp$1)())},qk9=function(B,c,x,P,Y){P=P===void 0?function(){return!0}:P;
Y=Y===void 0?{}:Y;c=_.p(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var k=B.getModuleInfo(g);!Y[g]&&P(k)&&(Y[g]=!0,qk9(B,k.deps_||[],x,P,Y),x(k))}};var hh5=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var j2$=Symbol("wd");window.JSCompiler_renameProperty=function(B){return B};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var mMn=!hh5||HTMLElement.es5Shimmed||_.xI.Reflect===void 0||_.xI.customElements===void 0||_.xI.customElements.polyfillWrapFlushCallback||!1,TYn,Qhl=function(){var B=HTMLElement;if(mMn)return B;if(TYn!==void 0)return TYn;var c=_.xI.Reflect,x=function(){return c.construct(B,[],this.constructor)};
x.prototype=B.prototype;x.prototype.constructor=x;x.es5Shimmed=!0;Object.setPrototypeOf(x,B);return TYn=x},VO9=!1;mMn||VO9||(VO9=!0,_.xI.HTMLElement=Qhl());/*

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 h_X=/(url\()([^)]*)(\))/g,q9A=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,CvX,xW;var o1=!window.ShadyDOM||!window.ShadyDOM.inUse,tOy=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),wXI=!window.customElements.polyfillWrapFlushCallback,NYF;if(NYF=o1&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var IF3=new CSSStyleSheet;IF3.replaceSync("");var JJS=document.createElement("div");JJS.attachShadow({mode:"open"});JJS.shadowRoot.adoptedStyleSheets=[IF3];NYF=JJS.shadowRoot.adoptedStyleSheets[0]===IF3}catch(B){NYF=!1}
var WeS=NYF,lFW=window.Polymer&&window.Polymer.rootPath||TVO(document.baseURI||window.location.href),Uk=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Exo=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,zK=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,EWy=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ok=window.Polymer&&window.Polymer.legacyOptimizations||!1,vX=window.Polymer&&window.Polymer.legacyWarnings||!1,OlI=window.Polymer&&window.Polymer.syncInitialRender||
!1,qM=window.Polymer&&window.Polymer.legacyUndefined||!1,oWF=window.Polymer&&window.Polymer.orderedComputed||!1,HL=window.Polymer&&window.Polymer.removeNestedTemplates||!1,fm=window.Polymer&&window.Polymer.fastDomIf||!1,iY=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Q13=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Fet=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var AZ={},vWS={},hJ=function(){return HTMLElement.apply(this,arguments)||this};
_.w(hJ,HTMLElement);hJ.import=function(B,c){return B?(B=AZ[B]||vWS[B.toLowerCase()])&&c?B.querySelector(c):B:null};
hJ.prototype.attributeChangedCallback=function(B,c,x){c!==x&&this.register()};
hJ.prototype.register=function(B){if(B=B||this.id){if(zK&&(AZ[B]||vWS[B.toLowerCase()])!==void 0)throw AZ[B]=vWS[B.toLowerCase()]=null,Error("xd`"+B);this.id=B;AZ[B]=vWS[B.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.AJ.Object.defineProperties(hJ.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var B=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;B=_.PX(this.getAttribute("assetpath")||"",B.baseURI);this.__assetpath=TVO(B)}return this.__assetpath}}});
_.AJ.Object.defineProperties(hJ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
hJ["import"]=hJ.import;hJ.prototype.modules=AZ;customElements.define("dom-module",hJ);var zhn=0,t5Y=0,YW=[],Sk4=0,V5O=!1,yJm=document.createTextNode(""),GK4,l4;(new window.MutationObserver(wwq)).observe(yJm,{characterData:!0});_.uY={after:function(B){return{run:function(c){return window.setTimeout(c,B)},
cancel:function(c){window.clearTimeout(c)}}},
run:function(B,c){return window.setTimeout(B,c)},
cancel:function(B){window.clearTimeout(B)}};
_.N_={run:function(B){return window.requestAnimationFrame(B)},
cancel:function(B){window.cancelAnimationFrame(B)}};
GK4={run:function(B){return window.requestIdleCallback?window.requestIdleCallback(B):window.setTimeout(B,16)},
cancel:function(B){window.cancelIdleCallback?window.cancelIdleCallback(B):window.clearTimeout(B)}};
l4={run:function(B){V5O||(V5O=!0,yJm.textContent=Sk4++);YW.push(B);return zhn++},
cancel:function(B){var c=B-t5Y;if(c>=0){if(!YW[c])throw Error("yd`"+B);YW[c]=null}}};var MOQ=0,DW=function(B){var c=B.__mixinApplications;c||(c=new WeakMap,B.__mixinApplications=c);var x=MOQ++;return function(P){var Y=P.__mixinSet;if(Y&&Y[x])return P;var g=c,k=g.get(P);k||(k=B(P),g.set(P,k),P=Object.create(k.__mixinSet||Y||null),P[x]=!0,k.__mixinSet=P);return k}};_.jO=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(B){return ShadyDOM.patch(B)}:function(B){return B};var LeZ=DW(function(B){var c=function(){var x=B.call(this)||this;x.__dataEnabled=!1;x.__dataReady=!1;x.__dataInvalid=!1;x.__data={};x.__dataPending=null;x.__dataOld=null;x.__dataInstanceProps=null;x.__dataCounter=0;x.__serializing=!1;x._initializeProperties();return x};
_.w(c,B);c.createProperties=function(x){var P=this.prototype,Y;for(Y in x)Y in P||P._createPropertyAccessor(Y)};
c.attributeNameForProperty=function(x){return x.toLowerCase()};
c.typeForProperty=function(){};
c.prototype._createPropertyAccessor=function(x,P){this._addPropertyToAttributeMap(x);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[x]||(this.__dataHasAccessor[x]=!0,this._definePropertyAccessor(x,P))};
c.prototype._addPropertyToAttributeMap=function(x){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var P=this.__dataAttributes[x];P||(P=this.constructor.attributeNameForProperty(x),this.__dataAttributes[P]=x);return P};
c.prototype._definePropertyAccessor=function(x,P){Object.defineProperty(this,x,{get:function(){return this.__data[x]},
set:P?function(){}:function(Y){this._setPendingProperty(x,Y,!0)&&this._invalidateProperties()}})};
c.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
c.prototype._initializeProperties=function(){for(var x in this.__dataHasAccessor)this.hasOwnProperty(x)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[x]=this[x],delete this[x])};
c.prototype._initializeInstanceProperties=function(x){Object.assign(this,x)};
c.prototype._setProperty=function(x,P){this._setPendingProperty(x,P)&&this._invalidateProperties()};
c.prototype._getProperty=function(x){return this.__data[x]};
c.prototype._setPendingProperty=function(x,P){var Y=this.__data[x],g=this._shouldPropertyChange(x,P,Y);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||x in this.__dataOld||(this.__dataOld[x]=Y),this.__data[x]=P,this.__dataPending[x]=P);return g};
c.prototype._isPropertyPending=function(x){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(x))};
c.prototype._invalidateProperties=function(){var x=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,l4.run(function(){x.__dataInvalid&&(x.__dataInvalid=!1,x._flushProperties())}))};
c.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
c.prototype._flushProperties=function(){this.__dataCounter++;var x=this.__data,P=this.__dataPending,Y=this.__dataOld;this._shouldPropertiesChange(x,P,Y)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(x,P,Y));this.__dataCounter--};
c.prototype._shouldPropertiesChange=function(x,P){return!!P};
c.prototype._propertiesChanged=function(){};
c.prototype._shouldPropertyChange=function(x,P,Y){return Y!==P&&(Y===Y||P===P)};
c.prototype.attributeChangedCallback=function(x,P,Y,g){P!==Y&&this._attributeToProperty(x,Y);B.prototype.attributeChangedCallback&&B.prototype.attributeChangedCallback.call(this,x,P,Y,g)};
c.prototype._attributeToProperty=function(x,P,Y){if(!this.__serializing){var g=this.__dataAttributes;x=g&&g[x]||x;this[x]=this._deserializeValue(P,Y||this.constructor.typeForProperty(x))}};
c.prototype._propertyToAttribute=function(x,P,Y){this.__serializing=!0;Y=arguments.length<3?this[x]:Y;this._valueToNodeAttribute(this,Y,P||this.constructor.attributeNameForProperty(x));this.__serializing=!1};
c.prototype._valueToNodeAttribute=function(x,P,Y){P=this._serializeValue(P);if(Y==="class"||Y==="name"||Y==="slot")x=(0,_.jO)(x);P===void 0?x.removeAttribute(Y):x.setAttribute(Y,P===""&&window.trustedTypes?window.trustedTypes.emptyScript:P)};
c.prototype._serializeValue=function(x){switch(typeof x){case "boolean":return x?"":void 0;default:return x!=null?x.toString():void 0}};
c.prototype._deserializeValue=function(x,P){switch(P){case Boolean:return x!==null;case Number:return Number(x);default:return x}};
return c});var Zln=0,NVA=[];var Hl0=DW(function(B){function c(g){g=Object.getPrototypeOf(g);return g.prototype instanceof Y?g:null}
function x(g){if(!g.hasOwnProperty("__ownProperties")){var k=null;if(g.hasOwnProperty("properties")){var n=g.properties;if(n){k={};for(var b in n){var d=n[b];k[b]=typeof d==="function"?{type:d}:d}}}g.__ownProperties=k}return g.__ownProperties}
var P=LeZ(B),Y=function(){return P.apply(this,arguments)||this};
_.w(Y,P);Y.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=c(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
Y._finalizeClass=function(){var g=x(this);g&&this.createProperties(g)};
Y.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
Y.prototype._initializeProperties=function(){Zln++;this.constructor.finalize();P.prototype._initializeProperties.call(this)};
Y.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this._enableProperties()};
Y.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this)};
_.AJ.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){In7(this.prototype);var k=this._properties;this.__observedAttributes=k?Object.keys(k).map(function(n){return g.prototype._addPropertyToAttributeMap(n)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=c(this);this.__properties=Object.assign({},g&&g._properties,x(this))}return this.__properties}}});
return Y});var JWY={},WgI=/-[a-z]/g,lnx=/([A-Z])/g;for(var fFQ={},iln=HTMLElement.prototype;iln;){for(var AJn=Object.getOwnPropertyNames(iln),upF=0;upF<AJn.length;upF++)fFQ[AJn[upF]]=!0;iln=Object.getPrototypeOf(iln)}var DM9=window.trustedTypes?function(B){return trustedTypes.isHTML(B)||trustedTypes.isScript(B)||trustedTypes.isScriptURL(B)}:function(){return!1},rJ5=DW(function(B){var c=LeZ(B);
B=function(){return c.apply(this,arguments)||this};
_.w(B,c);B.createPropertiesForAttributes=function(){for(var x=this.observedAttributes,P=0;P<x.length;P++)this.prototype._createPropertyAccessor(a1(x[P]))};
B.attributeNameForProperty=function(x){return gY(x)};
B.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);c.prototype._initializeProperties.call(this)};
B.prototype._initializeProtoProperties=function(x){for(var P in x)this._setProperty(P,x[P])};
B.prototype._ensureAttribute=function(x,P){this.hasAttribute(x)||this._valueToNodeAttribute(this,P,x)};
B.prototype._serializeValue=function(x){switch(typeof x){case "object":if(x instanceof Date)return x.toString();if(x){if(DM9(x))return x;try{return JSON.stringify(x)}catch(P){return""}}default:return c.prototype._serializeValue.call(this,x)}};
B.prototype._deserializeValue=function(x,P){switch(P){case Object:try{var Y=JSON.parse(x)}catch(g){Y=x}break;case Array:try{Y=JSON.parse(x)}catch(g){Y=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+x)}break;case Date:Y=isNaN(x)?String(x):Number(x);Y=new Date(Y);break;default:Y=c.prototype._deserializeValue.call(this,x,P)}return Y};
B.prototype._definePropertyAccessor=function(x,P){if(!fFQ[x]){var Y=this[x];Y!==void 0&&(this.__data?this._setPendingProperty(x,Y):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[x]=Y))}c.prototype._definePropertyAccessor.call(this,x,P)};
B.prototype._hasAccessor=function(x){return this.__dataHasAccessor&&this.__dataHasAccessor[x]};
B.prototype._isPropertyPending=function(x){return!!(this.__dataPending&&x in this.__dataPending)};
return B});var RhI={"dom-if":!0,"dom-repeat":!0},ehQ=!1,BxZ=!1,cgd=function(){var B=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(c){return c}});
return function(c,x,P){x=x.getAttribute(P);B&&P.startsWith("on-")?c.setAttribute(P,B.createScript(x,P)):c.setAttribute(P,x)}}(),xp3=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c._parseTemplate=function(x,P){if(!x._templateInfo){var Y=x._templateInfo={};Y.nodeInfoList=[];Y.nestedTemplate=!!P;Y.stripWhiteSpace=P&&P.stripWhiteSpace||x.hasAttribute&&x.hasAttribute("strip-whitespace");this._parseTemplateContent(x,Y,{parent:null})}return x._templateInfo};
c._parseTemplateContent=function(x,P,Y){return this._parseTemplateNode(x.content,P,Y)};
c._parseTemplateNode=function(x,P,Y){var g=!1;x.localName!="template"||x.hasAttribute("preserve-content")?x.localName==="slot"&&(P.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(x,P,Y)||g;if(!ehQ){ehQ=!0;var k=document.createElement("textarea");k.placeholder="a";BxZ=k.placeholder===k.textContent}BxZ&&x.localName==="textarea"&&x.placeholder&&x.placeholder===x.textContent&&(x.textContent=null);x.firstChild&&this._parseTemplateChildNodes(x,P,Y);x.hasAttributes&&x.hasAttributes()&&(g=this._parseTemplateNodeAttributes(x,
P,Y)||g);return g||Y.noted};
c._parseTemplateChildNodes=function(x,P,Y){if(x.localName!=="script"&&x.localName!=="style")for(var g=x.firstChild,k=0,n;g;g=n){if(g.localName=="template"){var b=g.getAttribute("is");if(b&&RhI[b])for(n=g,n.removeAttribute("is"),g=n.ownerDocument.createElement(b),n.parentNode.replaceChild(g,n),g.appendChild(n);n.attributes.length;)b=n.attributes[0].name,cgd(g,n,b),n.removeAttribute(b)}n=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(b=n;b&&b.nodeType===Node.TEXT_NODE;)g.textContent+=b.textContent,
n=b.nextSibling,x.removeChild(b),b=n;if(P.stripWhiteSpace&&!g.textContent.trim()){x.removeChild(g);continue}}b={parentIndex:k,parentInfo:Y};this._parseTemplateNode(g,P,b)&&(b.infoIndex=P.nodeInfoList.push(b)-1);g.parentNode&&k++}};
c._parseTemplateNestedTemplate=function(x,P,Y){P=this._parseTemplate(x,P);(P.content=x.content.ownerDocument.createDocumentFragment()).appendChild(x.content);Y.templateInfo=P;return!0};
c._parseTemplateNodeAttributes=function(x,P,Y){for(var g=!1,k=Array.from(x.attributes),n=k.length-1,b;b=k[n];n--)g=this._parseTemplateNodeAttribute(x,P,Y,b.name,b.value)||g;return g};
c._parseTemplateNodeAttribute=function(x,P,Y,g,k){return g.slice(0,3)==="on-"?(x.removeAttribute(g),Y.events=Y.events||[],Y.events.push({name:g.slice(3),value:k}),!0):g==="id"?(Y.id=k,!0):!1};
c._contentForTemplate=function(x){var P=x._templateInfo;return P&&P.content||x.content};
c.prototype._stampTemplate=function(x,P){x&&!x.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(x);P=P||this.constructor._parseTemplate(x);var Y=P.nodeInfoList;x=document.importNode(P.content||x.content,!0);x.__noInsertionPoint=!P.hasInsertionPoint;var g=x.nodeList=Array(Y.length);x.$={};for(var k=0,n=Y.length,b=void 0;k<n&&(b=Y[k]);k++){var d=g[k]=EUq(x,b);b.id&&(x.$[b.id]=d);var q=d,C=b,h=P;C.templateInfo&&(q._templateInfo=C.templateInfo,q._parentTemplateInfo=
h);if(b.events&&b.events.length)for(q=0,C=b.events,h=void 0;q<C.length&&(h=C[q]);q++)this._addMethodEventListenerToNode(d,h.name,h.value,this)}return x};
c.prototype._addMethodEventListenerToNode=function(x,P,Y,g){Y=OwC(g||x,Y);this._addEventListenerToNode(x,P,Y);return Y};
c.prototype._addEventListenerToNode=function(x,P,Y){x.addEventListener(P,Y)};
c.prototype._removeEventListenerFromNode=function(x,P,Y){x.removeEventListener(P,Y)};
return c});var b4=0,dY=[],PhW={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},YnI=/[A-Z]/,aat=function(B,c,x,P,Y){var g=Y?pl(B):B;if(c=c[g])for(g=0;g<c.length;g++){var k=c[g];if(k.info.lastRun!==b4&&(!Y||S97(B,k.trigger))){k.info.lastRun=b4;k=k.info;for(var n=x,b=P,d=0,q=n.length-1,C=-1;d<=q;){var h=d+q>>1,V=b.get(n[h].methodInfo)-b.get(k.methodInfo);if(V<0)d=h+1;else if(V>0)q=h-1;else{C=h;break}}C<
0&&(C=q+1);n.splice(C,0,k)}}},B$X=[],gd4=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"),RX=DW(function(B){var c=xp3(rJ5(B));
B=function(){var x=c.call(this)||this;x.__isPropertyEffectsClient=!0;return x};
_.w(B,c);B.prototype._initializeProperties=function(){c.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};
B.prototype._registerHost=function(){if(rR.length){var x=rR[rR.length-1];x._enqueueClient(this);this.__dataHost=x}};
B.prototype._initializeProtoProperties=function(x){this.__data=Object.create(x);this.__dataPending=Object.create(x);this.__dataOld={}};
B.prototype._initializeInstanceProperties=function(x){var P=this.__readOnly,Y;for(Y in x)P&&P[Y]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Y]=this.__dataPending[Y]=x[Y])};
B.prototype._addPropertyEffect=function(x,P,Y){this._createPropertyAccessor(x,P=="__readOnly");var g=z_x(this,P,!0)[x];g||(g=this[P][x]=[]);g.push(Y)};
B.prototype._removePropertyEffect=function(x,P,Y){x=z_x(this,P,!0)[x];Y=x.indexOf(Y);Y>=0&&x.splice(Y,1)};
B.prototype._hasPropertyEffect=function(x,P){P=this[P];return!(!P||!P[x])};
B.prototype._hasReadOnlyEffect=function(x){return this._hasPropertyEffect(x,"__readOnly")};
B.prototype._hasNotifyEffect=function(x){return this._hasPropertyEffect(x,"__notifyEffects")};
B.prototype._hasReflectEffect=function(x){return this._hasPropertyEffect(x,"__reflectEffects")};
B.prototype._hasComputedEffect=function(x){return this._hasPropertyEffect(x,"__computeEffects")};
B.prototype._setPendingPropertyOrPath=function(x,P,Y,g){if(g||pl(Array.isArray(x)?x[0]:x)!==x){if(!g&&(g=nl(this,x),x=vUA(this,x,P),!x||!c.prototype._shouldPropertyChange.call(this,x,P,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(x,P,Y)){if(Y=this.__dataLinkedPaths)for(var k in Y)g=Y[k],kW(k,x)?(g=Xp(k,g,x),this._setPendingPropertyOrPath(g,P,!0,!0)):kW(g,x)&&(g=Xp(g,k,x),this._setPendingPropertyOrPath(g,P,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[x])return this._setPendingProperty(x,
P,Y);this[x]=P}return!1};
B.prototype._setUnmanagedPropertyToNode=function(x,P,Y){if(Y!==x[P]||typeof Y=="object")P==="className"&&(x=(0,_.jO)(x)),x[P]=Y};
B.prototype._setPendingProperty=function(x,P,Y){var g=this.__dataHasPaths&&sk(x);if(this._shouldPropertyChange(x,P,(g?this.__dataTemp:this.__data)[x])){this.__dataPending||(this.__dataPending={},this.__dataOld={});x in this.__dataOld||(this.__dataOld[x]=this.__data[x]);g?this.__dataTemp[x]=P:this.__data[x]=P;this.__dataPending[x]=P;if(g||this.__notifyEffects&&this.__notifyEffects[x])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[x]=Y;return!0}return!1};
B.prototype._setProperty=function(x,P){this._setPendingProperty(x,P,!0)&&this._invalidateProperties()};
B.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
B.prototype._enqueueClient=function(x){this.__dataPendingClients=this.__dataPendingClients||[];x!==this&&this.__dataPendingClients.push(x)};
B.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
B.prototype.__enableOrFlushClients=function(){var x=this.__dataPendingClients;if(x){this.__dataPendingClients=null;for(var P=0;P<x.length;P++){var Y=x[P];Y.__dataEnabled?Y.__dataPending&&Y._flushProperties():Y._enableProperties()}}};
B.prototype._readyClients=function(){this.__enableOrFlushClients()};
B.prototype.setProperties=function(x,P){for(var Y in x)!P&&this.__readOnly&&this.__readOnly[Y]||this._setPendingPropertyOrPath(Y,x[Y],!0);this._invalidateProperties()};
B.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
B.prototype._propertiesChanged=function(x,P,Y){x=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(oWF){b4++;var k=Hw7(this),n=[],b;for(b in P)aat(b,g,n,k,x);for(;b=n.shift();)iwq(this,"",P,Y,b)&&aat(b.methodInfo,g,n,k,x);Object.assign(Y,this.__dataOld);Object.assign(P,this.__dataPending);this.__dataPending=null}else for(k=P;Kl(this,g,k,Y,x);)Object.assign(Y,this.__dataOld),Object.assign(P,this.__dataPending),k=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(P,Y,x);this._flushClients();Kl(this,this.__reflectEffects,P,Y,x);Kl(this,this.__observeEffects,P,Y,x);if(g){k=this.__notifyEffects;n=b4++;for(var d in g)if(g[d]){if(b=k){var q=k;b=n;var C=d,h=P,V=Y,N=x,l=!1,E=N?pl(C):C;if(q=q[E]){E=0;for(var S=q.length,M=void 0;E<S&&(M=q[E]);E++)M.info&&M.info.lastRun===b||N&&!S97(C,M.trigger)||(M.info&&(M.info.lastRun=b),M.fn(this,C,h,V,M.info,N,void 0),l=!0)}b=l}if(b)var f=!0;else{if(b=x)b=d,C=P,h=pl(b),h!==
b?(h=gY(h)+"-changed",GUA(this,h,C[b],b),b=!0):b=!1;b&&(f=!0)}}var Z;f&&(Z=this.__dataHost)&&Z._invalidateProperties&&Z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
B.prototype._propagatePropertyChanges=function(x,P,Y){this.__propagateEffects&&Kl(this,this.__propagateEffects,x,P,Y);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,x,P,Y)};
B.prototype._runEffectsForTemplate=function(x,P,Y,g){var k=this,n=function(b,d){Kl(k,x.propertyEffects,b,Y,d,x.nodeList);for(var q=x.firstChild;q;q=q.nextSibling)k._runEffectsForTemplate(q,b,Y,d)};
x.runEffects?x.runEffects(n,P,g):n(P,g)};
B.prototype.linkPaths=function(x,P){x=$W(x);P=$W(P);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[x]=P};
B.prototype.unlinkPaths=function(x){x=$W(x);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[x]};
B.prototype.notifySplices=function(x,P){var Y={path:""};x=nl(this,x,Y);YyY(this,x,Y.path,P)};
B.prototype.get=function(x,P){return nl(P||this,x)};
B.prototype.set=function(x,P,Y){Y?vUA(Y,x,P):this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,P,!0)&&this._invalidateProperties()};
B.prototype.push=function(x){var P=_.ts.apply(1,arguments),Y={path:""},g=nl(this,x,Y),k=g.length,n=g.push.apply(g,_.wq(P));P.length&&Cl(this,g,Y.path,k,P.length,[]);return n};
B.prototype.pop=function(x){var P={path:""};x=nl(this,x,P);var Y=!!x.length,g=x.pop();Y&&Cl(this,x,P.path,x.length,0,[g]);return g};
B.prototype.splice=function(x,P,Y){var g=_.ts.apply(3,arguments),k={path:""},n=nl(this,x,k);P<0?P=n.length-Math.floor(-P):P&&(P=Math.floor(P));var b=arguments.length===2?n.splice(P):n.splice.apply(n,[P,Y].concat(_.wq(g)));(g.length||b.length)&&Cl(this,n,k.path,P,g.length,b);return b};
B.prototype.shift=function(x){var P={path:""};x=nl(this,x,P);var Y=!!x.length,g=x.shift();Y&&Cl(this,x,P.path,0,0,[g]);return g};
B.prototype.unshift=function(x){var P=_.ts.apply(1,arguments),Y={path:""},g=nl(this,x,Y),k=g.unshift.apply(g,_.wq(P));P.length&&Cl(this,g,Y.path,0,P.length,[]);return k};
B.prototype.notifyPath=function(x,P){if(arguments.length==1){var Y={path:""};P=nl(this,x,Y);Y=Y.path}else Y=Array.isArray(x)?$W(x):x;this._setPendingPropertyOrPath(Y,P,!0,!0)&&this._invalidateProperties()};
B.prototype._createReadOnlyProperty=function(x,P){this._addPropertyEffect(x,"__readOnly");P&&(this["_set"+(x[0].toUpperCase()+x.substring(1))]=function(Y){this._setProperty(x,Y)})};
B.prototype._createPropertyObserver=function(x,P,Y){var g={property:x,method:P,dynamicFn:!!Y};this._addPropertyEffect(x,"__observeEffects",{fn:yWQ,info:g,trigger:{name:x}});Y&&this._addPropertyEffect(P,"__observeEffects",{fn:yWQ,info:g,trigger:{name:P}})};
B.prototype._createMethodObserver=function(x,P){var Y=xvd(x);if(!Y)throw Error("zd`"+x);R_Q(this,Y,"__observeEffects",fnw,null,P)};
B.prototype._createNotifyingProperty=function(x){this._addPropertyEffect(x,"__notifyEffects",{fn:M5Y,info:{eventName:gY(x)+"-changed",property:x}})};
B.prototype._createReflectedProperty=function(x){var P=this.constructor.attributeNameForProperty(x);P[0]==="-"?console.warn("Property "+x+" 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(x,"__reflectEffects",{fn:Lgl,info:{attrName:P}})};
B.prototype._createComputedProperty=function(x,P,Y){var g=xvd(P);if(!g)throw Error("Ad`"+P);P=R_Q(this,g,"__computeEffects",iwq,x,Y);z_x(this,"__computeInfo")[x]=P};
B.prototype._marshalArgs=function(x,P,Y){for(var g=this.__data,k=[],n=0,b=x.length;n<b;n++){var d=x[n],q=d.name,C=d.structured,h=d.wildcard,V=d.value;d.literal||(h?(d=kW(q,P),C=PR7(g,Y,d?P:q),V={path:d?P:q,value:C,base:d?nl(g,q):C}):V=C?PR7(g,Y,q):g[q]);if(qM&&!this._overrideLegacyUndefined&&V===void 0&&x.length>1)return dY;k[n]=V}return k};
B.addPropertyEffect=function(x,P,Y){this.prototype._addPropertyEffect(x,P,Y)};
B.createPropertyObserver=function(x,P,Y){this.prototype._createPropertyObserver(x,P,Y)};
B.createMethodObserver=function(x,P){this.prototype._createMethodObserver(x,P)};
B.createNotifyingProperty=function(x){this.prototype._createNotifyingProperty(x)};
B.createReadOnlyProperty=function(x,P){this.prototype._createReadOnlyProperty(x,P)};
B.createReflectedProperty=function(x){this.prototype._createReflectedProperty(x)};
B.createComputedProperty=function(x,P,Y){this.prototype._createComputedProperty(x,P,Y)};
B.bindTemplate=function(x){return this.prototype._bindTemplate(x)};
B.prototype._bindTemplate=function(x,P){var Y=this.constructor._parseTemplate(x),g=this.__preBoundTemplateInfo==Y;if(!g)for(var k in Y.propertyEffects)this._createPropertyAccessor(k);P?(Y=Object.create(Y),Y.wasPreBound=g,this.__templateInfo?(x=x._parentTemplateInfo||this.__templateInfo,P=x.lastChild,Y.parent=x,x.lastChild=Y,(Y.previousSibling=P)?P.nextSibling=Y:x.firstChild=Y):this.__templateInfo=Y):this.__preBoundTemplateInfo=Y;return Y};
B._addTemplatePropertyEffect=function(x,P,Y){(x.hostProps=x.hostProps||{})[P]=!0;x=x.propertyEffects=x.propertyEffects||{};(x[P]=x[P]||[]).push(Y)};
B.prototype._stampTemplate=function(x,P){P=P||this._bindTemplate(x,!0);rR.push(this);x=c.prototype._stampTemplate.call(this,x,P);rR.pop();P.nodeList=x.nodeList;if(!P.wasPreBound)for(var Y=P.childNodes=[],g=x.firstChild;g;g=g.nextSibling)Y.push(g);x.templateInfo=P;Y=P.nodeList;g=P.nodeInfoList;if(g.length)for(var k=0;k<g.length;k++){var n=Y[k],b=g[k].bindings;if(b)for(var d=0;d<b.length;d++){var q=b[d],C=n,h=q;if(h.isCompound){for(var V=C.__dataCompoundStorage||(C.__dataCompoundStorage={}),N=h.parts,
l=Array(N.length),E=0;E<N.length;E++)l[E]=N[E].literal;N=h.target;V[N]=l;h.literal&&h.kind=="property"&&(N==="className"&&(C=(0,_.jO)(C)),C[N]=h.literal)}rWq(n,this,q)}n.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(P,this.__data,null,!1),this._flushClients());return x};
B.prototype._removeBoundDom=function(x){x=x.templateInfo;var P=x.previousSibling,Y=x.nextSibling,g=x.parent;P?P.nextSibling=Y:g&&(g.firstChild=Y);Y?Y.previousSibling=P:g&&(g.lastChild=P);x.nextSibling=x.previousSibling=null;x=x.childNodes;for(P=0;P<x.length;P++)Y=x[P],(0,_.jO)((0,_.jO)(Y).parentNode).removeChild(Y)};
B._parseTemplateNode=function(x,P,Y){var g=c._parseTemplateNode.call(this,x,P,Y);if(x.nodeType===Node.TEXT_NODE){var k=this._parseBindings(x.textContent,P);k&&(x.textContent=e_l(k)||" ",De7(this,P,Y,"text","textContent",k),g=!0)}return g};
B._parseTemplateNodeAttribute=function(x,P,Y,g,k){var n=this._parseBindings(k,P);if(n){k=g;var b="property";YnI.test(g)?b="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),b="attribute");var d=e_l(n);d&&b=="attribute"&&(g=="class"&&x.hasAttribute("class")&&(d+=" "+x.getAttribute(g)),x.setAttribute(g,d));b=="attribute"&&k=="disable-upgrade$"&&x.setAttribute(g,"");x.localName==="input"&&k==="value"&&x.setAttribute(k,"");x.removeAttribute(k);b==="property"&&(g=a1(g));De7(this,P,Y,b,g,n,d);return!0}return c._parseTemplateNodeAttribute.call(this,
x,P,Y,g,k)};
B._parseTemplateNestedTemplate=function(x,P,Y){var g=c._parseTemplateNestedTemplate.call(this,x,P,Y),k=x.parentNode,n=Y.templateInfo,b=k.localName==="dom-if",d=k.localName==="dom-repeat";HL&&(b||d)&&(k.removeChild(x),Y=Y.parentInfo,Y.templateInfo=n,Y.noted=!0,g=!1);x=n.hostProps;if(fm&&b)x&&(P.hostProps=Object.assign(P.hostProps||{},x),HL||(Y.parentInfo.noted=!0));else for(var q in x)De7(this,P,Y,"property","_host_"+q,[{mode:"{",source:q,dependencies:[q],hostProp:!0}]);return g};
B._parseBindings=function(x,P){for(var Y=[],g=0,k;(k=gd4.exec(x))!==null;){k.index>g&&Y.push({literal:x.slice(g,k.index)});g=k[1][0];var n=!!k[2];k=k[3].trim();var b=!1,d="",q=-1;g=="{"&&(q=k.indexOf("::"))>0&&(d=k.substring(q+2),k=k.substring(0,q),b=!0);q=xvd(k);var C=[];if(q){var h=q,V=h.args;h=h.methodName;for(var N=0;N<V.length;N++){var l=V[N];l.literal||C.push(l)}if((V=P.dynamicFns)&&V[h]||q.static)C.push(h),q.dynamicFn=!0}else C.push(k);Y.push({source:k,mode:g,negate:n,customEvent:b,signature:q,
dependencies:C,event:d});g=gd4.lastIndex}g&&g<x.length&&(x=x.substring(g))&&Y.push({literal:x});return Y.length?Y:null};
B._evaluateBinding=function(x,P,Y,g,k,n){x=P.signature?fnw(x,Y,g,k,P.signature):Y!=P.source?nl(x,P.source):n&&sk(Y)?nl(x,Y):x.__data[Y];P.negate&&(x=!x);return x};
_.AJ.Object.defineProperties(B.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return PhW}}});
return B}),rR=[];var ss0=window.ShadyCSS&&window.ShadyCSS.cssBuild,eV=DW(function(B){function c(P,Y,g,k){if(!ss0){for(var n=Y.content.querySelectorAll("style"),b=pvY(Y),d=kjQ(g),q=Y.content.firstElementChild,C=0;C<d.length;C++){var h=d[C];h.textContent=P._processStyleText(h.textContent,k);Y.content.insertBefore(h,q)}for(q=d=0;q<b.length;q++)C=b[q],h=n[d],h!==C?(C=C.cloneNode(!0),h.parentNode.insertBefore(C,h)):d++,C.textContent=P._processStyleText(C.textContent,k)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Y,
g);if(Fet&&ss0&&WeS&&(Y=Y.content.querySelectorAll("style"))){var V="";Array.from(Y).forEach(function(N){V+=N.textContent;N.parentNode.removeChild(N)});
P._styleSheet=new CSSStyleSheet;P._styleSheet.replaceSync(V)}}
var x=Hl0(RX(B));B=function(){return x.call(this)||this};
_.w(B,x);B._finalizeClass=function(){x._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()};
B._prepareTemplate=function(){var P=this.template;P&&(typeof P==="string"?(console.error("template getter must return HTMLTemplateElement"),P=null):Ok||(P=P.cloneNode(!0)));this.prototype._template=P};
B.createProperties=function(P){for(var Y in P){var g=this.prototype,k=Y,n=P[Y],b=P;n.computed&&(n.readOnly=!0);n.computed&&(g._hasReadOnlyEffect(k)?console.warn("Cannot redefine computed property '"+k+"'."):g._createComputedProperty(k,n.computed,b));n.readOnly&&!g._hasReadOnlyEffect(k)?g._createReadOnlyProperty(k,!n.computed):n.readOnly===!1&&g._hasReadOnlyEffect(k)&&console.warn("Cannot make readOnly property '"+k+"' non-readOnly.");n.reflectToAttribute&&!g._hasReflectEffect(k)?g._createReflectedProperty(k):
n.reflectToAttribute===!1&&g._hasReflectEffect(k)&&console.warn("Cannot make reflected property '"+k+"' non-reflected.");n.notify&&!g._hasNotifyEffect(k)?g._createNotifyingProperty(k):n.notify===!1&&g._hasNotifyEffect(k)&&console.warn("Cannot make notify property '"+k+"' non-notify.");n.observer&&g._createPropertyObserver(k,n.observer,b[n.observer]);g._addPropertyToAttributeMap(k)}};
B.createObservers=function(P,Y){for(var g=this.prototype,k=0;k<P.length;k++)g._createMethodObserver(P[k],Y)};
B.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);x.prototype._initializeProperties.call(this);this.rootPath=lFW;this.importPath=this.constructor.importPath;var P=this.constructor;if(!P.hasOwnProperty("__propertyDefaults")){P.__propertyDefaults=null;var Y=P._properties,g;for(g in Y){var k=Y[g];"value"in k&&(P.__propertyDefaults=P.__propertyDefaults||{},P.__propertyDefaults[g]=k)}}if(P=P.__propertyDefaults)for(var n in P)Y=P[n],
this._canApplyPropertyDefault(n)&&(Y=typeof Y.value=="function"?Y.value.call(this):Y.value,this._hasAccessor(n)?this._setPendingProperty(n,Y,!0):this[n]=Y)};
B.prototype._canApplyPropertyDefault=function(P){return!this.hasOwnProperty(P)};
B._processStyleText=function(P,Y){return med(P,Y)};
B._finalizeTemplate=function(P){var Y=this.prototype._template;if(Y&&!Y.__polymerFinalized){Y.__polymerFinalized=!0;var g=this.importPath;g=g?_.PX(g):"";c(this,Y,P,g);this.prototype._bindTemplate(Y)}};
B.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);x.prototype.connectedCallback.call(this)};
B.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);x.prototype.ready.call(this)};
B.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));x.prototype._readyClients.call(this)};
B.prototype._attachDom=function(P){var Y=(0,_.jO)(this);if(Y.attachShadow)return P?(Y.shadowRoot||(Y.attachShadow({mode:"open",shadyUpgradeFragment:P}),Y.shadowRoot.appendChild(P),this.constructor._styleSheet&&(Y.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),OlI&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Y.shadowRoot),Y.shadowRoot):null;throw Error("Cd");};
B.prototype.updateStyles=function(P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,P)};
B.prototype.resolveUrl=function(P,Y){!Y&&this.importPath&&(Y=_.PX(this.importPath));return _.PX(P,Y)};
B._parseTemplateContent=function(P,Y,g){Y.dynamicFns=Y.dynamicFns||this._properties;return x._parseTemplateContent.call(this,P,Y,g)};
B._addTemplatePropertyEffect=function(P,Y,g){!vX||Y in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||P.nestedTemplate||console.warn("Property '"+Y+"' used in template but not declared in 'properties'; attribute will not be observed.");return x._addTemplatePropertyEffect.call(this,P,Y,g)};
_.AJ.Object.defineProperties(B,{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 Y=null;if(P&&(!zK||EWy)&&(Y=hJ.import(P,"template"),zK&&!Y))throw Error("Bd`"+P);P=Y}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=TVO(P.url):this._importPath=(P=hJ.import(this.is))&&P.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return B});var pf0=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(B){return B}}),UvI=function(B,c){kk3(B,c);
this.value=c.reduce(function(x,P,Y){return x+dvY(P)+B[Y+1]},B[0]).toString()},kk3;
UvI.prototype.toString=function(){return this.value};
_.Xfm=function(B){var c=_.ts.apply(1,arguments);kk3(B,c);var x=document.createElement("template");c=c.reduce(function(P,Y,g){if(Y instanceof HTMLTemplateElement)Y=Y.innerHTML;else if(Y instanceof UvI)Y=dvY(Y);else throw Error("Ed`"+Y);return P+Y+B[g+1]},B[0]);
pf0&&(c=pf0.createHTML(c));x.innerHTML=c;return x};
kk3=function(B,c){if(!Array.isArray(B)||!Array.isArray(B.raw)||c.length!==B.length-1)throw new TypeError("Fd");};var B6=eV(HTMLElement);var $pt=DW(function(B){var c=eV(B);B=function(){var x=c.call(this)||this;x.__lastItems=null;x.__lastMulti=null;x.__selectedMap=null;return x};
_.w(B,c);B.prototype.__updateSelection=function(x,P){var Y=P.path;Y=="items"?(P=P.base||[],Y=this.__lastItems,x!==this.__lastMulti&&this.clearSelection(),Y&&(Y=jFQ(P,Y),this.__applySplices(Y)),this.__lastItems=P,this.__lastMulti=x):P.path=="items.splices"?this.__applySplices(P.value.indexSplices):(x=Y.slice(6),P=parseInt(x,10),x.indexOf(".")<0&&x==P&&this.__deselectChangedIdx(P))};
B.prototype.__applySplices=function(x){for(var P=this,Y=this.__selectedMap,g={},k=0;k<x.length;g={s$jscomp$108:void 0},k++){g.s$jscomp$108=x[k];Y.forEach(function(q){return function(C,h){C<q.s$jscomp$108.index||(C>=q.s$jscomp$108.index+q.s$jscomp$108.removed.length?Y.set(h,C+q.s$jscomp$108.addedCount-q.s$jscomp$108.removed.length):Y.set(h,-1))}}(g));
for(var n=0;n<g.s$jscomp$108.addedCount;n++){var b=g.s$jscomp$108.index+n;Y.has(this.items[b])&&Y.set(this.items[b],b)}}this.__updateLinks();var d=0;Y.forEach(function(q,C){q<0?(P.multi?P.splice("selected",d,1):P.selected=P.selectedItem=null,Y.delete(C)):d++})};
B.prototype.__updateLinks=function(){var x=this;this.__dataLinkedPaths={};if(this.multi){var P=0;this.__selectedMap.forEach(function(Y){Y>=0&&x.linkPaths("items."+Y,"selected."+P++)})}else this.__selectedMap.forEach(function(Y){x.linkPaths("selected","items."+Y);
x.linkPaths("selectedItem","items."+Y)})};
B.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
B.prototype.isSelected=function(x){return this.__selectedMap.has(x)};
B.prototype.isIndexSelected=function(x){return this.isSelected(this.items[x])};
B.prototype.__deselectChangedIdx=function(x){var P=this,Y=this.__selectedIndexForItemIndex(x);if(Y>=0){var g=0;this.__selectedMap.forEach(function(k,n){Y==g++&&P.deselect(n)})}};
B.prototype.__selectedIndexForItemIndex=function(x){if(x=this.__dataLinkedPaths["items."+x])return parseInt(x.slice(9),10)};
B.prototype.deselect=function(x){var P=this.__selectedMap.get(x);if(P>=0){this.__selectedMap.delete(x);var Y;this.multi&&(Y=this.__selectedIndexForItemIndex(P));this.__updateLinks();this.multi?this.splice("selected",Y,1):this.selected=this.selectedItem=null}};
B.prototype.deselectIndex=function(x){this.deselect(this.items[x])};
B.prototype.select=function(x){this.selectIndex(this.items.indexOf(x))};
B.prototype.selectIndex=function(x){var P=this.items[x];this.isSelected(P)?this.toggle&&this.deselectIndex(x):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(P,x),this.__updateLinks(),this.multi?this.push("selected",P):this.selected=this.selectedItem=P)};
_.AJ.Object.defineProperties(B,{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 B}),ndI=$pt(B6),c6=function(){return ndI.apply(this,arguments)||this};
_.w(c6,ndI);_.AJ.Object.defineProperties(c6,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(c6.is,c6);var bNZ=window.Polymer;window.Polymer=function(B){return window.Polymer._polymerFn(B)};
bNZ&&Object.assign(Polymer,bNZ);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:med,resolveUrl:_.PX,pathFromUrl:TVO};Polymer.DomModule=hJ;Polymer.Async={timeOut:_.uY,animationFrame:_.N_,idlePeriod:GK4,microTask:l4};Polymer.dedupingMixin=DW;Polymer.wrap=_.jO;Polymer.PropertiesChanged=LeZ;Polymer.telemetry={instanceCount:Zln,incrementInstanceCount:function(){Zln++},
registrations:NVA,register:In7,dumpRegistrations:function(){NVA.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Hl0;Polymer.CaseMap={dashToCamelCase:a1,camelToDashCase:gY};Polymer.PropertyAccessors=rJ5;Polymer.TemplateStamp=xp3;Polymer.Path={isPath:sk,root:pl,isAncestor:oUw,isDescendant:kW,translate:Xp,matches:Q2o,normalize:$W,split:Fg7,get:nl,set:vUA,isDeep:sk};Polymer.Settings={useShadow:o1,useNativeCSSProperties:tOy,useNativeCustomElements:wXI,get rootPath(){return lFW},setRootPath:function(B){lFW=B},
get sanitizeDOMValue(){return Uk},setSanitizeDOMValue:function(B){Uk=B},
get passiveTouchGestures(){return Exo},setPassiveTouchGestures:function(B){Exo=B},
get strictTemplatePolicy(){return zK},setStrictTemplatePolicy:function(B){zK=B},
get allowTemplateFromDomModule(){return EWy},setAllowTemplateFromDomModule:function(B){EWy=B},
get legacyOptimizations(){return Ok},setLegacyOptimizations:function(B){Ok=B},
get syncInitialRender(){return OlI},setSyncInitialRender:function(B){OlI=B},
get legacyUndefined(){return qM},setLegacyUndefined:function(B){qM=B},
get legacyWarnings(){return vX},setLegacyWarnings:function(B){vX=B},
get orderedComputed(){return oWF},setOrderedComputed:function(B){oWF=B},
get fastDomIf(){return fm},setFastDomIf:function(B){fm=B},
get removeNestedTemplates(){return HL},setRemoveNestedTemplates:function(B){HL=B},
get suppressTemplateNotifications(){return iY},setSuppressTemplateNotifications:iY};Polymer.rootPath!==void 0&&(lFW=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Uk=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Exo=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(zK=Polymer.strictTemplatePolicy);EWy=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Ok=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(OlI=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(qM=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(vX=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(oWF=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(fm=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(HL=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(iY=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Uk},
set:function(B){Uk=B}});Polymer.PropertyEffects=RX;Polymer.StyleGather={stylesFromModules:sFQ,stylesFromModule:gxx,stylesFromTemplate:pvY,stylesFromModuleImports:kjQ,cssFromModules:$vA,cssFromModule:XvQ,cssFromTemplate:nxY,cssFromModuleImports:function(B){return(B=hJ.import(B))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B):""}};Polymer.ElementMixin=eV;Polymer.updateStyles=function(B){window.ShadyCSS&&window.ShadyCSS.styleDocument(B)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:jFQ};Polymer.html=_.Xfm;Polymer.htmlLiteral=function(B){return new UvI(B,_.ts.apply(1,arguments))};Polymer.Element=B6;Polymer.ArraySelectorMixin=$pt;Polymer.ArraySelector=c6;var K4n=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,jsy=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,RbX=/@media\s(.*)/;var mvw=null,hmq=window.HTMLImports&&window.HTMLImports.whenReady||null,T$7;var Upy=null,xv=null,P6=function(){this.customStyles=[];this.enqueued=!1;VAq(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},dpW=function(B){!B.enqueued&&xv&&(B.enqueued=!0,VAq(xv))};
P6.prototype.addCustomStyle=function(B){B.__seenByShadyCSS||(B.__seenByShadyCSS=!0,this.customStyles.push(B),dpW(this))};
P6.prototype.getStyleForCustomStyle=function(B){if(B.__shadyCSSCachedStyle)return B.__shadyCSSCachedStyle;var c;B.getStyle?c=B.getStyle():c=B;return c};
P6.prototype.processStyles=function(){for(var B=this.customStyles,c=0;c<B.length;c++){var x=B[c];if(!x.__shadyCSSCachedStyle){var P=this.getStyleForCustomStyle(x);P&&(P=P.__appliedElement||P,Upy&&Upy(P),x.__shadyCSSCachedStyle=P)}}return B};
P6.prototype.addCustomStyle=P6.prototype.addCustomStyle;P6.prototype.getStyleForCustomStyle=P6.prototype.getStyleForCustomStyle;P6.prototype.processStyles=P6.prototype.processStyles;Object.defineProperties(P6.prototype,{transformCallback:{get:function(){return Upy},
set:function(B){Upy=B}},
validateCallback:{get:function(){return xv},
set:function(B){var c=!1;xv||(c=!0);xv=B;c&&dpW(this)}}});var wvO=!(window.ShadyDOM&&window.ShadyDOM.inUse),tA7,i4;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(i4=window.ShadyCSS.cssBuild);var qnn=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?tA7=window.ShadyCSS.nativeCss:window.ShadyCSS?(I_l(window.ShadyCSS),window.ShadyCSS=void 0):I_l(window.WebComponents&&window.WebComponents.flags);var uFI=tA7;var ChS=new P6;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(B,c){ChS.processStyles();qyw(B,c)},
styleElement:function(){ChS.processStyles()},
styleDocument:function(B){ChS.processStyles();qyw(document.body,B)},
getComputedStyleValue:function(B,c){return CRo(B,c)},
flushCustomStyles:function(){},
nativeCss:uFI,nativeShadow:wvO,cssBuild:i4,disableRuntime:qnn});window.ShadyCSS.CustomStyleInterface=ChS;var hkF=window.ShadyCSS.CustomStyleInterface,Yv=function(){var B=HTMLElement.call(this)||this;B._style=null;hkF.addCustomStyle(B);return B};
_.w(Yv,HTMLElement);Yv.prototype.getStyle=function(){if(this._style)return this._style;var B=this.querySelector("style");if(!B)return null;this._style=B;var c=B.getAttribute("include");c&&(B.removeAttribute("include"),B.textContent=$vA(c)+B.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Yv.prototype.getStyle=Yv.prototype.getStyle;window.customElements.define("custom-style",Yv);Polymer.CustomStyle=Yv;var a8=function(){this._timer=this._callback=this._asyncModule=null},g7,Tx4;
a8.prototype.setConfig=function(B,c){var x=this;this._asyncModule=B;this._callback=c;this._timer=this._asyncModule.run(function(){x._timer=null;g7.delete(x);x._callback()})};
a8.prototype.cancel=function(){this.isActive()&&(mpW(this),g7.delete(this))};
var mpW=function(B){B.isActive()&&(B._asyncModule.cancel(B._timer),B._timer=null)};
a8.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
a8.prototype.isActive=function(){return this._timer!=null};
_.s5=function(B,c,x){B instanceof a8?mpW(B):B=new a8;B.setConfig(c,x);return B};
g7=new Set;_.pg=function(B){g7.add(B)};
Tx4=function(){var B=!!g7.size;g7.forEach(function(c){try{c.flush()}catch(x){setTimeout(function(){throw x;})}});
return B};var WpX=typeof document.head.style.touchAction==="string",JbX=["mousedown","mousemove","mouseup","click"],SyC=[0,1,4,2],VWt;try{VWt=(new MouseEvent("test",{buttons:1})).buttons===1}catch(B){VWt=!1}var zmC=VWt,l_$=!1;(function(){try{var B=Object.defineProperty({},"passive",{get:function(){l_$=!0}});
window.addEventListener("test",null,B);window.removeEventListener("test",null,B)}catch(c){}})();
var oxO=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),QFl=[],tW3={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},rbY={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},FpO=function(B){var c=B.sourceCapabilities;if(!c||c.firesTouchEvents)if(B.__polymerGesturesHandled={skip:!0},B.type==="click"){c=!1;for(var x=Lpw(B),P=0;P<x.length;P++){if(x[P].nodeType===Node.ELEMENT_NODE)if(x[P].localName==="label")QFl.push(x[P]);
else if(tW3[x[P].localName]){var Y=x[P];var g=Array.prototype.slice.call(Y.labels||[]);if(!g.length){g=[];try{var k=Y.getRootNode();if(Y.id){var n=k.querySelectorAll("label[for = '"+Y.id+"']");for(Y=0;Y<n.length;Y++)g.push(n[Y])}}catch(b){}}for(Y=0;Y<g.length;Y++)c=c||QFl.indexOf(g[Y])>-1}if(x[P]===wfF)return}c||(B.preventDefault(),B.stopPropagation())}},wfF=null,kv=null,H37=0,f_X=0,Z3o=-1,i3$=!1;
document.addEventListener("touchend",function(B){kv||vxX(!0);wfF=Lpw(B)[0];kv=_.s5(kv,_.uY.after(2500),function(){vxX();kv=wfF=null})},l_$?{passive:!0}:!1);
var Lpw=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(B){return B.composedPath&&B.composedPath()||[]},NM={},tJ=[];
Abq({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){VL(this.info)},
mousedown:function(B){if(TK(B)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),x=this;GjA(this.info,function(P){TK(P)||(Ek("up",c,P),VL(x.info))},function(P){TK(P)&&Ek("up",c,P);
VL(x.info)});
Ek("down",c,B)}},
touchstart:function(B){Ek("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),B.changedTouches[0],B)},
touchend:function(B){Ek("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),B.changedTouches[0],B)}});
Abq({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(B){this.moves.length>2&&this.moves.shift();this.moves.push(B)},
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;VL(this.info)},
mousedown:function(B){if(TK(B)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),x=this,P=function(Y){var g=Y.clientX,k=Y.clientY;u5x(x.info,g,k)&&(x.info.state=x.info.started?Y.type==="mouseup"?"end":"track":"start",x.info.state==="start"&&wY("tap"),x.info.addMove({x:g,y:k}),TK(Y)||(x.info.state="end",VL(x.info)),c&&Dvo(x.info,c,Y),x.info.started=!0)};
GjA(this.info,P,function(Y){x.info.started&&P(Y);VL(x.info)});
this.info.x=B.clientX;this.info.y=B.clientY}},
touchstart:function(B){B=B.changedTouches[0];this.info.x=B.clientX;this.info.y=B.clientY},
touchmove:function(B){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B=B.changedTouches[0];var x=B.clientX,P=B.clientY;u5x(this.info,x,P)&&(this.info.state==="start"&&wY("tap"),this.info.addMove({x:x,y:P}),Dvo(this.info,c,B),this.info.state="track",this.info.started=!0)},
touchend:function(B){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B=B.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:B.clientX,y:B.clientY}),Dvo(this.info,c,B))}});
Abq({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(B){TK(B)&&(this.info.x=B.clientX,this.info.y=B.clientY)},
click:function(B){TK(B)&&Rmw(this.info,B)},
touchstart:function(B){B=B.changedTouches[0];this.info.x=B.clientX;this.info.y=B.clientY},
touchend:function(B){Rmw(this.info,B.changedTouches[0],B)}});var Nxt=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c.prototype._addEventListenerToNode=function(x,P,Y){I1(x,P,Y)||B.prototype._addEventListenerToNode.call(this,x,P,Y)};
c.prototype._removeEventListenerFromNode=function(x,P,Y){JJ(x,P,Y)||B.prototype._removeEventListenerFromNode.call(this,x,P,Y)};
return c});var Xy=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c.prototype._shouldPropertyChange=function(x,P,Y){return emq(this,x,P,Y,!0)};
return c}),IaF=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c.prototype._shouldPropertyChange=function(x,P,Y){return emq(this,x,P,Y,this.mutableData)};
_.AJ.Object.defineProperties(c,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return c});
Xy._mutablePropertyChange=emq;var BcA=!1;var Jg3=Nxt(IaF(RX(HTMLElement))),$v=function(){var B=Jg3.call(this)||this;if(zK)throw Error("Hd");B.root=null;B.$=null;B.__children=null;return B};
_.w($v,Jg3);_.a=$v.prototype;_.a.attributeChangedCallback=function(){this.mutableData=!0};
_.a.connectedCallback=function(){cax()||(this.style.display="none");this.render()};
_.a.disconnectedCallback=function(){this.__removeChildren()};
_.a.__insertChildren=function(){(0,_.jO)((0,_.jO)(this).parentNode).insertBefore(this.root,this)};
_.a.__removeChildren=function(){if(this.__children)for(var B=0;B<this.__children.length;B++)this.root.appendChild(this.__children[B])};
_.a.render=function(){var B=this;if(!this.__children){var c=c||this.querySelector("template");if(!c){var x=new MutationObserver(function(){if(c=B.querySelector("template"))x.disconnect(),B.render();else throw Error("Id");});
x.observe(this,{childList:!0});return}this.root=this._stampTemplate(c);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}))};
_.AJ.Object.defineProperties($v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",$v);Polymer.Debouncer=a8;Polymer.Gestures={gestures:NM,recognizers:tJ,deepTargetFind:MAQ,addListener:I1,removeListener:JJ,register:Abq,setTouchAction:_.WX,prevent:wY,resetMouseCanceller:function(){kv&&kv.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:I1,remove:JJ};Polymer.GestureEventListeners=Nxt;Polymer.MutableData=Xy;Polymer.OptionalMutableData=IaF;Polymer.DomBind=$v;_.b9=function(){do{var B=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var c=Tx4()}while(B||c)};var xsO=null;Pjd.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Pjd,writable:!0}});var $s7=RX(Pjd),X8I=Xy($s7),W4Z=RX(function(){}),QL=function(B){var c=W4Z.call(this)||this;
c._configureProperties(B);c.root=c._stampTemplate(c.__dataHost);var x=[];c.children=x;for(var P=c.root.firstChild;P;P=P.nextSibling)x.push(P),P.__templatizeInstance=c;c.__templatizeOwner&&c.__templatizeOwner.__hideTemplateChildren__&&c._showHideChildren(!0);x=c.__templatizeOptions;(B&&x.instanceProps||!x.instanceProps)&&c._enableProperties();return c};
_.w(QL,W4Z);_.a=QL.prototype;_.a._configureProperties=function(B){if(this.__templatizeOptions.forwardHostProp)for(var c in this.__hostProps)this._setPendingProperty(c,this.__dataHost["_host_"+c]);for(var x in B)this._setPendingProperty(x,B[x])};
_.a.forwardHostProp=function(B,c){this._setPendingPropertyOrPath(B,c,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.a._addEventListenerToNode=function(B,c,x){var P=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(B,c,function(g){g.model=P;x(g)});
else{var Y=this.__dataHost.__dataHost;Y&&Y._addEventListenerToNode(B,c,x)}};
_.a._showHideChildren=function(B){as$(B,this.children)};
_.a._setUnmanagedPropertyToNode=function(B,c,x){B.__hideTemplateChildren__&&B.nodeType==Node.TEXT_NODE&&c=="textContent"?B.__polymerTextContent__=x:W4Z.prototype._setUnmanagedPropertyToNode.call(this,B,c,x)};
_.a.dispatchEvent=function(){return!0};
_.AJ.Object.defineProperties(QL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var B=this.__parentModel;if(!B){var c;B=this;do B=B.__dataHost.__dataHost;while((c=B.__templatizeOptions)&&!c.parentModel);this.__parentModel=B}return B}}});
var svI=Xy(QL);var Kg=function(){var B=B6.call(this)||this;B.__renderDebouncer=null;B._lastIf=!1;B.__hideTemplateChildren__=!1;return B};
_.w(Kg,B6);_.a=Kg.prototype;_.a.__debounceRender=function(){var B=this;this.__renderDebouncer=_.s5(this.__renderDebouncer,l4,function(){return B.__render()});
_.pg(this.__renderDebouncer)};
_.a.disconnectedCallback=function(){B6.prototype.disconnectedCallback.call(this);var B=(0,_.jO)(this).parentNode;B&&(B.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.jO)(B).host)||this.__teardownInstance()};
_.a.connectedCallback=function(){B6.prototype.connectedCallback.call(this);cax()||(this.style.display="none");this.if&&this.__debounceRender()};
_.a.__ensureTemplate=function(){var B=this;if(!this.__template){var c=this._templateInfo?this:(0,_.jO)(this).querySelector("template");if(!c){var x=new MutationObserver(function(){if((0,_.jO)(B).querySelector("template"))x.disconnect(),B.__render();else throw Error("Ld");});
x.observe(this,{childList:!0});return!1}this.__template=c}return!0};
_.a.__ensureInstance=function(){var B=(0,_.jO)(this).parentNode;if(this.__hasInstance()){var c=this.__getInstanceNodes();if(c&&c.length&&(0,_.jO)(this).previousSibling!==c[c.length-1])for(var x=0,P=void 0;x<c.length&&(P=c[x]);x++)(0,_.jO)(B).insertBefore(P,this)}else{if(!B||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(B)}return!0};
_.a.render=function(){_.b9()};
_.a.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();iY&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.a.__hasInstance=function(){};
_.a.__getInstanceNodes=function(){};
_.a.__createAndInsertInstance=function(){};
_.a.__teardownInstance=function(){};
_.a._showHideChildren=function(){};
_.AJ.Object.defineProperties(Kg,{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:Kg.prototype.__debounceRender},restamp:{type:Boolean,observer:Kg.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var lam=function(){var B=Kg.call(this)||this;B.__instance=null;B.__syncInfo=null;return B};
_.w(lam,Kg);_.a=lam.prototype;_.a.__hasInstance=function(){return!!this.__instance};
_.a.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.a.__createAndInsertInstance=function(B){var c=this,x=this.__dataHost||this;if(zK&&!this.__dataHost)throw Error("Jd");var P=x._bindTemplate(this.__template,!0);P.runEffects=function(Y,g,k){var n=c.__syncInfo;if(c.if)n&&(c.__syncInfo=null,c._showHideChildren(),g=Object.assign(n.changedProps,g)),Y(g,k);else if(c.__instance)if(n||(n=c.__syncInfo={runEffects:Y,changedProps:{}}),k)for(var b in g)Y=pl(b),n.changedProps[Y]=c.__dataHost[Y];else Object.assign(n.changedProps,g)};
this.__instance=x._stampTemplate(this.__template,P);(0,_.jO)(B).insertBefore(this.__instance,this)};
_.a.__syncHostProperties=function(){var B=this.__syncInfo;B&&(this.__syncInfo=null,B.runEffects(B.changedProps,!1))};
_.a.__teardownInstance=function(){var B=this.__dataHost||this;this.__instance&&(B._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.a._showHideChildren=function(){var B=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==B&&(this.__instance.__hidden=B,as$(B,this.__instance.templateInfo.childNodes));B||this.__syncHostProperties()};
var Edn=function(){var B=Kg.call(this)||this;B.__ctor=null;B.__instance=null;B.__invalidProps=null;return B};
_.w(Edn,Kg);_.a=Edn.prototype;_.a.__hasInstance=function(){return!!this.__instance};
_.a.__getInstanceNodes=function(){return this.__instance.children};
_.a.__createAndInsertInstance=function(B){this.__ctor||(this.__ctor=Fp(this.__template,this,{mutableData:!0,forwardHostProp:function(c,x){this.__instance&&(this.if?this.__instance.forwardHostProp(c,x):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[pl(c)]=!0))}}));
this.__instance=new this.__ctor;(0,_.jO)(B).insertBefore(this.__instance.root,this)};
_.a.__teardownInstance=function(){if(this.__instance){var B=this.__instance.children;if(B&&B.length){var c=(0,_.jO)(B[0]).parentNode;if(c){c=(0,_.jO)(c);for(var x=0,P=void 0;x<B.length&&(P=B[x]);x++)c.removeChild(P)}}this.__instance=this.__invalidProps=null}};
_.a.__syncHostProperties=function(){var B=this.__invalidProps;if(B){this.__invalidProps=null;for(var c in B)this.__instance._setPendingProperty(c,this.__dataHost[c]);this.__instance._flushProperties()}};
_.a._showHideChildren=function(){var B=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==B&&(this.__instance.__hidden=B,this.__instance._showHideChildren(B));B||this.__syncHostProperties()};
_.J9=fm?lam:Edn;customElements.define(_.J9.is,_.J9);Polymer.enqueueDebouncer=_.pg;Polymer.flush=_.b9;Polymer.Templatize={templatize:Fp,modelForElement:dsw};Polymer.TemplateInstanceBase=QL;Polymer.DomIf=_.J9;var ONZ=IaF(B6),IB=function(){var B=ONZ.call(this)||this;B.__instances=[];B.__renderDebouncer=null;B.__itemsIdxToInstIdx={};B.__chunkCount=null;B.__renderStartTime=null;B.__itemsArrayChanged=!1;B.__shouldMeasureChunk=!1;B.__shouldContinueChunking=!1;B.__chunkingId=0;B.__sortFn=null;B.__filterFn=null;B.__observePaths=null;B.__ctor=null;B.__isDetached=!0;B.template=null;return B};
_.w(IB,ONZ);_.a=IB.prototype;_.a.disconnectedCallback=function(){ONZ.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var B=0;B<this.__instances.length;B++)this.__detachInstance(B);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.a.connectedCallback=function(){ONZ.prototype.connectedCallback.call(this);cax()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var B=(0,_.jO)((0,_.jO)(this).parentNode),c=0;c<this.__instances.length;c++)this.__attachInstance(c,B);this.__chunkingId&&this.__render()}};
_.a.__ensureTemplatized=function(){var B=this;if(!this.__ctor){var c=this.template=this._templateInfo?this:this.querySelector("template");if(!c){var x=new MutationObserver(function(){if(B.querySelector("template"))x.disconnect(),B.__render();else throw Error("Md");});
x.observe(this,{childList:!0});return!1}var P={};P[this.as]=!0;P[this.indexAs]=!0;P[this.itemsIndexAs]=!0;this.__ctor=Fp(c,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:P,forwardHostProp:function(Y,g){for(var k=this.__instances,n=0,b=void 0;n<k.length&&(b=k[n]);n++)b.forwardHostProp(Y,g)},
notifyInstanceProp:function(Y,g,k){Q2o(this.as,g)&&(Y=Y[this.itemsIndexAs],g==this.as&&(this.items[Y]=k),g=Xp(this.as,"items."+Y,g),this.notifyPath(g,k))}})}return!0};
_.a.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.a.__functionFromPropertyValue=function(B){if(typeof B==="string"){var c=this.__getMethodHost();return function(){return c[B].apply(c,arguments)}}return B};
_.a.__sortChanged=function(B){this.__sortFn=this.__functionFromPropertyValue(B);this.items&&this.__debounceRender(this.__render)};
_.a.__filterChanged=function(B){this.__filterFn=this.__functionFromPropertyValue(B);this.items&&this.__debounceRender(this.__render)};
_.a.__computeFrameTime=function(B){return Math.ceil(1E3/B)};
_.a.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.a.__handleObservedPaths=function(B){if(this.__sortFn||this.__filterFn)if(!B)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var c=this.__observePaths,x=0;x<c.length;x++)B.indexOf(c[x])===0&&this.__debounceRender(this.__render,this.delay)};
_.a.__itemsChanged=function(B){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(B.path,B.value)||(B.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.a.__debounceRender=function(B,c){c=c===void 0?0:c;this.__renderDebouncer=_.s5(this.__renderDebouncer,c>0?_.uY.after(c):l4,B.bind(this));_.pg(this.__renderDebouncer)};
_.a.render=function(){this.__debounceRender(this.__render);_.b9()};
_.a.__render=function(){var B=this;if(this.__ensureTemplatized()){var c=this.items||[],x=this.__sortAndFilterItems(c),P=this.__calculateLimit(x.length);this.__updateInstances(c,P,x);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){B.__chunkingId=null;B.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);iY&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.a.__sortAndFilterItems=function(B){for(var c=this,x=Array(B.length),P=0;P<B.length;P++)x[P]=P;this.__filterFn&&(x=x.filter(function(Y,g,k){return c.__filterFn(B[Y],g,k)}));
this.__sortFn&&x.sort(function(Y,g){return c.__sortFn(B[Y],B[g])});
return x};
_.a.__calculateLimit=function(B){var c=B,x=this.__instances.length;if(this.initialCount){var P;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(c=Math.min(B,this.initialCount),this.__chunkCount=(P=Math.max(c-x,0))||1):(P=Math.min(Math.max(B-x,0),this.__chunkCount),c=Math.min(x+P,B));this.__shouldMeasureChunk=P===this.__chunkCount;this.__shouldContinueChunking=c<B;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return c};
_.a.__continueChunking=function(){if(this.__shouldMeasureChunk){var B=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/B*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.a.__updateInstances=function(B,c,x){var P=this.__itemsIdxToInstIdx={},Y;for(Y=0;Y<c;Y++){var g=this.__instances[Y],k=x[Y],n=B[k];P[k]=Y;g?(g._setPendingProperty(this.as,n),g._setPendingProperty(this.indexAs,Y),g._setPendingProperty(this.itemsIndexAs,k),g._flushProperties()):this.__insertInstance(n,Y,k)}for(B=this.__instances.length-1;B>=Y;B--)this.__detachAndRemoveInstance(B)};
_.a.__detachInstance=function(B){B=this.__instances[B];for(var c=(0,_.jO)(B.root),x=0;x<B.children.length;x++)c.appendChild(B.children[x]);return B};
_.a.__attachInstance=function(B,c){c.insertBefore(this.__instances[B].root,this)};
_.a.__detachAndRemoveInstance=function(B){this.__detachInstance(B);this.__instances.splice(B,1)};
_.a.__stampInstance=function(B,c,x){var P={};P[this.as]=B;P[this.indexAs]=c;P[this.itemsIndexAs]=x;return new this.__ctor(P)};
_.a.__insertInstance=function(B,c,x){B=this.__stampInstance(B,c,x);x=(x=this.__instances[c+1])?x.children[0]:this;(0,_.jO)((0,_.jO)(this).parentNode).insertBefore(B.root,x);return this.__instances[c]=B};
_.a._showHideChildren=function(B){for(var c=0;c<this.__instances.length;c++)this.__instances[c]._showHideChildren(B)};
_.a.__handleItemPath=function(B,c){var x=B.slice(6),P=x.indexOf(".");B=P<0?x:x.substring(0,P);if(B==parseInt(B,10)){x=P<0?"":x.substring(P+1);this.__handleObservedPaths(x);if(B=this.__instances[this.__itemsIdxToInstIdx[B]])B._setPendingPropertyOrPath(this.as+(x?"."+x:""),c,!1,!0),B._flushProperties();return!0}};
_.a.itemForElement=function(B){return(B=this.modelForElement(B))&&B[this.as]};
_.a.indexForElement=function(B){return(B=this.modelForElement(B))&&B[this.indexAs]};
_.a.modelForElement=function(B){return dsw(this.template,B)};
_.AJ.Object.defineProperties(IB,{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:IB.prototype.__sortChanged},filter:{type:Function,observer:IB.prototype.__filterChanged},observe:{type:String,observer:IB.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!iY,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.*)"]}}});
IB.prototype._setRenderedItemCount=function(){};
customElements.define(IB.is,IB);Polymer.DomRepeat=IB;var ody=function(B,c){var x=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=B;this.callback=c;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){x._schedule()};
this.connect();this._schedule()},Qsm=function(B){var c=(0,_.jO)(B);
if(SO(B))return c.assignedNodes({flatten:!0});B=[];for(var x=0;x<c.childNodes.length;x++){var P=c.childNodes[x];SO(P)?B.push.apply(B,_.wq((0,_.jO)(P).assignedNodes({flatten:!0}))):B.push(P)}return B};
_.a=ody.prototype;_.a.connect=function(){var B=this;SO(this._target)?this._listenSlots([this._target]):(0,_.jO)(this._target).children&&(this._listenSlots((0,_.jO)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(c){B._processMutations(c)}):(this._nativeChildrenObserver=new MutationObserver(function(c){B._processMutations(c)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.a.disconnect=function(){SO(this._target)?this._unlistenSlots([this._target]):(0,_.jO)(this._target).children&&(this._unlistenSlots((0,_.jO)(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};
_.a._schedule=function(){var B=this;this._scheduled||(this._scheduled=!0,l4.run(function(){return B.flush()}))};
_.a._processMutations=function(B){this._processSlotMutations(B);this.flush()};
_.a._processSlotMutations=function(B){if(B)for(var c=0;c<B.length;c++){var x=B[c];x.addedNodes&&this._listenSlots(x.addedNodes);x.removedNodes&&this._unlistenSlots(x.removedNodes)}};
_.a.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 B={target:this._target,addedNodes:[],removedNodes:[]},c=Qsm(this._target),x=jFQ(c,this._effectiveNodes),P=0,Y=void 0;P<x.length&&(Y=x[P]);P++)for(var g=0,k=void 0;g<Y.removed.length&&(k=Y.removed[g]);g++)B.removedNodes.push(k);
P=0;for(Y=void 0;P<x.length&&(Y=x[P]);P++)for(g=Y.index;g<Y.index+Y.addedCount;g++)B.addedNodes.push(c[g]);this._effectiveNodes=c;c=!1;if(B.addedNodes.length||B.removedNodes.length)c=!0,this.callback.call(this._target,B);return c};
_.a._listenSlots=function(B){for(var c=0;c<B.length;c++){var x=B[c];SO(x)&&x.addEventListener("slotchange",this._boundSchedule)}};
_.a._unlistenSlots=function(B){for(var c=0;c<B.length;c++){var x=B[c];SO(x)&&x.removeEventListener("slotchange",this._boundSchedule)}};var jE=Element.prototype,F45=jE.matches||jE.matchesSelector||jE.mozMatchesSelector||jE.msMatchesSelector||jE.oMatchesSelector||jE.webkitMatchesSelector,vd5=function(B,c){return F45.call(B,c)},yL=function(B){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(B);
this.node=B},GkQ;
_.a=yL.prototype;_.a.observeNodes=function(B){return new ody(this.node,B)};
_.a.unobserveNodes=function(B){B.disconnect()};
_.a.notifyObserver=function(){};
_.a.deepContains=function(B){if((0,_.jO)(this.node).contains(B))return!0;var c=B;for(B=B.ownerDocument;c&&c!==B&&c!==this.node;)c=(0,_.jO)(c).parentNode||(0,_.jO)(c).host;return c===this.node};
_.a.getOwnerRoot=function(){return(0,_.jO)(this.node).getRootNode()};
_.a.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.jO)(this.node).assignedNodes({flatten:!0}):[]};
_.a.getDestinationInsertionPoints=function(){for(var B=[],c=(0,_.jO)(this.node).assignedSlot;c;)B.push(c),c=(0,_.jO)(c).assignedSlot;return B};
_.a.importNode=function(B,c){return(0,_.jO)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(B,c)};
_.a.getEffectiveChildNodes=function(){return Qsm(this.node)};
_.a.queryDistributedElements=function(B){for(var c=this.getEffectiveChildNodes(),x=[],P=0,Y=c.length,g=void 0;P<Y&&(g=c[P]);P++)g.nodeType===Node.ELEMENT_NODE&&vd5(g,B)&&x.push(g);return x};
_.AJ.Object.defineProperties(yL.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var B=this.node;return B._activeElement!==void 0?B._activeElement:B.activeElement}}});
var U5=function(B){this.event=B};
_.AJ.Object.defineProperties(U5.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 zkZ=yL;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var SnW=window.ShadyDOM.Wrapper,yg3=function(){return SnW.apply(this,arguments)||this};
_.w(yg3,SnW);Object.getOwnPropertyNames(yL.prototype).forEach(function(B){B!="activeElement"&&B!="constructor"&&(yg3.prototype[B]=yL.prototype[B])});
CjI(yg3.prototype,["classList"]);zkZ=yg3;Object.defineProperties(U5.prototype,{localTarget:{get:function(){var B=this.event.currentTarget;B=B&&_.m4(B).getOwnerRoot();for(var c=this.path,x=0;x<c.length;x++){var P=c[x];if(_.m4(P).getOwnerRoot()===B)return P}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else qrl(),CjI(yL.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),hbw();GkQ=zkZ;_.m4=function(B){B=B||document;if(B instanceof zkZ)return B;if(B instanceof U5)return B;var c=B.__domApi;c||(B instanceof Event?c=new U5(B):c=new zkZ(B),B.__domApi=c);return c};var MW3=/:host\(:dir\((ltr|rtl)\)\)/g,L4y=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ZNZ=/:dir\((?:ltr|rtl)\)/,HNy=!(!window.ShadyDOM||!window.ShadyDOM.inUse),MM=[],d7=null,GK="",fan=DW(function(B){HNy||d7||(GK=document.documentElement.getAttribute("dir"),d7=new MutationObserver(ms$),d7.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var c=rJ5(B);B=function(){var x=c.call(this)||this;x.__autoDirOptOut=!1;return x};
_.w(B,c);B._processStyleText=function(x,P){x=c._processStyleText.call(this,x,P);!HNy&&ZNZ.test(x)&&(x=this._replaceDirInCssText(x),this.__activateDir=!0);return x};
B._replaceDirInCssText=function(x){x=x.replace(MW3,':host([dir="$1"])');return x=x.replace(L4y,':host([dir="$2"]) $1')};
B.prototype.ready=function(){c.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
B.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(d7&&d7.takeRecords().length&&ms$(),MM.push(this),this.__autoDirOptOut||this.setAttribute("dir",GK))};
B.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var x=MM.indexOf(this);x>-1&&MM.splice(x,1)}};
B.__activateDir=!1;return B});var iNt=function(B){for(;B;){var c=Object.getOwnPropertyDescriptor(B,"observedAttributes");if(c)return c.get;B=Object.getPrototypeOf(B.prototype).constructor}return function(){return[]}};
DW(function(B){var c=eV(B),x=iNt(c);B=function(){return c.call(this)||this};
_.w(B,c);B.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:c.prototype._initializeProperties.call(this)};
B.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
B.prototype._canApplyPropertyDefault=function(P){return c.prototype._canApplyPropertyDefault.call(this,P)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(P))};
B.prototype.attributeChangedCallback=function(P,Y,g,k){P=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(c.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.jO)(this).isConnected&&c.prototype.connectedCallback.call(this)):c.prototype.attributeChangedCallback.call(this,P,Y,g,k)};
B.prototype.connectedCallback=function(){this.__isUpgradeDisabled||c.prototype.connectedCallback.call(this)};
B.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||c.prototype.disconnectedCallback.call(this)};
_.AJ.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x.call(this).concat("disable-upgrade")}}});
return B});var Ll=!1,VnY=[],ZF=[];var IsC=window.ShadyDOM,Jao=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",lsx):document.readyState==="interactive"||document.readyState==="complete"?lsx():window.addEventListener("DOMContentLoaded",lsx);var oEo=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=""},EE$=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,O2x=/@import[^;]*;/gim,yaw=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,G2A=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,MnO=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,LT7=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,zbC=/^@[^\s]*keyframes/,
vEO=/\s+/g;var Z2l={};var i2O=Promise.resolve();var Ag0=new Set;var uTn=/;\s*/m,Dp5=/^\s*(initial)|(inherit)\s*$/,rgZ=/\s*!important/,Rky=function(){this._map={}};
Rky.prototype.set=function(B,c){B=B.trim();this._map[B]={properties:c,dependants:{}}};
Rky.prototype.get=function(B){B=B.trim();return this._map[B]||null};
var ek4=null,ql=function(){this._measureElement=this._currentElement=null;this._map=new Rky};
_.a=ql.prototype;_.a.detectMixin=function(B){B=jsy.test(B)||K4n.test(B);jsy.lastIndex=0;K4n.lastIndex=0;return B};
_.a.transformTemplate=function(B,c){if(B._gatheredStyle===void 0){var x=[];for(var P=B.content.querySelectorAll("style"),Y=0;Y<P.length;Y++){var g=P[Y];if(g.hasAttribute("shady-unscoped")){if(!wvO){var k=g.textContent;if(!Ag0.has(k)){Ag0.add(k);var n=document.createElement("style");n.setAttribute("shady-unscoped","");n.textContent=k;document.head.appendChild(n)}g.parentNode.removeChild(g)}}else x.push(g.textContent),g.parentNode.removeChild(g)}(x=x.join("").trim())?(P=document.createElement("style"),
P.textContent=x,B.content.insertBefore(P,B.content.firstChild),x=P):x=null;B._gatheredStyle=x}return(B=B._gatheredStyle)?this.JSC$9225_transformStyle(B,c):null};
_.a.JSC$9225_transformStyle=function(B,c){c=c===void 0?"":c;var x=rad(B);this.transformRules(x,c);B.textContent=Dsw(x);return x};
_.a.transformCustomStyle=function(B){var c=this,x=rad(B);ebC(x,function(P){P.selector===":root"&&(P.selector="html");c.transformRule(P)});
B.textContent=Dsw(x);return x};
_.a.transformRules=function(B,c){var x=this;this._currentElement=c;ebC(B,function(P){x.transformRule(P)});
this._currentElement=null};
_.a.transformRule=function(B){B.cssText=BjZ(this,B.parsedCssText,B);B.selector===":root"&&(B.selector=":host > *")};
var BjZ=function(B,c,x){c=c.replace(K4n,function(P,Y,g,k){return B._produceCssProperties(P,Y,g,k,x)});
return B._consumeCssProperties(c,x)};
_.a=ql.prototype;_.a._getInitialValueForProperty=function(B){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(B)};
_.a._fallbacksFromPreviousRules=function(B){for(var c=this,x=B;x.parent;)x=x.parent;var P={},Y=!1;ebC(x,function(g){(Y=Y||g===B)||g.selector===B.selector&&Object.assign(P,c._cssTextToMap(g.parsedCssText))});
return P};
_.a._consumeCssProperties=function(B,c){for(var x;x=jsy.exec(B);){var P=x[0],Y=x[1];x=x.index;var g=x+P.indexOf("@apply"),k=x+P.length;P=B.slice(0,g);B=B.slice(k);g=c?this._fallbacksFromPreviousRules(c):{};Object.assign(g,this._cssTextToMap(P));Y=this._atApplyToCssProperties(Y,g);B=P+Y+B;jsy.lastIndex=x+Y.length}return B};
_.a._atApplyToCssProperties=function(B,c){B=B.replace(uTn,"");var x=[],P=this._map.get(B);P||(this._map.set(B,{}),P=this._map.get(B));if(P){this._currentElement&&(P.dependants[this._currentElement]=!0);var Y,g=P.properties;for(Y in g){var k=c&&c[Y];P=[Y,": var(",B,"_-_",Y];k&&P.push(",",k.replace(rgZ,""));P.push(")");rgZ.test(g[Y])&&P.push(" !important");x.push(P.join(""))}}return x.join("; ")};
_.a._replaceInitialOrInherit=function(B,c){var x=Dp5.exec(c);x&&(c=x[1]?this._getInitialValueForProperty(B):"apply-shim-inherit");return c};
_.a._cssTextToMap=function(B,c){c=c===void 0?!1:c;B=B.split(";");for(var x,P,Y={},g=0;g<B.length;g++)if(x=B[g])P=x.split(":"),P.length>1&&(x=P[0].trim(),P=P.slice(1).join(":"),c&&(P=this._replaceInitialOrInherit(x,P)),Y[x]=P);return Y};
_.a._invalidateMixinEntry=function(B){if(ek4)for(var c in B.dependants)c!==this._currentElement&&ek4(c)};
_.a._produceCssProperties=function(B,c,x,P,Y){var g=this;x&&B2w(x,function(N,l){l&&g._map.get(l)&&(P="@apply "+l+";")});
if(!P)return B;var k=this._consumeCssProperties(""+P,Y);Y=B.slice(0,B.indexOf("--"));var n=k=this._cssTextToMap(k,!0),b=this._map.get(c),d=b&&b.properties;d?n=Object.assign(Object.create(d),k):this._map.set(c,n);var q=[],C,h=!1;for(C in n){var V=k[C];V===void 0&&(V="initial");!d||C in d||(h=!0);q.push(c+"_-_"+C+": "+V)}h&&this._invalidateMixinEntry(b);b&&(b.properties=n);x&&(Y=B+";"+Y);return Y+q.join("; ")+";"};
ql.prototype.detectMixin=ql.prototype.detectMixin;ql.prototype.transformStyle=ql.prototype.JSC$9225_transformStyle;ql.prototype.transformCustomStyle=ql.prototype.transformCustomStyle;ql.prototype.transformRules=ql.prototype.transformRules;ql.prototype.transformRule=ql.prototype.transformRule;ql.prototype.transformTemplate=ql.prototype.transformTemplate;ql.prototype._separator="_-_";Object.defineProperty(ql.prototype,"invalidCallback",{get:function(){return ek4},
set:function(B){ek4=B}});var Cg=new ql,ciZ=function(){this.customStyleInterface=null;Cg.invalidCallback=H2C},hU=function(B){!B.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(B.customStyleInterface=window.ShadyCSS.CustomStyleInterface,B.customStyleInterface.transformCallback=function(c){Cg.transformCustomStyle(c)},B.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){B.customStyleInterface.enqueued&&B.flushCustomStyles()})})};
_.a=ciZ.prototype;_.a.prepareTemplate=function(B,c){hU(this);cEC(B)===""&&(Z2l[c]=B,c=Cg.transformTemplate(B,c),B._styleAst=c)};
_.a.flushCustomStyles=function(){hU(this);if(this.customStyleInterface){var B=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var c=0;c<B.length;c++){var x=this.customStyleInterface.getStyleForCustomStyle(B[c]);x&&Cg.transformCustomStyle(x)}this.customStyleInterface.enqueued=!1}}};
_.a.styleSubtree=function(B,c){hU(this);c&&qyw(B,c);if(B.shadowRoot)for(this.styleElement(B),B=B.shadowRoot.children||B.shadowRoot.childNodes,c=0;c<B.length;c++)this.styleSubtree(B[c]);else for(B=B.children||B.childNodes,c=0;c<B.length;c++)this.styleSubtree(B[c])};
_.a.styleElement=function(B){hU(this);var c=B.localName,x;c?c.indexOf("-")>-1?x=c:x=B.getAttribute&&B.getAttribute("is")||"":x=B.is;c=Z2l[x];if(!(c&&cEC(c)!==""||!c||fsl(c))){if(fsl(c)||c._applyShimValidatingVersion!==c._applyShimNextVersion)this.prepareTemplate(c,x),AaI(c);if(B=B.shadowRoot)if(B=B.querySelector("style"))B.__cssRules=c._styleAst,B.textContent=Dsw(c._styleAst)}};
_.a.styleDocument=function(B){hU(this);this.styleSubtree(document.body,B)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var m0=new ciZ,x9W=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(B,c){m0.flushCustomStyles();m0.prepareTemplate(B,c)},
prepareTemplateStyles:function(B,c,x){window.ShadyCSS.prepareTemplate(B,c,x)},
prepareTemplateDom:function(){},
styleSubtree:function(B,c){m0.flushCustomStyles();m0.styleSubtree(B,c)},
styleElement:function(B){m0.flushCustomStyles();m0.styleElement(B)},
styleDocument:function(B){m0.flushCustomStyles();m0.styleDocument(B)},
getComputedStyleValue:function(B,c){return CRo(B,c)},
flushCustomStyles:function(){m0.flushCustomStyles()},
nativeCss:uFI,nativeShadow:wvO,cssBuild:i4,disableRuntime:qnn};x9W&&(window.ShadyCSS.CustomStyleInterface=x9W)}window.ShadyCSS.ApplyShim=Cg;var Pgt;Pgt=window.ShadyCSS;_.Tg=DW(function(B){B=Nxt(eV(B));var c=ss0?B:fan(B),x=iNt(c),P={x:"pan-x",y:"pan-y",none:"none",all:"auto"};B=function(){return c.call(this)||this};
_.w(B,c);B.prototype.created=function(){};
B.prototype.__attributeReaction=function(Y,g,k){(this.__dataAttributes&&this.__dataAttributes[Y]||Y==="disable-upgrade")&&this.attributeChangedCallback(Y,g,k,null)};
B.prototype.setAttribute=function(Y,g){if(Q13&&!this._legacyForceObservedAttributes){var k=this.getAttribute(Y);c.prototype.setAttribute.call(this,Y,g);this.__attributeReaction(Y,k,String(g))}else c.prototype.setAttribute.call(this,Y,g)};
B.prototype.removeAttribute=function(Y){if(Q13&&!this._legacyForceObservedAttributes){var g=this.getAttribute(Y);c.prototype.removeAttribute.call(this,Y);this.__attributeReaction(Y,g,null)}else c.prototype.removeAttribute.call(this,Y)};
B.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
B.prototype._canApplyPropertyDefault=function(Y){return c.prototype._canApplyPropertyDefault.call(this,Y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Y))};
B.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(c.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
B.prototype.attached=function(){};
B.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(c.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
B.prototype.detached=function(){};
B.prototype.attributeChangedCallback=function(Y,g,k,n){g!==k&&(Y=="disable-upgrade"?this.__isUpgradeDisabled&&k==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.jO)(this).isConnected&&this.connectedCallback()):(c.prototype.attributeChangedCallback.call(this,Y,g,k,n),this.attributeChanged(Y,g,k)))};
B.prototype.attributeChanged=function(){};
B.prototype._initializeProperties=function(){if(Ok&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Y=Object.getPrototypeOf(this);Y.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Y.__hasRegisterFinished=!0);c.prototype._initializeProperties.call(this);this.root=this;this.created();Q13&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
B.prototype._takeAttributes=function(){for(var Y=this.attributes,g=0,k=Y.length;g<k;g++){var n=Y[g];this.__attributeReaction(n.name,null,n.value)}};
B.prototype._registered=function(){};
B.prototype.ready=function(){this._ensureAttributes();c.prototype.ready.call(this)};
B.prototype._ensureAttributes=function(){};
B.prototype._applyListeners=function(){};
B.prototype.serialize=function(Y){return this._serializeValue(Y)};
B.prototype.deserialize=function(Y,g){return this._deserializeValue(Y,g)};
B.prototype.reflectPropertyToAttribute=function(Y,g,k){this._propertyToAttribute(Y,g,k)};
B.prototype.serializeValueToAttribute=function(Y,g,k){this._valueToNodeAttribute(k||this,Y,g)};
B.prototype.extend=function(Y,g){if(!Y||!g)return Y||g;for(var k=Object.getOwnPropertyNames(g),n=0,b=void 0;n<k.length&&(b=k[n]);n++){var d=Object.getOwnPropertyDescriptor(g,b);d&&Object.defineProperty(Y,b,d)}return Y};
B.prototype.mixin=function(Y,g){for(var k in g)Y[k]=g[k];return Y};
B.prototype.chainObject=function(Y,g){Y&&g&&Y!==g&&(Y.__proto__=g);return Y};
B.prototype.instanceTemplate=function(Y){Y=this.constructor._contentForTemplate(Y);return document.importNode(Y,!0)};
B.prototype.fire=function(Y,g,k){k=k||{};g=g===null||g===void 0?{}:g;Y=new Event(Y,{bubbles:k.bubbles===void 0?!0:k.bubbles,cancelable:!!k.cancelable,composed:k.composed===void 0?!0:k.composed});Y.detail=g;(0,_.jO)(k.node||this).dispatchEvent(Y);return Y};
B.prototype.listen=function(Y,g,k){Y=Y||this;var n=this.__boundListeners||(this.__boundListeners=new WeakMap),b=n.get(Y);b||(b={},n.set(Y,b));n=g+k;b[n]||(b[n]=this._addMethodEventListenerToNode(Y,g,k,this))};
B.prototype.unlisten=function(Y,g,k){Y=Y||this;var n=this.__boundListeners&&this.__boundListeners.get(Y);k=g+k;var b=n&&n[k];b&&(this._removeEventListenerFromNode(Y,g,b),n[k]=null)};
B.prototype.setScrollDirection=function(Y,g){_.WX(g||this,P[Y]||"auto")};
B.prototype.$$=function(Y){return this.root.querySelector(Y)};
B.prototype.distributeContent=function(){var Y=_.m4(this);window.ShadyDOM&&Y.shadowRoot&&ShadyDOM.flush()};
B.prototype.getEffectiveChildNodes=function(){return _.m4(this).getEffectiveChildNodes()};
B.prototype.queryDistributedElements=function(Y){return _.m4(this).queryDistributedElements(Y)};
B.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
B.prototype.getEffectiveTextContent=function(){for(var Y=this.getEffectiveChildNodes(),g=[],k=0,n;n=Y[k];k++)n.nodeType!==Node.COMMENT_NODE&&g.push(n.textContent);return g.join("")};
B.prototype.queryEffectiveChildren=function(Y){return(Y=this.queryDistributedElements(Y))&&Y[0]};
B.prototype.queryAllEffectiveChildren=function(Y){return this.queryDistributedElements(Y)};
B.prototype.getContentChildNodes=function(Y){return(Y=this.root.querySelector(Y||"slot"))?_.m4(Y).getDistributedNodes():[]};
B.prototype.getContentChildren=function(Y){return this.getContentChildNodes(Y).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
B.prototype.isLightDescendant=function(Y){return this!==Y&&(0,_.jO)(this).contains(Y)&&(0,_.jO)(this).getRootNode()===(0,_.jO)(Y).getRootNode()};
B.prototype.isLocalDescendant=function(Y){return this.root===(0,_.jO)(Y).getRootNode()};
B.prototype.scopeSubtree=function(Y,g){return WTO(Y,g===void 0?!1:g)};
B.prototype.getComputedStyleValue=function(Y){return Pgt.getComputedStyleValue(this,Y)};
B.prototype.debounce=function(Y,g,k){this._debouncers=this._debouncers||{};return this._debouncers[Y]=_.s5(this._debouncers[Y],k>0?_.uY.after(k):l4,g.bind(this))};
B.prototype.isDebouncerActive=function(Y){this._debouncers=this._debouncers||{};Y=this._debouncers[Y];return!(!Y||!Y.isActive())};
B.prototype.flushDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.flush()};
B.prototype.cancelDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.cancel()};
B.prototype.async=function(Y,g){return g>0?_.uY.run(Y.bind(this),g):~l4.run(Y.bind(this))};
B.prototype.cancelAsync=function(Y){Y<0?l4.cancel(~Y):_.uY.cancel(Y)};
B.prototype.create=function(Y,g){Y=document.createElement(Y);if(g)if(Y.setProperties)Y.setProperties(g);else for(var k in g)Y[k]=g[k];return Y};
B.prototype.elementMatches=function(Y,g){return vd5(g||this,Y)};
B.prototype.toggleAttribute=function(Y,g){var k=this;arguments.length===3&&(k=arguments[2]);arguments.length==1&&(g=!k.hasAttribute(Y));if(g)return(0,_.jO)(k).setAttribute(Y,""),!0;(0,_.jO)(k).removeAttribute(Y);return!1};
B.prototype.toggleClass=function(Y,g,k){k=k||this;arguments.length==1&&(g=!k.classList.contains(Y));g?k.classList.add(Y):k.classList.remove(Y)};
B.prototype.transform=function(Y,g){g=g||this;g.style.webkitTransform=Y;g.style.transform=Y};
B.prototype.translate3d=function(Y,g,k,n){this.transform("translate3d("+Y+","+g+","+k+")",n||this)};
B.prototype.arrayDelete=function(Y,g){if(Array.isArray(Y)){if(g=Y.indexOf(g),g>=0)return Y.splice(g,1)}else if(g=nl(this,Y).indexOf(g),g>=0)return this.splice(Y,g,1);return null};
B.prototype._logger=function(Y,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(Y){case "log":case "warn":case "error":console[Y].apply(console,_.wq(g))}};
B.prototype._log=function(){this._logger("log",_.ts.apply(0,arguments))};
B.prototype._warn=function(){this._logger("warn",_.ts.apply(0,arguments))};
B.prototype._error=function(){this._logger("error",_.ts.apply(0,arguments))};
B.prototype._logf=function(Y){return["[%s::%s]",this.is,Y].concat(_.wq(_.ts.apply(1,arguments)))};
_.AJ.Object.defineProperties(B.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Y=(0,_.jO)(this).getRootNode();return Y instanceof DocumentFragment?Y.host:Y}}});
_.AJ.Object.defineProperties(B,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q13&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],In7(this.prototype)),this.__observedAttributes):x.call(this).concat("disable-upgrade")}}});
B.prototype.is="";return B});Polymer.FlattenedNodesObserver=ody;Polymer.DomApi=GkQ;Polymer.EventApi=U5;Polymer.dom=_.m4;Polymer.dom.matchesSelector=vd5;Polymer.dom.flush=_.b9;Polymer.dom.addDebouncer=_.pg;Polymer.DirMixin=fan;Polymer.RenderStatus={beforeNextRender:_.NcQ,afterNextRender:_.fl,flush:function(){for(;VnY.length||ZF.length;)Tco(VnY),Tco(ZF);Ll=!1}};Polymer.LegacyElementMixin=_.Tg;var Yp3;Yp3=Xy._mutablePropertyChange;var a1Z={properties:{mutableData:Boolean},_shouldPropertyChange:function(B,c,x){return Yp3(this,B,c,x,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(B,c,x){return Yp3(this,B,c,x,!0)}};
Polymer.OptionalMutableDataBehavior=a1Z;var xbw={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},sE$={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},glO=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},sE$),gCn=(0,_.Tg)(HTMLElement),GAq=function(B,c){B||console.warn("Polymer.Class requires `info` argument");c=c?c(gCn):gCn;c=pi$(B,c,B.behaviors);c.is=c.prototype.is=
B.is;return c};Polymer.Class=GAq;Polymer.mixinBehaviors=function(B,c){return pi$({},(0,_.Tg)(c),B)};
Polymer.GenerateClassFromInfo=pi$;_.Ni=function(B){var c=typeof B==="function"?B:_.Ni.Class(B);B._legacyForceObservedAttributes&&(c.prototype._legacyForceObservedAttributes=B._legacyForceObservedAttributes);customElements.define(c.is,c);return c};
_.Ni.Class=GAq;Polymer._polymerFn=_.Ni;var sJd=window.onLegacyPolymerFunctionDefinedCallback;sJd&&sJd();var LP$={templatize:function(B,c){this._templatizerTemplate=B;this.ctor=Fp(B,this,{mutableData:!!c,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(B){return new this.ctor(B)},
modelForElement:function(B){return dsw(this._templatizerTemplate,B)}};Polymer.Templatizer=LP$;_.V8=(0,_.Tg)(HTMLElement).prototype;Polymer.Base=_.V8;var Xio=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.u4=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.w(_.u4,PolymerFakeBaseClass);var DF=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.w(DF,PolymerFakeBaseClass);var $b$=Symbol("Nd"),CUI=[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 prZ=prZ||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},kqI;(function(B){function c(Z,u,e){var px=f.get(Z);if(!px){if(!e)return;px=new S;f.set(Z,px)}Z=px.get(u);if(!Z){if(!e)return;Z=new S;px.set(u,Z)}return Z}
function x(Z,u,e){if(P(Z,u,e))return!0;u=h(u);return u!==null?x(Z,u,e):!1}
function P(Z,u,e){u=c(u,e,!1);return u===void 0?!1:!!u.has(Z)}
function Y(Z,u,e){if(P(Z,u,e))return g(Z,u,e);u=h(u);if(u!==null)return Y(Z,u,e)}
function g(Z,u,e){u=c(u,e,!1);if(u!==void 0)return u.get(Z)}
function k(Z,u){var e=n(Z,u);Z=h(Z);if(Z===null)return e;var px=k(Z,u);if(px.length<=0)return e;if(e.length<=0)return px;u=new M;Z=[];e=_.p(e);for(var kI=e.next();!kI.done;kI=e.next())kI=kI.value,u.has(kI)||(u.add(kI),Z.push(kI));e=_.p(px);for(px=e.next();!px.done;px=e.next())px=px.value,u.has(px)||(u.add(px),Z.push(px));return Z}
function n(Z,u){Z=c(Z,u,!1);var e=[];Z&&Z.forEach(function(px,kI){return e.push(kI)});
return e}
function b(Z){return Z===void 0}
function d(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}
function q(Z){return typeof Z==="function"}
function C(Z){return typeof Z==="symbol"?Z:String(Z)}
function h(Z){var u=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===E||u!==E)return u;var e=Object.getPrototypeOf(Z.prototype);if(e==null||e===Object.prototype)return u;e=e.constructor;return typeof e!=="function"||e===Z?u:e}
function V(){function Z(){this._keys=[];this._values=[];this._cache=u}
var u={};Z.prototype={get size(){return this._keys.length},has:function(e){return e===this._cache?!0:this._find(e)>=0?(this._cache=e,!0):!1},
get:function(e){var px=this._find(e);if(px>=0)return this._cache=e,this._values[px]},
set:function(e,px){this.delete(e);this._keys.push(e);this._values.push(px);this._cache=e;return this},
delete:function(e){e=this._find(e);return e>=0?(this._keys.splice(e,1),this._values.splice(e,1),this._cache=u,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=u},
forEach:function(e){for(var px=this.size,kI=0;kI<px;++kI){var Ul=this._keys[kI],wC=this._values[kI];this._cache=Ul;e.call(this,wC,Ul,this)}},
_find:function(e){for(var px=this._keys,kI=px.length,Ul=0;Ul<kI;++Ul)if(px[Ul]===e)return Ul;return-1}};
return Z}
function N(){function Z(){this._map=new S}
Z.prototype={get size(){return this._map.length},has:function(u){return this._map.has(u)},
add:function(u){this._map.set(u,u);return this},
delete:function(u){return this._map.delete(u)},
clear:function(){this._map.clear()},
forEach:function(u,e){this._map.forEach(u,e)}};
return Z}
function l(){function Z(){this._key=e()}
function u(El,H$){for(var yw=0;yw<H$;++yw)El[yw]=Math.random()*255|0}
function e(){do{if(kI)var El=kI.randomBytes(16);else typeof Uint8Array==="function"?(El=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(El):u(El,16)):(El=Array(16),u(El,16));El[6]=El[6]&79|64;El[8]=El[8]&191|128;for(var H$="",yw=0;yw<16;++yw){var r9=El[yw];if(yw===4||yw===6||yw===8)H$+="-";r9<16&&(H$+="0");H$+=r9.toString(16).toLowerCase()}El="@@WeakMap@@"+H$}while(Ul.call(wC,El));wC[El]=!0;return El}
function px(El,H$){if(!Ul.call(El,W$)){if(!H$)return;Object.defineProperty(El,W$,{value:Object.create(null)})}return El[W$]}
var kI=typeof global!=="undefined"&&typeof prZ==="object"&&typeof require==="function"&&require("crypto"),Ul=Object.prototype.hasOwnProperty,wC={},W$=e();Z.prototype={has:function(El){return(El=px(El,!1))?this._key in El:!1},
get:function(El){if(El=px(El,!1))return El[this._key]},
set:function(El,H$){px(El,!0)[this._key]=H$;return this},
delete:function(El){return(El=px(El,!1))&&this._key in El?delete El[this._key]:!1},
clear:function(){this._key=e()}};
return Z}
var E=Object.getPrototypeOf(Function),S=typeof Map==="function"?Map:V(),M=typeof Set==="function"?Set:N(),f=new (typeof WeakMap==="function"?WeakMap:l());B.decorate=function(Z,u,e,px){if(b(px)){if(b(e)){if(!Array.isArray(Z))throw new TypeError;if(!q(u))throw new TypeError;for(e=Z.length-1;e>=0;--e)if(px=(0,Z[e])(u),!b(px)){if(!q(px))throw new TypeError;u=px}return u}if(!Array.isArray(Z))throw new TypeError;if(!d(u))throw new TypeError;e=C(e);for(px=Z.length-1;px>=0;--px)(0,Z[px])(u,e)}else{if(Array.isArray(Z))if(d(u)){if(b(e))throw new TypeError;
if(!d(px))throw new TypeError;}else throw new TypeError;else throw new TypeError;e=C(e);for(var kI=Z.length-1;kI>=0;--kI){var Ul=(0,Z[kI])(u,e,px);if(!b(Ul)){if(!d(Ul))throw new TypeError;px=Ul}}return px}};
B.metadata=function(Z,u){return function(e,px){if(b(px)){if(!q(e))throw new TypeError;c(e,void 0,!0).set(Z,u)}else{if(!d(e))throw new TypeError;px=C(px);c(e,px,!0).set(Z,u)}}};
B.defineMetadata=function(Z,u){var e;if(d(u))b(e)||(e=C(e));else throw new TypeError;c(u,e,!0).set("parameters",Z)};
B.hasMetadata=function(Z,u,e){if(d(u))b(e)||(e=C(e));else throw new TypeError;return x(Z,u,e)};
B.hasOwnMetadata=function(Z,u,e){if(d(u))b(e)||(e=C(e));else throw new TypeError;return P(Z,u,e)};
B.getMetadata=function(Z,u,e){if(d(u))b(e)||(e=C(e));else throw new TypeError;return Y(Z,u,e)};
B.getOwnMetadata=function(Z,u,e){if(d(u))b(e)||(e=C(e));else throw new TypeError;return g(Z,u,e)};
B.getMetadataKeys=function(Z,u){if(d(Z))b(u)||(u=C(u));else throw new TypeError;return k(Z,u)};
B.getOwnMetadataKeys=function(Z,u){if(d(Z))b(u)||(u=C(u));else throw new TypeError;return n(Z,u)};
B.deleteMetadata=function(Z,u,e){if(d(u))b(e)||(e=C(e));else throw new TypeError;var px=c(u,e,!1);if(!b(px)){if(!px.delete(Z))return!1;if(px.size>0)return!0;Z=f.get(u);Z.delete(e);if(Z.size>0)return!0;f.delete(u);return!0}};
(function(Z){if(typeof Z.Reflect!=="undefined"){if(Z.Reflect!==B)for(var u in B)Z.Reflect[u]=B[u]}else Z.Reflect=B})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(kqI||(kqI={}));var Xr0=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
Xr0.prototype.addEventListener=function(B,c,x){this.target.addEventListener(B,c,x)};
Xr0.prototype.removeEventListener=function(B,c,x){this.target.removeEventListener(B,c,x)};
Xr0.prototype.dispatchEvent=function(B){if(this.onabort&&B.type==="abort")this.onabort(B);return this.target.dispatchEvent(B)};var $9W=function(){this.signal=new Xr0};
$9W.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var B=document.createEvent("Event");B.initEvent("abort",!1,!1);this.signal.dispatchEvent(B)}};var wV$=self;var nC3=[0,_.fY,_.Ad,_.fY];var bWy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(bWy,_.zL);var K5Z=_.RU(bWy,[0,_.Rro,_.uJ,nC3,_.Ad,_.rQ]);_.sZ(_.rY,_.tG);_.a=_.rY.prototype;_.a.start=function(){this.stop();this.usingListeners_=!1;var B=jJy(this),c=U9m(this);B&&!c&&this.JSC$9274_win_.mozRequestAnimationFrame?(this.JSC$9274_id_=_.wX(this.JSC$9274_win_,"MozBeforePaint",this.callback_),this.JSC$9274_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9274_id_=B&&c?B.call(this.JSC$9274_win_,this.callback_):this.JSC$9274_win_.setTimeout(k79(this.callback_),20)};
_.a.stop=function(){if(this.isActive()){var B=jJy(this),c=U9m(this);B&&!c&&this.JSC$9274_win_.mozRequestAnimationFrame?Tl(this.JSC$9274_id_):B&&c?c.call(this.JSC$9274_win_,this.JSC$9274_id_):this.JSC$9274_win_.clearTimeout(this.JSC$9274_id_)}this.JSC$9274_id_=null};
_.a.fire=function(){this.stop();this.JSC$9276_doAction_()};
_.a.isActive=function(){return this.JSC$9274_id_!=null};
_.a.JSC$9276_doAction_=function(){this.usingListeners_&&this.JSC$9274_id_&&Tl(this.JSC$9274_id_);this.JSC$9274_id_=null;this.JSC$9274_listener_.call(this.handler_,_.gQ())};
_.a.disposeInternal=function(){this.stop();_.rY.superClass_.disposeInternal.call(this)};
var jJy=function(B){B=B.JSC$9274_win_;return B.requestAnimationFrame||B.webkitRequestAnimationFrame||B.mozRequestAnimationFrame||B.oRequestAnimationFrame||B.msRequestAnimationFrame||null},U9m=function(B){B=B.JSC$9274_win_;
return B.cancelAnimationFrame||B.cancelRequestAnimationFrame||B.webkitCancelRequestAnimationFrame||B.mozCancelRequestAnimationFrame||B.oCancelRequestAnimationFrame||B.msCancelRequestAnimationFrame||null};_.eA=function(B,c,x){_.tG.call(this);this.JSC$9277_listener_=x!=null?B.bind(x):B;this.JSC$9277_interval_=c;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9277_timer_=null};
_.w(_.eA,_.tG);_.a=_.eA.prototype;_.a.fire=function(B){this.args_=arguments;this.JSC$9277_timer_||this.pauseCount_?this.shouldFire_=!0:d94(this)};
_.a.stop=function(){this.JSC$9277_timer_&&(_.xI.clearTimeout(this.JSC$9277_timer_),this.JSC$9277_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.a.pause=function(){this.pauseCount_++};
_.a.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9277_timer_||(this.shouldFire_=!1,d94(this))};
_.a.disposeInternal=function(){_.tG.prototype.disposeInternal.call(this);this.stop()};
var d94=function(B){B.JSC$9277_timer_=JB(function(){B.JSC$9277_timer_=null;B.shouldFire_&&!B.pauseCount_&&(B.shouldFire_=!1,d94(B))},B.JSC$9277_interval_);
var c=B.args_;B.args_=null;B.JSC$9277_listener_.apply(null,c)};var qp0=function(B,c){this.childIterator_=B[_.xI.Symbol.iterator]();this.mapFn_=c};
qp0.prototype[Symbol.iterator]=function(){return this};
qp0.prototype.next=function(){var B=this.childIterator_.next();return{value:B.done?void 0:this.mapFn_.call(void 0,B.value),done:B.done}};
var Cg4=function(B,c){return new qp0(B,c)};var hdS={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 Pl7=function(B){var c=m9t(B);if(!c)throw Error("Rd`"+B);return c},m9t=function(B){var c={};
B=String(B);var x=B.charAt(0)=="#"?B:"#"+B;if(Tj0.test(x))return c.hex=rlI(x),c.type="hex",c;x=sn7(B);return x.length?(c.hex=LWI(x[0],x[1],x[2]),c.type="rgb",c):hdS&&(B=hdS[B.toLowerCase()])?(c.hex=B,c.type="named",c):null},VcS=/#(.)(.)(.)/,rlI=function(B){if(!Tj0.test(B))throw Error("Td`"+B);
B.length==4&&(B=B.replace(VcS,"#$1$1$2$2$3$3"));return B.toLowerCase()},Yo7=function(B){B=rlI(B);
B=parseInt(B.slice(1),16);return[B>>16,B>>8&255,B&255]},LWI=function(B,c,x){B=Number(B);
c=Number(c);x=Number(x);if(B!=(B&255)||c!=(c&255)||x!=(x&255))throw Error("Ud`"+B+"`"+c+"`"+x);c=B<<16|c<<8|x;return B<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)},Tj0=/^#(?:[0-9a-f]{3}){1,2}$/i,tcn=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,sn7=function(B){var c=B.match(tcn);
if(c){B=Number(c[1]);var x=Number(c[2]);c=Number(c[3]);if(B>=0&&B<=255&&x>=0&&x<=255&&c>=0&&c<=255)return[B,x,c]}return[]};var wrm={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},Ja=wrm;Ja=wrm;var vow,Nj4,I1n;vow=function(B,c){switch(c){case 1:return B%4!=0||B%100==0&&B%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Nj4=function(B,c,x,P,Y){B=new Date(B,c,x);Y=Y||0;return B.valueOf()+(((P!==void 0?P:3)-Y+7)%7-((B.getDay()+6)%7-Y+7)%7)*864E5};
_.tU=function(B,c,x){typeof B==="number"?(this.date=I1n(B,c||0,x||1),Jiy(this,x||1)):_.xF(B)?(this.date=I1n(B.getFullYear(),B.getMonth(),B.getDate()),Jiy(this,B.getDate())):(this.date=new Date(_.gQ()),B=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Jiy(this,B))};
I1n=function(B,c,x){c=new Date(B,c,x);B>=0&&B<100&&c.setFullYear(c.getFullYear()-1900);return c};
_.a=_.tU.prototype;_.a.firstDayOfWeek_=Ja.FIRSTDAYOFWEEK;_.a.firstWeekCutOffDay_=Ja.FIRSTWEEKCUTOFFDAY;_.a.clone=function(){var B=new _.tU(this.date);B.firstDayOfWeek_=this.firstDayOfWeek_;B.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return B};
_.a.getFullYear=function(){return this.date.getFullYear()};
_.a.getYear=function(){return this.getFullYear()};
_.a.getMonth=function(){return this.date.getMonth()};
_.a.getDate=function(){return this.date.getDate()};
_.a.getTime=function(){return this.date.getTime()};
_.a.getDay=function(){return this.date.getDay()};
_.a.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.a.getUTCMonth=function(){return this.date.getUTCMonth()};
_.a.getUTCDate=function(){return this.date.getUTCDate()};
_.a.getUTCDay=function(){return this.date.getDay()};
_.a.getUTCHours=function(){return this.date.getUTCHours()};
_.a.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.a.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.a.set=function(B){this.date=new Date(B.getFullYear(),B.getMonth(),B.getDate())};
_.a.setFullYear=function(B){this.date.setFullYear(B)};
_.a.setYear=function(B){this.setFullYear(B)};
_.a.setMonth=function(B){this.date.setMonth(B)};
_.a.setDate=function(B){this.date.setDate(B)};
_.a.setTime=function(B){this.date.setTime(B)};
_.a.setUTCFullYear=function(B){this.date.setUTCFullYear(B)};
_.a.setUTCMonth=function(B){this.date.setUTCMonth(B)};
_.a.setUTCDate=function(B){this.date.setUTCDate(B)};
_.a.add=function(B){if(B.years||B.months){var c=this.getMonth()+B.months+B.years*12,x=this.getYear()+Math.floor(c/12);c%=12;c<0&&(c+=12);var P=Math.min(vow(x,c),this.getDate());this.setDate(1);this.setFullYear(x);this.setMonth(c);this.setDate(P)}B.days&&(x=this.getYear(),c=x>=0&&x<=99?-1900:0,B=new Date((new Date(x,this.getMonth(),this.getDate(),12)).getTime()+B.days*864E5),this.setDate(1),this.setFullYear(B.getFullYear()+c),this.setMonth(B.getMonth()),this.setDate(B.getDate()),Jiy(this,B.getDate()))};
_.a.JSC$9290_toIsoString=function(B){var c=this.getFullYear(),x=c<0?"-":c>=1E4?"+":"";return[x+_.PJ(Math.abs(c),x?6:4),_.PJ(this.getMonth()+1,2),_.PJ(this.getDate(),2)].join(B?"-":"")};
_.a.equals=function(B){return!(!B||this.getYear()!=B.getYear()||this.getMonth()!=B.getMonth()||this.getDate()!=B.getDate())};
_.a.toString=function(){return this.JSC$9290_toIsoString()};
var Jiy=function(B,c){B.getDate()!=c&&B.date.setUTCHours(B.date.getUTCHours()+(B.getDate()<c?1:-1))};
_.tU.prototype.valueOf=function(){return this.date.valueOf()};var Nl=function(B,c,x,P,Y){this.reversed=!!c;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!x;B&&w7(this,B,P);this.depth=Y!=void 0?Y:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.sZ(Nl,gR);var w7=function(B,c,x,P){if(B.node=c)B.tagType=typeof x==="number"?x:B.node.nodeType!=1?0:B.reversed?-1:1;typeof P==="number"&&(B.depth=P)};
_.a=Nl.prototype;_.a.JSC$9305_copyFrom=function(B){this.node=B.node;this.tagType=B.tagType;this.depth=B.depth;this.reversed=B.reversed;this.constrained=B.constrained};
_.a.clone=function(){return new Nl(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.a.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return sh;var B=this.node;var c=this.reversed?-1:1;if(this.tagType==c){var x=this.reversed?B.lastChild:B.firstChild;x?w7(this,x):w7(this,B,c*-1)}else(x=this.reversed?B.previousSibling:B.nextSibling)?w7(this,x):w7(this,B.parentNode,c*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(B=this.node)?pm(B):sh};
_.a.equals=function(B){return B.node==this.node&&(!this.node||B.tagType==this.tagType)};
_.a.splice=function(B){var c=this.node,x=this.reversed?1:-1;this.tagType==x&&(this.tagType=x*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Nl.prototype.next.call(this);this.reversed=!this.reversed;x=_.R7(arguments[0])?arguments[0]:arguments;for(var P=x.length-1;P>=0;P--)_.EY(x[P],c);_.qH(c)};var W5S=function(){},I8=function(B){for(var c=[],x=B.getTextRangeCount(),P=0;P<x;P++)c.push(B.getTextRange(P));
return c};
W5S.prototype.isReversed=function(){return!1};
W5S.prototype.getWindow=function(){return WM(_.ly(this.JSC$9307_getStartNode()))};
var l1F=function(B,c){Nl.call(this,B,c,!0)};
_.sZ(l1F,Nl);var JU=function(B,c,x,P,Y){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Y;if(B){this.startNode_=B;this.startOffset_=c;this.endNode_=x;this.endOffset_=P;if(B.nodeType==1&&B.tagName!="BR")if(B=B.childNodes,c=B[c])this.startNode_=c,this.startOffset_=0;else{B.length&&(this.startNode_=_.v$(B));var g=!0}x.nodeType==1&&((this.endNode_=x.childNodes[P])?this.endOffset_=0:this.endNode_=x)}Nl.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.sZ(JU,l1F);_.a=JU.prototype;_.a.JSC$9313_getStartNode=function(){return this.startNode_};
_.a.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)};
_.a.next=function(){return this.isLast()?sh:JU.superClass_.next.call(this)};
_.a.JSC$9305_copyFrom=function(B){this.startNode_=B.startNode_;this.endNode_=B.endNode_;this.startOffset_=B.startOffset_;this.endOffset_=B.endOffset_;this.isReversed_=B.isReversed_;JU.superClass_.JSC$9305_copyFrom.call(this,B)};
_.a.clone=function(){var B=new JU(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);B.JSC$9305_copyFrom(this);return B};var ECt=function(){};
ECt.prototype.__iterator__=function(){return new JU(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var W6=function(B){this.range_=B};
_.sZ(W6,ECt);var OW4=function(B){var c=_.ly(B).createRange();if(B.nodeType==3)c.setStart(B,0),c.setEnd(B,B.length);else if(Je(B)||B.nodeType==3){for(var x,P=B;(x=P.firstChild)&&(Je(x)||x.nodeType==3);)P=x;c.setStart(P,0);for(P=B;(x=P.lastChild)&&(Je(x)||x.nodeType==3);)P=x;c.setEnd(P,P.nodeType==1?P.childNodes.length:P.length)}else x=B.parentNode,B=Array.prototype.indexOf.call(x.childNodes,B),c.setStart(x,B),c.setEnd(x,B+1);return c},oCF=function(B,c,x,P){var Y=_.ly(B).createRange();
Y.setStart(B,c);Y.setEnd(x,P);return Y};
_.a=W6.prototype;_.a.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.a.getContainer=function(){return this.range_.commonAncestorContainer};
_.a.compareBrowserRangeEndpoints=function(B,c,x){return this.range_.compareBoundaryPoints(x==1?c==1?_.xI.Range.START_TO_START:_.xI.Range.START_TO_END:c==1?_.xI.Range.END_TO_START:_.xI.Range.END_TO_END,B)};
_.a.isCollapsed=function(){return this.range_.collapsed};
_.a.select=function(B){this.selectInternal(WM(_.ly(this.range_.startContainer)).getSelection(),B)};
_.a.selectInternal=function(B){B.removeAllRanges();B.addRange(this.range_)};
_.a.insertNode=function(B,c){var x=this.range_.cloneRange();x.collapse(c);x.insertNode(B);x.detach();return B};
_.a.collapse=function(B){this.range_.collapse(B)};_.sZ(R1,W6);R1.prototype.selectInternal=function(B,c){!c||this.isCollapsed()?R1.superClass_.selectInternal.call(this,B,c):(B.collapse(this.range_.endContainer,this.range_.endOffset),B.extend(this.range_.startContainer,this.range_.startOffset))};_.sZ(eO,W6);eO.prototype.compareBrowserRangeEndpoints=function(B,c,x){return eO.superClass_.compareBrowserRangeEndpoints.call(this,B,c,x)};
eO.prototype.selectInternal=function(B,c){c?B.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):B.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var QJ3=function(B){return _.bJ?new eO(B):_.nY?new R1(B):new W6(B)};var l9=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},F5n;
_.sZ(l9,W5S);F5n=function(B,c){var x=new l9;x.browserRangeWrapper_=B;x.isReversed_=!!c;return x};
_.vCm=function(B){B=_.bJ?new eO(OW4(B)):_.nY?new R1(OW4(B)):new W6(OW4(B));return F5n(B)};
_.E5=function(B,c,x,P){var Y=new l9;Y.isReversed_=zdZ(B,c,x,P);if(_.ur(B)&&!Je(B)){var g=B.parentNode;c=Array.prototype.indexOf.call(g.childNodes,B);B=g}_.ur(x)&&!Je(x)&&(g=x.parentNode,P=Array.prototype.indexOf.call(g.childNodes,x),x=g);Y.isReversed_?(Y.startNode_=x,Y.startOffset_=P,Y.endNode_=B,Y.endOffset_=c):(Y.startNode_=B,Y.startOffset_=c,Y.endNode_=x,Y.endOffset_=P);return Y};
_.a=l9.prototype;_.a.clone=function(){var B=new l9;B.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();B.startNode_=this.startNode_;B.startOffset_=this.startOffset_;B.endNode_=this.endNode_;B.endOffset_=this.endOffset_;B.isReversed_=this.isReversed_;return B};
_.a.JSC$9307_getType=function(){return"text"};
_.a.getBrowserRangeObject=function(){return O5(this).range_};
_.a.getTextRangeCount=function(){return 1};
_.a.getTextRange=function(){return this};
var O5=function(B){var c;if(!(c=B.browserRangeWrapper_)){c=B.JSC$9307_getStartNode();var x=B.JSC$9307_getStartOffset(),P=B.JSC$9307_getEndNode(),Y=B.JSC$9307_getEndOffset();c=_.bJ?new eO(oCF(c,x,P,Y)):_.nY?new R1(oCF(c,x,P,Y)):new W6(oCF(c,x,P,Y));c=B.browserRangeWrapper_=c}return c};
_.a=l9.prototype;_.a.getContainer=function(){return O5(this).getContainer()};
_.a.JSC$9307_getStartNode=function(){return this.startNode_||(this.startNode_=O5(this).range_.startContainer)};
_.a.JSC$9307_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=O5(this).range_.startOffset};
_.a.JSC$9307_getEndNode=function(){return this.endNode_||(this.endNode_=O5(this).range_.endContainer)};
_.a.JSC$9307_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=O5(this).range_.endOffset};
_.a.isReversed=function(){return this.isReversed_};
_.a.JSC$9307_containsRange=function(B,c){if(B.JSC$9307_getType()=="text"){var x=O5(this);B=O5(B);c=c&&!B.isCollapsed();B=B.range_;x=c?x.compareBrowserRangeEndpoints(B,0,1)>=0&&x.compareBrowserRangeEndpoints(B,1,0)<=0:x.compareBrowserRangeEndpoints(B,0,0)>=0&&x.compareBrowserRangeEndpoints(B,1,1)<=0}else x=!1;return x};
_.a.isCollapsed=function(){return O5(this).isCollapsed()};
_.a.JSC$9307_getText=function(){return O5(this).range_.toString()};
_.a.__iterator__=function(){return new JU(this.JSC$9307_getStartNode(),this.JSC$9307_getStartOffset(),this.JSC$9307_getEndNode(),this.JSC$9307_getEndOffset())};
_.a.select=function(){O5(this).select(this.isReversed_)};
_.a.JSC$9307_removeContents=function(){var B=O5(this).range_;B.extractContents();if(B.startContainer.hasChildNodes()&&(B=B.startContainer.childNodes[B.startOffset])){var c=B.previousSibling;s09(B)==""&&_.qH(B);c&&s09(c)==""&&_.qH(c)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.a.insertNode=function(B,c){B=O5(this).insertNode(B,c);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return B};
_.a.collapse=function(B){B=this.isReversed()?!B:B;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(B);B?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var SpW=function(){};
_.sZ(SpW,W5S);SpW.prototype.JSC$9307_containsRange=function(B,c){var x=I8(this);B=I8(B);return(c?fp:_.ZQx)(B,function(P){return fp(x,function(Y){return Y.JSC$9307_containsRange(P,c)})})};
SpW.prototype.insertNode=function(B,c){c?_.lL(B,this.JSC$9307_getStartNode()):_.EY(B,this.JSC$9307_getEndNode());return B};var yi4,GqI=Ud().JSC$7372_document_.documentElement;yi4=GqI.requestFullscreen?"fullscreenchange":GqI.webkitRequestFullscreen?"webkitfullscreenchange":GqI.mozRequestFullScreen?"mozfullscreenchange":GqI.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Mc0=function(){var B=Ud().JSC$7372_document_;return!!(B.webkitIsFullScreen||B.mozFullScreen||B.msFullscreenElement||B.fullscreenElement)};var o8=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.sZ(o8,SpW);_.a=o8.prototype;_.a.clone=function(){var B=new o8;B.browserRanges_=_.DA(this.browserRanges_);return B};
_.a.JSC$9307_getType=function(){return"mutli"};
_.a.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.a.getTextRangeCount=function(){return this.browserRanges_.length};
_.a.getTextRange=function(B){this.ranges_[B]||(this.ranges_[B]=F5n(QJ3(this.browserRanges_[B])));return this.ranges_[B]};
_.a.getContainer=function(){if(!this.container_){for(var B=[],c=this.getTextRangeCount(),x=0;x<c;x++)B.push(this.getTextRange(x).getContainer());this.container_=B95.apply(null,B)}return this.container_};
var Q8=function(B){B.sortedRanges_||(B.sortedRanges_=I8(B),B.sortedRanges_.sort(function(c,x){var P=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();var Y=x.JSC$9307_getStartNode();x=x.JSC$9307_getStartOffset();return P==Y&&c==x?0:zdZ(P,c,Y,x)?1:-1}));
return B.sortedRanges_};
_.a=o8.prototype;_.a.JSC$9307_getStartNode=function(){return Q8(this)[0].JSC$9307_getStartNode()};
_.a.JSC$9307_getStartOffset=function(){return Q8(this)[0].JSC$9307_getStartOffset()};
_.a.JSC$9307_getEndNode=function(){return _.v$(Q8(this)).JSC$9307_getEndNode()};
_.a.JSC$9307_getEndOffset=function(){return _.v$(Q8(this)).JSC$9307_getEndOffset()};
_.a.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.a.JSC$9307_getText=function(){return I8(this).map(function(B){return B.JSC$9307_getText()}).join("")};
_.a.__iterator__=function(){return new Fy(this)};
_.a.select=function(){var B=this.getWindow().getSelection();B.removeAllRanges();for(var c=this.getTextRangeCount(),x=0;x<c;x++)B.addRange(this.getTextRange(x).getBrowserRangeObject())};
_.a.JSC$9307_removeContents=function(){I8(this).forEach(function(B){B.JSC$9307_removeContents()})};
_.a.collapse=function(B){if(!this.isCollapsed()){var c=B?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;c.collapse(B);this.ranges_=[c];this.sortedRanges_=[c];this.browserRanges_=[c.getBrowserRangeObject()]}};
var Fy=function(B){this.iterators_=null;this.currentIdx_=0;B&&(this.iterators_=Q8(B).map(function(c){return _.YEW(c)}));
Nl.call(this,B?this.JSC$9313_getStartNode():null,!1,!0)};
_.sZ(Fy,l1F);_.a=Fy.prototype;_.a.JSC$9313_getStartNode=function(){return this.iterators_[0].JSC$9313_getStartNode()};
_.a.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.a.next=function(){for(;this.currentIdx_<this.iterators_.length;){var B=this.iterators_[this.currentIdx_],c=B.next();if(c.done)this.currentIdx_++;else return w7(this,B.node,B.tagType,B.depth),c}return sh};
_.a.JSC$9305_copyFrom=function(B){this.iterators_=_.DA(B.iterators_);Fy.superClass_.JSC$9305_copyFrom.call(this,B)};
_.a.clone=function(){var B=new Fy(null);B.JSC$9305_copyFrom(this);return B};var L5m,zdZ;_.V0=function(){var B=window.getSelection();return B&&L5m(B)};
L5m=function(B){var c=!1;if(B.createRange)try{var x=B.createRange()}catch(Y){return null}else if(B.rangeCount){if(B.rangeCount>1){x=new o8;c=B.rangeCount;for(var P=0;P<c;P++)x.browserRanges_.push(B.getRangeAt(P));return x}x=B.getRangeAt(0);c=zdZ(B.anchorNode,B.anchorOffset,B.focusNode,B.focusOffset)}else return null;return F5n(QJ3(x),c)};
_.zg=function(B,c){return _.E5(B,c,B,c)};
_.SE=function(B,c,x,P){return _.E5(B,c,x,P)};
zdZ=function(B,c,x,P){if(B==x)return P<c;var Y;if(B.nodeType==1&&c)if(Y=B.childNodes[c])B=Y,c=0;else if(_.GP(B,x))return!0;if(x.nodeType==1&&P)if(Y=x.childNodes[P])x=Y,P=0;else if(_.GP(x,B))return!1;return(eQW(B,x)||c-P)>0};var y8=function(){_.V4.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.wf)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.wf)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.wf)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.wf)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.wf)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.wf)(this.dispatchProgressEvent_,this)};
_.sZ(y8,_.V4);y8.prototype.abort=function(){try{this.reader_.abort()}catch(B){throw new sHd(B,"aborting read");}};
y8.prototype.getError=function(){return this.reader_.error&&new sHd(this.reader_.error,"reading file")};
y8.prototype.dispatchProgressEvent_=function(B){this.dispatchEvent(new ppm(B,this))};
y8.prototype.disposeInternal=function(){y8.superClass_.disposeInternal.call(this);delete this.reader_};
var HW4=function(B){var c=new y8,x=ZWm(c);c.reader_.readAsArrayBuffer(B);return x},f1m=function(B){var c=new y8,x=ZWm(c);
c.reader_.readAsDataURL(B);return x},ZWm=function(B){var c=new iK;
B.listen("loadend",_.q9(function(x,P){var Y=P.reader_.result,g=P.getError();Y==null||g?x.errback(g):x.callback(Y);P.dispose()},c,B));
return c};var Gg=function(){_.V4.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9347_eventHandler_=new _.cf(this);this.JSC$9347_isInitialized_=!1};
_.sZ(Gg,_.V4);var iWm=new _.da("d"),Ai9=new _.da("beforedragstart"),uX5=new _.da("dragstart"),D93=new _.da("beforedragmove"),ri5=new _.da("dragmove"),Rd5=new _.da("beforedragend"),edm=new _.da("dragend"),BLy=new _.da("e");Gg.prototype.isDragging=function(){return!!this.JSC$9347_dragger_};
var cm5=function(B,c){c.dlgGrowthDirection_=0;c.dlgDragHoverClass_=void 0;c.dlgDragPermission=0;B.dragLists_.push(c)},xZW=function(B,c){B.getHandleForDragItem_=c};
Gg.prototype.init=function(){if(!this.JSC$9347_isInitialized_){for(var B=this.dragLists_.length,c=0;c<B;c++)for(var x=_.OY(this.dragLists_[c]),P=x.length,Y=0;Y<P;++Y){var g=x[Y],k=this.getHandleForDragItem_(g),n=_.Py(k);this.dragItemForHandle_[n]=g;this.dragItemHoverClasses_&&(this.JSC$9347_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$9347_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9347_eventHandler_.listen(k,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9347_eventHandler_.listen(k,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$9347_eventHandler_.listen(k,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9347_isInitialized_=!0}};
Gg.prototype.disposeInternal=function(){this.JSC$9347_eventHandler_.dispose();for(var B=this.dragLists_.length,c=0;c<B;c++){var x=this.dragLists_[c];x.dlgGrowthDirection_=void 0;x.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;PGt(this);Gg.superClass_.disposeInternal.call(this)};
var Yv4=function(B,c){for(var x=B.dragLists_.length,P=0;P<x;P++){var Y=B.dragLists_[P];Y.dlgBounds_=wiI(Y)}x=B.dragItems_.length;for(P=0;P<x;P++)Y=B.dragItems_[P],Y!=c&&(Y.dlgBounds_=wiI(Y))};
_.a=Gg.prototype;
_.a.handlePotentialDragStart_=function(B){var c=_.Py(B.currentTarget);c=this.dragItemForHandle_[c];if(c.parentElement.dlgDragPermission!=2){this.currDragItem_=c;a:{c=this.currDragItem_;for(var x=c.cloneNode(!0),P=hG("TEXTAREA",c),Y=hG("TEXTAREA",x),g=0;g<P.length;g++)Y[g].value=P[g].value;switch(c.tagName){case "TR":c=_.Nw("TABLE",null,_.Nw("TBODY",null,x));break a;case "TD":case "TH":c=_.Nw("TABLE",null,_.Nw("TBODY",null,_.Nw("TR",null,x)));break a;case "TEXTAREA":x.value=c.value;default:c=x;break a}c=
void 0}this.draggerEl_=c;this.draggerElClasses_&&HB(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ly(this.currDragItem_).body.appendChild(this.draggerEl_);x=_.Od(this.currDragItem_);c=this.draggerEl_;P=_.Od(c);if(x instanceof _.Jx){var k=x.y;x=x.x}z1(c,c.offsetLeft+(x-P.x),c.offsetTop+(Number(k)-P.y));this.JSC$9347_dragger_=new _.z4(this.draggerEl_);_.g6Z(this.JSC$9347_dragger_,this.hysteresisDistance_);
_.wX(this.JSC$9347_dragger_,"start",this.handleDragStart_,!1,this);_.wX(this.JSC$9347_dragger_,"end",this.handleDragEnd_,!1,this);_.wX(this.JSC$9347_dragger_,"earlycancel",this.JSC$9349_cleanup_,!1,this);this.dispatchEvent(new Ml(iWm,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_));this.JSC$9347_dragger_.startDrag(B)}};
_.a.handleDragStart_=function(B){if(this.dispatchEvent(new Ml(Ai9,this,B.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.DY9(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?HB(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var c=b44(this.draggerEl_);this.draggerEl_.halfWidth=c.width/2;this.draggerEl_.halfHeight=c.height/2;c=this.draggerEl_.getBoundingClientRect();
var x=B.clientY,P=stt(this.JSC$9347_dragger_,B.clientX);if(P>c.right){var Y=this.currDragItem_.getBoundingClientRect();this.JSC$9347_dragger_.deltaX=P-(P-Y.left)/Y.width*c.width}x=p53(this.JSC$9347_dragger_,x);x>c.bottom&&(this.JSC$9347_dragger_.deltaY+=x-c.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Yv4(this,this.currDragItem_);this.currDragItem_.style.display="";_.wX(this.JSC$9347_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ml(uX5,
this,B.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_))}else B.preventDefault(),this.JSC$9349_cleanup_()};
_.a.handleDragMove_=function(B){var c=_.Od(this.draggerEl_);c=new _.Jx(c.x+this.draggerEl_.halfWidth,c.y+this.draggerEl_.halfHeight);a:{var x=null;if(this.currDragItem_.style.display!="none"){x=this.currDragItem_.parentNode;var P=wiI(x);if(ajI(c,P))break a}P=this.dragLists_.length;for(var Y=0;Y<P;Y++){var g=this.dragLists_[Y];if(g!=x&&ajI(c,g.dlgBounds_)){x=g;break a}}x=null}if(x){if(x==null)throw Error("Vd");P=0;Y=!1;g=void 0;switch(x.dlgGrowthDirection_){case 0:P=c.y;var k=gN9;var n=swQ;break;case 4:Y=
!0;case 2:P=c.x;k=p3I;n=swQ;break;case 5:Y=!0;case 3:P=c.x,k=k$5,n=X3m}for(var b=null,d,q=_.OY(x),C=q.length,h=0;h<C;h++){var V=q[h];if(V!=this.currDragItem_){var N=k(V.dlgBounds_);if(Y){var l=$ZI(V,c);g===void 0&&(g=l);n(P,N)&&(d==void 0||l<g||l==g&&(n(N,d)||N==d))&&(b=V,d=N);l<g&&(g=l)}else n(P,N)&&(d==void 0||n(N,d))&&(b=V,d=N)}}k=b!==null&&$ZI(b,c)>g?null:b}else k=null;if(!this.dispatchEvent(new Ml(D93,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_,c,x,k)))return!1;if(x&&x.dlgDragPermission!=
1)this.currDragItem_.parentNode==x&&_.DY9(this.currDragItem_)==k||x.insertBefore(this.currDragItem_,k),this.currDragItem_.style.display="",x.dlgDragHoverClass_&&_.rX(x,x.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",n=this.dragLists_.length,d=0;d<n;d++)P=this.dragLists_[d],P.dlgDragHoverClass_&&_.uA(P,P.dlgDragHoverClass_);x!=this.currHoverList_&&(this.currHoverList_=x,Yv4(this,this.currDragItem_));this.dispatchEvent(new Ml(ri5,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_,
c,x,k));return!1};
_.a.JSC$9349_cleanup_=function(){PGt(this);this.JSC$9347_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var B=this.dragLists_.length,c=0;c<B;c++)this.dragLists_[c].dlgBounds_=null;B=this.dragItems_.length;for(c=0;c<B;c++)this.dragItems_[c].dlgBounds_=null};
_.a.handleDragEnd_=function(B){if(!this.dispatchEvent(new Ml(Rd5,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_)))return!1;PGt(this);this.dispatchEvent(new Ml(edm,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9347_dragger_));this.JSC$9349_cleanup_();return!0};
var PGt=function(B){_.R3(B.JSC$9347_dragger_);var c=B.draggerEl_&&B.draggerEl_.parentElement;B.draggerEl_&&_.qH(B.draggerEl_);B.currDragItem_&&B.currDragItem_.style.display=="none"&&(B.origList_.insertBefore(B.currDragItem_,B.origNextItem_),B.currDragItem_.style.display="");B.currDragItemClasses_&&B.currDragItem_?g2W(B.currDragItem_,B.currDragItemClasses_||[]):B.currDragItem_&&(B.currDragItem_.style.visibility="");for(var x=B.dragLists_.length,P=0;P<x;P++){var Y=B.dragLists_[P];Y.dlgDragHoverClass_&&
_.uA(Y,Y.dlgDragHoverClass_)}c&&B.dispatchEvent(new Ml(BLy,B,null,B.currDragItem_,B.draggerEl_,B.JSC$9347_dragger_))};
_.a=Gg.prototype;_.a.getHandleForDragItem_=function(B){return B};
_.a.handleDragItemMouseover_=function(B){HB(B.currentTarget,this.dragItemHoverClasses_||[])};
_.a.handleDragItemMouseout_=function(B){g2W(B.currentTarget,this.dragItemHoverClasses_||[])};
_.a.handleDragItemHandleMouseover_=function(B){HB(B.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.a.handleDragItemHandleMouseout_=function(B){g2W(B.currentTarget,this.dragItemHandleHoverClasses_||[])};
var ajI=function(B,c){return B.x>c.left&&B.x<c.left+c.width&&B.y>c.top&&B.y<c.top+c.height},$ZI=function(B,c){B=B.dlgBounds_;
return Math.abs(c.y-(B.top+(B.height-1)/2))},gN9=function(B){return B.top+B.height-1},p3I=function(B){return B.left+B.width-1},k$5=function(B){return B.left||0},swQ=function(B,c){return B<c},X3m=function(B,c){return B>c},Ml=function(B,c,x,P,Y,g){_.qf.call(this,B);
this.event=x;this.currDragItem=P;this.draggerEl=Y;this.JSC$9351_dragger=g};
_.sZ(Ml,_.qf);_.sZ(xd,_.tG);var nNF=new _.Jx(0,0);xd.prototype.JSC$9355_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
xd.prototype.JSC$9355_onMouseMove=function(B){var c=this.containerIsActuallyContent_?nNF:jk(Ud(this.containerNode_)),x=this.horizontalScrolling_?this.calculateScrollDelta(B.clientX+c.x,this.scrollBounds_.left,this.scrollBounds_.width):0,P=this.calculateScrollDelta(B.clientY+c.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=x;this.scrollDelta_.y=P;!(x=!x&&!P)&&(x=this.constrainScroll_)&&(x=B.clientX+c.x,B=B.clientY+c.y,c=this.containerBounds_,x=!(c.left<=x&&c.left+c.width>=
x&&c.top<=B&&c.top+c.height>=B));x?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
xd.prototype.calculateScrollDelta=function(B,c,x){var P=0;B<c?P=-8:B>c+x&&(P=8);return P};
xd.prototype.disposeInternal=function(){xd.superClass_.disposeInternal.call(this);this.JSC$9353_eventHandler_.dispose();this.scrollTimer_.dispose()};var bkn={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"}}},Lg=bkn;Lg=bkn;var ZE={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 Kkn=function(){},Lk=function(B){if(typeof B=="number"){var c=new Kkn;
c.standardOffset_=B;var x=B;if(x==0)x="Etc/GMT";else{var P=["Etc/GMT",x<0?"-":"+"];x=Math.abs(x);P.push(Math.floor(x/60)%100);x%=60;x!=0&&P.push(":",_.PJ(x,2));x=P.join("")}c.timeZoneId_=x;x=B;x==0?x="UTC":(P=["UTC",x<0?"+":"-"],x=Math.abs(x),P.push(Math.floor(x/60)%100),x%=60,x!=0&&P.push(":",x),x=P.join(""));B=jwW(B);c.tzNames_=[x,x];c.tzNamesExt_={STD_LONG_NAME_GMT:B,STD_GENERIC_LOCATION:B};c.transitions_=[];return c}c=new Kkn;c.timeZoneId_=B.id;c.standardOffset_=-B.std_offset;c.tzNames_=B.names;
c.tzNamesExt_=B.names_ext;c.transitions_=B.transitions;return c},jwW=function(B){var c=["GMT"];
c.push(B<=0?"+":"-");B=Math.abs(B);c.push(_.PJ(Math.floor(B/60)%100,2),":",_.PJ(B%60,2));return c.join("")},UZ0=function(B,c){c=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5;
for(var x=0;x<B.transitions_.length&&c>=B.transitions_[x];)x+=2;return x==0?0:B.transitions_[x-1]},dZS=function(B,c){B=B.standardOffset_-UZ0(B,c);
return B===-1440?0:B};var Zj=function(B,c){this.patternParts_=[];this.JSC$9366_dateTimeSymbols_=c||Ja;typeof B=="number"?qv0(this,B):CG5(this,B)},hln=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],H6=function(B){return B.getHours?B.getHours():0},CG5=function(B,c){for(ZVo&&(c=c.replace(/\u200f/g,""));c;){for(var x=c,P=0;P<hln.length;++P){var Y=c.match(hln[P]);
if(Y){var g=Y[0];c=c.substring(g.length);P==0&&(g=="''"?g="'":(g=g.substring(1,Y[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));B.patternParts_.push({text:g,type:P});break}}if(x===c)throw Error("Wd`"+c);}};
Zj.prototype.format=function(B,c){if(!B)throw Error("Xd");var x=c?(B.getTimezoneOffset()-dZS(c,B))*6E4:0,P=x?new Date(B.getTime()+x):B,Y=P;c&&P.getTimezoneOffset()!=B.getTimezoneOffset()&&(P=new Date(P.getTime()+(P.getTimezoneOffset()-B.getTimezoneOffset())*6E4),Y=new Date(B.getTime()+(x+(x>0?-864E5:864E5))));x=[];for(var g=0;g<this.patternParts_.length;++g){var k=this.patternParts_[g].text;1==this.patternParts_[g].type?x.push(mZ5(this,k,B,P,Y,c)):x.push(k)}return x.join("")};
var qv0=function(B,c){if(c<4)var x=B.JSC$9366_dateTimeSymbols_.DATEFORMATS[c];else if(c<8)x=B.JSC$9366_dateTimeSymbols_.TIMEFORMATS[c-4];else if(c<12)x=B.JSC$9366_dateTimeSymbols_.DATETIMEFORMATS[c-8],x=x.replace("{1}",B.JSC$9366_dateTimeSymbols_.DATEFORMATS[c-8]),x=x.replace("{0}",B.JSC$9366_dateTimeSymbols_.TIMEFORMATS[c-8]);else if(c===12)x=B.JSC$9366_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(c===13)x=B.JSC$9366_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{qv0(B,10);return}CG5(B,x)},fg=function(B,c){c=String(c);
B=B.JSC$9366_dateTimeSymbols_||Ja;if(B.ZERODIGIT!==void 0&&!LQI){for(var x=[],P=0;P<c.length;P++){var Y=c.charCodeAt(P);x.push(48<=Y&&Y<=57?String.fromCharCode(B.ZERODIGIT+Y-48):c.charAt(P))}c=x.join("")}return c},LQI=!1,ZVo=!1,VBW=function(B,c,x,P){x=x.getFullYear();
x<=0&&P&&(x=1-x);return fg(B,TL3(x,c))},TL3=function(B,c){c==2&&(B%=100);
B<0&&c++;return _.PJ(B,c)},i9=function(B){if(!(B.getHours&&B.getSeconds&&B.getMinutes))throw Error("Yd");
},tB9=function(B,c){i9(c);
c=H6(c);return B.JSC$9366_dateTimeSymbols_.AMPMS[c>=12&&c<24?1:0]},mZ5=function(B,c,x,P,Y,g){var k=c.length;
switch(c.charAt(0)){case "G":return x=P.getFullYear()>0?1:0,k>=4?B.JSC$9366_dateTimeSymbols_.ERANAMES[x]:B.JSC$9366_dateTimeSymbols_.ERAS[x];case "y":return VBW(B,k,P,!0);case "Y":return x=(new Date(Nj4(P.getFullYear(),P.getMonth(),P.getDate(),B.JSC$9366_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,B.JSC$9366_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),k==2&&(x%=100),fg(B,TL3(x,k));case "u":return VBW(B,k,P,!1);case "M":a:switch(x=P.getMonth(),k){case 5:k=B.JSC$9366_dateTimeSymbols_.NARROWMONTHS[x];break a;
case 4:k=B.JSC$9366_dateTimeSymbols_.MONTHS[x];break a;case 3:k=B.JSC$9366_dateTimeSymbols_.SHORTMONTHS[x];break a;default:k=fg(B,_.PJ(x+1,k))}return k;case "k":return i9(Y),fg(B,_.PJ(H6(Y)||24,k));case "S":return fg(B,(Y.getMilliseconds()/1E3).toFixed(Math.min(3,k)).slice(2)+(k>3?_.PJ(0,k-3):""));case "E":return x=P.getDay(),k>=4?B.JSC$9366_dateTimeSymbols_.WEEKDAYS[x]:B.JSC$9366_dateTimeSymbols_.SHORTWEEKDAYS[x];case "a":return tB9(B,Y);case "b":return tB9(B,Y);case "B":return tB9(B,Y);case "h":return i9(Y),
fg(B,_.PJ(H6(Y)%12||12,k));case "K":return i9(Y),fg(B,_.PJ(H6(Y)%12,k));case "H":return i9(Y),fg(B,_.PJ(H6(Y),k));case "c":a:switch(x=P.getDay(),k){case 5:k=B.JSC$9366_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[x];break a;case 4:k=B.JSC$9366_dateTimeSymbols_.STANDALONEWEEKDAYS[x];break a;case 3:k=B.JSC$9366_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[x];break a;default:k=fg(B,_.PJ(x,1))}return k;case "L":a:switch(x=P.getMonth(),k){case 5:k=B.JSC$9366_dateTimeSymbols_.STANDALONENARROWMONTHS[x];break a;
case 4:k=B.JSC$9366_dateTimeSymbols_.STANDALONEMONTHS[x];break a;case 3:k=B.JSC$9366_dateTimeSymbols_.STANDALONESHORTMONTHS[x];break a;default:k=fg(B,_.PJ(x+1,k))}return k;case "Q":return x=Math.floor(P.getMonth()/3),k<4?B.JSC$9366_dateTimeSymbols_.SHORTQUARTERS[x]:B.JSC$9366_dateTimeSymbols_.QUARTERS[x];case "d":return fg(B,_.PJ(P.getDate(),k));case "m":return i9(Y),fg(B,_.PJ(Y.getMinutes?Y.getMinutes():0,k));case "s":return i9(Y),fg(B,_.PJ(Y.getSeconds(),k));case "v":return(g||Lk(x.getTimezoneOffset())).timeZoneId_;
case "V":return B=g||Lk(x.getTimezoneOffset()),k<=2?B.timeZoneId_:UZ0(B,x)>0?B.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?B.tzNamesExt_.DST_GENERIC_LOCATION:B.tzNamesExt_.DST_GENERIC_LOCATION:B.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?B.tzNamesExt_.STD_GENERIC_LOCATION:B.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return x=Nj4(Y.getFullYear(),Y.getMonth(),Y.getDate(),B.JSC$9366_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,B.JSC$9366_dateTimeSymbols_.FIRSTDAYOFWEEK),fg(B,_.PJ(Math.floor(Math.round((x-(new Date((new Date(x)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,k));case "z":return B=g||Lk(x.getTimezoneOffset()),k<4?B.tzNames_[UZ0(B,x)>0?2:0]:B.tzNames_[UZ0(B,x)>0?3:1];case "Z":return c=g||Lk(x.getTimezoneOffset()),k<4?(k=-dZS(c,x),B=[k<0?"-":"+"],k=Math.abs(k),B.push(_.PJ(Math.floor(k/60)%100,2),_.PJ(k%60,2)),k=B.join("")):k=fg(B,jwW(dZS(c,x))),k;default:return""}};var w3Q=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,NL4=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,p1Y=function(B){this.patternParts_=[];this.JSC$9375_dateTimeSymbols_=Ja;if(typeof B=="number"){B>11&&(B=10);if(B<4)var c=this.JSC$9375_dateTimeSymbols_.DATEFORMATS[B];else B<8?c=this.JSC$9375_dateTimeSymbols_.TIMEFORMATS[B-4]:(c=this.JSC$9375_dateTimeSymbols_.DATETIMEFORMATS[B-8],c=c.replace("{1}",this.JSC$9375_dateTimeSymbols_.DATEFORMATS[B-8]),c=c.replace("{0}",this.JSC$9375_dateTimeSymbols_.TIMEFORMATS[B-
8]));Ijn(this,c)}else Ijn(this,B)},Ijn=function(B,c){for(var x=!1,P="",Y=0;Y<c.length;Y++){var g=c.charAt(Y);
if(w3Q.test(g))for(P.length>0&&(B.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P=""),B.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Y<c.length-1&&c.charAt(Y+1)==" ";)Y++;else if(x)g=="'"?Y+1<c.length&&c.charAt(Y+1)=="'"?(P+="'",Y++):x=!1:P+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){P.length>0&&(B.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P="");for(var k=c.charAt(Y),n=Y+1;n<c.length&&c.charAt(n)==k;)n++;k=n-Y;k<=0?n=!1:(n="MydhHmsSDkK".indexOf(g),
n=n>0||n==0&&k<3);B.patternParts_.push({text:g,count:k,abutStart:!1,numeric:n});Y+=k-1}else g=="'"?Y+1<c.length&&c.charAt(Y+1)=="'"?(P+="'",Y++):x=!0:P+=g}P.length>0&&B.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1});c=!1;for(x=0;x<B.patternParts_.length;x++)B.patternParts_[x].numeric?!c&&x+1<B.patternParts_.length&&B.patternParts_[x+1].numeric&&(c=!0,B.patternParts_[x].abutStart=!0):c=!1};
p1Y.prototype.parse=function(B,c,x){var P=!1,Y=!1;x&&(P=x.predictive||!1,Y=x.validate||!1);if(P)for(x=0;x<this.patternParts_.length;x++){var g=this.patternParts_[x];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("Zd`"+g.text.charAt(0));}g=new Jmt;x=[0];g.dayPeriodIndex=-1;for(var k=0;k<this.patternParts_.length&&!(P&&x[0]>=B.length);k++){if(this.patternParts_[k].count==0){a:{var n=B;var b=x,d=this.patternParts_[k],q=P;if(d.text.match(w3Q)!=null){if(d=b[0],
Wk4(n,b),b[0]>d){n=!0;break a}}else{if(n.indexOf(d.text,b[0])==b[0]){b[0]+=d.text.length;n=!0;break a}if(q&&d.text.indexOf(n.substring(b[0]))==0){b[0]+=n.length-b[0];n=!0;break a}}n=!1}if(n)continue;return 0}if(this.patternParts_[k].abutStart){a:{b=B;d=x;q=k;var C=d[0],h=0;for(n=q;n<this.patternParts_.length;n++){var V=this.patternParts_[n],N=V.count;if(N===0)break;if(n==q&&(N-=h,h++,N==0)){n=0;break a}var l=n>q&&V.numeric,E=d[0];if(!ljd(this,b,d,V,N,g,!1)||l&&d[0]-E<N)n=q-1,d[0]=C}n-=q}if(n<=0)return 0;
k+=n-1}else if(!ljd(this,B,x,this.patternParts_[k],0,g,P))return 0}a:{B=Y;if(c==null)throw Error("$d");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&c.setFullYear(g.year);P=c.getDate();c.setDate(1);g.month!=void 0&&c.setMonth(g.month);g.day!=void 0?c.setDate(g.day):(Y=vow(c.getFullYear(),c.getMonth()),c.setDate(P>Y?Y:P));typeof c.setHours==="function"&&(g.hours==void 0&&(g.hours=c.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),c.setHours(g.hours));typeof c.setMinutes==="function"&&g.minutes!=void 0&&c.setMinutes(g.minutes);typeof c.setSeconds==="function"&&g.seconds!=void 0&&c.setSeconds(g.seconds);typeof c.setMilliseconds==="function"&&g.milliseconds!=void 0&&c.setMilliseconds(g.milliseconds);if(B&&(g.year&&g.year!=c.getFullYear()||g.month&&g.month!=
c.getMonth()||g.day&&g.day!=c.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))c=!1;else{g.tzOffset!=void 0&&c.setTime(c.getTime()+(g.tzOffset-c.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(B=new Date,B.setFullYear(B.getFullYear()-80),c.getTime()<B.getTime()&&c.setFullYear(B.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-c.getDay())%7,g>3&&(g-=7),B=c.getMonth(),c.setDate(c.getDate()+g),c.getMonth()!=
B&&c.setDate(c.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=c.getDay()){c=!1;break a}c=!0}}return c?x[0]:0};
var ljd=function(B,c,x,P,Y,g,k){Wk4(c,x);if(P.numeric&&Y>0&&x[0]+Y>c.length)return!1;switch(P.text.charAt(0)){case "G":return AU(c,x,[B.JSC$9375_dateTimeSymbols_.ERAS],function(n){return g.era=n}),!0;
case "M":case "L":return ENt(B,c,x,Y,P,g);case "E":return AU(c,x,[B.JSC$9375_dateTimeSymbols_.WEEKDAYS,B.JSC$9375_dateTimeSymbols_.SHORTWEEKDAYS],function(n){return g.dayOfWeek=n});
case "B":case "b":return Y=[],B=[[].concat(B.JSC$9375_dateTimeSymbols_.AMPMS)],Y.push("isAm"),Y.push("isPm"),c=AU(c,x,B,function(n){return g.dayPeriodIndex=n},k),g.dayPeriodName=Y[g.dayPeriodIndex],k?c:!0;
case "a":return c=AU(c,x,[B.JSC$9375_dateTimeSymbols_.AMPMS],function(n){return g.ampm=n},k),k?c:!0;
case "y":return OkZ(B,c,x,P,Y,g);case "Q":return AU(c,x,[B.JSC$9375_dateTimeSymbols_.QUARTERS,B.JSC$9375_dateTimeSymbols_.SHORTQUARTERS],function(n){g.month=n*3;g.day=1});
case "d":return u9(B,c,x,P,Y,function(n){g.day=n}),!0;
case "S":return oNQ(B,c,x,Y,g);case "h":case "K":case "H":case "k":return c=u9(B,c,x,P,Y,function(n){g.hours=P.text.charAt(0)==="h"&&n===12?0:n},k),k?c:!0;
case "m":return c=u9(B,c,x,P,Y,function(n){g.minutes=n},k),k?c:!0;
case "s":return u9(B,c,x,P,Y,function(n){g.seconds=n}),!0;
case "z":case "Z":case "v":return QwQ(B,c,x,g);default:return!1}},OkZ=function(B,c,x,P,Y,g){var k=x[0];
Y=DE(B,c,x,Y);Y===null&&(Y=DE(B,c,x,0,!0));if(Y===null)return!1;Y>=0&&x[0]-k==2&&P.count==2?(B=Y,c=(new Date).getFullYear()-80,x=c%100,g.ambiguousYear=B==x,B+=Math.floor(c/100)*100+(B<x?100:0),g.year=B):g.year=Y;return!0},ENt=function(B,c,x,P,Y,g){return Y.numeric&&u9(B,c,x,Y,P,function(k){g.month=k-1})?!0:AU(c,x,[B.JSC$9375_dateTimeSymbols_.MONTHS,
B.JSC$9375_dateTimeSymbols_.STANDALONEMONTHS,B.JSC$9375_dateTimeSymbols_.SHORTMONTHS,B.JSC$9375_dateTimeSymbols_.STANDALONESHORTMONTHS],function(k){g.month=k})},oNQ=function(B,c,x,P,Y){var g=x[0];
B=DE(B,c,x,P);if(B===null)return!1;x=x[0]-g;Y.milliseconds=x<3?B*Math.pow(10,3-x):Math.round(B/Math.pow(10,x-3));return!0},QwQ=function(B,c,x,P){c.indexOf("GMT",x[0])==x[0]&&(x[0]+=3);
if(x[0]>=c.length)return P.tzOffset=0,!0;var Y=x[0],g=DE(B,c,x,0,!0);if(g===null)return!1;if(x[0]<c.length&&c.charAt(x[0])==":"){var k=g*60;x[0]++;g=DE(B,c,x,0);if(g===null)return!1;k+=g}else k=g,k=k<24&&x[0]-Y<=3?k*60:k%100+k/100*60;P.tzOffset=-k;return!0},u9=function(B,c,x,P,Y,g,k){k=k||!1;
var n=x[0];B=DE(B,c,x,Y);if(B===null)return!1;if(k&&x[0]-n<P.count){if(x[0]<c.length)return!1;B*=Math.pow(10,P.count-(x[0]-n))}g(B);return!0},AU=function(B,c,x,P,Y){Y=Y||!1;
for(var g,k=0;k<x.length;k++){g=c;for(var n=x[k],b=Y,d=0,q=null,C=B.substring(g[0]).toLowerCase(),h=0;h<n.length;h++){var V=n[h].toLowerCase();if(b&&V.indexOf(C)==0){d=C.length;q=h;break}n[h].length>d&&C.indexOf(V)==0&&(d=n[h].length,q=h)}q!==null&&(g[0]+=d);g=q;if(g!==null)return P(g),!0}return!1},Wk4=function(B,c){(B=B.substring(c[0]).match(NL4))&&(c[0]+=B[0].length)},DE=function(B,c,x,P,Y){c=P>0?c.substring(0,x[0]+P):c;
Y=Y||!1;if(B.JSC$9375_dateTimeSymbols_.ZERODIGIT){P=[];for(var g=x[0];g<c.length;g++){var k=c.charCodeAt(g)-B.JSC$9375_dateTimeSymbols_.ZERODIGIT;P.push(0<=k&&k<=9?String.fromCharCode(k+48):c.charAt(g))}c=P.join("")}else c=c.substring(x[0]);B=c.match(new RegExp("^"+(Y?"[+-]?":"")+"\\d+"));if(!B)return null;x[0]+=B[0].length;return parseInt(B[0],10)},Jmt=function(){};
Jmt.prototype.ambiguousYear=!1;_.FkW={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 vN4={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"},zl9=vN4,Svy=vN4;Svy=zl9=vN4;var G$W,r7,eE,Jz7,R8,ymQ;
_.yI=function(B,c,x,P){var Y;if(Y=c){a:if(c&&c.length===3){for(Y=0;Y<3;Y++){var g=c[Y];if(g<"A"||g>"Z"&&g<"a"||g>"z"){Y=!1;break a}}Y=!0}else Y=!1;Y=!Y}if(Y)throw new TypeError("ae");this.intlCurrencyCode_=c?c.toUpperCase():null;this.currencyStyle_=x||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_=r7(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof B==="number")switch(B){case 1:R8(this,r7(this).DECIMAL_PATTERN);break;case 2:R8(this,r7(this).SCIENTIFIC_PATTERN);break;case 3:R8(this,r7(this).PERCENT_PATTERN);break;case 4:B=r7(this).CURRENCY_PATTERN;c=["0"];if(x=
ZE[eE(this)]){x=x[0]&7;if(x>0)for(c.push("."),P=0;P<x;P++)c.push("0");B=B.replace(/0.00/g,c.join(""))}R8(this,B);break;case 5:ymQ(this,1);break;case 6:ymQ(this,2);break;default:throw Error("de");}else R8(this,B)};
G$W=!1;r7=function(B){return B.overrideNumberFormatSymbols_||(G$W?Svy:zl9)};
eE=function(B){return B.intlCurrencyCode_||r7(B).DEF_CURRENCY_CODE};
Jz7=function(B,c){if(c>308)throw Error("ce`"+c);B.maximumFractionDigits_=c;return B};
R8=function(B,c){var x=[0];B.positivePrefix_=MB3(B,c,x);for(var P=x[0],Y=-1,g=0,k=0,n=0,b=-1,d=c.length,q=!0;x[0]<d&&q;x[0]++)switch(c.charAt(x[0])){case "#":k>0?n++:g++;b>=0&&Y<0&&b++;break;case "0":if(n>0)throw Error("je`"+c);k++;b>=0&&Y<0&&b++;break;case ",":b>0&&B.groupingArray_.push(b);b=0;break;case ".":if(Y>=0)throw Error("ke`"+c);Y=g+k+n;break;case "E":if(B.useExponentialNotation_)throw Error("le`"+c);B.useExponentialNotation_=!0;B.minExponentDigits_=0;x[0]+1<d&&c.charAt(x[0]+1)=="+"&&(x[0]++,
B.useSignForPositiveExponent_=!0);for(;x[0]+1<d&&c.charAt(x[0]+1)=="0";)x[0]++,B.minExponentDigits_++;if(g+k<1||B.minExponentDigits_<1)throw Error("me`"+c);q=!1;break;default:x[0]--,q=!1}k==0&&g>0&&Y>=0&&(k=Y,k==0&&k++,n=g-k,g=k-1,k=1);if(Y<0&&n>0||Y>=0&&(Y<g||Y>g+k)||b==0)throw Error("ne`"+c);n=g+k+n;B.maximumFractionDigits_=Y>=0?n-Y:0;Y>=0&&(B.minimumFractionDigits_=g+k-Y,B.minimumFractionDigits_<0&&(B.minimumFractionDigits_=0));B.minimumIntegerDigits_=(Y>=0?Y:n)-g;B.useExponentialNotation_&&(B.maximumIntegerDigits_=
g+B.minimumIntegerDigits_,B.maximumFractionDigits_==0&&B.minimumIntegerDigits_==0&&(B.minimumIntegerDigits_=1));B.groupingArray_.push(Math.max(0,b));B.decimalSeparatorAlwaysShown_=Y==0||Y==n;P=x[0]-P;B.positiveSuffix_=MB3(B,c,x);x[0]<c.length&&c.charAt(x[0])==";"?(x[0]++,B.multiplier_!=1&&(B.negativePercentSignExpected_=!0),B.negativePrefix_=MB3(B,c,x),x[0]+=P,B.negativeSuffix_=MB3(B,c,x)):(B.negativePrefix_+=B.positivePrefix_,B.negativeSuffix_+=B.positiveSuffix_)};
ymQ=function(B,c){B.compactStyle_=c;R8(B,r7(B).DECIMAL_PATTERN);B.minimumFractionDigits_=0;Jz7(B,2);if(B.minimumFractionDigits_>0)throw Error("be");B.significantDigits_=2};
_.yI.prototype.parse=function(B,c){c=c||[0];if(this.compactStyle_!==0)throw Error("ee");B=B.replace(/ |\u202f/g,"\u00a0");var x=B.indexOf(this.positivePrefix_,c[0])==c[0],P=B.indexOf(this.negativePrefix_,c[0])==c[0];x&&P&&(this.positivePrefix_.length>this.negativePrefix_.length?P=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(x=!1));x?c[0]+=this.positivePrefix_.length:P&&(c[0]+=this.negativePrefix_.length);if(B.indexOf(r7(this).INFINITY,c[0])==c[0]){c[0]+=r7(this).INFINITY.length;var Y=
Infinity}else{Y=B;var g=!1,k=!1,n=!1,b=-1,d=1,q=r7(this).DECIMAL_SEP,C=r7(this).GROUP_SEP,h=r7(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");C=C.replace(/\u202f/g,"\u00a0");for(var V="";c[0]<Y.length;c[0]++){var N=Y.charAt(c[0]),l=Lk0(this,N);if(l>=0&&l<=9)V+=l,n=!0;else if(N==q.charAt(0)){if(g||k)break;V+=".";g=!0}else if(N==C.charAt(0)&&("\u00a0"!=C.charAt(0)||c[0]+1<Y.length&&Lk0(this,Y.charAt(c[0]+1))>=0)){if(g||k)break}else if(N==h.charAt(0)){if(k)break;V+="E";k=!0;b=c[0]}else if(N==
"+"||N=="-"){if(n&&b!=c[0]-1)break;V+=N}else if(this.multiplier_==1&&N==r7(this).PERCENT.charAt(0)){if(d!=1)break;d=100;if(n){c[0]++;break}}else if(this.multiplier_==1&&N==r7(this).PERMILL.charAt(0)){if(d!=1)break;d=1E3;if(n){c[0]++;break}}else break}this.multiplier_!=1&&(d=this.multiplier_);Y=parseFloat(V)/d}if(x){if(B.indexOf(this.positiveSuffix_,c[0])!=c[0])return NaN;c[0]+=this.positiveSuffix_.length}else if(P){if(B.indexOf(this.negativeSuffix_,c[0])!=c[0])return NaN;c[0]+=this.negativeSuffix_.length}return P?
-Y:Y};
_.yI.prototype.format=function(B){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(B))return r7(this).NAN;var c=[];var x=B;if(this.compactStyle_==0)x=Bb;else{x=Math.abs(x);var P=Zk5(this,x<=1?0:Hk0(x)).divisorBase;x=Zk5(this,P+Hk0(fjd(this,cb(x,-P)).intValue))}B=cb(B,-x.divisorBase);(P=B<0||B==0&&1/B<0)?x.negative_prefix?c.push(x.negative_prefix):(c.push(x.prefix),c.push(this.negativePrefix_)):(c.push(x.prefix),c.push(this.positivePrefix_));if(isFinite(B))if(B*=
P?-1:1,B*=this.multiplier_,this.useExponentialNotation_){var Y=B;if(Y==0)iky(this,Y,this.minimumIntegerDigits_,c),Am4(this,0,c);else{var g=Math.floor(Math.log(Y)/Math.log(10)+2E-15);Y=cb(Y,-g);var k=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(k=g%this.maximumIntegerDigits_,k<0&&(k=this.maximumIntegerDigits_+k),Y=cb(Y,k),g-=k,k=1):this.minimumIntegerDigits_<1?(g++,Y=cb(Y,-1)):(g-=this.minimumIntegerDigits_-1,Y=cb(Y,this.minimumIntegerDigits_-
1));iky(this,Y,k,c);Am4(this,g,c)}}else iky(this,B,this.minimumIntegerDigits_,c);else c.push(r7(this).INFINITY);P?x.negative_suffix?c.push(x.negative_suffix):(isFinite(B)&&c.push(x.suffix),c.push(this.negativeSuffix_)):(isFinite(B)&&c.push(x.suffix),c.push(this.positiveSuffix_));return c.join("")};
var fjd=function(B,c){var x=cb(c,B.maximumFractionDigits_);B.significantDigits_>0&&(x=u9Z(x,B.significantDigits_,B.maximumFractionDigits_));x=Math.round(x);if(isFinite(x)){var P=Math.floor(cb(x,-B.maximumFractionDigits_));x=Math.floor(x-cb(P,B.maximumFractionDigits_));if(x<0||x>=cb(1,B.maximumFractionDigits_))P=Math.round(c),x=0}else P=c,x=0;return{intValue:P,fracValue:x}},iky=function(B,c,x,P){if(B.minimumFractionDigits_>B.maximumFractionDigits_)throw Error("ge");
P||(P=[]);c=fjd(B,c);var Y=c.intValue,g=c.fracValue,k=B.minimumFractionDigits_>0||g>0||!1;c=B.minimumFractionDigits_;k&&(c=B.minimumFractionDigits_);for(var n="",b=Y;b>1E20;)n="0"+n,b=Math.round(cb(b,-1));n=b+n;var d=r7(B).DECIMAL_SEP;b=r7(B).ZERO_DIGIT.codePointAt(0);var q=n.length,C=0;if(Y>0||x>0){for(Y=q;Y<x;Y++)P.push(String.fromCodePoint(b));if(B.groupingArray_.length>=2)for(x=1;x<B.groupingArray_.length;x++)C+=B.groupingArray_[x];x=q-C;if(x>0){Y=B.groupingArray_;C=q=0;for(var h,V=r7(B).GROUP_SEP,
N=n.length,l=0;l<N;l++)if(P.push(String.fromCodePoint(b+Number(n.charAt(l)))),N-l>1)if(h=Y[C],l<x){var E=x-l;(h===1||h>0&&E%h===1)&&P.push(V)}else C<Y.length&&(l===x?C+=1:h===l-x-q+1&&(P.push(V),q+=h,C+=1))}else{x=n;n=B.groupingArray_;Y=r7(B).GROUP_SEP;h=x.length;V=[];for(q=n.length-1;q>=0&&h>0;q--){C=n[q];for(N=0;N<C&&h-N-1>=0;N++)V.push(String.fromCodePoint(b+Number(x.charAt(h-N-1))));h-=C;h>0&&V.push(Y)}P.push.apply(P,V.reverse())}}else k||P.push(String.fromCodePoint(b));(B.decimalSeparatorAlwaysShown_||
k)&&P.push(d);g=String(g);k=g.split("e+");k.length==2&&(g=String(u9Z(parseFloat(k[0]),B.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.O1o)("0",parseInt(k[1],10)-g.length+1));B.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.O1o)("0",B.maximumFractionDigits_-g.length)+g);for(B=g.length;g.charAt(B-1)=="0"&&B>c+1;)B--;for(c=1;c<B;c++)P.push(String.fromCodePoint(b+Number(g.charAt(c))))},Am4=function(B,c,x){x.push(r7(B).EXP_SYMBOL);
c<0?(c=-c,x.push(r7(B).MINUS_SIGN)):B.useSignForPositiveExponent_&&x.push(r7(B).PLUS_SIGN);c=""+c;for(var P=r7(B).ZERO_DIGIT,Y=c.length;Y<B.minExponentDigits_;Y++)x.push(P);B=P.codePointAt(0)-DZ0;for(P=0;P<c.length;P++)x.push(String.fromCodePoint(B+c.codePointAt(P)))},Lk0=function(B,c){c=c.codePointAt(0);
if(48<=c&&c<58)return c-48;B=r7(B).ZERO_DIGIT.codePointAt(0);return B<=c&&c<B+10?c-B:-1},DZ0="0".codePointAt(0),MB3=function(B,c,x){for(var P="",Y=!1,g=c.length;x[0]<g;x[0]++){var k=c.charAt(x[0]);
if(k=="'")x[0]+1<g&&c.charAt(x[0]+1)=="'"?(x[0]++,P+="'"):Y=!Y;else if(Y)P+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return P;case "\u00a4":if(x[0]+1<g&&c.charAt(x[0]+1)=="\u00a4")x[0]++,P+=eE(B);else switch(B.currencyStyle_){case 0:k=eE(B);P+=k in ZE?ZE[k][1]:k;break;case 2:k=eE(B);var n=ZE[k];P+=n?k==n[1]?k:k+" "+n[1]:k;break;case 1:k=eE(B),P+=k in ZE?ZE[k][2]:k}break;case "%":if(!B.negativePercentSignExpected_&&B.multiplier_!=1)throw Error("he");if(B.negativePercentSignExpected_&&
B.multiplier_!=100)throw Error("ie");B.multiplier_=100;B.negativePercentSignExpected_=!1;P+=r7(B).PERCENT;break;case "\u2030":if(!B.negativePercentSignExpected_&&B.multiplier_!=1)throw Error("he");if(B.negativePercentSignExpected_&&B.multiplier_!=1E3)throw Error("ie");B.multiplier_=1E3;B.negativePercentSignExpected_=!1;P+=r7(B).PERMILL;break;default:P+=k}}return P},Bb={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Zk5=function(B,c){B=B.compactStyle_==1?Lg.COMPACT_DECIMAL_SHORT_PATTERN:Lg.COMPACT_DECIMAL_LONG_PATTERN;B==null&&(B=Lg.COMPACT_DECIMAL_SHORT_PATTERN);if(c<3)return Bb;c=Math.min(14,c);var x=B[cb(1,c)];for(--c;!x&&c>=3;)x=B[cb(1,c)],c--;if(!x)return Bb;x=x.other;var P=B="",Y=x.indexOf(";");Y>=0&&(x=x.substring(0,Y),Y=x.substring(Y+1))&&(P=/([^0]*)(0+)(.*)/.exec(Y),B=P[1],P=P[3]);return x&&x!="0"?(x=/([^0]*)(0+)(.*)/.exec(x))?{divisorBase:c+
1-(x[2].length-1),negative_prefix:B,negative_suffix:P,prefix:x[1],suffix:x[3]}:Bb:Bb},Hk0=function(B){if(!isFinite(B))return B>0?B:0;
for(var c=0;(B/=10)>=1;)c++;return c},cb=function(B,c){if(!B||!isFinite(B)||c==0)return B;
B=String(B).split("e");return parseFloat(B[0]+"e"+(parseInt(B[1]||0,10)+c))},rmI=function(B,c){return B&&isFinite(B)?cb(Math.round(cb(B,c)),-c):B},u9Z=function(B,c,x){if(!B)return B;
c=c-Hk0(B)-1;return c<-x?rmI(B,-x):rmI(B,c)};var Rln=function(B){return B%10==1&&B%100!=11?"one":B%10==2&&B%100!=12?"two":B%10==3&&B%100!=13?"few":"other"},elW=Rln;
elW=Rln;var B_0;B_0=function(B,c){var x=B|0;if(void 0===c){c=Math;var P=c.min,Y=B+"",g=Y.indexOf(".");c=P.call(c,g===-1?0:Y.length-g-1,3)}P=Math.pow(10,c);B={v:c,f:(B*P|0)%P};return x==1&&B.v==0?"one":"other"};
_.H3=B_0;_.H3=B_0;var cV9,xAn,PI0,a33,gH4;_.YiW=function(B){this.JSC$9418_pattern_=B;this.parsedPattern_=this.literals_=this.initialLiterals_=null;B=zl9;var c=Lg;if(cV9!==B||xAn!==c)cV9=B,xAn=c,PI0=new _.yI(1);this.numberFormatter_=PI0};
cV9=null;xAn=null;PI0=null;a33=RegExp("'([{}#].*?)'","g");gH4=RegExp("''","g");
_.YiW.prototype.format=function(B){if(this.JSC$9418_pattern_){this.initialLiterals_=[];var c=su0(this,this.JSC$9418_pattern_);this.parsedPattern_=pq4(this,c);this.JSC$9418_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.DA(this.initialLiterals_),c=[],kF3(this,this.parsedPattern_,B,!1,c),B=c.join("");this.literals_.length>0;)B=B.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else B="";return B};
var kF3=function(B,c,x,P,Y){for(var g=0;g<c.length;g++)switch(c[g].type){case 4:Y.push(c[g].value);break;case 3:var k=c[g].value;var n=B,b=Y,d=x[k];d===void 0?b.push("Undefined parameter - "+k):(n.literals_.push(d),b.push(n.buildPlaceholder_(n.literals_)));break;case 2:k=c[g].value;n=B;b=x;d=P;var q=Y,C=k.argumentIndex;b[C]===void 0?q.push("Undefined parameter - "+C):(C=k[b[C]],C===void 0&&(C=k.other),kF3(n,C,b,d,q));break;case 0:k=c[g].value;XqF(B,k,x,_.H3,P,Y);break;case 1:k=c[g].value,XqF(B,k,
x,elW,P,Y)}},XqF=function(B,c,x,P,Y,g){var k=c.argumentIndex,n=c.argumentOffset,b=+x[k];
isNaN(b)?g.push("Undefined or invalid parameter - "+k):(n=b-n,k=c[x[k]],k===void 0&&(P=P(Math.abs(n)),k=c[P],k===void 0&&(k=c.other)),c=[],kF3(B,k,x,Y,c),x=c.join(""),Y?g.push(x):(B=B.numberFormatter_.format(n),g.push(x.replace(/#/g,B))))},su0=function(B,c){var x=B.initialLiterals_,P=B.buildPlaceholder_.bind(B);
c=c.replace(gH4,function(){x.push("'");return P(x)});
return c=c.replace(a33,function(Y,g){x.push(g);return P(x)})},$A4=function(B){var c=0,x=[],P=[],Y=/[{}]/g;
Y.lastIndex=0;for(var g;g=Y.exec(B);){var k=g.index;g[0]=="}"?(x.pop(),x.length==0&&(g={type:1},g.value=B.substring(c,k),P.push(g),c=k+1)):(x.length==0&&(c=B.substring(c,k),c!=""&&P.push({type:0,value:c}),c=k+1),x.push("{"))}B=B.substring(c);B!=""&&P.push({type:0,value:B});return P},nHt=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,brI=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Kz0=/^\s*(\w+)\s*,\s*select\s*,/,pq4=function(B,c){var x=[];
c=$A4(c);for(var P=0;P<c.length;P++){var Y={};if(0==c[P].type)Y.type=4,Y.value=c[P].value;else if(1==c[P].type){var g=c[P].value;switch(nHt.test(g)?0:brI.test(g)?1:Kz0.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:Y.type=2;Y.value=jum(B,c[P].value);break;case 0:Y.type=0;Y.value=UAd(B,c[P].value);break;case 1:Y.type=1;Y.value=dAd(B,c[P].value);break;case 3:Y.type=3,Y.value=c[P].value}}x.push(Y)}return x},jum=function(B,c){var x="";
c=c.replace(Kz0,function(n,b){x=b;return""});
var P={};P.argumentIndex=x;c=$A4(c);for(var Y=0;Y<c.length;){var g=c[Y].value;Y++;var k=void 0;1==c[Y].type&&(k=pq4(B,c[Y].value));P[g.replace(/\s/g,"")]=k;Y++}return P},UAd=function(B,c){var x="",P=0;
c=c.replace(nHt,function(b,d,q){x=d;q&&(P=parseInt(q,10));return""});
var Y={};Y.argumentIndex=x;Y.argumentOffset=P;c=$A4(c);for(var g=0;g<c.length;){var k=c[g].value;g++;var n=void 0;1==c[g].type&&(n=pq4(B,c[g].value));Y[k.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=n;g++}return Y},dAd=function(B,c){var x="";
c=c.replace(brI,function(n,b){x=b;return""});
var P={};P.argumentIndex=x;P.argumentOffset=0;c=$A4(c);for(var Y=0;Y<c.length;){var g=c[Y].value;Y++;var k=void 0;1==c[Y].type&&(k=pq4(B,c[Y].value));P[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;Y++}return P};
_.YiW.prototype.buildPlaceholder_=function(B){return"\ufddf_"+(B.length-1).toString(10)+"_"};var qit;
qit={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 iVI=function(){this.rdtfSymbols_=CIy||qit;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
iVI.prototype.format=function(B,c){a:{c=h6t(this,c);switch(this.style_){case 2:if(c.NARROW!=void 0){c=c.NARROW;break a}case 1:if(c.SHORT!=void 0){c=c.SHORT;break a}default:c=c.LONG;break a}c=void 0}if(!this.alwaysNumeric_&&c&&c.R&&c.R[""+B])B=c.R[""+B];else if(c){var x=Math.abs(B);B=(new _.YiW("{N,plural,"+(B>0||B==0&&1/B==Infinity?c.F:c.P)+"}")).format({N:x})}else B="";return B};
var h6t=function(B,c){switch(c){default:case 0:return B.rdtfSymbols_.YEAR;case 1:return B.rdtfSymbols_.QUARTER;case 2:return B.rdtfSymbols_.MONTH;case 3:return B.rdtfSymbols_.WEEK;case 4:return B.rdtfSymbols_.DAY;case 5:return B.rdtfSymbols_.HOUR;case 6:return B.rdtfSymbols_.MINUTE;case 7:return B.rdtfSymbols_.SECOND}};var mAm=function(B,c,x,P,Y,g,k,n){this.x0=B;this.y0=c;this.x1=x;this.y1=P;this.x2=Y;this.y2=g;this.x3=k;this.y3=n};
mAm.prototype.clone=function(){return new mAm(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
mAm.prototype.equals=function(B){return this.x0==B.x0&&this.y0==B.y0&&this.x1==B.x1&&this.y1==B.y1&&this.x2==B.x2&&this.y2==B.y2&&this.x3==B.x3&&this.y3==B.y3};
var T_0=function(B,c){if(c==0)return B.x0;if(c==1)return B.x3;var x=T1(B.x0,B.x1,c),P=T1(B.x1,B.x2,c);B=T1(B.x2,B.x3,c);x=T1(x,P,c);P=T1(P,B,c);return T1(x,P,c)},VFm=function(B,c){var x=(c-B.x0)/(B.x3-B.x0);
if(x<=0)return 0;if(x>=1)return 1;for(var P=0,Y=1,g=0,k=0;k<8;k++){g=T_0(B,x);var n=(T_0(B,x+1E-6)-g)/1E-6;if(Math.abs(g-c)<1E-6)return x;if(Math.abs(n)<1E-6)break;else g<c?P=x:Y=x,x-=(g-c)/n}for(k=0;Math.abs(g-c)>1E-6&&k<8;k++)g<c?(P=x,x=(x+Y)/2):(Y=x,x=(x+P)/2),g=T_0(B,x);return x};var xY=function(){_.V4.call(this);this.JSC$9439_name_="closure_frame"+tFt++;this.iframesForDisposal_=[];wqt[this.JSC$9439_name_]=this},Pb;
_.sZ(xY,_.V4);var wqt={},tFt=0,N_d=function(B,c){var x=Ud(B);yxd(c,function(P,Y){Array.isArray(P)||(P=[P]);_.Zg(P,function(g){g=x.JSC$7374_createDom("INPUT",{type:"hidden",name:Y,value:g});B.appendChild(g)})})};
_.a=xY.prototype;_.a.JSC$9441_form_=null;_.a.JSC$9441_iframe_=null;_.a.iframeName_=null;_.a.nextIframeId_=0;_.a.JSC$9441_active_=!1;_.a.complete_=!1;_.a.success_=!1;_.a.lastContent_=null;_.a.JSC$9441_lastErrorCode_=0;_.a.iframeDisposalTimer_=null;
_.a.send=function(B,c,x,P){if(this.JSC$9441_active_)throw Error("oe");B=new _.ih(B);c=c?c.toUpperCase():"GET";x&&_.kf(B);Pb||(Pb=_.Nw("FORM"),Pb.acceptCharset="utf-8",x=Pb.style,x.position="absolute",x.visibility="hidden",x.top=x.left="-10px",x.width=x.height="10px",x.overflow="hidden",document.body.appendChild(Pb));this.JSC$9441_form_=Pb;c=="GET"&&N_d(this.JSC$9441_form_,B.JSC$8077_queryData_);P&&N_d(this.JSC$9441_form_,P);x=B.toString();x=L_Y(x);P=this.JSC$9441_form_;x=_.Ng(K6(x));x!==void 0&&(P.action=
x);this.JSC$9441_form_.method=c;I39(this);JV3(this)};
_.a.abort=function(B){if(this.JSC$9441_active_){var c=YY(this);if(c)if(hB(c))c.removeAllListeners(void 0);else if(c=ms(c)){var x=0,P;for(P in c.listeners)for(var Y=c.listeners[P].concat(),g=0;g<Y.length;++g)Tl(Y[g])&&++x}this.success_=this.JSC$9441_active_=this.complete_=!1;this.JSC$9441_lastErrorCode_=B||7;this.dispatchEvent("abort");Wz5(this)}};
_.a.disposeInternal=function(){this.JSC$9441_active_&&this.abort();xY.superClass_.disposeInternal.call(this);this.JSC$9441_iframe_&&l3F(this);JV3(this);this.JSC$9441_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9441_form_=null;this.JSC$9441_lastErrorCode_=0;delete wqt[this.JSC$9439_name_]};
_.a.isComplete=function(){return this.complete_};
_.a.isSuccess=function(){return this.success_};
_.a.isActive=function(){return this.JSC$9441_active_};
_.a.getResponseText=function(){return this.lastContent_};
_.a.getLastError=function(){return _.dg3(this.JSC$9441_lastErrorCode_)};
var I39=function(B){B.JSC$9441_active_=!0;B.complete_=!1;B.JSC$9441_lastErrorCode_=0;B.iframeName_=B.JSC$9439_name_+"_"+(B.nextIframeId_++).toString(36);B.JSC$9441_iframe_=Ud(B.JSC$9441_form_).JSC$7374_createDom("IFRAME",{name:B.iframeName_,id:B.iframeName_});var c=B.JSC$9441_iframe_.style;c.visibility="hidden";c.width=c.height="10px";c.display="none";_.bJ?c.marginTop=c.marginLeft="-10px":(c.position="absolute",c.top=c.left="-10px");Ud(B.JSC$9441_form_).JSC$7372_document_.body.appendChild(B.JSC$9441_iframe_);
c=B.iframeName_+"_inner";var x=cnF(B.JSC$9441_iframe_);if(document.baseURI){var P=sy(c);P='<head><base href="'+sy(document.baseURI)+'"></head><body><iframe id="'+P+'" name="'+P+'"></iframe>';P=Wa(P)}else P=sy(c),P=Wa('<body><iframe id="'+P+'" name="'+P+'"></iframe>');x.write(lV(P));_.wX(x.getElementById(c),"load",B.onIframeLoaded_,!1,B);P=hG("TEXTAREA",B.JSC$9441_form_);for(var Y=0,g=P.length;Y<g;Y++){var k=P[Y].value;s09(P[Y])!=k&&(_.of(P[Y],k),P[Y].value=k)}P=x.importNode(B.JSC$9441_form_,!0);P.target=
c;P.action=B.JSC$9441_form_.action;x.body.appendChild(P);Y=hG("SELECT",B.JSC$9441_form_);g=hG("SELECT",P);k=0;for(var n=Y.length;k<n;k++)for(var b=hG("OPTION",Y[k]),d=hG("OPTION",g[k]),q=0,C=b.length;q<C;q++)d[q].selected=b[q].selected;Y=hG("INPUT",B.JSC$9441_form_);g=hG("INPUT",P);k=0;for(n=Y.length;k<n;k++)if(Y[k].type=="file"&&Y[k].value!=g[k].value){B.JSC$9441_form_.target=c;P=B.JSC$9441_form_;break}try{B.errorHandled_=!1,P.submit(),x.close(),_.nY&&setTimeout(B.testForFirefoxSilentError_.bind(B),
250)}catch(h){_.Ti(x.getElementById(c),"load",B.onIframeLoaded_,!1,B),x.close(),aI(B,2)}};
xY.prototype.onIframeLoaded_=function(){_.Ti(YY(this),"load",this.onIframeLoaded_,!1,this);try{var B=this.JSC$9441_iframe_?cnF(YY(this)):null;this.complete_=!0;this.JSC$9441_active_=!1;try{var c=B.body;this.lastContent_=c.textContent||c.innerText}catch(Y){var x=1}var P;x||typeof this.errorChecker_!="function"||(P=this.errorChecker_(B))&&(x=4);x?aI(this,x):(this.success_=!0,this.JSC$9441_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Wz5(this))}catch(Y){aI(this,1)}};
var aI=function(B,c){B.errorHandled_||(B.success_=!1,B.JSC$9441_active_=!1,B.complete_=!0,B.JSC$9441_lastErrorCode_=c,B.dispatchEvent("complete"),B.dispatchEvent("error"),Wz5(B),B.errorHandled_=!0)},Wz5=function(B){l3F(B);
JV3(B);B.JSC$9441_form_=null;B.dispatchEvent("ready")},l3F=function(B){var c=B.JSC$9441_iframe_;
c&&(c.onreadystatechange=null,c.onload=null,c.onerror=null,B.iframesForDisposal_.push(c));B.iframeDisposalTimer_&&(clearTimeout(B.iframeDisposalTimer_),B.iframeDisposalTimer_=null);_.nY?B.iframeDisposalTimer_=setTimeout(B.disposeIframes_.bind(B),2E3):B.disposeIframes_();B.JSC$9441_iframe_=null;B.iframeName_=null};
xY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var B=this.iframesForDisposal_.pop();_.qH(B)}};
var JV3=function(B){B.JSC$9441_form_&&B.JSC$9441_form_==Pb&&_.WJ(B.JSC$9441_form_)},YY=function(B){return B.JSC$9441_iframe_?cnF(B.JSC$9441_iframe_).getElementById(B.iframeName_+"_inner"):null};
xY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9441_active_){var B=this.JSC$9441_iframe_?cnF(YY(this)):null;B&&!Ed(B,"documentUri")?(_.Ti(YY(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?aI(this,3):aI(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.gy=function(B){return B=="\r"||B=="\n"||B==" "||B=="\t"};var EHd;_.sc=function(B){this.errorMessage_=null;this.result_=[];this.JSC$9443_buffer_="";this.stack_=[];this.JSC$9443_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!B||!B.deliverMessageAsRawString)};
EHd={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};_.sc.prototype.isInputValid=function(){return this.streamState_!=3};
_.sc.prototype.done=function(){return this.streamState_===2};
var pd=function(B,c,x){B.streamState_=3;B.errorMessage_="The stream is broken @"+B.JSC$9443_pos_+"/"+x+". With input:\n"+c;throw Error(B.errorMessage_);};
_.sc.prototype.acceptsBinaryInput=function(){return!1};
_.sc.prototype.parse=function(B){function c(){for(;h<B.length;)if(_.gy(B[h]))h++,g.JSC$9443_pos_++;else break;return h<d}
function x(){for(var N;;){N=B[h++];if(!N)break;g.JSC$9443_pos_++;switch(g.state_){case b.INIT:N==="{"?g.state_=b.OBJECT_OPEN:N==="["?g.state_=b.ARRAY_OPEN:_.gy(N)||pd(g,B,h);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.gy(N))continue;if(g.state_===b.KEY_START)k.push(b.KEY_END);else if(N==="}"){Y("{}");g.state_=P();continue}else k.push(b.OBJECT_END);N==='"'?g.state_=b.STRING:pd(g,B,h);continue;case b.KEY_END:case b.OBJECT_END:if(_.gy(N))continue;N===":"?(g.state_===b.OBJECT_END&&(k.push(b.OBJECT_END),
g.depth_++),g.state_=b.VALUE):N==="}"?(g.depth_--,Y(),g.state_=P()):N===","?(g.state_===b.OBJECT_END&&k.push(b.OBJECT_END),g.state_=b.KEY_START):pd(g,B,h);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.gy(N))continue;if(g.state_===b.ARRAY_OPEN)if(g.depth_++,g.state_=b.VALUE,N==="]"){g.depth_--;if(g.depth_===0){g.state_=b.ARRAY_END;return}Y("[]");g.state_=P();continue}else k.push(b.ARRAY_END);N==='"'?g.state_=b.STRING:N==="{"?g.state_=b.OBJECT_OPEN:N==="["?g.state_=b.ARRAY_OPEN:N==="t"?g.state_=b.TRUE1:
N==="f"?g.state_=b.FALSE1:N==="n"?g.state_=b.NULL1:N!=="-"&&("0123456789".indexOf(N)!==-1?g.state_=b.NUM_DIGIT:pd(g,B,h));continue;case b.ARRAY_END:if(N===",")k.push(b.ARRAY_END),g.state_=b.VALUE,g.depth_===1&&(C=h);else if(N==="]"){g.depth_--;if(g.depth_===0)return;Y();g.state_=P()}else if(_.gy(N))continue;else pd(g,B,h);continue;case b.STRING:var l=h;a:for(;;){for(;g.unicodeCount_>0;)if(N=B[h++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!N)break a;if(N==='"'&&!g.slashed_){g.state_=
P();break}if(N==="\\"&&!g.slashed_&&(g.slashed_=!0,N=B[h++],!N))break;if(g.slashed_)if(g.slashed_=!1,N==="u"&&(g.unicodeCount_=1),N=B[h++])continue;else break;n.lastIndex=h;N=n.exec(B);if(!N){h=B.length+1;break}h=N.index+1;N=B[N.index];if(!N)break}g.JSC$9443_pos_+=h-l;continue;case b.TRUE1:if(!N)continue;N==="r"?g.state_=b.TRUE2:pd(g,B,h);continue;case b.TRUE2:if(!N)continue;N==="u"?g.state_=b.TRUE3:pd(g,B,h);continue;case b.TRUE3:if(!N)continue;N==="e"?g.state_=P():pd(g,B,h);continue;case b.FALSE1:if(!N)continue;
N==="a"?g.state_=b.FALSE2:pd(g,B,h);continue;case b.FALSE2:if(!N)continue;N==="l"?g.state_=b.FALSE3:pd(g,B,h);continue;case b.FALSE3:if(!N)continue;N==="s"?g.state_=b.FALSE4:pd(g,B,h);continue;case b.FALSE4:if(!N)continue;N==="e"?g.state_=P():pd(g,B,h);continue;case b.NULL1:if(!N)continue;N==="u"?g.state_=b.NULL2:pd(g,B,h);continue;case b.NULL2:if(!N)continue;N==="l"?g.state_=b.NULL3:pd(g,B,h);continue;case b.NULL3:if(!N)continue;N==="l"?g.state_=P():pd(g,B,h);continue;case b.NUM_DECIMAL_POINT:N===
"."?g.state_=b.NUM_DIGIT:pd(g,B,h);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(N)!==-1)continue;else h--,g.JSC$9443_pos_--,g.state_=P();continue;default:pd(g,B,h)}}}
function P(){var N=k.pop();return N!=null?N:b.VALUE}
function Y(N){g.depth_>1||(N||(N=C===-1?g.JSC$9443_buffer_+B.substring(q,h):B.substring(C,h)),g.deliverMessageAsRawString_?g.result_.push(N):g.result_.push(JSON.parse(N)),C=h)}
for(var g=this,k=g.stack_,n=g.stringInputPattern_,b=EHd,d=B.length,q=0,C=-1,h=0;h<d;)switch(g.streamState_){case 3:return pd(g,B,h),null;case 2:return c()&&pd(g,B,h),null;case 0:if(c()){var V=B[h++];g.JSC$9443_pos_++;if(V==="["){g.streamState_=1;q=h;g.state_=b.ARRAY_OPEN;continue}else pd(g,B,h)}return null;case 1:return x(),g.depth_===0&&g.state_==b.ARRAY_END?(g.streamState_=2,g.JSC$9443_buffer_=B.substring(h)):g.JSC$9443_buffer_=C===-1?g.JSC$9443_buffer_+B.substring(q):B.substring(C),g.result_.length>
0?(V=g.result_,g.result_=[],V):null}return null};_.sZ(_.Pf,VY);Yd.prototype.getValue=function(){return this.JSC$9451_value_};
Yd.prototype.clone=function(){return new Yd(this.JSC$9451_key_,this.JSC$9451_value_)};var kY=function(B){this.nodes_=[];if(B)a:{if(B instanceof kY){var c=B.getKeys();B=B.getValues();if(this.getCount()<=0){for(var x=this.nodes_,P=0;P<c.length;P++)x.push(new Yd(c[P],B[P]));break a}}else c=_.wW.getKeys(B),B=_.wW.getValues(B);for(x=0;x<c.length;x++)this.insert(c[x],B[x])}};
_.a=kY.prototype;_.a.insert=function(B,c){var x=this.nodes_;x.push(new Yd(B,c));B=x.length-1;c=this.nodes_;for(x=c[B];B>0;){var P=B-1>>1;if(c[P].JSC$9451_key_>x.JSC$9451_key_)c[B]=c[P],B=P;else break}c[B]=x};
_.a.remove=function(){var B=this.nodes_,c=B.length,x=B[0];if(!(c<=0)){if(c==1)B.length=0;else{B[0]=B.pop();B=0;c=this.nodes_;for(var P=c.length,Y=c[B];B<P>>1;){var g=B*2+1,k=B*2+2;g=k<P&&c[k].JSC$9451_key_<c[g].JSC$9451_key_?k:g;if(c[g].JSC$9451_key_>Y.JSC$9451_key_)break;c[B]=c[g];B=g}c[B]=Y}return x.getValue()}};
_.a.peek=function(){var B=this.nodes_;if(B.length!=0)return B[0].getValue()};
_.a.getValues=function(){for(var B=this.nodes_,c=[],x=B.length,P=0;P<x;P++)c.push(B[P].getValue());return c};
_.a.getKeys=function(){for(var B=this.nodes_,c=[],x=B.length,P=0;P<x;P++)c.push(B[P].JSC$9451_key_);return c};
_.a.containsValue=function(B){return this.nodes_.some(function(c){return c.getValue()==B})};
_.a.containsKey=function(B){return this.nodes_.some(function(c){return c.JSC$9451_key_==B})};
_.a.clone=function(){return new kY(this)};
_.a.getCount=function(){return this.nodes_.length};
_.a.isEmpty=function(){return this.nodes_.length===0};
_.a.clear=function(){this.nodes_.length=0};_.XV=function(B,c){this.JSC$9457_map_={};this.JSC$9457_keys_=[];this.version_=this.size=0;var x=arguments.length;if(x>1){if(x%2)throw Error("pa");for(var P=0;P<x;P+=2)this.set(arguments[P],arguments[P+1])}else B&&this.addAll(B)};
_.a=_.XV.prototype;_.a.getCount=function(){return this.size};
_.a.getValues=function(){$Y(this);for(var B=[],c=0;c<this.JSC$9457_keys_.length;c++)B.push(this.JSC$9457_map_[this.JSC$9457_keys_[c]]);return B};
_.a.getKeys=function(){$Y(this);return this.JSC$9457_keys_.concat()};
_.a.containsKey=function(B){return this.has(B)};
_.a.has=function(B){return nd(this.JSC$9457_map_,B)};
_.a.containsValue=function(B){for(var c=0;c<this.JSC$9457_keys_.length;c++){var x=this.JSC$9457_keys_[c];if(nd(this.JSC$9457_map_,x)&&this.JSC$9457_map_[x]==B)return!0}return!1};
_.a.equals=function(B,c){if(this===B)return!0;if(this.size!=B.getCount())return!1;c=c||Ort;$Y(this);for(var x,P=0;x=this.JSC$9457_keys_[P];P++)if(!c(this.get(x),B.get(x)))return!1;return!0};
var Ort=function(B,c){return B===c};
_.XV.prototype.isEmpty=function(){return this.size==0};
_.XV.prototype.clear=function(){this.JSC$9457_map_={};this.version_=this.size=this.JSC$9457_keys_.length=0};
_.XV.prototype.remove=function(B){return this.delete(B)};
_.XV.prototype.delete=function(B){return nd(this.JSC$9457_map_,B)?(delete this.JSC$9457_map_[B],--this.size,this.version_++,this.JSC$9457_keys_.length>2*this.size&&$Y(this),!0):!1};
var $Y=function(B){if(B.size!=B.JSC$9457_keys_.length){for(var c=0,x=0;c<B.JSC$9457_keys_.length;){var P=B.JSC$9457_keys_[c];nd(B.JSC$9457_map_,P)&&(B.JSC$9457_keys_[x++]=P);c++}B.JSC$9457_keys_.length=x}if(B.size!=B.JSC$9457_keys_.length){c={};for(P=x=0;x<B.JSC$9457_keys_.length;){var Y=B.JSC$9457_keys_[x];nd(c,Y)||(B.JSC$9457_keys_[P++]=Y,c[Y]=1);x++}B.JSC$9457_keys_.length=P}};
_.a=_.XV.prototype;_.a.get=function(B,c){return nd(this.JSC$9457_map_,B)?this.JSC$9457_map_[B]:c};
_.a.set=function(B,c){nd(this.JSC$9457_map_,B)||(this.size+=1,this.JSC$9457_keys_.push(B),this.version_++);this.JSC$9457_map_[B]=c};
_.a.addAll=function(B){if(B instanceof _.XV)for(var c=B.getKeys(),x=0;x<c.length;x++)this.set(c[x],B.get(c[x]));else for(c in B)this.set(c,B[c])};
_.a.forEach=function(B,c){for(var x=this.getKeys(),P=0;P<x.length;P++){var Y=x[P],g=this.get(Y);B.call(c,g,Y,this)}};
_.a.clone=function(){return new _.XV(this)};
_.a.transpose=function(){for(var B=new _.XV,c=0;c<this.JSC$9457_keys_.length;c++){var x=this.JSC$9457_keys_[c];B.set(this.JSC$9457_map_[x],x)}return B};
_.a.keys=function(){return a$Q(this.__iterator__(!0)).toEs6()};
_.a.values=function(){return a$Q(this.__iterator__(!1)).toEs6()};
_.a.entries=function(){var B=this;return Cg4(this.keys(),function(c){return[c,B.get(c)]})};
_.a.__iterator__=function(B){$Y(this);var c=0,x=this.version_,P=this,Y=new gR;Y.next=function(){if(x!=P.version_)throw Error("pe");if(c>=P.JSC$9457_keys_.length)return sh;var g=P.JSC$9457_keys_[c++];return pm(B?g:P.JSC$9457_map_[g])};
return Y};
var nd=function(B,c){return Object.prototype.hasOwnProperty.call(B,c)};var QuW=function(){this.JSC$9460_map_=new _.XV;this.JSC$9460_head_=new oHy("");this.JSC$9460_head_.next=this.JSC$9460_head_.prev=this.JSC$9460_head_},Fz9=function(B,c){if(c=B.JSC$9460_map_.get(c))c.remove(),B.insert_(c);
return c};
_.a=QuW.prototype;_.a.get=function(B,c){return(B=Fz9(this,B))?B.value:c};
_.a.set=function(B,c){var x=Fz9(this,B);x?x.value=c:(x=new oHy(B,c),this.JSC$9460_map_.set(B,x),this.insert_(x))};
_.a.peek=function(){return this.JSC$9460_head_.next.value};
_.a.shift=function(){return vH5(this,this.JSC$9460_head_.next)};
_.a.pop=function(){return vH5(this,this.JSC$9460_head_.prev)};
_.a.remove=function(B){return(B=this.JSC$9460_map_.get(B))?(this.removeNode(B),!0):!1};
_.a.removeNode=function(B){B.remove();this.JSC$9460_map_.remove(B.key)};
_.a.getCount=function(){return this.JSC$9460_map_.getCount()};
_.a.isEmpty=function(){return this.JSC$9460_map_.isEmpty()};
_.a.getKeys=function(){return this.map(function(B,c){return c})};
_.a.getValues=function(){return this.map(function(B){return B})};
_.a.contains=function(B){return this.some(function(c){return c==B})};
_.a.containsKey=function(B){return this.JSC$9460_map_.containsKey(B)};
_.a.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9460_head_.prev)};
_.a.forEach=function(B,c){for(var x=this.JSC$9460_head_.next;x!=this.JSC$9460_head_;x=x.next)B.call(c,x.value,x.key,this)};
_.a.map=function(B,c){for(var x=[],P=this.JSC$9460_head_.next;P!=this.JSC$9460_head_;P=P.next)x.push(B.call(c,P.value,P.key,this));return x};
_.a.some=function(B,c){for(var x=this.JSC$9460_head_.next;x!=this.JSC$9460_head_;x=x.next)if(B.call(c,x.value,x.key,this))return!0;return!1};
_.a.every=function(B,c){for(var x=this.JSC$9460_head_.next;x!=this.JSC$9460_head_;x=x.next)if(!B.call(c,x.value,x.key,this))return!1;return!0};
_.a.insert_=function(B){B.next=this.JSC$9460_head_.next;B.prev=this.JSC$9460_head_;this.JSC$9460_head_.next=B;for(B.next.prev=B;this.getCount()>100;)this.removeNode(this.JSC$9460_head_.prev)};
var vH5=function(B,c){B.JSC$9460_head_!=c&&B.removeNode(c);return c.value},oHy=function(B,c){this.key=B;
this.value=c};
oHy.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var z63=function(){kY.apply(this,arguments)};
_.w(z63,kY);z63.prototype.enqueue=function(B,c){this.insert(B,c)};var Sid=function(){var B=Error();B.name="SecurityError";throw B;},kmw=function(){return{get opener(){return null},
get closed(){return!0},get location(){Sid()},get document(){Sid()},postMessage:function(){},
close:function(){},
focus:function(){}}};var N2q={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 WHq={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 yV4={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(WHq).join("|");var GF0=function(){function B(n){n.substr(-1)!==";"&&(n+=";");return k(n)}
for(var c=Object.keys(yV4).sort(JE7),x=Object.keys(WHq).sort(JE7),P=0,Y=0;P<x.length;P++)c[Y]===x[P]?(x[P]+=";?",Y++):x[P]+=";";var g=new RegExp("&(?:"+x.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),k=lOQ();return function(n){return String(n).replace(g,B)}}();/*

 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 MFt={};var LzQ=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"),Zrm=/[\\&]/,HrW=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),f33=RegExp('[&<>"]',"g"),irZ=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),AV5=function(B){return B.charCodeAt(0)===92?B.charAt(1):GF0(B)},uId=function(B){return Zrm.test(B)?B.replace(HrW,AV5):B},DAS=function(B){try{var c,x="";
if(typeof Y!=="string"){var P=Y;var Y=";/?:@&=+$,-_.!~*'()#"}typeof P==="undefined"&&(P=!0);var g,k=MFt[Y];if(k)var n=k;else{k=MFt[Y]=[];for(g=0;g<128;g++){var b=String.fromCharCode(g);/^[0-9a-z]$/i.test(b)?k.push(b):k.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<Y.length;g++)k[Y.charCodeAt(g)]=Y[g];n=k}var d=0;for(c=B.length;d<c;d++){var q=B.charCodeAt(d);if(P&&q===37&&d+2<c&&/^[0-9a-f]{2}$/i.test(B.slice(d+1,d+3)))x+=B.slice(d,d+3),d+=2;else if(q<128)x+=n[q];else if(q>=55296&&
q<=57343){if(q>=55296&&q<=56319&&d+1<c){var C=B.charCodeAt(d+1);if(C>=56320&&C<=57343){x+=encodeURIComponent(B[d]+B[d+1]);d++;continue}}x+="%EF%BF%BD"}else x+=encodeURIComponent(B[d])}return x}catch(h){return B}},rV3=function(B){switch(B){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return B}},bi=function(B,c){return f33.test(B)?c?B.replace(irZ,rV3):B.replace(f33,rV3):B};/*

 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 Kd;if(String.fromCodePoint)Kd=function(B){try{return String.fromCodePoint(B)}catch(c){if(c instanceof RangeError)return String.fromCharCode(65533);throw c;}};
else{var R6t=String.fromCharCode,e6Q=Math.floor;Kd=function(){var B=[],c=-1,x=arguments.length;if(!x)return"";for(var P="";++c<x;){var Y=Number(arguments[c]);if(!isFinite(Y)||Y<0||Y>1114111||e6Q(Y)!==Y)return String.fromCharCode(65533);if(Y<=65535)B.push(Y);else{Y-=65536;var g=(Y>>10)+55296;Y=Y%1024+56320;B.push(g,Y)}if(c+1===x||B.length>16384)P+=R6t.apply(null,B),B.length=0}return P}};var BMy=function(B){this.root=this.current=B;this.entering=!0};
BMy.prototype.next=function(){var B=this.current,c=this.entering;if(B===null)return null;a:switch(B._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 x=!0;break a;default:x=!1}c&&x?B._firstChild?(this.current=B._firstChild,this.entering=!0):this.entering=!1:B===this.root?this.current=null:B._next===null?(this.current=
B._parent,this.entering=!1):(this.current=B._next,this.entering=!0);return{entering:c,node:B}};
var pN=function(B,c){this._type=B;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=c;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};
pN.prototype.appendChild=function(B){jg(B);B._parent=this;this._lastChild?(this._lastChild._next=B,B._prev=this._lastChild):this._firstChild=B;this._lastChild=B};
var jg=function(B){B._prev?B._prev._next=B._next:B._parent&&(B._parent._firstChild=B._next);B._next?B._next._prev=B._prev:B._parent&&(B._parent._lastChild=B._prev);B._parent=null;B._next=null;B._prev=null},c9I=function(B,c){jg(c);
c._next=B._next;c._next&&(c._next._prev=c);c._prev=B;B._next=c;c._parent=B._parent;c._next||(c._parent._lastChild=c)};
pN.prototype.insertBefore=function(B){jg(B);B._prev=this._prev;B._prev&&(B._prev._next=B);B._next=this;this._prev=B;B._parent=this._parent;B._prev||(B._parent._firstChild=B)};
_.AJ.Object.defineProperties(pN.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(B){this._literal=B}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(B){this._destination=B}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(B){this._title=B}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(B){this._info=B}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(B){this._level=B}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(B){this._listData.type=B}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(B){this._listData.tight=B}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(B){this._listData.start=B}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(B){this._onEnter=B}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(B){this._onExit=B}}});var Elo=/[ \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,
OCQ={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 xiI=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]/),
PFd=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Ym0=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),axW=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),g9n=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),sBt=/`+/,pWI=/^`+/,kZW=/\.\.\./g,XWW=/--+/g,$it=/^<([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])?)*)>/,
n93=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,bFW=/^ *(?:\n *)?/,KU0=/^[ \t\n\x0b\x0c\x0d]/,jBn=/[ \t\n\x0b\x0c\x0d]+/g,Ui3=/^\s/,diZ=/ *$/,qmW=/^ */,CFy=/^ *(?:\n|$)/,hLy=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),miS=/^[^\n`\[\]\\!<&*_'"]+/m,Uc=function(B){var c=new pN("text");c._literal=B;return c},dy=function(B){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=B||{}};
dy.prototype.match=function(B){B=B.exec(this.subject.slice(this.pos));if(B===null)return null;this.pos+=B.index+B[0].length;return B[0]};
dy.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var qk=function(B){B.match(bFW);return!0},TM0=function(B,c,x){var P=0;
var Y=B.pos;if(c===39||c===34)P++,B.pos++;else for(;B.peek()===c;)P++,B.pos++;if(P===0)P=null;else{var g=Y===0?"\n":B.subject.charAt(Y-1);var k=B.peek();k=k===-1?"\n":Kd(k);var n=Ui3.test(k);k=xiI.test(k);var b=Ui3.test(g);var d=xiI.test(g);g=!n&&!(k&&!b&&!d);n=!b&&!(d&&!n&&!k);c===95?(b=g&&(!n||d),k=n&&(!g||k)):(b=c===39||c===34?g&&!n:g,k=n);B.pos=Y;P={numdelims:P,can_open:b,can_close:k}}if(!P)return!1;Y=P.numdelims;k=B.pos;B.pos+=Y;k=c===39?"\u2019":c===34?"\u201c":B.subject.slice(k,B.pos);k=Uc(k);
x.appendChild(k);B.delimiters={cc:c,numdelims:Y,origdelims:Y,node:k,previous:B.delimiters,next:null,can_open:P.can_open,can_close:P.can_close};B.delimiters.previous!==null&&(B.delimiters.previous.next=B.delimiters);return!0},Vrm=function(B,c){c.previous!==null&&(c.previous.next=c.next);
c.next===null?B.delimiters=c.previous:c.next.previous=c.previous},tr0=function(B,c){var x,P,Y=[],g=!1;
Y[95]=c;Y[42]=c;Y[39]=c;Y[34]=c;for(x=B.delimiters;x!==null&&x.previous!==c;)x=x.previous;for(;x!==null;){var k=x.cc;if(x.can_close){var n=x.previous;for(P=!1;n!==null&&n!==c&&n!==Y[k];){g=(x.can_open||n.can_close)&&(n.origdelims+x.origdelims)%3===0;if(n.cc===x.cc&&n.can_open&&!g){P=!0;break}n=n.previous}var b=x;if(k===42||k===95)if(P){var d=x.numdelims>=2&&n.numdelims>=2?2:1;var q=n.node;var C=x.node;n.numdelims-=d;x.numdelims-=d;q._literal=q._literal.slice(0,q._literal.length-d);C._literal=C._literal.slice(0,
C._literal.length-d);var h=new pN(d===1?"emph":"strong");for(d=q._next;d&&d!==C;){var V=d._next;jg(d);h.appendChild(d);d=V}c9I(q,h);d=n;V=x;d.next!==V&&(d.next=V,V.previous=d);n.numdelims===0&&(jg(q),Vrm(B,n));x.numdelims===0&&(jg(C),n=x.next,Vrm(B,x),x=n)}else x=x.next;else k===39?(x.node._literal="\u2019",P&&(n.node._literal="\u2018"),x=x.next):k===34&&(x.node._literal="\u201d",P&&(n.node.literal="\u201c"),x=x.next);P||g||(Y[k]=b.previous,b.can_open||Vrm(B,b))}else x=x.next}for(;B.delimiters!==
null&&B.delimiters!==c;)Vrm(B,B.delimiters)},wWW=function(B){B=B.match(PFd);
return B===null?null:uId(B.substr(1,B.length-2))},NMZ=function(B){var c=B.match(Ym0);
if(c===null){c=B.pos;for(var x=0,P;(P=B.peek())!==-1;)if(P===92)B.pos+=1,B.peek()!==-1&&(B.pos+=1);else if(P===40)B.pos+=1,x+=1;else if(P===41)if(x<1)break;else B.pos+=1,--x;else if(KU0.exec(Kd(P))!==null)break;else B.pos+=1;c=B.subject.substr(c,B.pos-c);return DAS(uId(c))}return DAS(uId(c.substr(1,c.length-2)))},IxF=function(B){B=B.match(hLy);
return B===null||B.length>1001?0:B.length},J95=function(B,c,x,P){B.brackets!==null&&(B.brackets.bracketAfter=!0);
B.brackets={node:c,previous:B.brackets,previousDelimiter:B.delimiters,index:x,image:P,active:!0}},WUy=function(B,c){var x;
return(x=B.match(miS))?(B.options.smart?c.appendChild(Uc(x.replace(kZW,"\u2026").replace(XWW,function(P){var Y=0,g=0;P.length%3===0?g=P.length/3:P.length%2===0?Y=P.length/2:P.length%3===2?(Y=1,g=(P.length-2)/3):(Y=2,g=(P.length-4)/3);P="";var k;for(k=0;k<g;k++)P+="\u2014";for(k=0;k<Y;k++)P+="\u2013";return P}))):c.appendChild(Uc(x)),!0):!1},lxW=function(B,c,x){B.subject=c;
B.pos=0;c=B.pos;var P=IxF(B);if(P===0)return 0;var Y=B.subject.substr(0,P);if(B.peek()===58)B.pos++;else return B.pos=c,0;qk(B);P=NMZ(B);if(P===null||P.length===0)return B.pos=c,0;var g=B.pos;qk(B);var k=wWW(B);k===null&&(k="",B.pos=g);var n=!0;B.match(CFy)===null&&(k===""?n=!1:(k="",B.pos=g,n=B.match(CFy)!==null));if(!n)return B.pos=c,0;Y=oll(Y);if(Y==="")return B.pos=c,0;x[Y]||(x[Y]={destination:P,title:k});return B.pos-c},E95=function(B,c){var x,P=B.peek();
if(P===-1)return!1;switch(P){case 10:B.pos+=1;if((x=c._lastChild)&&x.type==="text"&&x._literal[x._literal.length-1]===" "){var Y=x._literal[x._literal.length-2]===" ";x._literal=x._literal.replace(diZ,"");c.appendChild(new pN(Y?"linebreak":"softbreak"))}else c.appendChild(new pN("softbreak"));B.match(qmW);x=!0;break;case 92:x=B.subject;B.pos+=1;B.peek()===10?(B.pos+=1,x=new pN("linebreak"),c.appendChild(x)):axW.test(x.charAt(B.pos))?(c.appendChild(Uc(x.charAt(B.pos))),B.pos+=1):c.appendChild(Uc("\\"));
x=!0;break;case 96:a:if(x=B.match(pWI),x===null)x=!1;else{Y=B.pos;for(var g;(g=B.match(sBt))!==null;)if(g===x){g=new pN("code");g._literal=B.subject.slice(Y,B.pos-x.length).trim().replace(jBn," ");c.appendChild(g);x=!0;break a}B.pos=Y;c.appendChild(Uc(x));x=!0}break;case 42:case 95:x=TM0(B,P,c);break;case 39:case 34:x=B.options.smart&&TM0(B,P,c);break;case 91:x=B.pos;B.pos+=1;Y=Uc("[");c.appendChild(Y);J95(B,Y,x,!1);x=!0;break;case 33:x=B.pos;B.pos+=1;B.peek()===91?(B.pos+=1,Y=Uc("!["),c.appendChild(Y),
J95(B,Y,x+1,!0)):c.appendChild(Uc("!"));x=!0;break;case 93:var k,n=!1,b;B.pos+=1;var d=B.pos;Y=B.brackets;if(Y===null)c.appendChild(Uc("]"));else if(Y.active){x=Y.image;var q=B.pos;B.peek()===40&&(B.pos++,qk(B)&&(g=NMZ(B))!==null&&qk(B)&&(KU0.test(B.subject.charAt(B.pos-1))&&(k=wWW(B)),1)&&qk(B)&&B.peek()===41?(B.pos+=1,n=!0):B.pos=q);if(!n){var C=B.pos,h=IxF(B);h>2?b=B.subject.slice(C,C+h):Y.bracketAfter||(b=B.subject.slice(Y.index,d));h===0&&(B.pos=q);b&&(b=B.refmap[oll(b)])&&(g=b.destination,k=
b.title,n=!0)}if(n){d=new pN(x?"image":"link");d._destination=g;d._title=k||"";for(g=Y.node._next;g;)k=g._next,jg(g),d.appendChild(g),g=k;c.appendChild(d);tr0(B,Y.previousDelimiter);B.brackets=B.brackets.previous;jg(Y.node);if(!x)for(Y=B.brackets;Y!==null;)Y.image||(Y.active=!1),Y=Y.previous}else B.brackets=B.brackets.previous,B.pos=d,c.appendChild(Uc("]"))}else c.appendChild(Uc("]")),B.brackets=B.brackets.previous;x=!0;break;case 60:(x=B.match($it))?(x=x.slice(1,x.length-1),Y=new pN("link"),Y._destination=
DAS("mailto:"+x),Y._title="",Y.appendChild(Uc(x)),c.appendChild(Y),x=!0):(x=B.match(n93))?(x=x.slice(1,x.length-1),Y=new pN("link"),Y._destination=DAS(x),Y._title="",Y.appendChild(Uc(x)),c.appendChild(Y),x=!0):x=!1;x||(x=B.match(LzQ),x===null?x=!1:(Y=new pN("html_inline"),Y._literal=x,c.appendChild(Y),x=!0));break;case 38:(x=B.match(g9n))?(c.appendChild(Uc(GF0(x))),x=!0):x=!1;break;default:x=WUy(B,c)}x||(B.pos+=1,c.appendChild(Uc(Kd(P))));return!0};
dy.prototype.parseInlines=function(B){this.subject=B._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;E95(this,B););B._string_content=null;tr0(this,null)};
dy.prototype.parse=dy.prototype.parseInlines;var OF0=[/./,/^<(?: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")],o9W=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],QB9=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,FUW=/^[#`~*+_=<>0-9-\|]|\|/,v9F=/[^ \t\f\v\r\n]/,zLy=/^[*+-]/,SmI=/^(\d{1,9})([.)])/,y94=/^#{1,6}(?:[ \t]+|$)/,GZt=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,MrQ=/^(?:`{3,}|~{3,})(?= *$)/,LU9=/^(?:=+|-+)[ \t]*$/,ZF4=/\r\n|\n|\r/,FHl=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,vlC=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,HFy={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(B){return B!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(B,c){for(B=c._firstChild;B;){if(QEl(B)&&B._next){c._listData.tight=!1;break}for(var x=B._firstChild;x;){if(QEl(x)&&(B._next||x._next)){c._listData.tight=!1;break}x=x._next}B=B._next}},
canContain:function(B){return B==="item"},
acceptsLines:!1},block_quote:{continue:function(B){var c=B.currentLine;if(B.indented||gx(c,B.nextNonspace)!==62)return 1;Cd(B);h4(B,1,!1);as(gx(c,B.offset))&&h4(B,1,!0);return 0},
finalize:function(){},
canContain:function(B){return B!=="item"},
acceptsLines:!1},item:{continue:function(B,c){if(B.blank){if(c._firstChild==null)return 1;Cd(B)}else if(B.indent>=c._listData.markerOffset+c._listData.padding)h4(B,c._listData.markerOffset+c._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(B){return B!=="item"&&!zvI(B)},
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(B,c){var x=B.currentLine,P=B.indent;if(c._isFenced){if((P=P<=3&&x.charAt(B.nextNonspace)===c._fenceChar&&x.slice(B.nextNonspace).match(MrQ))&&P[0].length>=c._fenceLength)return B.finalize(c,B.lineNumber),2;for(c=c._fenceOffset;c>0&&as(gx(x,B.offset));)h4(B,1,!0),c--}else if(P>=4)h4(B,4,!0);else if(B.blank)Cd(B);else return 1;return 0},
finalize:function(B,c){if(c._isFenced){var x=c._string_content,P=x.indexOf("\n");B=x.slice(0,P);x=x.slice(P+1);c.info=uId(B.trim());c._literal=x}else c._literal=c._string_content.replace(/(\n *)+$/,"\n");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(B,c){return!B.blank||c._htmlBlockType!==6&&c._htmlBlockType!==7?0:1},
finalize:function(B,c){c._literal=c._string_content.replace(/(\n *)+$/,"");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(B){return B.blank?1:0},
finalize:function(B,c){for(var x,P=!1;gx(c._string_content,0)===91&&(x=lxW(B.inlineParser,c._string_content,B.refmap));)c._string_content=c._string_content.slice(x),P=!0;P&&!v9F.test(c._string_content)&&jg(c)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(B){return sn(B.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(B){return B=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(B,c){if(!c._rowIsDelimiter){B=c._isHeader?"th":"td";for(var x=c._parent._tableColumns,P=c._string_content,Y=0,g="",k,n=c._sourcepos[0][0];Y<P.length;){switch(P[Y]){case "|":k&&(k._string_content=g.trim(),g="",k=null,x--,x<=0&&(Y=P.length));break;default:if(!k){k=new pN(B,[[n,Y],[n,Y]]);var b=c._parent._columnAlignment,d=c._parent._tableColumns-x;b&&d<=b.length&&d>=0&&(k._alignment=b[d]);c.appendChild(k)}g+=P[Y];k._sourcepos[1][1]=Y}Y++}k&&(k._string_content=g.trim());c._string_content=
""}},
canContain:function(B){return B!=="row"},
acceptsLines:!1}},fxd=[function(B){if(B.indented||gx(B.currentLine,B.nextNonspace)!==62)return 0;Cd(B);h4(B,1,!1);as(gx(B.currentLine,B.offset))&&h4(B,1,!0);ma(B);B.addChild("block_quote",B.nextNonspace);return 1},
function(B){var c;if(!B.indented&&(c=B.currentLine.slice(B.nextNonspace).match(y94))){Cd(B);h4(B,c[0].length,!1);ma(B);var x=B.addChild("heading",B.nextNonspace);x.level=c[0].trim().length;x._string_content=B.currentLine.slice(B.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");h4(B,B.currentLine.length-B.offset);return 2}return 0},
function(B){var c;if(!B.indented&&(c=B.currentLine.slice(B.nextNonspace).match(GZt))){var x=c[0].length;ma(B);var P=B.addChild("code_block",B.nextNonspace);P._isFenced=!0;P._fenceLength=x;P._fenceChar=c[0][0];P._fenceOffset=B.indent;Cd(B);h4(B,x,!1);return 2}return 0},
function(B,c){if(!B.indented&&gx(B.currentLine,B.nextNonspace)===60){var x=B.currentLine.slice(B.nextNonspace),P;for(P=1;P<=7;P++)if(OF0[P].test(x)&&(P<7||c.type!=="paragraph"))return ma(B),B.addChild("html_block",B.offset)._htmlBlockType=P,2}return 0},
function(B,c){var x;if(!B.indented&&c.type==="paragraph"&&(x=B.currentLine.slice(B.nextNonspace).match(LU9))){ma(B);var P=new pN("heading",c.sourcepos);P.level=x[0][0]==="="?1:2;P._string_content=c._string_content;c9I(c,P);jg(c);B.tip=P;h4(B,B.currentLine.length-B.offset,!1);return 2}return 0},
function(B){return!B.indented&&QB9.test(B.currentLine.slice(B.nextNonspace))?(ma(B),B.addChild("thematic_break",B.nextNonspace),h4(B,B.currentLine.length-B.offset,!1),2):0},
function(B,c){var x,P;if(!(P=B.indented&&c.type!=="list")){a:{var Y=c,g=B.currentLine.slice(B.nextNonspace);P={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:B.indent};if(x=g.match(zLy))P.type="bullet",P.bulletChar=x[0][0];else{if(!(x=g.match(SmI))||Y.type==="paragraph"&&x[1]!=="1"){x=null;break a}P.type="ordered";P.start=parseInt(x[1],10);P.delimiter=x[2]}var k=gx(B.currentLine,B.nextNonspace+x[0].length);if(k!==-1&&k!==9&&k!==32||Y.type==="paragraph"&&!B.currentLine.slice(B.nextNonspace+
x[0].length).match(v9F))x=null;else{Cd(B);h4(B,x[0].length,!0);Y=B.column;g=B.offset;do h4(B,1,!0),k=gx(B.currentLine,B.offset);while(B.column-Y<5&&as(k));k=gx(B.currentLine,B.offset)===-1;var n=B.column-Y;n>=5||n<1||k?(P.padding=x[0].length+1,B.column=Y,B.offset=g,as(gx(B.currentLine,B.offset))&&h4(B,1,!0)):P.padding=x[0].length+n;x=P}}P=!x}if(P)return 0;ma(B);(P=B.tip.type!=="list")||(c=c._listData,P=!(c.type===x.type&&c.delimiter===x.delimiter&&c.bulletChar===x.bulletChar));P&&(c=B.addChild("list",
B.nextNonspace),c._listData=x);c=B.addChild("item",B.nextNonspace);c._listData=x;return 1},
function(B){var c;return((c=B.options.shouldParseIndentAsCodeBlock)!=null?c:1)&&B.indented&&B.tip.type!=="paragraph"&&!B.blank?(h4(B,4,!0),ma(B),B.addChild("code_block",B.offset),2):0},
function(B,c){var x=sn(B.currentLine),P=sn(B.lookahead);if(x!==0&&P<0&&Math.abs(x)==Math.abs(P)&&!zvI(c.type)){ma(B);c=B.addChild("table",B.nextNonspace);c._tableRows=1;c._tableColumns=Math.abs(x);x=B.lookahead;if(vlC.test(x)){P=[];for(var Y=0,g=!1,k=0,n=void 0;Y<x.length;){var b=k>=3;switch(x[Y]){case "-":k++;break;case "|":g&&(P.push(n),n=void 0,k=0);g=!0;break;case ":":n||b||(n="left"),!n&&b&&(n="right"),n==="left"&&b&&(n="center")}Y++}x=P}else x=void 0;c._columnAlignment=x;c=B.addChild("row",
B.nextNonspace);c._isHeader=!0;h4(B,B.currentLine.length-B.offset,!1);c._string_content=B.currentLine;return 1}return 0},
function(B,c){if(c.type=="table"&&sn(B.currentLine)!==0){ma(B);var x=c;c=B.addChild("row",B.nextNonspace);sn(B.currentLine)<0?c._rowIsDelimiter=!0:x._tableRows+=1;h4(B,B.currentLine.length-B.offset,!1);c._string_content=B.currentLine;return 2}return 0}],LZ7=function(){var B={shouldParseIndentAsCodeBlock:!1};
B=B===void 0?{}:B;this.lastMatchedContainer=this.doc=SBI();this.refmap={};this.lastLineLength=0;this.inlineParser=new dy(B);this.options=B;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=HFy;this.blockStarts=fxd},iFZ=function(B){B.partiallyConsumedTab&&(B.offset+=1,B.tip._string_content+=" ".repeat(4-B.column%
4));
B.tip._string_content+=B.currentLine.slice(B.offset)+"\n"};
LZ7.prototype.addChild=function(B,c){for(;!this.blocks[this.tip.type].canContain(B);)this.finalize(this.tip,this.lineNumber-1);B=new pN(B,[[this.lineNumber,c+1],[0,0]]);B._string_content="";this.tip.appendChild(B);return this.tip=B};
var ma=function(B){if(!B.allClosed){for(;B.oldtip!==B.lastMatchedContainer;){var c=B.oldtip._parent;B.finalize(B.oldtip,B.lineNumber-1);B.oldtip=c}B.allClosed=!0}},h4=function(B,c,x){for(var P=B.currentLine,Y,g;c>0&&(g=P[B.offset]);)g==="\t"?(Y=4-B.column%4,x?(B.partiallyConsumedTab=Y>c,Y=Y>c?c:Y,B.column+=Y,B.offset+=B.partiallyConsumedTab?0:1,c-=Y):(B.partiallyConsumedTab=!1,B.column+=Y,B.offset+=1,--c)):(B.partiallyConsumedTab=!1,B.offset+=1,B.column+=1,--c)},Cd=function(B){B.offset=B.nextNonspace;
B.column=B.nextNonspaceColumn;B.partiallyConsumedTab=!1},A9m=function(B){for(var c=B.currentLine,x=B.offset,P=B.column,Y;(Y=c.charAt(x))!=="";)if(Y===" ")x++,P++;
else if(Y==="\t")x++,P+=4-P%4;else break;B.blank=Y==="\n"||Y==="\r"||Y==="";B.nextNonspace=x;B.nextNonspaceColumn=P;B.indent=B.nextNonspaceColumn-B.column;B.indented=B.indent>=4};
LZ7.prototype.finalize=function(B,c){var x=B._parent;B._open=!1;B.sourcepos[1]=[c,this.lastLineLength];this.blocks[B.type].finalize(this,B);this.tip=x};
LZ7.prototype.parse=function(B){this.tip=this.doc=SBI();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!B)return this.doc;this.options.time&&console.time("preparing input");var c=B.split(ZF4),x=c.length;B.charCodeAt(B.length-1)===10&&--x;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(B=0;B<x;B++)a:{var P=void 0,Y=c[B],g=c[B+1],k=!0,n=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Y.indexOf("\x00")!==-1&&(Y=Y.replace(/\0/g,"\ufffd"));this.currentLine=Y;for(this.lookahead=g;(P=n._lastChild)&&P._open;){n=P;A9m(this);switch(this.blocks[n.type].continue(this,n)){case 0:break;case 1:k=!1;break;case 2:this.lastLineLength=Y.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!k){n=n._parent;break}}this.allClosed=n===this.oldtip;this.lastMatchedContainer=
n;P=n.type!=="paragraph"&&HFy[n.type].acceptsLines;g=this.blockStarts;for(k=g.length;!P;){A9m(this);if(!this.indented&&!FUW.test(Y.slice(this.nextNonspace))){Cd(this);break}for(var b=0;b<k;){var d=g[b](this,n);if(d===1){n=this.tip;break}else if(d===2){n=this.tip;P=!0;break}else b++}if(b===k){Cd(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){ma(this);this.blank&&n.lastChild&&(n.lastChild._lastLineBlank=!0);P=n.type;g=this.blank&&!(P==="block_quote"||P==="code_block"&&n._isFenced||
P==="item"&&!n._firstChild&&n.sourcepos[0][0]===this.lineNumber);for(k=n;k;)k._lastLineBlank=g,k=k._parent;this.blocks[P].acceptsLines?(iFZ(this),P==="html_block"&&n._htmlBlockType>=1&&n._htmlBlockType<=5&&o9W[n._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(n,this.lineNumber)):this.offset<Y.length&&!this.blank&&(this.addChild("paragraph",this.offset),Cd(this),iFZ(this))}else iFZ(this);this.lastLineLength=Y.length}for(;this.tip;)this.finalize(this.tip,x);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Y=new BMy(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;x=Y.next();)c=x.node,B=c.type,x.entering||B!=="paragraph"&&B!=="heading"&&B!=="th"&&B!="td"||this.inlineParser.parse(c);this.options.time&&console.timeEnd("inline parsing");return this.doc};yEI.prototype.render=function(B){B=new BMy(B);var c;this.buffer="";for(this.lastOut="\n";c=B.next();){var x=c.node.type;if(this[x])this[x](c.node,c.entering)}return this.buffer};
yEI.prototype.out=function(B){TV(this,B)};
var TV=function(B,c){B.buffer+=c;B.lastOut=c};
yEI.prototype.cr=function(){this.lastOut!=="\n"&&TV(this,"\n")};var u2y=/^javascript:|vbscript:|file:|data:/i,Dit=/^data:image\/(?:png|gif|jpeg|webp)/i,r9m=function(B){return u2y.test(B)&&!Dit.test(B)};
kd.prototype=Object.create(yEI.prototype);_.a=kd.prototype;_.a.text=function(B){this.out(B.literal)};
_.a.html_inline=function(B){this.options.safe?TV(this,"\x3c!-- raw HTML omitted --\x3e"):TV(this,B.literal)};
_.a.html_block=function(B){this.cr();this.options.safe?TV(this,"\x3c!-- raw HTML omitted --\x3e"):TV(this,B.literal);this.cr()};
_.a.softbreak=function(){TV(this,this.options.softbreak)};
_.a.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.a.link=function(B,c){var x=this.attrs(B);c?(this.options.safe&&r9m(B.destination)||x.push(["href",bi(B.destination,!0)]),B.title&&x.push(["title",bi(B.title,!0)]),this.tag("a",x)):this.tag("/a")};
_.a.image=function(B,c){c?(this.disableTags===0&&(this.options.safe&&r9m(B.destination)?TV(this,'<img src="" alt="'):TV(this,'<img src="'+bi(B.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(B.title&&TV(this,'" title="'+bi(B.title,!0)),TV(this,'" />')))};
_.a.emph=function(B,c){this.tag(c?"em":"/em")};
_.a.strong=function(B,c){this.tag(c?"strong":"/strong")};
_.a.paragraph=function(B,c){var x=B.parent.parent;B=this.attrs(B);x!==null&&x.type==="list"&&x.listTight||(c?(this.cr(),this.tag("p",B)):(this.tag("/p"),this.cr()))};
_.a.heading=function(B,c){var x="h"+B.level;B=this.attrs(B);c?(this.cr(),this.tag(x,B)):(this.tag("/"+x),this.cr())};
_.a.code=function(B){this.tag("code");this.out(B.literal);this.tag("/code")};
_.a.code_block=function(B){var c=B.info?B.info.split(/\s+/):[],x=this.attrs(B);c.length>0&&c[0].length>0&&x.push(["class","language-"+bi(c[0],!0)]);this.cr();this.tag("pre");this.tag("code",x);this.out(B.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.a.thematic_break=function(B){B=this.attrs(B);this.cr();this.tag("hr",B,!0);this.cr()};
_.a.block_quote=function(B,c){B=this.attrs(B);c?(this.cr(),this.tag("blockquote",B)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.a.list=function(B,c){var x=B.listType==="bullet"?"ul":"ol",P=this.attrs(B);c?(B=B.listStart,B!==null&&B!==1&&P.push(["start",B.toString()]),this.cr(),this.tag(x,P)):(this.cr(),this.tag("/"+x));this.cr()};
_.a.item=function(B,c){B=this.attrs(B);c?this.tag("li",B):(this.tag("/li"),this.cr())};
_.a.custom_inline=function(B,c){c&&B.onEnter?TV(this,B.onEnter):!c&&B.onExit&&TV(this,B.onExit)};
_.a.custom_block=function(B,c){this.cr();c&&B.onEnter?TV(this,B.onEnter):!c&&B.onExit&&TV(this,B.onExit);this.cr()};
_.a.table=function(B,c){B=this.attrs(B);c?(this.cr(),this.tag("table",B)):(this.tag("/table"),this.cr())};
_.a.row=function(B,c){B._rowIsDelimiter||(B=this.attrs(B),c?this.tag("tr",B):this.tag("/tr"))};
_.a.td=function(B,c){var x=this.attrs(B);B._alignment&&x.push(["align",B._alignment]);c?this.tag("td",x):this.tag("/td")};
_.a.th=function(B,c){var x=this.attrs(B);B._alignment&&x.push(["align",B._alignment]);c?this.tag("th",x):this.tag("/th")};
_.a.out=function(B){TV(this,bi(B,!1))};
_.a.tag=function(B,c,x){if(!(this.disableTags>0)){this.buffer+="<"+B;if(c&&c.length>0){B=0;for(var P;(P=c[B])!==void 0;)this.buffer+=" "+P[0]+'="'+P[1]+'"',B++}x&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.a.attrs=function(B){var c=[];this.options.sourcepos&&(B=B.sourcepos)&&c.push(["data-sourcepos",String(B[0][0])+":"+String(B[0][1])+"-"+String(B[1][0])+":"+String(B[1][1])]);return c};
kd.prototype.text=kd.prototype.text;kd.prototype.html_inline=kd.prototype.html_inline;kd.prototype.html_block=kd.prototype.html_block;kd.prototype.softbreak=kd.prototype.softbreak;kd.prototype.linebreak=kd.prototype.linebreak;kd.prototype.link=kd.prototype.link;kd.prototype.image=kd.prototype.image;kd.prototype.emph=kd.prototype.emph;kd.prototype.strong=kd.prototype.strong;kd.prototype.paragraph=kd.prototype.paragraph;kd.prototype.heading=kd.prototype.heading;kd.prototype.code=kd.prototype.code;
kd.prototype.code_block=kd.prototype.code_block;kd.prototype.thematic_break=kd.prototype.thematic_break;kd.prototype.block_quote=kd.prototype.block_quote;kd.prototype.list=kd.prototype.list;kd.prototype.item=kd.prototype.item;kd.prototype.custom_inline=kd.prototype.custom_inline;kd.prototype.custom_block=kd.prototype.custom_block;kd.prototype.table=kd.prototype.table;kd.prototype.row=kd.prototype.row;kd.prototype.td=kd.prototype.td;kd.prototype.th=kd.prototype.th;kd.prototype.out=kd.prototype.out;
kd.prototype.tag=kd.prototype.tag;kd.prototype.attrs=kd.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 RL4,eLd,gsq;(function(){function B(O,W){return O<W?-1:O>W?1:O>=W?0:NaN}
function c(O){return function(W,v){return B(O(W),v)}}
function x(){for(var O=0,W=arguments.length,v={},D;O<W;++O){if(!(D=arguments[O]+"")||D in v)throw Error("re`"+D);v[D]=[]}return new P(v)}
function P(O){this._=O}
function Y(O,W){return O.trim().split(/^|\s+/).map(function(v){var D="",a7=v.indexOf(".");a7>=0&&(D=v.slice(a7+1),v=v.slice(0,a7));if(v&&!W.hasOwnProperty(v))throw Error("se`"+v);return{type:v,name:D}})}
function g(O,W,v){for(var D=0,a7=O.length;D<a7;++D)if(O[D].name===W){O[D]=wG8;O=O.slice(0,D).concat(O.slice(D+1));break}v!=null&&O.push({name:W,value:v});return O}
function k(O){var W=O,v=W.indexOf(":");v>=0&&(W=O.slice(0,v))!=="xmlns"&&(O=O.slice(v+1));return XF.hasOwnProperty(W)?{space:XF[W],local:O}:O}
function n(O){return function(){var W=this.ownerDocument,v=this.namespaceURI;return v==="http://www.w3.org/1999/xhtml"&&W.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?W.createElement(O):W.createElementNS(v,O)}}
function b(O){return function(){return this.ownerDocument.createElementNS(O.space,O.local)}}
function d(O){O=k(O);return(O.local?b:n)(O)}
function q(){}
function C(O){return O==null?q:function(){return this.querySelector(O)}}
function h(O){return Array(O.length)}
function V(O,W){this.ownerDocument=O.ownerDocument;this.namespaceURI=O.namespaceURI;this._next=null;this._parent=O;this.__data__=W}
function N(O){return function(){return O}}
function l(O,W,v,D,a7,Kx){for(var ho=0,Jo,By=W.length,rC=Kx.length;ho<rC;++ho)(Jo=W[ho])?(Jo.__data__=Kx[ho],D[ho]=Jo):v[ho]=new V(O,Kx[ho]);for(;ho<By;++ho)if(Jo=W[ho])a7[ho]=Jo}
function E(O,W,v,D,a7,Kx,ho){var Jo,By,rC={},cy=W.length,Xd=Kx.length,ZS=Array(cy),ji;for(Jo=0;Jo<cy;++Jo)if(By=W[Jo])ZS[Jo]=ji="$"+ho.call(By,By.__data__,Jo,W),ji in rC?a7[Jo]=By:rC[ji]=By;for(Jo=0;Jo<Xd;++Jo)ji="$"+ho.call(O,Kx[Jo],Jo,Kx),(By=rC[ji])?(D[Jo]=By,By.__data__=Kx[Jo],rC[ji]=null):v[Jo]=new V(O,Kx[Jo]);for(Jo=0;Jo<cy;++Jo)(By=W[Jo])&&rC[ZS[Jo]]===By&&(a7[Jo]=By)}
function S(O,W){return O<W?-1:O>W?1:O>=W?0:NaN}
function M(O){return function(){this.removeAttribute(O)}}
function f(O){return function(){this.removeAttributeNS(O.space,O.local)}}
function Z(O,W){return function(){this.setAttribute(O,W)}}
function u(O,W){return function(){this.setAttributeNS(O.space,O.local,W)}}
function e(O,W){return function(){var v=W.apply(this,arguments);v==null?this.removeAttribute(O):this.setAttribute(O,v)}}
function px(O,W){return function(){var v=W.apply(this,arguments);v==null?this.removeAttributeNS(O.space,O.local):this.setAttributeNS(O.space,O.local,v)}}
function kI(O){return function(){this.style.removeProperty(O)}}
function Ul(O,W,v){return function(){this.style.setProperty(O,W,v)}}
function wC(O,W,v){return function(){var D=W.apply(this,arguments);D==null?this.style.removeProperty(O):this.style.setProperty(O,D,v)}}
function W$(O,W){return O.style.getPropertyValue(W)||(O.ownerDocument&&O.ownerDocument.defaultView||O.document&&O||O.defaultView).getComputedStyle(O,null).getPropertyValue(W)}
function El(O){return function(){delete this[O]}}
function H$(O,W){return function(){this[O]=W}}
function yw(O,W){return function(){var v=W.apply(this,arguments);v==null?delete this[O]:this[O]=v}}
function r9(){this.textContent=""}
function cs(O){return function(){this.textContent=O}}
function NQ(O){return function(){var W=O.apply(this,arguments);this.textContent=W==null?"":W}}
function n4(){this.innerHTML=""}
function L4(O){return function(){this.innerHTML=O}}
function UF(O){return function(){var W=O.apply(this,arguments);this.innerHTML=W==null?"":W}}
function uX(){return null}
function yr(){var O=this.parentNode;O&&O.removeChild(this)}
function uz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function XO(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function qQ(O,W,v){O=lt(O,W,v);return function(D){var a7=D.relatedTarget;a7&&(a7===this||a7.compareDocumentPosition(this)&8)||O.call(this,D)}}
function lt(O,W,v){return function(){O.call(this,this.__data__,W,v)}}
function D8(O){return O.trim().split(/^|\s+/).map(function(W){var v="",D=W.indexOf(".");D>=0&&(v=W.slice(D+1),W=W.slice(0,D));return{type:W,name:v}})}
function VW(O){return function(){var W=this.__on;if(W){for(var v=0,D=-1,a7=W.length,Kx;v<a7;++v)(Kx=W[v],O.type&&Kx.type!==O.type||Kx.name!==O.name)?W[++D]=Kx:this.removeEventListener(Kx.type,Kx.listener,Kx.capture);++D?W.length=D:delete this.__on}}}
function ut(O,W,v){var D=Ev0.hasOwnProperty(O.type)?qQ:lt;return function(a7,Kx,ho){a7=this.__on;var Jo;Kx=D(W,Kx,ho);if(a7){ho=0;for(var By=a7.length;ho<By;++ho)if((Jo=a7[ho]).type===O.type&&Jo.name===O.name){this.removeEventListener(Jo.type,Jo.listener,Jo.capture);this.addEventListener(Jo.type,Jo.listener=Kx,Jo.capture=v);Jo.value=W;return}}this.addEventListener(O.type,Kx,v);Jo={type:O.type,name:O.name,value:W,listener:Kx,capture:v};a7?a7.push(Jo):this.__on=[Jo]}}
function M8(O,W,v){var D=O.ownerDocument&&O.ownerDocument.defaultView||O.document&&O||O.defaultView,a7=D.CustomEvent;typeof a7==="function"?a7=new a7(W,v):(a7=D.document.createEvent("Event"),v?(a7.initEvent(W,v.bubbles,v.cancelable),a7.detail=v.detail):a7.initEvent(W,!1,!1));O.dispatchEvent(a7)}
function An(O,W){return function(){return M8(this,O,W)}}
function g9(O,W){return function(){return M8(this,O,W.apply(this,arguments))}}
function SZ(O,W){this._groups=O;this._parents=W}
function hc(){return new SZ([[document.documentElement]],NQc)}
function C4(){this._="@"+(++IZB).toString(36)}
function I0(O,W,v){O.prototype=W.prototype=v;v.constructor=O}
function bz(O,W){O=Object.create(O.prototype);for(var v in W)O[v]=W[v];return O}
function sG(){}
function sF(O){var W;O=(O+"").trim().toLowerCase();return(W=JdB.exec(O))?(W=parseInt(W[1],16),new cN(W>>8&15|W>>4&240,W>>4&15|W&240,(W&15)<<4|W&15,1)):(W=WFo.exec(O))?h0(parseInt(W[1],16)):(W=lZc.exec(O))?new cN(W[1],W[2],W[3],1):(W=EVB.exec(O))?new cN(W[1]*255/100,W[2]*255/100,W[3]*255/100,1):(W=OYr.exec(O))?yD(W[1],W[2],W[3],W[4]):(W=oVz.exec(O))?yD(W[1]*255/100,W[2]*255/100,W[3]*255/100,W[4]):(W=QgN.exec(O))?CS(W[1],W[2]/100,W[3]/100,1):(W=FFN.exec(O))?CS(W[1],W[2]/100,W[3]/100,W[4]):OgF.hasOwnProperty(O)?
h0(OgF[O]):O==="transparent"?new cN(NaN,NaN,NaN,0):null}
function h0(O){return new cN(O>>16&255,O>>8&255,O&255,1)}
function yD(O,W,v,D){D<=0&&(O=W=v=NaN);return new cN(O,W,v,D)}
function G5(O){O instanceof sG||(O=sF(O));if(!O)return new cN;O=O.rgb();return new cN(O.r,O.g,O.b,O.opacity)}
function Jc(O,W,v,D){return arguments.length===1?G5(O):new cN(O,W,v,D==null?1:D)}
function cN(O,W,v,D){this.r=+O;this.g=+W;this.b=+v;this.opacity=+D}
function xP(O){O=Math.max(0,Math.min(255,Math.round(O)||0));return(O<16?"0":"")+O.toString(16)}
function CS(O,W,v,D){D<=0?O=W=v=NaN:v<=0||v>=1?O=W=NaN:W<=0&&(O=NaN);return new WR(O,W,v,D)}
function Ft(O){if(O instanceof WR)return new WR(O.h,O.s,O.l,O.opacity);O instanceof sG||(O=sF(O));if(!O)return new WR;if(O instanceof WR)return O;O=O.rgb();var W=O.r/255,v=O.g/255,D=O.b/255,a7=Math.min(W,v,D),Kx=Math.max(W,v,D),ho=NaN,Jo=Kx-a7,By=(Kx+a7)/2;Jo?(ho=W===Kx?(v-D)/Jo+(v<D)*6:v===Kx?(D-W)/Jo+2:(W-v)/Jo+4,Jo/=By<.5?Kx+a7:2-Kx-a7,ho*=60):Jo=By>0&&By<1?0:ho;return new WR(ho,Jo,By,O.opacity)}
function JM(O,W,v,D){return arguments.length===1?Ft(O):new WR(O,W,v,D==null?1:D)}
function WR(O,W,v,D){this.h=+O;this.s=+W;this.l=+v;this.opacity=+D}
function Qc(O,W,v){return(O<60?W+(v-W)*O/60:O<180?v:O<240?W+(v-W)*(240-O)/60:W)*255}
function Gk(O){if(O instanceof T7)return new T7(O.l,O.a,O.b,O.opacity);if(O instanceof d9){if(isNaN(O.h))return new T7(O.l,0,0,O.opacity);var W=O.h*ov4;return new T7(O.l,Math.cos(W)*O.c,Math.sin(W)*O.c,O.opacity)}O instanceof cN||(O=G5(O));var v=gl(O.r),D=gl(O.g),a7=gl(O.b);W=FO(.2225045*v+.7168786*D+.0606169*a7);if(v===D&&D===a7)var Kx=v=W;else Kx=FO((.4360747*v+.3850649*D+.1430804*a7)/.96422),v=FO((.0139322*v+.0971045*D+.7141733*a7)/.82521);return new T7(116*W-16,500*(Kx-W),200*(W-v),O.opacity)}
function T7(O,W,v,D){this.l=+O;this.a=+W;this.b=+v;this.opacity=+D}
function FO(O){return O>vVz?Math.pow(O,1/3):O/Q8t+F0I}
function MY(O){return O>w0?O*O*O:Q8t*(O-F0I)}
function jZ(O){return 255*(O<=.0031308?12.92*O:1.055*Math.pow(O,1/2.4)-.055)}
function gl(O){return(O/=255)<=.04045?O/12.92:Math.pow((O+.055)/1.055,2.4)}
function lm(O){if(O instanceof d9)return new d9(O.h,O.c,O.l,O.opacity);O instanceof T7||(O=Gk(O));if(O.a===0&&O.b===0)return new d9(NaN,0,O.l,O.opacity);var W=Math.atan2(O.b,O.a)*vvn;return new d9(W<0?W+360:W,Math.sqrt(O.a*O.a+O.b*O.b),O.l,O.opacity)}
function KA(O,W,v,D){return arguments.length===1?lm(O):new d9(O,W,v,D==null?1:D)}
function d9(O,W,v,D){this.h=+O;this.c=+W;this.l=+v;this.opacity=+D}
function K4(O,W,v,D){if(arguments.length===1){var a7=O;if(a7 instanceof mo)a7=new mo(a7.h,a7.s,a7.l,a7.opacity);else{a7 instanceof cN||(a7=G5(a7));var Kx=a7.g/255,ho=a7.b/255,Jo=(z34*ho+a7.r/255*-1.7884503806-3.5172982438*Kx)/(z34+-1.7884503806-3.5172982438);ho-=Jo;var By=(1.97294*(Kx-Jo)- -.29227*ho)/-.90649;ho=(Kx=Math.sqrt(By*By+ho*ho)/(1.97294*Jo*(1-Jo)))?Math.atan2(By,ho)*vvn-120:NaN;a7=new mo(ho<0?ho+360:ho,Kx,Jo,a7.opacity)}}else a7=new mo(O,W,v,D==null?1:D);return a7}
function mo(O,W,v,D){this.h=+O;this.s=+W;this.l=+v;this.opacity=+D}
function jJ(O,W,v,D,a7){var Kx=O*O,ho=Kx*O;return((1-3*O+3*Kx-ho)*W+(4-6*Kx+3*ho)*v+(1+3*O+3*Kx-3*ho)*D+ho*a7)/6}
function s3(O){return function(){return O}}
function d8(O,W){return function(v){return O+v*W}}
function NR(O,W,v){return O=Math.pow(O,v),W=Math.pow(W,v)-O,v=1/v,function(D){return Math.pow(O+D*W,v)}}
function Fe(O,W){var v=W-O;return v?d8(O,v>180||v<-180?v-360*Math.round(v/360):v):s3(isNaN(O)?W:O)}
function mX(O){return(O=+O)===1?Zt:function(W,v){return v-W?NR(W,v,O):s3(isNaN(W)?v:W)}}
function Zt(O,W){var v=W-O;return v?d8(O,v):s3(isNaN(O)?W:O)}
function iR(O){return function(W){var v=W.length,D=Array(v),a7=Array(v),Kx=Array(v),ho;for(ho=0;ho<v;++ho){var Jo=Jc(W[ho]);D[ho]=Jo.r||0;a7[ho]=Jo.g||0;Kx[ho]=Jo.b||0}D=O(D);a7=O(a7);Kx=O(Kx);Jo.opacity=1;return function(By){Jo.r=D(By);Jo.g=a7(By);Jo.b=Kx(By);return Jo+""}}}
function ZA(O,W){return O=+O,W-=O,function(v){return O+W*v}}
function pA(O){return function(){return O}}
function GB(O){return function(W){return O(W)+""}}
function rl(O,W){var v=MEl.lastIndex=L0o.lastIndex=0,D,a7,Kx,ho=-1,Jo=[],By=[];O+="";for(W+="";(D=MEl.exec(O))&&(a7=L0o.exec(W));)(Kx=a7.index)>v&&(Kx=W.slice(v,Kx),Jo[ho]?Jo[ho]+=Kx:Jo[++ho]=Kx),(D=D[0])===(a7=a7[0])?Jo[ho]?Jo[ho]+=a7:Jo[++ho]=a7:(Jo[++ho]=null,By.push({i:ho,x:ZA(D,a7)})),v=L0o.lastIndex;v<W.length&&(Kx=W.slice(v),Jo[ho]?Jo[ho]+=Kx:Jo[++ho]=Kx);return Jo.length<2?By[0]?GB(By[0].x):pA(W):(W=By.length,function(rC){for(var cy=0,Xd;cy<W;++cy)Jo[(Xd=By[cy]).i]=Xd.x(rC);return Jo.join("")})}
function eT(O,W,v,D,a7,Kx){var ho,Jo,By;if(ho=Math.sqrt(O*O+W*W))O/=ho,W/=ho;if(By=O*v+W*D)v-=O*By,D-=W*By;if(Jo=Math.sqrt(v*v+D*D))v/=Jo,D/=Jo,By/=Jo;O*D<W*v&&(O=-O,W=-W,By=-By,ho=-ho);return{translateX:a7,translateY:Kx,rotate:Math.atan2(W,O)*S5F,skewX:Math.atan(By)*S5F,scaleX:ho,scaleY:Jo}}
function BF(O,W,v,D){function a7(rC){return rC.length?rC.pop()+" ":""}
function Kx(rC,cy,Xd,ZS,ji,C$){rC!==Xd||cy!==ZS?(ji=ji.push("translate(",null,W,null,v),C$.push({i:ji-4,x:ZA(rC,Xd)},{i:ji-2,x:ZA(cy,ZS)})):(Xd||ZS)&&ji.push("translate("+Xd+W+ZS+v)}
function ho(rC,cy,Xd,ZS){rC!==cy?(rC-cy>180?cy+=360:cy-rC>180&&(rC+=360),ZS.push({i:Xd.push(a7(Xd)+"rotate(",null,D)-2,x:ZA(rC,cy)})):cy&&Xd.push(a7(Xd)+"rotate("+cy+D)}
function Jo(rC,cy,Xd,ZS){rC!==cy?ZS.push({i:Xd.push(a7(Xd)+"skewX(",null,D)-2,x:ZA(rC,cy)}):cy&&Xd.push(a7(Xd)+"skewX("+cy+D)}
function By(rC,cy,Xd,ZS,ji,C$){rC!==Xd||cy!==ZS?(ji=ji.push(a7(ji)+"scale(",null,",",null,")"),C$.push({i:ji-4,x:ZA(rC,Xd)},{i:ji-2,x:ZA(cy,ZS)})):Xd===1&&ZS===1||ji.push(a7(ji)+"scale("+Xd+","+ZS+")")}
return function(rC,cy){var Xd=[],ZS=[];rC=O(rC);cy=O(cy);Kx(rC.translateX,rC.translateY,cy.translateX,cy.translateY,Xd,ZS);ho(rC.rotate,cy.rotate,Xd,ZS);Jo(rC.skewX,cy.skewX,Xd,ZS);By(rC.scaleX,rC.scaleY,cy.scaleX,cy.scaleY,Xd,ZS);rC=cy=null;return function(ji){for(var C$=-1,va=ZS.length,hs;++C$<va;)Xd[(hs=ZS[C$]).i]=hs.x(ji);return Xd.join("")}}}
function U0(O){return function(W,v){var D=O((W=JM(W)).h,(v=JM(v)).h),a7=Zt(W.s,v.s),Kx=Zt(W.l,v.l),ho=Zt(W.opacity,v.opacity);return function(Jo){W.h=D(Jo);W.s=a7(Jo);W.l=Kx(Jo);W.opacity=ho(Jo);return W+""}}}
function JE(O){return function(W,v){var D=O((W=KA(W)).h,(v=KA(v)).h),a7=Zt(W.c,v.c),Kx=Zt(W.l,v.l),ho=Zt(W.opacity,v.opacity);return function(Jo){W.h=D(Jo);W.c=a7(Jo);W.l=Kx(Jo);W.opacity=ho(Jo);return W+""}}}
function Wi(O){return function D(v){function a7(Kx,ho){var Jo=O((Kx=K4(Kx)).h,(ho=K4(ho)).h),By=Zt(Kx.s,ho.s),rC=Zt(Kx.l,ho.l),cy=Zt(Kx.opacity,ho.opacity);return function(Xd){Kx.h=Jo(Xd);Kx.s=By(Xd);Kx.l=rC(Math.pow(Xd,v));Kx.opacity=cy(Xd);return Kx+""}}
v=+v;a7.gamma=D;return a7}(1)}
function vC(){return kT||(yU5(Ac$),kT=YZ.now()+K_I)}
function Ac$(){kT=0}
function zA(){this._call=this._time=this._next=null}
function Yh(O,W,v){var D=new zA;D.restart(O,W,v);return D}
function aK(){kT=(jOo=YZ.now())+K_I;NU=aM=0;try{vC();++NU;for(var O=UOo,W;O;)(W=kT-O._time)>=0&&O._call.call(null,W),O=O._next;--NU}finally{NU=0;O=UOo;for(var v=Infinity;O;)if(O._call){v>O._time&&(v=O._time);var D=O;O=O._next}else W=O._next,O._next=null,O=D?D._next=W:UOo=W;gg=D;gN(v);kT=0}}
function N$l(){var O=YZ.now(),W=O-jOo;W>1E3&&(K_I-=W,jOo=O)}
function gN(O){NU||(aM&&(aM=clearTimeout(aM)),O-kT>24?(O<Infinity&&(aM=setTimeout(aK,O-YZ.now()-K_I)),sj&&(sj=clearInterval(sj))):(sj||(jOo=YZ.now(),sj=setInterval(N$l,1E3)),NU=1,yU5(aK)))}
function GgI(O,W,v){var D=new zA;W=W==null?0:+W;D.restart(function(a7){D.stop();O(a7+W)},W,v);
return D}
function ZgQ(O,W,v,D,a7,Kx){var ho=O.__transition;if(!ho)O.__transition={};else if(v in ho)return;zFc(O,v,{name:W,index:D,group:a7,on:SZF,tween:ydB,time:Kx.time,delay:Kx.delay,duration:Kx.duration,ease:Kx.ease,timer:null,state:0})}
function Hg$(O,W){O=BB(O,W);if(O.state>0)throw Error("te");return O}
function XK(O,W){O=BB(O,W);if(O.state>2)throw Error("ue");return O}
function BB(O,W){O=O.__transition;if(!O||!(O=O[W]))throw Error("ve");return O}
function zFc(O,W,v){function D(By){var rC,cy;if(v.state!==1)return Kx();for(ZS in ho){var Xd=ho[ZS];if(Xd.name===v.name){if(Xd.state===3)return GgI(D);Xd.state===4?(Xd.state=6,Xd.timer.stop(),Xd.on.call("interrupt",O,O.__data__,Xd.index,Xd.group),delete ho[ZS]):+ZS<W&&(Xd.state=6,Xd.timer.stop(),delete ho[ZS])}}GgI(function(){v.state===3&&(v.state=4,v.timer.restart(a7,v.delay,v.time),a7(By))});
v.state=2;v.on.call("start",O,O.__data__,v.index,v.group);if(v.state===2){v.state=3;Jo=Array(cy=v.tween.length);var ZS=0;for(rC=-1;ZS<cy;++ZS)if(Xd=v.tween[ZS].value.call(O,O.__data__,v.index,v.group))Jo[++rC]=Xd;Jo.length=rC+1}}
function a7(By){By=By<v.duration?v.ease.call(null,By/v.duration):(v.timer.restart(Kx),v.state=5,1);for(var rC=-1,cy=Jo.length;++rC<cy;)Jo[rC].call(null,By);v.state===5&&(v.on.call("end",O,O.__data__,v.index,v.group),Kx())}
function Kx(){v.state=6;v.timer.stop();delete ho[W];for(var By in ho)return;delete O.__transition}
var ho=O.__transition,Jo;ho[W]=v;v.timer=Yh(function(By){v.state=1;v.timer.restart(D,v.delay,v.time);v.delay<=By&&D(By-v.delay)},0,v.time)}
function GoS(O,W){var v,D;return function(){var a7=XK(this,O),Kx=a7.tween;if(Kx!==v){D=v=Kx;Kx=0;for(var ho=D.length;Kx<ho;++Kx)if(D[Kx].name===W){D=D.slice();D.splice(Kx,1);break}}a7.tween=D}}
function M2o(O,W,v){var D,a7;if(typeof v!=="function")throw Error();return function(){var Kx=XK(this,O),ho=Kx.tween;if(ho!==D){a7=(D=ho).slice();ho={name:W,value:v};for(var Jo=0,By=a7.length;Jo<By;++Jo)if(a7[Jo].name===W){a7[Jo]=ho;break}Jo===By&&a7.push(ho)}Kx.tween=a7}}
function fEq(O,W,v){var D=O._id;O.each(function(){var a7=XK(this,D);(a7.value||(a7.value={}))[W]=v.apply(this,arguments)});
return function(a7){return BB(a7,D).value[W]}}
function ME3(O,W){var v;return(typeof W==="number"?ZA:W instanceof sF?L0n:(v=sF(W))?(W=v,L0n):rl)(O,W)}
function LFN(O){return function(){this.removeAttribute(O)}}
function ZYy(O){return function(){this.removeAttributeNS(O.space,O.local)}}
function HYz(O,W,v){var D,a7;return function(){var Kx=this.getAttribute(O);return Kx===v?null:Kx===D?a7:a7=W(D=Kx,v)}}
function fZB(O,W,v){var D,a7;return function(){var Kx=this.getAttributeNS(O.space,O.local);return Kx===v?null:Kx===D?a7:a7=W(D=Kx,v)}}
function iYs(O,W,v){var D,a7,Kx;return function(){var ho=v(this);if(ho==null)return void this.removeAttribute(O);var Jo=this.getAttribute(O);return Jo===ho?null:Jo===D&&ho===a7?Kx:Kx=W(D=Jo,a7=ho)}}
function Adi(O,W,v){var D,a7,Kx;return function(){var ho=v(this);if(ho==null)return void this.removeAttributeNS(O.space,O.local);var Jo=this.getAttributeNS(O.space,O.local);return Jo===ho?null:Jo===D&&ho===a7?Kx:Kx=W(D=Jo,a7=ho)}}
function u8B(O,W){function v(){var D=this,a7=W.apply(D,arguments);return a7&&function(Kx){D.setAttributeNS(O.space,O.local,a7(Kx))}}
v._value=W;return v}
function Dyc(O,W){function v(){var D=this,a7=W.apply(D,arguments);return a7&&function(Kx){D.setAttribute(O,a7(Kx))}}
v._value=W;return v}
function rdl(O,W){return function(){Hg$(this,O).delay=+W.apply(this,arguments)}}
function RFS(O,W){return W=+W,function(){Hg$(this,O).delay=W}}
function eFi(O,W){return function(){XK(this,O).duration=+W.apply(this,arguments)}}
function BpA(O,W){return W=+W,function(){XK(this,O).duration=W}}
function ceB(O,W){if(typeof W!=="function")throw Error();return function(){XK(this,O).ease=W}}
function xwz(O){return(O+"").trim().split(/^|\s+/).every(function(W){var v=W.indexOf(".");v>=0&&(W=W.slice(0,v));return!W||W==="start"})}
function PLl(O,W,v){var D,a7,Kx=xwz(W)?Hg$:XK;return function(){var ho=Kx(this,O),Jo=ho.on;if(Jo!==D)(a7=(D=Jo).copy()).on(W,v);ho.on=a7}}
function YYl(O){return function(){var W=this.parentNode,v;for(v in this.__transition)if(+v!==O)return;W&&W.removeChild(this)}}
function aDi(O,W){var v,D,a7;return function(){var Kx=W$(this,O),ho=(this.style.removeProperty(O),W$(this,O));return Kx===ho?null:Kx===v&&ho===D?a7:a7=W(v=Kx,D=ho)}}
function g7z(O){return function(){this.style.removeProperty(O)}}
function sfz(O,W,v){var D,a7;return function(){var Kx=W$(this,O);return Kx===v?null:Kx===D?a7:a7=W(D=Kx,v)}}
function pJB(O,W,v){var D,a7,Kx;return function(){var ho=W$(this,O),Jo=v(this);Jo==null&&(Jo=(this.style.removeProperty(O),W$(this,O)));return ho===Jo?null:ho===D&&Jo===a7?Kx:Kx=W(D=ho,a7=Jo)}}
function k1c(O,W,v){function D(){var a7=this,Kx=W.apply(a7,arguments);return Kx&&function(ho){a7.style.setProperty(O,Kx(ho),v)}}
D._value=W;return D}
function XJc(O){return function(){this.textContent=O}}
function $wr(O){return function(){var W=O(this);this.textContent=W==null?"":W}}
function Ky(O,W,v,D){this._groups=O;this._parents=W;this._name=v;this._id=D}
function igx(O){return{type:O}}
function AUI(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function dOw(){}
function ZgI(O,W){var v=new dOw;if(O instanceof dOw)O.each(function(ho,Jo){v.set(Jo,ho)});
else if(Array.isArray(O)){var D=-1,a7=O.length,Kx;if(W==null)for(;++D<a7;)v.set(D,O[D]);else for(;++D<a7;)v.set(W(Kx=O[D],D,O),Kx)}else if(O)for(D in O)v.set(D,O[D]);return v}
function qxO(){}
function Hgy(O){return function(W){for(var v={},D=0;D<O.length;D++)v[O[D]]=W[D]||"";return v}}
function n7o(O,W){var v=Hgy(O);return function(D,a7){return W(v(D),a7,O)}}
function b9z(O){var W=Object.create(null),v=[];O.forEach(function(D){for(var a7 in D)a7 in W||v.push(W[a7]=a7)});
return v}
function fEm(O){function W(ho,Jo){function By(){if(C$)return uyY;if(va)return va=!1,ig4;var N6,S$=Xd,Rs;if(ho.charCodeAt(S$)===34){for(;Xd++<cy&&ho.charCodeAt(Xd)!==34||ho.charCodeAt(++Xd)===34;);(N6=Xd)>=cy?C$=!0:(Rs=ho.charCodeAt(Xd++))===10?va=!0:Rs===13&&(va=!0,ho.charCodeAt(Xd)===10&&++Xd);return ho.slice(S$+1,N6-1).replace(/""/g,'"')}for(;Xd<cy;){if((Rs=ho.charCodeAt(N6=Xd++))===10)va=!0;else if(Rs===13)va=!0,ho.charCodeAt(Xd)===10&&++Xd;else if(Rs!==Kx)continue;return ho.slice(S$,N6)}return C$=
!0,ho.slice(S$,cy)}
var rC=[],cy=ho.length,Xd=0,ZS=0,ji,C$=cy<=0,va=!1;ho.charCodeAt(cy-1)===10&&--cy;for(ho.charCodeAt(cy-1)===13&&--cy;(ji=By())!==uyY;){for(var hs=[];ji!==ig4&&ji!==uyY;)hs.push(ji),ji=By();Jo&&(hs=Jo(hs,ZS++))==null||rC.push(hs)}return rC}
function v(ho){return ho.map(D).join(O)}
function D(ho){return ho==null?"":a7.test(ho)?'"'+ho.replace(/"/g,'""')+'"':ho}
var a7=new RegExp('["'+O+"\n\r]"),Kx=O.charCodeAt(0);return{parse:function(ho,Jo){var By,rC;ho=W(ho,function(cy,Xd){if(By)return By(cy,Xd-1);rC=cy;By=Jo?n7o(cy,Jo):Hgy(cy)});
ho.columns=rC||[];return ho},
parseRows:W,format:function(ho,Jo){Jo==null&&(Jo=b9z(ho));return[Jo.map(D).join(O)].concat(ho.map(function(By){return Jo.map(function(rC){return D(By[rC])}).join(O)})).join("\n")},
formatRows:function(ho){return ho.map(v).join("\n")}}}
function Kvz(O){if(!O.ok)throw Error("we`"+O.status+"`"+O.statusText);return O.text()}
function AUF(O){return function(W,v,D){arguments.length===2&&typeof v==="function"&&(D=v,v=void 0);return fetch(W,v).then(Kvz).then(function(a7){return O(a7,D)})}}
function uyQ(O,W,v,D){if(isNaN(W)||isNaN(v))return O;var a7,Kx=O._root;D={data:D};var ho=O._x0,Jo=O._y0,By=O._x1,rC=O._y1,cy,Xd,ZS,ji,C$;if(!Kx)return O._root=D,O;for(;Kx.length;)if((ZS=W>=(cy=(ho+By)/2))?ho=cy:By=cy,(ji=v>=(Xd=(Jo+rC)/2))?Jo=Xd:rC=Xd,a7=Kx,!(Kx=Kx[C$=ji<<1|ZS]))return a7[C$]=D,O;var va=+O._x.call(null,Kx.data);var hs=+O._y.call(null,Kx.data);if(W===va&&v===hs)return D.next=Kx,a7?a7[C$]=D:O._root=D,O;do a7=a7?a7[C$]=Array(4):O._root=Array(4),(ZS=W>=(cy=(ho+By)/2))?ho=cy:By=cy,(ji=
v>=(Xd=(Jo+rC)/2))?Jo=Xd:rC=Xd;while((C$=ji<<1|ZS)===(ZS=(hs>=Xd)<<1|va>=cy));return a7[ZS]=Kx,a7[C$]=D,O}
function jF(O,W,v,D,a7){this.node=O;this.x0=W;this.y0=v;this.x1=D;this.y1=a7}
function jfF(O){return O[0]}
function UwB(O){return O[1]}
function Dld(O,W,v,D,a7,Kx){this._x=O;this._y=W;this._x0=v;this._y0=D;this._x1=a7;this._y1=Kx;this._root=void 0}
function DlZ(O){for(var W={data:O.data},v=W;O=O.next;)v=v.next={data:O.data};return W}
function CPl(O,W){if((W=(O=W?O.toExponential(W-1):O.toExponential()).indexOf("e"))<0)return null;var v=O.slice(0,W);return[v.length>1?v[0]+v.slice(2):v,+O.slice(W+1)]}
function dwA(O){return O=CPl(Math.abs(O)),O?O[1]:NaN}
function qYo(O,W){return function(v,D){for(var a7=v.length,Kx=[],ho=0,Jo=O[0],By=0;a7>0&&Jo>0;){By+Jo+1>D&&(Jo=Math.max(1,D-By));Kx.push(v.substring(a7-=Jo,a7+Jo));if((By+=Jo+1)>D)break;Jo=O[ho=(ho+1)%O.length]}return Kx.reverse().join(W)}}
function CLN(O){return function(W){return W.replace(/[0-9]/g,function(v){return O[+v]})}}
function rUX(O){return new R37(O)}
function R37(O){if(!(W=hWB.exec(O)))throw Error("xe`"+O);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 rUt(O,W){W=CPl(O,W);if(!W)return O+"";O=W[0];W=W[1];return W<0?"0."+Array(-W).join("0")+O:O.length>W+1?O.slice(0,W+1)+"."+O.slice(W+1):O+Array(W-O.length+2).join("0")}
function R35(O){return O}
function mwl(O){function W(Jo){function By(im){var ip=Rs,Ws=hW,bm,gt;if(S$==="c")Ws=y_(im)+Ws,im="";else{im=+im;var qN=im<0;im=y_(Math.abs(im),hs);if(N6){var FS=im.length,$4=1,Ix=-1;a:for(;$4<FS;++$4)switch(im[$4]){case ".":Ix=bm=$4;break;case "0":Ix===0&&(Ix=$4);bm=$4;break;default:if(!+im[$4])break a;Ix>0&&(Ix=0)}im=Ix>0?im.slice(0,Ix)+im.slice(bm+1):im}qN&&+im===0&&(qN=!1);ip=(qN?Xd==="("?Xd:"-":Xd==="-"||Xd==="("?"":Xd)+ip;Ws=(S$==="s"?e39[8+Byn/3]:"")+Ws+(qN&&Xd==="("?")":"");if(by)for(qN=-1,
bm=im.length;++qN<bm;)if(gt=im.charCodeAt(qN),48>gt||gt>57){Ws=(gt===46?a7+im.slice(qN+1):im.slice(qN))+Ws;im=im.slice(0,qN);break}}va&&!ji&&(im=v(im,Infinity));gt=ip.length+im.length+Ws.length;qN=gt<C$?Array(C$-gt+1).join(rC):"";va&&ji&&(im=v(qN+im,qN.length?C$-Ws.length:Infinity),qN="");switch(cy){case "<":im=ip+im+Ws+qN;break;case "=":im=ip+qN+im+Ws;break;case "^":im=qN.slice(0,gt=qN.length>>1)+ip+im+Ws+qN.slice(gt);break;default:im=qN+ip+im+Ws}return Kx(im)}
Jo=rUX(Jo);var rC=Jo.fill,cy=Jo.align,Xd=Jo.sign,ZS=Jo.symbol,ji=Jo.zero,C$=Jo.width,va=Jo.comma,hs=Jo.precision,N6=Jo.trim,S$=Jo.type;S$==="n"?(va=!0,S$="g"):c4Z[S$]||(hs==null&&(hs=12),N6=!0,S$="g");if(ji||rC==="0"&&cy==="=")ji=!0,rC="0",cy="=";var Rs=ZS==="$"?D[0]:ZS==="#"&&/[boxX]/.test(S$)?"0"+S$.toLowerCase():"",hW=ZS==="$"?D[1]:/[%p]/.test(S$)?ho:"",y_=c4Z[S$],by=/[defgprs%]/.test(S$);hs=hs==null?6:/[gprs]/.test(S$)?Math.max(1,Math.min(21,hs)):Math.max(0,Math.min(20,hs));By.toString=function(){return Jo+
""};
return By}
var v=O.grouping&&O.thousands?qYo(O.grouping,O.thousands):R35,D=O.currency,a7=O.decimal,Kx=O.numerals?CLN(O.numerals):R35,ho=O.percent||"%";return{format:W,formatPrefix:function(Jo,By){var rC=W((Jo=rUX(Jo),Jo.type="f",Jo));Jo=Math.max(-8,Math.min(8,Math.floor(dwA(By)/3)))*3;var cy=Math.pow(10,-Jo),Xd=e39[8+Jo/3];return function(ZS){return rC(cy*ZS)+Xd}}}}
function DO(){this.reset()}
function xk4(O,W,v){var D=O.s=W+v,a7=D-W;O.t=W-(D-a7)+(v-a7)}
function hzw(O){return O>1?$E:O<-1?-$E:Math.asin(O)}
function TpB(){}
function PiS(O){var W=O[0];O=O[1];var v=n2(O);return[v*n2(W),v*rj(W),rj(O)]}
function YcS(O,W){return[O[1]*W[2]-O[2]*W[1],O[2]*W[0]-O[0]*W[2],O[0]*W[1]-O[1]*W[0]]}
function ayy(O){var W=mOx(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=W;O[1]/=W;O[2]/=W}
function V1i(){var O=[],W;return{point:function(v,D){W.push([v,D])},
lineStart:function(){O.push(W=[])},
lineEnd:TpB,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},
result:function(){var v=O;O=[];W=null;return v}}}
function TbY(O,W,v,D){this.x=O;this.z=W;this.o=v;this.e=D;this.v=!1;this.n=this.p=null}
function t1i(O,W,v,D,a7){var Kx=[],ho=[];O.forEach(function(Xd){if(!((ZS=Xd.length-1)<=0)){var ZS,ji=Xd[0],C$=Xd[ZS],va=ji;if(jq(va[0]-C$[0])<1E-6&&jq(va[1]-C$[1])<1E-6){a7.lineStart();for(Jo=0;Jo<ZS;++Jo)a7.point((ji=Xd[Jo])[0],ji[1]);a7.lineEnd()}else Kx.push(ZS=new TbY(ji,Xd,null,!0)),ho.push(ZS.o=new TbY(ji,null,ZS,!1)),Kx.push(ZS=new TbY(C$,Xd,null,!1)),ho.push(ZS.o=new TbY(C$,null,ZS,!0))}});
if(Kx.length){ho.sort(W);gYy(Kx);gYy(ho);var Jo=0;for(O=ho.length;Jo<O;++Jo)ho[Jo].e=v=!v;v=Kx[0];for(var By;;){for(var rC=v,cy=!0;rC.v;)if((rC=rC.n)===v)return;W=rC.z;a7.lineStart();do{rC.v=rC.o.v=!0;if(rC.e){if(cy)for(Jo=0,O=W.length;Jo<O;++Jo)a7.point((By=W[Jo])[0],By[1]);else D(rC.x,rC.n.x,1,a7);rC=rC.n}else{if(cy)for(W=rC.p.z,Jo=W.length-1;Jo>=0;--Jo)a7.point((By=W[Jo])[0],By[1]);else D(rC.x,rC.p.x,-1,a7);rC=rC.p}rC=rC.o;W=rC.z;cy=!cy}while(!rC.v);a7.lineEnd()}}}
function gYy(O){if(W=O.length){for(var W,v=0,D=O[0],a7;++v<W;)D.n=a7=O[v],a7.p=D,D=a7;D.n=a7=O[0];a7.p=D}}
function wJz(O){return O.length>1}
function Npr(O,W){return((O=O.x)[0]<0?O[1]-$E-1E-6:$E-O[1])-((W=W.x)[0]<0?W[1]-$E-1E-6:$E-W[1])}
function e3C(){}
function sII(O){return function(W,v){var D=n2(W),a7=n2(v);D=O(D*a7);return[D*a7*rj(W),D*rj(v)]}}
function pD(O){return function(W,v){var D=mOx(W*W+v*v),a7=O(D),Kx=rj(a7);a7=n2(a7);return[pbI(W*Kx,D*a7),hzw(D&&v*Kx/D)]}}
function ID6(O){var W=0,v=O.children,D=v&&v.length;if(D)for(;--D>=0;)W+=v[D].value;else W=1;O.value=W}
function kVd(O,W){var v=new kZ(O);O=+O.value&&(v.value=O.value);var D,a7=[v],Kx,ho,Jo,By;for(W==null&&(W=Je8);D=a7.pop();)if(O&&(D.value=+D.data.value),(ho=W(D.data))&&(By=ho.length))for(D.children=Array(By),Jo=By-1;Jo>=0;--Jo)a7.push(Kx=D.children[Jo]=new kZ(ho[Jo])),Kx.parent=D,Kx.depth=D.depth+1;return v.eachBefore(Wvl)}
function Je8(O){return O.children}
function lDz(O){O.data=O.data.data}
function Wvl(O){var W=0;do O.height=W;while((O=O.parent)&&O.height<++W)}
function kZ(O){this.data=O;this.depth=this.height=0;this.parent=null}
function HX(O,W,v,D){function a7(Kx){return O(Kx=new Date(+Kx)),Kx}
a7.floor=a7;a7.ceil=function(Kx){return O(Kx=new Date(Kx-1)),W(Kx,1),O(Kx),Kx};
a7.round=function(Kx){var ho=a7(Kx),Jo=a7.ceil(Kx);return Kx-ho<Jo-Kx?ho:Jo};
a7.offset=function(Kx,ho){return W(Kx=new Date(+Kx),ho==null?1:Math.floor(ho)),Kx};
a7.range=function(Kx,ho,Jo){var By=[],rC;Kx=a7.ceil(Kx);Jo=Jo==null?1:Math.floor(Jo);if(!(Kx<ho&&Jo>0))return By;do By.push(rC=new Date(+Kx)),W(Kx,Jo),O(Kx);while(rC<Kx&&Kx<ho);return By};
a7.filter=function(Kx){return HX(function(ho){if(ho>=ho)for(;O(ho),!Kx(ho);)ho.setTime(ho-1)},function(ho,Jo){if(ho>=ho)if(Jo<0)for(;++Jo<=0;)for(;W(ho,-1),!Kx(ho););
else for(;--Jo>=0;)for(;W(ho,1),!Kx(ho););})};
v&&(a7.count=function(Kx,ho){Byo.setTime(+Kx);c4d.setTime(+ho);O(Byo);O(c4d);return Math.floor(v(Byo,c4d))},a7.every=function(Kx){Kx=Math.floor(Kx);
return isFinite(Kx)&&Kx>0?Kx>1?a7.filter(D?function(ho){return D(ho)%Kx===0}:function(ho){return a7.count(0,ho)%Kx===0}):a7:null});
return a7}
function $T(O){return HX(function(W){W.setDate(W.getDate()-(W.getDay()+7-O)%7);W.setHours(0,0,0,0)},function(W,v){W.setDate(W.getDate()+v*7)},function(W,v){return(v-W-(v.getTimezoneOffset()-W.getTimezoneOffset())*6E4)/6048E5})}
function nb(O){return HX(function(W){W.setUTCDate(W.getUTCDate()-(W.getUTCDay()+7-O)%7);W.setUTCHours(0,0,0,0)},function(W,v){W.setUTCDate(W.getUTCDate()+v*7)},function(W,v){return(v-W)/6048E5})}
function E7y(O){if(0<=O.y&&O.y<100){var W=new Date(-1,O.m,O.d,O.H,O.M,O.S,O.L);W.setFullYear(O.y);return W}return new Date(O.y,O.m,O.d,O.H,O.M,O.S,O.L)}
function VwQ(O){if(0<=O.y&&O.y<100){var W=new Date(Date.UTC(-1,O.m,O.d,O.H,O.M,O.S,O.L));W.setUTCFullYear(O.y);return W}return new Date(Date.UTC(O.y,O.m,O.d,O.H,O.M,O.S,O.L))}
function Xu(O){return{y:O,m:0,d:1,H:0,M:0,S:0,L:0}}
function O9r(O){function W(Ws,bm){return function(gt){var qN=[],FS=-1,$4=0,Ix=Ws.length,c5,v6;for(gt instanceof Date||(gt=new Date(+gt));++FS<Ix;)if(Ws.charCodeAt(FS)===37){qN.push(Ws.slice($4,FS));($4=Xbd[c5=Ws.charAt(++FS)])!=null?c5=Ws.charAt(++FS):$4=c5==="e"?" ":"0";if(v6=bm[c5])c5=v6(gt,$4);qN.push(c5);$4=FS+1}qN.push(Ws.slice($4,FS));return qN.join("")}}
function v(Ws,bm){return function(gt){var qN=Xu(1900);if(D(qN,Ws,gt,0)!=gt.length)return null;if("Q"in qN)return new Date(qN.Q);"p"in qN&&(qN.H=qN.H%12+qN.p*12);if("V"in qN){if(qN.V<1||qN.V>53)return null;"w"in qN||(qN.w=1);if("Z"in qN){gt=VwQ(Xu(qN.y));var FS=gt.getUTCDay();gt=FS>4||FS===0?xkx.ceil(gt):xkx(gt);gt=$k5.offset(gt,(qN.V-1)*7);qN.y=gt.getUTCFullYear();qN.m=gt.getUTCMonth();qN.d=gt.getUTCDate()+(qN.w+6)%7}else gt=bm(Xu(qN.y)),FS=gt.getDay(),gt=FS>4||FS===0?PiA.ceil(gt):PiA(gt),gt=nY0.offset(gt,
(qN.V-1)*7),qN.y=gt.getFullYear(),qN.m=gt.getMonth(),qN.d=gt.getDate()+(qN.w+6)%7}else if("W"in qN||"U"in qN)"w"in qN||(qN.w="u"in qN?qN.u%7:"W"in qN?1:0),FS="Z"in qN?VwQ(Xu(qN.y)).getUTCDay():bm(Xu(qN.y)).getDay(),qN.m=0,qN.d="W"in qN?(qN.w+6)%7+qN.W*7-(FS+5)%7:qN.w+qN.U*7-(FS+6)%7;return"Z"in qN?(qN.H+=qN.Z/100|0,qN.M+=qN.Z%100,VwQ(qN)):bm(qN)}}
function D(Ws,bm,gt,qN){for(var FS=0,$4=bm.length,Ix=gt.length,c5;FS<$4;){if(qN>=Ix)return-1;c5=bm.charCodeAt(FS++);if(c5===37){if(c5=bm.charAt(FS++),c5=ip[c5 in Xbd?bm.charAt(FS++):c5],!c5||(qN=c5(Ws,gt,qN))<0)return-1}else if(c5!=gt.charCodeAt(qN++))return-1}return qN}
var a7=O.dateTime,Kx=O.date,ho=O.time,Jo=O.periods,By=O.days,rC=O.shortDays,cy=O.months,Xd=O.shortMonths,ZS=$Z(Jo),ji=nD(Jo),C$=$Z(By),va=nD(By),hs=$Z(rC),N6=nD(rC),S$=$Z(cy),Rs=nD(cy),hW=$Z(Xd),y_=nD(Xd),by={a:function(Ws){return rC[Ws.getDay()]},
A:function(Ws){return By[Ws.getDay()]},
b:function(Ws){return Xd[Ws.getMonth()]},
B:function(Ws){return cy[Ws.getMonth()]},
c:null,d:bdW,e:bdW,f:o76,H:Qf8,I:Fvz,j:v7i,L:KaF,m:zW8,M:SYF,p:function(Ws){return Jo[+(Ws.getHours()>=12)]},
Q:jIW,s:Uk9,S:yec,u:G1o,U:M1B,V:LvS,w:Z9o,W:H9y,x:null,X:null,y:fDF,Y:i9z,Z:AeA,"%":dk4},im={a:function(Ws){return rC[Ws.getUTCDay()]},
A:function(Ws){return By[Ws.getUTCDay()]},
b:function(Ws){return Xd[Ws.getUTCMonth()]},
B:function(Ws){return cy[Ws.getUTCMonth()]},
c:null,d:qcZ,e:qcZ,f:u$l,H:Dwi,I:reo,j:RWl,L:Ci5,m:eWF,M:BaN,p:function(Ws){return Jo[+(Ws.getUTCHours()>=12)]},
Q:jIW,s:Uk9,S:cBN,u:xfo,U:PKz,V:YVo,w:aui,W:gcA,x:null,X:null,y:sZz,Y:pBz,Z:kiF,"%":dk4},ip={a:function(Ws,bm,gt){return(bm=hs.exec(bm.slice(gt)))?(Ws.w=N6[bm[0].toLowerCase()],gt+bm[0].length):-1},
A:function(Ws,bm,gt){return(bm=C$.exec(bm.slice(gt)))?(Ws.w=va[bm[0].toLowerCase()],gt+bm[0].length):-1},
b:function(Ws,bm,gt){return(bm=hW.exec(bm.slice(gt)))?(Ws.m=y_[bm[0].toLowerCase()],gt+bm[0].length):-1},
B:function(Ws,bm,gt){return(bm=S$.exec(bm.slice(gt)))?(Ws.m=Rs[bm[0].toLowerCase()],gt+bm[0].length):-1},
c:function(Ws,bm,gt){return D(Ws,a7,bm,gt)},
d:h7F,e:h7F,f:XBF,H:mkd,I:mkd,j:$fc,L:ncr,m:bRF,M:KsB,p:function(Ws,bm,gt){return(bm=ZS.exec(bm.slice(gt)))?(Ws.p=ji[bm[0].toLowerCase()],gt+bm[0].length):-1},
Q:jZr,s:Ufs,S:dfz,u:qVs,U:CKi,V:hcB,w:mfo,W:Taz,x:function(Ws,bm,gt){return D(Ws,Kx,bm,gt)},
X:function(Ws,bm,gt){return D(Ws,ho,bm,gt)},
y:VQs,Y:tQc,Z:wBz,"%":NaB};by.x=W(Kx,by);by.X=W(ho,by);by.c=W(a7,by);im.x=W(Kx,im);im.X=W(ho,im);im.c=W(a7,im);return{format:function(Ws){var bm=W(Ws,by);bm.toString=function(){return Ws};
return bm},
parse:function(Ws){var bm=v(Ws,E7y);bm.toString=function(){return Ws};
return bm},
utcFormat:function(Ws){var bm=W(Ws,im);bm.toString=function(){return Ws};
return bm},
utcParse:function(Ws){var bm=v(Ws,VwQ);bm.toString=function(){return Ws};
return bm}}}
function nt(O,W,v){var D=O<0?"-":"";O=(D?-O:O)+"";var a7=O.length;return D+(a7<v?Array(v-a7+1).join(W)+O:O)}
function Iuy(O){return O.replace(JBA,"\\$&")}
function $Z(O){return new RegExp("^(?:"+O.map(Iuy).join("|")+")","i")}
function nD(O){for(var W={},v=-1,D=O.length;++v<D;)W[O[v].toLowerCase()]=v;return W}
function mfo(O,W,v){return(W=eW.exec(W.slice(v,v+1)))?(O.w=+W[0],v+W[0].length):-1}
function qVs(O,W,v){return(W=eW.exec(W.slice(v,v+1)))?(O.u=+W[0],v+W[0].length):-1}
function CKi(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.U=+W[0],v+W[0].length):-1}
function hcB(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.V=+W[0],v+W[0].length):-1}
function Taz(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.W=+W[0],v+W[0].length):-1}
function tQc(O,W,v){return(W=eW.exec(W.slice(v,v+4)))?(O.y=+W[0],v+W[0].length):-1}
function VQs(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.y=+W[0]+(+W[0]>68?1900:2E3),v+W[0].length):-1}
function wBz(O,W,v){return(W=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(W.slice(v,v+6)))?(O.Z=W[1]?0:-(W[2]+(W[3]||"00")),v+W[0].length):-1}
function bRF(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.m=W[0]-1,v+W[0].length):-1}
function h7F(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.d=+W[0],v+W[0].length):-1}
function $fc(O,W,v){return(W=eW.exec(W.slice(v,v+3)))?(O.m=0,O.d=+W[0],v+W[0].length):-1}
function mkd(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.H=+W[0],v+W[0].length):-1}
function KsB(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.M=+W[0],v+W[0].length):-1}
function dfz(O,W,v){return(W=eW.exec(W.slice(v,v+2)))?(O.S=+W[0],v+W[0].length):-1}
function ncr(O,W,v){return(W=eW.exec(W.slice(v,v+3)))?(O.L=+W[0],v+W[0].length):-1}
function XBF(O,W,v){return(W=eW.exec(W.slice(v,v+6)))?(O.L=Math.floor(W[0]/1E3),v+W[0].length):-1}
function NaB(O,W,v){return(O=Wso.exec(W.slice(v,v+1)))?v+O[0].length:-1}
function jZr(O,W,v){return(W=eW.exec(W.slice(v)))?(O.Q=+W[0],v+W[0].length):-1}
function Ufs(O,W,v){return(W=eW.exec(W.slice(v)))?(O.Q=+W[0]*1E3,v+W[0].length):-1}
function bdW(O,W){return nt(O.getDate(),W,2)}
function Qf8(O,W){return nt(O.getHours(),W,2)}
function Fvz(O,W){return nt(O.getHours()%12||12,W,2)}
function v7i(O,W){return nt(1+nY0.count(IY(O),O),W,3)}
function KaF(O,W){return nt(O.getMilliseconds(),W,3)}
function o76(O,W){return KaF(O,W)+"000"}
function zW8(O,W){return nt(O.getMonth()+1,W,2)}
function SYF(O,W){return nt(O.getMinutes(),W,2)}
function yec(O,W){return nt(O.getSeconds(),W,2)}
function G1o(O){O=O.getDay();return O===0?7:O}
function M1B(O,W){return nt(lu8.count(IY(O),O),W,2)}
function LvS(O,W){var v=O.getDay();O=v>=4||v===0?YcA(O):YcA.ceil(O);return nt(YcA.count(IY(O),O)+(IY(O).getDay()===4),W,2)}
function Z9o(O){return O.getDay()}
function H9y(O,W){return nt(PiA.count(IY(O),O),W,2)}
function fDF(O,W){return nt(O.getFullYear()%100,W,2)}
function i9z(O,W){return nt(O.getFullYear()%1E4,W,4)}
function AeA(O){O=O.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+nt(O/60|0,"0",2)+nt(O%60,"0",2)}
function qcZ(O,W){return nt(O.getUTCDate(),W,2)}
function Dwi(O,W){return nt(O.getUTCHours(),W,2)}
function reo(O,W){return nt(O.getUTCHours()%12||12,W,2)}
function RWl(O,W){return nt(1+$k5.count(Jt(O),O),W,3)}
function Ci5(O,W){return nt(O.getUTCMilliseconds(),W,3)}
function u$l(O,W){return Ci5(O,W)+"000"}
function eWF(O,W){return nt(O.getUTCMonth()+1,W,2)}
function BaN(O,W){return nt(O.getUTCMinutes(),W,2)}
function cBN(O,W){return nt(O.getUTCSeconds(),W,2)}
function xfo(O){O=O.getUTCDay();return O===0?7:O}
function PKz(O,W){return nt(EcS.count(Jt(O),O),W,2)}
function YVo(O,W){var v=O.getUTCDay();O=v>=4||v===0?ay$(O):ay$.ceil(O);return nt(ay$.count(Jt(O),O)+(Jt(O).getUTCDay()===4),W,2)}
function aui(O){return O.getUTCDay()}
function gcA(O,W){return nt(xkx.count(Jt(O),O),W,2)}
function sZz(O,W){return nt(O.getUTCFullYear()%100,W,2)}
function pBz(O,W){return nt(O.getUTCFullYear()%1E4,W,4)}
function kiF(){return"+0000"}
function dk4(){return"%"}
function jIW(O){return+O}
function Uk9(O){return Math.floor(+O/1E3)}
function sI(O){for(var W=O.length/6|0,v=Array(W),D=0;D<W;)v[D]="#"+O.slice(D*6,++D*6);return v}
function vR(O){return ORi(O[O.length-1])}
function twQ(O){var W=O.length;return function(v){return O[Math.max(0,Math.min(W-1,Math.floor(v*W)))]}}
function Ty3(O){this._context=O}
function VgQ(O){this._curve=O}
function tgd(O,W,v){var D=O._x1-O._x0;W-=O._x1;var a7=(O._y1-O._y0)/(D||W<0&&-0);O=(v-O._y1)/(W||D<0&&-0);return((a7<0?-1:1)+(O<0?-1:1))*Math.min(Math.abs(a7),Math.abs(O),.5*Math.abs((a7*W+O*D)/(D+W)))||0}
function wbm(O,W){var v=O._x1-O._x0;return v?(3*(O._y1-O._y0)/v-W)/2:W}
function gY$(O,W,v){var D=O._x0,a7=O._x1,Kx=O._y1,ho=(a7-D)/3;O._context.bezierCurveTo(D+ho,O._y0+ho*W,a7-ho,Kx-ho*v,a7,Kx)}
function sIQ(O){this._context=O}
function NyS(O){this._context=O}
function bH(O,W,v){this.k=O;this.x=W;this.y=v}
(function(O){O.length===1&&(O=c(O));return{left:function(W,v,D,a7){D==null&&(D=0);a7==null&&(a7=W.length);for(;D<a7;){var Kx=D+a7>>>1;O(W[Kx],v)<0?D=Kx+1:a7=Kx}return D},
right:function(W,v,D,a7){D==null&&(D=0);a7==null&&(a7=W.length);for(;D<a7;){var Kx=D+a7>>>1;O(W[Kx],v)>0?a7=Kx:D=Kx+1}return D}}})(B);
var wG8={value:function(){}};
P.prototype=x.prototype={constructor:P,on:function(O,W){var v=this._,D=Y(O+"",v),a7,Kx=-1,ho=D.length;if(arguments.length<2)for(;++Kx<ho;){var Jo;if(Jo=a7=(O=D[Kx]).type){a:{Jo=v[a7];for(var By=0,rC=Jo.length;By<rC;++By)if((a7=Jo[By]).name===O.name){a7=a7.value;break a}a7=void 0}Jo=a7}if(Jo)return a7}else{if(W!=null&&typeof W!=="function")throw Error("ye`"+W);for(;++Kx<ho;)if(a7=(O=D[Kx]).type)v[a7]=g(v[a7],O.name,W);else if(W==null)for(a7 in v)v[a7]=g(v[a7],O.name,null);return this}},
copy:function(){var O={},W=this._,v;for(v in W)O[v]=W[v].slice();return new P(O)},
call:function(O,W){if((a7=arguments.length-2)>0)for(var v=Array(a7),D=0,a7,Kx;D<a7;++D)v[D]=arguments[D+2];if(!this._.hasOwnProperty(O))throw Error("se`"+O);Kx=this._[O];D=0;for(a7=Kx.length;D<a7;++D)Kx[D].value.apply(W,v)},
apply:function(O,W,v){if(!this._.hasOwnProperty(O))throw Error("se`"+O);O=this._[O];for(var D=0,a7=O.length;D<a7;++D)O[D].value.apply(W,v)}};
var XF={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/"},Iy3=function(O){return function(){return this.matches(O)}};
if(typeof document!=="undefined"){var KD=document.documentElement;if(!KD.matches){var oci=KD.webkitMatchesSelector||KD.msMatchesSelector||KD.mozMatchesSelector||KD.oMatchesSelector;Iy3=function(O){return function(){return oci.call(this,O)}}}}var J49=Iy3;
V.prototype={constructor:V,appendChild:function(O){return this._parent.insertBefore(O,this._next)},
insertBefore:function(O,W){return this._parent.insertBefore(O,W)},
querySelector:function(O){return this._parent.querySelector(O)},
querySelectorAll:function(O){return this._parent.querySelectorAll(O)}};
var Ev0={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Ev0={mouseenter:"mouseover",mouseleave:"mouseout"}));var NQc=[null];SZ.prototype=hc.prototype={constructor:SZ,select:function(O){typeof O!=="function"&&(O=C(O));for(var W=this._groups,v=W.length,D=Array(v),a7=0;a7<v;++a7)for(var Kx=W[a7],ho=Kx.length,Jo=D[a7]=Array(ho),By,rC,cy=0;cy<ho;++cy)(By=Kx[cy])&&(rC=O.call(By,By.__data__,cy,Kx))&&("__data__"in By&&(rC.__data__=By.__data__),Jo[cy]=rC);return new SZ(D,this._parents)},
filter:function(O){typeof O!=="function"&&(O=J49(O));for(var W=this._groups,v=W.length,D=Array(v),a7=0;a7<v;++a7)for(var Kx=W[a7],ho=Kx.length,Jo=D[a7]=[],By,rC=0;rC<ho;++rC)(By=Kx[rC])&&O.call(By,By.__data__,rC,Kx)&&Jo.push(By);return new SZ(D,this._parents)},
data:function(O,W){if(!O)return ji=Array(this.size()),rC=-1,this.each(function(S$){ji[++rC]=S$}),ji;
var v=W?E:l,D=this._parents,a7=this._groups;typeof O!=="function"&&(O=N(O));for(var Kx=a7.length,ho=Array(Kx),Jo=Array(Kx),By=Array(Kx),rC=0;rC<Kx;++rC){var cy=D[rC],Xd=a7[rC],ZS=Xd.length,ji=O.call(cy,cy&&cy.__data__,rC,D),C$=ji.length,va=Jo[rC]=Array(C$),hs=ho[rC]=Array(C$);ZS=By[rC]=Array(ZS);v(cy,Xd,va,hs,ZS,ji,W);Xd=cy=0;for(var N6;cy<C$;++cy)if(ZS=va[cy]){for(cy>=Xd&&(Xd=cy+1);!(N6=hs[Xd])&&++Xd<C$;);ZS._next=N6||null}}ho=new SZ(ho,D);ho._enter=Jo;ho._exit=By;return ho},
exit:function(){return new SZ(this._exit||this._groups.map(h),this._parents)},
merge:function(O){var W=this._groups;O=O._groups;for(var v=W.length,D=Math.min(v,O.length),a7=Array(v),Kx=0;Kx<D;++Kx)for(var ho=W[Kx],Jo=O[Kx],By=ho.length,rC=a7[Kx]=Array(By),cy,Xd=0;Xd<By;++Xd)if(cy=ho[Xd]||Jo[Xd])rC[Xd]=cy;for(;Kx<v;++Kx)a7[Kx]=W[Kx];return new SZ(a7,this._parents)},
order:function(){for(var O=this._groups,W=-1,v=O.length;++W<v;)for(var D=O[W],a7=D.length-1,Kx=D[a7],ho;--a7>=0;)if(ho=D[a7])Kx&&Kx!==ho.nextSibling&&Kx.parentNode.insertBefore(ho,Kx),Kx=ho;return this},
sort:function(O){function W(Xd,ZS){return Xd&&ZS?O(Xd.__data__,ZS.__data__):!Xd-!ZS}
O||(O=S);for(var v=this._groups,D=v.length,a7=Array(D),Kx=0;Kx<D;++Kx){for(var ho=v[Kx],Jo=ho.length,By=a7[Kx]=Array(Jo),rC,cy=0;cy<Jo;++cy)if(rC=ho[cy])By[cy]=rC;By.sort(W)}return(new SZ(a7,this._parents)).order()},
call:function(){var O=arguments[0];arguments[0]=this;O.apply(null,arguments);return this},
nodes:function(){var O=Array(this.size()),W=-1;this.each(function(){O[++W]=this});
return O},
node:function(){for(var O=this._groups,W=0,v=O.length;W<v;++W)for(var D=O[W],a7=0,Kx=D.length;a7<Kx;++a7){var ho=D[a7];if(ho)return ho}return null},
size:function(){var O=0;this.each(function(){++O});
return O},
empty:function(){return!this.node()},
each:function(O){for(var W=this._groups,v=0,D=W.length;v<D;++v)for(var a7=W[v],Kx=0,ho=a7.length,Jo;Kx<ho;++Kx)(Jo=a7[Kx])&&O.call(Jo,Jo.__data__,Kx,a7);return this},
attr:function(O,W){var v=k(O);if(arguments.length<2){var D=this.node();return v.local?D.getAttributeNS(v.space,v.local):D.getAttribute(v)}return this.each((W==null?v.local?f:M:typeof W==="function"?v.local?px:e:v.local?u:Z)(v,W))},
style:function(O,W,v){return arguments.length>1?this.each((W==null?kI:typeof W==="function"?wC:Ul)(O,W,v==null?"":v)):W$(this.node(),O)},
property:function(O,W){return arguments.length>1?this.each((W==null?El:typeof W==="function"?yw:H$)(O,W)):this.node()[O]},
text:function(O){return arguments.length?this.each(O==null?r9:(typeof O==="function"?NQ:cs)(O)):this.node().textContent},
html:function(O){return arguments.length?this.each(O==null?n4:(typeof O==="function"?UF:L4)(O)):this.node().innerHTML},
append:function(O){var W=typeof O==="function"?O:d(O);return this.select(function(){return this.appendChild(W.apply(this,arguments))})},
insert:function(O,W){var v=typeof O==="function"?O:d(O),D=W==null?uX:typeof W==="function"?W:C(W);return this.select(function(){return this.insertBefore(v.apply(this,arguments),D.apply(this,arguments)||null)})},
remove:function(){return this.each(yr)},
clone:function(O){return this.select(O?XO:uz)},
datum:function(O){return arguments.length?this.property("__data__",O):this.node().__data__},
on:function(O,W,v){var D=D8(O+""),a7=D.length,Kx;if(arguments.length<2){var ho=this.node().__on;if(ho)for(var Jo=0,By=ho.length,rC;Jo<By;++Jo){var cy=0;for(rC=ho[Jo];cy<a7;++cy)if((Kx=D[cy]).type===rC.type&&Kx.name===rC.name)return rC.value}}else{ho=W?ut:VW;v==null&&(v=!1);for(cy=0;cy<a7;++cy)this.each(ho(D[cy],W,v));return this}},
dispatch:function(O,W){return this.each((typeof W==="function"?g9:An)(O,W))}};
var IZB=0;C4.prototype=function(){return new C4}.prototype={constructor:C4,
get:function(O){for(var W=this._;!(W in O);)if(!(O=O.parentNode))return;return O[W]},
set:function(O,W){return O[this._]=W},
remove:function(O){return this._ in O&&delete O[this._]},
toString:function(){return this._}};
var WZ=1/.7,JdB=/^#([0-9a-f]{3})$/,WFo=/^#([0-9a-f]{6})$/,lZc=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),EVB=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),OYr=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),oVz=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*\\)$"),
QgN=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),FFN=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*\\)$"),OgF={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};
I0(sG,sF,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
I0(cN,Jc,bz(sG,{brighter:function(O){O=O==null?WZ:Math.pow(WZ,O);return new cN(this.r*O,this.g*O,this.b*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new cN(this.r*O,this.g*O,this.b*O,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"#"+xP(this.r)+xP(this.g)+xP(this.b)},
toString:function(){var O=this.opacity;O=isNaN(O)?1:Math.max(0,Math.min(1,O));return(O===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))+(O===1?")":", "+O+")")}}));
I0(WR,JM,bz(sG,{brighter:function(O){O=O==null?WZ:Math.pow(WZ,O);return new WR(this.h,this.s,this.l*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new WR(this.h,this.s,this.l*O,this.opacity)},
rgb:function(){var O=this.h%360+(this.h<0)*360,W=this.l,v=W+(W<.5?W:1-W)*(isNaN(O)||isNaN(this.s)?0:this.s);W=2*W-v;return new cN(Qc(O>=240?O-240:O+120,W,v),Qc(O,W,v),Qc(O<120?O+240:O-120,W,v),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 ov4=Math.PI/180,vvn=180/Math.PI,F0I=4/29,w0=6/29,Q8t=3*w0*w0,vVz=w0*w0*w0;I0(T7,function(O,W,v,D){return arguments.length===1?Gk(O):new T7(O,W,v,D==null?1:D)},bz(sG,{brighter:function(O){return new T7(this.l+18*(O==null?1:O),this.a,this.b,this.opacity)},
darker:function(O){return new T7(this.l-18*(O==null?1:O),this.a,this.b,this.opacity)},
rgb:function(){var O=(this.l+16)/116,W=isNaN(this.a)?O:O+this.a/500,v=isNaN(this.b)?O:O-this.b/200;W=.96422*MY(W);O=1*MY(O);v=.82521*MY(v);return new cN(jZ(3.1338561*W-1.6168667*O-.4906146*v),jZ(-.9787684*W+1.9161415*O+.033454*v),jZ(.0719453*W-.2289914*O+1.4052427*v),this.opacity)}}));
I0(d9,KA,bz(sG,{brighter:function(O){return new d9(this.h,this.c,this.l+18*(O==null?1:O),this.opacity)},
darker:function(O){return new d9(this.h,this.c,this.l-18*(O==null?1:O),this.opacity)},
rgb:function(){return Gk(this).rgb()}}));
var z34=1.78277*-.29227-.1347134789;I0(mo,K4,bz(sG,{brighter:function(O){O=O==null?WZ:Math.pow(WZ,O);return new mo(this.h,this.s,this.l*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new mo(this.h,this.s,this.l*O,this.opacity)},
rgb:function(){var O=isNaN(this.h)?0:(this.h+120)*ov4,W=+this.l,v=isNaN(this.s)?0:this.s*W*(1-W),D=Math.cos(O);O=Math.sin(O);return new cN(255*(W+v*(-.14861*D+1.78277*O)),255*(W+v*(-.29227*D+-.90649*O)),255*(W+1.97294*D*v),this.opacity)}}));
var L0n=function v(W){function D(Kx,ho){var Jo=a7((Kx=Jc(Kx)).r,(ho=Jc(ho)).r),By=a7(Kx.g,ho.g),rC=a7(Kx.b,ho.b),cy=Zt(Kx.opacity,ho.opacity);return function(Xd){Kx.r=Jo(Xd);Kx.g=By(Xd);Kx.b=rC(Xd);Kx.opacity=cy(Xd);return Kx+""}}
var a7=mX(W);D.gamma=v;return D}(1),ORi=iR(function(W){var v=W.length-1;
return function(D){var a7=D<=0?D=0:D>=1?(D=1,v-1):Math.floor(D*v),Kx=W[a7],ho=W[a7+1];return jJ((D-a7/v)*v,a7>0?W[a7-1]:2*Kx-ho,Kx,ho,a7<v-1?W[a7+2]:2*ho-Kx)}});
iR(function(W){var v=W.length;return function(D){var a7=Math.floor(((D%=1)<0?++D:D)*v);return jJ((D-a7/v)*v,W[(a7+v-1)%v],W[a7%v],W[(a7+1)%v],W[(a7+2)%v])}});
var MEl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L0o=new RegExp(MEl.source,"g"),S5F=180/Math.PI,pbQ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},jh,kVO,Wa3,wRQ,QZ6=BF(function(W){if(W==="none")return pbQ;jh||(jh=document.createElement("DIV"),kVO=document.documentElement,Wa3=document.defaultView);jh.style.transform=W;W=Wa3.getComputedStyle(kVO.appendChild(jh),null).getPropertyValue("transform");kVO.removeChild(jh);W=W.slice(7,-1).split(",");return eT(+W[0],+W[1],+W[2],+W[3],
+W[4],+W[5])},"px, ","px)","deg)"),Fs6=BF(function(W){if(W==null)return pbQ;
wRQ||(wRQ=document.createElementNS("http://www.w3.org/2000/svg","g"));wRQ.setAttribute("transform",W);if(!(W=wRQ.transform.baseVal.consolidate()))return pbQ;W=W.matrix;return eT(W.a,W.b,W.c,W.d,W.e,W.f)},", ",")",")");
U0(Fe);U0(Zt);JE(Fe);JE(Zt);Wi(Fe);var XbO=Wi(Zt),NU=0,aM=0,sj=0,UOo,gg,jOo=0,kT=0,K_I=0,YZ=typeof performance==="object"&&performance.now?performance:Date,yU5=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};
zA.prototype=Yh.prototype={constructor:zA,restart:function(W,v,D){if(typeof W!=="function")throw new TypeError("ze");D=(D==null?vC():+D)+(v==null?0:+v);this._next||gg===this||(gg?gg._next=this:UOo=this,gg=this);this._call=W;this._time=D;gN()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,gN())}};
var SZF=x("start","end","interrupt"),ydB=[],vco=hc.prototype.constructor,lyF=0,l_=hc.prototype;Ky.prototype=function(W){return hc().transition(W)}.prototype={constructor:Ky,
select:function(W){var v=this._name,D=this._id;typeof W!=="function"&&(W=C(W));for(var a7=this._groups,Kx=a7.length,ho=Array(Kx),Jo=0;Jo<Kx;++Jo)for(var By=a7[Jo],rC=By.length,cy=ho[Jo]=Array(rC),Xd,ZS,ji=0;ji<rC;++ji)(Xd=By[ji])&&(ZS=W.call(Xd,Xd.__data__,ji,By))&&("__data__"in Xd&&(ZS.__data__=Xd.__data__),cy[ji]=ZS,ZgQ(cy[ji],v,D,ji,cy,BB(Xd,D)));return new Ky(ho,this._parents,v,D)},
filter:function(W){typeof W!=="function"&&(W=J49(W));for(var v=this._groups,D=v.length,a7=Array(D),Kx=0;Kx<D;++Kx)for(var ho=v[Kx],Jo=ho.length,By=a7[Kx]=[],rC,cy=0;cy<Jo;++cy)(rC=ho[cy])&&W.call(rC,rC.__data__,cy,ho)&&By.push(rC);return new Ky(a7,this._parents,this._name,this._id)},
merge:function(W){if(W._id!==this._id)throw Error();var v=this._groups;W=W._groups;for(var D=v.length,a7=Math.min(D,W.length),Kx=Array(D),ho=0;ho<a7;++ho)for(var Jo=v[ho],By=W[ho],rC=Jo.length,cy=Kx[ho]=Array(rC),Xd,ZS=0;ZS<rC;++ZS)if(Xd=Jo[ZS]||By[ZS])cy[ZS]=Xd;for(;ho<D;++ho)Kx[ho]=v[ho];return new Ky(Kx,this._parents,this._name,this._id)},
selection:function(){return new vco(this._groups,this._parents)},
transition:function(){for(var W=this._name,v=this._id,D=++lyF,a7=this._groups,Kx=a7.length,ho=0;ho<Kx;++ho)for(var Jo=a7[ho],By=Jo.length,rC,cy=0;cy<By;++cy)if(rC=Jo[cy]){var Xd=BB(rC,v);ZgQ(rC,W,D,cy,Jo,{time:Xd.time+Xd.delay+Xd.duration,delay:0,duration:Xd.duration,ease:Xd.ease})}return new Ky(a7,this._parents,W,D)},
call:l_.call,nodes:l_.nodes,node:l_.node,size:l_.size,empty:l_.empty,each:l_.each,on:function(W,v){var D=this._id;return arguments.length<2?BB(this.node(),D).on.on(W):this.each(PLl(D,W,v))},
attr:function(W,v){var D=k(W),a7=D==="transform"?Fs6:ME3;return this.attrTween(W,typeof v==="function"?(D.local?Adi:iYs)(D,a7,fEq(this,"attr."+W,v)):v==null?(D.local?ZYy:LFN)(D):(D.local?fZB:HYz)(D,a7,v+""))},
attrTween:function(W,v){var D="attr."+W;if(arguments.length<2)return(D=this.tween(D))&&D._value;if(v==null)return this.tween(D,null);if(typeof v!=="function")throw Error();var a7=k(W);return this.tween(D,(a7.local?u8B:Dyc)(a7,v))},
style:function(W,v,D){var a7=W==="transform"?QZ6:ME3;return v==null?this.styleTween(W,aDi(W,a7)).on("end.style."+W,g7z(W)):this.styleTween(W,typeof v==="function"?pJB(W,a7,fEq(this,"style."+W,v)):sfz(W,a7,v+""),D)},
styleTween:function(W,v,D){var a7="style."+W;if(arguments.length<2)return(a7=this.tween(a7))&&a7._value;if(v==null)return this.tween(a7,null);if(typeof v!=="function")throw Error();return this.tween(a7,k1c(W,v,D==null?"":D))},
text:function(W){return this.tween("text",typeof W==="function"?$wr(fEq(this,"text",W)):XJc(W==null?"":W+""))},
remove:function(){return this.on("end.remove",YYl(this._id))},
tween:function(W,v){var D=this._id;if(arguments.length<2){D=BB(this.node(),D).tween;for(var a7=0,Kx=D.length,ho;a7<Kx;++a7)if((ho=D[a7]).name===W)return ho.value;return null}return this.each((v==null?GoS:M2o)(D,W,v))},
delay:function(W){var v=this._id;return arguments.length?this.each((typeof W==="function"?rdl:RFS)(v,W)):BB(this.node(),v).delay},
duration:function(W){var v=this._id;return arguments.length?this.each((typeof W==="function"?eFi:BpA)(v,W)):BB(this.node(),v).duration},
ease:function(W){var v=this._id;return arguments.length?this.each(ceB(v,W)):BB(this.node(),v).ease}};
var $k7={time:null,delay:0,duration:250,ease:function(W){return((W*=2)<=1?W*W*W:(W-=2)*W*W+2)/2}};
hc.prototype.transition=function(W){var v;if(W instanceof Ky){var D=W._id;W=W._name}else D=++lyF,(v=$k7).time=vC(),W=W==null?null:W+"";for(var a7=this._groups,Kx=a7.length,ho=0;ho<Kx;++ho)for(var Jo=a7[ho],By=Jo.length,rC,cy=0;cy<By;++cy)if(rC=Jo[cy]){var Xd=rC,ZS=W,ji=D,C$=cy,va=Jo,hs;if(!(hs=v))a:{hs=void 0;for(var N6=D;!(hs=rC.__transition)||!(hs=hs[N6]);)if(!(rC=rC.parentNode)){hs=($k7.time=vC(),$k7);break a}}ZgQ(Xd,ZS,ji,C$,va,hs)}return new Ky(a7,this._parents,W,D)};
["e","w"].map(igx);["n","s"].map(igx);"n e s w nw ne se sw".split(" ").map(igx);AUI.prototype=function(){return new AUI}.prototype={constructor:AUI,
moveTo:function(W,v){this._+="M"+(this._x0=this._x1=+W)+","+(this._y0=this._y1=+v)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(W,v){this._+="L"+(this._x1=+W)+","+(this._y1=+v)},
bezierCurveTo:function(W,v,D,a7,Kx,ho){this._+="C"+ +W+","+ +v+","+ +D+","+ +a7+","+(this._x1=+Kx)+","+(this._y1=+ho)},
rect:function(W,v,D,a7){this._+="M"+(this._x0=this._x1=+W)+","+(this._y0=this._y1=+v)+"h"+ +D+"v"+ +a7+"h"+-D+"Z"},
toString:function(){return this._}};
dOw.prototype=ZgI.prototype={constructor:dOw,has:function(W){return" "+W in this},
get:function(W){return this[" "+W]},
set:function(W,v){this[" "+W]=v;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=[],v;for(v in this)v[0]===" "&&W.push(v.slice(1));return W},
values:function(){var W=[],v;for(v in this)v[0]===" "&&W.push(this[v]);return W},
entries:function(){var W=[],v;for(v in this)v[0]===" "&&W.push({key:v.slice(1),value:this[v]});return W},
size:function(){var W=0,v;for(v in this)v[0]===" "&&++W;return W},
empty:function(){for(var W in this)if(W[0]===" ")return!1;return!0},
each:function(W){for(var v in this)v[0]===" "&&W(this[v],v.slice(1),this)}};
var bc=ZgI.prototype;qxO.prototype=function(W,v){var D=new qxO;if(W instanceof qxO)W.each(function(ho){D.add(ho)});
else if(W){var a7=-1,Kx=W.length;if(v==null)for(;++a7<Kx;)D.add(W[a7]);else for(;++a7<Kx;)D.add(v(W[a7],a7,W))}return D}.prototype={constructor:qxO,
has:bc.has,add:function(W){this[" "+W]=W;return this},
remove:bc.remove,clear:bc.clear,values:bc.keys,size:bc.size,empty:bc.empty,each:bc.each};var ig4={},uyY={},zcS=fEm(",").parse,SV8=fEm("\t").parse;AUF(zcS);AUF(SV8);var Ui=function(W,v,D){v=new Dld(v==null?jfF:v,D==null?UwB:D,NaN,NaN,NaN,NaN);return W==null?v:v.addAll(W)}.prototype=Dld.prototype;
Ui.copy=function(){var W=new Dld(this._x,this._y,this._x0,this._y0,this._x1,this._y1),v=this._root,D,a7;if(!v)return W;if(!v.length)return W._root=DlZ(v),W;for(D=[{source:v,target:W._root=Array(4)}];v=D.pop();)for(var Kx=0;Kx<4;++Kx)if(a7=v.source[Kx])a7.length?D.push({source:a7,target:v.target[Kx]=Array(4)}):v.target[Kx]=DlZ(a7);return W};
Ui.add=function(W){var v=+this._x.call(null,W),D=+this._y.call(null,W);return uyQ(this.cover(v,D),v,D,W)};
Ui.addAll=function(W){var v,D,a7=W.length,Kx,ho,Jo=Array(a7),By=Array(a7),rC=Infinity,cy=Infinity,Xd=-Infinity,ZS=-Infinity;for(D=0;D<a7;++D)isNaN(Kx=+this._x.call(null,v=W[D]))||isNaN(ho=+this._y.call(null,v))||(Jo[D]=Kx,By[D]=ho,Kx<rC&&(rC=Kx),Kx>Xd&&(Xd=Kx),ho<cy&&(cy=ho),ho>ZS&&(ZS=ho));Xd<rC&&(rC=this._x0,Xd=this._x1);ZS<cy&&(cy=this._y0,ZS=this._y1);this.cover(rC,cy).cover(Xd,ZS);for(D=0;D<a7;++D)uyQ(this,Jo[D],By[D],W[D]);return this};
Ui.cover=function(W,v){if(isNaN(W=+W)||isNaN(v=+v))return this;var D=this._x0,a7=this._y0,Kx=this._x1,ho=this._y1;if(isNaN(D))Kx=(D=Math.floor(W))+1,ho=(a7=Math.floor(v))+1;else if(D>W||W>Kx||a7>v||v>ho){var Jo=Kx-D,By=this._root,rC;switch(rC=(v<(a7+ho)/2)<<1|W<(D+Kx)/2){case 0:do{var cy=Array(4);cy[rC]=By;By=cy}while(Jo*=2,Kx=D+Jo,ho=a7+Jo,W>Kx||v>ho);break;case 1:do cy=Array(4),cy[rC]=By,By=cy;while(Jo*=2,D=Kx-Jo,ho=a7+Jo,D>W||v>ho);break;case 2:do cy=Array(4),cy[rC]=By,By=cy;while(Jo*=2,Kx=D+Jo,
a7=ho-Jo,W>Kx||a7>v);break;case 3:do cy=Array(4),cy[rC]=By,By=cy;while(Jo*=2,D=Kx-Jo,a7=ho-Jo,D>W||a7>v)}this._root&&this._root.length&&(this._root=By)}else return this;this._x0=D;this._y0=a7;this._x1=Kx;this._y1=ho;return this};
Ui.data=function(){var W=[];this.visit(function(v){if(!v.length){do W.push(v.data);while(v=v.next)}});
return W};
Ui.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]]};
Ui.find=function(W,v,D){var a7=this._x0,Kx=this._y0,ho,Jo,By,rC,cy=this._x1,Xd=this._y1,ZS=[],ji=this._root,C$;ji&&ZS.push(new jF(ji,a7,Kx,cy,Xd));D==null?D=Infinity:(a7=W-D,Kx=v-D,cy=W+D,Xd=v+D,D*=D);for(;C$=ZS.pop();)if(!(!(ji=C$.node)||(ho=C$.x0)>cy||(Jo=C$.y0)>Xd||(By=C$.x1)<a7||(rC=C$.y1)<Kx))if(ji.length){C$=(ho+By)/2;var va=(Jo+rC)/2;ZS.push(new jF(ji[3],C$,va,By,rC),new jF(ji[2],ho,va,C$,rC),new jF(ji[1],C$,Jo,By,va),new jF(ji[0],ho,Jo,C$,va));if(ji=(v>=va)<<1|W>=C$)C$=ZS[ZS.length-1],ZS[ZS.length-
1]=ZS[ZS.length-1-ji],ZS[ZS.length-1-ji]=C$}else if(C$=W-+this._x.call(null,ji.data),va=v-+this._y.call(null,ji.data),C$=C$*C$+va*va,C$<D){var hs=Math.sqrt(D=C$);a7=W-hs;Kx=v-hs;cy=W+hs;Xd=v+hs;hs=ji.data}return hs};
Ui.remove=function(W){if(isNaN(rC=+this._x.call(null,W))||isNaN(cy=+this._y.call(null,W)))return this;var v,D=this._root,a7,Kx=this._x0,ho=this._y0,Jo=this._x1,By=this._y1,rC,cy,Xd,ZS,ji,C$,va;if(!D)return this;if(D.length)for(;;){(ji=rC>=(Xd=(Kx+Jo)/2))?Kx=Xd:Jo=Xd;(C$=cy>=(ZS=(ho+By)/2))?ho=ZS:By=ZS;if(!(v=D,D=D[va=C$<<1|ji]))return this;if(!D.length)break;if(v[va+1&3]||v[va+2&3]||v[va+3&3]){var hs=v;var N6=va}}for(;D.data!==W;)if(!(a7=D,D=D.next))return this;(W=D.next)&&delete D.next;if(a7)return W?
a7.next=W:delete a7.next,this;if(!v)return this._root=W,this;W?v[va]=W:delete v[va];(D=v[0]||v[1]||v[2]||v[3])&&D===(v[3]||v[2]||v[1]||v[0])&&!D.length&&(hs?hs[N6]=D:this._root=D);return this};
Ui.removeAll=function(W){for(var v=0,D=W.length;v<D;++v)this.remove(W[v]);return this};
Ui.root=function(){return this._root};
Ui.size=function(){var W=0;this.visit(function(v){if(!v.length){do++W;while(v=v.next)}});
return W};
Ui.visit=function(W){var v=[],D,a7=this._root,Kx,ho,Jo,By,rC;for(a7&&v.push(new jF(a7,this._x0,this._y0,this._x1,this._y1));D=v.pop();)if(!W(a7=D.node,ho=D.x0,Jo=D.y0,By=D.x1,rC=D.y1)&&a7.length){D=(ho+By)/2;var cy=(Jo+rC)/2;(Kx=a7[3])&&v.push(new jF(Kx,D,cy,By,rC));(Kx=a7[2])&&v.push(new jF(Kx,ho,cy,D,rC));(Kx=a7[1])&&v.push(new jF(Kx,D,Jo,By,cy));(Kx=a7[0])&&v.push(new jF(Kx,ho,Jo,D,cy))}};
Ui.visitAfter=function(W){var v=[],D=[],a7;for(this._root&&v.push(new jF(this._root,this._x0,this._y0,this._x1,this._y1));a7=v.pop();){var Kx=a7.node;if(Kx.length){var ho,Jo=a7.x0,By=a7.y0,rC=a7.x1,cy=a7.y1,Xd=(Jo+rC)/2,ZS=(By+cy)/2;(ho=Kx[0])&&v.push(new jF(ho,Jo,By,Xd,ZS));(ho=Kx[1])&&v.push(new jF(ho,Xd,By,rC,ZS));(ho=Kx[2])&&v.push(new jF(ho,Jo,ZS,Xd,cy));(ho=Kx[3])&&v.push(new jF(ho,Xd,ZS,rC,cy))}D.push(a7)}for(;a7=D.pop();)W(a7.node,a7.x0,a7.y0,a7.x1,a7.y1);return this};
Ui.x=function(W){return arguments.length?(this._x=W,this):this._x};
Ui.y=function(W){return arguments.length?(this._y=W,this):this._y};
var hWB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;rUX.prototype=R37.prototype;R37.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 Byn,c4Z={"%":function(W,v){return(W*100).toFixed(v)},
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,v){return W.toExponential(v)},
f:function(W,v){return W.toFixed(v)},
g:function(W,v){return W.toPrecision(v)},
o:function(W){return Math.round(W).toString(8)},
p:function(W,v){return rUt(W*100,v)},
r:rUt,s:function(W,v){var D=CPl(W,v);if(!D)return W+"";var a7=D[0];D=D[1];D=D-(Byn=Math.max(-8,Math.min(8,Math.floor(D/3)))*3)+1;var Kx=a7.length;return D===Kx?a7:D>Kx?a7+Array(D-Kx+1).join("0"):D>0?a7.slice(0,D)+"."+a7.slice(D):"0."+Array(1-D).join("0")+CPl(W,Math.max(0,v+D-1))[0]},
X:function(W){return Math.round(W).toString(16).toUpperCase()},
x:function(W){return Math.round(W).toString(16)}},e39="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),yBr;
(function(W){return yBr=mwl(W)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});DO.prototype={constructor:DO,reset:function(){this.s=this.t=0},
add:function(W){xk4(Nb7,W,this.t);xk4(this,Nb7.s,this.s);this.s?this.t+=Nb7.t:this.s=Nb7.t},
valueOf:function(){return this.s}};
var Nb7=new DO,nE=Math.PI,$E=nE/2,EYS=nE/4,GiS=nE*2,nY7=nE/180,jq=Math.abs,bdw=Math.atan,pbI=Math.atan2,n2=Math.cos,rj=Math.sin,mOx=Math.sqrt;new DO;new DO;new DO;var KaI=new DO;(function(W,v,D,a7){return function(Kx){function ho(y_,by){W(y_,by)&&Kx.point(y_,by)}
function Jo(y_,by){ji.point(y_,by)}
function By(){hW.point=Jo;ji.lineStart()}
function rC(){hW.point=ho;ji.lineEnd()}
function cy(y_,by){Rs.push([y_,by]);va.point(y_,by)}
function Xd(){va.lineStart();Rs=[]}
function ZS(){cy(Rs[0][0],Rs[0][1]);va.lineEnd();var y_=va.clean(),by=C$.result(),im=by.length,ip;Rs.pop();N6.push(Rs);Rs=null;if(im)if(y_&1){if(im=by[0],(by=im.length-1)>0){hs||(Kx.polygonStart(),hs=!0);Kx.lineStart();for(y_=0;y_<by;++y_)Kx.point((ip=im[y_])[0],ip[1]);Kx.lineEnd()}}else im>1&&y_&2&&by.push(by.pop().concat(by.shift())),S$.push(by.filter(wJz))}
var ji=v(Kx),C$=V1i(),va=v(C$),hs=!1,N6,S$,Rs,hW={point:ho,lineStart:By,lineEnd:rC,polygonStart:function(){hW.point=cy;hW.lineStart=Xd;hW.lineEnd=ZS;S$=[];N6=[]},
polygonEnd:function(){hW.point=ho;hW.lineStart=By;hW.lineEnd=rC;var y_=S$,by=y_.length;var im=-1;for(var ip=0,Ws,bm;++im<by;)ip+=y_[im].length;for(Ws=Array(ip);--by>=0;)for(bm=y_[by],im=bm.length;--im>=0;)Ws[--ip]=bm[im];S$=Ws;y_=N6;by=a7[0];ip=a7[1];var gt=rj(ip);im=[rj(by),-n2(by),0];bm=Ws=0;KaI.reset();gt===1?ip=$E+1E-6:gt===-1&&(ip=-$E-1E-6);gt=0;for(var qN=y_.length;gt<qN;++gt)if($4=(FS=y_[gt]).length){var FS,$4,Ix=FS[$4-1],c5=Ix[0],v6=Ix[1]/2+EYS,Ico=rj(v6),OdS=n2(v6);for(v6=0;v6<$4;++v6,c5=
jIw,Ico=oYI,OdS=Uj,Ix=JMI){var JMI=FS[v6],jIw=JMI[0];Uj=JMI[1]/2+EYS;var oYI=rj(Uj),Uj=n2(Uj),Ea=jIw-c5,UkC=Ea>=0?1:-1,dkx=UkC*Ea,W_7=dkx>nE;Ico*=oYI;KaI.add(pbI(Ico*UkC*rj(dkx),OdS*Uj+Ico*n2(dkx)));Ws+=W_7?Ea+UkC*GiS:Ea;W_7^c5>=by^jIw>=by&&(Ix=YcS(PiS(Ix),PiS(JMI)),ayy(Ix),c5=YcS(im,Ix),ayy(c5),c5=(W_7^Ea>=0?-1:1)*hzw(c5[2]),ip>c5||ip===c5&&(Ix[0]||Ix[1]))&&(bm+=W_7^Ea>=0?1:-1)}}y_=(Ws<-1E-6||Ws<1E-6&&KaI<-1E-6)^bm&1;S$.length?(hs||(Kx.polygonStart(),hs=!0),t1i(S$,Npr,y_,D,Kx)):y_&&(hs||(Kx.polygonStart(),
hs=!0),Kx.lineStart(),D(null,null,1,Kx),Kx.lineEnd());hs&&(Kx.polygonEnd(),hs=!1);S$=N6=null},
sphere:function(){Kx.polygonStart();Kx.lineStart();D(null,null,1,Kx);Kx.lineEnd();Kx.polygonEnd()}};
return hW}})(function(){return!0},function(W){var v=NaN,D=NaN,a7=NaN,Kx;
return{lineStart:function(){W.lineStart();Kx=1},
point:function(ho,Jo){var By=ho>0?nE:-nE,rC=jq(ho-v);if(jq(rC-nE)<1E-6)W.point(v,D=(D+Jo)/2>0?$E:-$E),W.point(a7,D),W.lineEnd(),W.lineStart(),W.point(By,D),W.point(ho,D),Kx=0;else if(a7!==By&&rC>=nE){jq(v-a7)<1E-6&&(v-=a7*1E-6);jq(ho-By)<1E-6&&(ho-=By*1E-6);rC=v;var cy=D,Xd=ho,ZS,ji,C$=rj(rC-Xd);D=jq(C$)>1E-6?bdw((rj(cy)*(ji=n2(Jo))*rj(Xd)-rj(Jo)*(ZS=n2(cy))*rj(rC))/(ZS*ji*C$)):(cy+Jo)/2;W.point(a7,D);W.lineEnd();W.lineStart();W.point(By,D);Kx=0}W.point(v=ho,D=Jo);a7=By},
lineEnd:function(){W.lineEnd();v=D=NaN},
clean:function(){return 2-Kx}}},function(W,v,D,a7){W==null?(D*=$E,a7.point(-nE,D),a7.point(0,D),a7.point(nE,D),a7.point(nE,0),a7.point(nE,-D),a7.point(0,-D),a7.point(-nE,-D),a7.point(-nE,0),a7.point(-nE,D)):jq(W[0]-v[0])>1E-6?(W=W[0]<v[0]?nE:-nE,D=D*W/2,a7.point(-W,D),a7.point(0,D),a7.point(W,D)):a7.point(v[0],v[1])},[-nE,
-$E]);new DO;new DO;new DO;new DO;e3C.prototype={constructor:e3C,point:function(W,v){this.stream.point(W,v)},
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()}};
n2(30*nY7);(function(W){return function(v){var D=new e3C,a7;for(a7 in W)D[a7]=W[a7];D.stream=v;return D}})({point:function(W,v){this.stream.point(W*nY7,v*nY7)}});
sII(function(W){return mOx(2/(1+W))}).invert=pD(function(W){return 2*hzw(W/2)});
sII(function(W){return(W=W>1?0:W<-1?nE:Math.acos(W))&&W/rj(W)}).invert=pD(function(W){return W});
mOx(3);pD(bdw);pD(hzw);pD(function(W){return 2*bdw(W)});
kZ.prototype=kVd.prototype={constructor:kZ,count:function(){return this.eachAfter(ID6)},
each:function(W){var v,D=[this],a7;do{var Kx=D.reverse();for(D=[];v=Kx.pop();)if(W(v),v=v.children){var ho=0;for(a7=v.length;ho<a7;++ho)D.push(v[ho])}}while(D.length);return this},
eachAfter:function(W){for(var v,D=[this],a7=[],Kx,ho;v=D.pop();)if(a7.push(v),v=v.children)for(Kx=0,ho=v.length;Kx<ho;++Kx)D.push(v[Kx]);for(;v=a7.pop();)W(v);return this},
eachBefore:function(W){for(var v,D=[this],a7;v=D.pop();)if(W(v),v=v.children)for(a7=v.length-1;a7>=0;--a7)D.push(v[a7]);return this},
sum:function(W){return this.eachAfter(function(v){for(var D=+W(v.data)||0,a7=v.children,Kx=a7&&a7.length;--Kx>=0;)D+=a7[Kx].value;v.value=D})},
sort:function(W){return this.eachBefore(function(v){v.children&&v.children.sort(W)})},
path:function(W){var v=this;var D=v;var a7=W;if(D!==a7){var Kx=D.ancestors(),ho=a7.ancestors(),Jo=null;D=Kx.pop();for(a7=ho.pop();D===a7;)Jo=D,D=Kx.pop(),a7=ho.pop();D=Jo}for(a7=[v];v!==D;)v=v.parent,a7.push(v);for(v=a7.length;W!==D;)a7.splice(v,0,W),W=W.parent;return a7},
ancestors:function(){for(var W=this,v=[W];W=W.parent;)v.push(W);return v},
links:function(){var W=this,v=[];W.each(function(D){D!==W&&v.push({source:D.parent,target:D})});
return v},
copy:function(){return kVd(this).eachBefore(lDz)}};
(function(W,v){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=v}).prototype=Object.create(kZ.prototype);
var Byo=new Date,c4d=new Date,QIm=HX(function(){},function(W,v){W.setTime(+W+v)},function(W,v){return v-W});
QIm.every=function(W){W=Math.floor(W);return isFinite(W)&&W>0?W>1?HX(function(v){v.setTime(Math.floor(v/W)*W)},function(v,D){v.setTime(+v+D*W)},function(v,D){return(D-v)/W}):QIm:null};
HX(function(W){W.setTime(Math.floor(W/1E3)*1E3)},function(W,v){W.setTime(+W+v*1E3)},function(W,v){return(v-W)/1E3},function(W){return W.getUTCSeconds()});
HX(function(W){W.setTime(Math.floor(W/6E4)*6E4)},function(W,v){W.setTime(+W+v*6E4)},function(W,v){return(v-W)/6E4},function(W){return W.getMinutes()});
HX(function(W){var v=W.getTimezoneOffset()*6E4%36E5;v<0&&(v+=36E5);W.setTime(Math.floor((+W-v)/36E5)*36E5+v)},function(W,v){W.setTime(+W+v*36E5)},function(W,v){return(v-W)/36E5},function(W){return W.getHours()});
var nY0=HX(function(W){W.setHours(0,0,0,0)},function(W,v){W.setDate(W.getDate()+v)},function(W,v){return(v-W-(v.getTimezoneOffset()-W.getTimezoneOffset())*6E4)/864E5},function(W){return W.getDate()-1}),lu8=$T(0),PiA=$T(1);
$T(2);$T(3);var YcA=$T(4);$T(5);$T(6);HX(function(W){W.setDate(1);W.setHours(0,0,0,0)},function(W,v){W.setMonth(W.getMonth()+v)},function(W,v){return v.getMonth()-W.getMonth()+(v.getFullYear()-W.getFullYear())*12},function(W){return W.getMonth()});
var IY=HX(function(W){W.setMonth(0,1);W.setHours(0,0,0,0)},function(W,v){W.setFullYear(W.getFullYear()+v)},function(W,v){return v.getFullYear()-W.getFullYear()},function(W){return W.getFullYear()});
IY.every=function(W){return isFinite(W=Math.floor(W))&&W>0?HX(function(v){v.setFullYear(Math.floor(v.getFullYear()/W)*W);v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,D){v.setFullYear(v.getFullYear()+D*W)}):null};
HX(function(W){W.setUTCSeconds(0,0)},function(W,v){W.setTime(+W+v*6E4)},function(W,v){return(v-W)/6E4},function(W){return W.getUTCMinutes()});
HX(function(W){W.setUTCMinutes(0,0,0)},function(W,v){W.setTime(+W+v*36E5)},function(W,v){return(v-W)/36E5},function(W){return W.getUTCHours()});
var $k5=HX(function(W){W.setUTCHours(0,0,0,0)},function(W,v){W.setUTCDate(W.getUTCDate()+v)},function(W,v){return(v-W)/864E5},function(W){return W.getUTCDate()-1}),EcS=nb(0),xkx=nb(1);
nb(2);nb(3);var ay$=nb(4);nb(5);nb(6);HX(function(W){W.setUTCDate(1);W.setUTCHours(0,0,0,0)},function(W,v){W.setUTCMonth(W.getUTCMonth()+v)},function(W,v){return v.getUTCMonth()-W.getUTCMonth()+(v.getUTCFullYear()-W.getUTCFullYear())*12},function(W){return W.getUTCMonth()});
var Jt=HX(function(W){W.setUTCMonth(0,1);W.setUTCHours(0,0,0,0)},function(W,v){W.setUTCFullYear(W.getUTCFullYear()+v)},function(W,v){return v.getUTCFullYear()-W.getUTCFullYear()},function(W){return W.getUTCFullYear()});
Jt.every=function(W){return isFinite(W=Math.floor(W))&&W>0?HX(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/W)*W);v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,D){v.setUTCFullYear(v.getUTCFullYear()+D*W)}):null};
var Xbd={"-":"",_:" ",0:"0"},eW=/^\s*\d+/,Wso=/^%/,JBA=/[\\^$*+?|[\]().{}]/g,lcC;(function(W){lcC=O9r(W);RL4=lcC.utcFormat;eLd=lcC.utcParse;return lcC})({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||RL4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||eLd("%Y-%m-%dT%H:%M:%S.%LZ");sI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
sI("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");sI("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");sI("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");sI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");sI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");sI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
sI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");sI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");sI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");sI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");sI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MQF=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(sI);vR(MQF);var Ls6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(sI);vR(Ls6);var ZRz=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(sI);vR(ZRz);var HRl=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(sI);
vR(HRl);var fuz=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(sI);vR(fuz);var iRs=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(sI);vR(iRs);var ABB=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(sI);vR(ABB);var uLz=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(sI);vR(uLz);var Dfo=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(sI);vR(Dfo);var rBl=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(sI);vR(rBl);var Rcc=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(sI);vR(Rcc);var ecr=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(sI);vR(ecr);var BBA=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(sI);vR(BBA);var cr6=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(sI);vR(cr6);var xXy=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(sI);vR(xXy);var PMr=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(sI);vR(PMr);var YNs=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(sI);vR(YNs);var a0F=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(sI);vR(a0F);var gfs=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(sI);vR(gfs);var szo=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(sI);vR(szo);var p_l=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(sI);vR(p_l);var k4z=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(sI);vR(k4z);var X_o=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(sI);vR(X_o);var $X8=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(sI);vR($X8);var nfz=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(sI);vR(nfz);var bOy=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(sI);vR(bOy);var Ktz=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(sI);vR(Ktz);XbO(K4(300,.5,0),K4(-240,.5,1));XbO(K4(-100,.75,.35),K4(80,1.5,.8));XbO(K4(260,.75,.35),K4(80,1.5,.8));K4();Jc();twQ(sI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
twQ(sI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
twQ(sI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
twQ(sI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Ty3.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,v){W=+W;v=+v;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(W,v):this._context.moveTo(W,v);break;case 1:this._point=2;default:this._context.lineTo(W,v)}}};
(function(W){function v(D){return new VgQ(W(D))}
v._curve=W;return v})(function(W){return new Ty3(W)});
VgQ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(W,v){this._curve.point(v*Math.sin(W),v*-Math.cos(W))}};
sIQ.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:gY$(this,this._t0,wbm(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(W,v){var D=NaN;W=+W;v=+v;if(W!==this._x1||v!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(W,v):this._context.moveTo(W,v);break;case 1:this._point=2;break;case 2:this._point=3;gY$(this,wbm(this,D=tgd(this,W,v)),D);break;default:gY$(this,this._t0,D=tgd(this,W,v))}this._x0=this._x1;this._x1=W;this._y0=this._y1;this._y1=v;this._t0=D}}};
(function(W){this._context=new NyS(W)}.prototype=Object.create(sIQ.prototype)).point=function(W,v){sIQ.prototype.point.call(this,v,W)};
NyS.prototype={moveTo:function(W,v){this._context.moveTo(v,W)},
closePath:function(){this._context.closePath()},
lineTo:function(W,v){this._context.lineTo(v,W)},
bezierCurveTo:function(W,v,D,a7,Kx,ho){this._context.bezierCurveTo(v,W,a7,D,ho,Kx)}};
bH.prototype={constructor:bH,scale:function(W){return W===1?this:new bH(this.k*W,this.x,this.y)},
translate:function(W,v){return W===0&v===0?this:new bH(this.k,this.x+this.k*W,this.y+this.k*v)},
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 bH(1,0,0);gsq=sF;XF.svg=XF.svg;XF.xhtml=XF.xhtml;XF.xlink=XF.xlink;XF.xml=XF.xml;XF.xmlns=XF.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 BX4="hammer_"+(Math.random()*1E6|0),cX0=function(){var B=document||document;if(!B[BX4]){var c=function(){(function(x,P,Y,g){function k(T7,FO,MY){return setTimeout(h(T7,MY),FO)}
function n(T7,FO,MY){return Array.isArray(T7)?(b(T7,MY[FO],MY),!0):!1}
function b(T7,FO,MY){var jZ;if(T7)if(T7.forEach)T7.forEach(FO,MY);else if(T7.length!==g){var gl=0;for(jZ=T7.length;gl<jZ;gl++)FO.call(MY,T7[gl],gl,T7)}else for(gl in T7)T7.hasOwnProperty(gl)&&FO.call(MY,T7[gl],gl,T7)}
function d(T7,FO,MY){for(var jZ=Object.keys(FO),gl=0,lm=jZ.length;gl<lm;gl++)if(!MY||MY&&T7[jZ[gl]]===g)T7[jZ[gl]]=FO[jZ[gl]];return T7}
function q(T7,FO){return d(T7,FO,!0)}
function C(T7,FO,MY){FO=FO.prototype;var jZ=T7.prototype=Object.create(FO);jZ.constructor=T7;jZ._super=FO;MY&&d(jZ,MY)}
function h(T7,FO){return function(){return T7.apply(FO,arguments)}}
function V(T7,FO){return typeof T7=="function"?T7.apply(FO?FO[0]||g:g,FO):T7}
function N(T7,FO,MY){b(E(FO),function(jZ){T7.addEventListener(jZ,MY,!1)})}
function l(T7,FO,MY){b(E(FO),function(jZ){T7.removeEventListener(jZ,MY,!1)})}
function E(T7){return T7.trim().split(/\s+/g)}
function S(T7,FO,MY){if(T7.indexOf&&!MY)return T7.indexOf(FO);for(var jZ=0,gl=T7.length;jZ<gl;jZ++)if(MY&&T7[jZ][MY]==FO||!MY&&T7[jZ]===FO)return jZ;return-1}
function M(T7,FO,MY){for(var jZ=[],gl=[],lm=0,KA=T7.length;lm<KA;lm++){var d9=FO?T7[lm][FO]:T7[lm];S(gl,d9)<0&&jZ.push(T7[lm]);gl[lm]=d9}MY&&(jZ=FO?jZ.sort(function(K4,mo){return K4[FO]>mo[FO]}):jZ.sort());
return jZ}
function f(T7,FO){for(var MY,jZ=FO[0].toUpperCase()+FO.slice(1),gl=0,lm=g9.length;gl<lm;gl++)if(MY=(MY=g9[gl])?MY+jZ:FO,MY in T7)return MY;return g}
function Z(T7,FO){var MY=this;this.manager=T7;this.callback=FO;this.element=T7.element;this.target=T7.options.inputTarget;this.domHandler=function(jZ){V(T7.options.enable,[T7])&&MY.handler(jZ)};
this.evEl&&N(this.element,this.evEl,this.domHandler);this.evTarget&&N(this.target,this.evTarget,this.domHandler);this.evWin&&N(x,this.evWin,this.domHandler)}
function u(T7){var FO;h0?FO=H$:yD?FO=yw:sF?FO=r9:FO=El;return new FO(T7,e)}
function e(T7,FO,MY){var jZ=MY.pointers.length,gl=MY.changedPointers.length,lm=FO&1&&jZ-gl===0;MY.isFirst=!!lm;MY.isFinal=!!(FO&12&&jZ-gl===0);lm&&(T7.session={});MY.eventType=FO;FO=T7.session;jZ=MY.pointers;gl=jZ.length;FO.firstInput||(FO.firstInput=px(MY));gl>1&&!FO.firstMultiple?FO.firstMultiple=px(MY):gl===1&&(FO.firstMultiple=!1);lm=FO.firstInput;var KA=(gl=FO.firstMultiple)?gl.center:lm.center,d9=MY.center=kI(jZ);MY.timeStamp=I0();MY.deltaTime=MY.timeStamp-lm.timeStamp;MY.angle=W$(KA,d9);MY.distance=
wC(KA,d9);lm=MY.center;KA=FO.offsetDelta||{};d9=FO.prevDelta||{};var K4=FO.prevInput||{};if(MY.eventType===1||K4.eventType===4)d9=FO.prevDelta={x:K4.deltaX||0,y:K4.deltaY||0},KA=FO.offsetDelta={x:lm.x,y:lm.y};MY.deltaX=d9.x+(lm.x-KA.x);MY.deltaY=d9.y+(lm.y-KA.y);MY.offsetDirection=Ul(MY.deltaX,MY.deltaY);gl?(lm=gl.pointers,lm=wC(jZ[0],jZ[1],Jc)/wC(lm[0],lm[1],Jc)):lm=1;MY.scale=lm;gl?(gl=gl.pointers,jZ=W$(jZ[1],jZ[0],Jc)-W$(gl[1],gl[0],Jc)):jZ=0;MY.rotation=jZ;KA=FO.lastInterval||MY;jZ=MY.timeStamp-
KA.timeStamp;MY.eventType!=8&&(jZ>25||KA.velocity===g)?(lm=KA.deltaX-MY.deltaX,KA=KA.deltaY-MY.deltaY,d9=lm/jZ||0,K4=KA/jZ||0,jZ=d9,gl=K4,d9=C4(d9)>C4(K4)?d9:K4,lm=Ul(lm,KA),FO.lastInterval=MY):(d9=KA.velocity,jZ=KA.velocityX,gl=KA.velocityY,lm=KA.direction);MY.velocity=d9;MY.velocityX=jZ;MY.velocityY=gl;MY.direction=lm;FO=T7.element;a:{for(jZ=MY.srcEvent.target;jZ;){if(jZ==FO){jZ=!0;break a}jZ=jZ.parentNode}jZ=!1}jZ&&(FO=MY.srcEvent.target);MY.target=FO;T7.emit("hammer.input",MY);T7.recognize(MY);
T7.session.prevInput=MY}
function px(T7){for(var FO=[],MY=0;MY<T7.pointers.length;MY++)FO[MY]={clientX:hc(T7.pointers[MY].clientX),clientY:hc(T7.pointers[MY].clientY)};return{timeStamp:I0(),pointers:FO,center:kI(FO),deltaX:T7.deltaX,deltaY:T7.deltaY}}
function kI(T7){var FO=T7.length;if(FO===1)return{x:hc(T7[0].clientX),y:hc(T7[0].clientY)};for(var MY=0,jZ=0,gl=0;gl<FO;gl++)MY+=T7[gl].clientX,jZ+=T7[gl].clientY;return{x:hc(MY/FO),y:hc(jZ/FO)}}
function Ul(T7,FO){return T7===FO?1:C4(T7)>=C4(FO)?T7>0?2:4:FO>0?8:16}
function wC(T7,FO,MY){MY||(MY=G5);var jZ=FO[MY[0]]-T7[MY[0]];T7=FO[MY[1]]-T7[MY[1]];return Math.sqrt(jZ*jZ+T7*T7)}
function W$(T7,FO,MY){MY||(MY=G5);return Math.atan2(FO[MY[1]]-T7[MY[1]],FO[MY[0]]-T7[MY[0]])*180/Math.PI}
function El(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Z.apply(this,arguments)}
function H$(){this.evEl=Ft;this.evWin=JM;Z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function yw(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Z.apply(this,arguments)}
function r9(){Z.apply(this,arguments);var T7=h(this.handler,this);this.touch=new yw(this.manager,T7);this.mouse=new El(this.manager,T7)}
function cs(T7,FO){this.manager=T7;this.set(FO)}
function NQ(T7){if(T7.indexOf("none")>-1)return"none";var FO=T7.indexOf("pan-x")>-1,MY=T7.indexOf("pan-y")>-1;return FO&&MY?"pan-x pan-y":FO||MY?FO?"pan-x":"pan-y":T7.indexOf("manipulation")>-1?"manipulation":"auto"}
function n4(T7){this.id=bz++;this.manager=null;this.options=q(T7||{},this.defaults);T7=this.options.enable;this.options.enable=T7===g?!0:T7;this.state=1;this.simultaneous={};this.requireFail=[]}
function L4(T7){return T7==16?"down":T7==8?"up":T7==2?"left":T7==4?"right":""}
function UF(T7,FO){return(FO=FO.manager)?FO.get(T7):T7}
function uX(){n4.apply(this,arguments)}
function yr(){uX.apply(this,arguments);this.pY=this.pX=null}
function uz(){uX.apply(this,arguments)}
function XO(){n4.apply(this,arguments);this._input=this._timer=null}
function qQ(){uX.apply(this,arguments)}
function lt(){uX.apply(this,arguments)}
function D8(){n4.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function VW(T7,FO){FO=FO||{};var MY=FO.recognizers;FO.recognizers=MY===g?VW.defaults.preset:MY;return new ut(T7,FO)}
function ut(T7,FO){FO=FO||{};this.options=q(FO,VW.defaults);this.options.inputTarget=this.options.inputTarget||T7;this.handlers={};this.session={};this.recognizers=[];this.element=T7;this.input=u(this);this.touchAction=new cs(this,this.options.touchAction);M8(this,!0);b(FO.recognizers,function(MY){var jZ=this.add(new MY[0](MY[1]));MY[2]&&jZ.recognizeWith(MY[2]);MY[3]&&jZ.requireFailure(MY[2])},this)}
function M8(T7,FO){var MY=T7.element;b(T7.options.cssProps,function(jZ,gl){MY.style[f(MY.style,gl)]=FO?jZ:""})}
function An(T7,FO){var MY=P.createEvent("Event");MY.initEvent(T7,!0,!0);MY.gesture=FO;FO.target.dispatchEvent(MY)}
var g9=" webkit moz MS ms o".split(" "),SZ=P.createElement("div"),hc=Math.round,C4=Math.abs,I0=Date.now,bz=1,sG=/mobile|tablet|ip(ad|hone|od)|android/i,sF="ontouchstart"in x,h0=f(x,"PointerEvent")!==g,yD=sF&&sG.test(navigator.userAgent),G5=["x","y"],Jc=["clientX","clientY"];Z.prototype={handler:function(){},
destroy:function(){this.evEl&&l(this.element,this.evEl,this.domHandler);this.evTarget&&l(this.target,this.evTarget,this.domHandler);this.evWin&&l(x,this.evWin,this.domHandler)}};
var cN={mousedown:1,mousemove:2,mouseup:4};C(El,Z,{handler:function(T7){var FO=cN[T7.type];FO&1&&T7.button===0&&(this.pressed=!0);FO&2&&T7.which!==1&&(FO=4);this.pressed&&this.allow&&(FO&4&&(this.pressed=!1),this.callback(this.manager,FO,{pointers:[T7],changedPointers:[T7],pointerType:"mouse",srcEvent:T7}))}});
var xP={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},CS={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ft="pointerdown",JM="pointermove pointerup pointercancel";x.MSPointerEvent&&(Ft="MSPointerDown",JM="MSPointerMove MSPointerUp MSPointerCancel");C(H$,Z,{handler:function(T7){var FO=this.store,MY=!1,jZ=T7.type.toLowerCase().replace("ms","");jZ=xP[jZ];var gl=CS[T7.pointerType]||T7.pointerType;jZ&1&&(T7.button===0||gl=="touch")?FO.push(T7):jZ&12&&(MY=!0);var lm=S(FO,T7.pointerId,"pointerId");
lm<0||(FO[lm]=T7,this.callback(this.manager,jZ,{pointers:FO,changedPointers:[T7],pointerType:gl,srcEvent:T7}),MY&&FO.splice(lm,1))}});
var WR={touchstart:1,touchmove:2,touchend:4,touchcancel:8};C(yw,Z,{handler:function(T7){var FO=WR[T7.type];var MY=Array.prototype.slice.call(T7.touches,0);var jZ=this.targetIds;if(FO&3&&MY.length===1)jZ[MY[0].identifier]=!0,jZ=[MY,MY];else{var gl,lm=Array.prototype.slice.call(T7.targetTouches,0),KA=Array.prototype.slice.call(T7.changedTouches,0),d9=[];if(FO===1)for(MY=0,gl=lm.length;MY<gl;MY++)jZ[lm[MY].identifier]=!0;MY=0;for(gl=KA.length;MY<gl;MY++)jZ[KA[MY].identifier]&&d9.push(KA[MY]),FO&12&&
delete jZ[KA[MY].identifier];jZ=d9.length?[M(lm.concat(d9),"identifier",!0),d9]:void 0}jZ&&this.callback(this.manager,FO,{pointers:jZ[0],changedPointers:jZ[1],pointerType:"touch",srcEvent:T7})}});
C(r9,Z,{handler:function(T7,FO,MY){var jZ=MY.pointerType=="mouse";if(MY.pointerType=="touch")this.mouse.allow=!1;else if(jZ&&!this.mouse.allow)return;FO&12&&(this.mouse.allow=!0);this.callback(T7,FO,MY)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Qc=f(SZ.style,"touchAction"),Gk=Qc!==g;cs.prototype={set:function(T7){T7=="compute"&&(T7=this.compute());Gk&&(this.manager.element.style[Qc]=T7);this.actions=T7.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var T7=[];b(this.manager.recognizers,function(FO){V(FO.options.enable,[FO])&&(T7=T7.concat(FO.getTouchAction()))});
return NQ(T7.join(" "))},
preventDefaults:function(T7){if(!Gk){var FO=T7.srcEvent;T7=T7.offsetDirection;if(this.manager.session.prevented)FO.preventDefault();else{var MY=this.actions,jZ=MY.indexOf("none")>-1,gl=MY.indexOf("pan-y")>-1;MY=MY.indexOf("pan-x")>-1;if(jZ||gl&&MY||gl&&T7&6||MY&&T7&24)return this.preventSrc(FO)}}},
preventSrc:function(T7){this.manager.session.prevented=!0;T7.preventDefault()}};
n4.prototype={defaults:{},set:function(T7){d(this.options,T7);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(T7){if(n(T7,"recognizeWith",this))return this;var FO=this.simultaneous;T7=UF(T7,this);FO[T7.id]||(FO[T7.id]=T7,T7.recognizeWith(this));return this},
dropRecognizeWith:function(T7){if(n(T7,"dropRecognizeWith",this))return this;T7=UF(T7,this);delete this.simultaneous[T7.id];return this},
requireFailure:function(T7){if(n(T7,"requireFailure",this))return this;var FO=this.requireFail;T7=UF(T7,this);S(FO,T7)===-1&&(FO.push(T7),T7.requireFailure(this));return this},
dropRequireFailure:function(T7){if(n(T7,"dropRequireFailure",this))return this;T7=UF(T7,this);T7=S(this.requireFail,T7);T7>-1&&this.requireFail.splice(T7,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(T7){return!!this.simultaneous[T7.id]},
emit:function(T7){function FO(gl){MY.manager.emit(MY.options.event+(gl?jZ&16?"cancel":jZ&8?"end":jZ&4?"move":jZ&2?"start":"":""),T7)}
var MY=this,jZ=this.state;jZ<8&&FO(!0);FO();jZ>=8&&FO(!0)},
tryEmit:function(T7){if(this.canEmit())return this.emit(T7);this.state=32},
canEmit:function(){for(var T7=0;T7<this.requireFail.length;T7++)if(!(this.requireFail[T7].state&33))return!1;return!0},
recognize:function(T7){T7=d({},T7);V(this.options.enable,[this,T7])?(this.state&56&&(this.state=1),this.state=this.process(T7),this.state&30&&this.tryEmit(T7)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
C(uX,n4,{defaults:{pointers:1},attrTest:function(T7){var FO=this.options.pointers;return FO===0||T7.pointers.length===FO},
process:function(T7){var FO=this.state,MY=T7.eventType,jZ=FO&6;T7=this.attrTest(T7);return jZ&&(MY&8||!T7)?FO|16:jZ||T7?MY&4?FO|8:FO&2?FO|4:2:32}});
C(yr,uX,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var T7=this.options.direction;if(T7===30)return["none"];var FO=[];T7&6&&FO.push("pan-y");T7&24&&FO.push("pan-x");return FO},
directionTest:function(T7){var FO=this.options,MY=!0,jZ=T7.distance,gl=T7.direction,lm=T7.deltaX,KA=T7.deltaY;gl&FO.direction||(FO.direction&6?(gl=lm===0?1:lm<0?2:4,MY=lm!=this.pX,jZ=Math.abs(T7.deltaX)):(gl=KA===0?1:KA<0?8:16,MY=KA!=this.pY,jZ=Math.abs(T7.deltaY)));T7.direction=gl;return MY&&jZ>FO.threshold&&gl&FO.direction},
attrTest:function(T7){return uX.prototype.attrTest.call(this,T7)&&(this.state&2||!(this.state&2)&&this.directionTest(T7))},
emit:function(T7){this.pX=T7.deltaX;this.pY=T7.deltaY;var FO=L4(T7.direction);FO&&this.manager.emit(this.options.event+FO,T7);this._super.emit.call(this,T7)}});
C(uz,uX,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(T7){return this._super.attrTest.call(this,T7)&&(Math.abs(T7.scale-1)>this.options.threshold||this.state&2)},
emit:function(T7){this._super.emit.call(this,T7);T7.scale!==1&&this.manager.emit(this.options.event+(T7.scale<1?"in":"out"),T7)}});
C(XO,n4,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(T7){var FO=this.options,MY=T7.pointers.length===FO.pointers,jZ=T7.distance<FO.threshold,gl=T7.deltaTime>FO.time;this._input=T7;if(!jZ||!MY||T7.eventType&12&&!gl)this.reset();else if(T7.eventType&1)this.reset(),this._timer=k(function(){this.state=8;this.tryEmit()},FO.time,this);
else if(T7.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(T7){this.state===8&&(T7&&T7.eventType&4?this.manager.emit(this.options.event+"up",T7):(this._input.timeStamp=I0(),this.manager.emit(this.options.event,this._input)))}});
C(qQ,uX,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(T7){return this._super.attrTest.call(this,T7)&&(Math.abs(T7.rotation)>this.options.threshold||this.state&2)}});
C(lt,uX,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return yr.prototype.getTouchAction.call(this)},
attrTest:function(T7){var FO=this.options.direction;if(FO&30)var MY=T7.velocity;else FO&6?MY=T7.velocityX:FO&24&&(MY=T7.velocityY);return this._super.attrTest.call(this,T7)&&FO&T7.direction&&C4(MY)>this.options.velocity&&T7.eventType&4},
emit:function(T7){var FO=L4(T7.direction);FO&&this.manager.emit(this.options.event+FO,T7);this.manager.emit(this.options.event,T7)}});
C(D8,n4,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(T7){var FO=this.options,MY=T7.pointers.length===FO.pointers,jZ=T7.distance<FO.threshold,gl=T7.deltaTime<FO.time;this.reset();if(T7.eventType&1&&this.count===0)return this.failTimeout();if(jZ&&gl&&MY){if(T7.eventType!=4)return this.failTimeout();MY=this.pTime?T7.timeStamp-this.pTime<FO.interval:!0;jZ=!this.pCenter||wC(this.pCenter,T7.center)<FO.posThreshold;this.pTime=T7.timeStamp;this.pCenter=T7.center;jZ&&MY?this.count+=1:this.count=1;this._input=T7;if(this.count%FO.taps===0)return this.hasRequireFailures()?
(this._timer=k(function(){this.state=8;this.tryEmit()},FO.interval,this),2):8}return 32},
failTimeout:function(){this._timer=k(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))}});
VW.VERSION="2.0.2";VW.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[qQ,{enable:!1}],[uz,{enable:!1},["rotate"]],[lt,{direction:6}],[yr,{direction:6},["swipe"]],[D8],[D8,{event:"doubletap",taps:2},["tap"]],[XO]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};ut.prototype={set:function(T7){d(this.options,T7);return this},
stop:function(T7){this.session.stopped=T7?2:1},
recognize:function(T7){var FO=this.session;if(!FO.stopped){this.touchAction.preventDefaults(T7);var MY=this.recognizers,jZ=FO.curRecognizer;if(!jZ||jZ&&jZ.state&8)jZ=FO.curRecognizer=null;for(var gl=0,lm=MY.length;gl<lm;gl++){var KA=MY[gl];FO.stopped===2||jZ&&KA!=jZ&&!KA.canRecognizeWith(jZ)?KA.reset():KA.recognize(T7);!jZ&&KA.state&14&&(jZ=FO.curRecognizer=KA)}}},
get:function(T7){if(T7 instanceof n4)return T7;for(var FO=this.recognizers,MY=0;MY<FO.length;MY++)if(FO[MY].options.event==T7)return FO[MY];return null},
add:function(T7){if(n(T7,"add",this))return this;var FO=this.get(T7.options.event);FO&&this.remove(FO);this.recognizers.push(T7);T7.manager=this;this.touchAction.update();return T7},
remove:function(T7){if(n(T7,"remove",this))return this;var FO=this.recognizers;T7=this.get(T7);FO.splice(S(FO,T7),1);this.touchAction.update();return this},
on:function(T7,FO){var MY=this.handlers;b(E(T7),function(jZ){MY[jZ]=MY[jZ]||[];MY[jZ].push(FO)});
return this},
off:function(T7,FO){var MY=this.handlers;b(E(T7),function(jZ){FO?MY[jZ].splice(S(MY[jZ],FO),1):delete MY[jZ]});
return this},
emit:function(T7,FO){this.options.domEvents&&An(T7,FO);var MY=this.handlers[T7]&&this.handlers[T7].slice();if(MY&&MY.length){FO.type=T7;FO.preventDefault=function(){FO.srcEvent.preventDefault()};
T7=0;for(var jZ=MY.length;T7<jZ;T7++)MY[T7](FO)}},
destroy:function(){this.element&&M8(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
d(VW,{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:ut,Input:Z,TouchAction:cs,Recognizer:n4,AttrRecognizer:uX,Tap:D8,Pan:yr,Swipe:lt,Pinch:uz,Rotate:qQ,Press:XO,on:N,off:l,each:b,merge:q,extend:d,inherit:C,bindFn:h,prefixed:f});
x[Y]=VW})(window,document,"Hammer");
return window.Hammer}.call({});
c.DOCUMENT=B;B[BX4]=c}return B[BX4]};/*

 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 x_0=function(B,c){if(B.length!==c.length)return!1;for(var x=0;x<B.length;++x)if(B[x]!==c[x])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var PAI=_.p(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),YLW=PAI.next();!YLW.done;YLW=PAI.next()){var a99=YLW.value,g0d=document.createElement("link");g0d.rel="stylesheet";g0d.href=a99;document.head.appendChild(g0d)};var fOI,AEY,Dbw,LHC,iCC,ZCl,GeI,MXq;fOI={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};AEY={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:"*"};Dbw={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};LHC=/[a-z0-9*]/;iCC=/U\+/;ZCl=/^arrow/;GeI=/^space(bar)?/;MXq=/^escape$/;_.VT={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(B,c){this._imperativeKeyBindings[B]=c;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(B,c){c=Rv$(c);for(var x=0;x<c.length;++x)if(usq(c[x],B))return!0;return!1},
_collectKeyBindings:function(){var B=this.behaviors.map(function(c){return c.keyBindings});
B.indexOf(this.keyBindings)===-1&&B.push(this.keyBindings);return B},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(x){for(var P in x)this._addKeyBinding(P,x[P])},this);
for(var B in this._imperativeKeyBindings)this._addKeyBinding(B,this._imperativeKeyBindings[B]);for(var c in this._keyBindings)this._keyBindings[c].sort(function(x,P){x=x[0].hasModifiers;return x===P[0].hasModifiers?0:x?-1:1})},
_addKeyBinding:function(B,c){Rv$(B).forEach(function(x){this._keyBindings[x.event]=this._keyBindings[x.event]||[];this._keyBindings[x.event].push([x,c])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(B){var c=this._onKeyBindingEvent.bind(this,this._keyBindings[B]);this._boundKeyHandlers.push([this.keyEventTarget,B,c]);this.keyEventTarget.addEventListener(B,c)},this)},
_unlistenKeyEventListeners:function(){for(var B,c,x;this._boundKeyHandlers.length;)B=this._boundKeyHandlers.pop(),c=B[0],x=B[1],B=B[2],c.removeEventListener(x,B)},
_onKeyBindingEvent:function(B,c){this.stopKeyboardEventPropagation&&c.stopPropagation();if(!c.defaultPrevented)for(var x=0;x<B.length;x++){var P=B[x][0],Y=B[x][1];if(usq(P,c)&&(this._triggerKeyHandler(P,Y,c),c.defaultPrevented))break}},
_triggerKeyHandler:function(B,c,x){var P=Object.create(B);P.keyboardEvent=x;B=new CustomEvent(B.event,{detail:P,cancelable:!0});this[c].call(this,B);B.defaultPrevented&&x.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
*/
_.Ni({is:"iron-a11y-keys",_template:null,behaviors:[_.VT],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(B){this.keyEventTarget=B},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(B){this.fire("keys-pressed",B.detail,{})}});_.t4={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(B){this._setFocused(B.type==="focus")},
_disabledChanged:function(B){this.setAttribute("aria-disabled",B?"true":"false");this.style.pointerEvents=B?"none":"";B?(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 wy={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(B){this._detectKeyboardFocus(B);B||this._setPressed(!1)},
_detectKeyboardFocus:function(B){this._setReceivedFocusFromKeyboard(!this.pointerDown&&B)},
_userActivate:function(B){this.active!==B&&(this.active=B,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(B){B=B.detail.keyboardEvent;var c=_.m4(B).localTarget;this.isLightDescendant(c)||(B.preventDefault(),B.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(B){B=_.m4(B.detail.keyboardEvent).localTarget;this.isLightDescendant(B)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(B,c){c&&c!=B&&this.hasAttribute(c)&&this.removeAttribute(c)},
_activeChanged:function(B){this.toggles?this.setAttribute(this.ariaActiveAttribute,B?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},smt=[_.VT,
wy];_.Nk={IronButtonState:smt,IronButtonStateImpl:wy};_.II={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.J4=function(B){_.J4[" "](B);this.type=B&&B.type||"default";this.key=B&&B.key;B&&"value"in B&&(this.value=B.value)};
_.J4.prototype.byKey=function(B){this.key=B;return this.value};
_.AJ.Object.defineProperties(_.J4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var B=this.type,c=this.key;if(B&&c)return Wb[B]&&Wb[B][c]},
set:function(B){var c=this.type,x=this.key;c&&x&&(c=Wb[c]=Wb[c]||{},B==null?delete c[x]:c[x]=B)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var B=Wb[this.type];return B?Object.keys(B).map(function(c){return Wb[this.type][c]},this):[]}}});
_.J4[" "]=function(){};
var Wb={};_.Ni({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(B,c,x){B=new _.J4({type:B,key:c});x!==void 0&&x!==B.value?B.value=x:this.value!==B.value&&(this.value=B.value);return B},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(B){B&&(this.value=this)},
byKey:function(B){return(new _.J4({type:this.type,key:B})).value}});var pH9;pH9=null;_.li={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){pH9=new _.J4({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return pH9&&pH9.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(B){this.invalid=B===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(B);return!this.invalid},
_getValidity:function(B){return this.hasValidator()?this._validator.validate(B):!0}};var kl5={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"}},XH3=[_.II,
_.li,kl5];_.Ni({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 _.J4({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(B){return this.name+":"+B},this)},
applyIcon:function(B,c){this.removeIcon(B);if(c=this._cloneIcon(c,this.rtlMirroring&&this._targetIsRTL(B))){var x=_.m4(B.root||B);x.insertBefore(c,x.childNodes[0]);return B._svgIcon=c}return null},
removeIcon:function(B){B._svgIcon&&(_.m4(B.root||B).removeChild(B._svgIcon),B._svgIcon=null)},
_targetIsRTL:function(B){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(B&&B.nodeType!==Node.ELEMENT_NODE&&(B=B.host),this.__targetIsRTL=B&&window.getComputedStyle(B).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 B=Object.create(null);_.m4(this).querySelectorAll("[id]").forEach(function(c){B[c.id]=c});
return B},
_cloneIcon:function(B,c){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[B],this.size,c)},
_prepareSvgClone:function(B,c,x){if(B){B=B.cloneNode(!0);var P=document.createElementNS("http://www.w3.org/2000/svg","svg");c=B.getAttribute("viewBox")||"0 0 "+c+" "+c;var Y="pointer-events: none; display: block; width: 100%; height: 100%;";x&&B.hasAttribute("mirror-in-rtl")&&(Y+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");P.setAttribute("viewBox",c);P.setAttribute("preserveAspectRatio","xMidYMid meet");P.setAttribute("focusable","false");P.style&&(P.style.cssText=
Y);P.appendChild(B).removeAttribute("id");return P}return null}});var $_I=function(B){this.multi=!1;this.selection=[];this.selectCallback=B};
_.a=$_I.prototype;_.a.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.a.clear=function(B){this.selection.slice().forEach(function(c){(!B||B.indexOf(c)<0)&&this.setItemSelected(c,!1)},this)};
_.a.isSelected=function(B){return this.selection.indexOf(B)>=0};
_.a.setItemSelected=function(B,c){if(B!=null&&c!==this.isSelected(B)){if(c)this.selection.push(B);else{var x=this.selection.indexOf(B);x>=0&&this.selection.splice(x,1)}this.selectCallback&&this.selectCallback(B,c)}};
_.a.select=function(B){this.multi?this.toggle(B):this.get()!==B&&(this.setItemSelected(this.get(),!1),this.setItemSelected(B,!0))};
_.a.toggle=function(B){this.setItemSelected(B,!this.isSelected(B))};_.Mi={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 $_I(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.m4(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(B){return this.items?this.items.indexOf(B):-1},
select:function(B){this.selected=B},
selectPrevious:function(){var B=this.items.length,c=B-1;this.selected!==void 0&&(c=(Number(this._valueToIndex(this.selected))-1+B)%B);this.selected=this._indexToValue(c)},
selectNext:function(){var B=0;this.selected!==void 0&&(B=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(B)},
selectIndex:function(B){this.select(this._indexToValue(B))},
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(B){this.listen(this,B,"_activateHandler")},
_removeListener:function(B){this.unlisten(this,B,"_activateHandler")},
_activateEventChanged:function(B,c){this._removeListener(c);this._addListener(B)},
_updateItems:function(){var B=_.m4(this).queryDistributedElements(this.selectable||"*");B=Array.prototype.filter.call(B,this._bindFilterItem);this._setItems(B)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var B=this._valueToItem(this.selected);B?this._selection.select(B):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(B){return!this._excludedLocalNames[B.localName]},
_valueToItem:function(B){return B==null?null:this.items[this._valueToIndex(B)]},
_valueToIndex:function(B){if(this.attrForSelected)for(var c=0,x;x=this.items[c];c++){if(this._valueForItem(x)==B)return c}else return Number(B)},
_indexToValue:function(B){if(this.attrForSelected){if(B=this.items[B])return this._valueForItem(B)}else return B},
_valueForItem:function(B){if(!B)return null;if(!this.attrForSelected)return B=this.indexOf(B),B===-1?null:B;var c=B[a1(this.attrForSelected)];return c!=void 0?c:B.getAttribute(this.attrForSelected)},
_applySelection:function(B,c){this.selectedClass&&this.toggleClass(this.selectedClass,c,B);this.selectedAttribute&&this.toggleAttribute.call(B,this.selectedAttribute,c);this._selectionChange();this.fire("iron-"+(c?"select":"deselect"),{item:B})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(B){return _.m4(B).observeNodes(function(c){this._updateItems();this._updateSelected();this.fire("iron-items-changed",c,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(B){B=B.target;for(var c=this.items;B&&B!=this;){var x=c.indexOf(B);if(x>=0){c=this._indexToValue(x);this._itemActivate(c,B);break}B=B.parentNode}},
_itemActivate:function(B,c){this.fire("iron-activate",{selected:B,item:c},{cancelable:!0}).defaultPrevented||this.select(B)}};var n0t={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(B){this.multi?this._toggleSelected(B):this.selected=B},
multiChanged:function(B){this._selection.multi=B;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(B){return this._indexToValue(this.indexOf(B))},this).filter(function(B){return B!=null},this)):_.Mi._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(B){B=B||[];B=(this._valuesToItems(B)||[]).filter(function(x){return x!==null&&x!==void 0});
this._selection.clear(B);for(var c=0;c<B.length;c++)this._selection.setItemSelected(B[c],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var B=this._selection.get();this.multi?(this._setSelectedItems(B),this._setSelectedItem(B.length?B[0]:null)):B!==null&&B!==void 0?(this._setSelectedItems([B]),this._setSelectedItem(B)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(B){var c=this.selectedValues.indexOf(B);c<0?this.push("selectedValues",B):this.splice("selectedValues",c,1)},
_valuesToItems:function(B){return B==null?null:B.map(function(c){return this._valueToItem(c)},this)}},bLm=[_.Mi,
n0t];var Kln;
_.Ec={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(B){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var c=this._valueToItem(B);c&&c.hasAttribute("disabled")||(this._setFocusedItem(c),n0t.select.apply(this,arguments))},
_resetTabindices:function(){var B=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(c){c.setAttribute("tabindex",c===B?"0":"-1");c.setAttribute("aria-selected",this._selection.isSelected(c))},this)},
_updateMultiselectable:function(B){B?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(B){if(this._MODIFIER_KEYS.indexOf(B.key)===-1){this.cancelDebouncer("_clearSearchText");var c=this._searchText||"";c+=(B.key&&B.key.length==1?B.key:String.fromCharCode(B.keyCode)).toLocaleLowerCase();B=c.length;for(var x=0,P;P=this.items[x];x++)if(!P.hasAttribute("disabled")){var Y=this.attrForItemTitle||"textContent";Y=(P[Y]||P.getAttribute(Y)||"").trim();if(!(Y.length<B)&&Y.slice(0,B).toLocaleLowerCase()==c){this._setFocusedItem(P);break}}this._searchText=c;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var B=this.items.length,c=Number(this.indexOf(this.focusedItem)),x=1;x<B+1;x++){var P=this.items[(c-x+B)%B];if(!P.hasAttribute("disabled")){var Y=_.m4(P).getOwnerRoot()||document;this._setFocusedItem(P);if(_.m4(Y).activeElement==P)break}}},
_focusNext:function(){for(var B=this.items.length,c=Number(this.indexOf(this.focusedItem)),x=1;x<B+1;x++){var P=this.items[(c+x)%B];if(!P.hasAttribute("disabled")){var Y=_.m4(P).getOwnerRoot()||document;this._setFocusedItem(P);if(_.m4(Y).activeElement==P)break}}},
_applySelection:function(B,c){c?B.setAttribute("aria-selected","true"):B.setAttribute("aria-selected","false");_.Mi._applySelection.apply(this,arguments)},
_focusedItemChanged:function(B,c){c&&c.setAttribute("tabindex","-1");!B||B.hasAttribute("disabled")||this.disabled||(B.setAttribute("tabindex","0"),B.focus())},
_onIronItemsChanged:function(B){B.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var B=this.getAttribute("tabindex");_.Ec._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",B);_.Ec._shiftTabPressed=!1},1)},
_onFocus:function(B){!_.Ec._shiftTabPressed&&(B=_.m4(B).rootTarget,B===this||typeof B.tabIndex==="undefined"||this.isLightDescendant(B))&&(this._defaultFocusAsync=this.async(function(){var c=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);c?this._setFocusedItem(c):this.items[0]&&this._focusNext()}))},
_onUpKey:function(B){this._focusPrevious();B.detail.keyboardEvent.preventDefault()},
_onDownKey:function(B){this._focusNext();B.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var B=this.focusedItem;B&&B.blur()},
_onKeydown:function(B){this.keyboardEventMatchesKeys(B,"up down esc")||this._focusWithKeyboardEvent(B);B.stopPropagation()},
_activateHandler:function(B){_.Mi._activateHandler.call(this,B);B.stopPropagation()},
_disabledChanged:function(B){B?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Kln=[bLm,_.VT,_.Ec];_.jmd={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(B){this.focusedItem&&(this.focusedItem.click(),B.detail.keyboardEvent.preventDefault())},
_onDownKey:function(B){this.focusedItem&&(this.focusedItem.click(),B.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(B){return B.ctrlKey||B.shiftKey||B.altKey||B.metaKey},
_onLeftKey:function(B){this._isSpecialKey(B.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),B.detail.keyboardEvent.preventDefault())},
_onRightKey:function(B){this._isSpecialKey(B.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),B.detail.keyboardEvent.preventDefault())},
_onKeydown:function(B){this.keyboardEventMatchesKeys(B,"up down left right esc")||this._focusWithKeyboardEvent(B)}};
_.U_t=[Kln,_.jmd];var d_I;d_I=new Set;_.Oc={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):(d_I.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(B){this.resizerShouldNotify(B)&&this._notifyDescendant(B)},this),this._fireResize())},
assignParentResizable:function(B){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=B)&&B._interestedResizables.indexOf(this)===-1&&(B._interestedResizables.push(this),B._subscribeIronResize(this))},
stopResizeNotificationsFor:function(B){var c=this._interestedResizables.indexOf(B);c>-1&&(this._interestedResizables.splice(c,1),this._unsubscribeIronResize(B))},
_subscribeIronResize:function(B){B.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(B){B.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(B){this._notifyingDescendant?B.stopPropagation():o1||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(B){var c=_.m4(B).rootTarget;c!==this&&(c.assignParentResizable(this),this._notifyDescendant(c),B.stopPropagation())},
_parentResizableChanged:function(B){B&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(B){this.isAttached&&(this._notifyingDescendant=!0,B.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var B=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function x(){document.removeEventListener("readystatechange",x);B()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(c){c!==this&&c._findParent()},this):(d_I.forEach(function(c){c!==this&&c._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?d_I.delete(this):d_I.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
*/
_.qL3={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(B,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);c&&(B==="document"?this.scrollTarget=this._doc:typeof B==="string"?this.scrollTarget=(c=this.domHost)&&c.$?c.$[B]:_.m4(this.ownerDocument).querySelector("#"+B):this._isValidScrollTarget()&&(this._oldScrollTarget=B,this._toggleScrollListener(this._shouldHaveListener,B)))},
_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(B){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,B):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
B)},set _scrollLeft(B){this.scrollTarget===this._doc?window.scrollTo(B,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=B)},scroll:function(B,c){if(typeof B==="object"){var x=B.left;c=B.top}else x=B;x=x||0;c=c||0;this.scrollTarget===this._doc?window.scrollTo(x,c):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=x,this.scrollTarget.scrollTop=c)},
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(B,c){c=c===this._doc?window:c;B?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),c.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(c.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(B){this._shouldHaveListener=B;this._toggleScrollListener(B,this.scrollTarget)}};_.Ni({is:"iron-selector",_template:null,behaviors:[bLm]});var oI={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(B){if(B.timing)for(var c in B.timing)this.animationTiming[c]=B.timing[c];return this.animationTiming},
setPrefixedProperty:function(B,c,x){for(var P={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[c],Y,g=0;Y=P[g];g++)B.style[Y]=x;B.style[c]=x},
complete:function(){}};_.Ni({is:"fade-in-animation",_template:null,behaviors:[oI],configure:function(B){return this._effect=new KeyframeEffect(B.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(B))}});_.Ni({is:"fade-out-animation",_template:null,behaviors:[oI],configure:function(B){return this._effect=new KeyframeEffect(B.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(B))}});var CA5=[{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(B,c){for(var x in c)B[x]=c[x]},
_cloneConfig:function(B){var c={isClone:!0};this._copyProperties(c,B);return c},
_getAnimationConfigRecursive:function(B,c,x){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=B?this.animationConfig[B]:this.animationConfig;Array.isArray(P)||(P=[P]);if(P)for(var Y,g=0;Y=P[g];g++)if(Y.animatable)Y.animatable._getAnimationConfigRecursive(Y.type||B,c,x);else if(Y.id){var k=c[Y.id];
k?(k.isClone||(c[Y.id]=this._cloneConfig(k),k=c[Y.id]),this._copyProperties(k,Y)):c[Y.id]=Y}else x.push(Y)}},
getAnimationConfig:function(B){var c={},x=[];this._getAnimationConfigRecursive(B,c,x);for(var P in c)x.push(c[P]);return x}},
{_configureAnimations:function(B){var c=[],x=[];if(B.length>0)for(var P,Y=0;P=B[Y];Y++){var g=document.createElement(P.name);if(g.isNeonAnimation){var k=null;g.configure||(g.configure=function(){return null});
k=g.configure(P);x.push({result:k,config:P})}else console.warn(this.is+":",P.name,"not found!")}for(B=0;B<x.length;B++){k=x[B].result;P=x[B].config;try{typeof k.cancel!="function"&&(k=document.timeline.play(k))}catch(n){k=null,console.warn("Couldnt play","(",P.name,").",n)}k&&c.push({neonAnimation:g,config:P,animation:k})}return c},
_shouldComplete:function(B){for(var c=!0,x=0;x<B.length;x++)if(B[x].animation.playState!="finished"){c=!1;break}return c},
_complete:function(B){for(var c=0;c<B.length;c++)B[c].neonAnimation.complete(B[c].config);for(c=0;c<B.length;c++)B[c].animation.cancel()},
playAnimation:function(B,c){var x=this.getAnimationConfig(B);if(x){this._active=this._active||{};this._active[B]&&(this._complete(this._active[B]),delete this._active[B]);var P=this._configureAnimations(x);if(P.length==0)this.fire("neon-animation-finish",c,{bubbles:!1});else for(this._active[B]=P,x=0;x<P.length;x++)P[x].animation.onfinish=function(){this._shouldComplete(P)&&(this._complete(P),delete this._active[B],this.fire("neon-animation-finish",c,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var B in this._active){var c=this._active[B],x;for(x in c)c[x].animation&&c[x].animation.cancel&&c[x].animation.cancel()}this._active={}}}];var XT=function(B,c){B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.arg=c;this.name=this.constructor.name;this.constructor=XT;this.__proto__=XT.prototype};
_.w(XT,Error);var hYy=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c.prototype._marshalArgs=function(x,P,Y){P=B.prototype._marshalArgs.call(this,x,P,Y);if(this._legacyUndefinedCheck&&P.length>1)for(Y=0;Y<P.length;Y++)if(P[Y]===void 0||x[Y].wildcard&&P[Y].base===void 0)throw x=x[Y].name,new XT("Argument '"+x+"' is undefined.",x);return P};
c.prototype._addPropertyEffect=function(x,P,Y){return B.prototype._addPropertyEffect.call(this,x,P,evx(Y,Y&&Y.info&&Y.info.methodName))};
c._addTemplatePropertyEffect=function(x,P,Y){return B._addTemplatePropertyEffect.call(this,x,P,evx(Y))};
return c}),m_n=_.Ni.Class;
_.Ni.Class=function(B,c){return m_n(B,function(x){return c?c(hYy(x)):hYy(x)})};
var TXI=DW(function(B){var c=hYy(B);B=function(){return c.apply(this,arguments)||this};
_.w(B,c);_.AJ.Object.defineProperties(B.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return B}),V_F=Fp.mixin;
Fp.mixin=V_F?function(B){return TXI(V_F(B))}:TXI;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.QT=_.Nk.IronButtonState;var M6d=Ok;/*

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 wH0;_.t_d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");wH0=function(){var B=[],c;var x=x||_.t_d.length;for(c=0;c<8;c++)B[c]=_.t_d[0|Math.random()*x];return B.join("")};var PJQ=function(){return Math.random().toString(36).substring(7).split("").join(".")},xy7="@@redux/INIT"+PJQ(),gVO="@@redux/REPLACE"+PJQ();var sgl=typeof Symbol==="function"&&Symbol.observable||"@@observable";var NXd=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var I9F="top right bottom left width height size weight".split(" "),JXm=typeof MutationObserver!=="undefined",Wl4=NXd&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,l9Q=function(){this.mutationEventsAdded_=this.JSC$9716_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=pGA(this.refresh.bind(this))},E0d=function(B,
c){var x=B.observers_;
c=x.indexOf(c);~c&&x.splice(c,1);!x.length&&B.JSC$9716_connected_&&NXd&&B.JSC$9716_connected_&&(document.removeEventListener("transitionend",B.onTransitionEnd_),window.removeEventListener("resize",B.refresh),B.mutationsObserver_&&(B.mutationsObserver_.disconnect(),Wl4&&(HTMLElement.prototype.attachShadow=Wl4)),B.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",B.refresh),B.mutationsObserver_=null,B.mutationEventsAdded_=!1,B.JSC$9716_connected_=!1)};
l9Q.prototype.refresh=function(){OL4(this)&&this.refresh()};
var OL4=function(B){B=B.observers_.filter(function(c){return o0n(c),c.activeObservations_.length>0});
B.forEach(function(c){return QmI(c)});
return B.length>0},Flt=function(B){if(NXd&&!B.JSC$9716_connected_){document.addEventListener("transitionend",B.onTransitionEnd_);
window.addEventListener("resize",B.refresh);if(JXm){B.mutationsObserver_=new MutationObserver(B.refresh);var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};B.mutationsObserver_.observe(document,c);Wl4&&(function Y(P){var g=P.shadowRoot;g&&(B.mutationsObserver_.observe(g,c),Y(g));for(P=P.firstElementChild;P;)Y(P),P=P.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var P=Wl4.apply(this,_.ts.apply(0,arguments));
B.mutationsObserver_.observe(P,c);return P})}else document.addEventListener("DOMSubtreeModified",B.refresh),B.mutationEventsAdded_=!0;
B.JSC$9716_connected_=!0}};
l9Q.prototype.onTransitionEnd_=function(B){var c=B.propertyName===void 0?"":B.propertyName;I9F.some(function(x){return!!~c.indexOf(x)})&&this.refresh()};
var v0S=null;var zYn=function(B,c){for(var x=_.p(Object.keys(c)),P=x.next();!P.done;P=x.next())P=P.value,Object.defineProperty(B,P,{value:c[P],enumerable:!1,writable:!1,configurable:!0})};var FV=function(B){var c;return(B==null?void 0:(c=B.ownerDocument)==null?void 0:c.defaultView)||globalThis};var SLW={x:0,y:0,width:0,height:0},yXI=typeof SVGGraphicsElement!=="undefined"?function(B){return B instanceof FV(B).SVGGraphicsElement}:function(B){return B instanceof FV(B).SVGElement&&typeof B.getBBox==="function"};var Gl4=function(B){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=B};
Gl4.prototype.isActive=function(){var B=this.target;if(NXd)if(yXI(B)){var c=B.getBBox();c={x:0,y:0,width:c.width,height:c.height}}else{var x=B.clientWidth,P=B.clientHeight;if(x||P){var Y=FV(B).getComputedStyle(B);c=nN(Y["padding-top"]);var g=nN(Y["padding-left"]),k=g+nN(Y["padding-right"]),n=c+nN(Y["padding-bottom"]),b=nN(Y.width),d=nN(Y.height);Y.boxSizing==="border-box"&&(Math.round(b+k)!==x&&(b-=koC(Y,"left","right")+k),Math.round(d+n)!==P&&(d-=koC(Y,"top","bottom")+n));B!==FV(B).document.documentElement&&
(B=Math.round(b+k)-x,P=Math.round(d+n)-P,Math.abs(B)!==1&&(b-=B),Math.abs(P)!==1&&(d-=P));c={x:g,y:c,width:b,height:d}}else c=SLW}else c=SLW;this.contentRect_=c;return c.width!==this.broadcastWidth||c.height!==this.broadcastHeight};var M_3=function(B,c){var x=c.x;var P=c.y;var Y=c.width;c=c.height;var g=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);zYn(g,{x:x,y:P,width:Y,height:c,top:P,right:x+Y,bottom:c+P,left:x});zYn(this,{target:B,contentRect:g})};var LlF=function(B,c){var x=v0S;this.activeObservations_=[];this.observations_=new Map;if(typeof B!=="function")throw new TypeError("Qe");this.callback_=B;this.controller_=x;this.callbackCtx_=c};
LlF.prototype.observe=function(B){if(B===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(B instanceof FV(B).Element))throw new TypeError("Se");var c=this.observations_;c.has(B)||(c.set(B,new Gl4(B)),B=this.controller_,~B.observers_.indexOf(this)||B.observers_.push(this),B.JSC$9716_connected_||Flt(B),this.controller_.refresh())}};
LlF.prototype.unobserve=function(B){if(B===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(B instanceof FV(B).Element))throw new TypeError("Se");var c=this.observations_;c.has(B)&&(c.delete(B),c.size||E0d(this.controller_,this))}};
LlF.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();E0d(this.controller_,this)};
var o0n=function(B){B.activeObservations_.splice(0);B.observations_.forEach(function(c){c.isActive()&&B.activeObservations_.push(c)})},QmI=function(B){if(B.activeObservations_.length>0){var c=B.callbackCtx_,x=B.activeObservations_.map(function(P){var Y=P.target,g=P.contentRect_;
P.broadcastWidth=g.width;P.broadcastHeight=g.height;return new M_3(Y,g)});
B.callback_.call(c,x,c);B.activeObservations_.splice(0)}};var vb=function(B){if(!(this instanceof vb))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");v0S||(v0S=new l9Q);this.observer_=new LlF(B,this)};
vb.prototype.observe=function(B){this.observer_.observe(B)};
vb.prototype.unobserve=function(B){this.observer_.unobserve(B)};
vb.prototype.disconnect=function(){this.observer_.disconnect()};var PsQ=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:vb;var dyY="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(" "),Uy7={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},jgO=null,XGd=null;var qZx={},CJo=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 NQo={text:1},TQQ={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var ZL9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,HL3={CONSTANT:{isUnwrappable:function(B){return B instanceof Qp},
unwrap:vI5},JAVASCRIPT:{isUnwrappable:function(B){return B instanceof _.zz},
unwrap:yc},HTML:{isUnwrappable:function(B){return B instanceof Js},
unwrap:function(B){return lV(B)}},
RESOURCE_URL:{isUnwrappable:function(B){return B instanceof p6},
unwrap:_.X_},STRING:{isUnwrappable:function(B){return B instanceof Object},
unwrap:function(B){return String(B)}},
STYLE:{isUnwrappable:function(B){return typeof B==="string"},
unwrap:function(B){return B}},
URL:{isUnwrappable:function(B){return jT(B)},
unwrap:_.UG}},f9n={CONSTANT:IZ7,JAVASCRIPT:IZ7,HTML:function(B){B=B instanceof Js?B:Wa(String(B).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return lV(B)},
RESOURCE_URL:IZ7,STRING:String,STYLE:IZ7,URL:function(B,c){B=ZL9.test(B)?B:void 0;return B===void 0?c:B}};var SZl=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Jd7=/[\t\n\f\r ]+/,lZo=/[\t\n\f\r ,]+/g,OYw=function(B,c,x){return x},Un={},iLt=function(){var B=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}(),c=B.createHTML(""),x=B.createScript("");
B=B.createScriptURL("");return{INNOCUOUS_STRING:c,INNOCUOUS_SCRIPT:x,INNOCUOUS_URL:B}}(),jW=iLt.INNOCUOUS_STRING,zFo=iLt.INNOCUOUS_SCRIPT,vVI=iLt.INNOCUOUS_URL;var AXt=function(B){var c=yd7(B);return function(x,P,Y,g){return g?c(g,P,Y,x):jW}}({reportHandler:function(B,c){if(B)try{throw Error(c);
}catch(x){_.lb(x)}},
safeTypesBridge:function(B,c,x){var P=HL3[c];return P.isUnwrappable(B)&&(P=P.unwrap(B,x),P!==x)?P:(0,f9n[c])(String(B),x)},
allowedIdentifierPrefixes:[""]});if(Uk!==void 0)throw Error("Ue");Uk=AXt;if(Uk!==AXt)throw Error("Ve");dx("Injectable",[]);var n7q=dx("Inject",[["token",void 0]]),KvX=dx("Optional",[]);dx("Injectable",[]);var jfl=dx("Self",[]),Uw7=dx("SkipSelf",[]);dx("Host",[]);var uoy={},D_3=function(){};
D_3.prototype.resolve=function(){throw Error("Xe");};
D_3.prototype.addProvider=function(){throw Error("Xe");};var XJo=Function;var rX0=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,RY3=function(){this._reflect=window.Reflect};
_.a=RY3.prototype;_.a.factory=function(B){return function(){return new (Function.prototype.bind.apply(B,[null].concat(_.wq(_.ts.apply(0,arguments)))))}};
_.a._zipTypesAndAnnotations=function(B,c){var x=typeof B==="undefined"?Array(c.length):Array(B.length);for(var P=0;P<x.length;P++)x[P]=typeof B==="undefined"?[]:B[P]!=Object?[B[P]]:[],c&&M2q(c[P])&&(x[P]=x[P].concat(c[P]));return x};
_.a._ownParameters=function(B,c){if(rX0.exec(B.toString()))return null;if(B.parameters&&B.parameters!==c.parameters)return B.parameters;var x=B.ctorParameters;return x&&x!==c.ctorParameters?(c=typeof x==="function"?x():x,B=c.map(function(P){return P&&P.type}),c=c.map(function(P){return P&&ZY7(P.decorators)}),this._zipTypesAndAnnotations(B,c)):M2q(this._reflect)&&M2q(this._reflect.getOwnMetadata)&&(c=this._reflect.getOwnMetadata("parameters",B),(x=this._reflect.getOwnMetadata("design:paramtypes",B))||
c)?this._zipTypesAndAnnotations(x,c):Array(B.length).fill(void 0)};
_.a.parameters=function(B){if(!B.prototype)return[];var c=Object.getPrototypeOf(B.prototype).constructor;(B=this._ownParameters(B,c))||c===Object||(B=this.parameters(c));return B||[]};
_.a._ownAnnotations=function(B,c){if(B.annotations&&B.annotations!==c.annotations)return B=B.annotations,typeof B==="function"&&B.annotations&&(B=B.annotations),B;if(B.decorators&&B.decorators!==c.decorators)return ZY7(B.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",B)};
_.a.annotations=function(B){var c=Object.getPrototypeOf(B.prototype).constructor;B=this._ownAnnotations(B,c)||[];return(c!==Object?this.annotations(c):[]).concat(B)};
_.a._ownPropMetadata=function(B,c){if(B.propMetadata&&B.propMetadata!==c.propMetadata)return B=B.propMetadata,typeof B==="function"&&B.propMetadata&&(B=B.propMetadata),B;if(B.propDecorators&&B.propDecorators!==c.propDecorators){var x=B.propDecorators,P={};Object.keys(x).forEach(function(Y){P[Y]=ZY7(x[Y])});
return P}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",B)};
_.a.propMetadata=function(B){var c=Object.getPrototypeOf(B.prototype).constructor,x={};if(c!==Object){var P=this.propMetadata(c);Object.keys(P).forEach(function(g){x[g]=P[g]})}var Y=this._ownPropMetadata(B,c);
Y&&Object.keys(Y).forEach(function(g){var k=[];x.hasOwnProperty(g)&&k.push.apply(k,_.wq(x[g]));k.push.apply(k,_.wq(Y[g]));x[g]=k});
return x};
_.a.getter=function(B){return function(c){return c[B]}};
_.a.method=function(B){return function(c,x){if(!c[B])throw Error("Ye`"+B);return c[B].apply(c,x)}};var eYQ=function(){};var BVZ=function(B){this.reflectionCapabilities=B};
_.w(BVZ,eYQ);_.a=BVZ.prototype;_.a.factory=function(B){return this.reflectionCapabilities.factory(B)};
_.a.parameters=function(B){return this.reflectionCapabilities.parameters(B)};
_.a.annotations=function(B){return this.reflectionCapabilities.annotations(B)};
_.a.propMetadata=function(B){return this.reflectionCapabilities.propMetadata(B)};
_.a.getter=function(B){return this.reflectionCapabilities.getter(B)};
_.a.method=function(B){return this.reflectionCapabilities.method(B)};var eFd=new BVZ(new RY3);var zV=function(B,c){this.token=B;this.id=c;if(B===void 0||B===null)throw Error("cf");};
_.AJ.Object.defineProperties(zV.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return qp(this.token)}}});
_.AJ.Object.defineProperties(zV,{JSC$9758_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return hg.JSC$9762_numberOfKeys}}});
var cWW=function(){this._allKeys=new Map};
cWW.prototype.get=function(B){if(B instanceof zV)return B;if(this._allKeys.has(B))return this._allKeys.get(B);var c=new zV(B,zV.JSC$9758_numberOfKeys);this._allKeys.set(B,c);return c};
_.AJ.Object.defineProperties(cWW.prototype,{JSC$9762_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var hg=new cWW;var dwx=function(B,c,x){this.key=B;this.optional=c;this.visibility=x},ce7=function(B){return new dwx(B,!1,null)},PLC=[],g7X=function(B,c,x){this.key=B;
this.resolvedFactories=c;this.multiProvider=x},YYC=function(B,c,x,P){this.factory=B;
this.dependencies=c;this.providerClass=x;this.providerValue=P};var Sg={},yT=function(B,c){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=c===void 0?null:c;B=_.p(B);for(c=B.next();!c.done;c=B.next())this.addProvider(c.value)};
_.a=yT.prototype;_.a.addProvider=function(B){this.keyIdToIndex.set(B.key.id,this.keyIds.length);this.providers.push(B);this.keyIds.push(B.key.id);this.objs.push(Sg)};
_.a.resolve=function(B,c){c=c===void 0?uoy:c;return this._getByKey(hg.get(CN(B)),null,c)};
_.a._new=function(B){if(this.constructedKeyIds[B.key.id])throw Dyo(this,B.key);this.constructedKeyIds[B.key.id]=!0;return this._instantiateProvider(B)};
_.a._instantiateProvider=function(B){if(B.multiProvider){for(var c=Array(B.resolvedFactories.length),x=0;x<B.resolvedFactories.length;++x)c[x]=this._instantiate(B,B.resolvedFactories[x]);return c}return this._instantiate(B,B.resolvedFactories[0])};
_.a._instantiate=function(B,c){var x=this,P=c.factory;try{var Y=c.dependencies.map(function(k){return x._getByReflectiveDependency(k)})}catch(k){throw k.addKey&&k.addKey(this,B.key),k;
}try{var g=P.apply(null,_.wq(Y))}catch(k){throw rdC(this,k,B.key);}return g};
_.a._getByReflectiveDependency=function(B){return this._getByKey(B.key,B.visibility,B.optional?null:uoy)};
_.a._getByKey=function(B,c,x){return B===xe9?this:c instanceof jfl?this._getByKeySelf(B,x):this._getByKeyDefault(B,x,c)};
_.a._getObjByKeyId=function(B){for(var c=0;c<this.keyIds.length;c++)if(this.keyIds[c]===B)return this.objs[c]===Sg&&(this.objs[c]=this._new(this.providers[c])),this.objs[c];return Sg};
_.a._throwOrNull=function(B,c){if(c!==uoy)return c;throw u87(this,B);};
_.a._getByKeySelf=function(B,c){var x=this._getObjByKeyId(B.id);return x!==Sg?x:this._throwOrNull(B,c)};
_.a._getByKeyDefault=function(B,c,x){for(var P=x=x instanceof Uw7?this.parent:this;x instanceof yT;){var Y=x._getObjByKeyId(B.id);if(Y!==Sg)return Y;x=x.parent}Y=void 0;if(x!==null)try{var g=x.resolve(B.token,c);if(g!==Sg)return g}catch(k){Y=k}if(!(P instanceof yT&&CLY(B.token))){if(Y)throw Y;return this._throwOrNull(B,c)}for(g=P;g.parent instanceof yT;)g=g.parent;g.addProvider(sfI({provide:B.token,useClass:B.token}));return g.resolve(B.token,c)};
_.a.toString=function(){return this.displayName};
_.AJ.Object.defineProperties(yT.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+qYq(this,function(B){return' "'+B.key.displayName+'" '}).join(", ")+"])"}}});
var xe9=hg.get(CN(D_3));(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 PvI=window.XRegExp;var Y9m=-1,anQ=function(B){addEventListener("pageshow",function(c){c.persisted&&(Y9m=c.timeStamp,B(c))},!0)};var s23=function(B,c,x){var P=gU9,Y,g;return function(k){if(c.value>=0&&(k||x)){var n;if((g=c.value-((n=Y)!=null?n:0))||Y===void 0)Y=c.value,c.delta=g,k=c.value,c.rating=k>P[1]?"poor":k>P[0]?"needs-improvement":"good",B(c)}}};var pw0=function(B){requestAnimationFrame(function(){return requestAnimationFrame(function(){return B()})})};var kUn=function(){var B=performance.getEntriesByType("navigation")[0];if(B&&B.responseStart>0&&B.responseStart<performance.now())return B};var XwZ=function(){var B,c;return(c=(B=kUn())==null?void 0:B.activationStart)!=null?c:0};var $eZ=function(){var B=B===void 0?-1:B;var c=kUn(),x="navigate";Y9m>=0?x="back-forward-cache":c&&(document.prerendering||XwZ()>0?x="prerender":document.wasDiscarded?x="restore":c.type&&(x=c.type.replace(/_/g,"-")));return{name:"LCP",value:B,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:x}};var mwC=new WeakMap;var nU3=function(B){var c=c===void 0?{}:c;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var x=new PerformanceObserver(function(P){Promise.resolve().then(function(){B(P.getEntries())})});
x.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},c));return x}}catch(P){}};var bw0=function(B){var c=!1;return function(){c||(B(),c=!0)}};var GV=-1,Kgt=function(B){document.visibilityState==="hidden"&&GV>-1&&(GV=B.type==="visibilitychange"?B.timeStamp:0,removeEventListener("visibilitychange",Kgt,!0),removeEventListener("prerenderingchange",Kgt,!0))},j2y=function(){addEventListener("visibilitychange",Kgt,!0);
addEventListener("prerenderingchange",Kgt,!0)},UeW=function(){if(GV<0){var B=XwZ(),c,x;
GV=(x=document.prerendering?void 0:(c=globalThis.performance.getEntriesByType("visibility-state").filter(function(P){return P.name==="hidden"&&P.startTime>B})[0])==null?void 0:c.startTime)!=null?x:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
j2y();anQ(function(){setTimeout(function(){GV=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;j2y()})})}return{get firstHiddenTime(){return GV}}};var det=function(B){document.prerendering?addEventListener("prerenderingchange",function(){return B()},!0):B()};var q9S=function(B){var c=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?B():(B=bw0(B),document.addEventListener("visibilitychange",B,{once:!0}),c(function(){B();document.removeEventListener("visibilitychange",B)}))};var hW7=function(){};
hW7.prototype._processEntry=function(B){var c;(c=this._onBeforeProcessingEntry)==null||c.call(this,B)};var gU9=[2500,4E3],Rux=function(B){var c=c===void 0?{}:c;det(function(){var x=UeW(),P=$eZ(),Y=Tp7(c),g=function(C){c.reportAllChanges||(C=C.slice(-1));C=_.p(C);for(var h=C.next();!h.done;h=C.next())h=h.value,Y._processEntry(h),h.startTime<x.firstHiddenTime&&(P.value=Math.max(h.startTime-XwZ(),0),P.entries=[h],n())},k=nU3(g);
if(k){var n=s23(B,P,c.reportAllChanges);for(var b=bw0(function(){g(k.takeRecords());k.disconnect();n(!0)}),d=_.p(["keydown",
"click","visibilitychange"]),q=d.next();!q.done;q=d.next())addEventListener(q.value,function(){return q9S(b)},{capture:!0,
once:!0});anQ(function(C){P=$eZ();n=s23(B,P,c.reportAllChanges);pw0(function(){P.value=performance.now()-C.timeStamp;n(!0)})})}})};var Cvt;var h_t;_.r=function(){return h_t!==void 0?h_t:h_t=document.createElement("template")};
document.head.appendChild(_.r().content);var meZ;_.Ni({_template:function(){if(meZ!==void 0)return meZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;Cvt===void 0&&(Cvt=document.createElement("template"));var P=Cvt;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return meZ=B},
is:"tp-yt-app-toolbar"});var TVd;var V5d;_.Mk=function(){};
_.Mk=_.Ni({_template:function(){if(V5d!==void 0)return V5d;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;TVd===void 0&&(TVd=document.createElement("template"));var P=TVd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return V5d=B},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Mk.instance||(_.Mk.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(B){this._text===B&&(B+="\u00a0");this._text="";this.async(function(){this._text=B},this.timeout)},
_onIronAnnounce:function(B){B.detail&&B.detail.text&&this.announce(B.detail.text)}});
_.Mk.instance=null;_.Mk.requestAvailability=function(){_.Mk.instance||(_.Mk.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Mk.instance):document.addEventListener("load",function(){document.body.appendChild(_.Mk.instance)})};var t5Q;var wwm;/*

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

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 Ld,Ow9,oUW;Ld=Element.prototype;Ow9=Ld.matches||Ld.matchesSelector||Ld.mozMatchesSelector||Ld.msMatchesSelector||Ld.oMatchesSelector||Ld.webkitMatchesSelector;oUW=function(){};
_.Fg5=function(B){var c=Q2n,x=[];return c._collectTabbableNodes(B,x)?c._sortByTabIndex(x):x};
_.a=oUW.prototype;_.a._normalizedTabIndex=function(B){return(Ow9.call(B,"input, select, textarea, button, object")?Ow9.call(B,":not([disabled])"):Ow9.call(B,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(B=B.getAttribute("tabindex")||0,Number(B)):-1};
_.a._collectTabbableNodes=function(B,c){if(B.nodeType!==Node.ELEMENT_NODE||!this._isVisible(B))return!1;var x=this._normalizedTabIndex(B),P=x>0;x>=0&&c.push(B);if(B.localName==="content"||B.localName==="slot")x=_.m4(B).getDistributedNodes();else{var Y;x=((Y=_.m4(B).shadowRoot)!=null?Y:_.m4(B.root||B)).children}for(B=0;B<x.length;B++)P=this._collectTabbableNodes(x[B],c)||P;return P};
_.a._isVisible=function(B){var c=B.style;return c.visibility!=="hidden"&&c.display!=="none"?(c=window.getComputedStyle(B),c.visibility!=="hidden"&&c.display!=="none"):!1};
_.a._sortByTabIndex=function(B){var c=B.length;if(c<2)return B;var x=Math.ceil(c/2);c=this._sortByTabIndex(B.slice(0,x));B=this._sortByTabIndex(B.slice(x));return this._mergeSortByTabIndex(c,B)};
_.a._mergeSortByTabIndex=function(B,c){for(var x=[];B.length>0&&c.length>0;)this._hasLowerTabOrder(B[0],c[0])?x.push(c.shift()):x.push(B.shift());return x.concat(B,c)};
_.a._hasLowerTabOrder=function(B,c){B=Math.max(B.tabIndex,0);c=Math.max(c.tabIndex,0);return B===0||c===0?c>B:B>c};
var Q2n=new oUW;var vUS;var z_4;_.Ni({_template:function(){if(z_4!==void 0)return z_4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;vUS===void 0&&(vUS=document.createElement("template"));var P=vUS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return z_4=B},
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&&_.m4(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.m4(this.parentNode).removeChild(this)},
_onTransitionend:function(B){B&&B.target===this&&this.complete()},
_openedChanged:function(B){B?this.prepare():(B=window.getComputedStyle(this),B.transitionDuration!=="0s"&&B.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 Zy=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;I1(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)};
Zy.prototype._bringOverlayAtIndexToFront=function(B){var c=this._overlays[B];if(c){var x=this._overlays.length-1,P=this._overlays[x];P&&this._shouldBeBehindOverlay(c,P)&&x--;if(!(B>=x)){P=Math.max(this._getZ(_.S95(this)),this._minimumZ);for(this._getZ(c)<=P&&this._applyOverlayZ(c,P);B<x;)this._overlays[B]=this._overlays[B+1],B++;this._overlays[x]=c}}};
Zy.prototype.addOverlay=function(B){var c=this._overlays.indexOf(B);if(c>=0)this._bringOverlayAtIndexToFront(c);else{c=this._overlays.length;var x=this._overlays[c-1],P=Math.max(this._getZ(x),this._minimumZ),Y=this._getZ(B);x&&this._shouldBeBehindOverlay(B,x)&&(this._applyOverlayZ(x,P),c--,P=Math.max(this._getZ(this._overlays[c-1]),this._minimumZ));Y<=P&&this._applyOverlayZ(B,P);this._overlays.splice(c,0,B)}this.trackBackdrop()};
Zy.prototype.removeOverlay=function(B){B=this._overlays.indexOf(B);B!==-1&&(this._overlays.splice(B,1),this.trackBackdrop())};
_.S95=function(B){return B._overlays[B._overlays.length-1]};
_.a=Zy.prototype;_.a.trackBackdrop=function(){var B=this._overlayWithBackdrop();if(B||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(B)-1,this.backdropElement.opened=!!B,this.backdropElement.prepare()};
_.a._overlayWithBackdrop=function(){for(var B=this._overlays.length-1;B>=0;B--)if(this._overlays[B].withBackdrop)return this._overlays[B]};
_.a._getZ=function(B){var c=this._minimumZ;if(B){var x,P,Y=Number(((x=B.hostElement)!=null?x:B).style.zIndex||window.getComputedStyle((P=B.hostElement)!=null?P:B).zIndex);Y===Y&&(c=Y)}return c};
_.a._setZ=function(B,c){var x;((x=B.hostElement)!=null?x:B).style.zIndex=c};
_.a._applyOverlayZ=function(B,c){this._setZ(B,c+2)};
_.a._overlayInPath=function(B){B=B||[];for(var c=0;c<B.length;c++){var x=void 0;if(((x=B[c].polymerController)!=null?x:B[c])._manager===this)return B[c]}};
_.a._onCaptureClick=function(B){var c=this._overlays.length-1;if(c!==-1)for(var x=_.m4(B).path,P,Y;(P=this._overlays[c])&&this._overlayInPath(x)!==((Y=P.hostElement)!=null?Y:P);)if(P._onCaptureClick(B),P.allowClickThrough)c--;else break};
_.a._onCaptureFocus=function(B){var c=_.S95(this);c&&c._onCaptureFocus(B)};
_.a._onCaptureKeyDown=function(B){var c=_.S95(this);c&&(_.VT.keyboardEventMatchesKeys(B,"esc")?c._onCaptureEsc(B):_.VT.keyboardEventMatchesKeys(B,"tab")&&c._onCaptureTab(B))};
_.a._shouldBeBehindOverlay=function(B,c){return!B.alwaysOnTop&&c.alwaysOnTop&&!c.contains(B)};
_.AJ.Object.defineProperties(Zy.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 B=document.activeElement;B&&B instanceof Element!==!1||(B=document.body);for(;B.root&&_.m4(B.root).activeElement;)B=_.m4(B.root).activeElement;return B}}});
_.Hb=new Zy;var V1d=0,t1d=0,wJX=null,Npw=[],Tk=["wheel","mousewheel","DOMMouseScroll"],IDO;_.T("web_no_lock_on_touchstart_killswitch")&&(Tk.push("touchstart"),Tk.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;_.fd={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:_.Hb},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var B;return this._focusedChild||_.m4((B=this.hostElement)!=null?B:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var B;return _.Fg5((B=this.hostElement)!=null?B: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 B;this._observer=_.m4((B=this.hostElement)!=null?B:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var B;_.m4((B=this.hostElement)!=null?B:this).unobserveNodes(this._observer)}this._observer=null;for(var c in this.__rafs)this.__rafs[c]!==null&&cancelAnimationFrame(this.__rafs[c]);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(B){this.fire("iron-overlay-canceled",B,{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 B;((B=this.hostElement)!=null?B:this).style.outline="none";var c;((c=this.hostElement)!=null?c:this).style.display="none"}},
_openedChanged:function(B){if(B){var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-hidden")}else{var x;((x=this.hostElement)!=null?x: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 B;if(this.withBackdrop&&!((B=this.hostElement)!=null?B:this).hasAttribute("tabindex")){var c;((c=this.hostElement)!=null?c:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var x;((x=this.hostElement)!=null?x: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 B;((B=this.hostElement)!=null?B:this).style.display="none";var c;((c=this.hostElement)!=null?c:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var B,c;((B=this.hostElement)!=null?B:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="none";var x,P;((x=this.hostElement)!=null?x:this).style.transform=((P=this.hostElement)!=null?P:this).style.webkitTransform="none";var Y;((Y=this.hostElement)!=null?Y:this).style.display=""},
_finishPositioning:function(){var B;((B=this.hostElement)!=null?B:this).style.display="none";this.scrollTop=this.scrollTop;var c,x;((c=this.hostElement)!=null?c:this).style.transition=((x=this.hostElement)!=null?x:this).style.webkitTransition="";var P,Y;((P=this.hostElement)!=null?P:this).style.transform=((Y=this.hostElement)!=null?Y:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var B=this._manager.deepActiveElement,c;if(!(c=B===document.body))a:{for(;B;B=B.assignedSlot||B.parentNode||B.host)if(B===this){c=!0;break a}c=!1}c&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(B){this.noCancelOnOutsideClick||this.cancel(B)},
_onCaptureFocus:function(B){if(this.withBackdrop){var c=_.m4(B).path;c.indexOf(this)===-1?(B.stopPropagation(),this._applyFocus()):this._focusedChild=c[0]}},
_onCaptureEsc:function(B){this.noCancelOnEscKey||this.cancel(B)},
_onCaptureTab:function(B){if(this.withBackdrop){this.__ensureFirstLastFocusables();var c=B.shiftKey,x=c?this.__firstFocusableNode:this.__lastFocusableNode;c=c?this.__lastFocusableNode:this.__firstFocusableNode;if(x===c)x=!0;else{var P=this._manager.deepActiveElement;x=P===x||P===this}x&&(B.preventDefault(),this._focusedChild=c,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 B=this._focusableNodes;this.__firstFocusableNode=B[0];this.__lastFocusableNode=B[B.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(B,c){var x=this.__rafs;x[B]!==null&&cancelAnimationFrame(x[B]);x[B]=requestAnimationFrame(function(){x[B]=null;c.call(this)}.bind(this))},
__updateScrollObservers:function(B,c,x){B&&c&&this.__isValidScrollAction(x)?(x==="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),IDO=_._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()):(B=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),B!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(B,1),IDO=_._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(o1)for(var B=this;B;)B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&B.host&&this.__rootNodes.push(B),B=B.host||B.assignedSlot||B.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(c){c.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(B){B.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(B){return B==="lock"||B==="refit"||B==="cancel"},
__onCaptureScroll:function(B){if(!(this.__isAnimating||_.m4(B).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(B)}},
__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)}};
_.ii=[EUm,_.Oc,_.fd];_.Ni({_template:function(){if(WgF!==void 0)return WgF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;JWQ===void 0&&(JWQ=document.createElement("template"));var P=JWQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return WgF=B},
is:"tp-yt-iron-dropdown",behaviors:[_.t4,_.VT,_.ii,CA5],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 B=_.m4(this.$.content).getDistributedNodes(),c=0,x=B.length;c<x;c++)if(B[c].nodeType===Node.ELEMENT_NODE)return B[c]},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(),_.fd._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.fd._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.fd._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var B=this.containedElement,c=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),x=0;x<c.length;x++)c[x].node=B;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(B){this._readied&&(B?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var B=this.focusTarget||this.containedElement;B&&this.opened&&!this.noAutoFocus?B.focus():_.fd._applyFocus.apply(this,arguments)}});var yWI;var GUS;/*

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 M5Q=new _.J4({type:"iconset"});
_.Ni({_template:function(){if(GUS!==void 0)return GUS;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;yWI===void 0&&(yWI=document.createElement("template"));
var P=yWI;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return GUS=B},
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(B){B=(B||"").split(":");this._iconName=B.pop();this._iconsetName=B.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&&_.m4(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=M5Q.byKey(this._iconsetName)){var B=this._iconset.applyIcon(this,this._iconName,this.theme);B&&B.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,_.m4(this.root).appendChild(this._img)}});var Lg3;var Zw5;_.Ni({_template:function(){if(Zw5!==void 0)return Zw5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;Lg3===void 0&&(Lg3=document.createElement("template"));var P=Lg3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Zw5=B},
is:"tp-yt-iron-input",behaviors:[_.li],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(){_.Mk.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.m4(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.m4(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 B=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":B=/[0-9.,e-]/}return B},_bindValueChanged:function(B,c){c&&(B===void 0?c.value=null:B!==c.value&&(this.inputElement.value=B),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:B}))},
_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(B){var c=B.keyCode==19||B.keyCode==20||B.keyCode==45||B.keyCode==46||B.keyCode==144||B.keyCode==145||B.keyCode>32&&B.keyCode<41||B.keyCode>111&&B.keyCode<124;return!(B.keyCode==8||B.keyCode==9||B.keyCode==13||B.keyCode==27)&&!(B.charCode==0&&c)},
_onKeypress:function(B){if(this.allowedPattern||this.inputElement.type==="number"){var c=this._patternRegExp;if(c&&!(B.metaKey||B.ctrlKey||B.altKey)){this._patternAlreadyChecked=!0;var x=String.fromCharCode(B.charCode);this._isPrintable(B)&&!c.test(x)&&(B.preventDefault(),this._announceInvalidCharacter("Invalid character "+x+" not entered."))}}},
_checkPatternValidity:function(){var B=this._patternRegExp;if(!B)return!0;for(var c=0;c<this.inputElement.value.length;c++)if(!B.test(this.inputElement.value[c]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var B=this.inputElement.checkValidity();B&&(this.required&&this.bindValue===""?B=!1:this.hasValidator()&&(B=_.li.validate.call(this,this.bindValue)));this.invalid=!B;this.fire("iron-input-validate");return B},
_announceInvalidCharacter:function(B){this.fire("iron-announce",{text:B})},
_computeValue:function(B){return B}});var Hw5;var fnW;var iwm=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),AWd=iwm&&iwm[1]>=8;
_.Ni({_template:function(){if(fnW!==void 0)return fnW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Hw5===void 0&&(Hw5=document.createElement("template"));var P=Hw5;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return fnW=B},
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:[LP$,_.Oc,_.qL3,a1Z],_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 _.m4(_.m4(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var B=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,B-this._physicalCount)},set _virtualStart(B){B=this._clamp(B,0,this._maxVirtualStart);this.grid&&(B-=B%this._itemsPerRow);this._virtualStartVal=B},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(B){B%=this._physicalCount;B<0&&(B=this._physicalCount+B);this.grid&&(B-=B%this._itemsPerRow);this._physicalStartVal=B},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(B){this._physicalCountVal=B},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 B=this._firstVisibleIndexVal;if(B==null){var c=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
B=this._iterateItems(function(x,P){c+=this._getPhysicalSizeIncrement(x);if(c>this._scrollPosition)return this.grid?P-P%this._itemsPerRow:P;if(this.grid&&this._virtualCount-1===P)return P-P%this._itemsPerRow})||0}return B},
get lastVisibleIndex(){var B=this._lastVisibleIndexVal;if(B==null){if(this.grid)B=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var c=this._physicalTop+this._scrollOffset;this._iterateItems(function(x,P){c<this._scrollBottom&&(B=P);c+=this._getPhysicalSizeIncrement(x)})}this._lastVisibleIndexVal=B}return B},
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,_.N_);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(B){this.style.webkitOverflowScrolling=B===this?"touch":"";this.style.overflowY=B===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.N_)},
updateViewportBoundaries:function(){var B=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(B["padding-top"],10);this._isRTL=B.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var B=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),c=B-this._scrollPosition,x=c>=0;this._scrollPosition=B;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(c)>this._physicalSize&&this._physicalSize>0?(c-=this._scrollOffset,x=Math.round(c/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=x,this._physicalStart+=x,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(B=this._getReusables(x),x?(this._physicalTop=B.physicalTop,this._virtualStart+=B.indexes.length,this._physicalStart+=B.indexes.length):(this._virtualStart=this._virtualStart-B.indexes.length,this._physicalStart=this._physicalStart-B.indexes.length),this._update(B.indexes,x?null:B.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),l4))},
_getReusables:function(B){var c=[],x=this._hiddenContentSize*this._ratio,P=this._virtualStart,Y=this._virtualEnd,g=this._physicalCount,k=this._physicalTop+this._scrollOffset;var n=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,d=this._scrollBottom;if(B){var q=this._physicalStart;n=b-k}else q=this._physicalEnd,n-=d;for(;;){var C=this._getPhysicalSizeIncrement(q);n-=C;if(c.length>=g||n<=x)break;if(B){if(Y+c.length+1>=this._virtualCount)break;if(k+C>=b-this._scrollOffset)break;c.push(q);
k+=C;q=(q+1)%g}else{if(P-c.length<=0)break;if(k+this._physicalSize-C<=d)break;c.push(q);k-=C;q=q===0?g-1:q-1}}return{indexes:c,physicalTop:k-this._scrollOffset}},
_update:function(B,c){if(!(B&&B.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(B);this._updateMetrics(B);if(c)for(;c.length;)B=c.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(B);this._positionItems();this._updateScrollerSize()}},
_createPool:function(B){this._ensureTemplatized();var c,x=Array(B);for(c=0;c<B;c++){var P=this.stamp(null);x[c]=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}return x},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(B){B=this._clamp(this._physicalCount+B,3,this._virtualCount-this._virtualStart);B=this._convertIndexToCompleteRow(B);if(this.grid){var c=B%this._itemsPerRow;c&&B-c<=this._physicalCount&&(B+=this._itemsPerRow);B-=c}B-=this._physicalCount;c=Math.round(this._physicalCount*.5);if(!(B<0)){if(B>0){c=window.performance.now();[].push.apply(this._physicalItems,this._createPool(B));for(var x=0;x<B;x++)this._physicalSizes.push(0);this._physicalCount+=B;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=B);this._update();this._templateCost=(window.performance.now()-c)/B;c=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||c===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,c)),GK4):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,c),l4))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var B=this._getReusables(!0);this._physicalTop=B.physicalTop;this._virtualStart+=B.indexes.length;this._physicalStart+=B.indexes.length;this._update(B.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 B={__key__:!0};B[this.as]=!0;B[this.indexAs]=!0;B[this.selectedAs]=!0;B.tabIndex=!0;this._instanceProps=B;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(B,c){typeof c!=="undefined"&&(this.notifyResize(),_.b9(),B&&this._updateGridMetrics())},
_itemsChanged:function(B){if(B.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,
_.N_);else if(B.path==="items.splices"){this._adjustVirtualIndex(B.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(B.value.indexSplices.some(function(x){return x.addedCount>0||x.removed.length>0})){var c=this._getActiveElement();
this.contains(c)&&c.blur()}B=B.value.indexSplices.some(function(x){return x.index+x.addedCount>=this._virtualStart&&x.index<=this._virtualEnd},this);
this._isClientFull()&&!B||this._debounce("_render",this._render,_.N_)}else B.path!=="items.length"&&this._forwardItemPath(B.path,B.value)},
_forwardItemPath:function(B,c){B=B.slice(6);var x=B.indexOf(".");x===-1&&(x=B.length);var P,Y=this.modelForElement(this._offscreenFocusedItem),g=parseInt(B.substring(0,x),10);if(P=this._isIndexRendered(g)){var k=this._getPhysicalIndex(g);var n=this.modelForElement(this._physicalItems[k])}else Y&&(n=Y);n&&n[this.indexAs]===g&&(B=B.substring(x+1),B=this.as+(B?"."+B:""),n._setPendingPropertyOrPath(B,c,!1,!0),n._flushProperties&&n._flushProperties(),P&&(this._updateMetrics([k]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(B){B.forEach(function(c){c.removed.forEach(this._removeItem,this);c.index<this._virtualStart&&(c=Math.max(c.addedCount-c.removed.length,c.index-this._virtualStart),this._virtualStart+=c,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=c))},this)},
_removeItem:function(B){this.$.selector.deselect(B);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===B&&this._removeFocusedItem()},
_iterateItems:function(B,c){var x,P;if(arguments.length===2&&c)for(P=0;P<c.length;P++){var Y=c[P];var g=this._computeVidx(Y);if((x=B.call(this,Y,g))!=null)return x}else{Y=this._physicalStart;for(g=this._virtualStart;Y<this._physicalCount;Y++,g++)if((x=B.call(this,Y,g))!=null)return x;for(Y=0;Y<this._physicalStart;Y++,g++)if((x=B.call(this,Y,g))!=null)return x}},
_computeVidx:function(B){return B>=this._physicalStart?this._virtualStart+(B-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+B},
_assignModels:function(B){this._iterateItems(function(c,x){var P=this._physicalItems[c],Y=this.items&&this.items[x];if(Y!=null){var g=this.modelForElement(P);g.__key__=null;this._forwardProperty(g,this.as,Y);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(Y));this._forwardProperty(g,this.indexAs,x);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===x?0:-1);this._physicalIndexForKey[g.__key__]=c;g._flushProperties&&g._flushProperties(!0);P.removeAttribute("hidden")}else P.setAttribute("hidden",
"")},B)},
_updateMetrics:function(B){_.b9();var c=0,x=0,P=this._physicalAverageCount,Y=this._physicalAverage;this._iterateItems(function(g){x+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;c+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},B);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(x=this._itemsPerRow===1?x:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+c-x,this._itemsPerRow=1);this._physicalAverageCount!==P&&(this._physicalAverage=Math.round((Y*P+c)/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 B=this._physicalTop;if(this.grid){var c=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(x,P){var Y=Math.floor(P%this._itemsPerRow*this._itemWidth+c);this._isRTL&&(Y*=-1);this.translate3d(Y+"px",B+"px",0,this._physicalItems[x]);this._shouldRenderNextRow(P)&&(B+=this._rowHeight)})}else this._iterateItems(function(x){this.translate3d(0,B+"px",0,this._physicalItems[x]);
B+=this._physicalSizes[x]})},
_getPhysicalSizeIncrement:function(B){return this.grid?this._computeVidx(B)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[B]},
_shouldRenderNextRow:function(B){return B%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var B=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(B!==0){this._physicalTop=this._physicalTop-B;var c=this._scrollPosition;!AWd&&c>0&&this._resetScrollPosition(c-B)}},
_resetScrollPosition:function(B){this.scrollTarget&&B>=0&&(this._scrollPosition=this._scrollTop=B)},
_updateScrollerSize:function(B){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((B=(B=(B=B||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(B){return this.scrollToIndex(this.items.indexOf(B))},
scrollToIndex:function(B){if(!(typeof B!=="number"||B<0||B>this.items.length-1)&&(_.b9(),this._physicalCount!==0)){B=this._clamp(B,0,this._virtualCount-1);if(!this._isIndexRendered(B)||B>=this._maxVirtualStart)this._virtualStart=this.grid?B-this._itemsPerRow*2:B-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var c=this._physicalStart,x=this._virtualStart,P=0,Y=this._hiddenContentSize;x<B&&
P<=Y;)P+=this._getPhysicalSizeIncrement(c),c=(c+1)%this._physicalCount,x++;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)},_.N_)},
selectItem:function(B){return this.selectIndex(this.items.indexOf(B))},
selectIndex:function(B){if(!(B<0||B>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(B)){var c=this.modelForElement(this._physicalItems[this._getPhysicalIndex(B)]);c&&(c[this.selectedAs]=!0);this.updateSizeForIndex(B)}this.$.selector.selectIndex(B)}},
deselectItem:function(B){return this.deselectIndex(this.items.indexOf(B))},
deselectIndex:function(B){B<0||B>=this._virtualCount||(this._isIndexRendered(B)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(B)])[this.selectedAs]=!1,this.updateSizeForIndex(B)),this.$.selector.deselectIndex(B))},
toggleSelectionForItem:function(B){return this.toggleSelectionForIndex(this.items.indexOf(B))},
toggleSelectionForIndex:function(B){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(B):this.$.selector.isSelected(this.items[B]))?this.deselectIndex(B):this.selectIndex(B)},
clearSelection:function(){this._iterateItems(function(B){this.modelForElement(this._physicalItems[B])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(B){(B?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(B){var c=this.modelForElement(B.target);if(c){var x=_.m4(B).path[0];B=this._getActiveElement();var P=this._physicalItems[this._getPhysicalIndex(c[this.indexAs])];if(x.localName!=="input"&&x.localName!=="button"&&x.localName!=="select"){x=c.tabIndex;c.tabIndex=-100;var Y=B?B.tabIndex:-1;c.tabIndex=x;B&&P!==B&&P.contains(B)&&Y!==-100||this.toggleSelectionForItem(c[this.as])}}},
_multiSelectionChanged:function(B){this.clearSelection();this.$.selector.multi=B},
updateSizeForItem:function(B){return this.updateSizeForIndex(this.items.indexOf(B))},
updateSizeForIndex:function(B){if(!this._isIndexRendered(B))return null;this._updateMetrics([this._getPhysicalIndex(B)]);this._positionItems();return null},
_manageFocus:function(){var B=this._focusedVirtualIndex;B>=0&&B<this._virtualCount?this._isIndexRendered(B)?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(B){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(B/this._itemsPerRow)*this._itemsPerRow:B},
_isIndexRendered:function(B){return B>=this._virtualStart&&B<=this._virtualEnd},
_isIndexVisible:function(B){return B>=this.firstVisibleIndex&&B<=this.lastVisibleIndex},
_getPhysicalIndex:function(B){return(this._physicalStart+(B-this._virtualStart))%this._physicalCount},
focusItem:function(B){this._focusPhysicalItem(B)},
_focusPhysicalItem:function(B){if(!(B<0||B>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(B)||this.scrollToIndex(B);var c=this._physicalItems[this._getPhysicalIndex(B)],x=this.modelForElement(c),P;x.tabIndex=-100;c.tabIndex===-100&&(P=c);P||(P=_.m4(c).querySelector('[tabindex="-100"]'));x.tabIndex=0;this._focusedVirtualIndex=B;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 B=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var c=this.stamp(null);this._focusBackfillItem=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}this._offscreenFocusedItem=this._physicalItems[B];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[B]=this._focusBackfillItem;this._focusedPhysicalIndex=B;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var B=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),c=this._physicalItems[B];if(c){var x=this.modelForElement(c),P=this.modelForElement(this._offscreenFocusedItem);x[this.as]===P[this.as]?(this._focusBackfillItem=c,x.tabIndex=-1,this._physicalItems[B]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(B){B=this.modelForElement(B.target);var c=this.modelForElement(this._focusedItem),x=this._offscreenFocusedItem!==null,P=this._focusedVirtualIndex;B&&(c===B?this._isIndexVisible(P)||this.scrollToIndex(P):(this._restoreFocusedItem(),c&&(c.tabIndex=-1),B.tabIndex=0,this._focusedVirtualIndex=P=B[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(P),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],x&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(B){switch(B.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&B.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&&B.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(B)}},
_clamp:function(B,c,x){return Math.min(x,Math.max(c,B))},
_debounce:function(B,c,x){this._debouncers=this._debouncers||{};this._debouncers[B]=_.s5(this._debouncers[B],x,c.bind(this));_.pg(this._debouncers[B])},
_forwardProperty:function(B,c,x){B._setPendingProperty(c,x)},
_forwardHostPropV2:function(B,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&this.modelForElement(x).forwardHostProp(B,c)},this)},
_notifyInstancePropV2:function(B,c,x){Q2o(this.as,c)&&(B=B[this.indexAs],c==this.as&&(this.items[B]=x),this.notifyPath(Xp(this.as,"items."+B,c),x))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(B,c,x){c.indexOf(this.as+".")===0&&this.notifyPath("items."+B.__key__+"."+c.slice(this.as.length+1),x)},
_forwardParentPath:function(B,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&this.modelForElement(x).notifyPath(B,c)},this)},
_forwardParentProp:function(B,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&(this.modelForElement(x)[B]=c)},this)},
_getActiveElement:function(){var B=this._itemsParent.node.domHost;return _.m4(B?B.root:document).activeElement},
_scrollTargetChanged:function(B,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(c)if(B==="document")this.scrollTarget=this._doc;else if(typeof B==="string"){var x,P;this.scrollTarget=(c=(P=(x=this.domHost)==null?void 0:x.polymerController)!=null?P:this.domHost)&&c.$?c.$[B]:_.m4(this.ownerDocument).querySelector("#"+B)}else this._isValidScrollTarget()&&(this._oldScrollTarget=B,this._toggleScrollListener(this._shouldHaveListener,B))}});var uBn;var De5;var rWm=function(B,c,x,P){B-=x;c-=P;return Math.sqrt(B*B+c*c)},R_I=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
JeA.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var WvC=function(B){B.maxRadius=0;B.mouseDownStart=0;B.mouseUpStart=0;B.xStart=0;B.yStart=0;B.xEnd=0;B.yEnd=0;B.containerMetrics=new JeA(B.element)};
lDX.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var B=R_I()-this.mouseDownStart;this.mouseUpStart&&(B-=this.mouseUpElapsed);return B},get mouseUpElapsed(){return this.mouseUpStart?R_I()-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 B=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(B*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-B/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var B=this.radius/(this.containerMetrics.size/2);var c=this.xNow-this.containerMetrics.width/2;var x=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+c+"px, "+x+"px)";this.waveContainer.style.transform="translate3d("+c+"px, "+x+"px, 0)";this.wave.style.webkitTransform="scale("+B+","+B+")";this.wave.style.transform="scale3d("+B+","+B+",1)"},
downAction:function(B){var c=this.containerMetrics.width/2,x=this.containerMetrics.height/2;WvC(this);this.mouseDownStart=R_I();this.center?(this.xStart=c,this.yStart=x):(this.xStart=B?B.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=B?B.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=c,this.yEnd=x);B=this.containerMetrics;c=this.xStart;x=this.yStart;this.maxRadius=Math.max(rWm(c,x,0,0),rWm(c,x,
B.width,0),rWm(c,x,0,B.height),rWm(c,x,B.width,B.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=R_I())},
remove:function(){_.m4(_.m4(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Ni({_template:function(){if(De5!==void 0)return De5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;uBn===void 0&&(uBn=document.createElement("template"));var P=uBn;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return De5=B},
is:"tp-yt-paper-ripple",behaviors:[_.VT],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(){_.m4(this).parentNode.nodeType==11?this.keyEventTarget=_.m4(this).getOwnerRoot().host:this.keyEventTarget=_.m4(this).parentNode;var B=this.keyEventTarget;this.listen(B,"up","uiUpAction");this.listen(B,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(B){B.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var B=0;B<this.ripples.length;++B)if(!this.ripples[B].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(B){this.noink||this.downAction(B)},
downAction:function(B){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(B),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(B){this.noink||this.upAction(B)},
upAction:function(B){this.holdDown||(this.ripples.forEach(function(c){c.upAction(B)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var B=0;B<this.ripples.length;++B){var c=this.ripples[B];c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var B=new lDX(this);_.m4(this.$.waves).appendChild(B.waveContainer);this.$.background.style.backgroundColor=B.color;this.ripples.push(B);this._setAnimating(!0);return B},
removeRipple:function(B){var c=this.ripples.indexOf(B);c<0||(this.ripples.splice(c,1),B.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var B;for(B=0;B<this.ripples.length;++B){var c=this.ripples[B];c.draw();this.$.background.style.opacity=c.outerOpacity;c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}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(B,c){c!==void 0&&(B?this.downAction():this.upAction())}});var A4={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(B){wy._downHandler.call(this,B);this.pressed&&this.ensureRipple(B)},
ensureRipple:function(B){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var c=this._rippleContainer||this.root;c&&_.m4(c).appendChild(this._ripple);if(B){c=_.m4(this._rippleContainer||this);var x=_.m4(B).rootTarget;c.deepContains(x)&&this._ripple.uiDownAction(B)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(B){this.hasRipple()&&(this._ripple.noink=B)}};var e_3={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 B=1;this.disabled?B=0:this.active||this.pressed?B=4:this.receivedFocusFromKeyboard&&(B=3);this._setElevation(B)},
_computeKeyboardClass:function(B){this.toggleClass("keyboard-focus",B)},
_spaceKeyDownHandler:function(B){wy._spaceKeyDownHandler.call(this,B);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(B){wy._spaceKeyUpHandler.call(this,B);this.hasRipple()&&this._ripple.uiUpAction()}},B$t=[smt,
_.t4,A4,e_3];_.cby={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(B){B&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=B)},
_createRipple:function(){var B=A4._createRipple();B.id="ink";B.setAttribute("center","");B.classList.add("circle");return B}};
_.xvZ=[smt,_.t4,A4,_.cby];_.PR5=[_.xvZ,XH3,{_checkedChanged:function(){kl5._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){A4._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var YyQ;var a_W;var gx4=function(){};
_.a=gx4.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._buttonStateChanged=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._createRipple=function(){};
_.a._noinkChanged=function(){};
_.a._computeKeyboardClass=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
_.a._setElevation=function(){};
gx4=_.Ni({_template:function(){if(a_W!==void 0)return a_W;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;YyQ===void 0&&(YyQ=document.createElement("template"));var P=YyQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return a_W=B},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[B$t],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?e_3._calculateElevation.apply(this):this._setElevation(0)}});var sFI;var pvQ;var kjI={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(B){_.T("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(B)},
_onDialogClickWrapped:function(B){_.T("dialog_behavior_no_tap_killswitch")||this._onDialogClick(B)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(B,c){c&&(B?(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(B){B?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(B){this.closingReason=this.closingReason||{};this.closingReason.confirmed=B},
_onDialogClick:function(B){for(var c=_.m4(B).path,x=0,P,Y=c.indexOf((P=this.hostElement)!=null?P:this);x<Y;x++)if(P=c[x],P.hasAttribute&&(P.hasAttribute("dialog-dismiss")||P.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(P.hasAttribute("dialog-confirm"));this.close();B.stopPropagation();break}}},XvI=[_.ii,
kjI];var $vS=document.createElement("template");_.I($vS,'<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($vS.content);var nxQ=document.createElement("template");_.I(nxQ,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(nxQ.content);_.Ni({_template:function(){if(pvQ!==void 0)return pvQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;sFI===void 0&&(sFI=document.createElement("template"));var P=sFI;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return pvQ=B},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[XvI,CA5],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 b3I;var Kpn;_.Ni({_template:function(){if(Kpn!==void 0)return Kpn;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;b3I===void 0&&(b3I=document.createElement("template"));var P=b3I;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Kpn=B},
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 B,c,x;if(((B=window.ShadyDOM)==null?void 0:B.noPatch)!==!0&&((c=window.ShadyDOM)==null?void 0:c.noPatch)!=="on-demand"||((x=this.__shady_parentNode)==null?void 0:x.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(kjI)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var jFI=_.r2(['<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>']),UvF=_.Xfm(jFI);UvF.setAttribute("style","display: none;");document.head.appendChild(UvF.content);var dvQ;var qyW;var CRn;var hmm;_.Ni({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[oI],configure:function(B){var c=B.node,x=c.getBoundingClientRect().height;return this._effect=new KeyframeEffect(c,[{height:x/2+"px"},{height:x+"px"}],this.timingFromConfig(B))}});
_.Ni({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[oI],configure:function(B){var c=B.node,x=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:x/2+"px"},{width:x+"px"}],this.timingFromConfig(B))}});
_.Ni({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[oI],configure:function(B){var c=B.node,x=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:x+"px"},{width:x-x/20+"px"}],this.timingFromConfig(B))}});
_.Ni({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[oI],configure:function(B){var c=B.node,x=c.getBoundingClientRect().height;this.setPrefixedProperty(c,"transformOrigin","0 0");return this._effect=new KeyframeEffect(c,[{height:x+"px",transform:"translateY(0)"},{height:x/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(B))}});var ui={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},mvW=function(){};
_.a=mvW.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._focusBlurHandler=function(){};
_.a._changedControlState=function(){};
_.a._setFocused=function(){};
mvW=_.Ni({_template:function(){if(hmm!==void 0)return hmm;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;CRn===void 0&&(CRn=document.createElement("template"));var P=CRn;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return hmm=B},
is:"tp-yt-paper-menu-button",behaviors:[_.VT,_.t4],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:ui.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:ui.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:ui.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 B=_.m4(this.$.content).getDistributedNodes(),c=0,x=B.length;c<x;c++)if(B[c].nodeType===Node.ELEMENT_NODE)return B[c]},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(B,c){B?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):c!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(B){_.t4._disabledChanged.apply(this,arguments);B&&this.opened&&this.close()},
__onIronOverlayCanceled:function(B){var c=this.$.trigger;_.m4(B.detail).path.indexOf(c)>-1&&B.preventDefault()}});
Object.keys(ui).forEach(function(B){mvW[B]=ui[B]});var T$5=_.Nk.IronButtonState,VAm=(0,_.Tg)(HTMLElement);
_.Ni({_template:function(){if(qyW!==void 0)return qyW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;dvQ===void 0&&(dvQ=document.createElement("template"));var P=dvQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return qyW=B},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[T$5,_.t4,A4,_.II,_.li],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(B){var c=(0,_.jO)(this);c.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:B});c.shadowRoot.appendChild(B);return VAm.prototype._attachDom.call(this,B)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var B=this.contentElement;B&&B.selectedItem&&this._setSelectedItem(B.selectedItem)},
get contentElement(){for(var B=_.m4(this.$.content).getDistributedNodes(),c=0,x=B.length;c<x;c++)if(B[c].nodeType===Node.ELEMENT_NODE)return B[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(B){this._setSelectedItem(B.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(B){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)===this&&this.open()},
_selectedItemChanged:function(B){var c="";B?c=B.label||B.getAttribute("label")||B.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(B,c){return c?c:B?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var B=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",B)},
_computeLabelClass:function(B,c,x){var P="label";if(B)x&&(P+=" label-is-hidden");else if(x||c)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 tA0;var wvd;_.Ni({is:"tp-yt-paper-icon-button",_template:function(){if(wvd!==void 0)return wvd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;tA0===void 0&&(tA0=document.createElement("template"));var P=tA0;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return wvd=B},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.xvZ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(B,c){var x=this.getAttribute("aria-label");x&&c!=x||this.setAttribute("aria-label",B)}});var N$3;var I_3;_.Dy=[smt,_.t4,{hostAttributes:{role:"option",tabindex:"0"}}];_.Ni({_template:function(){if(I_3!==void 0)return I_3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;N$3===void 0&&(N$3=document.createElement("template"));var P=N$3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return I_3=B},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Dy]});var Jbt;var Wpt;var l_y={attached:function(){this.fire("addon-attached")},
update:function(){}};var Exn=1,O3I=1,oxd=1,QF3=[_.t4,_.VT,{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();!B6&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(B,c){B?B=B+" "+c:B=c;return B},
_onAddonAttached:function(B){B=_.m4(B).rootTarget;if(B.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,B.id);else{var c="paper-input-add-on-"+O3I++;B.id=c;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,c)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(B){_.t4._focusBlurHandler.call(this,B);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var B=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",B);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(B){try{var c=this.inputElement.selectionStart;this.value=B;this.inputElement.selectionStart=c;this.inputElement.selectionEnd=c}catch(x){this.value=B}},
_computeAlwaysFloatLabel:function(B,c){return c||B},
_updateAriaLabelledBy:function(){var B=_.m4(this.root).querySelector("label");if(B){if(B.id)var c=B.id;else c="paper-input-label-"+Exn++,B.id=c;this._ariaLabelledBy=c}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+oxd++)},
_onChange:function(B){this.shadowRoot&&this.fire(B.type,{sourceEvent:B},{node:this,bubbles:B.bubbles,cancelable:B.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var B=document.activeElement;B instanceof HTMLElement&&B!==document.body&&B!==document.documentElement||this._focusableElement.focus()}}}];var Fpd;var vxt;_.Ni({_template:function(){if(vxt!==void 0)return vxt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Fpd===void 0&&(Fpd=document.createElement("template"));var P=Fpd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return vxt=B},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[l_y],properties:{_charCounterStr:{type:String,value:"0"}},update:function(B){if(B.inputElement){B.value=B.value||"";var c=B.value.toString().length.toString();B.inputElement.hasAttribute("maxlength")&&(c+="/"+B.inputElement.getAttribute("maxlength"));this._charCounterStr=c}}});var zm9;var Sy9;_.Ni({_template:function(){if(Sy9!==void 0)return Sy9;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;zm9===void 0&&(zm9=document.createElement("template"));var P=zm9;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Sy9=B},
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 a1(this.attrForValue)},get _inputElement(){return _.m4(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(B){this._addons||(this._addons=[]);B=B.target;this._addons.indexOf(B)===-1&&(this._addons.push(B),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(B){this._handleValueAndAutoValidate(B.target)},
_onValueChanged:function(B){var c=B.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,c.value===void 0||c.value===""))return;this._handleValueAndAutoValidate(B.target)},
_handleValue:function(B){var c=this._inputElementValue;c||c===0||B.type==="number"&&!B.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:B,value:c,invalid:this.invalid})},
_handleValueAndAutoValidate:function(B){this.autoValidate&&B&&(this.invalid=!(B.validate?B.validate(this._inputElementValue):B.checkValidity()));this._handleValue(B)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(B){if(this._addons)for(var c,x=0;c=this._addons[x];x++)c.update(B)},
_computeInputContentClass:function(B,c,x,P,Y){var g="input-content";B?(Y&&(g+=" label-is-hidden"),P&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(B=this.querySelector("label"),c||Y?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",P?g+=" is-invalid":x&&(g+=" label-is-highlighted")):(B&&(this.$.labelAndInputContainer.style.position="relative"),P&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));x&&(g+=" focused");return g},
_computeUnderlineClass:function(B,c){var x="underline";c?x+=" is-invalid":B&&(x+=" is-highlighted");return x},
_computeAddOnContentClass:function(B,c){var x="add-on-content";c?x+=" is-invalid":B&&(x+=" is-highlighted");return x}});var yb3;var GjS;_.Ni({_template:function(){if(GjS!==void 0)return GjS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;yb3===void 0&&(yb3=document.createElement("template"));var P=yb3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return GjS=B},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[l_y],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(B){this._setInvalid(B.invalid)}});_.Ni({is:"tp-yt-paper-input",_template:function(){if(Wpt!==void 0)return Wpt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Jbt===void 0&&(Jbt=document.createElement("template"));var P=Jbt;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Wpt=B},
behaviors:[QF3,_.II],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 MAI;var LpW;_.Ni({_template:function(){if(LpW!==void 0)return LpW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=
B.content,x=c.insertBefore;MAI===void 0&&(MAI=document.createElement("template"));var P=MAI;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return LpW=B},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Dy]});var Z3n;var H30;_.Ni({_template:function(){if(H30!==void 0)return H30;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;Z3n===void 0&&(Z3n=document.createElement("template"));var P=Z3n;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return H30=B},
is:"tp-yt-paper-item-body"});var f_t;var i3y;var Abm=function(){};
_.a=Abm.prototype;_.a.indexOf=function(){};
_.a.selectPrevious=function(){};
_.a.selectNext=function(){};
_.a.selectIndex=function(){};
_.a.forceSynchronousItemUpdate=function(){};
_.a._checkFallback=function(){};
_.a._addListener=function(){};
_.a._removeListener=function(){};
_.a._activateEventChanged=function(){};
_.a._updateItems=function(){};
_.a._selectSelected=function(){};
_.a._filterItem=function(){};
_.a._valueToItem=function(){};
_.a._valueToIndex=function(){};
_.a._indexToValue=function(){};
_.a._valueForItem=function(){};
_.a._observeItems=function(){};
_.a._itemActivate=function(){};
_.a.multiChanged=function(){};
_.a._updateAttrForSelected=function(){};
_.a._updateSelected=function(){};
_.a._selectMulti=function(){};
_.a._selectionChange=function(){};
_.a._toggleSelected=function(){};
_.a._valuesToItems=function(){};
_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a.select=function(){};
_.a._resetTabindices=function(){};
_.a._updateMultiselectable=function(){};
_.a._focusWithKeyboardEvent=function(){};
_.a._clearSearchText=function(){};
_.a._focusPrevious=function(){};
_.a._focusNext=function(){};
_.a._applySelection=function(){};
_.a._focusedItemChanged=function(){};
_.a._onIronItemsChanged=function(){};
_.a._onShiftTabDown=function(){};
_.a._onFocus=function(){};
_.a._onUpKey=function(){};
_.a._onDownKey=function(){};
_.a._onEscKey=function(){};
_.a._onKeydown=function(){};
_.a._activateHandler=function(){};
_.a._disabledChanged=function(){};
_.a._setSelectedItem=function(){};
_.a._setItems=function(){};
_.a._setSelectedItems=function(){};
_.a._setFocusedItem=function(){};
Abm=_.Ni({_template:function(){if(i3y!==void 0)return i3y;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;f_t===void 0&&(f_t=document.createElement("template"));var P=f_t;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return i3y=B},
is:"tp-yt-paper-listbox",behaviors:[Kln],hostAttributes:{role:"listbox"}});var u54;var Dvn;var rbQ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(B,c){return[B||c?"active":"",c?"cooldown":""].join(" ")},
__activeChanged:function(B,c){this.__setAriaHidden(!B);this.__coolingDown=!B&&c},
__altChanged:function(B){this.setAttribute("aria-label",B||"loading")},
__setAriaHidden:function(B){B?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Ni({_template:function(){if(Dvn!==void 0)return Dvn;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;u54===void 0&&(u54=document.createElement("template"));var P=u54;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Dvn=B},
is:"tp-yt-paper-spinner",behaviors:[rbQ]});var RmW;var emm;_.Ni({_template:function(){if(emm!==void 0)return emm;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;RmW===void 0&&(RmW=document.createElement("template"));var P=RmW;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return emm=B},
is:"tp-yt-paper-spinner-lite",behaviors:[rbQ]});var BcS;var ca4;_.Ni({_template:function(){if(ca4!==void 0)return ca4;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;BcS===void 0&&(BcS=document.createElement("template"));var P=BcS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return ca4=B},
is:"tp-yt-paper-tab",behaviors:[_.t4,_.Nk.IronButtonState,A4],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 B=_.m4(this).parentNode;return!!B&&!!B.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(B){if(this.link){var c=this.queryEffectiveChildren("a");c&&B.target!==c&&c.click()}}});var xsd;var PjZ;var Yr9=_.r2(['<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>']),asy=_.Xfm(Yr9);document.head.appendChild(asy.content);_.Ni({_template:function(){if(PjZ!==void 0)return PjZ;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;xsd===void 0&&(xsd=document.createElement("template"));var P=xsd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return PjZ=B},
is:"tp-yt-paper-tabs",behaviors:[_.Oc,_.U_t],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(B){_.m4(this).querySelectorAll("tp-yt-paper-tab").forEach(B?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(B){B.setAttribute("noink","")},
_removeNoinkAttribute:function(B){B.removeAttribute("noink")},
_computeScrollButtonClass:function(B,c,x,P){return!c||x?"hidden":B?P?"hidden":"not-visible":""},
_computeTabsContentClass:function(B,c){var x="tabs-content";B&&(x+=" scrollable");if(!B||c)x+=" fit-container";return x},
_computeSelectionBarClass:function(B,c){var x="selection-bar";B?x+=" hidden":c&&(x+=" align-bottom");return x},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(B){return""+B},
_onIronSelect:function(B){this._tabChanged(B.detail.item,this._previousTab);this._previousTab=B.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();_.Ec._activateHandler.apply(this,arguments)},
_scheduleActivation:function(B,c){this._pendingActivationItem=B;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,c)},
_delayedActivationHandler:function(){var B=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;B.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(B){B.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(B,c){this.scrollable&&this._affectScroll(c&&-c.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(B){this.$.tabsContainer.scrollLeft+=B;B=this.$.tabsContainer.scrollLeft;this._leftHidden=B===0||this.hideScrollButtons;this._rightHidden=B===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(B,c){if(B){var x=this.$.tabsContent.getBoundingClientRect(),P=x.width,Y=B.getBoundingClientRect();x=Y.left-x.left;this._pos={width:this._calcPercent(Y.width,P),left:this._calcPercent(x,P)};if(this.noSlide||c==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=c.getBoundingClientRect();c=this.items.indexOf(c);B=this.items.indexOf(B);this.$.selectionBar.classList.add("expand");
B=c<B;this._isRTL&&(B=!B);B?this._positionBar(this._calcPercent(Y.left+Y.width-g.left,P)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-Y.left,P)-5,this._calcPercent(x,P)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Y.width,x)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(B,c){c-=this.$.tabsContainer.scrollLeft;c<0?this.$.tabsContainer.scrollLeft+=c:(c+=B-this.$.tabsContainer.offsetWidth,c>0&&(this.$.tabsContainer.scrollLeft+=c))},
_calcPercent:function(B,c){return 100*B/c},
_positionBar:function(B,c){B=B||0;c=c||0;this._width=B;this._left=c;this.transform("translateX("+c+"%) scaleX("+B/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var B=this.$.selectionBar.classList;B.contains("expand")?(B.remove("expand"),B.add("contract"),this._positionBar(this._pos.width,this._pos.left)):B.contains("contract")&&B.remove("contract")}});var gE3;var svF;_.Ni({_template:function(){if(svF!==void 0)return svF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;gE3===void 0&&(gE3=document.createElement("template"));var P=gE3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return svF=B},
is:"tp-yt-paper-textarea",behaviors:[QF3,_.II],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(B){this.$.input.textarea.selectionStart=B},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(B){this.$.input.textarea.selectionEnd=B},_ariaLabelledByChanged:function(B){this._focusableElement.setAttribute("aria-labelledby",B)},
_ariaDescribedByChanged:function(B){this._focusableElement.setAttribute("aria-describedby",B)},
get _focusableElement(){return this.inputElement.textarea}});var p83;var k23;/*

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 X8F=function(){};
_.a=X8F.prototype;_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._focusedChanged=function(){};
_.a.registered=function(){};
_.a._invalidChanged=function(){};
_.a.hasValidator=function(){};
_.a.validate=function(){};
_.a._getValidity=function(){};
_.a._requiredChanged=function(){};
_.a._valueChanged=function(){};
_.a._checkedChanged=function(){};
_.a._buttonStateChanged=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
X8F=_.Ni({is:"tp-yt-paper-toggle-button",_template:function(){if(k23!==void 0)return k23;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;p83===void 0&&(p83=document.createElement("template"));var P=p83;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return k23=B},
behaviors:[_.PR5],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");_.fl(this,function(){_.WX(this,"pan-y")})},
_ontrack:function(B){B=B.detail;B.state==="start"?this._trackStart(B):B.state==="track"?this._trackMove(B):B.state==="end"&&this._trackEnd(B)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(B){B=B.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+B:B)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+B:B));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 B=A4._createRipple();B.id="ink";B.setAttribute("recenters","");B.classList.add("circle","toggle-ink");return B}});var $s0;var nE3;_.Ni({_template:function(){if(nE3!==void 0)return nE3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;$s0===void 0&&($s0=document.createElement("template"));var P=$s0;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return nE3=B},
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 B=_.m4(this).parentNode,c=_.m4(this).getOwnerRoot(),x;this.for?x=_.m4(c).querySelector("#"+this.for):x=B.nodeType==Node.DOCUMENT_FRAGMENT_NODE?c.host:B;return x},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(B){B==="entry"?this.show():B==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.m4(this).textContent.trim()===""){for(var B=!0,c=_.m4(this).getEffectiveChildNodes(),x=0;x<c.length;x++)if(c[x].textContent.trim()!==""){B=!1;break}if(B)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 B=this.offset;this.marginTop!=14&&this.offset==14&&(B=this.marginTop);var c=this.offsetParent.getBoundingClientRect(),x=this._target.getBoundingClientRect(),P=this.getBoundingClientRect(),Y=(x.width-P.width)/2,g=(x.height-P.height)/2,k=x.left-c.left,n=x.top-c.top;switch(this.position){case "top":var b=k+Y;var d=n-P.height-B;break;case "bottom":b=k+Y;d=n+x.height+B;break;case "left":b=k-P.width-B;d=n+g;break;case "right":b=k+x.width+
B,d=n+g}this.fitToVisibleBounds?(c.left+b+P.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),c.top+d+P.height>window.innerHeight?(this.style.bottom=c.height+"px",this.style.top="auto"):(this.style.top=Math.max(-c.top,d)+"px",this.style.bottom="auto")):(this.style.left=b+"px",this.style.top=d+"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(B){B!==500&&this.updateStyles({"--paper-tooltip-delay-in":B+"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(B){if(B==="entry"&&this.animationEntry!=="")return this.animationEntry;if(B==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[B]&&typeof this.animationConfig[B][0].name==="string"){if(this.animationConfig[B][0].timing&&this.animationConfig[B][0].timing.delay&&this.animationConfig[B][0].timing.delay!==0){var c=this.animationConfig[B][0].timing.delay;B==="entry"?this.updateStyles({"--paper-tooltip-delay-in":c+"ms"}):B==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":c+
"ms"})}return this.animationConfig[B][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 b2n=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(b2n,_.zL);var KTQ=_.RU(b2n,[0,_.rQ]);var ry=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ry,_.zL);var jvI=[3,4],Usm=[5,6];var dsW=[0,jvI,Usm,_.a8F,-1,_.DZ,_.gzI,-1,erA,BPq];var qr3=_.RU(ry,dsW),CjF=_.eJ(dsW);var hbW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(hbW,_.zL);var msy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(msy,_.zL);var Tcn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Tcn,_.zL);var VnQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(VnQ,_.zL);var tn9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(tn9,_.zL);var RI=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(RI,_.zL);RI.prototype.getSource=function(){return _.og(this,1)};
RI.prototype.getMessage=function(){return _.OZ(this,4)};
RI.prototype.getData=function(){return _.PA(this,tn9,8)};var w80=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(w80,_.zL);var eg=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(eg,_.zL);var B7=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(B7,_.zL);var c7=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(c7,_.zL);c7.prototype.getUrl=function(){return _.OZ(this,1)};
c7.prototype.setUrl=function(B){return _.dW(this,1,B)};
c7.prototype.hasUrl=function(){return _.MN(_.hd(this,1))!=null};var NcI=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(NcI,_.zL);var Is9=[3];var Jan=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Jan,_.zL);var x5=function(B){var c=new Jan;return _.Yr(c,2,B)};
Jan.prototype.getLanguage=function(){return F8(this,4,P7)};
var WTd=function(B){var c=x5(1);return _.YX(c,6,P7,B)},P7=[3,
4,5,6];var ls4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ls4,_.zL);var Y5=function(B){var c=new ls4;return _.Yr(c,1,B)},aA=function(B,c){return _.YX(B,2,EEy,c)},EEy=[2,
3,4,5];var O24=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(O24,_.zL);var gJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(gJ,_.zL);var oEn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(oEn,_.zL);var Qvn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Qvn,_.zL);var FT4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(FT4,_.zL);var vEd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(vEd,_.zL);var zb9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(zb9,_.zL);var sP=function(B){return _.PA(B,B7,5)};var Srm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Srm,_.zL);Srm.prototype.getValue=function(){return lJ(this,1)};var yaW=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(yaW,_.zL);var pV=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(pV,_.zL);pV.prototype.getMetadata=function(){return _.vG(this,FT4,7,k5)};
pV.prototype.hasMetadata=function(){return _.To(this,FT4,7,k5)};
var G2S=_.Ba(pV),k5=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Xm=function(B){this.JSC$9983_name_=B;this.files_=[];this.directories_=[];this.directoryMap_={}};
Xm.prototype.getName=function(){return this.JSC$9983_name_};var nV=function(B,c){this.callback_=c;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Xm("");Mnd(this,B,this.rootDirectory_);$5(this)},Mnd=function(B,c,x){for(var P=0;P<c.length;P++){var Y=c[P];
Y.isFile?(B.fileOps_++,Y.file((0,_.wf)(B.handleFileSuccess_,B,x),(0,_.wf)(B.handleFileError_,B))):B.unscannedDirectories_.push(new LT5(Y,x))}},$5=function(B){if(B.unscannedDirectories_.length>0&&B.directoryOps_<5&&!B.hasError_){B.directoryOps_++;
var c=B.unscannedDirectories_.shift(),x=c.entry,P=new Xm(x.name);c=c.parent;c.directoryMap_[P.getName()]=P;c.directories_.push(P);x=x.createReader();x.readEntries((0,_.wf)(B.handleDirectorySuccess_,B,x,P),(0,_.wf)(B.handleDirectoryError_,B))}B.directoryOps_!=0||B.fileOps_!=0||B.unscannedDirectories_.length!=0&&!B.hasError_||B.callback_(B.rootDirectory_.files_,B.rootDirectory_.directories_,B.hasError_)};
nV.prototype.handleDirectorySuccess_=function(B,c,x){Mnd(this,x,c);x.length==0?(this.directoryOps_--,$5(this)):B.readEntries((0,_.wf)(this.handleDirectorySuccess_,this,B,c),(0,_.wf)(this.handleDirectoryError_,this))};
nV.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;$5(this)};
nV.prototype.handleFileSuccess_=function(B,c){B.files_.push(c);this.fileOps_--;$5(this)};
nV.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;$5(this)};
var LT5=function(B,c){this.entry=B;this.parent=c};var ba=function(B){_.V4.call(this);_.wX(B,"drop",this.onObjectsDropped_,!1,this);_.wX(B,"dragenter",this.onFilesDragged_,!1,this);_.wX(B,"dragover",this.onFilesDragged_,!1,this);_.wX(B,"dragleave",this.onDragLeave_,!1,this);_.wX(B,"dragend",this.onDragLeave_,!1,this)};
_.sZ(ba,_.V4);var Z23=function(B,c){_.qf.call(this,"f");this.files=B;this.directories=c};
_.sZ(Z23,_.qf);var H29=function(){_.qf.call(this,"h")};
_.sZ(H29,_.qf);var fs3=function(){_.qf.call(this,"i")};
_.sZ(fs3,_.qf);var i2d=function(){_.qf.call(this,"g")};
_.sZ(i2d,_.qf);ba.prototype.onObjectsDropped_=function(B){var c=this;B.preventDefault();var x=B.event_.dataTransfer;if((B=x&&x.items)&&B.length>0&&B[0].webkitGetAsEntry){x=[];for(var P=[],Y=0;Y<B.length;Y++){var g=B[Y].webkitGetAsEntry();g?x.push(g):P.push(B[Y])}new nV(x,function(k,n,b){b?c.dispatchEvent(new i2d("Error occurred while reading from the file system.")):c.dispatchEvent(new Z23(k,n,P))})}else(B=x&&x.files)&&this.dispatchEvent(new Z23(Array.from(B),[]))};
ba.prototype.onFilesDragged_=function(B){B.type==="dragenter"&&this.dispatchEvent(new H29);B.preventDefault()};
ba.prototype.onDragLeave_=function(){this.dispatchEvent(new fs3)};var AaF=function(B,c){this.JSC$10006_name_=B;this.inputElement_=c};
AaF.prototype.getName=function(){return this.JSC$10006_name_};
AaF.prototype.getInputElement=function(){return this.inputElement_};var KV=function(B,c,x){c=c===void 0?"single_file":c;x=x===void 0?[]:x;_.V4.call(this);this.overlayTarget_=B;this.parentOverlay_=B!=null?B.parentNode:_.df("scotty-overlay-parent");this.selectorType_=c;this.acceptTypes_=x;this.overlay_=uFF(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.w(KV,_.V4);
var uFF=function(B,c,x,P){var Y=document.createElement("input");Y.setAttribute("type","file");Y.setAttribute("name","Filedata");_.wX(Y,"change",B.onFilesSelected_,!1,B);x==="multiple_file"&&(Y.multiple="true");x==="single_directory"&&(Y.webkitdirectory="true");P.length>0&&Y.setAttribute("accept",P.join(","));Y.style.position="absolute";Y.style.overflow="hidden";Y.style.height="0px";Y.style.width="0px";Y.style.opacity="0";Y.setAttribute("aria-hidden","true");Y.setAttribute("tabIndex",-1);if(B.overlayTarget_!=
null)return Y.style.height=c.offsetHeight+"px",Y.style.width=c.offsetWidth+"px",B.parentOverlay_&&(B.parentOverlay_.style.position="relative"),_.EY(Y,c),z1(Y,new _.Jx(c.offsetLeft,c.offsetTop)),Y;B.parentOverlay_.appendChild(Y);return Y};
KV.prototype.click=function(){this.overlay_.click()};
KV.prototype.onFilesSelected_=function(B){a:{try{var c=(new XMLHttpRequest).upload!==void 0;break a}catch(d){}c=!1}if(c){var x;B=Array.from((x=B.target.files)!=null?x:[]);x=[];if(this.selectorType_==="single_directory"&&(_.bJ||up||_.nY)){x=new Xm("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(c=0;c<B.length;c++)for(var P=B[c],Y=P.webkitRelativePath.split("/"),g=x,k=0;k<Y.length;k++){var n=Y[k];if(k==Y.length-1){n!="."&&g.files_.push(P);break}var b=g.directoryMap_[n];b==void 0&&(n=
b=new Xm(n),g.directoryMap_[n.getName()]=n,g.directories_.push(n));g=b}x=x.directories_}this.dispatchEvent(new DsW(B,x,null))}else B=B.target.value,B.match(/^c:\\fakepath\\/i)&&(B=B.substring(12)),this.dispatchEvent(new DsW([],[],new AaF(B,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=uFF(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var DsW=function(B,c){_.qf.call(this,"j");this.files=B;this.directories=c};
_.w(DsW,_.qf);var raZ=function(B){this.uploadUrl_=B};var Rbt=function(){_.V4.call(this)};
_.sZ(Rbt,_.V4);var jP=function(B){_.qf.call(this,B)};
_.sZ(jP,_.qf);var UP=function(B){_.qf.call(this,B)};
_.sZ(UP,_.qf);var eb9=function(B,c,x,P,Y){_.V4.call(this);x=document.createElement("form");x.setAttribute("method",c);x.setAttribute("enctype","multipart/form-data");x.setAttribute("encoding","multipart/form-data");c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","metadata");c.setAttribute("value",Y);x.appendChild(c);x.appendChild(P);this.JSC$10023_form_=x;B=new _.ih(B);_.fS(B,"upload_protocol","multipart");this.JSC$10023_url_=B.toString();this.JSC$10023_request_=new xY;this.state_=
"Ready";this.JSC$10023_errorDescription_=null;this.JSC$10023_eventHandler_=new _.cf(this);_.bW(this,this.JSC$10023_eventHandler_);this.JSC$10023_eventHandler_.listen(this.JSC$10023_request_,"success",this.onTransferSuccess_);this.JSC$10023_eventHandler_.listen(this.JSC$10023_request_,"error",this.onTransferError_)};
_.w(eb9,Rbt);_.a=eb9.prototype;_.a.run=function(){this.state_="Transferring";var B=this.JSC$10023_request_,c=this.JSC$10023_form_;if(B.JSC$9441_active_)throw Error("oe");var x=new _.ih(this.JSC$10023_url_||c.action);B.JSC$9441_form_=c;c=B.JSC$9441_form_;x=_.Ng(x.toString());x!==void 0&&(c.action=x);I39(B)};
_.a.getResponseCode=function(){return null};
_.a.getResponseText=function(){return this.JSC$10023_request_&&this.JSC$10023_request_.getResponseText()||null};
_.a.JSC$25983_getErrorDescription=function(){return this.JSC$10023_errorDescription_};
_.a.cancel=function(){this.JSC$10023_request_&&this.JSC$10023_request_.abort();this.state_="Cancelled";this.dispatchEvent(new jP("o"))};
_.a.pause=function(){};
_.a.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new jP("l"))};
_.a.onTransferError_=function(){this.JSC$10023_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new jP("n"))};var dJ=function(){_.EV.call(this)};
_.w(dJ,_.EV);dJ.prototype.createXhr=function(){var B=_.EV.prototype.createXhr.call(this);B.upload&&(B.upload.onprogress=(0,_.wf)(this.onProgress_,this));return B};
dJ.prototype.onProgress_=function(B){this.dispatchEvent(B)};var B2W=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},xbW=function(B,c){var x=B.attempt_+1;
if(B.maxAttempts_>0&&x>B.maxAttempts_)return!1;x==0?c():B.delayCallId_=JB(function(){B.delayCallId_=null;c()},cE9(B),B);
B.attempt_=x;return!0};
B2W.prototype.reset=function(){this.delayCallId_&&_.xI.clearTimeout(this.delayCallId_);this.attempt_=-1};
var cE9=function(B){var c=250*Math.pow(2,B.attempt_);B.maxDelayMs_>=0&&(c=Math.min(c,B.maxDelayMs_));return c};var O9w=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var qV=function(){_.V4.call(this);this.JSC$10033_request_=this.state_=null;this.JSC$10033_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10033_bytesTransferred_=0;this.retryIterator_=new B2W;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10033_errorDescription_=null;this.JSC$10033_eventHandler_=new _.cf(this);_.bW(this,this.JSC$10033_eventHandler_);this.JSC$10033_url_=this.blob_=null;this.JSC$10033_method_=void 0;this.chunkSize_=this.JSC$10033_metadata_=
this.JSC$10033_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10033_responseText_=this.JSC$10033_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.sZ(qV,Rbt);_.a=qV.prototype;_.a.run=function(){CV(this)};
_.a.getResponseCode=function(){return this.JSC$10033_responseCode_};
_.a.getResponseText=function(){return this.JSC$10033_responseText_};
_.a.JSC$25983_getErrorDescription=function(){return this.JSC$10033_errorDescription_};
_.a.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10033_eventHandler_.removeAll();this.JSC$10033_request_&&this.JSC$10033_request_.abort();this.retryIterator_.reset();var B=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(B==="Upload"||B==="Query")B=new dJ,B.JSC$7842_withCredentials_=this.JSC$10033_withCredentials_,B.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10033_bytesTransferred_=
0;this.dispatchEvent(new jP("o"))}};
_.a.pause=function(){this.pauseRequested_=!0};
var CV=function(B){var c=B.state_;B.pauseRequested_?(B.pauseRequested_=!1,B.stateAfterUnpausing_=c,B.state_="Paused"):xbW(B.retryIterator_,function(){switch(B.state_){case "Start":B.JSC$10033_request_=new dJ;var x=_.wW.clone(B.JSC$10033_headers_);B.blob_.size!=null&&(x["Content-Length"]=B.blob_.size);x=o7O(x);x["X-Goog-Upload-Protocol"]="resumable";x["X-Goog-Upload-Command"]="start";B.JSC$10033_eventHandler_.removeAll();B.JSC$10033_eventHandler_.listen(B.JSC$10033_request_,"complete",B.onStartComplete_);
B.JSC$10033_request_.JSC$7842_withCredentials_=B.JSC$10033_withCredentials_;B.JSC$10033_request_.send(B.JSC$10033_url_,B.JSC$10033_method_,B.JSC$10033_metadata_,x);B.lastCommandResponseCode_=null;B.dispatchEvent(new UP("q"));break;case "Upload":x=B.transferHandle_.uploadUrl_;var P=B.blob_.size;if(Xpd()){var Y=B.chunkSize_;var g=B.offset_+Y>=P;P=kw3(B.blob_,B.offset_,g?P:B.offset_+Y)}else B.offset_=0,P=B.blob_,g=!0;B.JSC$10033_request_=new dJ;B.JSC$10033_request_.JSC$7842_withCredentials_=B.JSC$10033_withCredentials_;
B.JSC$10033_eventHandler_.removeAll();B.JSC$10033_eventHandler_.listen(B.JSC$10033_request_,"progress",B.onUploadProgress_);Y=(0,_.wf)(B.JSC$10035_onUploadComplete_,B,B.offset_+P.size,g);B.JSC$10033_eventHandler_.listen(B.JSC$10033_request_,"complete",Y);B.lastCommandResponseCode_=null;B.dispatchEvent(new UP("q"));g=Object.assign({},B.JSC$10033_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":B.offset_});B.JSC$10033_request_.send(x,"POST",P,g);break;case "Query":B.JSC$10033_request_=
new dJ;B.JSC$10033_eventHandler_.removeAll();B.JSC$10033_eventHandler_.listen(B.JSC$10033_request_,"complete",B.onQueryComplete_);x=Object.assign({},B.JSC$10033_headers_||{},{"X-Goog-Upload-Command":"query"});B.JSC$10033_request_.send(B.transferHandle_.uploadUrl_,"POST","",x);B.lastCommandResponseCode_=null;B.dispatchEvent(new UP("q"));break;default:throw Error("df");}})||h3(B,"Transfer encountered too many consecutive failures.")},h3=function(B,c){B.state_="Error";
B.JSC$10033_errorDescription_=c;B.dispatchEvent(new jP("n"))};
qV.prototype.onStartComplete_=function(B){var c=B.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new UP("r"));if(PUn(c))YBQ(this,c);else if(aOS(c)){B=DM(B.target.getAllResponseHeaders());for(var x in B)_.YI(x.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new jP("m"));x=VD(B,"X-Goog-Upload-URL");B=(B=VD(B,"X-Goog-Upload-Chunk-Granularity"))?parseInt(B,10):1;x===void 0||isNaN(B)||B<=0?h3(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
B)*B,this.transferHandle_=new raZ(x),this.dispatchEvent(new jP("p")),this.state_="Upload",this.retryIterator_.reset(),CV(this))}else CV(this)};
qV.prototype.onUploadProgress_=function(B){this.JSC$10033_bytesTransferred_=this.offset_+B.loaded;this.dispatchEvent(new jP("k"))};
qV.prototype.JSC$10035_onUploadComplete_=function(B,c,x){var P=this,Y,g;return _.X(function(k){switch(k.nextAddress){case 1:Y=x.target;P.lastCommandResponseCode_=Y.getStatus();P.dispatchEvent(new UP("r"));if(gld(Y)||Y.getStatus()==404)return P.JSC$10033_bytesTransferred_=B,YBQ(P,Y),k.return();if(aOS(Y)){k.jumpTo(2);break}if(!(g=P.detectCorruptedBlobEnabled_)){k.jumpTo(3);break}return _.K(k,sEy(P),4);case 4:g=k.yieldResult;case 3:if(g)return h3(P,"Blob has been modified or corrupted."),k.return();
P.requireUploadRequestModification_=Y.getStatus()==400;P.state_="Query";CV(P);return k.return();case 2:if(c)return h3(P,"Got a non-final success response after issuing a finalize command."),k.return();P.JSC$10033_bytesTransferred_=B;P.offset_=B;P.retryIterator_.reset();CV(P);return k.return()}})};
qV.prototype.onQueryComplete_=function(B){var c=B.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new UP("r"));PUn(c)?(c.getStatus()===200&&(this.JSC$10033_bytesTransferred_=this.blob_.size),YBQ(this,c)):aOS(c)?(B=DM(B.target.getAllResponseHeaders()),B=parseInt(VD(B,"X-Goog-Upload-Size-Received"),10),isNaN(B)?h3(this,"Server did not respond with current offset."):B<this.offset_?h3(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
B+"."):this.requireUploadRequestModification_&&this.offset_===B?h3(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<B&&this.retryIterator_.reset(),this.offset_=this.JSC$10033_bytesTransferred_=B,this.state_="Upload",CV(this))):CV(this)};
var YBQ=function(B,c){B.JSC$10033_responseCode_=c.getStatus();var x=DM(c.getAllResponseHeaders());QfA(x);B.JSC$10033_responseText_=c.getResponseText();B.state_="Response received";B.dispatchEvent(new jP("l"))},aOS=function(B){var c=B.getStatus();
B=DM(B.getAllResponseHeaders());B=VD(B,"X-Goog-Upload-Status");return c===200&&B==="active"},gld=function(B){B=DM(B.getAllResponseHeaders());
return VD(B,"X-Goog-Upload-Status")==="final"},PUn=function(B){if(gld(B))return!0;
B=B.getStatus();return B>=400&&B<500},sEy=function(B){var c;
return _.X(function(x){if(x.nextAddress==1){if(!B.blob_||B.originalBlobSize_<=0)return x.return(!1);if(B.blob_.size!==B.originalBlobSize_)return x.return(!0);_.kM(x,2);if(c=kw3(B.blob_,0,1)){var P=new y8,Y=ZWm(P);P.reader_.readAsBinaryString(c);x=_.K(x,Y,4)}else x=x.return(!0);return x}if(x.nextAddress!=2)return x.return(B.blob_.size!==B.originalBlobSize_);_.be(x);return x.return(!0)})};var piy=function(B,c,x,P,Y,g){_.V4.call(this);this.payload_=P;this.JSC$10036_url_=B;this.JSC$10036_method_=c;this.JSC$10036_headers_=x;this.JSC$10036_metadata_=Y;this.encoding_=g||"binary";B=new _.tU;this.boundary_="uploader-"+LS()+"-"+B.JSC$9290_toIsoString();this.JSC$10036_responseText_=this.JSC$10036_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10036_errorDescription_=null;this.JSC$10036_eventHandler_=new _.cf(this);_.bW(this,this.JSC$10036_eventHandler_)};
_.w(piy,Rbt);_.a=piy.prototype;
_.a.run=function(){var B=_.wW.clone(this.JSC$10036_headers_);this.payload_.length!=null&&(B["Content-Length"]=this.payload_.length);B=o7O(B);B["X-Goog-Upload-Protocol"]="multipart";B["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new dJ;this.JSC$10036_eventHandler_.removeAll();this.JSC$10036_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10036_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10036_url_,this.JSC$10036_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10036_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",B)};
_.a.getResponseCode=function(){return this.JSC$10036_responseCode_};
_.a.getResponseText=function(){return this.JSC$10036_responseText_};
_.a.JSC$25983_getErrorDescription=function(){return this.JSC$10036_errorDescription_};
_.a.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10036_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new jP("o")))};
_.a.pause=function(){};
_.a.onTransferProgress_=function(){this.dispatchEvent(new jP("k"))};
_.a.onTransferComplete_=function(B){var c=B.target.getStatus();c===void 0||c===-1?(this.JSC$10036_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new jP("n"))):(this.JSC$10036_responseCode_=c,B=B.target,c=DM(B.getAllResponseHeaders()),QfA(c),this.JSC$10036_responseText_=B.getResponseText(),this.state_="Complete",this.dispatchEvent(new jP("l")))};_.ket=function(B,c,x,P){P=P===void 0?!1:P;if(x instanceof AaF)return new eb9(B,"POST",c,x.getInputElement(),"");if(typeof x==="string"||x instanceof String)return new piy(B,"POST",c,x,"");var Y=new qV(void 0);Y.JSC$10033_url_=B;Y.JSC$10033_method_="POST";Y.JSC$10033_headers_=c;Y.blob_=x;Y.originalBlobSize_=x.size;Y.JSC$10033_metadata_="";P&&(Y.JSC$10033_withCredentials_=P);Y.state_="Start";return Y};var mQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(mQ,_.zL);_.a=mQ.prototype;_.a.getEnableSsEngine=function(){return _.WG(this,2)};
_.a.getEnableAwr=function(){return _.WG(this,3)};
_.a.getAlohaAutoGaRollout=function(){return _.WG(this,5)};
_.a.getEnableConfigurator=function(){return _.WG(this,6)};
_.a.getEnableMweb=function(){return _.WG(this,7)};
var $by=function(){var B=Xin();return _.wx(B,7,!0)};
mQ.prototype.getEnableCtlConsentCheckbox=function(){return _.WG(this,8)};
mQ.prototype.getEnableIframe=function(){return _.WG(this,9)};
var Xin=function(){var B=new mQ;B=_.wx(B,5,!0);B=_.wx(B,2,!0);B=_.wx(B,4,!1);B=_.wx(B,8,!0);return _.wx(B,9,!0)};
mQ.prototype.getEnableScreenshotNudge=function(){return _.WG(this,10)};
var nlS=function(){var B=$by();return _.wx(B,10,!0)};
mQ.prototype.getEnableWebStartupConfigEndpoint=function(){return _.WG(this,11)};
mQ.prototype.getEnableJunkNudge=function(){return _.WG(this,12)};
var BaY=function(){var B=nlS();return _.wx(B,12,!0)};
_.a=mQ.prototype;_.a.getEnableConfiguratorLocale=function(){return _.WG(this,13)};
_.a.getEnableTinyNoPointer=function(){return _.WG(this,14)};
_.a.getEnableSupportSessionLogging=function(){return _.WG(this,15)};
_.a.getEnableFileUploadForScreenshot=function(){return _.WG(this,16)};
_.a.getEnableDirectDeflectionForSingleCategory=function(){return _.WG(this,17)};
_.a.getEnableImageSanitization=function(){return _.WG(this,18)};
_.a.getEnableAlohaBinarySplit=function(){return _.WG(this,19)};
_.a.getEnableDbFeedbackIntents=function(){return _.WG(this,20)};
_.a.getEnableMarkMandatoryFieldsWithRequired=function(){return _.WG(this,21)};
_.a.getEnableFeedbackCategoryCustomUi=function(){return _.WG(this,22)};
_.a.getEnableRealtimeCtl=function(){return _.WG(this,23)};var eWl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(eWl,_.zL);var FvX=[/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 zWA="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 SYl=_.r2(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),yeo=_.r2(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var M17,H97,LvQ,fDl;var bCQ,KHm;
bCQ=function(B,c,x){B.timeOfStartCall=(new Date).getTime();var P=x||_.xI,Y=P.document,g=B.nonce||_.F_(P.document);g&&!B.nonce&&(B.nonce=g);if(B.flow=="help"){var k=_.Gu("document.location.href",P);!B.helpCenterContext&&k&&(B.helpCenterContext=k.substring(0,1200));k=!0;if(c&&JSON&&JSON.stringify){var n=JSON.stringify(c);(k=n.length<=1200)&&(B.psdJson=n)}k||(c={invalidPsd:!0})}c=[B,c,x];P.GOOGLE_FEEDBACK_START_ARGUMENTS=c;x=B.feedbackServerUri||"//www.google.com/tools/feedback";if(k=P.GOOGLE_FEEDBACK_START)k.apply(P,c);
else{P=x+"/load.js?";for(var b in B)c=B[b],c==null||_.xF(c)||(P+=encodeURIComponent(b)+"="+encodeURIComponent(c)+"&");B=Ud(Y).createElement("SCRIPT");g&&B.setAttribute("nonce",g);_.Mg(B,_.kX(P));Y.body.appendChild(B)}};
KHm=function(B,c,x,P){var Y,g;_.X(function(k){Y=x||_.xI;var n=B.serverEnvironment==="DEV",b=x||_.xI;b=B.nonce||_.F_(b.document);n={integrationKeys:{productId:B.productId,feedbackBucket:B.bucket,triggerId:B.triggerId},callbacks:{onClose:B.callback,onLoad:B.onLoadCallback},formContent:{locale:B.locale,disableScreenshot:B.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:B.abuseLink,additionalDataConsent:B.additionalDataConsent},initializationData:{isLocalServer:n,nonce:b,useNightlyRelease:n,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:B.feedbackServerUri,colorScheme:B.colorScheme},extraData:{productVersion:B.productVersion,authUser:B.authuser,configuratorId:B.configuratorId,customZIndex:B.customZIndex,tinyNoPointer:B.tinyNoPointer,
allowNonLoggedInFeedback:B.allowNonLoggedInFeedback,enableAnonymousFeedback:B.enableAnonymousFeedback}};c&&(b=new Map(Object.entries(c)),n.extraData.productSpecificData=b);g=n;return _.K(k,Dwd(g,P,Y),0)})};
_.jE4=function(B,c,x){try{if(B.flow==="help"){var P=B.helpCenterPath.replace(/^\//,"");_.oW(x||window,"https://support.google.com/"+P)}else B.flow==="submit"?bCQ(B,c,x):cBY(B.productId,B.feedbackServerUri).then(function(Y){Y=_.PA(Y,mQ,1);var g=!Coo||(Y==null?void 0:Y.getEnableMweb()),k=!B.tinyNoPointer||(Y==null?void 0:Y.getEnableTinyNoPointer());!Y||Y.getAlohaAutoGaRollout()&&g&&k?KHm(B,c,x,Y):bCQ(B,c,x)},function(Y){Y&&Y.name!=="DuplicateFormError"&&bCQ(B,c,x)})}catch(Y){KHm(B,c,x,null)}};
_.rr("userfeedback.api.startFeedback",_.jE4);var xfq=/https?:\/\/\S+\.\S+/,PKI=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],YVq=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var YXQ=function(B){var c=B.split(""),x=[-263237435,15,c,function(P,Y,g){var k=Y.length;g.forEach(function(n,b,d){this.push(d[b]=Y[(Y.indexOf(n)-Y.indexOf(this[b])+b+k--)%Y.length])},P.split(""))},
function(P,Y){P=(P%Y.length+Y.length)%Y.length;Y.splice(-P).reverse().forEach(function(g){Y.unshift(g)})},
"response",function(){for(var P=64,Y=[];++P-Y.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}Y.push(String.fromCharCode(P))}return Y},
null,12,1540023973,65941107,null,c,function(P,Y){for(P=(P%Y.length+Y.length)%Y.length;P--;)Y.unshift(Y.pop())},
695603893,function(P){for(var Y=P.length;Y;)P.push(P.splice(--Y,1)[0])},
"'[;'[(",function(P,Y){P.push(Y)},
null,function(P,Y,g,k,n){return Y(g,k,n)},
"continuation",c,function(P,Y){if(P.length!=0){Y=(Y%P.length+P.length)%P.length;var g=P[0];P[0]=P[Y];P[Y]=g}},
function(){for(var P=64,Y=[];++P-Y.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}Y.push(String.fromCharCode(P))}return Y},
'"),/]];'];x[7]=x;x[11]=x;x[18]=x;try{(((0,x[15])(x[21]),x[22])(x[11],x[9]),x[22])(x[new Date("1970-01-01T04:30:12.000+04:30")/1E3],x[1]),((0,x[22])(x[11],x[23]),x[4])(x[10],x[18]),(0,x[20])(x[21],x[14])<<(0,x[17])(x[18],x[1]),(0,x[4])(x[8],x[21]),(0,x[19])((0,x[19])((0,x[17])(x[7],x[9]),x[3],x[20],(0,x[6])(),x[2]),x[3],x[5],(0,x[15])(),x[2])}catch(P){return"aTlOUOubTO4AP____8P_"+B}return c.join("")};_.Ubm=new _.A("runAttestationCommand");var dbm=new _.A("verifyCommand");_.T3=new _.A("accessibilityContext");var qBn=new _.A("accessibilityData");var CUF=new _.A("profileCardCommand");var bPq=new _.A("signInEndpoint");var nix=new _.A("signOutEndpoint");var mbI;_.hv9=new _.A("accountItemSectionRenderer");mbI=new _.A("accountItemRenderer");_.T29=new _.A("saveCommandToSessionStorageAction");var VXF=new _.A("crossAccountChannelTransferEndpoint");var pZl=new _.A("getAccountMenuEndpoint");_.kMQ=new _.A("getAccountSwitcherEndpoint");var sYd=new _.A("getAccountsListEndpoint");var tXZ=new _.A("getAccountsListInnertubeEndpoint");_.VR=new _.A("addToToastAction");var wiF=new _.A("hideEnclosingAction");_.t3=new _.A("replaceEnclosingAction");var N2m=new _.A("buttonRefreshAction");var IO3=new _.A("adsControlFlowOpportunityReceivedCommand");var JE5=new _.A("openAdAllowlistInstructionCommand");var WHm=new _.A("videoMastheadAdPrimaryVideoRenderer");var lOI=new _.A("displayAdRenderer");var zRI=new _.A("instreamVideoAdRenderer");_.Eln=new _.A("inFeedAdLayoutRenderer");var OCI=new _.A("sequenceItemInPlayerAdLayoutRenderer");_.ol3=new _.A("adSlotRenderer");var QE3=new _.A("adAvatarViewModel");var FH3=new _.A("adBadgeViewModel");var vl9=new _.A("adImageViewModel");var JyY=new _.A("reelsAdCardButtonedViewModel");var zvF=new _.A("reelsPlayerOverlayLayoutViewModel");var SBF=new _.A("showSchedulingPanelCommand");var yEF=new _.A("backstageCommentsRenderer");var GeF=new _.A("backstageImageRenderer");var MXm=new _.A("backstagePostRenderer");var LH9=new _.A("postRenderer");var ZC3=new _.A("sharedPostRenderer");var HCF=new _.A("createBackstagePostEndpoint");var fOF=new _.A("getPostVideoPreviewEndpoint");var iC9=new _.A("updateBackstagePostEndpoint");var AEQ=new _.A("filterChipTransformCommand");var usm=new _.A("insertRichSectionCommand");var xxw=new _.A("talkToRecsDeselectCommand");var DbW=new _.A("talkToRecsNextCommand");var cYY=new _.A("talkToRecsSelectCommand");var rEm=new _.A("talkToRecsUpdateTextCommand");_.qA=new _.A("browseEndpoint");_.Rvy=new _.A("confirmDialogEndpoint");var ev4=new _.A("expandOnHoverCardRenderer");var BQ3=new _.A("lumiereShelfDetailsRenderer");var cdt=new _.A("revealBusinessEmailCommand");var xy0=new _.A("validateChannelHandleCommand");var PJI=new _.A("channelCreationFormEndpoint");var YZS=new _.A("aboutChannelViewModel");var aZt=new _.A("channelThumbnailWithLinkRenderer");var gVd=new _.A("channelCreationServiceEndpoint");var sg3=new _.A("updateChannelPageSettingsEndpoint");var wJ=function(B){this.delegate=B},NV=function(){wJ.apply(this,arguments)};
_.w(NV,wJ);_.AJ.Object.defineProperties(NV.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(B){this.delegate.entityMetadata=B}}});var pGS=function(){NV.apply(this,arguments)};
_.w(pGS,NV);pGS.prototype.getAssociations=function(){return[]};var m5w=new _.A("webThumbnailDetailsExtensionData");var $KI=new _.A("commandContext");var ko9=new _.A("addVideoLinkAction");var XGZ=new _.A("createPollAction");var $ym=new _.A("hideIdentityChipAction");var nV9=new _.A("openUpdateCommentDialogAction");var IA=new _.A("updateBackstagePollAction");var bY9=new _.A("updateCommentVoteAction");var KF9=new _.A("commentThreadRenderer");var jgd=function(){NV.apply(this,arguments)};
_.w(jgd,NV);jgd.prototype.getAssociations=function(){return[]};_.Uy5=new _.A("commentDialogRenderer");var dyQ=new _.A("reloadCommentsCommand");var qZ4=new _.A("updateCommentsSettingsEndpoint");var CJn=new _.A("commentViewModel");var hFW=new _.A("triStateButtonViewModel");var myI=new _.A("voiceReplyContainerViewModel");_.nW=new _.A("commandExecutorCommand");var om=new _.A("emoji");var TQI=new _.A("updateCreatorChannelInnertubeCommand");_.V2t=new _.A("appendContinuationItemsAction");_.t2d=new _.A("changeEngagementPanelVisibilityAction");_.zU=new _.A("continuationCommand");var wGS=new _.A("listMutationCommand");_.J3=new _.A("openPopupAction");var NQn=new _.A("persistSubscriptionsDisplayPreferencesCommand");var QgQ;_.IZ5=new _.A("playlistRemoveVideosAction");_.Jd5=new _.A("updatePlaylistAction");_.WFm=new _.A("addToPlaylistCommand");_.lZn=new _.A("endPlaylistCommand");_.EV5=new _.A("recoverPlaylistCommand");_.OYW=new _.A("refreshPlaylistCommand");_.oVF=new _.A("refreshFormCommand");QgQ=new _.A("openOnePickAddVideoModalCommand");_.jYA=new _.A("reloadContinuationItemsCommand");_.FFQ=new _.A("scrollToEngagementPanelCommand");var vVF=new _.A("selectCountryCommand");var zFn=new _.A("showReloadUiCommand");var SZ3=new _.A("undoFeedbackAction");var yd5=new _.A("updateButtonAction");var GoI=new _.A("updateSubscribeButtonAction");var M2m=new _.A("updateToggleAction");var LFQ=new _.A("webNativeShareCommand");_.Br=new _.A("webCommandMetadata");_.W7=new _.A("webHandleServiceEndpointExtension");var KIA=new _.A("webNavigationEndpointData");var ZY0=new _.A("copyLinkCommand");var HYt=new _.A("playlistVotingRefreshPopupCommand");var fZ5=new _.A("selectChipCommand");var iYy=new _.A("setCookieCommand");var AdZ=new _.A("setLocalStorageCommand");var u85=new _.A("setPrefStorageEntryCommand");var eFZ;_.Dyn=new _.A("settingsUpdateCheckboxCommand");_.rd9=new _.A("settingsUpdateTextCommand");_.RFI=new _.A("settingsUpdateOptionsCommand");eFZ=new _.A("settingsUpdateSwitchCommand");_.Bp4=new _.A("settingsUpdateConnectedAppRendererCommand");var ce5=new _.A("updateTextInputFormFieldRendererCommand");var xwF=new _.A("updateToggleButtonStateCommand");var PL9=new _.A("updateUrlParamCommand");var YY9=new _.A("webSubmitFormCommand");var aDZ=new _.A("channelSwitcherPageRenderer"),g7t=new _.A("updateChannelSwitcherPageAction");_.sB=new _.A("continuationItemRenderer");_.la=new _.A("richItemRenderer");var sfF=new _.A("richSectionRenderer");_.pJ5=new _.A("richShelfRenderer");_.k1n=new _.A("metadataBadgeRenderer");_.XJn=new _.A("multiPageMenuNotificationSectionRenderer");_.$wW=new _.A("playlistLoopButtonStateRenderer");var n7m=new _.A("claimLegacyYoutubeChannelEndpoint");var b9F=new _.A("getNotificationMenuEndpoint");var Kvt=new _.A("getSearchInVideoCommand");_.jf3=new _.A("getTranscriptEndpoint");_.KW=new _.A("signalServiceEndpoint");var Uw5=new _.A("verifyAgeEndpoint");var s_I=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(s_I,_.zL);s_I.prototype.getPath=function(){return _.OZ(this,1)};
s_I.prototype.getValue=function(){return _.OZ(this,2)};var dw4=[0,_.Ad,-1];var qYm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(qYm,_.zL);var gaI=_.RU(qYm,[0,_.uJ,dw4]);var CLQ=new _.A("dismissalEndpoint");var hW5=new _.A("elementsCommand");_.Fo=new _.A("innertubeCommand");var mw9=new _.A("multipleInlinePlaybackCommand");var Ryo=new _.A("loggingDirectives");var Tp5=new _.A("acknowledgeChannelTouStrikeCommand");var V1Z=function(){NV.apply(this,arguments)};
_.w(V1Z,NV);V1Z.prototype.getAssociations=function(){return[]};var t1Z=function(){NV.apply(this,arguments)};
_.w(t1Z,NV);t1Z.prototype.getAssociations=function(){return[]};var iv=new _.A("entityBatchUpdate");_.wJt=new _.A("entityUpdateCommand");var NpW=function(){NV.apply(this,arguments)};
_.w(NpW,NV);NpW.prototype.getAssociations=function(){var B=[];this.delegate.alternateChannel&&B.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&B.push.apply(B,_.wq(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&B.push(this.delegate.oneofChannelEntity);return[].concat(_.wq(new Set(B)))};var IDd=function(){NV.apply(this,arguments)};
_.w(IDd,NV);IDd.prototype.getAssociations=function(){var B=[];this.delegate.entryCollection&&B.push(this.delegate.entryCollection);return[].concat(_.wq(new Set(B)))};
var JeS=function(){NV.apply(this,arguments)};
_.w(JeS,NV);JeS.prototype.getAssociations=function(){var B=[];this.delegate.parentPlaylist&&B.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var c=_.p(this.delegate.entries),x=c.next();!x.done;x=c.next())B.push.apply(B,_.wq((new Wv9(x.value)).getAssociations()));return[].concat(_.wq(new Set(B)))};
var Wv9=function(){wJ.apply(this,arguments)};
_.w(Wv9,wJ);Wv9.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);return[].concat(_.wq(new Set(B)))};var lDt=function(){NV.apply(this,arguments)};
_.w(lDt,NV);lDt.prototype.getAssociations=function(){var B=[];this.delegate.descriptionEntity&&B.push(this.delegate.descriptionEntity);this.delegate.creators&&B.push.apply(B,_.wq(this.delegate.creators));this.delegate.theBiggestFan&&B.push(this.delegate.theBiggestFan);return[].concat(_.wq(new Set(B)))};
var E70=function(){NV.apply(this,arguments)};
_.w(E70,NV);E70.prototype.getAssociations=function(){return[]};var O9W=new _.A("fantasyRosterViewModel");var o7d=new _.A("addFollowUpSurveyCommand");var QfS=new _.A("getSurveyCommand");var Fvt=new _.A("ratingSurveyOptionRenderer");_.Fs=new _.A("feedbackEndpoint");var v7Z=new _.A("reportHistoryTableCellRenderer"),zWS=new _.A("reportHistoryTableTextCellRenderer"),SY3=new _.A("reportHistoryTableReasonCellRenderer");_.yen=new _.A("flagEndpoint");var G1m=new _.A("getFlowCommand");var M15=new _.A("submitFormWithValidationFlowCommand");var LvI=function(){NV.apply(this,arguments)};
_.w(LvI,NV);LvI.prototype.getAssociations=function(){return[]};var Z9m=new _.A("flowFormState");var H90=new _.A("gameCardRenderer");var fD3=new _.A("accountLinkingStateChangedCommand");var i9t=function(){NV.apply(this,arguments)};
_.w(i9t,NV);i9t.prototype.getAssociations=function(){return[]};var Ae4=new _.A("changeMiniAppPlayStateCommand");var u$9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(u$9,_.zL);var EP=[1,2,3];var DwZ=[0,EP,Apw,_.uWC,Gd$];var rem=_.RU(u$9,DwZ),RW9=_.eJ(DwZ);var eW3=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(eW3,_.zL);var BaQ=[0,_.HG,_.Ad];var cBQ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(cBQ,_.zL);var xfm=[0,_.Ad,_.HG,-1];var OP=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(OP,_.zL);var PKF=function(B,c){return _.Yr(B,3,c)};var YVm=_.eJ([0,1,BaQ,_.rQ,xfm]);var auZ=new _.A("miniAppScoreChallengeViewModel");var gc4=new _.A("miniGameCardViewModel");var sZt=new _.A("teaserCardViewModel");var pBt=function(){NV.apply(this,arguments)};
_.w(pBt,NV);pBt.prototype.getAssociations=function(){return[]};_.ki3=new _.A("feedbackItemRenderer");var XB3=function(){NV.apply(this,arguments)};
_.w(XB3,NV);XB3.prototype.getAssociations=function(){return[]};_.$fn=new _.A("playerInterstitialRenderer");var ncW=new _.A("getKidsBlocklistPickerCommand");_.bR3=new _.A("updateKidsBlacklistEndpoint");_.ij=new _.A("likeEndpoint");var Ks5,jZW,Ufy;Ks5=new _.A("addChatItemAction");jZW=new _.A("removeChatItemAction");Ufy=new _.A("markChatItemAsDeletedAction");_.dfF=new _.A("setLiveChatCollapsedStateAction");var qVy=function(){NV.apply(this,arguments)};
_.w(qVy,NV);qVy.prototype.getAssociations=function(){return[]};var CKZ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(CKZ,_.zL);var hc5=_.RU(CKZ,[0,1,_.HG]);var mfm=new _.A("liveChatEndpoint");var Tat=new _.A("liveChatItemContextMenuEndpoint");var VQy=new _.A("liveChatReplayEndpoint");_.tQn=new _.A("emojiPickerRenderer");var wBt=new _.A("liveChatAuthorBadgeViewModel");var Na5=new _.A("deleteLiveChatMessageCommand");var Iu0=new _.A("liveChatActionEndpoint");var JB4=new _.A("createLiveChatPollEndpoint");var Wsm=new _.A("manageLiveChatUserEndpoint");var luS=new _.A("moderateLiveChatEndpoint");_.EcI=new _.A("sendLiveChatMessageEndpoint");var ORZ=new _.A("sendLiveChatVoteEndpoint");var ocZ=new _.A("clearLocationCommand");var QZd=new _.A("resolveLocationCommand");var Fsd=new _.A("interactionLoggingCommandMetadata");var o1w=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(o1w,_.zL);var Oo7=function(B,c){return _.sq(B,1,c)};var vcm=[0,_.iJ];var E1w=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(E1w,_.zL);var lVl=function(B,c){return dU(B,1,o1w,c)};E1w.prototype.JSC$10128_serializeBinary=cOl([0,_.uJ,vcm]);var tQo={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 zcI={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"},
SVS={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 zQq={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"};_.Soq=new _.A("logFlowLoggingEventCommand");_.CL=new _.A("loggingContext");var yBW=new _.A("captionLanguageSelectActionCommand");var GiI=new _.A("showCaptionLanguageSelectActionCommand");var MQ3=new _.A("dismissDialogEndpoint");var Lsd=new _.A("hideItemSectionVideosByIdCommand");var ZRt=new _.A("showMiniplayerCommand");var HR9=function(){NV.apply(this,arguments)};
_.w(HR9,NV);HR9.prototype.getAssociations=function(){return[]};var fuF=function(){NV.apply(this,arguments)};
_.w(fuF,NV);fuF.prototype.getAssociations=function(){return[]};var iRy=function(){NV.apply(this,arguments)};
_.w(iRy,NV);iRy.prototype.getAssociations=function(){return[]};var AB5=function(){NV.apply(this,arguments)};
_.w(AB5,NV);AB5.prototype.getAssociations=function(){var B=[];this.delegate.downloadsList&&B.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&B.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&B.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&B.push(this.delegate.refresh);return[].concat(_.wq(new Set(B)))};var uLF=function(){NV.apply(this,arguments)};
_.w(uLF,NV);uLF.prototype.getAssociations=function(){var B=[];this.delegate.refresh&&B.push(this.delegate.refresh);if(this.delegate.downloads)for(var c=_.p(this.delegate.downloads),x=c.next();!x.done;x=c.next())B.push.apply(B,_.wq((new Dfm(x.value)).getAssociations()));return[].concat(_.wq(new Set(B)))};
var Dfm=function(){wJ.apply(this,arguments)};
_.w(Dfm,wJ);Dfm.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.playlist&&B.push(this.delegate.playlist);this.delegate.videoItem&&B.push(this.delegate.videoItem);this.delegate.playlistItem&&B.push(this.delegate.playlistItem);return[].concat(_.wq(new Set(B)))};var rB9=function(){NV.apply(this,arguments)};
_.w(rB9,NV);rB9.prototype.getAssociations=function(){var B=[];this.delegate.localImageEntities&&B.push.apply(B,_.wq(this.delegate.localImageEntities));return[].concat(_.wq(new Set(B)))};var Rcn=function(){NV.apply(this,arguments)};
_.w(Rcn,NV);Rcn.prototype.getAssociations=function(){var B=[];this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.localImageEntities&&B.push.apply(B,_.wq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wq(new Set(B)))};var ecW=function(){NV.apply(this,arguments)};
_.w(ecW,NV);ecW.prototype.getAssociations=function(){return[]};var BB4=function(){NV.apply(this,arguments)};
_.w(BB4,NV);BB4.prototype.getAssociations=function(){var B=[];this.delegate.fakeChildren&&B.push.apply(B,_.wq(this.delegate.fakeChildren));return[].concat(_.wq(new Set(B)))};var crd=function(){NV.apply(this,arguments)};
_.w(crd,NV);crd.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&B.push(this.delegate.offlineVideoPolicy);return[].concat(_.wq(new Set(B)))};var xX0=function(){NV.apply(this,arguments)};
_.w(xX0,NV);xX0.prototype.getAssociations=function(){return[]};var PMW=function(){NV.apply(this,arguments)};
_.w(PMW,NV);PMW.prototype.getAssociations=function(){var B=[];this.delegate.channelOwner&&B.push(this.delegate.channelOwner);this.delegate.videos&&B.push.apply(B,_.wq(this.delegate.videos));this.delegate.collaboratorChannels&&B.push.apply(B,_.wq(this.delegate.collaboratorChannels));this.delegate.downloadState&&B.push(this.delegate.downloadState);this.delegate.refresh&&B.push(this.delegate.refresh);return[].concat(_.wq(new Set(B)))};var YNy=function(){NV.apply(this,arguments)};
_.w(YNy,NV);YNy.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.channelContributor&&B.push(this.delegate.channelContributor);return[].concat(_.wq(new Set(B)))};var a03=function(){wJ.apply(this,arguments)};
_.w(a03,wJ);a03.prototype.getAssociations=function(){var B=[];this.delegate.recommendedVideoMetadata&&B.push.apply(B,_.wq((new gfy(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.wq(new Set(B)))};
var gfy=function(){wJ.apply(this,arguments)};
_.w(gfy,wJ);gfy.prototype.getAssociations=function(){var B=[];this.delegate.localImageEntities&&B.push.apply(B,_.wq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wq(new Set(B)))};var szm=function(){wJ.apply(this,arguments)};
_.w(szm,wJ);szm.prototype.getAssociations=function(){var B=[];this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);return[].concat(_.wq(new Set(B)))};var p_9=function(){NV.apply(this,arguments)};
_.w(p_9,NV);p_9.prototype.getAssociations=function(){var B=[];this.delegate.owner&&B.push(this.delegate.owner);this.delegate.downloadState&&B.push(this.delegate.downloadState);this.delegate.userState&&B.push.apply(B,_.wq((new szm(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&B.push.apply(B,_.wq((new a03(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.wq(new Set(B)))};var k4F=function(){NV.apply(this,arguments)};
_.w(k4F,NV);k4F.prototype.getAssociations=function(){var B=[];this.delegate.userChannelDetails&&B.push(this.delegate.userChannelDetails);return[].concat(_.wq(new Set(B)))};var X_m=function(){NV.apply(this,arguments)};
_.w(X_m,NV);X_m.prototype.getAssociations=function(){var B=[];this.delegate.channelOwner&&B.push(this.delegate.channelOwner);this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&B.push.apply(B,_.wq(this.delegate.localImageEntities));this.delegate.downloadStatus&&B.push(this.delegate.downloadStatus);return[].concat(_.wq(new Set(B)))};var uVC=new _.A("downloadsPageSmartDownloadsOptInBannerParams");var $XS=new _.A("downloadsPageUpsellBannerParams");var nft=function(){NV.apply(this,arguments)};
_.w(nft,NV);nft.prototype.getAssociations=function(){return[]};var bO0=function(){NV.apply(this,arguments)};
_.w(bO0,NV);bO0.prototype.getAssociations=function(){return[]};var Ktt=function(){NV.apply(this,arguments)};
_.w(Ktt,NV);Ktt.prototype.getAssociations=function(){return[]};var jzy=function(){NV.apply(this,arguments)};
_.w(jzy,NV);jzy.prototype.getAssociations=function(){return[]};var UXy=function(){NV.apply(this,arguments)};
_.w(UXy,NV);UXy.prototype.getAssociations=function(){return[]};var dXI=function(){NV.apply(this,arguments)};
_.w(dXI,NV);dXI.prototype.getAssociations=function(){return[]};var qNy=function(){NV.apply(this,arguments)};
_.w(qNy,NV);qNy.prototype.getAssociations=function(){return[]};var CMt=function(){NV.apply(this,arguments)};
_.w(CMt,NV);CMt.prototype.getAssociations=function(){return[]};var hBm=function(){NV.apply(this,arguments)};
_.w(hBm,NV);hBm.prototype.getAssociations=function(){return[]};_.Ey=new _.A("dislikeButtonViewModel");_.lR=new _.A("likeButtonViewModel");var mX5=new _.A("videoSummaryContentViewModel");var TBt=new _.A("videoSummaryParagraphViewModel");var Vm4=new _.A("changeTimelyActionVisibilityCommand");var tmI=new _.A("hideEngagementPanelEndpoint");var w_I=new _.A("refreshPanelEndpoint");var NBd=new _.A("scrollToSectionEndpoint");var I0Z=new _.A("seekToVideoTimestampCommand");_.QA=new _.A("showEngagementPanelEndpoint");var Jr3=new _.A("showTransientPlayerScrimOverlayCommand");var Wt9=new _.A("toggleEngagementPanelCommand");_.l0d=new _.A("createBroadcastCommand");var Ef3=new _.A("metadataUpdateCommand");var OO4=function(){NV.apply(this,arguments)};
_.w(OO4,NV);OO4.prototype.getAssociations=function(){return[]};var ofm=function(){NV.apply(this,arguments)};
_.w(ofm,NV);ofm.prototype.getAssociations=function(){return[]};var QzS=function(){NV.apply(this,arguments)};
_.w(QzS,NV);QzS.prototype.getAssociations=function(){return[]};_.Ftd=new _.A("merchandiseShelfRenderer");var vf4=new _.A("gridMovieRenderer");_.zB4=new _.A("movieRenderer");var SNt=function(){NV.apply(this,arguments)};
_.w(SNt,NV);SNt.prototype.getAssociations=function(){var B=[];this.delegate.trackDownloadMetadatas&&B.push.apply(B,_.wq(this.delegate.trackDownloadMetadatas));return[].concat(_.wq(new Set(B)))};var yrd=function(){NV.apply(this,arguments)};
_.w(yrd,NV);
yrd.prototype.getAssociations=function(){var B=[];this.delegate.downloadedTracks&&B.push.apply(B,_.wq(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&B.push.apply(B,_.wq(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&B.push.apply(B,_.wq(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&B.push.apply(B,_.wq(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&B.push.apply(B,_.wq(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
B.push.apply(B,_.wq(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&B.push.apply(B,_.wq(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&B.push.apply(B,_.wq(this.delegate.metadataOnlyTracks));return[].concat(_.wq(new Set(B)))};var G4m=function(){NV.apply(this,arguments)};
_.w(G4m,NV);G4m.prototype.getAssociations=function(){var B=[];this.delegate.trackDownloadMetadatas&&B.push.apply(B,_.wq(this.delegate.trackDownloadMetadatas));return[].concat(_.wq(new Set(B)))};var Mm0=function(){NV.apply(this,arguments)};
_.w(Mm0,NV);Mm0.prototype.getAssociations=function(){var B=[];this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.localImageEntities&&B.push.apply(B,_.wq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wq(new Set(B)))};var Lt3=function(){NV.apply(this,arguments)};
_.w(Lt3,NV);
Lt3.prototype.getAssociations=function(){var B=[];this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&B.push.apply(B,_.wq(this.delegate.primaryArtists));this.delegate.details&&B.push(this.delegate.details);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.tracks&&B.push.apply(B,_.wq(this.delegate.tracks));this.delegate.share&&B.push(this.delegate.share);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.refresh&&
B.push(this.delegate.refresh);return[].concat(_.wq(new Set(B)))};
var ZOS=function(){NV.apply(this,arguments)};
_.w(ZOS,NV);ZOS.prototype.getAssociations=function(){var B=[];this.delegate.albumRelease&&B.push(this.delegate.albumRelease);this.delegate.tracks&&B.push.apply(B,_.wq(this.delegate.tracks));return[].concat(_.wq(new Set(B)))};
var HO9=function(){NV.apply(this,arguments)};
_.w(HO9,NV);HO9.prototype.getAssociations=function(){var B=[];this.delegate.albumRelease&&B.push(this.delegate.albumRelease);return[].concat(_.wq(new Set(B)))};var f0I=function(){NV.apply(this,arguments)};
_.w(f0I,NV);f0I.prototype.getAssociations=function(){var B=[];this.delegate.details&&B.push(this.delegate.details);this.delegate.userDetails&&B.push(this.delegate.userDetails);return[].concat(_.wq(new Set(B)))};
var iOS=function(){NV.apply(this,arguments)};
_.w(iOS,NV);iOS.prototype.getAssociations=function(){var B=[];this.delegate.parentArtist&&B.push(this.delegate.parentArtist);return[].concat(_.wq(new Set(B)))};
var Ar5=function(){NV.apply(this,arguments)};
_.w(Ar5,NV);Ar5.prototype.getAssociations=function(){var B=[];this.delegate.parentArtist&&B.push(this.delegate.parentArtist);return[].concat(_.wq(new Set(B)))};var ufI=function(){NV.apply(this,arguments)};
_.w(ufI,NV);ufI.prototype.getAssociations=function(){return[]};var DXF=function(){NV.apply(this,arguments)};
_.w(DXF,NV);DXF.prototype.getAssociations=function(){return[]};var rry=function(){NV.apply(this,arguments)};
_.w(rry,NV);
rry.prototype.getAssociations=function(){var B=[];this.delegate.tracks&&B.push.apply(B,_.wq(this.delegate.tracks));this.delegate.refresh&&B.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&B.push(this.delegate.details);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&B.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.entryCollection&&
B.push(this.delegate.entryCollection);this.delegate.share&&B.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&B.push.apply(B,_.wq((new RB5(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.wq(new Set(B)))};
var RB5=function(){wJ.apply(this,arguments)};
_.w(RB5,wJ);RB5.prototype.getAssociations=function(){var B=[];this.delegate.creatorEntity&&B.push(this.delegate.creatorEntity);return[].concat(_.wq(new Set(B)))};var eB4=function(){NV.apply(this,arguments)};
_.w(eB4,NV);eB4.prototype.getAssociations=function(){return[]};var BRQ=function(){NV.apply(this,arguments)};
_.w(BRQ,NV);
BRQ.prototype.getAssociations=function(){var B=[];this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&B.push.apply(B,_.wq(this.delegate.artists));this.delegate.audioModeVersion&&B.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&B.push(this.delegate.videoModeVersion);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.details&&B.push(this.delegate.details);this.delegate.albumRelease&&B.push(this.delegate.albumRelease);this.delegate.share&&
B.push(this.delegate.share);this.delegate.libraryEdit&&B.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);this.delegate.lyrics&&B.push(this.delegate.lyrics);return[].concat(_.wq(new Set(B)))};
var cZm=function(){NV.apply(this,arguments)};
_.w(cZm,NV);cZm.prototype.getAssociations=function(){var B=[];this.delegate.parentTrack&&B.push(this.delegate.parentTrack);return[].concat(_.wq(new Set(B)))};
var xc5=function(){NV.apply(this,arguments)};
_.w(xc5,NV);xc5.prototype.getAssociations=function(){var B=[];this.delegate.parentTrack&&B.push(this.delegate.parentTrack);return[].concat(_.wq(new Set(B)))};var Pi=new _.A("musicResponsiveListItemRenderer");var C_A=new _.A("addToPlaylistEndpoint");var PYZ=new _.A("captionPickerEndpoint");var YhQ=new _.A("suggestStats");var aW9=new _.A("backstageImageUploadEndpoint");var gbZ=new _.A("createBackstagePostDialogEndpoint");_.sX3=new _.A("createCommentReplyDialogEndpoint");_.pLW=new _.A("updateCommentDialogEndpoint");_.kxd=new _.A("updateCommentReplyDialogEndpoint");var XLm=new _.A("menuEndpoint");var $7Y=new _.A("modalEndpoint");var $ct=new _.A("playlistEditorEndpoint");var nbt=new _.A("copyTextEndpoint");var bmd,KEd;bmd=new _.A("shareEndpoint");KEd=new _.A("shareEntityEndpoint");_.jX0=new _.A("shareEntityServiceEndpoint");_.E3x=new _.A("userFeedbackEndpoint");_.fN=new _.A("watchEndpoint");var ujX=new _.A("watchPlaylistEndpoint");var Ucn=new _.A("addUpcomingEventReminderEndpoint");_.oA=new _.A("getCommentsFromInboxCommand");var dc4=new _.A("notificationOptOutEndpoint");var qhm=new _.A("recordNotificationInteractionsEndpoint");var CYn=new _.A("removeUpcomingEventReminderEndpoint");var dUC=new _.A("getDownloadActionCommand");_.h5W=new _.A("offlineOrchestrationActionCommand");var mc9=function(){NV.apply(this,arguments)};
_.w(mc9,NV);mc9.prototype.getAssociations=function(){return[]};var TR4=function(){NV.apply(this,arguments)};
_.w(TR4,NV);TR4.prototype.getAssociations=function(){return[]};var VVd=function(){NV.apply(this,arguments)};
_.w(VVd,NV);VVd.prototype.getAssociations=function(){return[]};var tVI=function(){NV.apply(this,arguments)};
_.w(tVI,NV);tVI.prototype.getAssociations=function(){return[]};var wLZ=function(){NV.apply(this,arguments)};
_.w(wLZ,NV);wLZ.prototype.getAssociations=function(){var B=[];this.delegate.transfer&&B.push(this.delegate.transfer);this.delegate.adsPlaybackData&&B.push.apply(B,_.wq(this.delegate.adsPlaybackData));this.delegate.drmLicense&&B.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&B.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wq(new Set(B)))};var NRS=function(){NV.apply(this,arguments)};
_.w(NRS,NV);NRS.prototype.getAssociations=function(){return[]};var IWS=function(){NV.apply(this,arguments)};
_.w(IWS,NV);IWS.prototype.getAssociations=function(){var B=[];this.delegate.offlineVideoStreams&&B.push.apply(B,_.wq(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&B.push.apply(B,_.wq(this.delegate.captionTrack));return[].concat(_.wq(new Set(B)))};var JZ9=function(){NV.apply(this,arguments)};
_.w(JZ9,NV);JZ9.prototype.getAssociations=function(){return[]};var WEQ=new _.A("showMoreDrawerCommand");var lW4=new _.A("updateEngagementPanelContentCommand");var EbF=new _.A("getPdgBuyFlowCommand");var OmF=new _.A("liveChatPurchaseMessageEndpoint");var obt=new _.A("openSuperStickerBuyFlowCommand");var QXm=new _.A("updatePdgFeatureEnablementCommand");var FEy=function(){NV.apply(this,arguments)};
_.w(FEy,NV);FEy.prototype.getAssociations=function(){return[]};var vbn=function(){NV.apply(this,arguments)};
_.w(vbn,NV);vbn.prototype.getAssociations=function(){return[]};_.z5F=new _.A("pdgCommentChipRenderer");_.ShZ=new _.A("permissionRoleBottomBarRenderer");_.yZd=new _.A("updatePermissionRoleCommand");var Gx4=new _.A("prefetchWatchCommand");var MVd=new _.A("updatePlayerErrorMessageCommand");var XZX=new _.A("toggleCaptionsVisibilityCommand");_.LE9=new _.A("quickActionsViewModel");var Zmd=new _.A("playerResponse");var Hmm=new _.A("playlistRenderer");_.fWI=new _.A("playlistVideoListRenderer");_.QR=new _.A("playlistEditEndpoint");var im9=new _.A("createImagePollCommand");var AZy=new _.A("createQuizCommand");var uHI=new _.A("quizRenderer");var DcS=new _.A("uploadedVideoRenderer");var rZd=new _.A("decorateMessageEndpoint");var R5W=new _.A("lpOfferCardOptionViewModel");var e50=new _.A("sfvAudioItemPlaybackCommand");var B75=function(){NV.apply(this,arguments)};
_.w(B75,NV);B75.prototype.getAssociations=function(){return[]};_.Fm=new _.A("reelNonVideoContentEndpoint");_.TF=new _.A("reelWatchEndpoint");_.v7=new _.A("reelItemRenderer");_.cU5=new _.A("reelMetapanelViewModel");_.xlI=new _.A("reelNonVideoContentRenderer");_.P9Z=new _.A("reelPlayerOverlayRenderer");var Y5y=new _.A("shortsLockupViewModel");var aE3=new _.A("sponsorButtonViewModel");var gv3=new _.A("reelItemWatchResponse");var s89=new _.A("textBadgeRenderer");_.z3=new _.A("buttonRenderer");_.SP=new _.A("toggleButtonRenderer");var UuO=new _.A("switchButtonViewModel");_.p6I=new _.A("confirmDialogRenderer");var kg5;kg5=new _.A("menuRenderer");_.X6I=new _.A("menuFlexibleItemRenderer");var $lW=new _.A("pollRenderer");_.nvF=new _.A("backgroundPromoRenderer");var K09;_.bgQ=new _.A("chipCloudRenderer");K09=new _.A("chipCloudChipRenderer");var j8F=new _.A("dropdownRenderer");var Ul0=new _.A("gridVideoRenderer");_.dly=new _.A("itemSectionRenderer");_.q5S=new _.A("messageRenderer");var C9t=new _.A("sortFilterHeaderRenderer");_.yR=new _.A("videoRenderer");var h3W=new _.A("resolveUrlCommandMetadata");var mlQ=function(){NV.apply(this,arguments)};
_.w(mlQ,NV);mlQ.prototype.getAssociations=function(){return[]};_.T75=new _.A("getAnswerCommand");_.Cr=new _.A("searchEndpoint");var VEF=new _.A("genAiRichTextViewModel");var UU7=new _.A("overviewAnswerViewModel");var tEt=new _.A("addToPlaylistServiceEndpoint");var w64=new _.A("clearSearchHistoryEndpoint");var N7m=new _.A("clearWatchHistoryEndpoint");var IEI=new _.A("webSerializedServiceEndpointExtension");_.JUI=new _.A("createCommentEndpoint");var W0S=new _.A("createCommentReplyEndpoint");var lE5=new _.A("performCommentActionEndpoint");var FaI=new _.A("updateCommentEndpoint");var vYW=new _.A("updateCommentReplyEndpoint");_.G3=new _.A("createPlaylistServiceEndpoint");var z7Z=new _.A("deletePlaylistEndpoint");var Sc4=new _.A("deleteVideoEndpoint");var qad=new _.A("getReportFormEndpoint");var y4F=new _.A("modifyChannelNotificationPreferenceEndpoint");var QoQ;_.bR=new _.A("offlinePlaylistEndpoint");QoQ={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 Fn$;_.n3=new _.A("offlineVideoEndpoint");Fn$={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 GVQ=new _.A("pingingEndpoint");_.MgI=new _.A("selectActiveIdentityEndpoint");var Lat=new _.A("setSettingEndpoint");var PnA=new _.A("undoFeedbackEndpoint");var Zd9=new _.A("unsubscribeEndpoint");_.Hdt=new _.A("updatedMetadataEndpoint");var fyZ=function(){NV.apply(this,arguments)};
_.w(fyZ,NV);fyZ.prototype.getAssociations=function(){return[]};_.id4=new _.A("updateLocalAppSettingCommand");var A4t=new _.A("saveImageToDeviceEndpoint");var uV9=new _.A("shareImageCommand");var Dky=new _.A("sharingProviderDataCommand");var r4F=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(r4F,_.zL);var R7Z=[0,_.Ad,-1];r4F.prototype.JSC$10329_serializeBinary=cOl(R7Z);var e75=_.eJ(R7Z);var BJ4=new _.A("userMentionSuggestionRenderer");var c3d=new _.A("liveChatTunnelCommand");var xVn=new _.A("showSponsorshipsGiftOfferDialogCommand");var Pat=new _.A("sponsorshipsScrollableShelfViewModel");var YPI=new _.A("updateUpcomingEventReminderButtonStateCommand");var aYt=new _.A("upcomingEventReminderButtonStateRenderer");var g5d=new _.A("subscribeEndpoint");var sAS=new _.A("registerTasksCommand");var p7F=new _.A("hideSnackbarCommand");var k39=new _.A("showDialogCommand");_.d$=new _.A("showSheetCommand");var X7m=new _.A("showSnackbarCommand");var $VI=function(){NV.apply(this,arguments)};
_.w($VI,NV);$VI.prototype.getAssociations=function(){return[]};var n5W=function(){NV.apply(this,arguments)};
_.w(n5W,NV);n5W.prototype.getAssociations=function(){return[]};_.f3=new _.A("avatarViewModel");var bVQ=new _.A("badgeViewModel");_.Tj=new _.A("buttonViewModel");_.MV=new _.A("chipViewModel");var NNl=new _.A("collectionThumbnailViewModel");var KQF=new _.A("contentPreviewImageViewModel");var jAm=new _.A("decoratedAvatarViewModel");var Mvq=new _.A("downloadButtonViewModel");_.mo7=new _.A("engagementBarViewModel");_.UV0=new _.A("imageBannerViewModel");var C$l=new _.A("lockupContentMetadataRowExtension");var dVm=new _.A("lockupMetadataViewModel");_.qPQ=new _.A("lockupViewModel");var CaZ=new _.A("avatarStackViewModel");var he0=function(){NV.apply(this,arguments)};
_.w(he0,NV);he0.prototype.getAssociations=function(){return[]};_.mVm=new _.A("pageHeaderViewModel");var TJ5=new _.A("snackbarViewModel");var VPZ=new _.A("thumbnailHoverOverlayToggleActionsViewModel");_.V7=new _.A("toggleButtonViewModel");var tPZ=function(){NV.apply(this,arguments)};
_.w(tPZ,NV);tPZ.prototype.getAssociations=function(){return[]};_.TnY=new _.A("votingViewModel");var w79=new _.A("sectionHeaderViewModel");var NJn=new _.A("notifyDropdownOptionSelectedCommand");var IdI=new _.A("listViewModel");_.qv=new _.A("listItemViewModel");var IYn=new _.A("dialogHeaderViewModel");var J3n=function(){NV.apply(this,arguments)};
_.w(J3n,NV);J3n.prototype.getAssociations=function(){return[]};var WQS=function(){NV.apply(this,arguments)};
_.w(WQS,NV);WQS.prototype.getAssociations=function(){return[]};var lYd=function(){NV.apply(this,arguments)};
_.w(lYd,NV);lYd.prototype.getAssociations=function(){return[]};_.E5Z=new _.A("transcriptSubmitCaptionCorrectionCommand");var OVt=function(){NV.apply(this,arguments)};
_.w(OVt,NV);OVt.prototype.getAssociations=function(){return[]};var eyw=new _.A("unpluggedStringRunImage");var o53=new _.A("tabViewModel");var QAZ=new _.A("tabbedViewModel");var FQ5=function(){NV.apply(this,arguments)};
_.w(FQ5,NV);FQ5.prototype.getAssociations=function(){return[]};_.v5Q=new _.A("updateDescriptionAction");var zet=new _.A("updateToggleButtonTextAction");_.SPI=new _.A("autoplaySwitchButtonRenderer");var ze;_.y39=new _.A("multiMarkersPlayerBarRenderer");ze=new _.A("chapterRenderer");var G30=new _.A("heatMarkerRenderer");var jVA=new _.A("heatmapRenderer");var MP3=new _.A("smartSkipPlayerScrimOverlayRenderer");var LQF=new _.A("timedMarkerDecorationRenderer");var kpY=new _.A("postWebToNativeMessageCommand");var ZVn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ZVn,_.zL);var HVt=_.RU(ZVn,[0,_.Ad,-2]);var fYd=new _.A("whitelistEditEndpoint");var iVF=new _.A("clearUrlParamCommand");var A3W=new _.A("commerceActionCommand");_.um4=new _.A("getPaymentInstrumentsParamsCommand");var DVQ=new _.A("getPaymentsClientTokenCommand");var r3y=new _.A("googlePaymentBillingCommand");var Red=new _.A("googlePaymentPurchaseManagerCommand");_.ee0=new _.A("logGtmCommand");var Bd4=new _.A("updateCardItemOnClickCommand");_.cvd=new _.A("ypcPauseSubscriptionCommand");_.xmF=new _.A("ypcResumeSubscriptionCommand");var Pdy=function(){NV.apply(this,arguments)};
_.w(Pdy,NV);Pdy.prototype.getAssociations=function(){return[]};var YMt=function(){NV.apply(this,arguments)};
_.w(YMt,NV);YMt.prototype.getAssociations=function(){return[]};var apt=function(){NV.apply(this,arguments)};
_.w(apt,NV);apt.prototype.getAssociations=function(){return[]};var gkI=function(){NV.apply(this,arguments)};
_.w(gkI,NV);gkI.prototype.getAssociations=function(){return[]};var sk3=function(){NV.apply(this,arguments)};
_.w(sk3,NV);sk3.prototype.getAssociations=function(){return[]};var goO=new _.A("ypcOffersEndpoint");var pK9=new _.A("cardItemRenderer"),kQ3=new _.A("cardItemTextRenderer");var XKF=new _.A("commerceCartItemQuantityPickerRenderer");var $mS=new _.A("linkCardRenderer");var PqO=new _.A("quantityIncrementerButtonViewModel");var nk9=new _.A("quantityIncrementerViewModel");var b0t=new _.A("themedImageViewModel");_.KjQ=new _.A("ypcCancelRecurrenceEndpoint");var jkd=new _.A("ypcCompleteTransactionEndpoint");_.Umt=new _.A("ypcGetCartEndpoint");_.av=new _.A("ypcGetOffersEndpoint");_.LV=new _.A("ypcHandleTransactionEndpoint");var dmd=new _.A("ypcLogWalletAnalyticDataEndpoint");_.qMI=new _.A("ypcRedeemCodeEndpoint");var CdW=new _.A("ypcUpdateFopEndpoint");aA(Y5(1),x5(4));J$d((new MessageChannel).port2);var hTm=function(){this.register=new Map},Na7=function(B,c,x){B=B+"_"+c;
ZY.register.has(B)?x=ZY.register.get(B):(x=x(),ZY.register.set(B,x));return x},mmZ=function(B){B=_.p(B.register.values());
for(var c=B.next();!c.done;c=B.next())_.UB(c.value,"ABORTED")};
hTm.prototype.clear=function(){mmZ(this);this.register.clear()};
var ZY=new hTm;var sZX=Date.now().toString();var kil,TdW=_.xI.ytLoggingDocDocumentNonce_;TdW||(TdW=Np(16),_.rr("ytLoggingDocDocumentNonce_",TdW));kil=TdW;var dfI={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 Vom;Vom=1;_.Is=function(B){this.veData=B};
_.VF=function(B){return new _.Is({trackingParams:B})};
_.JW=function(B,c,x,P,Y,g){var k=Vom++;return new _.Is({veType:B,veCounter:k,elementIndex:x,dataElement:c,youtubeData:P,jspbYoutubeData:Y,loggingDirectives:g})};
_.a=_.Is.prototype;
_.a.getAsJson=function(){var B={};this.veData.trackingParams!==void 0?B.trackingParams=this.veData.trackingParams:(B.veType=this.veData.veType,this.veData.veCounter!==void 0&&(B.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(B.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(B.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(B.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(B.isCounterfactual=!0);
return B};
_.a.getAsJspb=function(){var B=new u45;this.veData.trackingParams!==void 0?B.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.zo(B,2,this.veData.veType),this.veData.veCounter!==void 0&&_.zo(B,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.zo(B,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.sq(B,5,!0));if(this.veData.dataElement!==void 0){var c=this.veData.dataElement.getAsJspb();_.Pa(B,7,c)}this.veData.youtubeData!==void 0&&_.Pa(B,8,this.veData.jspbYoutubeData);
return B};
_.a.toString=function(){return JSON.stringify(this.getAsJson())};
_.a.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.a.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.rr("yt_logging_screen.getRootVeType",Ks7);_.rr("yt_logging_screen.getCurrentCsn",_.Wf);_.rr("yt_logging_screen.getCttAuthInfo",lh);_.rr("yt_logging_screen.setCurrentScreen",_.En);var toy=function(){this.events=new Map},wKW=function(B){var c=[];
B=_.p(B.events.values());for(var x=B.next();!x.done;x=B.next())c.push(x.value);return c};
toy.prototype.clear=function(){this.events.clear()};var Ip0=function(){this.logTransport=new Ndm;this.loggedEventRegister=new toy;this.unloggedEventRegister=new toy;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10386_flushTimer=new _.Bf(this.flushInterval);this.JSC$10386_flushTimer.listen("tick",this.flush,!1,this)};
Ip0.prototype.flush=function(){if(this.eventsCount){var B={loggedEvents:wKW(this.loggedEventRegister),unloggedEvents:wKW(this.unloggedEventRegister)};if(_.T("export_player_version_to_ytconfig")){var c;(c=_.v5("PLAYER_CLIENT_VERSION"))?(c=c.split("-")[0].replace(/\./g,""),c=isNaN(Number(c))?"0":c):c="";var x=_.v5("PLAYER_CLIENT_VERSION");if(x){x=x.split("-");var P="";x.length>1&&(P=x[x.length-1]);x=gcx(P.startsWith("canary_experiment")?"canary":P.startsWith("canary_control")?"control":"none")}else x=
"CLIENT_CANARY_STATE_UNKNOWN";B.dimensions={playerClientVersion:c,playerCanaryState:x}}this.logTransport.flush(B);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10386_flushTimer.enabled&&this.JSC$10386_flushTimer.stop()}};
var Jvy=function(B){H7==null&&(H7=new Ip0);var c=H7;var x=c.loggedEventRegister;B.dimensions=B.dimensions||{};B.dimensions.csn=_.Wf()||"";var P=hc7(B.dimensions).join(";");if(B.records!=null)if(x.events.has(P)){var Y;(Y=x.events.get(P).records)==null||Y.push.apply(Y,_.wq(B.records))}else x.events.set(P,B);c.JSC$10386_flushTimer.enabled||c.JSC$10386_flushTimer.start();c.eventsCount++;c.eventsCount>=100&&c.flush()};var Ndm=function(){};
Ndm.prototype.flush=function(B,c){_.T("enable_client_sli_logging")&&_.JP("sliEventBatch",B,{sendIsolatedPayload:!!c})};var H7;var lpF;lpF=function(B){var c=Wjy;B=B===void 0?{}:B;c=c.name;var x=wBX("SUCCESS");Jvy({dimensions:B,records:[{name:c,state:"SLI_STATE_END",status:x}]})};
_.Iu7=function(B,c,x,P){this.name=B;this.sliId=c;this.timeoutMs=x;this.statusOnTimeout=P;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Iu7.prototype.getId=function(){return this.sliId};
_.jX=function(B,c){c=c===void 0?{}:c;B.ongoing||(B.ongoing=!0,B.dimensions=c,B.logSliId=wH0(),Jvy({dimensions:B.dimensions,records:[{name:B.name,state:"SLI_STATE_START",sliId:B.logSliId}]}),B.timeoutMs>0&&(B.timeoutHandle=setTimeout(function(){_.UB(B,B.statusOnTimeout)},B.timeoutMs)))};
_.UB=function(B,c){B.ongoing&&(B.timeoutMs>0&&clearTimeout(B.timeoutHandle),B.ongoing=!1,c={dimensions:B.dimensions,records:[{name:B.name,status:wBX(c),state:"SLI_STATE_END",sliId:B.logSliId}]},ZY.register.delete(B.name+"_"+B.sliId),Jvy(c))};var Wjy=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Ek4=function(){NV.apply(this,arguments)};
_.w(Ek4,NV);Ek4.prototype.getAssociations=function(){return[]};var SCd=new _.A("highlightTextDecoratorColorMapExtension");var vmo=new _.A("styleRunColorMapExtension");var QZO=_.r2(["data-"]),zcQ={};var yBw={};var fV=function(B){this.wrappedPromise_=B===void 0?null:B;this.state_=0;this.JSC$10418_value_=null};
fV.prototype.then=function(B,c,x){return this.wrappedPromise_?this.wrappedPromise_.then(B,c,x):this.state_===1&&B?(B=B.call(x,this.JSC$10418_value_))&&typeof B.then==="function"?B:_.ia(B):this.state_===2&&c?(B=c.call(x,this.JSC$10418_value_))&&typeof B.then==="function"?B:_.O0n(B):this};
fV.prototype.getValue=function(){return this.JSC$10418_value_};
fV.prototype.isRejected=function(){return this.state_==2};
fmt(fV);_.O0n=function(B){var c=new fV;B=B===void 0?null:B;c.state_=2;c.JSC$10418_value_=B===void 0?null:B;return c};
_.ia=function(B){var c=new fV;B=B===void 0?null:B;c.state_=1;c.JSC$10418_value_=B===void 0?null:B;return c};var crO="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var okF=["load","abort","error"],A3=function(B,c,x){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10438_maxAspectRatio_=B;this.disableAnimation_=c===void 0?!1:c;this.disableExifRotation_=x===void 0?!1:x;this.JSC$10438_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10438_reject_=this.resolve_=null};
A3.prototype.transform=function(B){var c=this;this.mime_=B.type;uK(f1m(B),this.dataUrlRead_,this.readError_,this);uK(HW4(B.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(x,P){c.resolve_=x;c.JSC$10438_reject_=P})};
A3.prototype.dataUrlRead_=function(B){this.dataUrl_=B;this.angle_!=null&&Qk5(this)};
A3.prototype.exifRead_=function(B){if(this.disableExifRotation_)this.angle_=0;else{a:if(B=new DataView(B),B.byteLength<2||B.getUint16(0)!==65496)B=-2;else{for(var c=2,x=B.byteLength;c<x;){var P=B.getUint16(c),Y=B.getUint16(c+2);if(P===65505){c+=4;P=B.getUint32(c);Y=B.getUint16(c+4);if(P!==1165519206||Y!==0)break;c+=6;P=B.getUint16(c)===18761;c+=B.getUint32(c+4,P);Y=B.getUint16(c,P);c+=2;for(var g=0;g<Y;g++){if(B.getUint16(c,P)===274){c+=8;B=B.getUint16(c,P);break a}c+=12}}else if(P>>8!==255)break;
else c+=Y+2}B=-1}switch(B){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&&Qk5(this)};
A3.prototype.readError_=function(){this.JSC$10438_reject_()};
var Qk5=function(B){ml(B.JSC$10438_image_,okF,B.completeTransform_,!1,B);B.JSC$10438_image_.src=_.Tz(B.dataUrl_).toString();B.JSC$10438_image_.src!=m7.toString()&&B.JSC$10438_image_.src.substr(0,11)==="data:image/"||B.JSC$10438_reject_()};
A3.prototype.completeTransform_=function(){if(this.JSC$10438_image_.src!=m7.toString()){var B=_.Tz(this.dataUrl_),c=this.JSC$10438_image_.naturalHeight?this.JSC$10438_image_.naturalWidth/this.JSC$10438_image_.naturalHeight:null;this.invalidAspectRatio=c>this.JSC$10438_maxAspectRatio_||c<1/this.JSC$10438_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var x=this.JSC$10438_image_.naturalWidth,P=this.JSC$10438_image_.naturalHeight,Y=c=0,g=this.JSC$10438_image_.naturalHeight?this.JSC$10438_image_.naturalWidth/
this.JSC$10438_image_.naturalHeight:null;g>this.JSC$10438_maxAspectRatio_?(x=this.JSC$10438_maxAspectRatio_*P,c=(x-this.JSC$10438_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$10438_maxAspectRatio_?(P=this.JSC$10438_maxAspectRatio_*x,Y=(P-this.JSC$10438_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=x,x=P,P=g,g=c,c=Y,Y=g;switch(this.angle_){case 90:Y-=x;break;case 180:c-=x;Y-=P;break;case 270:c-=
P}this.cropped||this.angle_%360!==0?(B=document.createElement("canvas"),B.width=x||1,B.height=P||1,this.JSC$10438_image_.naturalWidth&&this.JSC$10438_image_.naturalHeight&&(x=B.getContext("2d"),x.rotate(Math.PI/180*this.angle_),x.drawImage(this.JSC$10438_image_,c,Y,this.JSC$10438_image_.naturalWidth,this.JSC$10438_image_.naturalHeight)),this.transformedData=_.Tz(B.toDataURL(this.mime_))):this.transformedData=B}else this.transformedData=B;this.resolve_(this)}};var ua=function(B,c){_.qf.call(this,B);this.value=c};
_.w(ua,_.qf);
var DY=function(B,c,x,P,Y,g,k){k=k===void 0?!1:k;_.V4.call(this);var n=this;this.JSC$10443_url_=B;this.channelId_=c;this.maxFileSizeMb_=x;this.JSC$10443_maxAspectRatio_=P;this.dropZoneEl_=Y;this.rejectInvalidAspectRatio_=k;this.selectButtonEl_=g;this.JSC$10443_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new ba(this.dropZoneEl_);this.selectOverlay_=new KV(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10443_image_=this.transfer_=null;this.handler_=new _.cf(this);_.bW(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){n.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.w(DY,_.V4);DY.prototype.disposeInternal=function(){for(var B=this.selectButtonEl_.nextSibling;B&&B.parentNode&&B.tagName=="INPUT";)B.parentNode.removeChild(B),B=this.selectButtonEl_.nextSibling;this.cancel();_.V4.prototype.disposeInternal.call(this)};
DY.prototype.uploadPromise=function(){if(this.JSC$10443_image_==null)return null;this.uploadPromise_||FjW(this);return this.uploadPromise_};
DY.prototype.cancel=function(){vk3(this);this.JSC$10443_image_=null};
var vk3=function(B){B.transfer_&&B.transfer_.cancel();B.transfer_=null;B.uploadPromise_=null;B.resolve_=null;B.JSC$10443_reject_=null},FjW=function(B){vk3(B);
B.transfer_=_.ket(B.JSC$10443_url_,{"X-YouTube-ChannelId":B.channelId_},B.JSC$10443_image_);B.handler_.listenOnce(B.transfer_,"l",B.JSC$10445_onUploadComplete_);B.handler_.listenOnce(B.transfer_,"n",B.onUploadError_);B.transfer_.run();B.uploadPromise_=new Promise(function(c,x){B.resolve_=c;B.JSC$10443_reject_=x})};
_.a=DY.prototype;_.a.onChange_=function(B){B.files.length&&(this.JSC$10443_image_=B.files[0],this.JSC$10443_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10443_image_=null,this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(FjW(this),(new A3(this.JSC$10443_maxAspectRatio_)).transform(this.JSC$10443_image_).then((0,_.wf)(this.onPreview_,this),(0,_.wf)(this.onPreviewError_,this))))};
_.a.onPreview_=function(B){if(B.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10443_image_=null),this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;B.cropped&&this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.CHANGE_EVENT",B.transformedData))};
_.a.onPreviewError_=function(){this.JSC$10443_image_=null;this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.a.onHover_=function(B){B.stopPropagation();B.preventDefault();if(B.type==="dragover")B=!0;else if(B.type==="dragleave")B=!1;else return;this.dispatchEvent(new ua("yt.comments.ImageUploadOverlay.HOVER_EVENT",B))};
_.a.JSC$10445_onUploadComplete_=function(){var B=(0,_.UgF)(this.transfer_.getResponseText());this.resolve_(B.encryptedBlobId)};
_.a.onUploadError_=function(){this.JSC$10443_reject_();vk3(this)};var zTW=function(B){B=B||{};var c={},x={};this.url=B.url||"";this.args=B.args||_.wW.clone(c);this.assets=B.assets||{};this.attrs=B.attrs||_.wW.clone(x);this.fallback=B.fallback||null;this.fallbackMessage=B.fallbackMessage||null;this.html5=!!B.html5;this.disable=B.disable||{};this.loaded=!!B.loaded;this.messages=B.messages||{}};
zTW.prototype.clone=function(){var B=new zTW,c;for(c in this)if(this.hasOwnProperty(c)){var x=this[c];B[c]=_.nA(x)=="object"?_.wW.clone(x):x}return B};var SMm,yvm,GQ5,xl,LjZ,Z03,H0n,fpn,i05,AvW,uaZ,Dm0,rvd,RTd,eTd,Bk3,c2Z,x4W,P3S,YQW,a59,ggS,s$F,plQ,kCt,Xl3,$4Q,ngd,byy,do7,K83,j$t,U4t,d4d,qQW,C39,hRW,m4y,Tk3,VqI,tq4,wlI,Nkm,I5F,J23,W89,l5Z,Eg5,Oyy,ogF,Q$F,F8Z,vg3,zRF,SQI,y25,rJ,GCF,MqI,L8F,Zym,HyZ,f5t,iyQ,A29,ujt,D4n,r2t,RR9,eRy,BGI,c6y,x35,PDQ,Y2m,j_d,aPn,gJS,si9,pVI,kOQ,XVS,$3t,nJn,bQQ,KWZ,jiZ,U34,d3W,q20,CD9,hV0,m33,TGd,Vp0,tp5,wVy,NG3,IPF,J69,WW9;SMm=["account/accounts_list"];yvm=["acknowledge_channel_tou_strike"];GQ5=["notification/add_upcoming_event_reminder"];
_.MoI=["att/get"];xl=["browse","music/browse","unplugged/browse"];LjZ=["channel/claim_legacy_youtube_channel"];Z03=["history/clear_search_history"];H0n=["history/clear_watch_history"];fpn=["comment/perform_comment_action"];i05=["comment/get_comment_replies"];AvW=["ypc/commerce_action"];uaZ=["backstage/create_post"];Dm0=["live/create_broadcast"];rvd=["channel/create_channel"];RTd=["comment/create_comment_reply"];eTd=["comment/create_comment"];Bk3=["live_chat/create_poll"];c2Z=["playlist/create"];
x4W=["decorate_message"];P3S=["live_chat/delete_message"];YQW=["playlist/delete"];a59=["video/delete"];ggS=["like/dislike"];s$F=["dismissal/dismiss"];plQ=["flag/flag"];kCt=["flow"];Xl3=["account/account_menu"];$4Q=["playlist/get_add_to_playlist"];ngd=["get_answer"];byy=["channel/get_channel_creation_form"];do7=["offline/get_download_action"];K83=["kids/get_kids_blocklist_picker"];j$t=["live_chat/get_item_context_menu"];U4t=["live_chat/get_live_chat_message_buy_flow"];d4d=["live_chat/get_live_chat_replay"];
qQW=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];C39=["live_chat/get_live_chat_super_sticker_buy_flow"];hRW=["notification/get_notification_menu"];m4y=["playlist/get_settings_editor"];Tk3=["backstage/get_post_video_preview"];VqI=["account/get_profile_card"];tq4=["share/get_share_panel"];wlI=["share/get_sharing_provider_data"];Nkm=["get_survey"];I5F=["notification/get_unseen_count"];J23=["get_user_mention_suggestions"];W89=["get_watch"];l5Z=["guide"];
Eg5=["feedback"];Oyy=["kids/update_blacklist"];ogF=["like/like"];Q$F=["live_chat/live_chat_action"];F8Z=["live_chat/manage_user"];vg3=["video_manager/metadata_update"];zRF=["live_chat/moderate"];SQI=["notification/modify_channel_preference"];y25=["notification/opt_out"];rJ=["get_panel","get_posts_by_host_panel"];GCF=["player"];MqI=["browse/edit_playlist"];L8F=["notification/record_interactions"];Zym=["reel/reel_item_watch"];HyZ=["reel/reel_watch_sequence"];f5t=["like/removelike"];iyQ=["notification/remove_upcoming_event_reminder"];
A29=["flag/get_form"];ujt=["miniapp/report_value"];D4n=["navigation/resolve_url"];r2t=["channel/reveal_business_email"];RR9=["in_video/search"];eRy=["search","sfv/search","unplugged/search"];BGI=["live_chat/send_message"];c6y=["live_chat/send_live_chat_vote"];x35=["account/set_setting"];PDQ=["submit_caption_correction"];Y2m=["subscription/subscribe"];j_d=["get_transcript"];aPn=["resolve_location","unplugged/resolve_location"];gJS=["subscription/unsubscribe"];si9=["backstage/update_post"];pVI=["channel_edit/update_channel_page_settings"];
kOQ=["comment/update_comment_reply"];XVS=["comment/update_comment"];$3t=["comment/update_comments_settings"];nJn=["creator/update_creator_channel"];bQQ=["pdg/update_enablement"];KWZ=["updated_metadata"];jiZ=["channel_edit/validate_channel_handle"];U34=["verify_age"];d3W=["next","unplugged/watch_next"];q20=["whitelist/edit"];CD9=["ypc/cancel_recurrence"];hV0=["ypc/complete_transaction"];m33=["ypc/get_cart"];TGd=["ypc/get_fix_instrument_params"];Vp0=["ypc/get_offers"];tp5=["ypc/get_payment_instruments_params"];
wVy=["ypc/handle_transaction"];NG3=["ypc/log_payment_server_analytics"];IPF=["ypc/pause_subscription"];J69=["ypc/redeem_code"];WW9=["ypc/resume_subscription"];var lP0=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,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,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,
11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var jc=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.rr("yt.msgs_",jc);var RA=new _.BL("ACTION_ROUTER_TOKEN");_.eP=function(){this.autonavState_=_.T("kevlar_is_pupi_enabled")?2:bO7()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.eP.prototype.getState=function(){return this.autonavState_};
_.eP.prototype.pause=function(B){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=B):this.autonavState_==1&&(this.disabledAutonavPauseReason_=B)};
_.eP.prototype.setState=function(B,c,x){c&&(this.autoplayChangedByUser=!0);c=this.autonavState_===3||B===3;this.autonavState_!=B&&(this.autonavState_=B,B!=3&&_.KtX(B==2),B=_.T("kevlar_is_pupi_enabled")?x||c:!0,_.Gr.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,B,x))};
_.eP.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.ag(_.eP);var BK=function(){this.hasRun=!1};var cK={},w_Q=(cK.auto_search="LATENCY_ACTION_AUTO_SEARCH",cK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",cK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",cK.app_startup="LATENCY_ACTION_APP_STARTUP",cK.browse="LATENCY_ACTION_BROWSE",cK.cast_splash="LATENCY_ACTION_CAST_SPLASH",cK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",cK.channels="LATENCY_ACTION_CHANNELS",cK.chips="LATENCY_ACTION_CHIPS",cK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",cK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
cK.editor="LATENCY_ACTION_EDITOR",cK.embed="LATENCY_ACTION_EMBED",cK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",cK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",cK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",cK.explore="LATENCY_ACTION_EXPLORE",cK.favorites="LATENCY_ACTION_FAVORITES",cK.home="LATENCY_ACTION_HOME",cK.inboarding="LATENCY_ACTION_INBOARDING",cK.landing="LATENCY_ACTION_LANDING",cK.library="LATENCY_ACTION_LIBRARY",cK.live=
"LATENCY_ACTION_LIVE",cK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",cK.management="LATENCY_ACTION_MANAGEMENT",cK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",cK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",cK.onboarding="LATENCY_ACTION_ONBOARDING",cK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",cK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",cK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",cK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
cK.prebuffer="LATENCY_ACTION_PREBUFFER",cK.prefetch="LATENCY_ACTION_PREFETCH",cK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",cK.profile_switcher="LATENCY_ACTION_LOGIN",cK.projects="LATENCY_ACTION_PROJECTS",cK.reel_watch="LATENCY_ACTION_REEL_WATCH",cK.results="LATENCY_ACTION_RESULTS",cK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",cK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",cK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",cK.review="LATENCY_ACTION_REVIEW",cK.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",cK.search_ui="LATENCY_ACTION_SEARCH_UI",cK.search_suggest="LATENCY_ACTION_SUGGEST",cK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",cK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",cK.seek="LATENCY_ACTION_PLAYER_SEEK",cK.settings="LATENCY_ACTION_SETTINGS",cK.store="LATENCY_ACTION_STORE",cK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",cK.tenx="LATENCY_ACTION_TENX",cK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",cK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
cK.watch="LATENCY_ACTION_WATCH",cK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",cK["watch,watch7"]="LATENCY_ACTION_WATCH",cK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",cK["watch,watch7ad"]="LATENCY_ACTION_WATCH",cK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",cK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",cK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",cK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",cK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",cK.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",cK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",cK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",cK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",cK),G4q=0;var iOA=function(B,c){tZ.call(this,1,arguments);this.timer=c};
_.w(iOA,tZ);var f0Q=new ajQ("aft-recorded",iOA);var WtC=_.xI.ytLoggingGelSequenceIdObj_||{};_.rr("ytLoggingGelSequenceIdObj_",WtC);var xk=_.xI.ytLoggingLatencyUsageStats_||{};_.rr("ytLoggingLatencyUsageStats_",xk);var PK=function(){this.cleanupJob=0},OOx=function(){PK.instance||(PK.instance=new PK);
return PK.instance};
_.a=PK.prototype;_.a.baseline=function(B,c,x){Yk(this,"baseline_"+B)||_.JP("latencyActionBaselined",{clientActionNonce:B},{timestamp:c,cttAuthInfo:x})};
_.a.tick=function(B,c,x,P){Yk(this,"tick_"+B+"_"+c)||_.JP("latencyActionTicked",{tickName:B,clientActionNonce:c},{timestamp:x,cttAuthInfo:P})};
_.a.info=function(B,c,x){var P=Object.keys(B).join("");Yk(this,"info_"+P+"_"+c)||(B=Object.assign({},B),B.clientActionNonce=c,_.JP("latencyActionInfo",B,{cttAuthInfo:x}))};
_.a.jspbInfo=function(B,c,x){for(var P="",Y=0;Y<aU(B).length;Y++)aU(B)[Y]!==void 0&&(P=Y===0?P.concat(""+Y):P.concat("_"+Y));Yk(this,"info_"+P+"_"+c)||(_.dW(B,2,c),c={cttAuthInfo:x},x=_.T("jspb_sparse_encoded_pivot")?new Tr([{}]):new Tr,_.YX(x,7,Xo5,B),l0O("latencyActionInfo",x,c))};
_.a.span=function(B,c,x){var P=Object.keys(B).join("");Yk(this,"span_"+P+"_"+c)||(B.clientActionNonce=c,_.JP("latencyActionSpan",B,{cttAuthInfo:x}))};
var Yk=function(B,c){xk[c]=xk[c]||{count:0};var x=xk[c];x.count++;x.time=(0,_.BA)();B.cleanupJob||(B.cleanupJob=_.Vp(_.EE,function(){var P=(0,_.BA)(),Y;for(Y in xk)xk[Y]&&P-xk[Y].time>6E4&&delete xk[Y];B&&(B.cleanupJob=0)},5E3));
return x.count>5?(x.count===6&&Math.random()*1E5<1&&(x=new _.mc("CSI data exceeded logging limit with key",c.split("_")),c.indexOf("plev")>=0||_.Ob(x)),!0):!1};var EJI,OQ0;EJI=window;OQ0=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.ti=EJI.performance||EJI.mozPerformance||EJI.msPerformance||EJI.webkitPerformance||new OQ0;var HOC=!1,QzA=!1,Ar7=(0,_.wf)(_.ti.clearResourceTimings||_.ti.webkitClearResourceTimings||_.ti.mozClearResourceTimings||_.ti.msClearResourceTimings||_.ti.oClearResourceTimings||_.qw,_.ti);var oJZ=window;oJZ.ytcsi&&(oJZ.ytcsi.infoGel=_.lg,oJZ.ytcsi.tick=_.Op);var gbd=function(B){tZ.call(this,1,arguments);this.csn=B};
_.w(gbd,tZ);var X3q=new ajQ("screen-created",gbd),TRx=[],aWC=mcC,VVO=0,zq=new Map,sXl=new Map,pLw=new Map;var mdl=Symbol("vf"),ug=new WeakMap;var ak=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},hX=function(){ak.instance||(ak.instance=new ak);
return ak.instance};
_.a=ak.prototype;_.a.setClient=function(B){this.client=B};
_.a.JSC$10524_newScreen=function(){this.clear();this.csn=_.Wf()};
_.a.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.a.reportShown=function(B,c,x){var P=this.JSC$10524_getTrackingParams(B),Y=B.visualElement?B.visualElement:P;c=this.shownElements.has(Y);var g=this.visibleState.get(Y);this.shownElements.add(Y);this.visibleState.set(Y,!0);B.impressionLog&&!c&&B.impressionLog();if(P||B.visualElement)if(x=QiF(this,B,x))if(Y=FWy(this,B),gd(this,B)||Y){P=B.visualElement?B.visualElement:_.VF(P);var k=B.interactionLoggingClientData;Y||c?gd(this,B)&4?g||Uco(this.client,x,P,k):gd(this,B)&1&&!c&&bmO(this.client,x,P,k):bmO(this.client,
x,P,k)}};
_.a.reportHidden=function(B,c,x){var P=this.JSC$10524_getTrackingParams(B),Y=B.visualElement?B.visualElement:P;c=this.hiddenElements.has(Y);var g=this.visibleState.get(Y);this.hiddenElements.add(Y);this.visibleState.set(Y,!1);if(g===!1)return!0;if(!P&&!B.visualElement)return!1;x=QiF(this,B,x);if(!x||!gd(this,B)&&FWy(this,B))return!1;P=B.visualElement?B.visualElement:_.VF(P);gd(this,B)&8?dcx(this.client,x,P):gd(this,B)&2&&!c&&(B=this.client,c=vr({cttAuthInfo:lh(x)||void 0},x),P={csn:x,ve:P.getAsJson(),
eventType:2},x==="UNDEFINED_CSN"?yj("visualElementHidden",c,P):B?Na("visualElementHidden",P,B,c):_.JP("visualElementHidden",P,c));return!0};
_.a.JSC$10524_getTrackingParams=function(B){var c=this.getData(B),x,P;if(_.T("il_use_view_model_logging_context")&&(c==null?0:(x=c.context)==null?0:(P=x.loggingContext)==null?0:P.loggingDirectives))return c.context.loggingContext.loggingDirectives.trackingParams||"";var Y,g;if(c==null?0:(Y=c.rendererContext)==null?0:(g=Y.loggingContext)==null?0:g.loggingDirectives)return c.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams||
"";var k;return((k=B.veContainer)==null?0:k.trackingParams)?B.veContainer.trackingParams:(c==null?void 0:c.trackingParams)||""};
_.a.JSC$10524_elementShouldLogGesture=function(B,c){B=this.getData(B);return!!((Math.floor(Number(B&&B.loggingDirectives&&B.loggingDirectives.gestures&&B.loggingDirectives.gestures.types||""))||0)&c)};
_.a.JSC$10524_getNearestParentVe=function(B){var c=this.JSC$10524_getTrackingParams(B);return B.visualElement?B.visualElement:c?_.VF(c):B.parentElement?this.JSC$10524_getNearestParentVe(B.parentElement):null};
var QiF=function(B,c,x){var P=_.Wf(x);return B.csn===null||P===B.csn||x?P:(B=new _.mc("VisibilityLogger called before newScreen",{caller:c.tagName,previous_csn:B.csn,current_csn:P}),_.Ob(B),null)};
ak.prototype.getData=function(B){var c,x=B.data||((c=B.props)==null?void 0:c.data);if(!x||B.isWebComponentWrapper){var P;x=(P=ug.get(B))==null?void 0:P[mdl]}return x};
var FWy=function(B,c){var x;return!((x=B.getData(c))==null||!x.loggingDirectives)},gd=function(B,c){B=B.getData(c);
return Math.floor(Number(B&&B.loggingDirectives&&B.loggingDirectives.visibility&&B.loggingDirectives.visibility.types||""))||1};var sM;sM=function(){};
_.UL=function(){sM.instance||(sM.instance=new sM);return sM.instance};
sM.prototype.setClient=function(B){_.ya(hX().setClient).bind(hX())(B)};
_.vJ0=function(){_.UL();_.ya(hX().JSC$10524_newScreen).bind(hX())()};
sM.prototype.clear=function(){_.ya(hX().clear).bind(hX())()};
sM.prototype.reportShown=function(B,c,x){_.ya(hX().reportShown).bind(hX())(B,c,x)};
sM.prototype.reportHidden=function(B,c,x){return _.ya(hX().reportHidden).bind(hX())(B,c,x)};
var QnO=function(B,c){return _.ya(hX().JSC$10524_getTrackingParams).bind(hX())(c)},T3O=function(B,c){return _.ya(hX().JSC$10524_getNearestParentVe).bind(hX())(c)};var p0,zVQ;p0=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};
_.q_=function(){p0.instance||(p0.instance=new p0);return p0.instance};
p0.prototype.setClient=function(B){this.client=B};
zVQ=function(B,c,x){x=x===void 0?{}:x;_.ya(function(){var P,Y,g,k=((P=_.t(c==null?void 0:c.commandMetadata,_.Br))==null?void 0:P.rootVe)||((Y=_.t(c==null?void 0:c.commandMetadata,Fsd))==null?void 0:(g=Y.screenVisualElement)==null?void 0:g.uiType);if(k){P=_.t(c==null?void 0:c.commandMetadata,h3W);if(P==null?0:P.parentTrackingParams){var n=_.VF(P.parentTrackingParams);if(P.parentCsn)var b=P.parentCsn}else x.clickedVisualElement?n=x.clickedVisualElement:c.clickTrackingParams&&(n=_.VF(c.clickTrackingParams));
a:{P=_.t(c,_.fN);Y=_.t(c,ujX);if(P){if(Y=jz$(P,"VIDEO")){P={token:Y,videoId:P.videoId};break a}}else if(Y&&(P=jz$(Y,"PLAYLIST"))){P={token:P,playlistId:Y.playlistId};break a}P=void 0}x=Object.assign({},{cttAuthInfo:P,parentCsn:b},x);if(_.T("expectation_logging")){var d;x.loggingExpectations=((d=_.t(c==null?void 0:c.commandMetadata,Fsd))==null?void 0:d.loggingExpectations)||void 0}_.kk(B,k,n,x)}else _.Ob(new _.mc("Error: Trying to create a new screen without a rootVeType",c))})()};
_.kk=function(B,c,x,P){P=P===void 0?{}:P;_.ya(function(){lP0.includes(c)||(_.Ob(new _.mc("createClientScreen() called with a non-page VE",c)),c=83769);P.isHistoryNavigation||(B.forwardHistoryStack=[],B.backHistoryStack.push({rootVe:c,key:P.key||""}));B.graftQueue=[];B.stateChangedQueue=[];P.dataPromises?S25(B,c,x,P):y6y(B,c,x,P)})()};
_.GO5=function(B,c,x){x=x===void 0?0:x;_.ya(function(){c.then(function(P){B.pendingScreenCreation.has(x)&&B.pendingScreenFn&&B.pendingScreenFn();var Y=_.Wf(x),g=_.Jg(x);if(Y&&g){var k;(P==null?0:(k=P.response)==null?0:k.trackingParams)&&Sc(B.client,Y,g,_.VF(P.response.trackingParams));var n;(P==null?0:(n=P.playerResponse)==null?0:n.trackingParams)&&Sc(B.client,Y,g,_.VF(P.playerResponse.trackingParams))}})})()};
p0.prototype.graftServerVe=function(B,c,x){var P=this;return _.ya(function(){var Y=_.VF(B);_.Xa(P,Y,c,x);return Y})()};
_.V8q=function(B,c,x,P){return _.T("enable_client_ve_spec")&&c.clientVeSpec?(c=_.JW(c.clientVeSpec.uiType,void 0,c.clientVeSpec.elementIndex,c.clientVeSpec.clientYoutubeData,void 0,c),_.Xa(B,c,x,P)?c:null):c.trackingParams?B.graftServerVe(c.trackingParams,x,P):null};
_.dX=function(B,c,x,P){return _.ya(function(){if(!c.veType)return _.Eb(new _.mc("Error: Trying to graft a client VE without a veType.")),null;if(c.visibilityTypes){var Y=c.visibilityTypes.reduce(function(g,k){return g|k});
Y={visibility:{types:String(Y)}}}Y=_.JW(c.veType,c.visualElement,c.elementIndex,c.clientYouTubeData,void 0,Y);return _.Xa(B,Y,x,P)?Y:null})()};
_.Xa=function(B,c,x,P){P=P===void 0?0:P;return _.ya(function(){if(B.pendingScreenCreation.has(P))return B.graftQueue.push([c,x]),!0;var Y=_.Wf(P),g=x||_.Jg(P);if(Y&&g){if(_.T("combine_ve_grafts")){var k=B.cachedVisualElements.get(g.toString());k?k.push(c):(B.cachedRootVisualElements.set(g.toString(),g),B.cachedVisualElements.set(g.toString(),[c]));B.attachTimeout||(B.attachTimeout=_.Vp(_.EE,function(){Mp0(B,Y)},1200))}else Sc(B.client,Y,g,c);
return!0}return!1})()};
_.$k=function(B,c,x){x=x===void 0?0:x;var P=B.recurringGrafts.get(x)||new Map;if(_.T("smarter_ve_dedupping"))for(var Y=Array.from(P.keys()),g=0;g<Y.length;g++){var k=void 0,n=void 0;var b=c;var d=Y[g];d.isClientVe()&&b.isClientVe()?(k=b.getAsJson(),n=d.getAsJson(),b=k.veType!==n.veType||k.elementIndex!==n.elementIndex||k.dataElement!==n.dataElement||b.getLoggingDirectives()!==d.getLoggingDirectives()?!1:!0):b=d.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((n=b.veData)==null?void 0:
n.trackingParams)===((k=d.veData)==null?void 0:k.trackingParams):!1;if(b)return}else if(P.has(c))return;P.set(c,void 0);B.recurringGrafts.set(x,P);_.Wf(x)==="UNDEFINED_CSN"||B.pendingScreenCreation.has(x)||_.Xa(B,c,void 0,x)};
_.n0=function(B,c,x,P){P=_.Wf(P===void 0?0:P);if(!P)return!1;CYo(B.client,P,c,x);return!0};
_.bd=function(B,c,x,P){if(!c)return!1;P=_.Wf(P===void 0?0:P);if(!P)return!1;CYo(B.client,P,_.VF(c),x);return!0};
_.GU=function(B,c){var x=c.getScreenLayer&&c.getScreenLayer();if(c.visualElement)return _.n0(B,c.visualElement,void 0,x);c=QnO(_.UL(),c);return _.bd(B,c,void 0,x)};
p0.prototype.clickCommand=function(B,c,x){return _.bd(this,B.clickTrackingParams,c,x===void 0?0:x)};
p0.prototype.stateChanged=function(B,c,x){this.visualElementStateChanged(_.VF(B),c,x===void 0?0:x)};
p0.prototype.visualElementStateChanged=function(B,c,x){x=x===void 0?0:x;x===0&&this.pendingScreenCreation.has(x)?this.stateChangedQueue.push([B,c]):this.logStateChanged(B,c,x)};
p0.prototype.logStateChanged=function(B,c,x){x=x===void 0?0:x;var P=_.Wf(x);B=B||_.Jg(x);return P&&B?(h5w(this.client,P,B,c),!0):!1};
var S25=function(B,c,x,P){P=P===void 0?{}:P;B.pendingScreenCreation.add(P.layer||0);B.pendingScreenFn=function(){y6y(B,c,x,P);var k=_.Jg(P.layer);if(k){for(var n=_.p(B.graftQueue),b=n.next();!b.done;b=n.next())b=b.value,_.Xa(B,b[0],b[1]||k,P.layer);k=_.p(B.stateChangedQueue);for(n=k.next();!n.done;n=k.next())n=n.value,B.logStateChanged(n[0],n[1])}};
x||_.Wf(P.layer)||B.pendingScreenFn();if(P.dataPromises)for(var Y=_.p(P.dataPromises),g=Y.next();!g.done;g=Y.next())_.GO5(B,g.value,P.layer);else _.lb(Error("wf"))},y6y=function(B,c,x,P){P=P===void 0?{}:P;
var Y=void 0;P.layer||(P.layer=0);Y=P.parentLayer!==void 0?P.parentLayer:P.layer;var g=_.Wf(Y);Y=_.Jg(Y);var k=x||Y,n;k&&(P.parentCsn!==void 0?n={clientScreenNonce:P.parentCsn,visualElement:k}:g&&g!=="UNDEFINED_CSN"&&(n={clientScreenNonce:g,visualElement:k}));var b,d=_.v5("EVENT_ID");g==="UNDEFINED_CSN"&&d&&(b={servletData:{serializedServletEventId:d}});_.T("combine_ve_grafts")&&g&&Mp0(B,g);_.T("no_client_ve_attach_unless_shown")&&k&&g&&nbX(k,g);try{var q=_.kxO(B.client,c,n,P.csnToClone,P.cttAuthInfo,
b,P.implicitGestureType,void 0,P.loggingExpectations)}catch(V){_.oG(V,{rootVeType:c,rootVe:Y,parentVisualElement:x,currentCsn:g,parentEl:n,csnToClone:P.csnToClone});_.lb(V);return}_.En(q,c,P.layer,P.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&Y&&!qV$(g)&&dcx(B.client,g,Y,!0);B.backHistoryStack[B.backHistoryStack.length-1]&&!B.backHistoryStack[B.backHistoryStack.length-1].csn&&(B.backHistoryStack[B.backHistoryStack.length-1].csn=q||"");_.lg({clientScreenNonce:q});_.vJ0();var C=_.Jg(P.layer);g&&g!=="UNDEFINED_CSN"&&
C&&(_.T("web_mark_root_visible")||_.T("music_web_mark_root_visible"))&&_.LW(q,C);B.pendingScreenCreation.delete(P.layer||0);B.pendingScreenFn=void 0;var h;(h=B.recurringGrafts.get(P.layer))==null||h.forEach(function(V,N){V?_.Xa(B,N,V,P.layer):C&&_.Xa(B,N,C,P.layer)});
LWF(B)},LWF=function(B){for(var c=0;c<B.afterNewScreenOneOffJobs.length;c++){var x=B.afterNewScreenOneOffJobs[c];
try{x()}catch(P){_.lb(P)}}for(c=B.afterNewScreenOneOffJobs.length=0;c<B.afterNewScreenRecurringJobs.length;c++){x=B.afterNewScreenRecurringJobs[c];try{x()}catch(P){_.lb(P)}}},Mp0=function(B,c){if(c===void 0)for(var x=Uf$(),P=0;P<x.length;P++)x[P]!==void 0&&Mp0(B,x[P]);
else B.cachedVisualElements.forEach(function(Y,g){(g=B.cachedRootVisualElements.get(g))&&XLq(B.client,c,g,Y)}),B.cachedVisualElements.clear(),B.cachedRootVisualElements.clear(),B.attachTimeout=void 0};var K0=function(B){B=B===void 0?{layer:0}:B;this.hasRun=!1;this.createScreenConfig=B;B={};this.bLj=(B.response=!1,B.playerResponse=!1,B)};
_.w(K0,BK);K0.prototype.validate=function(B){return!(!B.data||!B.data.response&&!B.data.playerResponse)};
K0.prototype.handle=function(B){var c=_.q_(),x=this.createScreenConfig.layer;B.data.response&&B.data.response.trackingParams&&!this.bLj.response&&(c.graftServerVe(B.data.response.trackingParams,void 0,x),this.bLj.response=!0);B.data.playerResponse&&B.data.playerResponse.trackingParams&&!this.bLj.playerResponse&&(c.graftServerVe(B.data.playerResponse.trackingParams,void 0,x),this.bLj.playerResponse=!0)};var jo=function(){this.hg=_.Hw();this.oz=[];this.g3b=0};
jo.prototype.processChunk=function(B){if(B){for(var c=_.p(this.oz),x=c.next();!x.done;x=c.next())x=x.value,x.validate(B)&&(x.handle(B),x.hasRun=!0);_.Op("np"+this.g3b);this.g3b++}};var D1;var YuO,ZQ4,iQF;_.bA=function(B,c,x,P,Y,g,k){k=k===void 0?[]:k;this.buildCommandPayload=B;this.navigate=c;this.handleServiceRequest=x;this.sendAction=P;this.JSC$10565_screenManager=Y;this.commandResolverMap=g;this.autoLogResolverAllowlist=k;this.pendingCommands=new Set;this.isTracingEnabled=!1;ZQ4(this)};
YuO=function(B,c,x){var P=ZI$,Y=HIq,g=_.q_(),k=HQ3;x=x===void 0?[]:x;_.bA.instance=new _.bA(B,c,P,Y,g,k,x)};
ZQ4=function(B){if(!B.isTracingEnabled&&wLd("command")){var c=B.resolveCommand;B.resolveCommand=function(x,P){a:{for(Y in x)if(Object.prototype.hasOwnProperty.call(x,Y)){var Y={commandType:Y};break a}Y={}}return JZC("command",Y,c.bind(this,x,P))};
B.isTracingEnabled=!0}};
iQF=function(B,c,x){if(!B.commandResolverMap)return!1;var P=OmI(c,B.commandResolverMap);return P?((B.autoLogResolverAllowlist.some(function(Y){return!!_.t(c,Y)})||(x==null?0:x.forceClickLogging))&&fPI(B,c,x),P instanceof Promise?P.then(function(Y){Y.resolve(c,x)}):P.resolve(c,x),!0):!1};
_.bA.prototype.resolveCommand=function(B,c){var x=this,P=A6W(B);if(iQF(this,B,c))return!0;if(P)return urW(this,B,c);if(!this.buildCommandPayload)return WEY(B,"Unhandled command by buildCommandPayload"),!1;var Y=this.buildCommandPayload(B,c);if(c==null?0:c.commandController)Y.commandController=c.commandController;if(Y.type===0){if(!this.navigate)return lWx(B,"navigate"),!1;if(!D3S(Y.command))return WEY(B,"Page requests need to specify a url"),!1;_.T("logging_avoid_blocking_during_navigation")&&_.iFd().transition("application_navigating");
B=this.navigate(Y)||[];e94(B).then(function(){x.pendingCommands.delete(Y.command)});
return!0}if(Y.type===1){if(!this.handleServiceRequest)return lWx(B,"handleServiceRequest"),!1;(c==null?0:c.forceClickLogging)&&fPI(this,Y.command,c);B=this.handleServiceRequest(Y);e94(B).then(function(){x.pendingCommands.delete(Y.command)});
return!0}if(Y.type===2){if(!this.sendAction)return lWx(B,"sendAction"),!1;fPI(this,Y.command,c);this.sendAction(Y);return!0}return!1};
var fPI=function(B,c,x){if((x==null||!x.disableClickTracking)&&B.JSC$10565_screenManager)if(c.clickTrackingParams&&_.T("log_click_with_layer_from_element_in_command_handler")){var P;x=x==null?void 0:(P=x.form)==null?void 0:P.element;B.JSC$10565_screenManager.clickCommand(c,null,x&&x.getScreenLayer&&x.getScreenLayer())}else c.clickTrackingParams?B.JSC$10565_screenManager.clickCommand(c):!_.T("disable_clicked_visual_element_in_command_handler")&&(x==null?0:x.clickedVisualElement)&&_.n0(B.JSC$10565_screenManager,
x.clickedVisualElement)},A6W=function(B){var c=!!_.t(B,_.nW),x;
B=((x=_.t(B,_.KW))==null?void 0:x.signal)==="CLIENT_SIGNAL";return c||B},urW=function(B,c,x){var P=_.t(c,_.nW);
if(P)var Y=(P==null?void 0:P.commands)||[];else{var g;if(((g=_.t(c,_.KW))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var k;Y=((k=_.t(c,_.KW))==null?void 0:k.actions)||[]}}if(Y){c=_.p(Y);for(Y=c.next();!Y.done;Y=c.next()){Y=Y.value;try{B.resolveCommand(Y,x)}catch(n){n instanceof Error&&_.lb(n)}}return!0}WEY(c,"Could not handle the meta command");return!1},D3S=function(B){var c;
return!((c=_.t(B==null?void 0:B.commandMetadata,_.Br))==null||!c.url)};var UM=function(){BK.apply(this,arguments)};
_.w(UM,BK);UM.prototype.validate=function(B){var c,x;return!this.hasRun&&!!((c=B.data.response)==null?0:(x=c.onResponseReceivedEndpoints)==null?0:x.length)};
UM.prototype.handle=function(B){var c=_.bA.instance;B=_.p(B.data.response.onResponseReceivedEndpoints);for(var x=B.next();!x.done;x=B.next())c.resolveCommand(x.value)};var r63,RVm,eVZ;
r63=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=_.$C();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.dd=function(){RVm||(RVm=new r63);return RVm};
eVZ=function(){var B=_.dd();B.miniplayerButtonActivation=!1;B.userActivation=!1;B.playlistWatchPageActivation=!1;B.productDetailsPageActivation=!1;B.miniAppPageActivation=!1;B.playablesDestPageActivation=!1;B.lockupActivation=!1;B.showMiniplayerCommandActivation=!1;B.playlistSuggestionsShelfActivation=!1;B.mediaSessionPipActivation=!1;B.watchPipActivation=!1;B.watchWhileActivation=!1;B.shortsPipActivation=!1};
_.BZd=function(){var B=_.dd(),c=B.mediaSessionPipActivation,x=B.watchPipActivation,P=B.watchWhileActivation,Y=B.playlistWatchPageActivation,g=B.lockupActivation,k=B.showMiniplayerCommandActivation,n=B.navigatingAwayFromWatchDeletedVideo,b=B.shortsPipActivation,d=B.playlistSuggestionsShelfActivation,q=B.productDetailsPageActivation,C=B.miniAppPageActivation,h=B.playablesDestPageActivation;return!B.miniplayerButtonActivation&&!Y&&!d&&!q&&!C&&!h&&!g&&!k&&!c&&!x&&!P&&!b||n};var Vyd;_.qm=ec("FEwhat_to_watch","/",3854);_.tyI=ec("FEdownloads","/feed/downloads",42352);Vyd=ec("FEmusic_offline","browse/FEmusic_offline",42352);var Am=function(B,c){c=c===void 0?[]:c;var x=x===void 0?[]:x;c=BQl.apply(null,[cdX.apply(null,_.wq(c))].concat(_.wq(x)));this.store=aZX(B,void 0,c)};
Am.prototype.getState=function(){return this.store.getState()};
Am.prototype.dispatch=function(B){return this.store.dispatch(B)};
Am.prototype.subscribe=function(B){return this.store.subscribe(B)};
Am.prototype.replaceReducer=function(B){return this.store.replaceReducer(B)};
Am.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.C0=function(B,c,x){var P=c(B.getState());return B.subscribe(function(){var Y=c(B.getState());if(Y!==P){var g=P;P=Y;x(Y,g)}})};var VEI;_.Uy=function(B,c,x){return _.YN({type:"REPLACE_ENTITY",payload:{entityPayload:x,entityType:B,key:c}})};
VEI=function(B){return _.YN({type:"REPLACE_ENTITIES",payload:B})};
_.Wv=function(B,c,x,P){return _.YN({type:"UPDATE_ENTITY",payload:{entityPayload:x,entityType:B,key:c,mergeOption:P}})};var fWQ=function(B){var c=this;B=B===void 0?[]:B;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;B.forEach(function(x){c.append(x)})};
_.a=fWQ.prototype;_.a.getLength=function(){return this.totalLength};
_.a.append=function(B){var c=this.arrays.length===0?!1:(c=this.arrays[this.arrays.length-1])&&c.buffer===B.buffer&&c.byteOffset+c.length===B.byteOffset;c?(c=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(c.buffer,c.byteOffset,c.length+B.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(B);this.totalLength+=B.length};
_.a.split=function(B){for(var c=new fWQ,x=new fWQ,P=_.p(this.arrays),Y=P.next();!Y.done;Y=P.next())Y=Y.value,B>=Y.length?(c.append(Y),B-=Y.length):B?(c.append(new Uint8Array(Y.buffer,Y.byteOffset,B)),x.append(new Uint8Array(Y.buffer,Y.byteOffset+B,Y.length-B)),B=0):x.append(Y);return{headView:c,tailView:x}};
_.a.extract=function(B,c){return this.split(B).tailView.split(c).headView};
_.a.isFocused=function(B){return B>=this.arrayPos&&B<this.arrayPos+this.arrays[this.arrayIdx].length};
_.a.focus=function(B){if(!this.isFocused(B))for(B<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=B&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var cut=function(B,c){B.focus(c);return B.arrays[B.arrayIdx][c-B.arrayPos]};(function(){var B=function(P){return new Uint8Array(P)},c=function(P){for(var Y=new Uint8Array(P.length),g=0;g<P.length;g++)Y[g]=P[g];
return Y},x=new Uint8Array([1]);
return x.length===1&&x[0]===1?B:c})();
var yZO=Array(1024),Shd=window.TextDecoder?new TextDecoder:void 0,MVO=window.TextEncoder?new TextEncoder:void 0;var Hmq=function(B){this.arrayView=B;this.pos=0;this.pendingTagAndType=-1},aw=function(B){var c=cut(B.arrayView,B.pos);
++B.pos;if(c<128)return c;for(var x=c&127,P=1;c>=128;)c=cut(B.arrayView,B.pos),++B.pos,P*=128,x+=(c&127)*P;return x},imC=function(B,c){var x=B.pendingTagAndType;
for(B.pendingTagAndType=-1;B.pos+1<=B.arrayView.totalLength;){x<0&&(x=aw(B));var P=x>>3,Y=x&7;if(P===c)return!0;if(P>c){B.pendingTagAndType=x;break}x=-1;switch(Y){case 0:aw(B);break;case 1:B.pos+=8;break;case 2:P=aw(B);B.pos+=P;break;case 5:B.pos+=4}}return!1};var uHQ=function(){this.pos=0;this.submessagePosStack=[];this.buf=ZmO(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},pk=function(B,c){c=B.pos+c;
if(!(B.buf.length>=c)){for(var x=B.buf.length*2;x<c;)x*=2;B.buf=ZmO(x,B.buf.subarray(0,B.pos));B.view=new DataView(B.buf.buffer,B.buf.byteOffset,B.buf.byteLength)}},sv=function(B,c){if(c>268435455){pk(B,4);
for(var x=c&1073741823,P=0;P<4;P++)B.view.setUint8(B.pos,x&127|128),x>>=7,B.pos+=1;c=Math.floor(c/268435456)}for(pk(B,4);c>127;)B.view.setUint8(B.pos,c&127|128),c>>=7,B.pos+=1;B.view.setUint8(B.pos,c);B.pos+=1};for(var DcA={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},AZ$={},xz9=_.p(Object.entries(DcA)),P6m=xz9.next();!P6m.done;P6m=xz9.next()){var YUW=_.p(P6m.value),a4W=YUW.next().value,gG9=YUW.next().value,seS=a4W,pDW=gG9;pDW&&(AZ$[pDW]=seS)};var R5w=function(B,c){B=B===void 0?{}:B;switch(c.type){case "ENTITY_LOADED":return c.payload.reduce(function(P,Y){var g,k=(g=Y.options)==null?void 0:g.persistenceOption;if(k&&k!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&k!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!Y.entityKey)return _.lb(Error("Af")),P;if(Y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Y.payload)return Y=new _.mc("REPLACE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.lb(Y),P;var n=(0,_.wW.getAnyKey)(Y.payload);
return B77(P,n,Y.entityKey,Y.payload[n])}if(Y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Y=Y.entityKey;try{var b=_.gL(Y).entityType;n=B77(P,b,Y);break a}catch(C){if(C instanceof Error){Y=new _.mc("Failed to deserialize entity key",{entityKey:Y,originalMessage:C.message});_.lb(Y);n=P;break a}throw C;}n=void 0}return n}if(Y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Y.payload)return Y=new _.mc("UPDATE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.lb(Y),P;n=(0,_.wW.getAnyKey)(Y.payload);
var d,q;return cU7(P,n,Y.entityKey,Y.payload[n],(d=Y.fieldMask)==null?void 0:(q=d.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return P},B);
case "REPLACE_ENTITY":var x=c.payload;return B77(B,x.entityType,x.key,x.entityPayload);case "REPLACE_ENTITIES":return Object.keys(c.payload).reduce(function(P,Y){var g=c.payload[Y];return Object.keys(g).reduce(function(k,n){return B77(k,Y,n,g[n])},P)},B);
case "UPDATE_ENTITY":return x=c.payload,cU7(B,x.entityType,x.key,x.entityPayload,x.mergeOption);default:return B}};var xlQ;var kH9=!1,hv,mj,TQ,VO,tv,XDQ=function(B){_.tG.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!kH9){var c,x=new Uint8Array(256),P=new Uint8Array(256);var Y=1;for(c=0;c<256;c++)x[Y]=c,P[c]=Y,Y^=Y<<1^(Y>>7&&283);hv=new Uint8Array(256);mj=$N(256);TQ=$N(256);VO=$N(256);tv=$N(256);for(var g=0;g<256;g++){Y=g?P[255^x[g]]:0;Y^=Y<<1^Y<<2^Y<<3^Y<<4;Y=Y&255^Y>>>8^99;hv[g]=Y;c=Y<<1^(Y>>7&&283);var k=c^Y;mj[g]=c<<24|Y<<16|Y<<8|k;TQ[g]=k<<24|mj[g]>>>8;VO[g]=Y<<24|TQ[g]>>>
8;tv[g]=Y<<24|VO[g]>>>8}kH9=!0}Y=$N(44);for(x=0;x<4;x++)Y[x]=B[4*x]<<24|B[4*x+1]<<16|B[4*x+2]<<8|B[4*x+3];for(P=1;x<44;x++)B=Y[x-1],x%4||(B=(hv[B>>16&255]^P)<<24|hv[B>>8&255]<<16|hv[B&255]<<8|hv[B>>>24],P=P<<1^(P>>7&&283)),Y[x]=Y[x-4]^B;this.key=Y};
_.w(XDQ,_.tG);
XDQ.prototype.encrypt=function(B){var c=B.length;B=new Uint8Array(B.buffer.slice(B.byteOffset,B.byteOffset+c));for(var x=this.cipherBlock,P=0;P<c&&this.blockOffset<16;)B[P++]^=x[this.blockOffset++];for(var Y=c-(c-P)%16;P<Y;)$zF(this),B[P++]^=x[0],B[P++]^=x[1],B[P++]^=x[2],B[P++]^=x[3],B[P++]^=x[4],B[P++]^=x[5],B[P++]^=x[6],B[P++]^=x[7],B[P++]^=x[8],B[P++]^=x[9],B[P++]^=x[10],B[P++]^=x[11],B[P++]^=x[12],B[P++]^=x[13],B[P++]^=x[14],B[P++]^=x[15];if(P<c)for($zF(this),this.blockOffset=0;P<c;)B[P++]^=
x[this.blockOffset++];return B};
var $zF=function(B){for(var c=B.key,x=B.counter[0]^c[0],P=B.counter[1]^c[1],Y=B.counter[2]^c[2],g=B.counter[3]^c[3],k=3;k>=0&&!(B.counter[k]=-~B.counter[k]);k--);for(var n,b,d=4;d<40;)k=mj[x>>>24]^TQ[P>>16&255]^VO[Y>>8&255]^tv[g&255]^c[d++],n=mj[P>>>24]^TQ[Y>>16&255]^VO[g>>8&255]^tv[x&255]^c[d++],b=mj[Y>>>24]^TQ[g>>16&255]^VO[x>>8&255]^tv[P&255]^c[d++],g=mj[g>>>24]^TQ[x>>16&255]^VO[P>>8&255]^tv[Y&255]^c[d++],x=k,P=n,Y=b;B=B.cipherBlock;k=c[40];B[0]=hv[x>>>24]^k>>>24;B[1]=hv[P>>16&255]^k>>16&255;B[2]=
hv[Y>>8&255]^k>>8&255;B[3]=hv[g&255]^k&255;k=c[41];B[4]=hv[P>>>24]^k>>>24;B[5]=hv[Y>>16&255]^k>>16&255;B[6]=hv[g>>8&255]^k>>8&255;B[7]=hv[x&255]^k&255;k=c[42];B[8]=hv[Y>>>24]^k>>>24;B[9]=hv[g>>16&255]^k>>16&255;B[10]=hv[x>>8&255]^k>>8&255;B[11]=hv[P&255]^k&255;k=c[43];B[12]=hv[g>>>24]^k>>>24;B[13]=hv[x>>16&255]^k>>16&255;B[14]=hv[P>>8&255]^k>>8&255;B[15]=hv[Y&255]^k&255};var nGm=!1;(function(){var B=function(P){return new Uint8Array(P)},c=function(P){for(var Y=new Uint8Array(P.length),g=0;g<P.length;g++)Y[g]=P[g];
return Y},x=new Uint8Array([1]);
return x.length===1&&x[0]===1?B:c})();
var wd;var jet=function(B){a:{if(!nGm&&!up){if(wd){var c=wd;break a}wd=(c=window.crypto)==null?void 0:c.subtle;var x,P,Y;if(((x=wd)==null?0:x.importKey)&&((P=wd)==null?0:P.sign)&&((Y=wd)==null?0:Y.encrypt)){c=wd;break a}wd=void 0}c=void 0}c&&(this.nativeEncryptor=new bj9(B,c));this.encryptorPolyfill=new KAQ(B)};
jet.prototype.encrypt=function(B,c){var x=this,P;return _.X(function(Y){switch(Y.nextAddress){case 1:if(!x.nativeEncryptor){Y.jumpTo(2);break}_.kM(Y,3);return _.K(Y,x.nativeEncryptor.encrypt(B,c),5);case 5:return Y.return(Y.yieldResult);case 3:P=_.be(Y),_.Ob(P),nGm=!0,x.nativeEncryptor=void 0;case 2:return Y.return(x.encryptorPolyfill.encrypt(B,c))}})};
var bj9=function(B,c){this.JSC$10637_aesKey=B;this.subtleCrypto=c};
bj9.prototype.encrypt=function(B,c){var x=this,P;return _.X(function(Y){if(Y.nextAddress==1)return _.kM(Y,2),_.K(Y,Uzt(x,B,c),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);P=_.be(Y);_.Ob(P);nGm=!0;throw P;})};
var Uzt=function(B,c,x){var P,Y;return _.X(function(g){switch(g.nextAddress){case 1:if(B.cryptoKey){g.jumpTo(2);break}return _.K(g,B.subtleCrypto.importKey("raw",B.JSC$10637_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:B.cryptoKey=g.yieldResult;case 2:return P={name:"AES-CTR",counter:x,length:128},_.K(g,B.subtleCrypto.encrypt(P,B.cryptoKey,c),4);case 4:return Y=g.yieldResult,g.return(new Uint8Array(Y))}})},KAQ=function(B){this.JSC$10640_aesKey=B};
KAQ.prototype.encrypt=function(B,c){this.encryptor||(this.encryptor=new XDQ(this.JSC$10640_aesKey));for(var x=this.encryptor,P=0;P<4;P++)x.counter[P]=c[P*4]<<24|c[P*4+1]<<16|c[P*4+2]<<8|c[P*4+3];x.blockOffset=16;return this.encryptor.encrypt(B)};var dzn={},aEl=eR("yt-idb-pref-storage",{objectStores:(dzn.prefs={addedAtVersion:1},dzn),shared:!1,upgrade:function(B,c){c(1)&&yx(Sl(B,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Nm=function(B){this.token=B};
_.Nm.getInstance=function(){return _.X(function(B){return B.return(new Promise(function(c){_.RH().then(function(x){x?(_.Nm.instance||(_.Nm.instance=new _.Nm(x)),c(_.Nm.instance)):c(void 0)})}))})};
_.Nm.prototype.get=function(B){var c=this,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,gvl(c.token),2);if(g.nextAddress!=3)return x=g.yieldResult,_.K(g,x.get("prefs",B),3);P=g.yieldResult;if(!P)return g.return();Y=(0,_.BA)();return P.expirationTimestampMs<=Y?g.return():g.return(P.value)})};
_.Nm.prototype.set=function(B,c,x){x=x===void 0?31536E3:x;var P=this,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return Y=(0,_.BA)(),g={key:B,value:c,expirationTimestampMs:Y+x*1E3},_.K(n,gvl(P.token),2);k=n.yieldResult;return _.K(n,k.put("prefs",g),0)})};
_.Nm.prototype.remove=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,gvl(c.token),2);x=P.yieldResult;return _.K(P,x.delete("prefs",B),0)})};var Ik={},qUt=(Ik.INVALID_ENCODER_VERSION="Invalid encoder version",Ik.KEY_CREATION_FAILED="Failed to create encoder key",Ik.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Ik.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Ik.WRONG_DATA_TYPE="Encoder cannot process the data type",Ik),nk=function(B,c){c=c===void 0?{}:c;_.mc.call(this,qUt[B],Object.assign({},{name:"PESEncoderError",type:B},c));this.type=B;this.level="WARNING";Object.setPrototypeOf(this,nk.prototype)};
_.w(nk,_.mc);var C6Z=function(){},h0y=function(B,c,x){try{return B.encodeImpl(c,x)}catch(P){X6Q(P,p6Q)}},mz5=function(B,c,x){var P;
return _.X(function(Y){if(Y.nextAddress==1)return _.kM(Y,2),_.K(Y,B.decodeAsyncImpl(c,x),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);P=_.be(Y);X6Q(P,kg7);_.Kq(Y)})};
C6Z.prototype.decodeAsyncImpl=function(B,c){return Promise.resolve(this.decodeImpl(B,c))};var Jv=function(B,c){this.aesEncryptor=B;this.aesEncryptorAsync=c};
_.w(Jv,C6Z);Jv.prototype.encodeImpl=function(B,c){c=$lw(c);B=(new TextEncoder).encode(JSON.stringify(B));return this.aesEncryptor.encrypt(B,c)};
Jv.prototype.decodeImpl=function(B,c){if(!(B instanceof Uint8Array))throw s8C(1);var x=new TextDecoder;c=$lw(c);B=this.aesEncryptor.encrypt(B,c);return JSON.parse(x.decode(B))};
Jv.prototype.decodeAsyncImpl=function(B,c){var x=this,P,Y,g;return _.X(function(k){if(k.nextAddress==1){if(!(B instanceof Uint8Array))throw s8C(1);P=new TextDecoder;Y=$lw(c);return _.K(k,x.aesEncryptorAsync.encrypt(B,Y),2)}g=k.yieldResult;return k.return(JSON.parse(P.decode(g)))})};var nvI={accountLinkStatusEntity:i9t,booleanEntity:V1Z,buttonEntity:OVt,captionTrack:mc9,channelHandle:pGS,chipEntity:$VI,commerceAcquisitionClientPayloadEntity:Pdy,commerceCartListEntity:YMt,contextNoteFeedEntityPayload:jgd,continuationTokenEntity:xX0,downloadQualityPickerEntity:HR9,downloadsPageRefreshTokenEntity:iRy,downloadsPageViewConfigurationEntity:nft,downloadStatusEntity:fuF,dismissState:n5W,sfvAudioItemCurrentlyPlayingEntity:B75,emojiFountainDataEntity:WQS,emojiCustomizationSetEntity:J3n,
fakeChannel:NpW,fakePlaylist:IDd,fakePlaylistEntryCollection:JeS,fakeVideo:lDt,fakeVideoDescription:E70,featuredProductsEntity:OO4,flowStateEntity:LvI,iconBadgeEntity:apt,interstitialInteractionStateEntity:XB3,likeButtonAnimationEntity:bO0,liveChatPollStateEntity:qVy,liveViewerLeaderboardChatEntryPointStateEntity:FEy,liveViewerLeaderboardPointsEntity:vbn,liveReactionsDataEntity:lYd,logoEntity:pBt,macroMarkerEntity:Ktt,mainDownloadsLibraryEntity:AB5,mainDownloadsListEntity:uLF,mainPlaylistDownloadStateEntity:rB9,
mainPlaylistEntity:PMW,mainPlaylistVideoEntity:YNy,mainVideoDownloadStateEntity:Rcn,mainVideoEntity:p_9,markersEngagementPanelSyncEntity:jzy,markersVisibilityOverrideEntity:UXy,musicAlbumReleaseDetail:ZOS,musicAlbumReleaseDownloadMetadataEntity:SNt,musicAlbumRelease:Lt3,musicAlbumReleaseUserDetail:HO9,musicArtistDetail:iOS,musicArtist:f0I,musicArtistUserDetail:Ar5,musicDownloadsLibraryEntity:yrd,musicLibraryEdit:ufI,musicLibraryStatusEntity:DXF,musicPlaylist:rry,musicPlaylistDownloadMetadataEntity:G4m,
musicShare:eB4,musicTrackDetail:cZm,musicTrackDownloadMetadataEntity:Mm0,musicTrack:BRQ,musicTrackUserDetail:xc5,offlineOrchestrationActionWrapperEntity:TR4,offlineVideoPolicy:VVd,offlineVideoStreams:tVI,offlineabilityEntity:ecW,orchestrationWebSamplingEntity:BB4,pageHeaderEntity:he0,pdpStateEntity:gkI,pinnedProductEntity:ofm,playbackData:wLZ,playerStateEntity:dXI,quantityIncrementerEntity:sk3,refresh:NRS,saveToPlaylistListEntity:mlQ,selectedChipIndexEntityPayload:qNy,settingEntity:fyZ,stringEntity:t1Z,
suggestedFeedbackChipStateEntity:CMt,transfer:IWS,trendingOfferEntity:QzS,videoDownloadContextEntity:JZ9,videoOverviewAsyncDataEntity:Ek4,videoPlaybackPositionEntity:FQ5,votingEntity:tPZ,ytMainChannelEntity:k4F,youchatPendingResponseEntity:hBm,ytMainDownloadedVideoEntity:crd,ytMainVideoEntity:X_m};var TZW,tMd,dL,h3w,mlY,I4m,WA5,Jut,NZn;TZW=function(B,c){this.JSC$10659_wrapped=B;this.JSC$10659_encoderRegistry=c;this.changedKeys={}};
tMd=function(B,c){a:{B=VMt(B.JSC$10659_encoderRegistry,c.version);try{var x=B.decodeImpl(c.data,c.key);break a}catch(P){X6Q(P,kg7)}x=void 0}return x};
_.wDQ=function(B,c,x){return B.JSC$10659_wrapped.objectStore("EntityStore").get(c).then(function(P){if(P){if(x&&P.entityType!==x)throw Error("Bf");return tMd(B,P)}})};
dL=function(B,c,x){return x?(x=x.map(function(P){return _.wDQ(B,P,c)}),vp.all(x)):B.JSC$10659_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(c)).then(function(P){return P.map(function(Y){return tMd(B,Y)})})};
_.C9X=function(B,c,x){var P=rZO(c),Y=VMt(B.JSC$10659_encoderRegistry,1),g=Object.assign({},c);return B.JSC$10659_wrapped.objectStore("EntityStore").get(P).then(function(k){if(k){if(k.entityType!==x)throw Error("Bf");g.entityMetadata||(k=tMd(B,k),g.entityMetadata=k.entityMetadata)}}).then(function(){var k={key:P,
entityType:x,data:h0y(Y,g,P),version:1};return vp.all([B.JSC$10659_wrapped.objectStore("EntityStore").put(k),NZn(B,g,x)])}).then(function(){I4m(B,P,x);
return P})};
h3w=function(B,c){var x=_.gL(c).entityType;return vp.all([B.JSC$10659_wrapped.objectStore("EntityStore").delete(c),Jut(B,c)]).then(function(){I4m(B,c,x)})};
mlY=function(B,c,x,P){var Y=VMt(B.JSC$10659_encoderRegistry,1);return _.wDQ(B,c,P).then(function(g){if(g){g=z5I(g,x);var k={key:c,entityType:P,data:h0y(Y,g,c),version:1};return vp.all([B.JSC$10659_wrapped.objectStore("EntityStore").put(k),NZn(B,g,P)])}}).then(function(){I4m(B,c,P);
return c})};
I4m=function(B,c,x){var P=B.changedKeys[x];P||(P=new Set,B.changedKeys[x]=P);P.add(c)};
WA5=function(B,c,x){var P=rZO(c);x=bgY(x);if(!x)return vp.resolve([]);x=new x(c);B=B.JSC$10659_wrapped.objectStore("EntityAssociationStore");c=[];x=_.p(x.getAssociations());for(var Y=x.next();!Y.done;Y=x.next())c.push(B.put({parentEntityKey:P,childEntityKey:Y.value}));return vp.all(c).then(function(g){return g.map(function(k){return k[1]})})};
Jut=function(B,c){return B.JSC$10659_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(c))};
NZn=function(B,c,x){var P=rZO(c);return Jut(B,P).then(function(){return WA5(B,c,x)})};var l4W=function(){};
_.w(l4W,C6Z);l4W.prototype.encodeImpl=function(B){return B};
l4W.prototype.decodeImpl=function(B){if(B instanceof Uint8Array)throw s8C(0);return B};var Ul7=function(){this.cacheMap={};this.cacheMap[0]=new l4W;if(!_.T("aes_pes_encoder_killswitch")){var B=this.cacheMap;try{var c=_.CU();var x=$lw(c);var P=new Jv(new KAQ(x),new jet(x))}catch(Y){throw B=Y instanceof Error?new nk("KEY_CREATION_FAILED",{originalMessage:Y.message}):new nk("KEY_CREATION_FAILED"),_.lb(B),B;}B[1]=P}},VMt=function(B,c){c=c===void 0?0:c;
B=B.cacheMap[c];if(!B)throw c=new nk("INVALID_ENCODER_VERSION",{encoderVersion:c}),_.lb(c),c;return B};var Kk=function(B,c){_.tG.call(this);this.token=B;this.JSC$10673_encoderRegistry=c;this.observers=[];B=new _.xI.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.CU());B.onmessage=this.handleMessage.bind(this);this.channel=B};
_.w(Kk,_.tG);_.Uv=function(B,c,x){var P,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return _.K(n,Y5$(B.token),2);if(n.nextAddress!=3)return P=n.yieldResult,_.K(n,_.Hp(P,["EntityStore","EntityAssociationStore"],c,function(b){Y=new TZW(b,B.JSC$10673_encoderRegistry);return x(Y)}),3);
g=n.yieldResult;Y&&(k=Y.changedKeys,Object.keys(k).length>0&&(B.channel.postMessage(k),EG0(B,k)));return n.return(g)})};
Kk.prototype.observe=function(B){var c=this;this.observers.push(B);return function(){var x=c.observers.indexOf(B);x>=0&&c.observers.splice(x,1)}};
var WCA=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,_.Uv(B,{mode:"readonly",enableRetries:!0},function(P){return P.JSC$10659_wrapped.objectStore("EntityStore").getAll()}),2);
c=x.yieldResult;return x.return(Promise.all(c.filter(function(P){return!!P}).map(function(P){var Y,g;
return _.X(function(k){if(k.nextAddress==1){Y=P.key;g=P.entityType;var n=mz5(VMt(B.JSC$10673_encoderRegistry,P.version),P.data,P.key);return _.K(k,n,2)}return k.return({key:Y,entityType:g,data:k.yieldResult})})})))})};
Kk.prototype.handleMessage=function(B){EG0(this,B.data)};
var EG0=function(B,c){B=_.p(B.observers);for(var x=B.next();!x.done;x=B.next())x=x.value,x(c)};
Kk.prototype.disposeInternal=function(){this.channel.close()};
var K0C;var WK,oG3,GgQ;WK={};_.Ojn=(WK.mainVideoEntity="mainVideoEntityActionMetadata",WK.mainPlaylistEntity="mainPlaylistEntityActionMetadata",WK.musicTrack="musicTrackEntityActionMetadata",WK.musicPlaylist="musicPlaylistEntityActionMetadata",WK);oG3=new _.BL("DOWNLOADS_ENTITY_TYPE_MAP");_.wL=_.kN("","downloadsPageViewConfigurationEntity");GgQ=_.kN("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.r4I=_.kN("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.kN("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.kN("SMART_DOWNLOADS_ENABLED","settingEntity");_.kN("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var N7q=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var ovx=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Scx={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var ld,QAd,CIy,WrO;ld=window;_.SB=ld.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.fYO=ld.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.H3;QAd=ld.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ja;CIy=ld.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||qit;_.QeQ=ld.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.FkW;WrO=ld.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Svy;Lk({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 umx=FQ7(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(B){return B}}}),LBd=FQ7(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(B){return B}}}),y3C=new Map;var r3$=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],HVX;var FA3=function(B){return _.YN({type:"SET_EPHEMERAL_ACTION",payload:B})};var vGZ={ephemeralAction:null};var z0Q={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Cdw={sharedUi:function(B,c){B=B===void 0?z0Q:B;switch(c.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},B,{animatedThumbnailEnabled:c.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},B,{inlinePreviewEnabled:c.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},B,{currentPageType:c.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},B,{currentPageSubType:c.payload});default:return B}},
a11y:$d({ephemeralAction:function(B,c){B=B===void 0?vGZ.ephemeralAction:B;switch(c.type){case "SET_EPHEMERAL_ACTION":return c.payload;default:return B}}})};var Pd$={playlistId:"",inviteLinkURL:""};var SU0={};var $mA=$d({continuationCommand:function(B,c){B=B===void 0?SU0:B;switch(c.type){case "SET_CONTINUATION_COMMAND":return c.payload.continuationCommand;default:return B}}});var apX={currentFormId:"",commandsMap:{}};var nkC=$d({isLeaderTab:function(B,c){B=B===void 0?!0:B;switch(c.type){case "SET_IS_LEADER_TAB":var x,P;return(P=c==null?void 0:(x=c.payload)==null?void 0:x.isLeaderTab)!=null?P:B;default:return B}}});var yun=function(B){return _.YN({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:B}})};var qMQ=$d({isDesktopSmallWidth:function(B,c){switch(c.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return c.payload.isDesktopSmallWidth;default:return B===void 0?!1:B}},
isShortsActive:function(B,c){switch(c.type){case "SET_IS_SHORTS_ACTIVE":return c.payload.isShortsActive;default:return B===void 0?!1:B}},
isWatchWhileMode:function(B,c){switch(c.type){case "SET_IS_WATCH_WHILE_MODE":return c.payload.isWatchWhileMode;default:return B===void 0?!1:B}},
playerState:function(B,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return B===void 0?-1:B}},
isFullscreen:function(B,c){switch(c.type){case "SET_IS_FULLSCREEN":return c.payload.isFullscreen;default:return B===void 0?!1:B}},
isSmallScreenSqueezeback:function(B,c){switch(c.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return c.payload.isSmallScreenSqueezeback;default:return B===void 0?!1:B}},
isShortsPipActive:function(B,c){switch(c.type){case "SET_IS_SHORTS_PIP_ACTIVE":return c.payload.isShortsPipActive;default:return B===void 0?!1:B}},
isPlaybackStarted:function(B,c){switch(c.type){case "SET_IS_PLAYBACK_STARTED":return c.payload.isPlaybackStarted;default:return B===void 0?!1:B}}});var mmd=function(){return function(B){return function(c){var x=B(c);_.gj(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[c],!0);return x}}};var GH4,NEC;GH4=new _.kH;_.Yx=new _.BL("WATCH_PLAYER_PROMISE_TOKEN");_.MM9=new _.kH;_.LAy=new _.BL("SHORTS_PLAYER_PROMISE_TOKEN");NEC=new _.BL("");var Tdw=function(){return function(B){return function(c){c.type==="ENTITY_LOADED"&&_.cp().resolve(_.Yx).then(function(x){var P;(P=x.dispatchReduxAction)==null||P.call(x,c)});
return B(c)}}};var Zjd={};var b0X=$d({additionalContext:function(B,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var x;return(x=c.payload)!=null?x:"";default:return B===void 0?"":B}},
impersonatedChannelUrl:function(B,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var x;return(x=c.payload)!=null?x:"";default:return B===void 0?"":B}},
selectedVideoIds:function(B,c){B=B===void 0?Zjd:B;switch(c.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var x={};return Object.assign({},B,(x[c.payload]=!0,x));case "VIDEO_UNSELECTED":return c=c.payload,B=Object.assign({},B),delete B[c],B;default:return B}}});var KjY=$d({parentClickTrackingParams:function(B,c){switch(c.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return c.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return B===void 0?"":B}}});var Hjn=function(B){return _.YN({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:B})};var f4F={};var jkO=$d({stepStates:function(B,c){B=B===void 0?f4F:B;switch(c.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var x=B,P=c.payload,Y,g,k;B={};c={selectionStates:Object.assign({},(k=(Y=x[P.stepId])==null?void 0:Y.selectionStates)!=null?k:{},(B[P.token]={isSelected:P.isSelected},B)),userQuery:(g=x[P.stepId])==null?void 0:g.userQuery};Y={};return Object.assign({},x,(Y[P.stepId]=c,Y));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Y=B,g=c.payload,k={selectionStates:Object.assign({},
(P=(x=Y[g.stepId])==null?void 0:x.selectionStates)!=null?P:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},x={},Object.assign({},Y,(x[g.stepId]=k,x));default:return B}}});var ij0,Aum,DzS;ij0=function(B){return _.YN({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:B})};
Aum=function(B){return _.YN({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:B})};
_.OB=function(B){return _.YN({type:"SET_CURRENT_PAGE_TYPE",payload:B})};
_.uhd=function(B){return _.YN({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:B})};
DzS=function(B){return _.YN({type:"SET_CHIP_BAR_IS_STICKY",payload:B})};var skl={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"};_.ruQ=function(B){return _.YN({type:"SET_PLAYER_STATE",payload:{playerState:B}})};var R0Q=[],e00={width:0,height:0};var UmX=$d({isTheaterMode:function(B,c){B=B===void 0?_.T("kevlar_disable_theater_mode_persistence")?!1:_.zu("START_IN_THEATER_MODE"):B;switch(c.type){case "SET_IS_THEATER_MODE":return c.payload.isTheaterMode;default:return B}},
isWatchActive:function(B,c){switch(c.type){case "SET_IS_WATCH_ACTIVE":return c.payload.isWatchActive;default:return B===void 0?!1:B}},
isLearningJourneyActive:function(B,c){switch(c.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return c.payload.isLearningJourneyActive;default:return B===void 0?!1:B}},
isWatchFullscreen:function(B,c){switch(c.type){case "SET_IS_WATCH_FULLSCREEN":return c.payload.isWatchFullscreen;default:return B===void 0?!1:B}},
isWatchNarrowWidth:function(B,c){switch(c.type){case "SET_IS_WATCH_NARROW_WIDTH":return c.payload.isWatchNarrowWidth;default:return B===void 0?!1:B}},
isWatchRetroMode:function(B,c){switch(c.type){case "SET_IS_WATCH_RETRO_MODE":return c.payload.isWatchRetroMode;default:return B===void 0?!1:B}},
isLiveChatCollapsed:function(B,c){switch(c.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return c.payload.isLiveChatCollapsed;default:return B===void 0?!1:B}},
openEngagementPanels:function(B,c){B=B===void 0?R0Q:B;var x=[].concat(_.wq(B));switch(c.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return x.push(c.payload.panelToAdd),x;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return x.splice(x.indexOf(c.payload.panelToRemove),1),x;default:return B}},
playerState:function(B,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return B===void 0?-1:B}},
watchScrollTop:function(B,c){switch(c.type){case "SET_WATCH_SCROLL_TOP":return c.payload.watchScrollTop;default:return B===void 0?0:B}},
watchWindowSize:function(B,c){B=B===void 0?e00:B;switch(c.type){case "SET_WATCH_WINDOW_SIZE":return c.payload.watchWindowSize;default:return B}}});var BAZ={feedbackTokens:[]};var dmO=$d({surveyFeedbackData:function(B,c){B=B===void 0?BAZ:B;switch(c.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return c.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},B,c.payload);default:return B}}});var kQl={};var to$=void 0;_.T("web_enable_redux_store_on_demand")||(to$=Voq());var c79=function(B,c,x){var P=this;this.listId=B;this.JSC$10807_updateCallback=c;this.isOfflineVideoCallback=x;_.uG().subscribe(function(){P.handleUpdate()})};
c79.prototype.getPlaylistData=function(){var B=_.uG().getState().entities;if(this.listId&&this.listId!=="PPSV"){var c=Iyl(B,this.listId,!0),x=_.kN(this.listId,"mainPlaylistEntity"),P,Y;B=B==null?void 0:(P=B.mainPlaylistEntity)==null?void 0:(Y=P[x])==null?void 0:Y.title;return wKw(c,B,this.listId)}c=_.Q8X(c3O(B));B=_.Q8X(_.NZ(B));return wKw(c.concat(B))};
c79.prototype.getPlaylistId=function(){return this.listId};
c79.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10807_updateCallback(this.listId,this.getPlaylistData(),{})};var EM=function(B,c,x,P){P=P===void 0?[]:P;this.JSC$10810_playlistNetworkManager=B;this.listId=c;this.JSC$10810_updateCallback=x;this.videoIds=P;this.pendingUpdates=[];this.currentIndex=0};
EM.prototype.JSC$10810_setCurrentIndex=function(B){this.currentIndex=B};
EM.prototype.setListId=function(B){this.listId=B};
var xT9=function(B,c){B.currentCreateRequest&&B.currentCreateRequest.cancel(c);B.currentUpdateRequest&&B.currentUpdateRequest.cancel(c);B.currentRefreshRequest&&B.currentRefreshRequest.cancel(c)};
EM.prototype.delete=function(){xT9(this,"PROXY DELETED")};
EM.prototype.addVideos=function(B,c,x){var P=this;x!==void 0?this.videoIds.splice.apply(this.videoIds,[x,0].concat(_.wq(B))):this.videoIds.push.apply(this.videoIds,_.wq(B));this.listId||this.currentCreateRequest?(B.forEach(function(Y,g){Y={addedVideoId:Y,action:"ACTION_ADD_VIDEO"};x&&(Y.addedVideoPosition=x+g);P.pendingUpdates.push(Y)}),OM(this)):PSF(this,c.onCreateListCommand)};
var Yfn=function(B,c,x,P,Y){Vdx(B.videoIds,c,x);c>B.currentIndex&&x<=B.currentIndex?B.JSC$10810_setCurrentIndex(B.currentIndex+1):c===B.currentIndex?B.JSC$10810_setCurrentIndex(x):c<B.currentIndex&&x>=B.currentIndex&&B.JSC$10810_setCurrentIndex(B.currentIndex-1);B.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:P,movedSetVideoIdPredecessor:Y});OM(B)},PSF=function(B,c){xT9(B,"OBSOLETE");
B.currentCreateRequest=art(B.JSC$10810_playlistNetworkManager,c,B.videoIds);_.IZ(B.currentCreateRequest,function(){B.currentCreateRequest=void 0}).then(function(x){B.setListId(x.playlistId);
B.pendingUpdates.length>0?OM(B):gS3(B)})},OM=function(B){if(B.pendingUpdates.length!==0&&(B.currentRefreshRequest&&B.currentRefreshRequest.cancel("OBSOLETE"),!B.currentUpdateRequest&&!B.currentCreateRequest)){var c=B.pendingUpdates.splice(0,B.pendingUpdates.length);
B.currentUpdateRequest=B.JSC$10810_playlistNetworkManager.updatePlaylist(B.listId,c);_.IZ(B.currentUpdateRequest,function(){B.currentUpdateRequest=void 0}).then(function(){B.pendingUpdates.length>0?OM(B):gS3(B)}).thenCatch(function(){B.pendingUpdates.unshift.apply(B.pendingUpdates,_.wq(c))})}},gS3=function(B){B.currentRefreshRequest=_.sNy(B.JSC$10810_playlistNetworkManager,B.listId,B.currentIndex,B.videoIds[B.currentIndex]);
_.IZ(B.currentRefreshRequest,function(){B.currentRefreshRequest=void 0}).then(function(c){B.JSC$10810_updateCallback(c.playlistId,c.playlistPanelRenderer,c.autoplayRenderer)})};
EM.prototype.size=function(){return this.videoIds.length};var pC5=function(B,c,x,P){P=P===void 0?[]:P;EM.call(this,B,c,x,P);this.JSC$10810_playlistNetworkManager=B;this.listId=c;this.JSC$10810_updateCallback=x;this.videoIds=P};
_.w(pC5,EM);_.ok=function(B,c,x,P,Y,g,k){Y=Y===void 0?[]:Y;k=k===void 0?sV:k;EM.call(this,B,c,x,Y);this.JSC$10810_playlistNetworkManager=B;this.listId=c;this.JSC$10810_updateCallback=x;this.onAuthChange=P;this.videoIds=Y;this.storage=g;this.cookieReader=k;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.s9(_.EE,this.checkLoggedInStatusChange.bind(this),1E3)};
_.w(_.ok,EM);_.a=_.ok.prototype;_.a.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.s9(_.EE,this.checkLoggedInStatusChange.bind(this),1E3)};
_.a.JSC$10810_setCurrentIndex=function(B){EM.prototype.JSC$10810_setCurrentIndex.call(this,B);this.store()};
_.a.delete=function(){_.EE.cancelJob(this.queueSapisIdJob);EM.prototype.delete.call(this)};
_.a.setListId=function(B){EM.prototype.setListId.call(this,B);this.store()};
_.a.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var kA9=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],XCm=["playerResponse","videoDetails"],$T5=["response","currentVideoEndpoint","watchEndpoint","videoId"],nS9=["response","currentVideoEndpoint","watchEndpoint","playlistId"],bG0=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],KP3=["response","contents","twoColumnWatchNextResults","playlist","playlist"],jNW=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
UT3=["response","contents","twoColumnWatchNextResults"];var QO={},lpI=(QO.WEB_UNPLUGGED="^unplugged/",QO.WEB_UNPLUGGED_ONBOARDING="^unplugged/",QO.WEB_UNPLUGGED_OPS="^unplugged/",QO.WEB_UNPLUGGED_PUBLIC="^unplugged/",QO.WEB_CREATOR="^creator/",QO.WEB_KIDS="^kids/",QO.WEB_EXPERIMENTS="^experiments/",QO.WEB_MUSIC="^music/",QO.WEB_REMIX="^music/",QO.WEB_MUSIC_EMBEDDED_PLAYER="^music/",QO.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",QO);var bQY,art;bQY=function(B,c){this.networkManager=B;this.innertubeTransportService=c};
art=function(B,c,x){if(!_.t(c,_.G3))return _.Im(Error("Ff"));_.t(c,_.G3).videoIds=x;x={create_playlist_title:_.Up("QUEUE",void 0,"Queue")};return Jv$(_.Zn(B.innertubeTransportService,c,x),Ndq)};
_.sNy=function(B,c,x,P){c={videoId:P,playlistId:c,playlistIndex:x};x=_.Dj(d3W);return Jv$(_.Fa(B.innertubeTransportService,c,x),Wj$)};
bQY.prototype.updatePlaylist=function(B,c){return Jv$(_.Zn(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:B,actions:c}}),Ip7)};var dTt=function(B){this.storage=B},qfm;
dTt.prototype.store=function(B,c){c=c===void 0?0:c;if(this.storage&&B.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",B),this.storage.set("TLPQindex",String(c)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(x){}};
dTt.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
dTt.prototype.getPlaylistId=function(){if(!this.storage)return null;var B=null;try{B=this.storage.get("TLPQplaylist")}catch(c){}return B};var Qk7=["navigationEndpoint","watchEndpoint","videoId"],okI=["nextButtonVideo","watchEndpoint","videoId"];_.Oi=new _.BL("NETWORK_TOKEN");_.rV=new _.BL("PAGE_TOKEN");_.vK=new _.BL("PLAYLIST_TOKEN");var CSW;CSW=new _.BL("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.ou=new _.BL("INNERTUBE_TRANSPORT_TOKEN");var h8I,zQ,TAS,V69,wCn,NAF;h8I=new Set(["ci","cr","carml"]);zQ=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10857_parkedJobs=new Map;this.parkedProcessors=new Map};
_.So=function(){zQ.instance||(zQ.instance=new zQ);return zQ.instance};
zQ.prototype.onAny=function(B){return _.mT0(this,B,2)};
zQ.prototype.parkOrScheduleJob=function(B,c,x,P,Y){_.yO(this,x)?_.EB().addJob(B,c,P):(Y&&(B=TAS(B),V69(this,B,c,x,Y)),Y=this.JSC$10857_parkedJobs.get(x),Y||(this.JSC$10857_parkedJobs.set(x,[]),Y=this.JSC$10857_parkedJobs.get(x)),Y.push({job:B,priority:c,delay:P}))};
zQ.prototype.addListener=function(B,c,x){x&&(c=TAS(c),V69(this,c,0,B,x));x=this.parkedProcessors.get(B);x||(this.parkedProcessors.set(B,[]),x=this.parkedProcessors.get(B));x.push(c)};
zQ.prototype.processSignal=function(B){if(!_.yO(this,B)){this.inProgressSignals.add(B);var c=this.JSC$10857_parkedJobs.get(B);if(c){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,_.EB().addJob(x.job,x.priority,x.delay);this.JSC$10857_parkedJobs.delete(B)}if(c=this.parkedProcessors.get(B)){c=_.p(c);for(x=c.next();!x.done;x=c.next())x=x.value,x();this.parkedProcessors.delete(B)}this.signals.push(B);this.inProgressSignals.delete(B)}};
_.yO=function(B,c){return h8I.has(c)||_.zu("IS_HOMEPAGE_COLD")||_.zu("IS_RESULTS_PAGE_COLD")||_.zu("IS_WATCH_PAGE_COLD")?B.signals.indexOf(c)>=0:!0};
TAS=function(B){var c=!1;return function(){c||(c=!0,B())}};
V69=function(B,c,x,P,Y){if(t60.has(P))_.EB().addJob(c,x,Y);else{var g=B.compoundSignals.get(P);g&&_.EB().addJob(function(){_.yO(B,P)||(g.isTimeoutConditionSatisfied?_.EB().addJob(c,x):g.timeoutConditionObservers.push(function(){_.EB().addJob(c,x)}))},x,Y)}};
_.mT0=function(B,c,x){if(c.length>1){var P=[],Y=Object.create(null);c=_.p(c);for(var g=c.next();!g.done;g=c.next())g=g.value,Y[g]||(P.push(g),Y[g]=!0);c=P}if(c.length===1)return c[0];g=c;P="";Y=x===2?"|":"&";g.sort();g=_.p(g);for(var k=g.next();!k.done;k=g.next())P+=k.value+Y;if(!B.compoundSignals.get(P)){Y=0;g=[];k=_.p(c);for(var n=k.next();!n.done;n=k.next())n=n.value,Y++,_.yO(B,n)||g.push(n);(x=x===2)&&Y>g.length||!x&&!g.length?B.signals.push(P):wCn(B,P,x,c,g)}return P};
wCn=function(B,c,x,P,Y){var g=Y.length,k=function(){x||--g===0?B.processSignal(c):NAF(B,c)};
Y=_.p(Y);for(var n=Y.next();!n.done;n=Y.next())B.addListener(n.value,k);B.compoundSignals.set(c,{signals:P,isOnAny:x,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});NAF(B,c)};
NAF=function(B,c){if(!_.yO(B,c)){var x=B.compoundSignals.get(c);if(x&&!x.isTimeoutConditionSatisfied){for(var P=!1,Y=0,g=0,k=_.p(x.signals),n=k.next();!n.done;n=k.next()){var b=n.value;n=!_.yO(B,b);t60.has(b)?P=!0:(b=B.compoundSignals.get(b))?n&&!b.isTimeoutConditionSatisfied&&(g++,x.isInitialized||b.timeoutConditionObservers.push(function(){NAF(B,c)})):n&&Y++}x.isInitialized=!0;
x.isOnAny?P&&(x.isTimeoutConditionSatisfied=!0):Y===0&&g===0&&(x.isTimeoutConditionSatisfied=!0);if(x.isTimeoutConditionSatisfied)for(x=_.p(x.timeoutConditionObservers),P=x.next();!P.done;P=x.next())P=P.value,P()}}};
zQ.prototype.processSignal=zQ.prototype.processSignal;zQ.prototype.parkOrScheduleJob=zQ.prototype.parkOrScheduleJob;zQ.prototype.onAny=zQ.prototype.onAny;_.rr("ytsignals.getInstance",_.So);zQ.prototype.onAny=zQ.prototype.onAny;zQ.prototype.parkOrScheduleJob=zQ.prototype.parkOrScheduleJob;zQ.prototype.processSignal=zQ.prototype.processSignal;var t60=new Set(["eop","eocs","dl","pcl"]);_.Ge=new _.BL("MINIPLAYER_SERVICE");var GQ,Ir5,J7Q;GQ=function(B,c,x){var P=_.Gr.getInstance();if(!qfm){var Y=new kkl;var g=void 0,k=_.v5("ID_TOKEN");k&&Y.isAvailable()&&(g=new wr(Y,"yt-queue"+k));qfm=new dTt(g)}Y=qfm;g=_.So();this.JSC$10864_actionRouter=P;this.pageManager=B;this.playlistManager=c;this.JSC$10864_playlistNetworkManager=x;this.storage=Y;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Mm=function(){if(!Ir5){var B=_.cp(),c=B.resolve(_.Bp(_.rV)),x=B.resolve(_.Bp(_.Oi)),P=B.resolve(_.Bp(_.vK));B=B.resolve(_.ou);Ir5=new GQ(c,P,new bQY(x,B))}return Ir5};
J7Q=function(B,c,x){if(x){var P;if(((P=B.responsePlaylistData)==null?void 0:P.playlistId)!==x)return}B.responsePlaylistData&&(x=GQ7(c,B.responsePlaylistData),B.responsePlaylistData=(0,_.wW.unsafeClone)(B.responsePlaylistData),Ljd(B.responsePlaylistData,x));x=B.temporaryItems.findIndex(function(Y){return Y.videoId===c});
x>-1&&B.temporaryItems.splice(x,1);_.L0(B,_.Zp(B,B.response?B.response.autoplayRenderer:void 0))};
_.WP0=function(B,c){if(B.responsePlaylistData){var x=MoQ(c,B.responsePlaylistData);Ljd(B.responsePlaylistData,x);if(B.queueProxy){var P=B.queueProxy;x<0||(P.videoIds.splice(x,1),x<P.currentIndex&&P.JSC$10810_setCurrentIndex(P.currentIndex-1),P.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:c}),OM(P))}}_.L0(B,_.Zp(B,B.response?B.response.autoplayRenderer:void 0))};
GQ.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.L0(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
GQ.prototype.setPlaylistData=function(B,c,x){this.temporaryItems=[];this.listId=B;this.responsePlaylistData=c;_.L0(this,_.Zp(this,x))};
var lrF=function(B){return(B==null?0:B.playlistId)?B.playlistId:"PPSV"},ESW=function(B){return B&&B.playlistId?B.playlistId==="PPSV"?!0:wbq(_.uG().getState().entities,B.playlistId):!1};
GQ.prototype.isPlayingOfflineVideo=function(){return this.response?ESW(this.response):!1};
GQ.prototype.closeMiniplayer=function(B){var c=this.queueProxy&&this.queueProxy.size()<=1,x=_.cp().resolve(_.Ge);if(!this.queueProxy||c)this.queueProxy&&this.clearQueue(),x.close(!0);else{x.pipController.getWindow()&&window.focus();c=this.responsePlaylistData;var P=this.temporaryItems.length+(c&&c.contents?c.contents.length:0);c=_.Up("QUEUE_CLEARED_UNPLURALIZED")||_.dj("QUEUE_CLEARED",P);c=_.Rw(c);x=_.Up("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");P=_.Up("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.dj("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",P);var Y=_.Up("MINIPLAYER_CLOSE",void 0,"Close"),g=_.Up("CANCEL",void 0,"Cancel");_.Qb(this.JSC$10864_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.fk(x),dialogMessages:[_.fk(P)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fk(Y),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
c]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fk(g)}}}}}}],B)}};
_.Zp=function(B,c){var x={},P=B.response;x.autoplayRenderer=c;if(!B.responsePlaylistData&&!B.temporaryItems.length)return!P||!P.hasRelatedVideoData&&_.T("kevlar_prefetch_data_augments_network_data")||(x.playerData={rvs:P.relatedVideoArgs,endScreenRenderer:P.endScreenRenderer}),x;x.playerData={};if(B.index===void 0)return _.lb(Error("Hf")),x;x.panel=B.responsePlaylistData?(0,_.wW.unsafeClone)(B.responsePlaylistData):{titleText:_.fk(_.Up("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
c=x.panel;if(c.contents)for(var Y=_.p(B.temporaryItems),g=Y.next();!g.done;g=Y.next())c.contents.push({playlistPanelVideoRenderer:g.value});B.queueProxy&&P&&P.playingVideo&&P.playingVideoId&&!yvq(P.playingVideoId,x.panel)&&(c=P.playingVideo,Y=x.panel,g=B.index,Y.contents&&Y.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:c}));P&&P.playingVideoId&&(c=B.index,Y=x.panel,c=!Y.contents||c>=Y.contents.length?void 0:Y.contents[c].playlistPanelVideoRenderer,c&&c.videoId===P.playingVideoId||(c=
GQ7(P.playingVideoId,x.panel),B.index=c!==-1?c:B.index?B.index-1:0));c=SMq(B.index+1,x.panel);Y=void 0;B.index>0&&(Y=SMq(B.index-1,x.panel));if(Y||c)x.autoplayRenderer=Fjw(c,Y,x.autoplayRenderer);!c&&(P==null?0:P.relatedVideoArgs)&&(x.playerData.rvs=P.relatedVideoArgs);P=P?P.playlistIndexOffset:0;B.queueProxy?fpo(x.panel,B.index,P,zTw,!0,!0,!0):fpo(x.panel,B.index,P);x.playerData.playlistPanelRenderer=x.panel;return x};
GQ.prototype.openToast=function(B){_.cp().resolve(_.Ge).openToast(B,_.Up("ADDED_TO_QUEUE",void 0,"Added to queue"))};
GQ.prototype.isMiniplayerActive=function(){return _.cp().resolve(_.Ge).isMiniplayerActive()};
_.L0=function(B,c){B.playlistManager.setAutoplayRenderer(c.autoplayRenderer||null);B.playlistManager.setPlaylistData(c.panel||null);c.playerData&&B.playlistManager.setPlayerPlaybackControlData(c.playerData)};var Avw="#";var OGt={},oSd={},QN0={},FPy={},vS4={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:(OGt.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",OGt),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:(oSd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",oSd),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:(QN0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",QN0),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:(FPy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",FPy),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 W8C=[{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:vS4},{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:vS4}}];var C3C;_.pr=[[["aW5kIzVxZTA2OGkzYXo5NWs=","ZSNlZzBnczNldDJxMjZ2YWx1"],"VCMxcGZoMzJmODZ3aDNBRF9QTEFDRU1FTlRfS0lORF9TVEFS"]];
C3C=[[["dXJncnFwcmJ4ZHByaW1hcnkjZ20=",null,null],[null,["dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciMybnppNTBrNG5remt5","cXZzdHlsZS1zY29wZSMzMGQ1dDNzdHNq"],null],["NzBtYXN0aGVhZC1hZCNiNGw0MW11NHJr",["ZXIjcm1jcjVxazZnbmNqeXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjZzR1aTM2cWx4N3UweXRkLXJpY2gtZ3JpZC1yZW5kZXI=","MmlzdHlsZS1zY29wZSNuNjhkM3dxM3E0"],null],[null,["Y2RvNDhpOXlmejFjeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","bXVzdHlsZS1zY29wZSNsNnN5NDZpcmNy"],null],[null,["ZXJlciNhbmV5Y2pyZ2NwODR5dGQtYWQtc2xvdC1yZW5k"],
null]],[["aWVkd3BsYXllci1hZHMjZTMwbWwzd2w=",null,null]]];_.si=["Q2FsbGJhY2tzIzQ2dWFqMHhldmhodmdsb2JhbA==","dGVkI3QzcDZvZjY4bGx1cG9uQWJub3JtYWxpdHlEZXRlYw==","NGc2ZmxmZWJvbkFkU2tpcCN1bzUz","cG9uc2UjMmt2eHNoc2xkaXhzcmF3X3BsYXllcl9yZXM=","MXBiYWh2MXBzZWFkU2xvdHMjOWE="];_.HK="Q2FsbGJhY2tzIzQ2dWFqMHhldmhodmdsb2JhbA== dGVkI3QzcDZvZjY4bGx1cG9uQWJub3JtYWxpdHlEZXRlYw== NGc2ZmxmZWJvbkFkU2tpcCN1bzUz cG9uc2UjMmt2eHNoc2xkaXhzcmF3X3BsYXllcl9yZXM= MHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNycHdreXpmeXh4Mg== eHV2Z2toYWphYl9zYV9lZiN5OG9y MXBiYWh2MXBzZWFkU2xvdHMjOWE=".split(" ");var f0;f0=function(B,c,x){this.xmm=B;this.isAsync=c;this.ptb=x};
_.MqQ=[new f0("b.f_",!1,0),new f0("j.s_",!1,2),new f0("r.s_",!1,4),new f0("e.h_",!1,6),new f0("i.s_",!0,8),new f0("s.t_",!1,10),new f0("p.h_",!1,12),new f0("s.i_",!1,14),new f0("f.i_",!1,16),new f0("a.b_",!1,18),new f0("a.o_",!1),new f0("g.o_",!1,22),new f0("p.i_",!1,24),new f0("p.m_",!1),new f0("n.k_",!0,20),new f0("i.f_",!1),new f0("a.s_",!0),new f0("m.c_",!1),new f0("n.h_",!1,26),new f0("o.p_",!1),new f0("m.p_",!0,28),new f0("o.a_",!1),new f0("d.p_",!1),new f0("e.i_",!1)].reduce(function(B,c){B[c.xmm]=
c;return B},{});var z8F=function(){};
z8F.prototype.flush=function(B,c){B=B===void 0?[]:B;c=c===void 0?!1:c;if(_.T("enable_client_streamz_web")){B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=Lom(x.value),this.rootSpec&&_.Pa(x,2,this.rootSpec),x={serializedIncrementBatch:_.PN(x.JSC$7653_serializeBinary())},_.JP("streamzIncremented",x,{sendIsolatedPayload:c})}};
var RTO=function(){};
_.w(RTO,z8F);var SfW=function(B){var c=new Fot;var x=new OAW;x=_.dW(x,1,"botguard");B=_.dW(x,2,B);this.rootSpec=_.YX(c,1,vzt,B)};
_.w(SfW,z8F);var YH,y7n=new Map;var VqQ,Bkl,kCX,P3A,ggA,d4O,wlQ,j$X;VqQ=2;Bkl=2;kCX=2;P3A=2;ggA=2;d4O=2;wlQ=2;j$X=new zDy;var M6Z,LPy,ZGy;M6Z=function(){this.ongoingFlowNonces=new Map};
_.nr=function(){LPy||(LPy=new M6Z);return LPy};
_.XI=function(B,c,x){return{eventType:{flowEventNamespace:B,flowEventType:c},metadata:x,statusCode:void 0,csn:void 0,can:void 0}};
_.Zyq=function(B,c){var x=_.nr(),P=ZGy(x,c,!0);_.$H(x,B,c,P)};
_.$H=function(B,c,x,P){B={flowNonce:P||ZGy(B,x),flowType:x,flowEventType:c.eventType};c.metadata&&(B.flowMetadata=c.metadata);c.statusCode!==void 0&&(B.flowEventStatus=c.statusCode);c.csn&&(B.csn=c.csn);c.can&&(B.can=c.can);_.JP("flowEvent",B,void 0)};
ZGy=function(B,c,x){x=x===void 0?!1:x;var P=B.ongoingFlowNonces.get(c);if(!P||x)P=Np(16),B.ongoingFlowNonces.set(c,P);return P};_.HG4=new vMm;var A2C={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var id=function(B,c,x,P,Y,g,k){x=x===void 0?!1:x;P=P===void 0?!1:P;g=g===void 0?_.Mm():g;this.hasRun=!1;this.oWb=B;this.qwx=c;this.r9N=x;this.fromHistory=P;this.previousVideoId=Y;this.pvV=g;this.tempData=k;this.wvP=new _.SIy};
_.w(id,BK);id.prototype.validate=function(B){return!(!B.data.playerResponse||B.data.page!=="watch"&&B.data.page!=="learning_journey_watch"&&B.data.page!=="shorts"||this.hasRun)};
id.prototype.handle=function(B){var c=this,x=_.t(B.endpoint,_.fN),P=_.t(B.endpoint,_.TF);if(_.T("kevlar_continue_playback_without_player_response")&&(x==null?0:x.videoId)&&this.previousVideoId&&(x==null?void 0:x.videoId)===this.previousVideoId&&(x==null?0:x.continuePlayback)&&!this.fromHistory)this.oWb.resolve();else{var Y={};x?Y.watch_endpoint=x:P&&(Y.watch_endpoint=P,P.endTimeSeconds&&(Y.end=P.endTimeSeconds));B.data.page==="watch"?(B.data.filler||this.r9N||(_.oJ("cfg"),_.Gr.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Y,fr0(this,B.endpoint)),_.T("enable_masthead_quartile_ping_fix")&&Object.assign(Y,iGW(this)),Object.assign(Y,void 0),B.data.forceExternalPlaylist&&(Y.external_list=!0)):B.data.page==="shorts"?_.Gr.getInstance().triggerAction("yt-start-loading-shorts"):B.data.page==="learning_journey_watch"&&_.Gr.getInstance().triggerAction("yt-start-loading-learning-journey");if(x=this.qwx()){try{x.loadVideoWithPlayerResponse(B.data.playerResponse,Y),x.getPlayerPromise().then(this.oWb.resolve)}catch(g){_.lb(g),
this.oWb.resolve()}this.hasRun=!0;x.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var k=B.data.playerResponse,n=g.getVideoData().cpn;wlQ=0;_.GAm=n;if(n=GCI(k))c.wvP.increment("IN_PLAYER"),_.bI(5),_.T("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),k.playabilityStatus=Object.assign({},k.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:n}}),k.videoDetails=void 0,_.Gr.getInstance().triggerOptionalAction("yt-updated-playability-status",
k.playabilityStatus)})})}else _.Ob(Error("Kf"))}};
var fr0=function(B,c){var x=_.t(c,_.fN);if(c&&x&&x.playlistId&&x.videoId&&(B=B.pvV,B.queueProxy?(B=B.queueProxy,x=B.listId===x.playlistId?B.attributionData.get(x.videoId):void 0):x=void 0,x))return{queue_info:x}},iGW=function(B){var c;
if((c=B.tempData)==null?0:c.adpings)return{adpings:B.tempData.adpings}};var Av=function(B,c,x){this.hasRun=!1;this.lgX=B;this.p6e=c;this.jsF=x};
_.w(Av,BK);Av.prototype.validate=function(B){return!!_.wW.getValueByKeys.apply(null,[B.data].concat(_.wq(UT3)))};
Av.prototype.handle=function(B){var c=this;this.lgX.promise.then(function(){var x=B.data;var P=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(kA9))),Y=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(KP3))),g=_.wW.getValueByKeys.apply(null,[x].concat(_.wq($T5)));var k=(k=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(XCm))))?{videoId:k.videoId,thumbnail:k.thumbnail,title:k.title?_.fk(k.title):void 0,shortBylineText:k.author?_.fk(k.author):void 0}:void 0;var n=void 0;_.T("web_get_playlist_id_from_current_endpoint_ks")||
(n=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(nS9))));var b=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(jNW))),d=_.wW.getValueByKeys.apply(null,[x].concat(_.wq(bG0))),q=!!b||!!d&&!!d.results&&d.results.length>0,C=0;Y&&Y.currentIndex&&Y.localCurrentIndex&&(C=Y.currentIndex-Y.localCurrentIndex);Y&&Y.playlistId&&(n=Y.playlistId);x={rawResponse:x,autoplayRenderer:P,hasRelatedVideoData:q,playingVideo:k,playingVideoId:g,playlistPanelRenderer:Y,playlistId:n,playlistIndex:Y&&Y.currentIndex,relatedVideoArgs:b,
endScreenRenderer:d,playlistIndexOffset:C};a:{P=c.jsF;Y=c.p6e;P.response=x;if(ESW(x))P.downloadPlaylistProxy&&P.downloadPlaylistProxy.getPlaylistId()===lrF(x)||(P.downloadPlaylistProxy=new c79(lrF(x),P.setPlaylistData.bind(P),P.isPlayingOfflineVideo.bind(P))),P.responsePlaylistData=P.downloadPlaylistProxy.getPlaylistData(),P.listId=lrF(x),P.index=0;else if(x.playlistPanelRenderer&&x.playlistId&&x.autoplayRenderer)x.playlistId.startsWith("TLPQ")?P.queueProxy?P.listId===x.playlistId?(P.index=x.playlistIndex,
P.responsePlaylistData=x.playlistPanelRenderer,P.queueProxy.JSC$10810_setCurrentIndex(P.index)):x.playingVideoId&&P.index!==void 0&&Y.clientParams.autoSaveToQueue&&(P.index+=1,P.queueProxy.JSC$10810_setCurrentIndex(P.index),P.queueProxy.addVideos([x.playingVideoId],{},P.index)):(P.queueProxy=new _.ok(P.JSC$10864_playlistNetworkManager,x.playlistId,P.setPlaylistData.bind(P),P.clearQueue.bind(P),_.Z0l(x.playlistPanelRenderer),P.storage),P.responsePlaylistData=x.playlistPanelRenderer,P.listId=x.playlistId,
P.index=x.playlistIndex):(P.index=x.playlistIndex,P.listId!==x.playlistId&&P.clearQueue(),P.responsePlaylistData=x.playlistPanelRenderer,P.listId=x.playlistId,P.playlistProxy=new pC5(P.JSC$10864_playlistNetworkManager,x.playlistId,P.setPlaylistData.bind(P),_.Z0l(x.playlistPanelRenderer)));else if(!P.queueProxy)P.responsePlaylistData=void 0;else if(x.playingVideoId&&Y.clientParams.autoSaveToQueue){if(P.index===void 0){_.lb(Error("Gf"));P.clearQueue();break a}P.queueProxy.videoIds.includes(x.playingVideoId)||
(P.index+=1,P.queueProxy.JSC$10810_setCurrentIndex(P.index),P.queueProxy.addVideos([x.playingVideoId],{},P.index))}_.L0(P,_.Zp(P,P.response.autoplayRenderer))}})};var A7t=function(B,c){c=c===void 0?_.Mm():c;jo.call(this);this.oz.push(new Av(this.hg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},c));this.oz.push(new id(this.hg,B,!1,!1));_.T("web_response_commands_chunk_processor")&&this.oz.push(new UM)};
_.w(A7t,jo);A7t.prototype.processChunk=function(B){B&&B.data.player===void 0&&this.hg.resolve();jo.prototype.processChunk.call(this,B)};var ud=function(B,c){B=B===void 0?{layer:0}:B;this.hasRun=!1;this.createScreenConfig=B;this.ti7=c};
_.w(ud,BK);ud.prototype.validate=function(B){return!(this.hasRun||!B.endpoint)};
ud.prototype.handle=function(B){var c=_.q_(),x,P,Y=(P=_.t((x=B.endpoint)==null?void 0:x.commandMetadata,_.Br))==null?void 0:P.rootVe;this.ti7&&Y?_.kk(c,Y,this.ti7,this.createScreenConfig):zVQ(c,B.endpoint,this.createScreenConfig);this.hasRun=!0};var Dp=function(B,c){this.hasRun=!1;this.x4h=B;this.previousVideoId=c};
_.w(Dp,BK);Dp.prototype.validate=function(B){return _.T("kevlar_continue_playback_without_player_response")&&(B=_.t(B.endpoint,_.fN),(B==null?0:B.videoId)&&this.previousVideoId&&(B==null?void 0:B.videoId)===this.previousVideoId&&(B==null?0:B.continuePlayback))?!1:this.x4h.g3b===0};
Dp.prototype.handle=function(B){_.Gr.getInstance().triggerAction("yt-stop-old-player",B.data,!0)};var uN5=function(B){B=B===void 0?{layer:0}:B;jo.call(this);this.oz.push(new Dp(this));this.oz.push(new ud(B));this.oz.push(new K0(B))};
_.w(uN5,jo);var DTF=function(){this.hasRun=this.hasRun=!1};
_.w(DTF,BK);DTF.prototype.validate=function(B){return!this.hasRun&&!(!B.data.csn||!B.data.rootVe)};
DTF.prototype.handle=function(B){this.hasRun=!0;_.En(B.data.csn,B.data.rootVe,3)};var r7d=function(){BK.apply(this,arguments)};
_.w(r7d,BK);r7d.prototype.validate=function(B){return!!B.data.preconnect};
r7d.prototype.handle=function(B){_.Op("bc");B=_.p(B.data.preconnect);for(var c=B.next();!c.done;c=B.next())c=c.value,(new Image).src=c};var R80=function(B,c,x){x=x===void 0?{layer:0}:x;jo.call(this);this.oz.push(new id(this.hg,B));this.oz.push(new ud(x));this.oz.push(new K0(x))};
_.w(R80,jo);var e83=function(B,c,x,P,Y){x=x===void 0?{layer:0}:x;P=P===void 0?_.Mm():P;jo.call(this);var g=!!c&&!!c.clientParams&&!!c.clientParams.miniplayer;g&&this.oz.push(new DTF);this.oz.push(new Av(this.hg,c,P));this.oz.push(new r7d);var k,n;this.oz.push(new id(this.hg,B,g,!((k=c.clientParams)==null||!k.fromHistory),(n=c.clientParams)==null?void 0:n.previousVideoId,P,c.tempData));var b;this.oz.push(new Dp(this,(b=c.clientParams)==null?void 0:b.previousVideoId));var d;(d=c.clientParams)!=null&&d.fromHistory||
(x.layer||(x=Object.assign({},x,{layer:g?3:0})),this.oz.push(new ud(x,Y)),this.oz.push(new K0(x)));_.T("web_response_commands_chunk_processor")&&this.oz.push(new UM)};
_.w(e83,jo);var rd,xBd;rd={};
_.B5m=(rd["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rd["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rd["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rd["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rd["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rd["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rd["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rd);_.Rk=new _.vA("yt-edu");_.cf0=function(){this.JSC$10965_eduDisplayedThisLoad_={}};
xBd=function(B){var c=_.cf0.getInstance();var x=_.Yu("kevlar_tooltip_impression_cap");c=x&&parseInt(_.Rk.get(B+"-impression")||0,10)>=x||_.Rk.get(B+"-dismissed")?!1:(x=_.B5m[B])&&!c.JSC$10965_eduDisplayedThisLoad_[x.setKey||B]&&(x.titleText&&_.Up(x.titleText)||x.bodyText&&_.Up(x.bodyText))?!0:!1;if(!c)return null;c=_.B5m[B];if(!c)return null;x=c.bodyText?_.Up(c.bodyText):void 0;var P=c.titleText?_.Up(c.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:c.position,popup:{bubbleHintRenderer:{text:P?
_.fk(P):void 0,detailsText:x?_.fk(x):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fk(_.Up("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:B}}]}}}}}}}},{eduImpressionAction:{key:B}}]};
_.ag(_.cf0);var Hyd=!1;for(var PO4="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),YAS=[],eo=6;eo>=1;eo--)YAS.push({columnCount:eo,query:eo==1?0:eo*2*107-4+32,className:"grid-"+eo+"-columns",width:eo*2*107+"px"});_.gR5=function(B){this.actionRouter_=B=B===void 0?_.Gr.getInstance():B;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.af4(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.af4=function(B){var c=B.miniGuideVisible_?72:0,x=B.documentWidth_-(B.guidePersistentAndVisible_?240:c);return YAS.find(function(P){return x>P.query})};
_.ag(_.gR5);var sS3=function(){var B=this;this.JSC$10977_keyboardInUse=!1;document.addEventListener("keydown",function(){B.onKeydown()});
document.addEventListener("mousedown",function(){B.JSC$10977_keyboardInUse=!1})},pTd;
sS3.prototype.isKeyBoardInUse=function(){return this.JSC$10977_keyboardInUse};
sS3.prototype.onKeydown=function(){this.JSC$10977_keyboardInUse=!0};var k8Q,xg;_.Bl=new _.vA("yt-mentions");_.cl=function(){};
k8Q=function(B,c){return xg(c,"drag-to-reorder-edu-displayed")};
xg=function(B,c,x,P,Y,g){x=x===void 0?"OPEN_POPUP_POSITION_TOP":x;if(c){if(_.Bl.get(c))return;_.Bl.set(c,!0,P)}if(Y&&g!==void 0){c=Number(_.Bl.get(Y)||0);if(c>=g)return;_.Bl.set(Y,c+1)}return[{openPopupAction:{popupType:"HINT",position:x,popup:{bubbleHintRenderer:{detailsText:B,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.ag(_.cl);var XTF,$Bn,nR4;XTF=function(B,c,x,P){this.JSC$10987_taskManager_=B;this.onFulfilled_=typeof c==="function"?c:null;this.onRejected_=typeof x==="function"?x:null;this.JSC$10987_context_=P};
$Bn=function(B,c){B.onFulfilled_&&_.C3(B.JSC$10987_taskManager_,function(){B.onFulfilled_.call(B.JSC$10987_context_,c)})};
nR4=function(B,c){B.onRejected_&&_.C3(B.JSC$10987_taskManager_,function(){B.onRejected_.call(B.JSC$10987_context_,c)})};
_.Pl=function(B){this.JSC$10990_taskManager_=B;this.callbacks_=[]};
_.Pl.prototype.then=function(B,c,x){this.callbacks_.push(new XTF(this.JSC$10990_taskManager_,B,c,x));return this};
_.Pl.prototype.onSuccess=function(B){this.callbacks_.forEach(function(c){$Bn(c,B)})};
_.Pl.prototype.onFailure=function(B){this.callbacks_.forEach(function(c){nR4(c,B)})};
_.Pl.prototype.cancel=function(){this.callbacks_.length=0};
fmt(_.Pl);_.D4o=null;_.lv=new _.BL("ACTIVITY_TOKEN");var Yg=function(B,c){this.serviceId=new ZS5(B,c)};
Yg.prototype.toString=function(){return this.serviceId.toString()};var b85=function(){this.internalMap={}};
_.a=b85.prototype;_.a.contains=function(B){return Object.prototype.hasOwnProperty.call(this.internalMap,B)};
_.a.get=function(B){if(this.contains(B))return this.internalMap[B]};
_.a.set=function(B,c){this.internalMap[B]=c};
_.a.getKeys=function(){return Object.keys(this.internalMap)};
_.a.remove=function(B){delete this.internalMap[B]};var a$=function(){this.mappings=new b85;this.errorCallbacks=new Set};
a$.prototype.getModuleId=function(B){return B.serviceId.getModuleId()};
a$.prototype.get=function(B){var c=this.mappings.get(B.toString());return K$W(this,c,B)};
a$.prototype.getMultipleAsync=function(){var B=_.ts.apply(0,arguments),c=this,x=B.map(function(b){return c.getModuleId(b)}),P=B.map(function(b){return c.mappings.get(b.toString())}).filter(function(b){return b});
if(P.length===B.length)return _.$C(P.map(function(b,d){return K$W(c,b,B[d])}));
var Y=lW().loadMultiple(x);P=_.Nf(x.map(function(b){return Y[b]}));
var g=document.hidden,k=-1,n=_.Yu("get_async_timeout_ms",-1);n>-1&&(k=setTimeout(function(){_.Ob(new _.mc("Module timeout.",x,g,document.hidden))},n));
return _.IZ(P.then(function(){return B.map(function(b){return K$W(c,c.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var d=_.p(c.errorCallbacks),q=d.next();!q.done;q=d.next())q=q.value,q(b);
throw b;}),function(){clearTimeout(k)})};
a$.prototype.registerService=function(B,c){this.mappings.set(B.toString(),{type:"mapping",value:c});return B};
var K$W=function(B,c,x){switch(c.type){case "mapping":return c.value;case "factory":return c=c.value(),B.mappings.set(x.toString(),{type:"mapping",value:c}),c;default:return _.kz(c)}};
a$.prototype.onLoadError=function(B){var c=this;this.errorCallbacks.add(B);return function(){c.errorCallbacks.delete(B)}};
_.gk=new a$;var c6$=/^[a-zA-Z0-9_\-]{11}$/;var x37=_.C9(function(){var B,c;return(c=(B=window).matchMedia)==null?void 0:c.call(B,"(prefers-reduced-motion: reduce)").matches});var jSy=_.C9(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 B=_.Gu("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");B||(B=_.df("VIDEO"),_.rr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
B));return!!(B&&B.canPlayType&&B.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var pVQ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var sQ;sQ=function(){this.tokenJars={};if(this.cookiesEnabled=_.qD()){var B=_.U4.get("CONSISTENCY",void 0);B&&UB5(this,{encryptedTokenJarContents:B})}};
_.XVA=function(){sQ.instance||(sQ.instance=new sQ);return sQ.instance};
sQ.prototype.handleResponse=function(B,c){if(!c)throw Error("Qf");var x,P;c=((x=c.innerTubeRequest.context)==null?void 0:(P=x.request)==null?void 0:P.consistencyTokenJars)||[];var Y;(B=(Y=B.responseContext)==null?void 0:Y.consistencyTokenJar)&&this.replace(c,B)};
sQ.prototype.replace=function(B,c){B=_.p(B);for(var x=B.next();!x.done;x=B.next())delete this.tokenJars[x.value.encryptedTokenJarContents];UB5(this,c)};
var UB5=function(B,c){if(c.encryptedTokenJarContents&&(B.tokenJars[c.encryptedTokenJarContents]=c,typeof c.expirationSeconds==="string")){var x=Number(c.expirationSeconds);setTimeout(function(){delete B.tokenJars[c.encryptedTokenJarContents]},x*1E3);
B.cookiesEnabled&&_.dr("CONSISTENCY",c.encryptedTokenJarContents,x,void 0,!0)}};var dBd,py;dBd=window.location.hostname.split(".").slice(-2).join(".");_.lI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var B=_.v5("LOCATION_PLAYABILITY_TOKEN");_.v5("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qA4(this))&&(B=this.localStorage.get("yt-location-playability-token"));B&&(this.locationPlayabilityToken=B,this.mostRecentPosition=void 0)};
_.lI.getInstance=function(){py=_.Gu("yt.clientLocationService.instance");py||(py=new _.lI,_.rr("yt.clientLocationService.instance",py));return py};
_.lI.prototype.setLocationOnInnerTubeContext=function(B){B.client||(B.client={});if(this.mostRecentPosition)B.client.locationInfo||(B.client.locationInfo={}),B.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),B.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),B.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),B.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)B.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.lI.prototype.handleResponse=function(B){var c;B=(c=B.responseContext)==null?void 0:c.locationPlayabilityToken;B!==void 0&&(this.locationPlayabilityToken=B,this.mostRecentPosition=void 0,_.v5("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qA4(this))&&this.localStorage.set("yt-location-playability-token",B,15552E3):_.dr("YT_CL",JSON.stringify({loctok:B}),15552E3,dBd,!0))};
var qA4=function(B){return B.localStorage===void 0?new _.vA("yt-client-location"):B.localStorage};
_.lI.prototype.clearLocationPlayabilityToken=function(B){B==="TVHTML5"?(this.localStorage=qA4(this))&&this.localStorage.remove("yt-location-playability-token"):_.cgO("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.lI.prototype.getCurrentPositionFromGeolocation=function(){var B=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var c=!1,x=1E4;_.v5("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,x=15E3);return new Promise(function(P,Y){navigator.geolocation.getCurrentPosition(function(g){B.mostRecentPosition=g;P(g)},function(g){Y(g)},{enableHighAccuracy:c,
maximumAge:0,timeout:x})})};
_.lI.prototype.createUnpluggedLocationInfo=function(B){var c={};B=B.coords;if(B==null?0:B.latitude)c.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)c.longitudeE7=Math.floor(B.longitude*1E7);if(B==null?0:B.accuracy)c.locationRadiusMeters=Math.round(B.accuracy);return c};
_.lI.prototype.createLocationInfo=function(B){var c={};B=B.coords;if(B==null?0:B.latitude)c.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)c.longitudeE7=Math.floor(B.longitude*1E7);return c};var COW=function(){};
_.a=COW.prototype;
_.a.JSC$11057_getRequest=function(B,c,x){c=c===void 0?{}:c;x=x===void 0?DDy:x;var P=c;if(this.isNavigationCommand()){var Y,g=(Y=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:Y.url;P=_.$3X(B.clickTrackingParams,!0,!1,g,this.JSC$11057_getClientScreen(P))}else P=_.$3X(B.clickTrackingParams,!1,this.includeCsn);P={context:P};if(Y=this.getExtension(B))return this.JSC$11057_buildRequest(P,Y,c),Y=this.getApiUrl(B),g=Object.assign({},{command:B},this.getRequestConfig(B,c)),P={input:Y,requestShell:Za(Y),
innerTubeRequest:P,config:g},P.config.authStrategy?P.config.authStrategy.identity=x:P.config.authStrategy={identity:x},(B=this.JSC$11057_getRequestKey(B,c))&&!P.config.requestKey&&(P.config.requestKey=B),P;B=new _.mc("Error: Failed to create Request from Command.",B);_.lb(B)};
_.a.getApiUrl=function(B){var c=_.Dj(this.getApiPaths(B)),x;(B=(x=_.t(B.commandMetadata,_.Br))==null?void 0:x.apiUrl)&&(c=B);return HRC(ZRX(c))};
_.a.isNavigationCommand=function(){return!1};
_.a.JSC$11057_getClientScreen=function(){};
_.a.JSC$11057_getRequestKey=function(){};
_.a.getRequestConfig=function(){};
_.AJ.Object.defineProperties(COW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var kg=function(){};
_.w(kg,COW);kg.prototype.JSC$11064_getStoreKey=function(){};
kg.prototype.JSC$11057_getRequestKey=function(B,c){c=c===void 0?{}:c;return this.JSC$11064_getStoreKey(B,c)};var mB5;_.Xj=function(B,c,x){var P=x&&x>0?x:0;x=P?Date.now()+P*1E3:0;if((P=P?(0,_.hAQ)():mB5())&&window.JSON){typeof c!=="string"&&(c=JSON.stringify(c,void 0));try{P.set(B,c,x)}catch(Y){P.remove(B)}}};
_.$g=function(B){var c=mB5(),x=(0,_.hAQ)();if(!c&&!x||!window.JSON)return null;try{var P=c.get(B)}catch(Y){}if(typeof P!=="string")try{P=x.get(B)}catch(Y){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(Y){}return P};
_.ny=function(B){try{var c=mB5(),x=(0,_.hAQ)();c&&c.remove(B);x&&x.remove(B)}catch(P){}};
_.hAQ=_.C9(function(){try{var B=new pf7;var c=B.isAvailable()?B:null}catch(x){return null}return c?new _.Pf(c):null});
mB5=_.C9(function(){var B=new kkl;return B.isAvailable()?new _.Pf(B):null});var nC=new _.BL("ENTITY_STATE_TOKEN"),b3=new _.BL("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var T5W=XMLHttpRequest.prototype.fetch,VSd=T5W&&T5W.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!up?!0:!1;var UQ=function(B){this.JSC$11069_storeWithEntities=B};
_.w(UQ,kg);_.a=UQ.prototype;_.a.getApiPaths=function(){return GCF};
_.a.getExtension=function(B){return _.t(B,_.fN)||_.t(B,_.TF)||_.t(B,Gx4)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11064_getStoreKey=function(B){if((_.T("kevlar_cache_on_ttl_player")||_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("mweb_use_new_history_manager")||_.T("web_shorts_prefetch_service_enabled"))&&(B=this.getExtension(B))&&B.videoId){var c={videoId:B.videoId};B.playlistId&&(c.playlistId=B.playlistId);B.playerParams&&(c.params=B.playerParams);return _.Hf("player",c)}};
_.a.JSC$11057_getClientScreen=function(B){var c;return((c=B.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.a.JSC$11057_buildRequest=function(B,c,x){if(_.T("enable_interstitial_entity_check")){var P=this.JSC$11069_storeWithEntities;if(c.videoId)for(var Y=_.p(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=Y.next();!g.done;g=Y.next()){g=g.value;var k;var n=void 0,b=void 0,d=c.videoId,q=g;(k=P)?(d=_.kN(d+q,"interstitialInteractionStateEntity"),k=(n=(b=_.X9(k.getState().entities,"interstitialInteractionStateEntity",d))==null?void 0:b.primaryButtonClicked)!=null?n:!1):k=!1;if(k)switch(g){case "CONTENT_CHECK_REQUIRED":c.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":c.racyCheckOk=!0}}}c.videoId&&(B.videoId=c.videoId);c.playlistId&&(B.playlistId=c.playlistId);c.index!==void 0&&(B.playlistIndex=c.index+1);c.playerParams&&(B.params=c.playerParams);"startTimeSeconds"in c&&c.startTimeSeconds&&(_.T("enable_player_request_builder_start_time_floor")?B.startTimeSecs=Math.floor(c.startTimeSeconds):B.startTimeSecs=c.startTimeSeconds);x.contentPlaybackContext&&(B.playbackContext={contentPlaybackContext:x.contentPlaybackContext});x.prefetchPlaybackContext&&
(B.playbackContext=Object.assign({},B.playbackContext,{prefetchPlaybackContext:x.prefetchPlaybackContext}),B.context.request||(B.context.request={}),B.context.request.isPrefetch=!0);B.playbackContext||(B.playbackContext={});P=jSy();B.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!P,supportXhr:VSd};x.overrideMutedAtStart&&(B.overrideMutedAtStart=x.overrideMutedAtStart);B.racyCheckOk=!!c.racyCheckOk;B.contentCheckOk=!!c.contentCheckOk;!_.T("captions_prefs_killswitch")&&(x=(x=_.$g("yt-player-caption-language-preferences"))?
x:[],x==null?0:x.length)&&(B.captionParams={viewerSelectedCaptionLangs:x})};
_.a.getRequestConfig=function(B){B=this.JSC$11064_getStoreKey(B);var c;B&&(c={storeStrategy:{storeKey:B}});_.T("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="ps_s",c.responseTick="ps_r");return c};
UQ[em]=[nC];var dk=function(){};
_.w(dk,kg);_.a=dk.prototype;_.a.getApiPaths=function(){return d3W};
_.a.getExtension=function(B){return _.t(B,_.fN)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11064_getStoreKey=function(B){if((B=this.getExtension(B))&&B.videoId){var c={videoId:B.videoId};B.playlistId&&(c.playlistId=B.playlistId);B.index&&(c.index=B.index);B.params&&(c.params=B.params);return _.Hf("next",c)}};
_.a.JSC$11057_getClientScreen=function(B){var c;return((c=B.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.a.JSC$11057_buildRequest=function(B,c,x){c.videoId&&(B.videoId=c.videoId);c.playlistId&&(B.playlistId=c.playlistId);c.params&&(B.params=c.params);c.index!==void 0&&(B.playlistIndex=c.index);B.racyCheckOk=!(!x.racyCheckOk&&!c.racyCheckOk);B.contentCheckOk=!!c.contentCheckOk;x.contentPlaybackContext&&(B.autonavState=x.contentPlaybackContext.autonavState,B.playbackContext={vis:x.contentPlaybackContext.vis,lactMilliseconds:x.contentPlaybackContext.lactMilliseconds});x.prefetchPlaybackContext&&(B.context.request||
(B.context.request={}),B.context.request.isPrefetch=!0);_.T("captions_hats_killswitch")||(c=_.CW().getFlag(65),c=c!=null?!c:!1,x=!!_.$g("yt-player-sticky-caption"),B.captionsRequested=c&&x)};
_.a.getRequestConfig=function(B){B=this.JSC$11064_getStoreKey(B);var c;B&&(c={storeStrategy:{storeKey:B}});_.T("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="wn_s",c.responseTick="wn_r");return c};
var q4=function(){};
_.w(q4,kg);q4.prototype.getApiPaths=function(){return d3W};
q4.prototype.getExtension=function(B){return _.t(B,_.zU)};
q4.prototype.JSC$11057_buildRequest=function(B,c){c.token&&(B.continuation=c.token)};var Cy=function(B,c){this.playerRequestBuilder=B;this.watchNextRequestBuilder=c};
_.w(Cy,kg);Cy.prototype.getApiPaths=function(){return W89};
Cy.prototype.getExtension=function(B){return _.t(B,_.fN)};
Cy.prototype.isNavigationCommand=function(){return!0};
Cy.prototype.JSC$11057_buildRequest=function(B,c,x){B.playerRequest={};this.playerRequestBuilder.JSC$11057_buildRequest(B.playerRequest,c,x);_.T("web_streaming_watch")&&(B.watchNextRequest={},this.watchNextRequestBuilder.JSC$11057_buildRequest(B.watchNextRequest,c,x))};
Cy[em]=[UQ,dk];var tSF;_.h2=new _.BL("SHORTS_CONTROLLER_TOKEN");tSF=new _.BL("SHORTS_STATE_STORE_TOKEN");var m8=function(B,c){var x=_.ts.apply(2,arguments);B=B===void 0?0:B;_.mc.call(this,c,x);this.errorType=B;Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(m8,_.mc);var wTt,N50,Jf5,AF$,ZO,$17,O8I,ERm,SAS,F$t,QSt;wTt=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(B){return B+"="}).join("|"));
N50=RegExp(".*\\?.*playnext=1.*");_.TC=function(B,c,x,P){this.watchEndpointMap=B;this.reelWatchEndpointMap=c;this.innerTubeTransportService=x;this.fetchPbj=P};
Jf5=function(B,c,x){var P=_.cp().resolve(_.Bp(IfZ));_.TC.instance=new _.TC(B,c,x,P)};
_.W$W=function(B,c){var x=_.Yu("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;var P;if((P=_.t(c.commandMetadata,_.Br))==null||!P.rootVe)return x&&_.Ob(Error("Tf")),!1;var Y;P=(Y=_.t(c.commandMetadata,_.Br))==null?void 0:Y.url;if(!P)return x&&_.Ob(Error("Uf")),!1;if(N50.test(P))return!0;if(wTt.test(P))return x&&_.Ob(Error("Vf`"+P)),!1;if(_.t(c,_.fN)){if(!(B.watchEndpointMap.watchNext&&B.watchEndpointMap.player||_.T("kevlar_fetch_initial_data_op_watch_client")))return x&&_.Ob(Error("Mf")),!1;
B=_.Yu("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;_.t(c,_.fN)?eR$(c)?c=!0:(B&&_.Ob(Error("Nf")),c=!1):(B&&_.Ob(Error("Mf")),c=!1);return c}if(_.t(c,_.TF))return BGQ(c);if(_.t(c,_.Fm))return!0;B=_.Lw(B.innerTubeTransportService,c);!B&&x&&_.lb(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(c)});return B};
AF$=function(B,c,x,P,Y,g){c={url:c};if(x==null?0:x.itct)c.parentTrackingParams=x.itct;var k=_.Dj(D4n);return _.Fa(B.innerTubeTransportService,c,k).then(function(n){(n=n.endpoint)||(n=_.qm);(x==null?0:x.itct)&&n&&!n.trackingParams&&(n.trackingParams=x.itct);var b=hV(n);return ZO(B,n,x,P,b,Y,g)})};
ZO=function(B,c,x,P,Y,g,k,n){n=n===void 0?{}:n;if(B.fetchPbj&&!_.W$W(B,c)&&!_.T("force_one_platform")){n=B.fetchPbj(c);var b=_.$C(n.then(function(Z){if(!Z)throw Error("Xf");k(b)||g(c,Z);return Z}));
return b}var d,q,C={rootVe:(d=_.t(c.commandMetadata,_.Br))==null?void 0:d.rootVe,url:(q=_.t(c.commandMetadata,_.Br))==null?void 0:q.url,endpoint:c,page:Y};if(_.t(c,_.fN)){var h,V={contentPlaybackContext:_.w_(x,(h=_.t(c.commandMetadata,_.Br))==null?void 0:h.url,P)},N=_.Hw();_.T("web_streaming_watch")&&window.TextDecoderStream?(n=lfF(B.innerTubeTransportService,c,V,function(Z){!C.response&&Z.content&&(C.response=Z.content);!C.playerResponse&&Z.player&&(C.playerResponse=Z.player);g(c,C)}),d=fuI(c),d.length&&
(C.preconnect=d,g(c,C)),ERm(n,N,C).catch(function(Z){Z instanceof m8&&Z.errorType===2&&O8I(B,c,V,C,g,k,N)})):O8I(B,c,V,C,g,k,N);
return N.promise}if(_.t(c,_.TF)){var l;if(((l=_.t(c,_.TF))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E=_.Hw();_.oR4(_.cp().resolve(_.h2),c).then(function(Z){QSt(B,x,P,Y,g,E,Z)});
return E.promise}n=_.$C();var S;d={contentPlaybackContext:_.w_(x,(S=_.t(c.commandMetadata,_.Br))==null?void 0:S.url,P)};(S=B.reelWatchEndpointMap.player)&&(S=S().JSC$11057_getRequest(c,d))&&(n=_.Fa(B.innerTubeTransportService,S.innerTubeRequest,S.input,c.clickTrackingParams,S.config));S=_.$C();(q=B.reelWatchEndpointMap.reelItemWatch)&&(q=q().JSC$11057_getRequest(c))&&(S=_.Fa(B.innerTubeTransportService,q.innerTubeRequest,q.input,c.clickTrackingParams,q.config));q=_.$C();(h=B.reelWatchEndpointMap.reelWatchSequence)&&
_.t(c,_.TF).sequenceParams&&(d=h().JSC$11057_getRequest(c,d))&&(q=_.Fa(B.innerTubeTransportService,d.innerTubeRequest,d.input,c.clickTrackingParams,d.config));d=_.$C(C);h=_.Hw();F$t(c,d,n,S,q,g,k,h);return h.promise}var M;if(_.t(c,ujX)&&((M=_.t(c.commandMetadata,_.Br))==null?0:M.url))return n=kOY(_.ZM(WM().location.href),_.ZM(_.t(c.commandMetadata,_.Br).url)).toString(),AF$(B,n,x,P,g,function(){return!1});
if(_.t(c,_.Fm))return g(c,C),_.$C(C);if(_.Lw(B.innerTubeTransportService,c)){n=Object.assign({},{tempData:x,disableCache:x.disableCache},n);var f=_.Zn(B.innerTubeTransportService,c,n).then(function(Z){C.response=Z;k(f)||g(c,C);return C});
return f}return _.$C(C)};
_.zAF=function(B,c,x,P){if(_.t(c,_.fN)||_.t(c,_.TF)&&(_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("kevlar_enable_shorts_prefetch_in_sequence"))||_.t(c,Gx4)&&_.T("web_enable_prefetching_videos_on_home")){var Y,g={contentPlaybackContext:_.w_(x,(Y=_.t(c.commandMetadata,_.Br))==null?void 0:Y.url,P),prefetchPlaybackContext:Y2q(x)},k,n,b;if(((k=_.t(c,_.fN))==null?void 0:(n=k.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=n.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(x=
B.watchEndpointMap.watchNext)if(g=x().JSC$11057_getRequest(c,g))return Promise.resolve(_.Fa(B.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(C){return C}))}else if(_.t(c,_.TF)&&_.T("web_prefetch_riw_for_next_video")){if(x=B.reelWatchEndpointMap.reelItemWatch)if((x=x().JSC$11057_getRequest(c,g))&&_.Fa(B.innerTubeTransportService,x.innerTubeRequest,x.input,void 0,x.config).then(function(C){return C}),x=B.reelWatchEndpointMap.player)if(g=x().JSC$11057_getRequest(c,
g))return Promise.resolve(_.Fa(B.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(C){return C}))}else if(x=B.watchEndpointMap.player)if(g=x().JSC$11057_getRequest(c,g))return Promise.resolve(_.Fa(B.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(C){return C}))}else if(_.Lw(B.innerTubeTransportService,c)){var d={tempData:x},q=vR3(B.innerTubeTransportService,c);
return q?new Promise(function(C,h){var V,N;return _.X(function(l){if(l.nextAddress==1)return _.K(l,q,2);if(l.nextAddress!=4)return V=l.yieldResult,V.JSC$11064_getStoreKey(c,d)?_.K(l,_.Zn(B.innerTubeTransportService,c,d),4):(h(new _.mc("Prefetching request builder with no store key.",c)),l.jumpTo(0));N=l.yieldResult;C(N);_.Kq(l)})}):Promise.reject(new _.mc("Prefetching unregistered request builder.",c))}return Promise.reject(new _.mc("No request builder available to prefetch endpoint.",c))};
$17=function(B,c){var x,P,Y;if(_.t(c,_.fN)){var g=B.watchEndpointMap.watchNext;g&&(x=g());(B=B.watchEndpointMap.player)&&(P=B())}else if(_.t(c,_.TF))(g=B.reelWatchEndpointMap.reelItemWatch)&&(x=g()),(g=B.reelWatchEndpointMap.player)&&(P=g()),(B=B.reelWatchEndpointMap.reelWatchSequence)&&(Y=B());else{a:{B=DJl(c,B.innerTubeTransportService.endpointMap);if(B!==void 0)if(typeof B.then==="function")_.lb(new _.mc("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",c));else break a;
B=void 0}B&&(x=B)}var k,n,b;return{content:(k=x)==null?void 0:k.JSC$11064_getStoreKey(c),player:(n=P)==null?void 0:n.JSC$11064_getStoreKey(c),reelSequence:(b=Y)==null?void 0:b.JSC$11064_getStoreKey(c)}};
O8I=function(B,c,x,P,Y,g,k){var n=_.$C(),b=B.watchEndpointMap.player;_.T("web_streaming_player")&&(b=tV(Cy));b&&(b=b().JSC$11057_getRequest(c,x))&&(n=_.Fa(B.innerTubeTransportService,b.innerTubeRequest,b.input,c.clickTrackingParams,b.config));b=_.$C();var d=B.watchEndpointMap.watchNext;d&&(x=d().JSC$11057_getRequest(c,x))&&(b=_.Fa(B.innerTubeTransportService,x.innerTubeRequest,x.input,c.clickTrackingParams,x.config));B=_.$C(P);SAS(c,B,n,b,Y,g,k)};
ERm=function(B,c,x){return _.X(function(P){if(P.nextAddress==1)return _.K(P,B,2);c.resolve(x);_.Kq(P)})};
SAS=function(B,c,x,P,Y,g,k){var n,b,d,q,C;_.X(function(h){switch(h.nextAddress){case 1:return _.K(h,c,2);case 2:n=h.yieldResult;if(g(k.promise))return k.resolve(n),h.return();Y(B,n);b=fuI(B);if(!b.length){h.jumpTo(3);break}return _.K(h,c,4);case 4:n.preconnect=b,Y(B,n);case 3:return _.kM(h,5),_.K(h,x,7);case 7:d=h.yieldResult;_.Gw(h,6);break;case 5:return q=_.be(h),k.reject(q),h.return();case 6:if(d===void 0)return n.reload=!0,Y(B,n),k.resolve(n),h.return();if(g(k.promise))return k.resolve(n),h.return();
n.playerResponse=d;Y(B,n);_.kM(h,8);return _.K(h,P,10);case 10:C=h.yieldResult;_.Gw(h,9);break;case 8:_.be(h);case 9:if(C===void 0)return n.response={responseContext:{}},k.resolve(n),h.return();if(g(k.promise))return k.resolve(n),h.return();n.response=C;Y(B,n);k.resolve(n);_.Kq(h)}})};
F$t=function(B,c,x,P,Y,g,k,n){var b,d,q,C,h,V;_.X(function(N){switch(N.nextAddress){case 1:return _.K(N,c,2);case 2:b=N.yieldResult;if(k(n.promise))return n.resolve(b),N.return();g(B,b);d=fuI(B);if(!d.length){N.jumpTo(3);break}return _.K(N,c,4);case 4:b.preconnect=d,g(B,b);case 3:return _.kM(N,5),_.K(N,x,7);case 7:q=N.yieldResult;_.Gw(N,6);break;case 5:return C=_.be(N),n.reject(C),N.return();case 6:if(q===void 0)return b.reload=!0,g(B,b),n.resolve(b),N.return();if(k(n.promise))return n.resolve(b),
N.return();b.playerResponse=q;g(B,b);_.kM(N,8);return _.K(N,P,10);case 10:h=N.yieldResult;_.Gw(N,9);break;case 8:_.be(N);case 9:if(h===void 0)return b.response={responseContext:{}},n.resolve(b),N.return();if(k(n.promise))return n.resolve(b),N.return();b.response=h;g(B,b);_.kM(N,11);return _.K(N,Y,13);case 13:V=N.yieldResult;_.Gw(N,12);break;case 11:_.be(N);case 12:if(k(n.promise))return n.resolve(b),N.return();b.reelWatchSequenceResponse=V;g(B,b);n.resolve(b);_.Kq(N)}})};
QSt=function(B,c,x,P,Y,g,k){var n,b,d,q,C,h;_.X(function(V){if((n=k)==null||!n.replacementEndpoint)return g.reject(),V.return();b=k.replacementEndpoint;(d=_.t(b,_.TF))?(k.sequenceContinuation&&(d.sequenceParams=k.sequenceContinuation),q=_.cp().resolve(_.h2),C=d.sequenceParams,yf4(q,b)&&delete d.sequenceParams,h=ZO(B,b,c,x,P,Y,function(){return!1}),h.then(function(N){return _.X(function(l){if(l.nextAddress==1)return G8d(q,{reelWatchEndpoint:{sequenceParams:C}},N),_.K(l,0,2);
g.resolve(N);_.Kq(l)})})):g.reject();
_.Kq(V)})};_.MSI=function(B){if(B.validatedFragments_.length==0)return null;if(!B.mergedPrefetchedData_){for(var c=[],x=_.p(B.validatedFragments_),P=x.next();!P.done;P=x.next()){P=_.p(B.fragmentConfiguration_[P.value].graftedKeys);for(var Y=P.next();!Y.done;Y=P.next())(Y=B.prefetchedData_[Y.value].trackingParams)&&c.push(Y)}B.mergedPrefetchedData_={};Object.assign(B.mergedPrefetchedData_,B.prefetchedData_,{clientSideGrafts:c})}return B.mergedPrefetchedData_};var L$F;_.Vt=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
L$F=function(B,c,x){if(_.r2X(c))return B.prefetchCache_.get(_.RRC(c,x))};_.t2=new _.BL("NAVIGATION_TOKEN");var Z8S=function(B){var c=this;var x=x===void 0?KWd():x;var P=P===void 0?_.cp().resolve(_.t2):P;this.onePickCommand=B;this.JSC$11167_playlistNetworkManager=x;this.navigationManager=P;this.videoPickerBuilder=_.nJo("yt-addtoplaylist");_.XRm(PpS(Y40(xDy(this.videoPickerBuilder.setTitle(B.modalTitle).setSize(1E3).addView(gDt()).addView(ac0())).addView("youtube"),B.selectButtonLabel)),function(Y){c.handleAction(Y)})};
Z8S.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Z8S.prototype.handleAction=function(B){var c=this;if(B&&this.onePickCommand.listId&&B.action==="picked"&&B.docs){var x=[];B.docs.forEach(function(P){x.push({addedVideoId:P.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11167_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,x).then(function(){_.T("playlist_add_video_hard_reload_killswitch")?c.navigationManager.reload():H89(c.navigationManager)})}};var ffZ=function(){if(this.constructor===ffZ)throw new TypeError("Yf");};
_.a=ffZ.prototype;_.a.dispose=function(){};
_.a.disconnect=function(){};
_.a.reconnect=function(){};
_.a.observe=function(B,c,x){return{element:B,option:x}};
_.a.unobserveByKey=function(){};var jid=function(B,c){c=c===void 0?0:c;ffZ.call(this);this.viewroot=B;this.defaultPrescanHeight=c;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),B?{root:B,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.w(jid,ffZ);_.a=jid.prototype;_.a.dispose=function(){this.disconnect();this.handlers.clear()};
_.a.disconnect=function(B){this.isConnected=!1;this.pauseObservingUntilReconnect=B===void 0?!1:B;this.observer.disconnect();B=_.p(this.prescanObservers.values());for(var c=B.next();!c.done;c=B.next())c.value.disconnect()};
_.a.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var B=_.p(this.handlers),c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;var P=x.next().value;x=!1;P=_.p(P.keys());for(var Y=P.next();!Y.done;Y=P.next())if((Y=Y.value)&&Y.state==="prescan"){x=!0;break}x&&i8Z(this,c).observe(c);this.observer.observe(c)}}};
_.a.handleObserveEvent=function(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=this.handlers.get(c.target);if(x){var P=c.isIntersecting;x=_.p(x);for(var Y=x.next();!Y.done;Y=x.next()){var g=_.p(Y.value);Y=g.next().value;g=g.next().value;Y&&(Y.state==="visible"&&P||Y.state==="hidden"&&!P)&&(g(c.target,Y.state),Y.calledOnce&&this.unobserveByKey({element:c.target,option:Y}))}}}};
_.a.handlePrescanEvent=function(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=this.handlers.get(c.target);if(x&&c.isIntersecting){x=_.p(x);for(var P=x.next();!P.done;P=x.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;P&&P.state==="prescan"&&(Y(c.target,P.state),P.calledOnce&&this.unobserveByKey({element:c.target,option:P}))}}}};
_.a.observe=function(B,c,x){var P=(P=this.handlers.get(B))&&P.has(x)?{element:B,option:x}:void 0;if(P)return P;P={element:B,option:x};this.handlers.has(B)||this.handlers.set(B,new Map);var Y=this.handlers.get(B);Y&&!Y.has(x)&&Y.set(x,c);this.pauseObservingUntilReconnect||(x.state==="prescan"&&i8Z(this,B).observe(B),this.observer.observe(B));return P};
_.a.unobserveByKey=function(B){var c=this.handlers.get(B.element);if(c&&c.has(B.option)){c.delete(B.option);if(B&&B.option.state==="prescan")for(var x=_.p(this.prescanObservers.values()),P=x.next();!P.done;P=x.next())P.value.unobserve(B.element);c.size===0&&(this.handlers.delete(B.element),this.observer.unobserve(B.element))}};
var i8Z=function(B,c){var x=B.defaultPrescanHeight;c.hasAttribute("prescan-height")&&(c=Number(c.getAttribute("prescan-height")),isNaN(c)||(x=c));if(B.prescanObservers.has(x))return B.prescanObservers.get(x);c="-0.1px -0.1px "+x+"px -0.1px";c=new IntersectionObserver(B.handlePrescanEvent.bind(B),B.viewroot?{root:B.viewroot,rootMargin:c}:{rootMargin:c});B.prescanObservers.set(x,c);return c};var Afm=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],u04=function(){var B,c=this;this.JSC$11184_actionRouter=B=B===void 0?_.Gr.getInstance():B;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return c.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return c.visibilityObservedElementHandlerKeys}}},DBQ,RAm,cIW;
u04.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.T("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=U3x())};
u04.prototype.dispose=function(){this.visibilityMonitor&&_.Ti(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
u04.prototype.handleVisibilityRefreshed=function(){for(var B=_.p(this.targetMap.entries()),c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;_.rft(this,c,x)}};
_.Bo4=function(B,c,x){RAm(B,x);var P=_.eAy(B,c);P.element=x;B.targetedElements.set(x,c);_.rft(B,c,P)};
RAm=function(B,c){var x=B.targetedElements.get(c);if(x){var P=B.targetMap.get(x);P&&(delete P.element,B.targetMap.set(x,P));B.targetedElements.delete(c);B.visibilityObserver&&B.visibilityObservedElementHandlerKeys&&(x=B.visibilityObservedElementHandlerKeys.get(c))&&(B.visibilityObserver.unobserveByKey(x),B.visibilityObservedElementHandlerKeys.delete(c))}};
_.rft=function(B,c,x){var P=x.action,Y=x.element;Y&&P&&(Afm.includes(c)||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||B.visibilityMonitor&&B.visibilityMonitor.isNodeVisible(Y)?cIW(B,c,x):B.visibilityObserver&&(B.visibilityObservedElementHandlerKeys||(B.visibilityObservedElementHandlerKeys=new WeakMap),P=B.visibilityObserver.observe(Y,function(){cIW(B,c,x);B.visibilityObservedElementHandlerKeys.delete(Y)},{calledOnce:!0,
state:"visible"}),B.visibilityObservedElementHandlerKeys.set(Y,P)))};
cIW=function(B,c,x){var P=x.action;(x=x.element)&&P&&(_.Qb(B.JSC$11184_actionRouter,[P],x),B.targetMap.delete(c),B.targetedElements.delete(x),B.triggeredTargets.add(c))};
_.eAy=function(B,c){var x=B.targetMap.get(c);x||(x={},B.targetMap.set(c,x));return x};
_.wk=function(){DBQ||(DBQ=new u04);return DBQ};var xnW=document.createElement("div");xnW.style.touchAction="pan-down";var d3w=xnW.style.touchAction==="pan-down";var Pc9,YgW;Pc9=function(){this.hammerFn=cX0();this.JSC$11192_screenManager=_.q_();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.JW(83615);_.$k(this.JSC$11192_screenManager,this.ve);q27()};
_.N4=function(){YgW||(YgW=new Pc9);return YgW};
Pc9.prototype.registerTouchEvents=function(B,c,x){var P=_.ts.apply(3,arguments),Y=this.hammerFn(B,{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}]]});x&&Y.set({touchAction:x});this.nodeManagerMapping.set(B,Y);var g=
CDC(c);P=_.p(P);for(var k=P.next();!k.done;k=P.next()){k=k.value;if(k.includes("swipe")||k.includes("pinch")||k.includes("pan"))k.includes("swipe")?Y.get("swipe").set({enable:!0,direction:g,velocity:.2}):k.includes("pinch")?Y.get("pinch").set({enable:!0}):k.includes("pan")&&(Y.get("pan").set({enable:!0,direction:g}),Y.get("swipe").set({enable:!0,direction:g,velocity:.2}),Y.get("swipe").recognizeWith("pan"));aTF(this,B,Y,k)}};
var aTF=function(B,c,x,P){x.on(P,function(Y){if(P.includes("pinch"))B.lastPinchTime=Date.now();else if(P.includes("swipe")&&Date.now()-B.lastPinchTime<400)return;Y.pointerType!=="mouse"&&(Y=P==="doubletap"?{coordinates:Y.center}:P.includes("pan")?Y:P.includes("swipe")?{target:Y.target}:{},c.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:Y})))})};
Pc9.prototype.unregisterTouchEvents=function(B){var c=_.ts.apply(1,arguments),x=this.nodeManagerMapping.get(B);if(x){c=_.p(c);for(var P=c.next();!P.done;P=c.next())x.off(P.value);this.nodeManagerMapping.delete(B);B.style.touchAction="unset"}};var gT0=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var hV7=null;var spZ=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},S27=function(){spZ.instance||(spZ.instance=new spZ);
return spZ.instance},y6$=function(B){var c=B.networkEvents;
B.networkEvents=[];return _.T("enable_network_monitoring")?c:[]};var pzd;pzd={};_.kGd=eR("yt-serviceworker-metadata",{objectStores:(pzd.auth={addedAtVersion:1},pzd["resource-manifest-assets"]={addedAtVersion:2},pzd),shared:!0,upgrade:function(B,c){c(1)&&Sl(B,"resource-manifest-assets");c(2)&&Sl(B,"auth")},
version:2});var NGl=self.location.origin+"/";IPI([/\.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\//]);IPI([/purge_shell=1/]);var Xzd=void 0;Xzd=Xzd===void 0?[]:Xzd;for(var $n5=[],nT3=_.p(Lc4),bby=nT3.next();!bby.done;bby=nT3.next())$n5.push({key:bby.value});for(var KfI=_.p(Xzd),jpn=KfI.next();!jpn.done;jpn=KfI.next())$n5.push(jpn.value);var Und,Qy=_.xI==null?void 0:(Und=_.xI.performance)==null?void 0:Und.memory,lP7=!1,GO7={},oJd={},FI={},vq=navigator;var I$=function(B){this.JSC$11236_expiringStorage=new VY(B)};
I$.prototype.set=function(B,c,x){x=x!==void 0?Date.now()+x:void 0;this.JSC$11236_expiringStorage.set(B,c,x)};
I$.prototype.get=function(B){return this.JSC$11236_expiringStorage.get(B)};
I$.prototype.remove=function(B){this.JSC$11236_expiringStorage.remove(B)};var urw=_.r2(["https://www.youtube.com/",""]),D3A=_.r2(["https://studio.youtube.com/",""]),cuX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",RVq=null,gGC;var dnm=_.r2(["https://www.youtube.com/iframe_api"]),J2=function(){this.playerResolver_=_.Hw();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.qw;this.playbackDurationSeconds_=0},qg3=function(B){var c=function(){return window.YT&&typeof window.YT.ready==="function"};
if(c())return _.$C(window.YT);var x=_.Hw(),P=_.df("SCRIPT");P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||(P.onload=_.qw,P.onreadystatechange=_.qw,P.onerror=_.qw,c()?x.resolve(window.YT):x.reject(new _.mc("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(Y){P.onload=_.qw;P.onreadystatechange=_.qw;P.onerror=_.qw;x.reject(new _.mc("Failed to load the iframe player library","script.onerror",Y&&Y.target&&Y.target.src))};
_.Mg(P,_.PM(dnm));B.insertBefore(P,B.firstChild);return x.promise},Ccd=function(B,c,x){var P,Y;
_.X(function(g){switch(g.nextAddress){case 1:return B.playbackEndedCallback_=x,_.kM(g,2),_.K(g,qg3(c.parentElement||null),4);case 4:P=g.yieldResult;_.Gw(g,3);break;case 2:return Y=_.be(g),Y instanceof _.mc&&Y.args&&Y.args[0]=="script.onerror"?_.Ob(Y):_.lb(Y),g.return();case 3:P.ready(function(){return new P.Player(c,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:B.onPlayerReady_.bind(B),onStateChange:B.onPlayerStateChange_.bind(B),
onCueRangeExit:B.onCueRangeExit_.bind(B)}})}),_.Kq(g)}})};
_.a=J2.prototype;_.a.getPlayerPromise=function(){return this.playerPromise_};
_.a.onPlayerReady_=function(B){this.playerResolver_.resolve(B.target)};
_.a.onPlayerStateChange_=function(B){if(B.data==YT.PlayerState.PLAYING){B=B.target;var c=B.getCurrentTime();B.addCueRange("playback",c,c+this.playbackDurationSeconds_)}};
_.a.onCueRangeExit_=function(B){B.data=="playback"&&(B.target.stopVideo(),this.playbackEndedCallback_())};
_.a.stopVideo=function(){this.playerPromise_.then(function(B){B.stopVideo()})};
var h$m=function(B){B.playerVars_&&B.playerPromise_.then(function(c){typeof c.cueVideoByPlayerVars!="function"?_.Ob(new _.mc("vmh: player API not ready","cueVideoByPlayerVars",typeof c.cueVideoByPlayerVars)):c.cueVideoByPlayerVars(B.playerVars_)})};
J2.prototype.playVideo=function(){var B=this;this.playerVars_&&this.playerPromise_.then(function(c){typeof c.loadVideoByPlayerVars!="function"?(c=new _.mc("vmh: player API not ready","loadVideoByPlayerVars",typeof c.loadVideoByPlayerVars),_.lb(c)):c.loadVideoByPlayerVars(B.playerVars_)})};
var mnd=function(B,c,x,P,Y){c&&(x===void 0&&(x=0),P===void 0&&(P=0),B.playbackDurationSeconds_=P/1E3,B.playerVars_={adformat:"17_8",videoId:c,suggestedQuality:"hd720",startSeconds:x/1E3,player_params:Y})};
J2.prototype.mute=function(){this.playerPromise_.then(function(B){B.mute()})};
J2.prototype.unMute=function(){this.playerPromise_.then(function(B){B.unMute()})};var Ton=function(B,c){var x=FT();B||(B="unknown");c||(c="unknown");B="MAIN_APP_WEB_PAGE_TYPE_"+B.toUpperCase();B in zcI||(B="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");c="MAIN_APP_WEB_REQUEST_TYPE_"+c.toUpperCase();c in SVS||(c="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.jX(x,{mainAppWeb:{pageType:B,requestType:c,isShellLoad:_.zu("IS_SHELL_LOAD",!1)}})},V4Q={start:function(){_.jX(Wsq(),{mainAppWeb:_.Z3()})},
success:function(){_.UB(Wsq(),"SUCCESS")},
failure:function(){_.UB(Wsq(),"FAILURE")},
cancelled:function(){_.UB(Wsq(),"CANCELLED")}};var t4I,wz9,KAY;t4I=_.r2(["/sw.js"]);wz9=_.r2(["/sw.js?0"]);_.No0=_.PM(t4I);KAY=_.PM(wz9);var IT4=function(){var B=Error.apply(this,arguments);this.message=B.message;"stack"in B&&(this.stack=B.stack)};
_.w(IT4,Error);_.iI.prototype.load=function(B){this.megabloxUrl_=_.v5("YPC_MB_URL");_.vf(this.megabloxUrl_,(0,_.wf)(function(){B&&B()},this))};
_.PHw=function(B,c,x,P,Y,g,k,n,b,d,q){_.UzX(b);B.load((0,_.wf)(function(){try{var C=g?g:_.v5("HL"),h=_.v5("SESSION_INDEX");_.p_C("client",function(){r0F("59",{helpCenterPath:"/youtube",locale:C,window:window}).JSC$8021_loadChatSupport({authuser:String(h)})})}catch(V){throw Hq(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Y&&Y(V),_.lb(V),V;
}JI5(this,c,x,P,Y,g,k,n,b,d,q)},B))};
_.iI.prototype.openFixFlowDialog=function(B,c,x,P){this.load((0,_.wf)(function(){try{Wfm(this,_.Gu("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(B).withIntegratorCallback(c).load(x,P)}catch(Y){throw _.lb(Y),Y;}},this))};
var Wfm=function(B,c,x,P){var Y=c.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.T("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle(_.Gu("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));P&&(Y=Y.usingCloseCallback(P));c.bootstrap.fromPaymentsUrl(B.megabloxUrl_);B=c.bootstrap.asMashupMode(Y);x=x?x:_.v5("HL");B.usingGaiaIndex(_.v5("SESSION_INDEX")).usingLocale(x).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.T("enable_google_payments_buyflow_material2_style_web")?
B.usingStyle(":m2;pc=#444;ac=#065fd4"):B.usingStyle(":md;pc=#444;ac=#065fd4");return B},JI5=function(B,c,x,P,Y,g,k,n,b,d,q){try{var C=_.Gu("payments.business.integration");
if(!C)throw new IT4("payments.business.integration is undefined");var h=C.standaloneContextAuthId.forUserId(),V=Wfm(B,C,g,function(){qUX(!1);n&&n()});
k&&V.usingServerAnalyticsEventHandler(k);var N=V.inStandaloneContext(h).buyFlow(function(l){if(l&&(!l.integratorData||l.integratorData===""||l.error))if(l.error!=null)if(String(l.error)==="-1")_.dzo(b);else{var E=String(l.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Hq(10,q,E,l.debugCode);_.fr(E,b,l.debugCode);E=new _.mc("PAYMENT_ERROR_MESSAGE::"+l.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+l.internalErrorDetails);
_.lb(E)}else Hq(10,q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.fr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.lb(Error("cg"));x&&(qUX(!1),x(l))}).withEncryptedParameters(c);
d&&N.withClientParameters(Buw(_.av$(d)));N.load(function(){Hq(24,q);_.Qj("ttc",void 0,"commerce_transaction");rr$("commerce_transaction");P&&(qUX(!0),P())},function(l){if(l==null?0:l.debugCode)var E=l==null?void 0:l.debugCode;
else if(!l||(l==null?0:l.debugCode))E="EMPTY_LOAD_FAILURE_ERROR",_.lb(Error(E));else{E="EMPTY_LOAD_FAILURE_DEBUG_CODE";var S=new _.mc("LOAD_FAILURE:"+l.message," DEBUG_CODE:"+E);_.lb(S)}Hq(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E);_.fr("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,E);_.lb(l);Y&&Y(l)})}catch(l){throw l instanceof IT4&&(Hq(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Y&&Y(l)),_.lb(l),l;
}};var lTW;lTW=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.BgC=function(B,c){c=c===void 0?!1:c;B=lTW.test(B)?_.kX(B):null;!c&&window.payments||!B?(B=_.Hw(),c=B.promise,B.resolve()):c=_.QOt(B,{attributes:{"data-payments-main":"",id:"payment-lib"}});return c};var ETW;ETW=_.r2(["//www.googletagmanager.com/gtm.js?id=",""]);_.Wl=function(B,c){_.cv(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:c}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.v5("GL")}),c=_.df("SCRIPT"),c.async=!0,_.Mg(c,_.PM(ETW,B)),c.id="gtm",B=document.getElementsByTagName("script"),B.length==0?document.head.appendChild(c):(B=B[0],B.parentNode.insertBefore(c,B)))};
_.l3=function(B){if(B=JSON.parse(B))window.dataLayer=window.dataLayer||[],window.dataLayer.push(B)};var ObS,oTW;ObS=_.r2(["https://clients2.google.com/gr/gr_sync.js"]);_.RJ7=function(){};
_.RJ7.prototype.init=function(){if(oTW()){var B=_.Hw();B.resolve();return B.promise}return _.QOt(_.PM(ObS)).then(function(){if(!oTW())throw Error("dg");},function(){throw Error("eg");
})};
_.eJO=function(){if(!oTW())return"";var B=window.google.gr;B.init({async:{schedule:"sync"},merchantId:"youtube"});B.start();B=B.finish();return B==null?"":B};
oTW=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.w(_.z,PolymerFakeBaseClassWithoutHtml);_.dM=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.w(_.dM,PolymerFakeBaseClassWithoutHtml);var C6d=window.ShadyDOM;var BAd,R0Y,xTC,PSI,arX,gSl,EQ,PW;BAd=_.T("enable_shadydom_free_scoped_query_methods");R0Y=_.T("enable_shadydom_free_scoped_node_methods");xTC=_.T("enable_shadydom_free_scoped_readonly_properties_batch_one");PSI=_.T("enable_shadydom_free_parent_node");arX=_.T("enable_shadydom_free_children");gSl=_.T("enable_shadydom_free_last_child");EQ=window.ShadyDOM;_.pF=EQ&&EQ.noPatch&&EQ.wrap?EQ.wrap:EQ?function(B){return EQ.patch(B)}:function(B){return B};
PW=function(B){if(B instanceof ShadowRoot)this.host=(0,_.pF)(B.host),this.root=B;else if(B.$$){this.host=(0,_.pF)(B);var c;this.root=(c=B.root)!=null?c:this.host}else if(B.polymerController){this.host=(0,_.pF)(B);var x;this.root=(x=this.host.shadowRoot)!=null?x:this.host}else this.root=this.host=(0,_.pF)(B)};
e07();c7C();sN$();pC7();Yfo();var QpZ={querySelector:function(B,c){c=mz7(c,r_(B));B=_.Ru(B);return eF(B).prototype.querySelector.call(B,c)},
querySelectorAll:function(B,c){c=mz7(c,r_(B));B=_.Ru(B);return eF(B).prototype.querySelectorAll.call(B,c)}},Ff0={appendChild:function(B,c){var x=r_(B),P=_.D3(c);
return _.DzA(_.Ru(B),x?_.cW(c,x,P):c)},
cloneNode:function(B,c){var x=_.D3(B);B=_.Ru(B);c=eF(B).prototype.cloneNode.call(B,c);return x?x9(c,x):c},
contains:function(B,c){var x=r_(B),P=_.D3(c);return x!==P?!1:ruY(B,c)},
insertBefore:function(B,c,x){var P=r_(B),Y=_.D3(c);B=_.Ru(B);c=P?_.cW(c,P,Y):c;return eF(B).prototype.insertBefore.call(B,c,x)},
removeChild:function(B,c){var x=r_(B);B=_.Ru(B);c=x?x9(c,x):c;return eF(B).prototype.removeChild.call(B,c)},
replaceChild:function(B,c,x){var P=r_(B),Y=_.D3(c);c=P?_.cW(c,P,Y):Y?x9(c,Y):c;x=P?x9(x,P):x;B=_.Ru(B);return eF(B).prototype.replaceChild.call(B,c,x)},
getRootNode:function(B,c){c=c===void 0?{composed:!0}:c;var x;if(((x=c)!=null?x:{}).composed)B=Ojo(B);else{c=B;for(B=VMX(B);B;)c=B,B=wDY(B);B=c}return B}},XCq=xTC?{firstChild:ZjO,
nextSibling:GHx,previousSibling:LA$,firstElementChild:Hjo,lastElementChild:ij7,nextElementSibling:yuo,previousElementSibling:MMC,childNodes:Auq}:{};PSI&&(XCq.parentNode=SU7);arX&&(XCq.children=uhO);gSl&&(XCq.lastChild=f4I);BAd&&kAC(QpZ);R0Y&&kAC(Ff0);$T7();var nSC=function(B){this.node=B instanceof ShadowRoot?B.host:B};
bG7();KPl();var dTX=new WeakMap;var CSw=Symbol("wd");var t67=new Set(["tap","track","down","up"]),wCo=_.T("pbcm_fi_query_decorators");var OQ=function(){return _.dM.apply(this,arguments)||this};
_.w(OQ,_.dM);_.a=OQ.prototype;_.a.getState=function(){return this.store.getState()};
_.a.dispatch=function(B){this.store.dispatch(B)};
_.a.beforeRegister=function(){if(this&&typeof this==="object"){var B;var c=!!this.useSignals||!((B=this.polymerController)==null||!B.useSignals)}else c=!1;if(!c&&this.properties)for(c=_.p(Object.keys(this.properties)),B=c.next();!B.done;B=c.next()){var x=B.value;B=this.properties[x];if(B.selector){if(B.computed)throw Error("kg");x=["reduxPropertiesRecomputeTrigger",'"'+x+'"'].concat(_.wq(B.selectorArgs||[])).join(",");B.computed="recomputeReduxSelector("+x+")"}}};
_.a.attached=function(){var B=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){B.reduxPropertiesRecomputeTrigger++}));
_.T("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.a.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.a.recomputeReduxSelector=function(B,c){var x=_.ts.apply(2,arguments),P=this.properties[c].selector;if(!P)throw Error("ig`"+c);return P.apply(null,[this.store.getState()].concat(_.wq(x)))};
_.a.select=function(B){var c=_.ts.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return B.apply(null,[this.store.getState()].concat(_.wq(c)))};
_.AJ.Object.defineProperties(OQ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
OQ.prototype.recomputeReduxSelector=OQ.prototype.recomputeReduxSelector;_.L([_.F(),_.H("design:type",Number)],OQ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.L([_.qi()],OQ);var o$=[],WP7={},lF=function(){return DF.apply(this,arguments)||this};
_.w(lF,DF);lF.prototype._addPropertyEffect=function(B,c,x){if(c==="__observeEffects"&&x){var P,Y=(P=x.info.method)!=null?P:x.info.methodName;if(Y){var g=this[Y];this[Y]=function(){o$.push(Y);try{g==null||g.apply(this,arguments)}finally{o$.pop()}}}}_.V8._addPropertyEffect.apply(this,[B,
c,x])};
lF.prototype._setPendingProperty=function(B,c,x){if(o$.length){var P=o$[o$.length-1],Y;(Y=WP7[this.is])!=null&&Y.has(P)||(lrI(this.is,P),_.JP("polymerPropertyChangedInObserver",{componentName:this.is,observerName:P}))}return _.V8._setPendingProperty.apply(this,[B,c,x])};
_.L([bCY()],lF);var ESw=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),oSO,mU={};_.T("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=mU);var t9=function(){return _.dM.apply(this,arguments)||this};
_.w(t9,_.dM);t9.prototype._setUnmanagedPropertyToNode=function(B,c,x){B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!0);if(x!==B[c]||typeof x==="object")B[c]=x;B.is&&B.polymerController&&B.polymerController!==B&&TZ(B.is,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!1)};
_.L([_.qi()],t9);OGX()&&(QL.prototype._setUnmanagedPropertyToNode=(new t9)._setUnmanagedPropertyToNode);_.A7X={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(B){},set polymerController(B){}}]};var WW=function(){var B=DF.apply(this,arguments)||this;B.json=function(){};
return B};
_.w(WW,DF);WW.prototype.equals=function(B,c){return B===c};
WW.prototype.isEmpty=function(B){return!B||_.R7(B)&&B.length===0};
_.L([bCY()],WW);var vTy=function(B){B=k1o(B);yT.call(this,B)};
_.w(vTy,yT);vTy.prototype.addProvider=function(B){B=B.key?B:k1o([B])[0];var c=this.keyIdToIndex.get(B.key.id);if(c){if(Sfw(B,this.providers[c]))throw Error("lg`"+B.key.displayName);}else yT.prototype.addProvider.call(this,B)};
var z$m=new vTy([]);var SgF=!1;var HGx={};SgF||(ZG$(),SgF=!0);
HGx.InjectBehavior={initializeInjection:function(){var B=this.provide;try{if((B=B!=null?B:[])&&B.length>0)for(var c=k1o(B),x=_.p(c),P=x.next();!P.done;P=x.next())z$m.addProvider(P.value);var Y=new Set;y7o(this.behaviors||[],Y);c={};for(var g=_.p(Y),k=g.next();!k.done;k=g.next()){var n=k.value;n.inject&&Object.assign(c,n.inject)}this.inject&&Object.assign(c,this.inject);for(var b=_.p(Object.keys(c)),d=b.next();!d.done;d=b.next()){var q=d.value,C=c[q];try{this[q]=z$m.resolve(C)}catch(h){throw h;}}}catch(h){throw Error(h.message);
}}};var iGw;var uN7=/\bclass\b/.test(function(){}.toString()),R87=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var yI9=function(B){this.wasDefined=!0;Array.isArray(B)||B instanceof Array?(this.JSC$11365_getImpl=B[0],this.JSC$11365_setImpl=B[1]):this.JSC$11365_getImpl=B};
_.a=yI9.prototype;_.a.getWithPath=function(B){return cf7(this.JSC$11365_getImpl(),B)};
_.a.setWithPath=function(B,c){var x=this;if(B.length)throw Error("mg");if(!this.JSC$11365_setImpl)throw Error("ng");qO(function(){x.JSC$11365_setImpl(c)})};
_.a.notifyPath=function(){throw Error("og");};
_.a.notifySplices=function(){throw Error("pg");};
_.a.getChangeRecordSignal=function(B,c){var x=this;if(B.length)throw Error("qg");return function(){var P=x.getWithPath(B);return{path:c!=null?c:"",base:P,value:P}}};
_.a.getSplicesSignal=function(){throw Error("rg");};
_.a.getPathMutationSignal=function(){throw Error("sg");};
_.a.pop=function(){throw Error("tg");};
_.a.push=function(){throw Error("ug");};
_.a.splice=function(){throw Error("vg");};
_.a.unshift=function(){throw Error("wg");};var Qt=function(B){var c=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(B)||B instanceof Array?(this.JSC$11370_getImpl=B[0],this.JSC$11370_setImpl=B[1]):this.JSC$11370_getImpl=B;this.wasDefined=!1;XS(function(){c.wasDefined=c.JSC$11370_getImpl()!==void 0})};
Qt.prototype.getWithPath=function(B){return cf7(this.JSC$11370_getImpl(),B)};
Qt.prototype.setWithPath=function(B,c){var x=this;if(B[B.length-1]!=="*"&&B[B.length-1]!=="splices"){if(B.length===0){if(!this.JSC$11370_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=c!==void 0);qO(function(){x.JSC$11370_setImpl(c)})}else{for(var P=XS(function(){return x.getWithPath([])}),Y=0;Y<B.length-1;Y++){if(!P)return;
P=P[B[Y]]}Y=B[B.length-1];P&&(P[Y]=c);this.wasDefined||(this.wasDefined=B.length>1||c!==void 0)}GGt(this,B,{pathComponents:B,value:c})}};
Qt.prototype.notifyPath=function(B,c){B.length===0?c&&this.setWithPath(B,c.value):GGt(this,B,{pathComponents:B,value:c==null?void 0:c.value,fallbackWhenUndefined:c==null?void 0:c.value})};
var GGt=function(B,c,x,P){if(B.setMutationSignal){var Y=++B.mutationIndex,g=[B.observedPath],k=B.observedPath,n;c.length===0&&(n=k);for(var b=0;b<c.length;b++){var d=k.subPaths[c[b]];if(!d)break;g.push(d);k=d;b===c.length-1&&(n=d)}for(c=!1;g.length;)k=g.shift(),k.data={index:Y,mutation:x,spliceMutationIndex:P},c||(c=k===n),c&&g.push.apply(g,_.wq(Object.values(k.subPaths)));qO(function(){B.setMutationSignal(Y)})}};
Qt.prototype.notifySplices=function(B,c){var x=this,P=XS(function(){return x.getWithPath(B)}),Y=[].concat(_.wq(B),["splices"]);
GGt(this,Y,{pathComponents:Y,value:{indexSplices:c}});if(P==null?0:P.length)c=this.mutationIndex,Y=[].concat(_.wq(B),["length"]),GGt(this,Y,{pathComponents:Y,value:P.length},c)};
var M4m=function(B,c,x,P,Y,g){B.notifySplices(x,[{index:P,addedCount:Y,removed:g,object:c,type:"splice"}])},Lft=function(B,c){B=B.observedPath;
for(var x=0;x<c.length;x++){var P=c[x],Y=B.subPaths[P];Y||(Y={pathComponents:c.slice(0,x+1),subPaths:{}},B.subPaths[P]=Y);B=Y}},Hbm=function(B,c,x){Lft(B,c);
if(!B.getMutationSignal){var P=_.p(_.$D(B.mutationIndex,void 0,"HavCgf"));B.getMutationSignal=P.next().value;B.setMutationSignal=P.next().value}var Y=B.getMutationSignal;return _.db(function(){Y();return x(Zbd(B,c))},void 0,"BYaPo")};
Qt.prototype.getChangeRecordSignal=function(B,c){var x=this,P=this.mutationIndex,Y;return Hbm(this,B,function(g){if(g&&g.index>P){var k=g.mutation;P=g.index;Y=void 0}g=XS(function(){return x.getWithPath(B)});
if(k){var n=k.pathComponents[k.pathComponents.length-1],b=[].concat(_.wq(k.pathComponents));if(n==="splices"||n==="length")return{base:g,path:(c?[c].concat(_.wq(b)):b).join("."),value:k.value};var d=B.length>b.length?B:b,q;return{base:g!=null?g:k.fallbackWhenUndefined,path:(c?[c].concat(_.wq(d)):d).join("."),value:(q=XS(function(){return x.getWithPath(d)}))!=null?q:k.fallbackWhenUndefined}}Y||(Y={base:g,
path:(c?[c].concat(_.wq(B)):B).join("."),value:g});return Y})};
Qt.prototype.getSplicesSignal=function(B){var c=this.mutationIndex,x;return Hbm(this,B,function(P){if(P&&P.index>c&&P.spliceMutationIndex!==c){var Y=P.mutation;c=P.index;x=void 0}return Y&&Y.pathComponents[Y.pathComponents.length-1]==="splices"?x=P=Y.value:x})};
Qt.prototype.getPathMutationSignal=function(B){var c=this;Lft(this,B);if(!this.getMutationSignal){var x=_.p(_.$D(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=x.next().value;this.setMutationSignal=x.next().value}var P=this.getMutationSignal,Y=this.mutationIndex,g;return _.db(function(){P();var k=Zbd(c,B);if(k&&k.index>Y&&k.mutation&&xBO(k.mutation.pathComponents,B)){var n=k.mutation;Y=k.index}if(!g||Y!==g.index){var b,d;k=(d=XS(function(){return c.getWithPath(B)}))!=null?d:(b=n)==null?
void 0:b.fallbackWhenUndefined;
g={index:Y,value:k}}return g},void 0,"Aumsyf")};
var Zbd=function(B,c){B=B.observedPath;c=_.p(c);for(var x=c.next();!x.done;x=c.next())B=B.subPaths[x.value];return B.data};
Qt.prototype.pop=function(B){var c=this,x=XS(function(){return c.getWithPath(B)});
if(!(x instanceof Array))throw Error("yg");var P=x.length>0,Y=x.pop();P&&M4m(this,x,B,x.length,0,[Y]);return Y};
Qt.prototype.push=function(B){var c=_.ts.apply(1,arguments),x=this,P=XS(function(){return x.getWithPath(B)});
if(!(P instanceof Array))throw Error("zg");var Y=P.length,g=P.push.apply(P,_.wq(c));c.length&&M4m(this,P,B,Y,c.length,[]);return g};
Qt.prototype.splice=function(B,c,x){var P=_.ts.apply(3,arguments),Y=this,g=XS(function(){return Y.getWithPath(B)});
if(!(g instanceof Array))throw Error("Ag");c<0?c=g.length-Math.floor(-c):c&&(c=Math.floor(c));var k=g.splice.apply(g,[c,x].concat(_.wq(P)));(P.length||k.length)&&M4m(this,g,B,c,P.length,k);return k};
Qt.prototype.unshift=function(B){var c=_.ts.apply(1,arguments),x=this,P=XS(function(){return x.getWithPath(B)});
if(!(P instanceof Array))throw Error("Bg");var Y=P.unshift.apply(P,_.wq(c));c.length&&M4m(this,P,B,0,c.length,[]);return Y};var fT4=!0,ibZ=!1,z$q=!1,AII=!1,Fj=!1,uKn=0;AII=!1;uKn=0;fT4=!0;Fj=ibZ=z$q=!1;var vl=function(B,c,x){this.model=B;this.unknownSignalResolver=c;this.options=x;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];c=_.p($Bo());B=c.next().value;c=c.next().value;this.owner=B;this.disposeImpl=c};
vl.prototype.dispose=function(){if(!this.isDisposed){for(var B=_.p(this.childSignalProxies),c=B.next();!c.done;c=B.next())c.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var DnI=function(B,c){B=_.e$(B.owner);try{c()}finally{_.e$(B)}};
vl.prototype.effect=function(B){DnI(this,function(){_.oO(B)})};
var rIS=function(B,c){B.options!=null||(B.options={});var x;(x=B.options).immutableProps!=null||(x.immutableProps=new Set);B.options.immutableProps.add(c)},vRl=function(B,c){c=""+c;
R$0(B,c);var x,P;if((x=B.options)==null?0:(P=x.immutableProps)==null?0:P.has(c))return!0;var Y;if((Y=B.model.__signalCache)==null?0:Y.has(c))x=B.model.__signalCache.get(c),Array.isArray(x)&&rIS(B,c);var g,k,n;return(n=(g=B.options)==null?void 0:(k=g.immutableProps)==null?void 0:k.has(c))!=null?n:!1},e$t=function(B,c){var x;
B.unknownSignalResolver&&(x=B.unknownSignalResolver(c));var P,Y;((P=B.options)==null?0:(Y=P.immutableProps)==null?0:Y.has(c))?x!=null||(x=new yI9(_.$D(B.model[c],void 0,"bgwlkd"))):x!=null||(x=new Qt(_.$D(B.model[c],void 0,"V1hou")));var g=B.model.hostElement;Object.defineProperty(B.model,c,{get:function(){FP$(g,c);return x.getWithPath([])},
set:function(k){Vo(g,c);B.setWithPath([c],k)},
configurable:!0});return x},R$0=function(B,c){var x,P,Y;
((x=B.model.__signalCache)==null||!x.has(c))&&((P=B.options)==null?0:(Y=P.externalSignalProps)==null?0:Y.has(c))&&B.model[c]},Qo=function(B,c){c=""+c;
var x=B.signalCache[c];if(x!==void 0)return x;x=!1;R$0(B,c);var P;if((P=B.model.__signalCache)==null?0:P.has(c))if(x=B.model.__signalCache.get(c),Array.isArray(x))x=!0,rIS(B,c);else return B.signalCache[c]=B.model.__signalCache.get(c).signal,B.signalCache[c];var Y,g;P=(g=(Y=B.options)==null?void 0:Y.reactivityMode)!=null?g:0;var k,n;if(!((k=B.options)==null?0:(n=k.reactiveProps)==null?0:n.has(c))&&!x&&P===1)throw Error("Cg`"+c);Y=x?BT4(B,c):e$t(B,c);return B.signalCache[c]=Y},BT4=function(B,c){var x=
Object.getOwnPropertyDescriptor(B.model.constructor.prototype,c),P=function(){return B.model[c]};
return new yI9(x&&x.get&&!x.set?P:[P,function(Y){B.model[c]=Y}])};
vl.prototype.getWithPath=function(B){var c=_.p(B);B=c.next().value;c=uW(c);FP$(this.model.hostElement,""+B);return Qo(this,B).getWithPath(c)};
vl.prototype.setWithPath=function(B,c){if(B.length){Vo(this.model.hostElement,B.join("."));var x=_.p(B);B=x.next().value;x=uW(x);Qo(this,B).setWithPath(x,c)}};
vl.prototype.getPathMutationSignal=function(B){var c=_.p(B);B=c.next().value;c=uW(c);return Qo(this,B).getPathMutationSignal(c)};
vl.prototype.notifyPath=function(B,c){var x=_.p(B);B=x.next().value;x=uW(x);Qo(this,B).notifyPath(x,c)};
var c8m=function(B,c){if(c.type==="literal")return function(){return{rootWasDefined:!0,value:c.value}};
var x=Om(c.path),P=_.p(x),Y=P.next().value;P=uW(P);var g,k;if(c.type==="path"&&(x.length===1||((g=B.options)==null?0:(k=g.immutableProps)==null?0:k.has(Y))))return function(){var C=B.getWithPath(x.slice(0,1)),h=cf7(C,x.slice(1));C=C!==void 0;Fj&&(C=Qo(B,x[0]).wasDefined);return{rootWasDefined:C,value:h}};
var n=Qo(B,Y);if(c.type==="path"){var b=n.getPathMutationSignal(P);return function(){var C=Fj?n.wasDefined:QG(B.owner,function(){return n.getWithPath([])})!==void 0;
var h,V=(h=b())==null?void 0:h.value;return{rootWasDefined:C,value:V}}}if(c.type==="splices"){var d=n.getSplicesSignal(P);
return function(){var C=d();return{rootWasDefined:Fj?n.wasDefined:C!==void 0,value:C}}}var q=n.getChangeRecordSignal(P,""+Y);
return function(){var C=q();return{rootWasDefined:Fj?n.wasDefined:C!==void 0,value:C}}},pTO=function(B,c,x){var P=x.map(function(n){return c8m(B,n)}),Y=x.length===0,g=[],k=x.length!==1||x[0].type!=="path"?!1:!0;
B.effect(function(){for(var n=P.length,b=[],d=!!g.length,q=0;q<n;q++){var C=P[q](),h=C.rootWasDefined;C=C.value;Y||(Y=h);b[q]=C;k&&(b[q+n]=d?g[q]:b[q],g[q]=C)}Y&&QG(B.owner,function(){return void c.apply(null,_.wq(b))})})},POx=function(B,c,x,P,Y){var g=Qo(B,c);
Y!==void 0&&g.setWithPath([],Y);pTO(B,function(){var k=_.ts.apply(0,arguments);Vo(B.model.hostElement,c,!0);g.setWithPath([],x.apply(null,_.wq(k)))},P)};
vl.prototype.arrayPush=function(B){var c=_.ts.apply(1,arguments),x=_.p(B),P=x.next().value;x=uW(x);P=Qo(this,P);return P.push.apply(P,[x].concat(_.wq(c)))};
vl.prototype.arraySplice=function(B,c,x){var P=_.ts.apply(3,arguments),Y=_.p(B),g=Y.next().value;Y=uW(Y);g=Qo(this,g);return g.splice.apply(g,[Y,c,x].concat(_.wq(P)))};
vl.prototype.arrayUnshift=function(B){var c=_.ts.apply(1,arguments),x=_.p(B),P=x.next().value;x=uW(x);P=Qo(this,P);return P.unshift.apply(P,[x].concat(_.wq(c)))};
vl.prototype.notifySplices=function(B,c){var x=_.p(B);B=x.next().value;x=uW(x);Qo(this,B).notifySplices(x,c)};var dBO=/([^\s]+?)\(([\s\S]*)\)/,K$w=/\.([^.]+)$/,COw=/\\,/g,nRx=/&comma;/g,b87=/\\(.)/g,qAx=[],jS$={"*":"wildcard",splices:"splices"};var W$w=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"),wTX=/[A-Z]/,xPF=["class","hidden","id","on-dom-change"],ERq=new Set([].concat(_.wq(xPF),
["if","notify-dom-change","restamp"])),O8Q=new Set([].concat(_.wq(xPF),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),oRx=new Set(["restamp"]);var EyI=new Set(["className","id"]);var SAA=Symbol(),ffd=window;var Box=window;var spd=0,PcC=0,F2=[],gT7=0,xnw=!1,aTI=document.createTextNode("");(new window.MutationObserver(Ygw)).observe(aTI,{characterData:!0});var zZ=new Map,vW=0,PBm=function(B){this.mappedHandleId=B},kGO=function(B,c,x,P){this.mappedHandleId=B;
var Y=this;this.mappedHandleId=B;this.callback=c;this.waitTime=x;this.schedulerPriority=P;this.handleId=_.EE.addJob(function(){Y.callback();zZ.delete(Y.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.w(kGO,PBm);kGO.prototype.cancel=function(){_.EE.cancelJob(this.handleId);zZ.delete(this.mappedHandleId)};
var XzO=function(B,c){this.mappedHandleId=B;var x=this;this.mappedHandleId=B;this.callback=c;this.handleId=pzO(function(){x.callback();zZ.delete(x.mappedHandleId)})};
_.w(XzO,PBm);XzO.prototype.cancel=function(){var B=this.handleId-PcC;B<0||F2.length<=B||(F2[B]=null);zZ.delete(this.mappedHandleId)};var KfQ=function(){};
KfQ.prototype.cancel=function(){this.jobHandle!==void 0&&($n7(this.jobHandle),this.jobHandle=void 0)};
KfQ.prototype.run=function(B,c,x){var P=this;this.cancel();this.callback=B;this.jobHandle=_.Sr(function(){B();P.callback=void 0},c,x)};
KfQ.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var nTl=new WeakMap;var YJ5=DW(function(B){for(var c=B,x=0;x<3;x++)c=Object.getPrototypeOf(c);delete c.prototype.connectedCallback;var P=function(){return B.apply(this,arguments)||this};
_.w(P,B);P.prototype._attachDom=function(Y){if(!Y)return null;var g=(0,_.pF)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:Y});g.shadowRoot.appendChild(Y);return g.shadowRoot};
P.prototype._takeAttributes=function(){for(var Y=this.hostElement.attributes,g=0;g<Y.length;g++){var k=Y[g],n=void 0,b=void 0;(b=(n=this).__attributeReaction)==null||b.call(n,k.name,null,k.value)}};
P.prototype._readyClients=function(){B.prototype._readyClients.call(this);this.root=this};
P.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);B.prototype.connectedCallback.call(this)};
_.AJ.Object.defineProperties(P,{template:{configurable:!0,enumerable:!0,get:function(){return P.prototype._template}}});
return P}),aCW=DW(function(B){var c=function(){return B.apply(this,arguments)||this};
_.w(c,B);c.prototype.created=function(){if(this.__notifyEffects)for(var x=_.p(Object.values(this.__notifyEffects)),P=x.next();!P.done;P=x.next()){P=_.p(P.value);for(var Y=P.next();!Y.done;Y=P.next())Y.value.fn=qgl}if(this.__reflectEffects)for(x=_.p(Object.values(this.__reflectEffects)),P=x.next();!P.done;P=x.next())for(P=_.p(P.value),Y=P.next();!Y.done;Y=P.next())Y.value.fn=CcO};
c.prototype._addEventListenerToNode=function(x,P,Y){x=GZ(x);I1(x,P,Y)||B.prototype._addEventListenerToNode.call(this,x,P,Y)};
c.prototype._removeEventListenerFromNode=function(x,P,Y){x=GZ(x);JJ(x,P,Y)||B.prototype._removeEventListenerFromNode.call(this,x,P,Y)};
c.prototype._propertiesChanged=function(x,P,Y){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.p(Object.keys(this.__dataToNotify)),k=g.next();!k.done;k=g.next()){k=k.value;var n=dnq(k);this.__notifyEffects[n]||delete this.__dataToNotify[k]}else this.__dataToNotify=null;B.prototype._propertiesChanged.call(this,x,P,Y)};
c.prototype.fire=function(x,P,Y){P=P===void 0?{}:P;var g;return _.aJ(GZ((g=Y==null?void 0:Y.node)!=null?g:this),x,P,Y)};
c.prototype._ensureAttribute=function(x,P){var Y=GZ(this);Y.hasAttribute(x)||oB(Y,P,x)};
c.prototype.isLightDescendant=function(x){var P=GZ(this);return GZ(P)!==x&&_.Y9(P).contains(x)&&_.Y9(P).getRootNode()===_.Y9(x).getRootNode()};
return c});
_.t4.ready=function(){var B;((B=this.hostElement)!=null?B:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var c;((c=this.hostElement)!=null?c:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Oc._subscribeIronResize=function(B){var c;((c=B.hostElement)!=null?c:B).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Oc._unsubscribeIronResize=function(B){var c;((c=B.hostElement)!=null?c:B).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Too=[Array,Boolean,Date,Number,Object,String],LF=function(B,c,x,P){this.polySiInfo=B;this.polySiParams=c;this.polySiContext=x;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;P||this instanceof HTMLElement&&(P=this);if(!P)throw Error("Jg");this.allowedProps=c.allowedProps;this.hostElement=P;this.is=B.is;this.upgradeDisabled=!!c.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");B=new Set(c.reactiveSchemas.filter(function(Y){return Y.type!==
"observe"}).map(function(Y){return Y.propertyKey}));
this.signalProxy=new vl(this,void 0,{reactiveProps:B,reactivityMode:c.reactivityMode});this.__dataHasAccessor={};c=_.p(c.reactiveSchemas);for(B=c.next();!B.done;B=c.next())B=B.value,B.type==="signal"&&(this.__dataHasAccessor[B.propertyKey]=!0);this.upgradeDisabled||gyS(this)};
LF.prototype.getExtraMethodsToForward=function(){return[]};
var gyS=function(B){B.polySiContext.didRegister||(B.registered(),B.polySiContext.didRegister=!0);B.polySiContext.finalizedTemplate||(B.polySiContext.finalizedTemplate={},B.polySiParams.templateGetter&&(B.polySiContext.finalizedTemplate.processedTemplate=cIw(B.polySiParams.templateGetter,B.polySiParams.is)));sjm(B);var c=B.hostElement;c.loggingStatus!=null||(c.loggingStatus={});c.loggingStatus.isInitializing=!0;XS(function(){return void B.created()});
c.loggingStatus.isInitializing=!1;B.isPolySiElementConnected&&pIF(B)},pIF=function(B){B.didCallReady||(XS(function(){return void B.ready()}),B.didCallReady=!0);
B.isAttached=!0;B.attached()};
_.a=LF.prototype;_.a.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||pIF(this)};
_.a.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.a.attributeChangedCallback=function(B,c,x){if(this.upgradeDisabled)B==="disable-upgrade"&&x===null&&(this.upgradeDisabled=!1,gyS(this));else if(c!==x){var P=_.KN(B),Y=this.polySiContext.typesForSignals[P];if(Y&&(!this.reflecting||_.T("polysi_attribute_changed_serializing_killswitch"))){switch(Y){case Object:try{var g=JSON.parse(x)}catch(n){g=x}break;case Array:try{g=JSON.parse(x)}catch(n){g=null}break;case Date:g=isNaN(x)?String(x):Number(x);g=new Date(g);break;case Boolean:g=x!==null;break;case Number:g=
Number(x);break;default:g=x}this[P]=g}P=_.p(this.polySiParams.behaviors);for(Y=P.next();!Y.done;Y=P.next())g=void 0,(g=Y.value.attributeChanged)==null||g.call(this,B,c,x);var k;(k=this.attributeChanged)==null||k.call(this,B,c,x)}};
_.a.attributeChangedCallbackWrapper=function(B,c,x){this.attributeChangedCallback(B,c,x)};
_.a.setPropertiesFromInitialAttributeValues=function(){for(var B=0;B<this.hostElement.attributes.length;B++){var c=this.hostElement.attributes[B];(c.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(c.name))&&this.attributeChangedCallback(c.name,null,c.value)}};
_.a.created=function(){this.provide=this.polySiParams.provide;var B;(B=this.initializeInjection)==null||B.call(this);B=_.p(this.polySiParams.reactiveSchemas);for(var c=B.next();!c.done;c=B.next())c=c.value,c.type==="signal"&&(this.mutablePropNames.add(c.propertyKey),Qo(this.signalProxy,c.propertyKey));mnO(this,this.polySiInfo,this.polySiParams.behaviors);B=_.p(this.polySiParams.reactiveSchemas);for(c=B.next();!c.done;c=B.next())c=c.value,c.type==="signal"&&c.value!==void 0&&(this.signalProxy.model[c.propertyKey]=
typeof c.value==="function"?c.value.call(this):c.value);if(this.polySiParams.signalProperties)for(B=_.p(this.polySiParams.signalProperties),c=B.next();!c.done;c=B.next()){c=c.value;var x=void 0;((x=this.__signalCache)==null?0:x.has(c))||(this.signalProxy.model[c]=void 0)}AII||kn9(this);h$q(this);B=_.p(this.polySiParams.behaviors);for(c=B.next();!c.done;c=B.next())x=void 0,(x=c.value.created)==null||x.call(this);var P;(P=this.polySiInfo.created)==null||P.call(this)};
_.a.registered=function(){var B=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var c=Object.getPrototypeOf(this);c.addReactiveSchema=function(n){B.polySiParams.reactiveSchemas.push(n)};
for(var x=_.p(this.polySiParams.behaviors),P=x.next();!P.done;P=x.next()){var Y=void 0;(Y=P.value.beforeRegister)==null||Y.call(c)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(c);c.addReactiveSchema=t4Q;x=_.p(this.polySiParams.behaviors);for(P=x.next();!P.done;P=x.next())Y=void 0,(Y=P.value.registered)==null||Y.call(c);var k;(k=this.polySiInfo.registered)==null||k.call(c)};
_.a.ready=function(){var B;(B=this.beforeReady)==null||B.call(this);AII&&kn9(this);var c;if(B=(c=this.polySiContext.finalizedTemplate)==null?void 0:c.processedTemplate){B=eA$(B.template,B.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:B.hasInsertionPoint,thisCtx:this});c=B.nodesById;B=B.root;var x=this.hostElement;var P=P===void 0?!1:P;x=(0,_.pF)(x);if(!x.attachShadow)throw Error("Cd");if(!x.shadowRoot||P)x.attachShadow({mode:"open",shadyUpgradeFragment:B}),x.shadowRoot.appendChild(B);
this.root=x.shadowRoot;this.$=c}XIy(this);P=_.p(this.polySiParams.behaviors);for(c=P.next();!c.done;c=P.next())B=void 0,(B=c.value.ready)==null||B.call(this);var Y;(Y=this.polySiInfo.ready)==null||Y.call(this)};
_.a.attached=function(){for(var B=_.p(this.polySiParams.behaviors),c=B.next();!c.done;c=B.next()){var x=void 0;(x=c.value.attached)==null||x.call(this)}var P;(P=this.polySiInfo.attached)==null||P.call(this)};
_.a.detached=function(){for(var B=_.p(this.polySiParams.behaviors),c=B.next();!c.done;c=B.next()){var x=void 0;(x=c.value.detached)==null||x.call(this)}var P;(P=this.polySiInfo.detached)==null||P.call(this)};
var sjm=function(B){for(var c=_.p(B.polySiParams.behaviors),x=c.next();!x.done;x=c.next())if(x=x.value,x.listeners)for(var P in x.listeners)RAq(B,B.hostElement,P,x.listeners[P]);if(B.polySiInfo.listeners)for(var Y in B.polySiInfo.listeners)RAq(B,B.hostElement,Y,B.polySiInfo.listeners[Y])},RAq=function(B,c,x,P,Y){B=B5q(B,P,Y);
I1(c,x,B)||c.addEventListener(x,B);return B},kn9=function(B){for(var c=_.p(B.polySiParams.reactiveSchemas),x=c.next();!x.done;x=c.next())x=x.value,x.type==="compute"||x.type==="computeWithMethod"?YAA(B.signalProxy,x,B):x.type==="redux"?sSl(B.signalProxy,x,B.store):x.type==="signal"&&x.readOnly&&gR7(B.signalProxy,x)},XIy=function(B){for(var c=_.p(B.polySiParams.reactiveSchemas),x=c.next(),P={};!x.done;P={schema$jscomp$12:void 0},x=c.next())P.schema$jscomp$12=x.value,P.schema$jscomp$12.type==="notify"?
k8Y(B.signalProxy,P.schema$jscomp$12,B.hostElement):P.schema$jscomp$12.type==="observe"?XTI(B.signalProxy,P.schema$jscomp$12,B):P.schema$jscomp$12.type==="reflect"&&B.signalProxy.effect(function(g){return function(){var k=B.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
B.reflecting=!0;mB7(B.hostElement,g.schema$jscomp$12.propertyKey,k,!0);B.reflecting=!1}}(P));
if(B.reflectedAttributes)for(c=_.p(Object.entries(B.reflectedAttributes)),P=c.next(),x={};!P.done;x={key$jscomp$881:void 0,value$jscomp$8885:void 0},P=c.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;x.key$jscomp$881=P;x.value$jscomp$8885=Y;B.signalProxy.effect(function(g){return function(){B.reflecting=!0;mB7(B.hostElement,g.key$jscomp$881,(0,g.value$jscomp$8885)(),!0);B.reflecting=!1}}(x))}};
_.a=LF.prototype;_.a._setPendingProperty=function(B,c){this.set(B,c);return!1};
_.a._enableProperties=function(){};
_.a._setPendingPropertyOrPath=function(B,c){this.notifyPath(B,c);return!1};
_.a._addPropertyEffect=function(){};
_.a._stampTemplate=function(){throw Error("Kg");};
_.a.fire=function(B,c,x){c=c===void 0?{}:c;x=x===void 0?{}:x;var P,Y,g={bubbles:(P=x.bubbles)!=null?P:!0,cancelable:!!x.cancelable,composed:(Y=x.composed)!=null?Y:!0},k;return _.aJ(wzC((k=x.node)!=null?k:this.hostElement),B,c,g)};
_.a.get=function(B,c){var x=Om(B);return c?cf7(c,x):B==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(x)};
_.a.linkPaths=function(){};
_.a.listen=function(B,c,x){B=wzC(B);this.boundListeners!=null||(this.boundListeners=new WeakMap);var P=this.boundListeners.get(B);P||(P={},this.boundListeners.set(B,P));var Y=c+x;P[Y]||(P[Y]=RAq(this,B,c,x))};
_.a.notifyPath=function(B,c){this.signalProxy.notifyPath(Om(B),arguments.length===2?{value:c}:void 0)};
_.a.canNotifyPath=function(B){return this.mutablePropNames.has(B)&&!vRl(this.signalProxy,B)};
_.a.notifySplices=function(B,c){this.signalProxy.notifySplices(Om(B),c)};
_.a.pop=function(B){var c=this.signalProxy;B=Om(B);var x=_.p(B);B=x.next().value;x=uW(x);return Qo(c,B).pop(x)};
_.a.push=function(B){var c=_.ts.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Om(B)].concat(_.wq(c)))};
_.a.set=function(B,c,x){if(x)throw Error("Lg");B==="hidden"?this.hostElement.hidden=!!c:this.signalProxy.setWithPath(Om(B),c)};
_.a.setProperties=function(B){B=_.p(Object.entries(B));for(var c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;this[c]=x}};
_.a.splice=function(B,c,x){var P=_.ts.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Om(B),c,x].concat(_.wq(P)))};
_.a.unlinkPaths=function(){};
_.a.unlisten=function(B,c,x){B=wzC(B);if(this.boundListeners){var P=this.boundListeners.get(B);if(P){x=c+x;var Y=P[x];Y&&(JJ(B,c,Y)||B.removeEventListener(c,Y),delete P[x])}}};
_.a.unshift=function(B){var c=_.ts.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Om(B)].concat(_.wq(c)))};
_.AJ.Object.defineProperties(LF.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 vT$=[Array,Boolean,Date,Number,Object,String];var yIC=!1;var zC=function(){var B=HTMLElement.apply(this,arguments)||this;B.restamp=!1;B.notifyDomChange=!1;B.JSC$11478_didCallConnected=!1;B.JSC$11478_renderDebouncer=null;B.disableTemplateUpdateSignalImpl=Zx()?void 0:_.$D(!1,void 0,"zLXz1e");var c;B.getDisableTemplateUpdate=(c=B.disableTemplateUpdateSignalImpl)==null?void 0:c[0];var x;B.setDisableTemplateUpdate=(x=B.disableTemplateUpdateSignalImpl)==null?void 0:x[1];return B};
_.w(zC,HTMLElement);var $P9=function(B){B.conditionSignalImpl!=null||(B.conditionSignalImpl=new Qt(_.$D(!1,void 0,"wcuOQ")));return B.conditionSignalImpl};
_.a=zC.prototype;_.a.showHideChildren=function(B){ny3(this,B,this.if)};
_.a.attributeChangedCallback=function(B,c,x){if(this.JSC$11478_didCallConnected)throw Error("Pg`"+B);B==="notify-dom-change"?this.notifyDomChange=x!==null:B==="restamp"&&(this.restamp=x!==null)};
_.a.debounceRender=function(){this.JSC$11478_renderDebouncer=_.s5(this.JSC$11478_renderDebouncer,l4,this.JSC$11478_renderImpl.bind(this));_.pg(this.JSC$11478_renderDebouncer)};
_.a.disconnectedCallback=function(){var B=(0,_.pF)(this).parentNode;(!B||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in B&&!B.host)&&bM9(this)};
_.a.connectedCallback=function(){var B=this;this.JSC$11478_didCallConnected=!0;fT4?GGX():this.style.display="none";this.parentSignalProxy.effect(function(){$P9(B).getWithPath([]);B.debounceRender()})};
_.a.render=function(){_.b9()};
_.a.JSC$11478_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var B=this.if;if(B){a:{var c=(0,_.pF)(this).parentNode;if(this.hasInstance()){var x=this.instance.children;if((x==null?0:x.length)&&(0,_.pF)(this).previousSibling!==x[x.length-1])for(var P=0;P<x.length;P++)(0,_.pF)(c).insertBefore(x[P],this)}else{if(!c){c=!1;break a}KxZ(this,c)}c=!0}if(!c)return}else this.restamp&&bM9(this);ny3(this,!1,B);B&&jjt(this);ibZ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.a.hasInstance=function(){return!!this.instance};
var KxZ=function(B,c){var x=B.parentSignalProxy;if(Zx()){var P=_.p(_.$D(!0,void 0,"wXzgnc"));var Y=P.next().value;P=P.next().value;x=B.parentSignalProxy}else{var g;var k=new vl((g=UPy(B))!=null?g:{},function(b){var d=Qo(B.parentSignalProxy,b).getChangeRecordSignal([]);b=_.$D(void 0,void 0,"mryEkc");var q=new Qt(b);k.effect(function(){if(B.getDisableTemplateUpdate&&!B.getDisableTemplateUpdate()){var C=d();q.notifyPath(Om(C.path),{value:C.value})}});
return q});
B.parentSignalProxy.childSignalProxies.push(k);var n=x=k}x=eA$(B.templateInfo,B.templateInfo.nodeInfoList,x,{eventListenerHost:B.eventListenerHost,hasInsertionPoint:B.templateInfo.hasInsertionPoint,thisCtx:B.eventListenerHost,enabledSignal:Zx()?Y:void 0,getModel:function(){return UPy(B)}}).root;
B.instance={root:x,children:[],hidden:!1,signalProxy:n,getTemplateUpdatesEnabled:Y,setTemplateUpdatesEnabled:P};n=_.p(x.childNodes);for(Y=n.next();!Y.done;Y=n.next())B.instance.children.push(Y.value);(0,_.pF)(c).insertBefore(B.instance.root,B)},UPy=function(B){if((B=B.parentSignalProxy.model)&&!B.hostElement){var c={},x;
for(x in B)B.hasOwnProperty(x)&&(c[x]=B[x]);return c}},bM9=function(B){if(B.instance){var c=B.instance.children;
if(c.length){var x=(0,_.pF)(c[0]).parentNode;if(x){x=(0,_.pF)(x);for(var P=0;P<c.length;P++)x.removeChild(c[P])}}Zx()?B.instance.setTemplateUpdatesEnabled(!1):B.instance.signalProxy.dispose();B.instance=void 0}},ny3=function(B,c,x){c=c||!x;
B.instance&&B.instance.hidden!==c&&(B.instance.hidden=c,SgI(c,B.instance.children))},jjt=function(B){if(Zx()){var c=B.instance;
c&&QG(B.parentSignalProxy.owner,function(){return!c.getTemplateUpdatesEnabled()})&&c.setTemplateUpdatesEnabled(!0)}else B.setDisableTemplateUpdate(!1)};
_.AJ.Object.defineProperties(zC.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var B=this;return QG(this.parentSignalProxy.owner,function(){return $P9(B).getWithPath([])})},
set:function(B){B||(Zx()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));$P9(this).setWithPath([],!!B)}}});
_.AJ.Object.defineProperties(zC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",zC);var dPt=[],Sq=function(){var B=HTMLElement.apply(this,arguments)||this;B.as="item";B.indexAs="index";B.itemsIndexAs="itemsIndex";B.targetFramerate=20;B.notifyDomChange=!1;B.isDetached=!1;B.JSC$11485_renderDebouncer=null;B.instances=[];B.chunkingId=null;B.chunkCount=null;B.shouldMeasureChunk=!1;B.shouldContinueChunking=!1;B.renderStartTime=null;B.JSC$11485_didCallConnected=!1;return B};
_.w(Sq,HTMLElement);var qJF=function(B){B.itemSignalImpl!=null||(B.itemSignalImpl=new Qt(_.$D(dPt,void 0,"YBrqgf")));return B.itemSignalImpl},CBm=function(B,c){Array.isArray(c)||(c=dPt);
qJF(B).setWithPath([],c)};
_.a=Sq.prototype;_.a.showHideChildren=function(B){for(var c=_.p(this.instances),x=c.next();!x.done;x=c.next())SgI(B,x.value.children)};
_.a.notifyPath=function(B,c){B=Om(B);B[0]==="items"&&(B.length===1?CBm(this,c):qJF(this).setWithPath(B.slice(1),c))};
_.a.canNotifyPath=function(B){return B==="items"};
_.a.attributeChangedCallback=function(B,c,x){if(this.JSC$11485_didCallConnected)throw Error("Qg`"+B);B==="as"?this.as=x:B==="index-as"?this.indexAs=x:B==="items-index-as"?this.itemsIndexAs=x:B==="initial-count"?this.initialCount=Number(x):B==="notify-dom-change"?this.notifyDomChange=x!==null:B==="target-framerate"&&(this.targetFramerate=Number(x))};
_.a.disconnectedCallback=function(){this.isDetached=!0;for(var B=0;B<this.instances.length;B++)hf0(this,B);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.a.connectedCallback=function(){var B=this,c=qJF(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Y=c(),g=Om(Y.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")B.debounceRender();else{var k=g[0];if(k=B.instances[typeof k==="string"?Math.floor(Number(k)):k])g=[B.as].concat(_.wq(g.slice(1))),k.signalProxy.notifyPath(g,Y)}});
this.JSC$11485_didCallConnected=!0;fT4?GGX():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var x=(0,_.pF)((0,_.pF)(this).parentNode),P=0;P<this.instances.length;P++)x.insertBefore(this.instances[P].root,this);this.chunkingId&&this.render()}};
_.a.debounceRender=function(){this.JSC$11485_renderDebouncer=_.s5(this.JSC$11485_renderDebouncer,l4,this.JSC$11485_renderImpl.bind(this));_.pg(this.JSC$11485_renderDebouncer)};
_.a.render=function(){this.debounceRender();_.b9()};
_.a.JSC$11485_renderImpl=function(){var B=this,c=this.items,x=mPF(this,c.length);TT9(this,c,x);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){B.chunkingId=null;if(B.shouldMeasureChunk){var P=performance.now()-B.renderStartTime;B.chunkCount=Math.round(Math.ceil(1E3/B.targetFramerate)/P*B.chunkCount)||1}B.shouldContinueChunking&&B.debounceRender()}));
ibZ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var mPF=function(B,c){var x=c,P=B.instances.length;if(B.initialCount){if(B.chunkCount){var Y=Math.min(Math.max(c-P,0),B.chunkCount);x=Math.min(P+Y,c)}else x=Math.min(c,B.initialCount),Y=Math.max(x-P,0),B.chunkCount=Y||1;B.shouldMeasureChunk=Y===B.chunkCount;B.shouldContinueChunking=x<c;B.renderStartTime=performance.now()}return x},TT9=function(B,c,x){for(var P=0;P<x;P++){var Y=B.instances[P],g=c[P];
Y?(Y.signalProxy.setWithPath([B.as],g),Y.signalProxy.setWithPath([B.indexAs],P)):VYt(B,g,P)}for(c=B.instances.length-1;c>=P;c--)x=B,Y=c,hf0(x,Y),_.p(x.instances.splice(Y,1)).next().value.signalProxy.dispose()},hf0=function(B,c){B=B.instances[c];
c=(0,_.pF)(B.root);for(var x=0;x<B.children.length;x++)c.appendChild(B.children[x])},VYt=function(B,c,x){var P={};
c=Object.assign({},tYn(B),(P[B.as]=c,P[B.indexAs]=x,P[B.itemsIndexAs]=x,P));var Y=new vl(c,function(k){if(k!==B.as&&k!==B.indexAs){if(k===B.itemsIndexAs)return Qo(Y,B.indexAs);var n=Qo(B.parentSignalProxy,k).getChangeRecordSignal([]);k=_.$D(void 0,void 0,"Mu2Bwb");var b=new Qt(k);Y.effect(function(){var d=n();b.notifyPath(Om(d.path),{value:d.value})});
return b}});
B.parentSignalProxy.childSignalProxies.push(Y);P=eA$(B.templateInfo,B.templateInfo.nodeInfoList,Y,{eventListenerHost:B.eventListenerHost,getModel:function(){var k={};return Object.assign({},tYn(B),(k[B.as]=Y.model[B.as],k[B.indexAs]=Y.model[B.indexAs],k[B.itemsIndexAs]=Y.model[B.indexAs],k))},
hasInsertionPoint:B.templateInfo.hasInsertionPoint,thisCtx:B.eventListenerHost,methodInvocationRequirement:uKn,enabledSignal:B.stampingEnabled}).root;c={root:P,children:[],signalProxy:Y};P=_.p(P.childNodes);for(var g=P.next();!g.done;g=P.next())c.children.push(g.value);P=(P=B.instances[x+1])?P.children[0]:B;(0,_.pF)((0,_.pF)(B).parentNode).insertBefore(c.root,P);B.instances[x]=c},tYn=function(B){if((B=B.parentSignalProxy.model)&&!B.hostElement){var c={},x;
for(x in B)B.hasOwnProperty(x)&&(c[x]=B[x]);return c}};
Sq.prototype.itemForElement=function(B){var c=this,x=this.instances.find(function(P){return P.children.includes(B)});
if(x)return QG(this.parentSignalProxy.owner,function(){return x.signalProxy.getWithPath([c.as])})};
Sq.prototype.indexForElement=function(B){var c=this.instances.findIndex(function(x){return x.children.includes(B)});
return c>=0?c:void 0};
_.AJ.Object.defineProperties(Sq.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var B=this;return QG(this.parentSignalProxy.owner,function(){return qJF(B).getWithPath([])})},
set:function(B){CBm(this,B)}},
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}}});
_.AJ.Object.defineProperties(Sq,{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",Sq);var wIS,NT4;_.GC=new _.BL("STATE_STORE_TOKEN");wIS=new _.BL("SELECT_TOKEN");NT4=new _.BL("DISPATCH_TOKEN");var ibd={getSelectFn:function(){var B;return(B=_.cp().resolve(_.Bp(wIS)))!=null?B:M4q},
getDispatchFn:function(){var B;return(B=_.cp().resolve(_.Bp(NT4)))!=null?B:_.HW().dispatch.bind(_.HW())},
getAppStore:function(){return _.cp().resolve(_.GC)}},LfX,fTx=!1;var Dx={traceAllComponents:_.T("web_tracing_all_components"),exportToCsi:_.T("web_tracing_export_to_csi"),exportBreadcrumbs:_.T("web_enable_tracing"),bufferSize:_.Yu("web_max_tracing_events"),enabledSpansArray:_.gr("web_tracing_enabled_spans")};var BTx=function(){};var rIA=void 0;var ICd=function(){};
ICd.prototype.hasAttribute=function(B){if(B==="dir")return!1;if(B==="disable-upgrade"){var c,x;return(x=(c=this.hostElement)==null?void 0:c.hasAttribute("disable-upgrade"))!=null?x:!1}throw Error("Rg`"+B);};
ICd.prototype.attributeChangedCallbackWrapper=function(B,c,x){if(B==="disable-upgrade"&&this.__isUpgradeDisabled&&x===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var P;((P=this.hostElement)!=null?P:this).isConnected&&this.connectedCallback()}else c===x||this.__isReflecting||this.attributeChangedCallback(B,c,x)};
ICd.prototype.getExtraMethodsToForward=function(){for(var B=this,c=[],x=_.p(J8W),P=x.next(),Y={};!P.done;Y={tagName$jscomp$53:void 0,name$jscomp$532:void 0},P=x.next())Y.name$jscomp$532=P.value,P=void 0,Y.name$jscomp$532==="_setPendingProperty"?(Y.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),P=function(g){return function(k,n,b){TZ(g.tagName$jscomp$53,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return B._setPendingProperty(k,n,b)}}(Y)):P=function(g){return function(){return B[g.name$jscomp$532].apply(B,
_.wq(_.ts.apply(0,arguments)))}}(Y),c.push([Y.name$jscomp$532,
P]);return c};
for(var PBq=aCW(YJ5((0,_.Tg)(ICd))),sjq=["disabled","disable-upgrade"],Wxd=(0,_.Tg)(function(){}),lCZ=new Set(Object.getOwnPropertyNames(Wxd.prototype)),nyl=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.wq(lCZ))),knC=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),J8W=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),EyF=new Set([].concat(_.wq(knC),_.wq(J8W),_.wq(lCZ))),OMW=_.p(EyF),oyd=OMW.next();!oyd.done;oyd=OMW.next())ESw.add(oyd.value);var $PC={created:function(){h$q(this);this.initializeInjection()}};var mPI=!1,cH=window.ShadyDOM,WxO=["appendChild","insertBefore","removeChild","replaceChild"],J8w=[Node];cH&&J8w.push(cH.Wrapper);var FxA,vyQ,y8l={};var Y0=new Set,x0="",Gnl="";var PH,am=new Set;var DPA=new Set("context didCallReady is info params signalProxy".split(" ")),Rf7="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),efo="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Qjy=$d({entities:e57}),FxS=new Am(Qjy);var vyI=function(){return _.dM.apply(this,arguments)||this};
_.w(vyI,_.dM);_.AJ.Object.defineProperties(vyI.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return FxS}}});
_.L([_.qi()],vyI);_.M4=[OQ.prototype,vyI.prototype];_.Ly={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var B=this,c={};setTimeout(function(){var x;return _.aJ((x=B.hostElement)!=null?x:B,"yt-live-chat-add-tooltip-target",c)},0);
this.handler_=c.handler},
detached:function(){if(this.handler_){var B;this.handler_.removeElementFromSupportingTooltips((B=this.hostElement)!=null?B:this)}this.handler_=null}}};_.nL=new _.BL("ICON_MANAGER_TOKEN");var zfn=[48,20,18,16,15,13,12],mI7=new Map,jnC=new Set,ns7=new Set,KR7=new Set,$IQ=new Set,bsx=new Set,dIX=new Promise(function(B){var c=!1,x=!1,P=!1,Y=[],g=function(k){if("detail"in k)if(k=k.detail,k.name==="yt-icons")UI$(k),c=!0;else if(k.name==="yt-sys-icons")UI$(k),x=!0;else{var n;((n=k.name)==null?0:n.includes("yt-sys-icons"))&&k.size!==24&&(UI$(k,!0),Y.push(k.size),Y.length===zfn.length&&(P=!0))}c&&x&&P&&(window.removeEventListener("iron-iconset-added",g),B())};
window.addEventListener("iron-iconset-added",g)}),ClA=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"]]);_.Z5={};_.Z5.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.iG,computeHref_:function(B,c){c=c===void 0?!1:c;if(!B||B.commandExecutorCommand)return null;var x=QmQ(B,c);return c||x!==null?x?_.T("enable_polymer_resin")?_.Tz(x).toString():x:null:(_.Ob(new _.mc("computeHref was null",this.is,B)),null)},
computeOptionalHref_:function(B){return this.computeHref_(B,!0)},
computeNofollow_:function(B){return B?wH7(B)?"nofollow":null:null},
computeIcon_:function(B){return B&&B.iconType?_.$0(B.iconType):""},
resolveCommand:function(B,c,x){c=c===void 0?{}:c;return _.KL(B,this.hostElement,c,x===void 0?!1:x)}};var y83,Hl;_.SJy={};y83=null;
Hl={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_=U3x(this.viewroot));_.Sr(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var B=this;this.unobserve_();if(_.T("kevlar_vimio_use_shared_monitor"))NeI(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 c=[];this.visibilityOptionVisible_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=c}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Te7(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 B=_.QE(this.parentNode,function(x){var P,Y=(P=x.polymerController)!=null?P:x;return!!Y.getVisibilityObserverForChild&&Y.getVisibilityObserverForChild()},!0);
if(B){var c;this.localVisibilityObserver_=((c=B.polymerController)!=null?c:B).getVisibilityObserverForChild()}else y83||(y83=U3x()),this.localVisibilityObserver_=y83;return this.localVisibilityObserver_},visibilityCallback:function(B){B?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.T("kevlar_use_vimio_behavior")||(Hl={});Hl&&!_.T("kevlar_use_vimio_behavior")&&(delete Hl.attached,delete Hl.detached);_.SJy.YtVisibilityObserverBehavior=[Hl];var Gn3={};Gn3.YtVisualElementBehavior=[_.SJy.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.T("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var B=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportShown(this,void 0,B)}},
onHidden:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.T("kevlar_vimio_use_shared_monitor")){var B=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportHidden(this,void 0,B)}},
getVisibilityLogger:function(){return _.T("kevlar_use_vimio_behavior")?_.UL():null},
shouldSkipLogging:function(){if(_.v5("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var B=this.getParentRenderer&&this.getParentRenderer();if(!B)return!1;var c,x=(c=B.polymerController)!=null?c:B;if(!x.data)return!1;B=this.data.trackingParams;B=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:B;var P;c=(P=x.data)==null?void 0:P.trackingParams;var Y,g;c=((Y=x.data)==null?0:Y.loggingDirectives)?(g=x.data)==null?void 0:g.loggingDirectives.trackingParams:c;return B&&c&&B===
c}}];var WRX=new Map,tX;var hpq=function(B){this.layer=B},oF=function(B){return B.layer!==void 0?B.layer:B.parent?oF(B.parent):B.layer=0};var FRY;_.R={};FRY=0;_.R.YtRendererBehavior=[_.Z5.YtComponentBehavior,Gn3.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_:_.T("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var B,c;(c=(B=this.monitorScrollElement)!=null?B:this.hostElement)==null||c.removeEventListener("scroll",_.$9(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();IGl(this.hostElement);RAm(_.wk(),this.hostElement);ug.delete(this.hostElement)},
registerRenderer:function(B){var c;((c=B.polymerController)!=null?c:B).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(B),this.markDirty())},
unregisterRenderer_:function(B){this.useVimio_||(this.childCache_.delete(B),this.markDirty())},
attached:function(){var B=this,c=this.getParentRenderer();if(c){var x,P,Y;(P=(x=(Y=c.polymerController)!=null?Y:c).registerRenderer)==null||P.call(x,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,k;(k=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||k.addEventListener("scroll",_.$9(this,this.onScroll))}_.EE.addJob(function(){lGl(B.hostElement)},8);
x=new hpq(this.screenLayer||void 0);(c=ug.get(c))&&c.layerNode&&(x.parent=c.layerNode);c={};tVQ(this.hostElement,(c.isRenderer=!0,c.layerNode=x,c[mdl]=this.data,c))},
getParentRenderer:function(){for(var B=this.hostElement.parentNode,c,x;B&&((c=ug.get(B))==null||!c.isRenderer)&&!((x=B.polymerController)!=null?x:B).isRenderer_;)B=B.parentNode||B.host;return B},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.T("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.zu("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.T("debug_web_ve_data")&&this.data.trackingParams){var B="";try{B=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(x){_.lb(x)}if(B){var c=rJ7(B,1);c!==void 0&&(this.hostElement.dataset.veIndex=String(c));B=rJ7(B,2);
B!==void 0&&(this.hostElement.dataset.ve=String(B))}}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,_.T("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.VF(this.data.loggingDirectives.trackingParams)),this.visualElement=_.dX(_.q_(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var B=this.data.targetId;_.Bo4(_.wk(),B,this.hostElement)}else RAm(_.wk(),this.hostElement)},
onScroll:function(){var B=Date.now();B-this.lastHandledScroll_<50||(this.lastHandledScroll_=B,this.markDirty())},
markDirty:function(){_.T("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():vsw(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var B=this.getParentRenderer();if(B&&(B=ug.get(B))&&B.layerNode)return oF(B.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.wq(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var B=0;B<this.data.impressionEndpoints.length;B++)this.sendImpression(this.data.impressionEndpoints[B]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(B){B.clickTrackingParams&&delete B.clickTrackingParams;var c,x;(B==null?0:(c=B.commandMetadata)==null?0:(x=c.webCommandMetadata)==null?0:x.sendPost)?_.kC(this.hostElement,[B,{impression:!0}]):_.XX(this.hostElement,[B],this.hostElement)},
logExplicitClick:function(B){var c=_.Wf(this.getScreenLayer());if(c){var x,P=(x=B.polymerController)!=null?x:B;B=P.visualElement;P=P.trackingParams||P.clickTrackingParams;!B&&P&&(B=_.VF(P));B&&_.fW(c,B)}}}];var MYI={},fy=function(){return _.dM.apply(this,arguments)||this};
_.w(fy,_.dM);fy.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
fy.prototype.onPdgItemBehaviorClick=fy.prototype.onPdgItemBehaviorClick;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fy.prototype,"data",void 0);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],fy.prototype,"onPdgItemBehaviorClick",null);_.L([_.qi()],fy);MYI.YtPdgLiveChatItemBehavior=[fy.prototype,_.R.YtRendererBehavior];var LxQ;var ZMW;_.i3={};_.i3.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var A2=function(){var B=DF.apply(this,arguments)||this;B.switchTemplateAtRegistration=!1;return B};
_.w(A2,DF);A2.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||GYA(this),_.jpo(this,"doRender"),this.doRender())};
A2.prototype.debounceRender=function(){this.templatingFn&&_.yo(this,"doRender",this.doRender)};
A2.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.lb(Error("ah"))};
A2.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.L([bCY()],A2);var HM4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,u3={},HsO=(u3[1]={filterString:null,isUnwrappable:null,unwrap:null},u3[2]={filterString:function(B,c,x){return sy(x)},
isUnwrappable:function(B){return B instanceof Js},
unwrap:function(B){return lV(B)}},u3[3]={filterString:function(B,c,x){return HM4.test(x)?x:m7.toString()},
isUnwrappable:function(B){return jT(B)},
unwrap:function(B){return _.UG(B)}},u3[4]={filterString:function(){return m7.toString()},
isUnwrappable:function(B){return B instanceof p6},
unwrap:function(B){return _.X_(B).toString()}},u3[5]={filterString:function(B,c,x){return x},
isUnwrappable:function(B){return typeof B==="string"},
unwrap:function(B){return B.toString()}},u3[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(B){return B instanceof _.zz},
unwrap:function(B){return yc(B)}},u3[8]={filterString:function(B,c,x){x=String(x).toLowerCase();
return sxC(B,c,x)?x:"zClosurez"},
isUnwrappable:null,unwrap:null},u3[10]={filterString:null,isUnwrappable:null,unwrap:null},u3);D6[yG["default"]]=is$;var Al$=[];var kao=DIA("A"),X2C=DIA("BUTTON"),wV=DIA("DIV"),$Jo=DIA("LABEL");(function(){var B=rb;rb=function(c){B==null||B(c);JX(function(){for(var x=0;x<c.length;x++)uAx(c[x])})}})();var fC3=function(){var B=_.dM.apply(this,arguments)||this;B.hasUnmounted=!1;return B};
_.w(fC3,_.dM);_.a=fC3.prototype;_.a.beforeRegister=function(){var B=this.doIdomRender;this.templatingFn?_.lb(Error("$g")):(this.templatingFn=B,this.switchTemplateAtRegistration=!0,ZsC(this))};
_.a.attached=function(){};
_.a.detached=function(){uAx(this.hostElement)};
_.a.renderIdom=function(){throw Error("ch");};
_.a.doIdomRender=function(){var B=this;iLX(this.hostElement,function(){B.renderIdom()})};
_.L([_.qi()],fC3);var iMt=[A2.prototype,fC3.prototype];var A8Z,uq4=function(){return A8Z!==void 0?A8Z:A8Z=document.createElement("template")};
document.head.appendChild(uq4().content);var DPS;var r84,Rf0=function(){return r84!==void 0?r84:r84=document.createElement("template")};
document.head.appendChild(Rf0().content);var efn;var Bem=document.head,clW=Bem.appendChild,xIy;if(efn===void 0){var Pl5=document.createElement("template");_.I(Pl5,"\x3c!--css-build:shady--\x3e");Pl5.content.insertBefore(Rf0().content.cloneNode(!0),Pl5.content.firstChild);efn=Pl5}xIy=efn;clW.call(Bem,xIy.content);var Yo0,aGS=function(){return Yo0!==void 0?Yo0:Yo0=document.createElement("template")};
document.head.appendChild(aGS().content);var gsm;var sn0=document.head,pd3=sn0.appendChild,kYW;if(gsm===void 0){var XdF=document.createElement("template");_.I(XdF,"\x3c!--css-build:shady--\x3e");XdF.content.insertBefore(aGS().content.cloneNode(!0),XdF.content.firstChild);gsm=XdF}kYW=gsm;pd3.call(sn0,kYW.content);var $II=document.head,ns5=$II.appendChild,bs4;if(DPS===void 0){var KR0=document.createElement("template");_.I(KR0,"\x3c!--css-build:shady--\x3e");KR0.content.insertBefore(uq4().content.cloneNode(!0),KR0.content.firstChild);DPS=KR0}bs4=DPS;ns5.call($II,bs4.content);var jn9,UIy=function(){return jn9!==void 0?jn9:jn9=document.createElement("template")};
document.head.appendChild(UIy().content);var dIt;_.fL=new _.BL("DARK_THEME_TOKEN");var Gc7=new _.A("accessibilityProperties");var ywq=new _.A("layoutProperties");var M97=new _.A("imageType");var qoF={};if("ytAttributedStringLinkHoverColor"in qoF)throw Error("fh`ytAttributedStringLinkHoverColor");(function(B,c){qoF[B]="value"in c&&"unit"in c?cw$(B,c):function(x){try{return c(x)}catch(P){throw Error("dh`"+B+"`"+P.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ClS=function(B){var c=this;this.holdTime=B===void 0?500:B;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(x){var P=new CustomEvent("LONG_PRESS"),Y;(Y=x.changedTouches[0].target)==null||Y.dispatchEvent(P)};
this.ontouchstart=function(x){c.longPressTimeout=_.Nv(_.EE,function(){c.onlongpress(x);c.longPressOccurred=!0},c.holdTime)};
this.ontouchmove=function(){_.EE.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!0};
this.ontouchend=function(x){if(c.longPressTimeout&&!c.longPressOccurred&&!c.moveOccurred){var P;(P=x.changedTouches[0].target)==null||P.dispatchEvent(new Event("click"))}_.EE.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!1}};var T4I=function(B,c){ClS.call(this,c);var x=this;this.callback=B;this.onlongpress=function(P){var Y;(Y=x.callback)==null||Y.call(x,P)}};
_.w(T4I,ClS);var V9o=function(B,c){var x=Object.assign({},c);B=_.p(new Map([["ontouchstart",B.ontouchstart],["ontouchend",B.ontouchend],["ontouchmove",B.ontouchmove]]));for(var P=B.next(),Y={};!P.done;Y={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},P=B.next()){var g=_.p(P.value);P=g.next().value;g=g.next().value;Y.eventName$jscomp$85=P;Y.eventHandler$jscomp$1=g;c[Y.eventName$jscomp$85]=function(k){return function(n){var b;(b=x[k.eventName$jscomp$85])==null||b.call(x,n);(0,k.eventHandler$jscomp$1)(n)}}(Y)}};_.xu=new _.BL("COMMAND_HANDLER_TOKEN");var PNd=new _.A("parallelCommand");var gmI=new _.A("performOnceCommand");var akC=new _.A("serialCommand");var s5d=void 0;var hyn=function(){this.data=[];this.consumer=null};
hyn.prototype.push=function(B){this.consumer?this.consumer(B):this.data.push(B)};var YE={};_.$D(YE,void 0,"sgPmTd");_.$D(null,void 0,"jypsq");var gAY=new hyn;var j5Y=[d$q,q1d,CfA,m$q,hnd,U$d,TwY,V7q];var zXO=new _.A("bracketTextDecorator");var Z9=new _.A("highlightTextDecorator");_.AX=new _.BL("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var O7A=function(){},mI5;
(mI5=window.requestIdleCallback)==null||mI5.bind(window);var Q5C={calledOnce:!1,state:"visible"},omQ={calledOnce:!1,state:"hidden"};var Te5=new _.BL("ICON_WIZ_COMPONENT_TOKEN");_.Vf=_.rM(function(B){var c=B.icon;var x=B.active;var P=B.className;var Y=B.style;var g=B.dataSelected;var k=B.dataDisabled;var n=B.role;var b=B.animateIcon;var d=B.themeOverride;var q=B.ariaHidden;var C=B.ariaExpanded;var h=B.ariaLabel;var V=B.tabindex;var N=B.id;var l=B.size;var E=B.iconFilter;return _.U(_.m,{cond:c,then:function(){var S=_.cp().resolve(Te5);return _.U(S,{icon:c,dataSelected:g,dataDisabled:k,animateIcon:b,themeOverride:d,ariaExpanded:C,tabindex:V,id:N,active:x,size:l,role:n,className:P,
ariaHidden:q,ariaLabel:h,style:function(){return Y!=null&&Y()||l==null||!l()?Y==null?void 0:Y():"width: "+(l==null?void 0:l())+"px;height: "+((l==null?void 0:l())+"px;")},
iconFilter:E})}})},"b");
_.Vf.idomCompat=!0;var YzY=window.devicePixelRatio||1;var p07=new Map([["yt_outline_bag_black_24","bag"]]);var D5=function(B){var c=this;this.margin=.1;this.whenInViewportWithMargin=B;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){c.requestScan()});
window.addEventListener("touchend",function(){c.requestScan()});
window.addEventListener("updateui",function(){c.requestScan()});
var x=new _.eA((0,_.wf)(this.requestScan,this),100);window.addEventListener("scroll",function(){x.fire()},!0);
window.addEventListener("resize",(0,_.wf)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){c.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.wf)(this.requestScan,this))};
D5.prototype.observe=function(B){this.observationTargets.includes(B)||this.observationTargets.push(B)};
D5.prototype.unobserve=function(B){this.observationTargets=this.observationTargets.filter(function(c){return c!==B})};
D5.prototype.requestScan=function(){var B=this;this.scanRequested||(JX(function(){VLI(B)}),this.scanRequested=!0)};
var VLI=function(B){var c=(1+B.margin)*(document.documentElement.clientHeight||window.innerHeight);B.observationTargets=B.observationTargets.filter(function(x){var P=x.getBoundingClientRect();(P=c>P.top&&!!P.height)&&B.whenInViewportWithMargin(x);return!P&&x.parentNode});
B.scanRequested=!1};
D5.prototype.disconnect=function(){this.observationTargets=[]};var tLt,NeF;tLt=_.p(_.$D(bid(),void 0,"O3X2wd"));_.wdS=tLt.next().value;NeF=tLt.next().value;window.addEventListener("resize",function(){NeF(bid())});var IG3={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Jl0=void 0,WRt=window.innerWidth,lG3=window.innerHeight;window.addEventListener("resize",function(){Jl0=void 0});var Esy;if("IntersectionObserver"in window)Esy=U5$();else{if(Jl0===void 0){var Osn;Osn="matchMedia"in window?window.matchMedia(IG3.landscape+","+IG3.portrait).matches:void 0;Jl0=Osn!==void 0?Osn:WRt>=930&&lG3>=550||WRt>=550&&lG3>=930}Esy=Jl0?{observe:function(B){JX(function(){var c;(c=B.onViewportEntered)==null||c.call(B)})},
unobserve:function(){}}:new D5(function(B){JX(function(){var c;
(c=B.onViewportEntered)==null||c.call(B)})})}var K9C=Esy;var osn=_.rM(function(B){var c=!1,x=_.Ho("img",function(P){_.lP(function(){c=!0;P.onload=null})});
_.IO(function(){var P,Y=(P=B.data)==null?void 0:P.call(B),g,k=(g=B.getSrc)==null?void 0:g.call(B).cb,n;P=(n=B.config)==null?void 0:n.call(B);if(n=x.value)if(g=function(d,q){if(!c)return k?k(d,q):d},CQ7(n,P),_.T("web_image_dont_reload_same_src")&&qzO(n,Y,g))_.T("web_image_dont_reload_same_src_simulate_load")&&n.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var b;d5l(n,Y||null,g,P,(b=B.lazy)==null?void 0:b.call(B))}},"v0I2p");
return _.U("img",{el:x})},"c");
osn.idomCompat=!0;_.D9=_.rM(function(B){var c=function(){var x,P=B.data(),Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI,Ul,wC,W$,El,H$,yw,r9,cs;var NQ={contentMode:(Y=B.contentMode)==null?void 0:Y.call(B),loadedClass:(g=B.loadedClass)==null?void 0:g.call(B),isPreloaded:(k=B.isPreloaded)==null?void 0:k.call(B),notifyOnLoaded:(n=B.notifyOnLoaded)==null?void 0:n.call(B),notifyOnUnloaded:(b=B.notifyOnUnloaded)==null?void 0:b.call(B),preferredThumbnail:(d=B.preferredThumbnail)==null?void 0:d.call(B),preserveHeight:(q=B.preserveHeight)==
null?void 0:q.call(B),preserveWidth:(C=B.preserveWidth)==null?void 0:C.call(B),objectPosition:(h=B.objectPosition)==null?void 0:h.call(B),targetWidth:(V=B.targetWidth)==null?void 0:V.call(B),targetHeight:(N=B.targetHeight)==null?void 0:N.call(B),shouldShowPlaceholder:(l=B.shouldShowPlaceholder)==null?void 0:l.call(B),useWidth:(E=B.useWidth)==null?void 0:E.call(B),isToggled:(S=B.isToggled)==null?void 0:S.call(B),alt:(M=B.alt)==null?void 0:M.call(B),className:(f=B.className)==null?void 0:f.call(B),
onerror:B.onerror,onload:B.onload,style$:((Z=B.style$)==null?void 0:Z.call(B))||((u=B.style)==null?void 0:u.call(B)),color:(e=B.color)==null?void 0:e.call(B),width:(px=B.width)==null?void 0:px.call(B),height:(kI=B.height)==null?void 0:kI.call(B),"aria-hidden$":(r9=(Ul=B["aria-hidden$"])==null?void 0:Ul.call(B))!=null?r9:(wC=B.ariaHidden)==null?void 0:wC.call(B),draggable:(W$=B.draggable)==null?void 0:W$.call(B),"data-disabled$":(cs=(El=B["data-disabled$"])==null?void 0:El.call(B))!=null?cs:(H$=B.dataDisabled)==
null?void 0:H$.call(B),size:(yw=B.size)==null?void 0:yw.call(B)};return T1$(P,NQ,(x=B.hideOn404)==null?void 0:x.call(B))};
return _.U(_.tR,null,_.U(_.Tu,{when:function(){var x;return((x=c())==null?void 0:x.type)==="image"}},function(){return _.U(osn,{data:function(){return c().image},
getSrc:{cb:function(x,P){var Y=c().image.sources,g=c().config.isPreloaded,k=c().config.useWidth,n=c().config.targetWidth,b=c().config.targetHeight,d=c().config.preferredThumbnail;return _.ahI(P,Y,g,k,n,b,d)||""}},
config:function(){var x=c().config,P;for(P in x)x[P]===void 0&&delete x[P];return x},
lazy:B.renderLazy})}),_.U(_.Tu,{when:function(){var x;
return((x=c())==null?void 0:x.type)==="icon"}},function(){return _.U(_.Vf,{icon:function(){return c().iconName},
role:function(){return c().config.role},
className:function(){return c().config.className},
style:function(){return c().config.style$+";width: "+(c().config.width+"px;height: ")+(c().config.height+"px;color: ")+(c().config.color+";")},
ariaLabel:function(){return c().config["aria-label$"]},
ariaHidden:function(){return c().config["aria-hidden$"]},
dataDisabled:function(){return c().config["data-disabled$"]},
active:function(){return c().config.isToggled},
size:function(){return c().config.size}})}))},"d");
_.D9.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Qnd=function(B){return function(c){return _.U(Xwd,null,function(){var x=c.data(),P=_.Ox(c.config);return _.U(AP,null,function(){return void B(x,P)})})}}(N17),tuA=_.rM(function(B){var c=function(P){var Y,g=_.Rm(function(h){Y=Ex(function(){for(var V=_.p(q()),N=V.next();!N.done;N=V.next()){N=Ihq(N.value);
N=typeof N==="string"?document.createTextNode(N):N;if(!(N instanceof Node)){V=new _.mc("Part is not a node",N,typeof N);_.lb(V);break}h.appendChild(N)}})}),k=e_(function(){return Z7d(P())},{isEqual:Vu7}),n=_.A9(B.config),b=function(){var h,V=k();
return!((h=n())==null||!h.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0)},d=e_(n,{isEqual:W9$}),q=function(){var h=LI7(k(),d());
fkl(h,d());return k().content?RXC(k().content,h).parts:[]},C=!0;
_.IO(function(){k();d();if(C)C=!1;else{var h=q();Promise.resolve().then(function(){var V=g.value;if(V){V.innerText="";var N;(N=Y)==null||N();Y=_.It(V,function(){return _.U(JNX,{parts:h})})}})}},"YlhjWd");
return _.U("span",{el:g,class:function(){return k()&&JwY(k(),n())},
dir:function(){var h;return((h=n())==null?0:h.userInput)?"auto":void 0},
"aria-label":function(){var h;return b()?(h=n())==null?void 0:h.ariaLabel:void 0},
role:function(){return b()?"text":void 0}})},x;
return((x=B.config)==null?0:x.renderedFromFormattedString)?c(B.text):_.U(_.m,{cond:B.text,then:c})},"e");
tuA.idomCompat=!0;_.RF=_.rM(function(B){var c=_.A9(B.text),x=lhC(B);B.renderedFromFormattedString!==void 0&&(x.renderedFromFormattedString=!0);return _.T("attr_string_reactive")?_.U(tuA,{text:c,config:x}):_.U(_.m,{cond:function(){var P;return c()&&((P=Z7d(c()))==null?void 0:P.content)},
then:function(){return _.U(Qnd,{data:B.text,config:x})},
debugInstance:"Apcuac"})},"f");
_.RF.idomCompat=!0;var OiX=function(B,c,x){c=c===void 0?"unknown":c;x=x===void 0?{}:x;_.mc.call(this,B+" ("+c+")",Object.assign({},{name:"YtWcwError",tagName:c},x));Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(OiX,_.mc);_.SzQ=new WeakMap;_.zG$=!1;var vBI,yNd,F9d;_.rk=Symbol("hh");_.cw=Symbol("ih");vBI=Symbol("jh");yNd=new Set(Object.getOwnPropertyNames(Element.prototype));F9d=Symbol("kh");var FRQ=_.rM(function(B){return _.U("yt-attributed-string",{"aria-label":B.ariaLabel,hidden:B.hidden,id:B.id,class:B.className,"force-default-style":B.forceDefaultStyle},_.U(_.RF,{text:B.data,ariaLabel:B.ariaLabel,ellipsisTruncate:B.ellipsisTruncate,isOverlay:B.isOverlay,linkInheritColor:B.linkInheritColor,noPreWrap:B.noPreWrap,noWrap:B.noWrap,userInput:B.userInput,noEndpoints:B.noEndpoints,headerRuns:B.headerRuns}))},"g");
_.T("web_wiz_attributed_string")&&_.xU(FRQ,"yt-attributed-string",{props:{ariaHidden:_.rk,ariaLabel:_.rk,className:_.rk,ellipsisTruncate:_.rk,isOverlay:_.rk,linkInheritColor:_.rk,noEndpoints:_.rk,noStyleRuns:_.rk,noLinkColor:_.rk,noPreWrap:_.rk,noWrap:_.rk,skipOnClick:_.rk,userInput:_.rk,headerRuns:_.rk,id:_.rk,data:_.rk,hidden:_.rk,forceDefaultStyle:_.rk,text:_.cw,stopPropagation:_.cw,disableUpgrade:_.cw,disable:_.cw,slot:_.cw}});var R$=function(){return _.z.apply(this,arguments)||this};
_.w(R$,_.z);R$.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},N17(this.data,this.config))};
_.L([_.J(iMt),_.H("design:type",Object)],R$.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],R$.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R$.prototype,"ariaLabel",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"disable",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"ellipsisTruncate",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"isOverlay",void 0);
_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"linkInheritColor",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"noPreWrap",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"noWrap",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"userInput",void 0);_.L([_.F(),_.H("design:type",Boolean)],R$.prototype,"noEndpoints",void 0);_.L([_.F(),_.H("design:type",Array)],R$.prototype,"headerRuns",void 0);
_.L([_.Em({is:"yt-attributed-string",disableElementRegistration:!0})],R$);
_.T("web_wiz_attributed_string")||_.G(R$,"yt-attributed-string",function(){if(dIt===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
B.content.insertBefore(UIy().content.cloneNode(!0),B.content.firstChild);dIt=B}B=dIt;return B},{mode:2});var vsW,zyS,iiX;vsW=function(){this.firstThumbnailLoaded=!1};
_.Som=function(){zyS||(zyS=new vsW);return zyS};
iiX=function(B){var c=_.Som();c.firstThumbnailLoaded||(c.firstThumbnailLoaded=!0,_.Op("ftl",B))};
vsW.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Mu7=0,fh$=new WeakMap,ZiX=0,a2=new Set;var yln,GYS=function(){return yln!==void 0?yln:yln=document.createElement("template")};
document.head.appendChild(GYS().content);var ML5;var rNX,eGX,eq;_.pw=_.xI.caches;eq=function(){};
eq.prototype.open=function(B){return _.pw.open(LRF(B))};
eq.prototype.has=function(B){return _.pw.has(LRF(B))};
eq.prototype.delete=function(B){return _.pw.delete(LRF(B))};
eq.prototype.match=function(B,c){var x=this,P,Y,g,k,n,b;return _.X(function(d){switch(d.nextAddress){case 1:return _.K(d,x.keys(),2);case 2:P=d.yieldResult,Y=_.p(P),g=Y.next();case 3:if(g.done){d.jumpTo(5);break}k=g.value;return _.K(d,x.open(k),6);case 6:return n=d.yieldResult,_.K(d,n.match(B,c),7);case 7:if(b=d.yieldResult)return d.return(b);g=Y.next();d.jumpTo(3);break;case 5:return d.return()}})};
var Bmw=function(){};
_.w(Bmw,eq);var LRF=function(B){if(B.includes(":"))throw Error("nh`"+B);return B+":"+_.CU("CacheStorage get")};
Bmw.prototype.keys=function(){var B,c,x,P,Y,g,k,n,b;return _.X(function(d){if(d.nextAddress==1)return B=[],c=_.CU("CacheStorage keys"),_.K(d,_.pw.keys(),2);x=d.yieldResult;P=_.p(x);for(Y=P.next();!Y.done;Y=P.next())g=Y.value,k=_.D5d(g),n=k.originalName,b=k.datasyncId,b===c&&B.push(n);return d.return(B)})};var BV=function(){var B=_.z.apply(this,arguments)||this;B.objectURL=null;B.loadTime=Infinity;return B};
_.w(BV,_.z);_.a=BV.prototype;_.a.renderIdom=function(){uRC(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&hGl(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.a.objectFitToContentMode=function(B){switch(B){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.a.logThumbnailFailureVe=function(){var B=_.JW(197497);_.Xa(_.q_(),B);var c=_.Wf();c&&B&&c&&_.Z1(c,[B])};
_.a.loadImageFromCacheIfExists=function(B){var c=this,x=B.target;(x==null?0:x.src)&&xWY(x.src).then(function(P){c.objectURL=_.Vc(P).toString();c.setSrc(x,c.objectURL)}).catch(function(){})};
_.a.onError=function(B){var c=this;if(_.T("web_use_cache_for_image_fallback")){var x=B.target;x&&xWY(x.src).then(function(P){c.objectURL=_.Vc(P).toString();c.setSrc(x,c.objectURL)}).catch(function(){_.T("kevlar_woffle_log_thumbnail_failure_ve")&&c.logThumbnailFailureVe();
_.T("kevlar_woffle_fallback_image")&&c.setSrc(x,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.a.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.a.setConfig=function(){var B=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(c){B.loadImageFromCacheIfExists(c);B.revokeObjectURL();AN7(B.hostElement)},
onerror:function(c){B.onError(c)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.T("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.a.setSrc=function(B,c){c&&(B.src=c)};
_.L([_.J(iMt),_.H("design:type",Object)],BV.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],BV.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],BV.prototype,"alt",void 0);_.L([_.F(),_.H("design:type",Boolean)],BV.prototype,"ftlEligible",void 0);_.L([_.F(),_.H("design:type",Number)],BV.prototype,"height",void 0);_.L([_.F(),_.H("design:type",Boolean)],BV.prototype,"notifyOnLoaded",void 0);
_.L([_.F(),_.H("design:type",Boolean)],BV.prototype,"notifyOnUnloaded",void 0);_.L([_.F(),_.H("design:type",String)],BV.prototype,"objectFit",void 0);_.L([_.F(),_.H("design:type",String)],BV.prototype,"objectPosition",void 0);_.L([_.F(),_.H("design:type",String)],BV.prototype,"preferredThumbnail",void 0);_.L([_.F(),_.H("design:type",Boolean)],BV.prototype,"preserveHeight",void 0);_.L([_.F(),_.H("design:type",Boolean)],BV.prototype,"preserveWidth",void 0);
_.L([_.F({value:!0}),_.H("design:type",Boolean)],BV.prototype,"useWidth",void 0);_.L([_.F({value:function(){return!_.zu("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.H("design:type",Boolean)],BV.prototype,"shouldRenderLazy",void 0);_.L([_.F(),_.H("design:type",Number)],BV.prototype,"width",void 0);_.L([_.Em({is:"yt-image",disableElementRegistration:!0})],BV);
_.G(BV,"yt-image",function(){if(ML5===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(GYS().content.cloneNode(!0),B.content.firstChild);
ML5=B}B=ML5;return B},{mode:2});var cV=function(){return _.z.apply(this,arguments)||this};
_.w(cV,_.z);cV.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var B=_.vH(this.data.onVisibleCommand);B&&this.ytComponentBehavior.resolveCommand(B)}};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],cV.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],cV.prototype,"ytVisibilityBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cV.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],cV);
_.G(cV,"yt-bumper-user-edu-content-view-model",function(){if(ZMW===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;LxQ===void 0&&(LxQ=document.createElement("template"));var P=LxQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ZMW=B}B=ZMW;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Zs9;var Hsd,fGm=function(){if(Hsd!==void 0)return Hsd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Zs9===void 0&&(Zs9=document.createElement("template"));var P=Zs9;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Hsd=B};var isy;_.xJ={};isy=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"]);_.xJ.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var B=this.getContext_();return B?B.getTaskManager():_.EE},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var B=_.aJ(this.hostElement,"yt-get-context-provider",{});B.detail&&B.detail.contextProvider?this.cachedProviderNode_=B.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return isy.has(this.hostElement.localName)},
getNetworkManager:function(){var B=this.getContext_();if(B)return B.getNetworkManager()}};var pUw,Aly,DIS,uA4;_.PV=function(B){var c=Aly.get(B);if(c&&(c=c.pop()))return uA4++,c;DIS++;try{var x=document.createElement(B)}catch(P){throw new _.mc("ElementPool failed to create element",B,P.message);}return x};
pUw=function(B){var c=B.is;if(c){var x=Aly.get(c);x||(x=[],Aly.set(c,x));var P=_.v5("ELEMENT_POOL_CONFIG")||{};x.length>=(P[c]!==void 0?P[c]:_.v5("ELEMENT_POOL_DEFAULT_CAP",0))||x.push(B)}else _.Ob(new _.mc("Element pool should only handle custom elements:",B.nodeName))};
Aly=new Map;DIS=0;uA4=0;var kU=new WeakMap,sT7=new WeakMap;var Ryn;_.YJ=function(B,c,x){x=x===void 0?_.EB():x;this.JSC$11749_defaultPriority=B;this.signal=c;this.scheduler=x;this.nextJobDescriptor=0;this.JSC$11749_parkedJobs=[];this.scheduledJobs=new Map};
_.ai=function(B,c){if(c){var x=_.So();B.signal&&!_.yO(x,B.signal)?(x.addListener(B.signal,function(){B.processSignal()}),B.JSC$11749_parkedJobs.push({job:c,
priority:void 0})):rlF(B,c)}};
Ryn=function(B,c){if(c!==B.JSC$11749_defaultPriority){B.JSC$11749_defaultPriority=c;for(var x=_.p(B.scheduledJobs.values()),P=x.next();!P.done;P=x.next())P=P.value,B.scheduler.cancelJob(P.jobId),P.jobId=B.scheduler.addJob(P.jobWrapper,c)}};
_.YJ.prototype.flushJobs=function(){Ryn(this,10);this.processSignal()};
_.YJ.prototype.cancel=function(){for(var B=_.p(this.scheduledJobs),c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;this.scheduler.cancelJob(x.jobId);this.scheduledJobs.delete(c)}this.JSC$11749_parkedJobs=[]};
_.YJ.prototype.processSignal=function(){for(var B=_.p(this.JSC$11749_parkedJobs),c=B.next();!c.done;c=B.next())c=c.value,rlF(this,c.job,c.priority);this.JSC$11749_parkedJobs=[]};
var rlF=function(B,c,x){x=x||B.JSC$11749_defaultPriority;if(x===10)gV(c);else{var P=B.nextJobDescriptor++,Y=function(){c();B.scheduledJobs.delete(P)},g=B.scheduler.addJob(Y,x);
B.scheduledJobs.set(P,{jobWrapper:Y,jobId:g,priority:x})}};_.BX(n8I);var bcq={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};bEA({beforeVisit:function(B){if(Y0.has(B.type)){var c;(c=B.props).idomKey!=null||(c.idomKey=B.type)}else B.type.TAG_NAME&&(x0=B.type.TAG_NAME)},
afterRender:function(B,c){var x;x0=(x=c==null?void 0:c.type)!=null?x:""},
didPatch:function(){x0=""}});var eyW;_.gG={};eyW={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.gG.YtRendererstamperBehavior=[_.xJ.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 B in this.stampDom){var c=this.stampDom[B];c&&c.id&&this.addReactiveSchema({type:"observe",method:{methodName:YwY(c.id),args:[{type:"wildcard",path:B}]}})}else{(B=(this.constructor.generatedFrom||this).observers)||(B=[]);for(c in this.stampDom){var x=this.stampDom[c];x&&x.id&&B.push(YwY(x.id)+"("+c+".*)")}this.constructor.generatedFrom.observers=B}},
addStampDomObserverFns_:function(){for(var B in this.stampDom){var c=this.stampDom[B];c.id?(this[YwY(c.id)]=this.rendererStamperObserver_.bind(this,B,c.id),this.hasDataPath_[B]=!1):(c=new _.mc("Bad rendererstamper config",this.is+":"+B),_.lb(c))}},
rendererStamperObserver_:function(B,c,x){if(x.path==B){if(x.value===void 0&&!this.hasDataPath_[B])return;this.hasDataPath_[B]=x.value!==void 0}this.rendererStamperApplyChangeRecord_(B,c,x)},
rendererStamperApplyChangeRecord_:function(B,c,x){var P=this.renderJobsMap_[c],Y=null;B==x.path?(x=x.value,_.R7(x)||(x=x===void 0||x===null?[]:[x]),B=this.stampDom[B],B.mapping&&(Y=this.stampDomArray_.bind(this,x,c,B.mapping,B.reuseComponents,B.events,B.stamperStableList)),P&&P.cancel(),x=B.usePageScheduler?this.getTaskManager():void 0,P||B.initialRenderPriority==void 0)?B.renderPriority==void 0||P||(P=new _.YJ(B.renderPriority,B.waitForSignal,x),this.renderJobsMap_[c]=P):(P=new _.YJ(B.initialRenderPriority,
B.waitForSignal,x),this.renderJobsMap_[c]=P,Y=function(g,k){g();Ryn(k,10)}.bind(this,Y,P)):Y=B+".splices"==x.path?this.stampDomArraySplices_.bind(this,B,c,x.value):this.forwardRendererStamperChanges_.bind(this,B,c,x);
P?_.ai(P,Y):Y()},
forwardRendererStamperChanges_:function(B,c,x){var P=x.path.slice(B.length+1),Y=this.getStampContainer_(c),g=P.indexOf("."),k=P.substring(0,g),n=!1,b=0,d=parseInt(k,0);if(k[0]=="#"){n=parseInt(k.substring(1),0);d=this.get(B);var q=this.get([B,k]);d[n]==q?b=n:b=d.indexOf(q);n=!0}else isNaN(d)||(b=d,n=!0);n&&(P=P.substring(k.length+1),g=P.indexOf("."));k=_.m4(Y).children[b];var C;if(Y=(C=k==null?void 0:k.polymerController)!=null?C:k)P="data"+P.slice(g),typeof Y.notifyPath!=="function"?_.Ob(new _.mc("notifyPath missing",
this.is+": "+B+", "+c)):x.value?Y.notifyPath(P,x.value):Y.notifyPath(P)},
stampDomArraySplices_:function(B,c,x){if(x&&x.indexSplices){var P=this.getStampContainer_(c);if(P){for(var Y=_.m4(P),g=g8d(this.stampDom[B].reuseComponents),k=x.indexSplices.length,n=0;n<k;n++){for(var b=x.indexSplices[n],d=Y.children[b.index],q=b.removed.length;q>0;q--)d&&d.parentElement&&(_.m4(d.parentElement).removeChild(d),g&&pUw(d),d=Y.children[b.index]);q=this.stampDom[B].mapping;for(var C=b.index+b.addedCount,h=document.createDocumentFragment(),V=g,N=b.index;N<C;N++){var l=b.object[N],E=P1X(q,
l);if(E){var S=q[E];l=l[E];E=this.getComponentName_(S,l);var M=d?kU.has(d):!1;V&&d&&d.is==E&&M?(E=d,this.telemetry_.reuse++,d=d.nextElementSibling):V&&d&&M?(E=this.createComponent_(S,l,g),M=_.m4(d).nextElementSibling,Y.insertBefore(E,M),XUq(this.is,Y,d,g),d=M):(V=!1,E=this.createComponent_(S,l,g),h.appendChild(E));this.deferRenderStamperBinding_(E,S,l)}else S=new _.mc("Unimplemented type",B,c,P.tagName,Object.keys(l)[0]),_.lb(S)}Y.insertBefore(h,d)}this.flushRenderStamperComponentBindings_();this.stampDom[B].events&&
_.aJ(this.hostElement,"yt-rendererstamper-finished",{container:P})}else B=new _.mc("Container object not found",c,this.hostElement?this.hostElement.is:""),_.lb(B)}},
stampDomArray_:function(B,c,x,P,Y,g){var k=this.getStampContainer_(c);if(k)if(c=_.m4(k),P=g8d(P),B){var n=0,b=0,d;if(g=g===void 0?_.zu("STAMPER_STABLE_LIST",!1):g||!1)for(d=c.firstElementChild;d&&!kU.has(d)&&B.length>b;){g=B[b];var q=P1X(x,g);if(q){if(this.getComponentName_(x[q],g[q])!=d.is){var C=this.createComponent_(x[q],g[q],P),h=_.m4(d).nextElementSibling;h?c.insertBefore(C,h):c.appendChild(C);XUq(this.is,c,d,P);d=C}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(d,x[q],g[q]);n++;
b++;d=_.m4(d).nextElementSibling}else b++}$WA(this.is,c,n,P);n=d;if(B.length>b){g=document.createDocumentFragment();for(q=B.length;b<q;b++)if(C=B[b],h=P1X(x,C))d=this.createComponent_(x[h],C[h],P),this.deferRenderStamperBinding_(d,x[h],C[h]),g.appendChild(d);n&&_.m4(n).parentNode&&d&&!kU.has(d)?c.insertBefore(g,n):c.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Y&&_.aJ(this.hostElement,"yt-rendererstamper-finished",{container:k})}else $WA(this.is,c,0,
P);else B=new _.mc("Container object not found",c,this.hostElement?this.hostElement.is:""),_.lb(B)},
getStampContainer_:function(B){return this.$&&this.$[B]||_.Y9(this.hostElement).querySelector("#"+B)},
getComponentName_:function(B,c){return typeof B==="string"?B:B.matcher?B.matcher.call(this,c):B.component},
createComponent_:function(B,c,x){B=this.getComponentName_(B,c);try{var P=am.has(B)||Y0.has(B);if(x&&!P){var Y=_.PV(B);try{_.k9(Y)}catch(g){x="Failed to clear styles for "+B+".",g.message&&(x+=" Original error: "+g.message),_.Ob(new _.mc(x))}}else Y=document.createElement(B)}catch(g){return Y="YtRendererStamperBehavior failed to create "+B+".",g.message&&(Y+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.oG(g,Y),eyW.hasOwnProperty(B)?_.Ob(g):_.lb(g),
document.createElement("SPAN")}this.telemetry_.create++;return Y},
deferRenderStamperBinding_:function(B,c,x){this.deferredBindingTasks_.push({component:B,typeOrConfig:c,data:x})},
flushRenderStamperComponentBindings_:function(){for(var B=0,c=this.deferredBindingTasks_.length;B<c;B++){var x=this.deferredBindingTasks_[B];if(!x)break;var P=void 0,Y=void 0,g=void 0,k=void 0,n=x.component,b=x.typeOrConfig;x=x.data;var d=(k=n.polymerController)!=null?k:n;k=n.loggingStatus;try{k&&(k.isRendererStamper=!0);if(typeof b!=="string"){for(g in b.attributes)b.attributes[g]===!0?n.setAttribute(g,""):b.attributes[g]===!1?n.removeAttribute(g):n.setAttribute(g,b.attributes[g]);for(Y in b.params)d[Y]=
b.params[Y],n!==d&&TZ(n.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(P in b.properties){var q=b.properties[P];if(q){var C=a7x(q);d[P]=this.get(C);n!==d&&TZ(n.localName,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(P==="on-tap"||P==="on-click"){var h=this.get(C);n.addEventListener("click",h);sT7.set(n,{property:P,listener:{type:"element",eventName:"click",handler:h}})}}else{var V=new _.mc("Undefined property binding",P);_.lb(V)}}}if(b.classListBinding){var N=a7x(b.classListBinding),
l=N?this[N]:null;if(l)for(P=0;P<l.length;P++)_.gM(n,l[P],!0)}d.data=x}finally{k&&(k.isRendererStamper=!1)}if(P=kU.get(n))n.hidden=!1,kU.delete(n),_.EE.cancelJob(P)}this.deferredBindingTasks_.length=0}}];_.s2={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(B){for(var c=_.Gr.getInstance(),x=_.p(Object.keys(B)),P=x.next();!P.done;P=x.next()){var Y=P.value;P=B[Y];if(this&&this[P]){var g=c.actionRoutingMap.get(Y);g||(g=new Map,c.actionRoutingMap.set(Y,g));c.registerActionHandler(this,Y,this[P].bind(this),g)}else Y=Error("id"),Y.params=P,_.SI(Y)}},
unregisterActionMap:function(B){_.LE(_.Gr.getInstance(),B,this)}}]};var nw=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var $U;var bv=new Map;var wUQ=window.matchMedia("(forced-colors: active)").matches;var B4Z;var cwy;var W3$=new _.BL("LOTTIE_LOADER_TOKEN");_.xU(_.rM(function(B){return _.U("ytd-lottie-player",{id:B.id,hidden:B.hidden,class:B.className,"aria-label":B.ariaLabel,style:"display: block;"},_.U(_.j5,{data:B.data,animationName:function(){var c;return((c=B.data().animationConfig)==null?void 0:c.name)||""},
animationRef:function(){return B.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.rk,
id:_.rk,hidden:_.rk,className:_.rk,ariaLabel:_.rk}});var pQ=function(){var B=_.z.apply(this,arguments)||this;B.animationRef={};return B};
_.w(pQ,_.z);_.a=pQ.prototype;
_.a.handlePropertyChange=function(){var B=this.animatedIcon,c=this.active,x=this.isDarkTheme;if(B){var P=this.previousActive!==c;this.previousActive=c;this.animationRef.lottieEl?P&&this.toggleAnimation(c,B.totalFrames):c?this.initializeAnimationAsToggled(B.lottiePlayerProps,B.totalFrames):this.initializeAnimationAsUntoggled(B.lottiePlayerProps);B.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=B.type;this.lottiePlayerProps=this.computeLottiePlayerProps(B,x)}};
_.a.computeLottiePlayerProps=function(B,c){var x=this.deepCloneLottiePlayerProps(B);c?(c=B.nameDarkTheme,B=B.pathDarkTheme):(c=B.name,B=B.path);x.animationConfig.name=c;(c=bv.get(B))?x.animationConfig.animationData=c:x.animationConfig.path=B;return x};
_.a.initializeAnimationAsToggled=function(B,c){B.animationConfig.initialSegment=[c-1,c]};
_.a.initializeAnimationAsUntoggled=function(B){B.animationConfig.initialSegment=void 0};
_.a.toggleAnimation=function(B,c){if(B){var x;(x=this.animationRef.lottieEl)==null||x.playSegments([0,c],!0)}else{var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,1],!0)}};
_.a.deepCloneLottiePlayerProps=function(B){var c=Object.assign({},B.lottiePlayerProps.animationConfig);B=Object.assign({},B.lottiePlayerProps);B.animationConfig=c;return B};
pQ.prototype.handlePropertyChange=pQ.prototype.handlePropertyChange;_.L([_.F(),_.H("design:type",Object)],pQ.prototype,"animatedIcon",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],pQ.prototype,"active",void 0);_.L([_.F(),_.H("design:type",Boolean)],pQ.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],pQ.prototype,"animatedIconType",void 0);_.L([_.F(),_.H("design:type",Boolean)],pQ.prototype,"previousActive",void 0);
_.L([_.F(),_.H("design:type",Object)],pQ.prototype,"lottiePlayerProps",void 0);_.L([_.F(),_.H("design:type",Object)],pQ.prototype,"animationRef",void 0);_.L([_.bF("animatedIcon","active","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pQ.prototype,"handlePropertyChange",null);_.L([_.Em({is:"yt-animated-icon",disableElementRegistration:!0})],pQ);
_.G(pQ,"yt-animated-icon",function(){if(cwy===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;B4Z===void 0&&(B4Z=document.createElement("template"));var P=B4Z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);cwy=B}B=cwy;return B},{mode:2});var x74;var PNZ;var Oc7=_.rM(function(B){var c=_.fE("span"),x=Es(function(){return{value:null}});
_.lP(function(){var Y;(Y=x.value)==null||Y.cancel()});
var P=_.db(B.data,{equals:function(Y,g){return Y.iconName===g.iconName&&Y.iconStyle===g.iconStyle&&Y.iconSize===g.iconSize&&Y.iconSetName===g.iconSetName&&Y.iconSelected===g.iconSelected}},"aoiXAb");
_.IO(function(){var Y,g=(Y=B.options)==null?void 0:Y.call(B);E87(c,x,P(),g)},"QXgxJd");
return _.U("span",{class:"yt-icon-shape",el:c})},"i");
Oc7.idomCompat=!0;var w4C=["youtube_fill","youtube_outline"];var YC3=new _.J4({type:"iconset",value:void 0}),kJ=function(){var B=_.z.apply(this,arguments)||this;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.iconName="";B.iconsetName="yt-icons";B.iconset=null;B.missingIconSet=!1;B.iconType=null;B.iconShapeDataSignal=_.$D(void 0,void 0,"RQ9kUb");B.renderingOptionsSignal=_.$D({iconWidth:"100%",iconHeight:"100%",iconFilter:B.iconFilter},void 0,"qtx8Ef");B.wizHasRendered=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(kJ,_.z);kJ.prototype.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
kJ.prototype.handlePropertyChange=function(){var B=this,c,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S;return _.X(function(M){switch(M.nextAddress){case 1:if(c=!B.icon&&!B.iconName||!B.isAttached)return M.return();x=B;P=x.icon;Y=x.size;g=x.defaultToFilled;k=x.active;n=x.targetContainer;B.toggleContainerClass(n);_.T("kevlar_use_wil_icons")&&P&&(b=XdI(P),B.iconType=b.length?b[1]:null);if(P){M.jumpTo(2);break}B.iconsetName="";B.iconName="";return _.K(M,B.renderIcon(n,P),3);case 3:return M.return();case 2:d=ak9(P);
q=XdI(d);q.length&&(B.iconsetName=q[0],B.iconName=q[1]);if(!_.T("kevlar_use_wil_icons")){M.jumpTo(4);break}C=kJ;h=gmF;V=B.iconType;N=B.active;l=B.defaultToFilled;E=B.size;S=B.iconsetName;return _.K(M,s5Z(),6);case 6:return _.K(M,h.call(C,V,N,l,E,S,M.yieldResult),5);case 5:B.iconShapeData=M.yieldResult;case 4:if(B.shouldRenderIconShape(n)){M.jumpTo(7);break}return _.K(M,B.determineIconSet(d,k,g,Y,n),7);case 7:return _.K(M,B.renderIcon(n,P),0)}})};
kJ.prototype.toggleContainerClass=function(B){B?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var ak9=function(B){return!_.T("default_to_innertube_icon")||B.indexOf(":")>0?B:_.$0(B)};
_.a=kJ.prototype;_.a.determineIconSet=function(B,c,x,P){var Y=this;return _.X(function(g){return g.nextAddress==1?_.T("kevlar_system_icons")||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.K(g,Y.switchToYtSysIconset(B,c,x,P),3):g.jumpTo(2):g.nextAddress!=2?g.return():_.K(g,Y.useYtSysIconsetForMissingIcons(B,c,x,P),0)})};
_.a.switchToYtSysIconset=function(B,c,x,P){var Y=this,g,k,n,b,d,q,C;return _.X(function(h){switch(h.nextAddress){case 1:if(!B||Y.iconsetName!=="yt-icons"&&Y.iconsetName!=="yt-sys-icons"){h.jumpTo(0);break}g=XdI(B);k=g[1];k=_.hyo(k);_.T("enable_polymer_icons_replace_underscores_dash")&&k.includes("_filled")&&(k=k.replace(/_filled/g,"-filled"));return _.K(h,Xo(k,!0),3);case 3:return n=h.yieldResult,_.K(h,Xo(k,!1),4);case 4:if((b=h.yieldResult)||c&&n)Y.iconsetName="yt-sys-icons";Y.iconName=Y.getIconName(k,
c,x,b,n);if(P===24){h.jumpTo(0);break}d="yt-sys-icons"+P+":"+Y.iconName;return _.K(h,Xo(d,!1,!0),6);case 6:return q=h.yieldResult,_.K(h,Xo(d,!0,!0),7);case 7:C=h.yieldResult;Y.iconName=Y.getIconName(k,c,x,q,C);if(!c&&q||c&&C)Y.iconsetName="yt-sys-icons"+P;_.Kq(h)}})};
_.a.getIconName=function(B,c,x,P,Y){B.includes("-filled")&&(B=B.replace("-filled",""));return Y&&(c||x)?B+"-filled":B};
_.a.useYtSysIconsetForMissingIcons=function(B,c,x,P){var Y=this,g,k;return _.X(function(n){if(n.nextAddress==1)return Y.iconsetName!=="yt-icons"?n.jumpTo(0):_.K(n,Xo(Y.iconName,!1,!1,!0),3);if(n.nextAddress!=4)return g=n.yieldResult,_.K(n,Xo(Y.iconName,!1),4);k=n.yieldResult;if(g||!k)return n.jumpTo(0);Y.iconsetName="yt-sys-icons";return _.K(n,Y.switchToYtSysIconset(B,c,x,P),0)})};
_.a.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var s5Z=function(){return _.X(function(B){try{return B.return(_.cp().resolve(_.nL))}catch(c){return B.return(new Promise(function(x){_.So().parkOrScheduleJob(function(){x(_.cp().resolve(_.nL))},2,"ci")}))}})},gmF=function(B,c,x,P,Y,g){P=P===void 0?24:P;
if(B){B=B.toLowerCase();var k=B.endsWith("_filled")||B.endsWith("-filled");c={iconName:B,iconStyle:(c===void 0?0:c)||(x===void 0?0:x)||k?"youtube_fill":"youtube_outline",iconSize:P,iconSetName:Y===void 0?"yt-icons":Y};x=!!g.resolveIcon(c);x||(c.iconSize=void 0,x=!!g.resolveIcon(c));!x&&k&&(c.iconName=B.substring(0,B.length-7),c.iconSize=P,x=!!g.resolveIcon(c),x||(c.iconSize=void 0,x=!!g.resolveIcon(c)));x||(c.iconStyle=void 0,x=!!g.resolveIcon(c));x||_.Ob(new _.mc("Icon not supported",{iconName:c.iconName,
iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:B}));return x?c:void 0}};
_.a=kJ.prototype;_.a.shouldRenderIconShape=function(B){if(!_.T("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;B=this.getContainer(B);return!Nmx(B,this.icon)};
_.a.renderIcon=function(B,c){var x=this,P,Y,g,k,n,b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:if(c&&x.icon!==c)return C.return();P=x.getContainer(B);Y=Nmx(P,x.icon);if(x.shouldRenderIconShape(B)&&x.iconType)return x.applyIconShape(Y,P),C.return();x.removeIconShape();if(!P)return C.return();x.iconName===""&&x.iconset&&P&&(x.removeStaticIcon(x.iconset,P),Y&&x.removeAnimatedIcon(P));if(x.iconName===""&&x.iconset||!x.iconsetName||!YC3)return C.return();x.iconset=YC3.byKey(x.iconsetName);
if(!x.iconset)return x.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.$9(x,x.onIconsetAdded)),C.return();x.missingIconSet&&(x.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.$9(x,x.onIconsetAdded)));k=(g=Y||x.isAnimatedIcon?tUO(x.icon):void 0)&&!g.lazyLoad;b=g&&((n=g)==null?void 0:n.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:bv.get(x.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(k||b)return x.applyAnimatedIcon(P,g,x.iconset),C.return();if(b||
(d=g)==null||!d.lazyLoad){C.jumpTo(2);break}q=JCO(g,x.isDarkTheme);x.applyStaticIcon(x.iconset,P,x.iconName,B,Y);return _.K(C,q,3);case 3:return _.K(C,x.renderIcon(x.targetContainer,x.icon),4);case 4:return C.return();case 2:x.applyStaticIcon(x.iconset,P,x.iconName,B,Y),_.Kq(C)}})};
_.a.getContainer=function(B){var c,x=(c=Ojo(this.hostElement))==null?void 0:c.host;c=!!x&&!!x.polymerController;if(!B||c)return B?this.getTargetContainer(B,x):this.hostElement};
_.a.getTargetContainer=function(B,c){var x=_.Y9(c).querySelector("#"+B);x||(B=new _.mc("yt-icon container missing",c.is,B),_.lb(B));return x};
_.a.applyStaticIcon=function(B,c,x,P,Y){Y&&this.removeAnimatedIcon(c);this.removeIconShape();Y=Y&&!!this.iconType&&!!this.iconShapeData&&_.T("kevlar_use_wil_icons");try{Y?this.applyIconShape(!1,c):B.applyIcon(c,x)}catch(g){this.handleError(g,P,c)}};
_.a.applyIconShape=function(B,c){this.iconset&&c&&(this.removeStaticIcon(this.iconset,c),B&&this.removeAnimatedIcon(c));B={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var x=_.p(this.iconShapeDataSignal);c=x.next().value;x=x.next().value;var P=_.p(this.renderingOptionsSignal),Y=P.next().value;P=P.next().value;x(this.iconShapeData);P(B);if(!this.wizHasRendered)for(this.wizHasRendered=!0,B=_.p(o8X(c,Y)).next().value;B.firstChild;)_.Y9(this.hostElement).appendChild(B.firstChild)};
_.a.removeIconShape=function(){if(_.T("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.a.removeStaticIcon=function(B,c){B.removeIcon(c)};
_.a.applyAnimatedIcon=function(B,c,x){this.removeStaticIcon(x,B);this.removeIconShape();var P;x=this.animatedIconElement&&((P=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:P.type)===c.type;if(this.animatedIconElement&&x){this.animatedIconElement.polymerController.animatedIcon=c;var Y;((Y=this.animatedIconElement)==null?void 0:Y.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(B),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=c,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.T("kevlar_use_wil_icons")?B.insertBefore(this.animatedIconElement,B.childNodes[0]):(B=_.Y9(B),B.insertBefore(this.animatedIconElement,B.childNodes[0]))};
_.a.removeAnimatedIcon=function(B){_.T("kevlar_use_wil_icons")?this.animatedIconElement&&B.contains(this.animatedIconElement)&&B.removeChild(this.animatedIconElement):(B=_.Y9(B),this.animatedIconElement&&B.contains(this.animatedIconElement)&&B.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.a.handleError=function(B,c,x){_.oG(B,this.iconName,c,x);c=Nmx(x,this.icon);var P=!1;window.location.href.includes("JpymaW6Lh2w")?P=!0:x._svgIcon&&(x=(x=x._svgIcon.parentNode)?x.tagName:"unknown",_.oG(B,x),x==="YT-ICON"&&B.name==="NotFoundError"?P=!0:B.name==="NotFoundError"&&c&&(P=!0));P?_.Ob(B):_.lb(B)};
_.AJ.Object.defineProperties(kJ,{template:{configurable:!0,enumerable:!0,get:function(){if(PNZ===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;
x74===void 0&&(x74=document.createElement("template"));var P=x74;x.call(c,P.content.cloneNode(!0),B.content.firstChild);PNZ=B}B=PNZ;return B}}});
kJ.prototype.handlePropertyChange=kJ.prototype.handlePropertyChange;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],kJ.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",String)],kJ.prototype,"icon",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],kJ.prototype,"active",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],kJ.prototype,"defaultToFilled",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],kJ.prototype,"isAnimatedIcon",void 0);
_.L([_.F({value:24}),_.H("design:type",Number)],kJ.prototype,"size",void 0);_.L([_.F({value:""}),_.H("design:type",String)],kJ.prototype,"targetContainer",void 0);_.L([_.F(),_.H("design:type",Object)],kJ.prototype,"animatedIconElement",void 0);_.L([_.F(),_.H("design:type",Object)],kJ.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kJ.prototype,"ariaHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],kJ.prototype,"ariaLabel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],kJ.prototype,"role",void 0);_.L([_.F(),_.H("design:type",String)],kJ.prototype,"style",void 0);_.L([_.F(),_.H("design:type",String)],kJ.prototype,"iconFilter",void 0);_.L([_.bF("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],kJ.prototype,"handlePropertyChange",null);_.L([_.Em({is:"yt-icon",noInjection:!0})],kJ);var ptF;var kcd=function(){var B=document.body,c=B.appendChild;if(ptF===void 0){var x=document.createElement("template");_.I(x,'\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>');
ptF=x}x=ptF;c.call(B,x.content)};
document.body?kcd():window.addEventListener("DOMContentLoaded",kcd);var XtZ,$7Q=function(){return XtZ!==void 0?XtZ:XtZ=document.createElement("template")};
document.head.appendChild($7Q().content);var nmd,b7Q=function(){return nmd!==void 0?nmd:nmd=document.createElement("template")};
document.head.appendChild(b7Q().content);var KIS;_.Xr=new _.BL("KEY_MANAGER_TOKEN");var SwO={duration:1E3,easing:"ease",fill:"forwards"};_.BX(zwQ);var Gvd={duration:1E3,easing:"ease",fill:"forwards"},d7t=_.rM(function(B){var c=_.Ho("animated-rolling-character"),x=void 0,P=function(){var Y,g;return Ag((Y=B.character)==null?void 0:Y.call(B))||Ag((g=B.previousCharacter)==null?void 0:g.call(B))};
_.IO(function(){if(B.marginMultiplier()){var Y;(Y=x)==null||Y.cancel();if(P()){var g;Y=((g=B.previousCharacter)==null?0:g.call(B))?Number(B.previousCharacter())+10:B.rollUp()?0:30;var k;if((k=B.shouldAnimate)==null||!k.call(B)){var n,b;Y-=yCO((n=B.character)==null?void 0:n.call(B),(b=B.previousCharacter)==null?void 0:b.call(B),B.rollUp(),Y)}}else{Y=B.rollUp()?0:2;var d;(d=B.shouldAnimate)!=null&&d.call(B)||(g=Y,k=B.rollUp()?-1:1,Y=g-k)}c.value.style.marginTop="-"+Y*B.marginMultiplier()+"px";var q;
if((q=B.shouldAnimate)==null?0:q.call(B)){var C,h;x=MUY(c.value,(C=B.character)==null?void 0:C.call(B),(h=B.previousCharacter)==null?void 0:h.call(B),B.rollUp(),Y,P(),B.marginMultiplier())}else{var V;c.value.style.display=((V=B.character)==null?0:V.call(B))?"":"none"}}},"vt9b9b");
return _.U("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},_.U(_.m,{cond:P,then:function(){return _.U(j5Q,null)},
else:function(){return _.U(U7m,{character:B.character})}}))},"j");
d7t.idomCompat=!0;var L3X=_.T("web_enable_sink_animated_rolling_character_and_number")?d7t:zwQ,qC9=_.T("web_enable_sink_animated_rolling_character_and_number")?d7t:_.dV(zwQ),j5Q=_.rM(function(){for(var B=[],c=1;c<30;c++)B.push(_.U("div",null,c%10));return _.U(_.at,null,_.U("div",null,"\u00a0"),B,_.U("div",null,"\u00a0"))},"k"),U7m=_.rM(function(B){var c=B.character;
return _.U(_.at,null,_.U("div",null,"\u00a0"),_.U(_.m,{cond:function(){return!(c==null?0:c())||_.sl(c==null?void 0:c())},
then:function(){return _.U("div",null,"\u00a0")},
else:function(){return _.U("div",null,c)}}),_.U("div",null,"\u00a0"))},"l");_.BX(ZcC);var CNt=_.rM(function(B){var c=void 0,x=void 0,P=function(){var g;return((g=B.fontSizeMultiplier)==null?0:g.call(B))?B.heightPx()*B.fontSizeMultiplier():B.heightPx()},Y=_.db(function(){if(!B.numberText())return[];
var g,k,n=((g=B.forceRollUp)==null?void 0:g.call(B))||!x||!((k=B.numberValue)==null?0:k.call(B))||x<B.numberValue(),b,d=B.numberText();g=P();k=!((b=B.shouldAnimate)==null||!b.call(B));b=[];var q=0,C=0,h=(c?c.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0),V=c?c.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);h<0;){var N=d[C];b.push({character:N,rollUp:n,marginMultiplier:g,shouldAnimate:k});C++;Ag(N)&&h++}for(;q<h;)N=V[q],b.push({previousCharacter:N,rollUp:n,marginMultiplier:g,
shouldAnimate:k}),q++,Ag(N)||h++;for(;C<d.length;)h=d[C],N=V[q],Ag(h)===Ag(N)?(C++,q++):Ag(h)?(q++,h=void 0):Ag(N)&&(C++,N=void 0),b.push({character:h,previousCharacter:N,rollUp:n,marginMultiplier:g,shouldAnimate:k});c=B.numberText();var l;x=(l=B.numberValue)==null?void 0:l.call(B);return b},void 0,"B9AmNd");
return _.U("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return B.numberText()?["height: "+P()+"px;","line-height: "+B.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.U(_.mV,{each:Y,keyBy:"INDEX"},function(g){return _.U(qC9,{character:function(){return g().character},
previousCharacter:function(){return g().previousCharacter},
marginMultiplier:function(){return g().marginMultiplier},
rollUp:function(){return g().rollUp},
shouldAnimate:function(){return g().shouldAnimate}})}))},"m");
CNt.idomCompat=!0;_.p2w=_.T("web_enable_sink_animated_rolling_character_and_number")?CNt:ZcC;_.hX3=_.T("web_enable_sink_animated_rolling_character_and_number")?CNt:_.dV(ZcC);var Hcx={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"};_.$J=_.rM(function(B){var c=_.Ho("a",B.ref),x=B.aTagConfig?B.aTagConfig:_.db(function(){var P,Y,g,k,n,b;var d=(b=_.vH((k=B.command)==null?void 0:k.call(B)))!=null?b:(n=B.command)==null?void 0:n.call(B);return _.S_({innertubeCommand:d,skipOnClick:(P=B.skipOnClick)==null?void 0:P.call(B),stopPropagation:(Y=B.dangerousStopPropagation)==null?void 0:Y.call(B),defaultTarget:(g=B.target)==null?void 0:g.call(B)})||{}},void 0,"gnrRge");
_.IO(function(){c.value._data=x()._data;c.value.params=x().params},"dcjvAe");
return _.U("a",{el:c,href:function(){return x().href$},
rel:function(){return x().rel$},
class:function(){var P,Y;return(Y=x().className)!=null?Y:(P=B.className)==null?void 0:P.call(B)},
style:function(){var P;if((P=B.style)==null?0:P.call(B))return B.style();var Y;return((Y=B.disabled)==null?0:Y.call(B))?"pointer-events:none":""},
"aria-haspopup":function(){return!!x()["aria-haspopup$"]},
"force-new-state":Cw(function(){return x()["force-new-state$"]}),
title:Cw(function(){var P,Y;return(Y=x().title$)!=null?Y:(P=B.title)==null?void 0:P.call(B)}),
role:Cw(function(){return x().role$}),
target:Cw(function(){return x().target$}),
dir:Cw(function(){var P;return((P=B.dir)==null?0:P.call(B))?B.dir():x().dir}),
tabindex:function(){var P;return x().tabindex$?Number(x().tabindex$):(P=B.tabIndex)==null?void 0:P.call(B)},
"aria-hidden":function(){var P,Y;return(Y=x()["aria-hidden$"])!=null?Y:(P=B.ariaHidden)==null?void 0:P.call(B)},
"aria-label":function(){var P,Y;return(Y=x()["aria-label$"])!=null?Y:(P=B.ariaLabel)==null?void 0:P.call(B)},
"aria-current":B.ariaCurrent,"aria-disabled":B.disabled,"aria-labelledby":B.ariaLabelledby,"aria-describedby":B.ariaDescribedby,"aria-selected":B.ariaSelected,"tab-identifier":B.tabIdentifier,"on:pointerdown":_.qe(function(P){var Y,g;return void((g=(Y=x()).onpointerdown)==null?void 0:g.call(Y,P))}),
"on:click":_.qe(function(P){var Y,g;return void((g=(Y=x()).onclick)==null?void 0:g.call(Y,P))})},B.children)},"n");var m70=function(B,c){this.fillAnimation=new Animation(uc7(B),document.timeline);this.strokeAnimation=new Animation(DW7(c),document.timeline)};
m70.prototype.play=function(){var B,c;(c=(B=this.fillAnimation).play)==null||c.call(B);var x,P;(P=(x=this.strokeAnimation).play)==null||P.call(x)};
m70.prototype.cancel=function(){var B,c;(c=(B=this.fillAnimation).cancel)==null||c.call(B);var x,P;(P=(x=this.strokeAnimation).cancel)==null||P.call(x)};_.Ne=_.rM(function(B){var c=B.model;var x=B.pointerDownEvent;var P=B.pointerUpEvent;var Y=B.pointerLeaveEvent;B=_.Ho("div");var g=_.TU({"border-radius":function(){return c().borderRadius}}),k=_.Ho("div"),n=_.Ho("div"),b=_.p(_.mg(function(){return(P==null?0:P())||(Y==null?0:Y())?!1:!(x==null||!x())||!1})),d=b.next().value,q=b.next().value,C=void 0,h=function(){!C&&n.value&&k.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(C=new m70(n.value,k.value));
var M;(M=C)==null||M.play()},V=function(){var M;
(M=C)==null||M.cancel()},N=function(){var M;
(M=C)==null||M.cancel()};
_.IO(function(){(P==null?0:P())&&h()},"YjVIpd");
_.IO(function(){(x==null?0:x())&&V()},"UrXvqb");
_.IO(function(){(Y==null?0:Y())&&N()},"QK6L8b");
b=_.qe(function(){h();q(!1)});
var l=_.qe(function(){V();q(!0)}),E=_.qe(function(){N();
q(!1)});
_.lP(function(){if(C){var M;(M=C)==null||M.cancel();C=void 0}});
var S={};d=_.Kw("yt-spec-touch-feedback-shape",function(){return rCq(c().color)},(S["yt-spec-touch-feedback-shape--focused"]=function(){return!!c().focused&&!c().disabled},S["yt-spec-touch-feedback-shape--circular"]=function(){return!!c().circular},S["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!c().isExtended},S["yt-spec-touch-feedback-shape--down"]=d,S["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!c().triggerEvents},S));
return _.U("yt-touch-feedback-shape",{style:_.TU({"border-radius":"inherit"})},_.U("div",{el:B,class:d,style:_.TU({"margin-top":function(){return c().customTopExtend?"-"+c().customTopExtend+"px":void 0}}),
"on:mousedown":l,"on:mouseup":b,"on:pointerleave":E,"on:touchstart":l,"on:touchend":b,"aria-hidden":!0},_.U("div",{class:"yt-spec-touch-feedback-shape__stroke",style:g,el:k}),_.U("div",{class:"yt-spec-touch-feedback-shape__fill",style:g,el:n})))},"o");
_.Ne.idomCompat=!0;var T4F={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 nQ=_.dC();nQ=nQ.toLowerCase();if(_.$I(nQ,"android")){var V9n=nQ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);V9n&&parseFloat(V9n[1])<100||nQ.match("("+Object.keys(T4F).join("|")+")")};var t9d=_.rM(function(B){return _.U(_.m,{cond:B.aTagConfig,then:function(c){return _.U(_.$J,{aTagConfig:c,disabled:B.disabled,className:B.className,style:B.style,title:B.title,ariaLabel:B.ariaLabel,ariaCurrent:function(){var x,P;return((x=B.toggleable)==null?void 0:x.call(B))&&((P=B.toggled)==null?void 0:P.call(B))}},B.children)},
else:function(){return _.U("button",{"on:click":_.qe(function(c){var x;return(x=B.onClick)==null?void 0:x.call(B,c)}),
class:B.className,title:B.title,style:B.style,disabled:B.disabled,"aria-pressed":function(){var c,x;return((c=B.toggleable)==null?0:c.call(B))?!((x=B.toggled)==null||!x.call(B)):void 0},
"aria-label":B.ariaLabel,"aria-disabled":B.visiblyDisabled,"aria-hidden":B.ariaHidden,tabindex:B.tabIndex},B.children)}})},"p"),N4d=_.rM(function(B){var c=B.data;
var x=B.hasIconLeading;var P=B.hasIconLeadingTrailing;var Y=B.hasIconTrailing;var g=B.iconButton;var k=B.iconClassName;var n=B.secondaryIconClassName;var b=B.icon;var d=B.secondaryIcon;var q=B.textContentClassName;return _.U(bD,{className:"",style:"display: inherit; justify-content: center"},_.U(_.m,{debugInstance:"V4z1Uc",cond:function(){return b&&(x()||P()||(g==null?void 0:g()))},
then:function(){return _.U(bD,null,_.U("div",{class:k,"aria-hidden":"true"},b==null?void 0:b()))}}),_.U(_.m,{debugInstance:"ok3btb",
cond:function(){return(c().buttonText||c().animatedTextProps||c().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.U(bD,null,_.U(wt5,{className:q,iconPosition:function(){return c().iconPosition},
text:function(){return c().buttonText},
oneOffCustomTextWrap:function(){return c().oneOffCustomTextWrap},
formattedButtonText:function(){return c().formattedButtonText},
animatedTextProps:function(){return c().animatedTextProps}}))}}),_.U(_.m,{debugInstance:"DO5Rz",
cond:Y,then:function(){return _.U(bD,null,_.U("div",{class:k},b==null?void 0:b()))}}),_.U(_.m,{debugInstance:"bnojSc",
cond:P,then:function(){return _.U(bD,null,_.U("div",{class:n},d==null?void 0:d()))}}),_.U(_.m,{debugInstance:"HN3kad",
cond:function(){return!c().disabled&&!0},
then:function(){return _.U(_.Ne,{model:function(){return{color:xJ7(c())}}})}}))},"q"),wt5=_.rM(function(B){var c=function(){var x,P;
return((x=B.iconPosition)==null?void 0:x.call(B))==="icon-with-label"||((P=B.oneOffCustomTextWrap)==null?void 0:P.call(B))};
return _.U("div",{class:B.className,"aria-hidden":function(){var x,P,Y;return((x=B.ariaHidden)==null?void 0:x.call(B))&&(!((P=B.animatedTextProps)==null||!P.call(B))||!((Y=B.formattedButtonText)==null||!Y.call(B)))}},_.U(_.tR,null,_.U(_.Tu,{when:function(){var x;
return(x=B.animatedTextProps)==null?void 0:x.call(B)}},function(){return _.U(_.hX3,{numberText:function(){return B.animatedTextProps().numberText},
numberValue:function(){return B.animatedTextProps().numberValue},
heightPx:function(){return B.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return B.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return B.animatedTextProps().shouldAnimate},
forceRollUp:function(){return B.animatedTextProps().forceRollUp}})}),_.U(_.Tu,{when:function(){var x;
return(x=B.formattedButtonText)==null?void 0:x.call(B)}},function(){return _.U(_.RF,{text:function(){return Object.assign({},B.formattedButtonText(),{lineBreakMode:c()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":B.formattedButtonText().lineBreakMode,
alignment:c()?"TEXT_ALIGNMENT_CENTER":B.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!c()}})}),_.U(_.Tu,{when:function(){var x,P;
return((x=B.iconPosition)==null?void 0:x.call(B))==="icon-with-label"&&((P=B.text)==null?void 0:P.call(B))}},function(){return _.U(_.RF,{text:function(){return{content:B.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.U(_.Va,null,function(){return B.text})))},"r"),IkF=_.rM(function(B){return _.U(_.m,{debugInstance:"kM7Sgc",
cond:B.hasLabel,then:function(){var c;return _.U("label",{class:B.className},B.children,(c=B.textContent)==null?void 0:c.call(B))},
else:function(){return B.children}})},"s"),bD=_.rM(function(B){return B.children},"t");var anY=BR("stamper-context");var B8=_.rM(function(B){var c=B.data;var x=B.icon;var P=B.iconName;var Y=B.secondaryIcon;var g=B.secondaryIconName;var k=B.focusedOverride;bfX();var n=RwY(c),b=n.size,d=n.style;B=n.disabled;var q=n.onTap,C=n.alignByText,h=n.aTagConfig,V=n.customColors,N=n.segmentedPosition,l=n.toggled,E=n.toggleable,S=n.accessibilityLabel,M=n.onToggle,f=n.iconPosition,Z=n.oneOffCustomTextWrap,u=n.disableTextEllipsis,e=n.disableBackdropFilter,px=n.tooltipText,kI=n.ariaHidden,Ul=n.tabIndex,wC=n.buttonText,W$=n.formattedButtonText,
El=n.animatedTextProps,H$=cAd(c,x,Y,P,g,k),yw=H$.type;x=H$.shouldFocus;P=H$.hasIconLeading;Y=H$.hasIconTrailing;var r9=H$.hasIconLeadingTrailing,cs=H$.hasIconOnly;g=H$.hasIconOnly40;var NQ=H$.hasIconWithLabel;k=H$.iconButton;var n4=H$.visiblyDisabled;n=H$.overrideSmallSizeIcon;var L4=H$.iconToRender;H$=H$.secondaryIconToRender;var UF={},uX={};return _.U(IkF,{className:_.Kw("yt-spec-button-shape-with-label",(UF["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()===
"overlay-dark"},UF)),
hasLabel:NQ,textContent:function(){return _.U(wt5,{text:wC,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:Z,iconPosition:f,formattedButtonText:W$,animatedTextProps:El})}},_.U(t9d,{aTagConfig:h,
className:_.Kw("yt-spec-button-shape-next",function(){return YHY(yw())},function(){return n4()?void 0:awq(d())},function(){return g3d(b())},(uX["yt-spec-button-shape-next--disabled"]=n4,uX["yt-spec-button-shape-next--focused"]=x,uX["yt-spec-button-shape-next--icon-trailing"]=Y,uX["yt-spec-button-shape-next--icon-leading"]=P,uX["yt-spec-button-shape-next--icon-leading-trailing"]=r9,uX["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return r9()&&!(wC()||W$())},uX["yt-spec-button-shape-next--icon-button"]=
function(){return cs()||NQ()},uX["yt-spec-button-shape-next--icon-only-default"]=g,uX["yt-spec-button-shape-next--align-by-text"]=C,uX["yt-spec-button-shape-next--segmented-start"]=function(){return N()==="start"},uX["yt-spec-button-shape-next--segmented-end"]=function(){return N()==="end"},uX["yt-spec-button-shape-next--override-small-size-icon"]=n,uX["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=Z,uX["yt-spec-button-shape-next--disable-text-ellipsis"]=u,uX["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!e()&&PCI()},uX)),
style:function(){return s97(V()).style},
onClick:function(yr){q==null||q(yr);E()&&(M==null||M(yr))},
disabled:B,ariaLabel:S,toggleable:E,toggled:l,title:function(){var yr;return(yr=px())!=null?yr:""},
visiblyDisabled:n4,ariaHidden:kI,tabIndex:Ul},_.U(N4d,{data:c,hasIconLeading:P,hasIconLeadingTrailing:r9,hasIconTrailing:Y,iconButton:k,icon:L4,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:H$})))},"u");
B8.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var JwQ=_.rM(function(B){var c=B.data;var x=B.id;var P=B.hidden;var Y=B.className;var g=B.iconName;var k=B.secondaryIconName;B=_.p(_.$D(!1,void 0,"RyKHFc"));var n=B.next().value,b=B.next().value,d=function(){var C=_.cp().resolve(_.Bp(_.Xr));C&&b(C.isKeyBoardInUse())},q=function(){b(!1)};
B=_.Ho("yt-button-shape",function(C){if(_.cp().resolve(_.Bp(_.Xr)))return C.addEventListener("focusin",d),C.addEventListener("focusout",q),function(){C.removeEventListener("focusin",d);C.removeEventListener("focusout",q)}});
return _.U("yt-button-shape",{el:B,id:x,class:Y,hidden:P},_.U(_.m,{cond:c,then:function(){return _.U(B8,{data:c,iconName:g,secondaryIconName:k,focusedOverride:n})}}))},"v");
_.T("web_wiz_button_shape")&&_.xU(JwQ,"yt-button-shape",{props:{data:_.rk,id:_.rk,hidden:_.rk,className:_.rk,iconName:_.rk,secondaryIconName:_.rk},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var KQ=function(){var B=_.z.apply(this,arguments)||this;B.keyboardFocused=!1;return B};
_.w(KQ,_.z);KQ.prototype.onFocus=function(){var B=_.cp().resolve(_.Bp(_.Xr));B&&(this.keyboardFocused=B.isKeyBoardInUse())};
KQ.prototype.onBlur=function(){this.keyboardFocused=!1};
KQ.prototype.renderIdom=function(){var B=this;if(this.data){var c=tW(this.data,!!this.iconName),x=BHO(this.data);this.data.focused=this.keyboardFocused;n3I(this.data,function(){var P;lA("yt-icon",{icon:B.iconName,active:(P=B.data)==null?void 0:P.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:x},AM)},function(){var P;
lA("yt-icon",{icon:B.secondaryIconName,active:(P=B.data)==null?void 0:P.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:x},AM)});
_.aJ(this.hostElement,"yt-renderidom-finished")}};
_.AJ.Object.defineProperties(KQ,{template:{configurable:!0,enumerable:!0,get:function(){if(KIS===void 0){var B=document.createElement("template");_.I(B,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(b7Q().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore($7Q().content.cloneNode(!0),B.content.firstChild);KIS=B}B=KIS;return B}}});
KQ.prototype.onBlur=KQ.prototype.onBlur;KQ.prototype.onFocus=KQ.prototype.onFocus;_.L([_.J(iMt),_.H("design:type",Object)],KQ.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],KQ.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],KQ.prototype,"iconName",void 0);_.L([_.F(),_.H("design:type",String)],KQ.prototype,"secondaryIconName",void 0);_.L([_.F(),_.H("design:type",Object)],KQ.prototype,"keyboardFocused",void 0);
_.L([_.nF("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KQ.prototype,"onFocus",null);_.L([_.nF("focusout"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KQ.prototype,"onBlur",null);_.L([_.Em({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.T("web_wiz_button_shape")})],KQ);_.xU(_.rM(function(B){function c(){x().seconds&&g(WQA({seconds:Number(x().seconds)-Date.now()/1E3}))}
var x=B.targetTimestamp;B=B.className;var P=_.p(_.$D("",void 0,"U1Q8Ae")),Y=P.next().value,g=P.next().value;_.JR(function(){c();var k=setInterval(function(){c()},1E3);
_.lP(function(){clearInterval(k)})});
return _.U("yt-countdown",{class:_.Kw("ytCountDownHost",B)},_.U("div",null,Y))},"w"),"yt-countdown",{props:{targetTimestamp:_.rk,
className:_.cw}});_.Q7=_.rM(function(B){var c=B.data;var x=B.className;var P=B.style;var Y=B.useOutlinedIcon;var g=B.buttonOverrides;var k=B.animatedTextProps;var n=B.onClick;var b=_.Ho("button-view-model",function(E){E.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var S=c().targetId;S&&_.Bo4(_.wk(),S,E);return function(){RAm(_.wk(),E)}}),d=function(){return c().iconName},q,C=(q=_.cp().resolve(_.Bp(_.fL)))==null?void 0:q(),h=function(){var E=c();
var S=g==null?void 0:g(),M=k==null?void 0:k();if(E){var f=dJd(E.type);var Z=!!E.title||!!E.titleFormatted;var u=!(!E.iconName&&!E.iconImage);Z=u&&!Z?"icon-only":u?E.iconTrailing||E.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Z==="icon-only-40"&&(f="text");var e,px=(e=S==null?void 0:S.disabled)!=null?e:E.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||E.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";e=Object;u=e.assign;var kI=E.title,Ul=E.titleFormatted;M=M&&M.numberText&&
!isNaN(Number(M.numberValue))?M:void 0;var wC=E.accessibilityText,W$=UJY(E.style),El=qHA(E.state),H$=CCQ(E.buttonSize),yw=j97(E,b,px,n);px=px&&!E.onDisabledTap;var r9=_.S_({elementsCommand:E.onTap,forceNewState:!0});r9=yF(r9)?r9:void 0;var cs=E.customFontColor,NQ=E.customBackgroundColor;var n4=E.customBorderColor;var L4=E.customDarkThemeFontColor,UF=E.customDarkThemeBackgroundColor,uX=E.customDarkThemeBorderColor;cs=C&&L4?L4:cs;NQ=C&&UF?UF:NQ;n4=C&&uX?uX:n4;n4={color:cs?_.SF(cs):void 0,backgroundColor:NQ?
_.SF(NQ):void 0,borderColor:n4?_.SF(n4):void 0};E=u.call(e,{},{buttonText:kI,formattedButtonText:Ul,animatedTextProps:M,accessibilityLabel:wC,style:W$,type:f,state:El,size:H$,iconPosition:Z,onTap:yw,disabled:px,aTagConfig:r9,customColors:n4,tooltipText:E.tooltip},S)}else E={style:"mono",type:"text",state:"active",size:"M"};E.focused=l();return E},V=function(){return tW(h(),!!c().iconName)};
B=_.p(_.$D(!1,void 0,"vxWDPb"));q=B.next().value;var N=B.next().value,l=q;B=_.qe(function(){var E=_.cp().resolve(_.Bp(_.Xr));E&&N(E.isKeyBoardInUse());return!1});
q=_.qe(function(){N(!1);return!1});
_.IO(function(){var E,S=_.t(c==null?void 0:(E=c())==null?void 0:E.onVisible,_.Fo);S&&_.zl(S,{disableClickTracking:!0})},"x3DHkf");
return _.U("button-view-model",{el:b,class:_.Kw("yt-spec-button-view-model",x),"on:focusin":B,"on:focusout":q},_.U(_.m,{cond:function(){var E;return(c==null?0:(E=c())==null?0:E.iconImage)?{sources:[c().iconImage]}:void 0},
then:function(E){return _.U(B8,{data:h,icon:function(){return _.U(_.D9,{data:E,alt:"",targetWidth:V,targetHeight:V,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.U(B8,{data:h,icon:function(){return _.U(_.Vf,{icon:d,active:function(){return(Y==null?0:Y())?!1:h().toggled},
animateIcon:function(){var E;return!!(P==null?0:(E=P())==null?0:E.animateIcon)},
size:V})}})}}))},"x");
_.Q7.idomCompat={callbacks:{onClick:!0}};_.xU(_.rM(function(B){return _.U("yt-button-view-model",{id:B.id,class:_.Kw(B.scopingClassName,B.classes),icon:function(){var c;return(c=B.icon)==null?void 0:c.call(B)},
"dialog-dismiss":function(){var c;return((c=B.dialogDismiss)==null?0:c.call(B))?"":void 0}},_.U(_.Q7,{data:function(){var c;
return(c=B.data)==null?void 0:c.call(B)},
className:function(){var c;return(c=B.className)==null?void 0:c.call(B)},
style:function(){var c;return(c=B.style)==null?void 0:c.call(B)},
useOutlinedIcon:function(){var c;return(c=B.useOutlinedIcon)==null?void 0:c.call(B)},
buttonOverrides:function(){var c;return(c=B.buttonOverrides)==null?void 0:c.call(B)},
animatedTextProps:function(){var c;return(c=B.animatedTextProps)==null?void 0:c.call(B)},
onClick:function(c){var x;return(x=B.onClick)==null?void 0:x.call(B,c)}}))},"y"),"yt-button-view-model",{props:{data:_.rk,
className:_.rk,style:_.rk,useOutlinedIcon:_.rk,buttonOverrides:_.rk,animatedTextProps:_.rk,onClick:_.cw,scopingClassName:_.rk,id:_.rk,icon:_.rk,dialogDismiss:_.rk,classes:_.rk}});var jp=function(){var B=_.z.apply(this,arguments)||this;B.isGoalActive=!0;return B};
_.w(jp,_.z);jp.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
jp.prototype.progressBarChanged=function(){var B=_.Y9(this.hostElement).querySelector("#progress-bar-progress"),c,x,P,Y=(P=Number((c=this.creatorGoalState)==null?void 0:c.currentGoalCount)/Number((x=this.creatorGoalState)==null?void 0:x.totalGoalCount)*100)!=null?P:0,g;B.style.width=((g=Math.min(Y,100))!=null?g:0)+"%"};
jp.prototype.goalStateChanged=function(){var B;this.isGoalActive=((B=this.creatorGoalState)==null?void 0:B.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var c;B={"--yt-progress-bar-color":zyA((c=this.creatorGoalState)==null?void 0:c.progressBarColor)};_.k9(this.hostElement,B)};
jp.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.AJ.Object.defineProperties(jp.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var B;return this.isGoalActive&&!((B=this.creatorGoalState)==null||!B.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.creatorGoalState)==null?0:B.endTimestampMs){var c;B=Number((c=this.creatorGoalState)==null?void 0:c.endTimestampMs)/1E3;return{seconds:String(B)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.creatorGoalState)==null?0:B.themedTargetImage){var c;B=_.t((c=this.creatorGoalState)==null?void 0:c.themedTargetImage,b0t);return this.isAppDarkTheme()?B==null?void 0:B.imageDark:B==null?void 0:B.imageLight}}}});
_.AJ.Object.defineProperties(jp,{template:{configurable:!0,enumerable:!0,get:function(){return fGm()}}});
jp.prototype.goalStateChanged=jp.prototype.goalStateChanged;jp.prototype.progressBarChanged=jp.prototype.progressBarChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],jp.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);
_.L([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(B,c){return _.X9(B.entities,"creatorGoalEntity",c)}}),
_.H("design:type",Object)],jp.prototype,"creatorGoalState",void 0);_.L([_.F(),_.H("design:type",Object)],jp.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],jp.prototype,"isGoalActive",void 0);_.L([_.Q("creatorGoalState","isGoalActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jp.prototype,"shouldShowCountdown",null);_.L([_.Q("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],jp.prototype,"endTimestamp",null);
_.L([_.Q("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],jp.prototype,"targetIconThemedImage",null);_.L([_.bF("creatorGoalState.currentGoalCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jp.prototype,"progressBarChanged",null);_.L([_.bF("creatorGoalState.creatorGoalState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jp.prototype,"goalStateChanged",null);
_.L([_.Em({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],jp);_.G(jp,"yt-creator-goal-progress-flow-view-model",function(){return fGm()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var WII;var lkF;var U2=function(){return _.z.apply(this,arguments)||this};
_.w(U2,_.z);U2.prototype.attached=function(){var B,c,x;if(this==null?0:(B=this.data)==null?0:(c=B.pdgPurchasedBumperLoggingDirectives)==null?0:(x=c.loggingDirectives)==null?0:x.trackingParams){var P,Y,g;THA(this==null?void 0:(P=this.data)==null?void 0:(Y=P.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=Y.loggingDirectives)==null?void 0:g.trackingParams)}};
U2.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],U2.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],U2.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],U2);
_.G(U2,"yt-live-chat-item-bumper-view-model",function(){if(lkF===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;WII===void 0&&(WII=document.createElement("template"));var P=WII;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lkF=B}B=lkF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Emt;var O7S;_.AW=function(B,c){this.data=B;this.actions=c;this.data=B;this.actions=c};
_.yf=function(){};_.dG={};_.dG.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(B,c){Vfo(this.hostElement,B,c)},
getNavigationEndpointPopupAction:function(B){return tfY(B,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(B,c){w2I(this.hostElement,B,c,this.openPopupConfig)}};var FLd=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.q3={};
_.q3.YtEndpointBehavior=[_.dG.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.v5("openPopupConfig");(this.useClickHandler=_.zu("useClickHandler",!1))?this.hostElement.addEventListener("click",X2(this,this.onEndpointClick_)):(I1(this.hostElement,"tap",X2(this,this.onEndpointTap_)),I1(this.hostElement,"touchend",X2(this,this.onEndpointTouchEnd_)));I1(this.hostElement,"touchstart",X2(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
X2(this,this.onEndpointTapStart_))},
onEndpointClick_:function(B){JAl(this.hostElement,B,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(B){var c=this.hostElement,x=this.openPopupConfig,P=this.disableCommandHandlerOverride;P=P===void 0?!1:P;var Y=NH7(B);if(Y){Y.href&&MA(Y.href);var g=B.detail;var k=g.sourceEvent;g=g.preventer;k=k.button!==void 0?k.button===0&&!Ww(k):g?!Ww(g):!0;Y.data&&k&&IwX(c,Y,B,x,P)}},
onEndpointTouchEnd_:function(B){Ww(B)||NH7(B)&&B.preventDefault()},
onEndpointTapStart_:function(B){o37(B)}}];var v3o="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),SHY=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var omI={};omI.YtPlaintextBehavior=[_.VT,{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(B){B.preventDefault();B=B.clipboardData.getData("text/plain");document.execCommand("insertText",!1,B)},
preventRichTextFormatting_:function(B){_.UZ&&(B=B.detail.keyboardEvent,B.stopImmediatePropagation(),B.preventDefault())}}];var Q59;var FIS;var CQ=function(){var B=_.z.apply(this,arguments)||this;B.ignoreShadyDom=!1;B.hasChange_=!1;B.hasSetTitle_=!1;B.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")==="WEB";B.ytFormattedStringObserverHandlerKeys_=void 0;return B};
_.w(CQ,_.z);_.a=CQ.prototype;_.a.created=function(){this.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.a.ready=function(){_.v5("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_()};
_.a.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.a.detached=function(){this.unobserveIOObservers_()};
_.a.clearContents_=function(){for(var B=this.getRoot(),c=B.lastChild;c&&c.tagName!=="STYLE";){try{B.removeChild(c)}catch(x){break}c=B.lastChild}};
_.a.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var B=_.p(this.ytFormattedStringObserverHandlerKeys_),c=B.next();!c.done;c=B.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(c.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.a.resetForAttributedString=function(){var B=this.getRoot();!B.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),B.appendChild(this.ytAttributedStringElementRef))};
_.a.resetForFormattedString=function(){var B=this.getRoot(),c=B.querySelector("yt-attributed-string");c&&(this.ytAttributedStringElementRef=B.removeChild(c))};
_.a.textChanged=function(){this.textChanged_(this.text)};
_.a.textChanged_=function(B){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!B||!B.runs&&!B.simpleText;if(_.T("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var c=this.hostElement.firstChild;c&&c.nodeName==="FONT";){var x=c;c=c.nextSibling;this.hostElement.removeChild(x)}c=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
x=B.simpleText;var P;!x&&((P=B.runs)==null?void 0:P.length)===1&&this.isSimpleString_(B.runs[0])&&(x=B.runs[0].text);x!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.v5("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(x!==void 0){try{c.textContent=x}catch(Y){}c.textContent||(this.isEmpty=!0)}else B=B.runs,x!==void 0&&(B=[{text:x}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),B&&this.updateText_(B),
c.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.a.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)};
_.a.computeAriaLabel_=function(B){return B};
_.a.computeEllipsisTruncateStyling=function(B,c){return B&&!c};
_.a.computeUseAttributedString=function(B){return _.T("web_replace_formatted_with_attributed_string")&&B4d(B)&&!this.disableAttributedString&&!this.enableContentEditable};
_.a.setNodeStyle_=function(B,c){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.T("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?c.removeAttribute("dir"):c.setAttribute("dir","auto");c.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");c.style.color="";var x=null;this.noStyles||(B.bold&&(c.classList.add("bold"),x="bold"),B.deemphasize&&(c.classList.add("deemphasize"),x="deemphasize"),B.italics&&c.classList.add("italic"),
B.strikethrough&&c.classList.add("strikethrough"),B.errorUnderline&&(c.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),B.bracket&&c.classList.add("bracket"),B.textColor&&(c.style.color=_.zF(B.textColor)));x!==c.getAttribute("style-target")&&(x?c.setAttribute("style-target",x):c.removeAttribute("style-target"))};
_.a.setUpVisibilityLogging_=function(B,c){var x=this;this.setNodeTrackingParams_(B,c);var P;((P=c.data)==null?0:P.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(B=this.ytRendererBehavior.visibilityObserver.observe(c,function(Y){var g=x.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(Y)},this.ytRendererBehavior.visibilityOptionVisible_),c=this.ytRendererBehavior.visibilityObserver.observe(c,function(Y){var g=x.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(Y)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(B),this.ytFormattedStringObserverHandlerKeys_.push(c))};
_.a.setNodeTrackingParams_=function(B,c){c.data||(c.data={});if((B=B.loggingDirectives?B.loggingDirectives.trackingParams:null)||c.data.trackingParams)c.data.trackingParams=B};
_.a.computeHasLinkOnly_=function(B){return!(!B||B.length!==1||this.noEndpoints||!B[0].navigationEndpoint)};
_.a.getRoot=function(){var B=this.buildScopeDomOptions();return this.enableContentEditable?_.Y9(_.Y9(this.hostElement,B).querySelector("[contenteditable]")):_.Y9(this.hostElement,B)};
_.a.fixContenteditableScope=function(){var B=function(c){c&&(c.nodeType===1&&c.classList&&(c.classList.add("style-scope"),c.classList.add("yt-formatted-string")),c.childNodes&&c.childNodes.forEach(function(x){B(x)}))};
B(this.getRoot())};
_.a.updateText_=function(B){for(var c=B.length,x=this.getRoot(),P=x.firstChild;P&&P.nodeName==="STYLE";)P=P.nextSibling;for(var Y=0;Y<c&&P;){var g=B[Y],k=_.T("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(P.nodeName==="#text"){P.textContent!=k&&(P.textContent=k);Y++;P=P.nextSibling;continue}else break;if(_.t(g,om))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(P.nodeName!=="A")break;this.setDataOnAnchor_(P,
g.navigationEndpoint)}else if(P.nodeName!=="SPAN")break;this.setNodeStyle_(g,P);this.setUpVisibilityLogging_(g,P);P.textContent!=k&&(P.textContent=k);Y++;P=P.nextSibling}if(P)for(g=x.lastChild,P=Y?P.previousSibling:null;g&&g!=P;){try{x.removeChild(g)}catch(n){break}g=x.lastChild}Y!==c&&this.addTextNodes_(B,Y)};
_.a.addTextNodes_=function(B,c){for(var x=document.createDocumentFragment(),P=B.length;c<P;c++){var Y=B[c],g=_.T("remove_cr_char")&&Y.text?Y.text.replace("\r",""):Y.text;if(this.isSimpleString_(Y)&&!this.useMixedDirectionFormattedStrings)x.appendChild(document.createTextNode(g));else{var k=_.t(Y,om);if(k){if(k.image){var n=document.createElement("img");k.isCustomEmoji||n.classList.add("small-emoji");n.classList.add("emoji");k.isCustomEmoji&&(n.dataset.emojiId=k.emojiId);n.src=_.Pw(k.image.thumbnails,
this.emojiSize);(Y=this.get("image.accessibility.accessibilityData.label",k))?n.alt=Y:k.shortcuts&&k.shortcuts.length>0?n.alt=k.shortcuts[0]:k.emojiId&&(n.alt=k.emojiId);x.appendChild(n);this.hasEmoji=!0}}else!this.noEndpoints&&Y.navigationEndpoint?(n=document.createElement("a"),n.classList.add("yt-simple-endpoint"),n.setAttribute("spellcheck","false"),this.setDataOnAnchor_(n,Y.navigationEndpoint)):n=document.createElement("span"),this.setNodeStyle_(Y,n),this.setUpVisibilityLogging_(Y,n),n.appendChild(document.createTextNode(g)),
x.appendChild(n)}}this.getRoot().appendChild(x)};
_.a.isSimpleString_=function(B){return(this.noEndpoints||!B.navigationEndpoint)&&!_.t(B,om)&&(this.noStyles||!(B.bold||B.deemphasize||B.italics||B.strikethrough||B.errorUnderline||B.bracket||B.textColor))&&!B.loggingDirectives};
_.a.getRawText=function(){return _.iG(this.text)};
_.a.getFirstRunText=function(){var B;if(((B=this.text)==null?0:B.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.a.setFirstRunText=function(B){var c;((c=this.text)==null?0:c.runs)&&this.text.runs[0]&&(this.text.runs[0].text=B,this.textChanged_(this.text))};
_.a.setDataOnAnchor_=function(B,c){var x=this;!_.T("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(c)||this.isSignalServiceEndpoint_(c)?(B.onclick=this.serviceEndpointHandler_(c),IW(B,"#")):V_I({text:this.text,command:c},function(){FlX(B,c,x.target)})};
_.a.isServiceEndpoint_=function(B){var c;return!((c=_.t(B==null?void 0:B.commandMetadata,_.Br))==null||!c.sendPost)};
_.a.isSignalServiceEndpoint_=function(B){return!!_.t(B,_.KW)};
_.a.serviceEndpointHandler_=function(B){var c=this;return function(x){_.kC(c.hostElement,[B]);x.preventDefault()}};
_.a.overrideAriaLabelChanged_=function(){var B=this.getRoot();this.enableContentEditable&&B&&B.setAttribute("aria-label",this.overrideAriaLabel)};
_.a.enableContentEditableChanged_=function(){var B=this,c=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),c=_.Y9(this.hostElement,c),!c.lastChild||c.lastChild instanceof HTMLElement&&c.lastChild.id!=="contenteditable-root"){var x=document.createElement("div");x.id="contenteditable-root";x.setAttribute("contenteditable","true");x.setAttribute("dir","auto");x.onfocus=function(){B.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
c.appendChild(x);this.overrideAriaLabel&&x.setAttribute("aria-label",this.overrideAriaLabel)}}else x=_.aB(this.hostElement).firstChild,x instanceof HTMLElement&&x.id==="contenteditable-root"&&_.Y9(this.hostElement,c).removeChild(x)};
_.a.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.a.getNodesForVisibilityLogging_=function(){return _.kV(this.getRoot().childNodes,function(B){var c;return!((c=B.data)==null||!c.trackingParams)})};
_.a.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.a.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var B=this.ytRendererBehavior.getVisibilityLogger();B&&this.getNodesForVisibilityLogging_().forEach(function(c){B.reportShown(c)})}};
_.a.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var B=this.ytRendererBehavior.getVisibilityLogger();B&&this.getNodesForVisibilityLogging_().forEach(function(c){B.reportHidden(c)})}};
_.AJ.Object.defineProperties(CQ.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.T("enable_mixed_direction_formatted_strings")}}});
CQ.prototype.enableContentEditableChanged_=CQ.prototype.enableContentEditableChanged_;CQ.prototype.overrideAriaLabelChanged_=CQ.prototype.overrideAriaLabelChanged_;CQ.prototype.ellipsisTruncateChanged_=CQ.prototype.ellipsisTruncateChanged_;CQ.prototype.textChanged=CQ.prototype.textChanged;_.L([_.J(omI.YtPlaintextBehavior),_.H("design:type",Object)],CQ.prototype,"ytPlaintextBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],CQ.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CQ.prototype,"text",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"noEndpoints",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"noStyles",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],CQ.prototype,"isDarkTheme",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],CQ.prototype,"splitLines",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],CQ.prototype,"forceDefaultStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],CQ.prototype,"ellipsisTruncate",void 0);_.L([_.F(),_.H("design:type",Object)],CQ.prototype,"ignoreShadyDom",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.H("design:type",Boolean)],CQ.prototype,"ellipsisTruncateStyling",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.H("design:type",String)],CQ.prototype,"ariaLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],CQ.prototype,"isEmpty",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.H("design:type",Boolean)],CQ.prototype,"hasLinkOnly_",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"hasEmoji",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"disableAttributedString",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"isOverlay",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"linkInheritColor",void 0);
_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"noPreWrap",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"userInput",void 0);_.L([_.F({value:16}),_.H("design:type",Number)],CQ.prototype,"emojiSize",void 0);_.L([_.F(),_.H("design:type",String)],CQ.prototype,"target",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"enableContentEditable",void 0);_.L([_.F(),_.H("design:type",String)],CQ.prototype,"overrideAriaLabel",void 0);
_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"respectHtmlDir",void 0);_.L([_.F(),_.H("design:type",Boolean)],CQ.prototype,"respectLangDir",void 0);_.L([_.Q("plaintextOnly"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CQ.prototype,"useMixedDirectionFormattedStrings",null);_.L([_.F({computed:"computeUseAttributedString(text)"}),_.H("design:type",Boolean)],CQ.prototype,"useYtAttributedString",void 0);
_.L([_.bF("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CQ.prototype,"textChanged",null);_.L([_.bF("ellipsisTruncate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CQ.prototype,"ellipsisTruncateChanged_",null);_.L([_.bF("overrideAriaLabel"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CQ.prototype,"overrideAriaLabelChanged_",null);
_.L([_.bF("enableContentEditable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CQ.prototype,"enableContentEditableChanged_",null);_.L([_.Em({is:"yt-formatted-string",disableElementRegistration:!0})],CQ);
_.G(CQ,"yt-formatted-string",function(){if(FIS===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Q59===void 0&&(Q59=document.createElement("template"));var P=Q59;x.call(c,P.content.cloneNode(!0),B.content.firstChild);FIS=B}B=FIS;return B});var vmn;var zXd;var SCZ;var ywm;var h6=function(){var B=_.z.apply(this,arguments)||this;B.focused=!1;B.disabled=!1;B.isOverlay=!1;return B};
_.w(h6,_.z);h6.prototype.triggerDown=function(){if(!this.disabled){_.gM(this.hostElement,"down",!0);var B;(B=this.currentAnimation)==null||B.cancel()}};
h6.prototype.triggerUp=function(){if(!this.disabled){_.gM(this.hostElement,"down",!1);var B=this.fillElement;var c=this.strokeElement;typeof GroupEffect==="function"?(B=new GroupEffect([uc7(B),DW7(c)]),B=new Animation(B,document.timeline)):B=new m70(B,c);this.currentAnimation=B;var x;(x=this.currentAnimation)==null||x.play()}};
_.L([_.jr(".stroke"),_.H("design:type",HTMLElement)],h6.prototype,"strokeElement",void 0);_.L([_.jr(".fill"),_.H("design:type",HTMLElement)],h6.prototype,"fillElement",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h6.prototype,"focused",void 0);_.L([_.F(),_.H("design:type",Object)],h6.prototype,"disabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h6.prototype,"isOverlay",void 0);_.L([_.Em({is:"yt-interaction",disableElementRegistration:!0})],h6);
_.G(h6,"yt-interaction",function(){if(ywm===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;SCZ===void 0&&(SCZ=document.createElement("template"));var P=SCZ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ywm=B}B=ywm;return B},{mode:2});var mW=function(){return _.z.apply(this,arguments)||this};
_.w(mW,_.z);_.a=mW.prototype;_.a.ready=function(){var B=this,c=_.Y9(this.hostElement).querySelector("#button");c.addEventListener("focus",function(){pTd||(pTd=new sS3);B.keyboardFocused=pTd.isKeyBoardInUse()});
c.addEventListener("blur",function(){B.keyboardFocused=!1;B.rippleUp_()})};
_.a.computeTabIndex_=function(B){return B?-1:0};
_.a.computeButtonAriaPressed_=function(B){if(this.toggleable)return B?"true":"false"};
_.a.rippleDown_=function(){_.Y9(this.hostElement).querySelector("#interaction").triggerDown()};
_.a.rippleUp_=function(){_.Y9(this.hostElement).querySelector("#interaction").triggerUp()};
_.a.onPressedChanged_=function(){var B=_.aB(_.Y9(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.aB(_.Y9(this.hostElement).querySelector("#button")).children[0];B&&(B.active=this.pressed)};
mW.prototype.onPressedChanged_=mW.prototype.onPressedChanged_;mW.prototype.rippleUp_=mW.prototype.rippleUp_;mW.prototype.rippleDown_=mW.prototype.rippleDown_;_.L([_.F(),_.H("design:type",String)],mW.prototype,"label",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],mW.prototype,"disabled",void 0);_.L([_.F(),_.H("design:type",Boolean)],mW.prototype,"pressed",void 0);_.L([_.F(),_.H("design:type",Object)],mW.prototype,"toggleable",void 0);
_.L([_.F(),_.H("design:type",Boolean)],mW.prototype,"untabbable",void 0);_.L([_.F(),_.H("design:type",Boolean)],mW.prototype,"keyboardFocused",void 0);_.L([_.nF("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mW.prototype,"rippleDown_",null);_.L([_.nF("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mW.prototype,"rippleUp_",null);
_.L([_.bF("pressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mW.prototype,"onPressedChanged_",null);_.L([_.Em({is:"yt-icon-button",disableElementRegistration:!0})],mW);
_.G(mW,"yt-icon-button",function(){if(zXd===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;vmn===void 0&&(vmn=document.createElement("template"));var P=vmn;x.call(c,P.content.cloneNode(!0),B.content.firstChild);zXd=B}B=zXd;return B},{mode:2});var Gc0=_.r2(["aria-"]),TO={};TO.YtRenderButtonBehavior=[_.R.YtRendererBehavior,_.q3.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!!_.cp().resolve(_.Bp(_.Xr))&&_.T("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 B=this.computeHref_(this.endpoint,!0);B?IW(this.elements_.endpoint,B):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){B=this.buttonClass.split(" ");B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=c.value,_.gM(this.hostElement,c,!0),this.elements_.button&&_.gM(this.elements_.button,c,!0),this.elements_.text&&_.gM(this.elements_.text,c,!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&&(B=null,this.buttonAccessibility&&(B=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=B:B?_.Zz([_.cM(Gc0)],this.elements_.button,"aria-label",B):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var B=_.cp().resolve(_.Bp(_.Xr));B&&(this.keyboardFocused=B.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.PV("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,_.m4(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.m4(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(B,c){if(c)for(B=c.split(" "),B=_.p(B),c=B.next();!c.done;c=B.next())c=c.value,_.gM(this.hostElement,c,!1),this.elements_.button&&_.gM(this.elements_.button,c,!1),this.elements_.text&&_.gM(this.elements_.text,c,!1)},
buttonIconChanged_:function(B){this.elements_.icon?B?(this.elements_.icon.icon=B,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.m4(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.sm(this.hostElement,"is-paper-button-with-icon",!1)):B&&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"&&_.m4(this.elements_.button).appendChild(this.elements_.icon):_.m4(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.sm(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(B){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,B){var c=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(B){case "yt_icon_button_with_label":c=!0;_.gM(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();B=_.m4(this.elements_.button).firstElementChild;
this.elements_.icon=B;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.m4(this.elements_.endpoint).appendChild(this.elements_.button);_.m4(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.PV("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;_.m4(this.elements_.button).appendChild(this.elements_.text);_.m4(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":c=!0,this.elements_.button=this.getYtIconButton_(),B=_.m4(this.elements_.button).firstElementChild,this.elements_.icon=B,this.setIconActive_(this.elements_.icon),
_.m4(this.elements_.endpoint).appendChild(this.elements_.button)}_.sm(this.hostElement,"is-icon-button",c);_.sm(this.hostElement,"is-paper-button",!c);_.sm(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 x;_.Y9((x=this.container.hostElement)!=null?x:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.m4(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(B){if(B!=void 0||this.disabled)this.disabled=B,this.elements_.button&&(this.elements_.button.disabled=B)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(B){_.T("kevlar_system_icons")&&B&&this.data&&(this.data.isSelected!==void 0?B.active=this.data.isSelected:this.data.isToggled!==void 0&&(B.active=this.data.isToggled))},
observeBasicPalette_:function(B){_.E9(this.hostElement,B)},
disabledChanged_:function(B){this.data&&this.set("data.isDisabled",B)},
onYtButtonTap_:function(B){if(this.disabled)B.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.kC(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(B=this.disableCommandHandlerOverride,!this.data||!this.data.command||B||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.T("handle_service_request_actions")||_.kC(this.hostElement,[this.serviceEndpoint]),
_.aJ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.T("handle_service_request_actions")?(B=[],this.serviceEndpoint&&B.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&B.push(this.data.command),B.length&&_.XX(this.hostElement,B,this.hostElement)):this.data&&this.data.command&&(B=this.data.command,B.accountUnlinkCommand||B.accountLinkCommand||B.insertAdCommand||B.insertHighlightMarkerCommand||
B.createLivestreamHighlightClipCommand||B.getVideoUploadFeedbackCommand||B.musicDeletePrivatelyOwnedEntityCommand||B.ypcCancelRecurrenceEndpoint||B.getMultiSelectCommandEndpoint?_.kC(this.hostElement,[B]):_.XX(this.hostElement,[B],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 B,c=_.Y9((B=this.container.hostElement)!=null?B:this.container);c.lastChild&&c.lastChild.tagName!="STYLE";)try{c.removeChild(c.lastChild)}catch(x){break}},
getYtIconButton_:function(){var B=this.reuseEnabled_()?_.PV("yt-icon-button"):document.createElement("yt-icon-button"),c=_.m4(B).firstElementChild;if(c&&c.is!="yt-icon"){for(c=_.m4(B);c.lastChild;)c.removeChild(c.lastChild);c=null}c||(c=this.getIcon_(),this.setIconActive_(c),_.m4(B).appendChild(c));return B},
reuseEnabled_:function(){return _.T("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.PV("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.PV("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.M95={};
_.M95.YtButtonBehavior=[TO.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var B=this.data;B&&(this._setEndpoint(this.computeEndpoint_(B)),this._setServiceEndpoint(this.computeServiceEndpoint_(B)),this._setCommand(this.computeCommand_(B)),this._setButtonIcon(this.computeButtonIcon_(B)),this._setButtonText(this.computeButtonText_(B,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(B)),this._setButtonTooltip(this.computeTooltip_(B)),this._setButtonClass(this.computeButtonClass_(B)),this._setIconPositionType(this.computeIconPositionType_(B)),this.updateRenderedElements())},
setPressedState:function(B){var c;if((c=this.elements_)==null?0:c.button)this.elements_.button.pressed=!!B},
computeIconPositionType_:function(B){return B&&B.iconPosition||null},
computeEndpoint_:function(B){var c=B&&B.navigationEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.url"),P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:B&&B.command&&B.command.modalEndpoint?B.command:x&&!P&&B.command?B.command:null},
computeServiceEndpoint_:function(B){var c=B&&B.serviceEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:x&&B.command?B.command:null},
computeCommand_:function(B){return B&&B.command||null},
computeButtonIcon_:function(B){return B&&B.icon&&B.icon.iconType?_.$0(B.icon.iconType):null},
computeButtonText_:function(B,c){return!c&&B&&B.text||null},
computeAccessibility_:function(B){return this.get("accessibilityData.accessibilityData",B)||B&&B.accessibility||(B&&B.text?{label:this.getSimpleString(B.text)}:null)},
computeTooltip_:function(B){return B?B.isDisabled&&B.disabledTooltip||B.tooltip||null:null},
computeButtonClass_:function(B){var c=B&&B.style?B.style.toLowerCase().replace(/_/g,"-")+" ":"";c+=B&&B.size?B.size.toLowerCase().replace(/_/g,"-")+" ":"";B.colorData&&B.colorData.basicColorPaletteData&&B.colorData.basicColorPaletteData.borderColor&&(c+="palette-with-border");return c.trim()}}];var O9={};var LI0;var Z7Z;var H7W,fk3=function(){return H7W!==void 0?H7W:H7W=document.createElement("template")};
document.head.appendChild(fk3().content);var i70;var AwZ,ux0=function(){return AwZ!==void 0?AwZ:AwZ=document.createElement("template")};
document.head.appendChild(ux0().content);var D7Q;var rw0,RX9=function(){return rw0!==void 0?rw0:rw0=document.createElement("template")};
document.head.appendChild(RX9().content);var eXy;var B1F=document.head,cN5=B1F.appendChild,x59;if(eXy===void 0){var PQ9=document.createElement("template");_.I(PQ9,"\x3c!--css-build:shady--\x3e");PQ9.content.insertBefore(RX9().content.cloneNode(!0),PQ9.content.firstChild);eXy=PQ9}x59=eXy;cN5.call(B1F,x59.content);var YzQ=document.head,ahF=YzQ.appendChild,gB9;if(D7Q===void 0){var shy=document.createElement("template");_.I(shy,"\x3c!--css-build:shady--\x3e");shy.content.insertBefore(ux0().content.cloneNode(!0),shy.content.firstChild);D7Q=shy}gB9=D7Q;ahF.call(YzQ,gB9.content);var p05=document.head,kJQ=p05.appendChild,X04;if(i70===void 0){var $59=document.createElement("template");_.I($59,"\x3c!--css-build:shady--\x3e");$59.content.insertBefore(fk3().content.cloneNode(!0),$59.content.firstChild);i70=$59}X04=i70;kJQ.call(p05,X04.content);var nB0;_.o2("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");nB0=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.Vq=function(){return _.z.apply(this,arguments)||this};
_.w(_.Vq,_.z);_.Vq.prototype.created=function(){this.openPopupConfig=_.v5("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Vq.prototype.onYtNavigate_=function(B){var c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);c&&(this.ytOpenPopupBehavior.openPopup(c),B.stopPropagation(),B.preventDefault())};
_.AJ.Object.defineProperties(_.Vq,{template:{configurable:!0,enumerable:!0,get:function(){if(Z7Z===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;LI0===void 0&&(LI0=document.createElement("template"));var P=LI0;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Z7Z=B}B=Z7Z;return B}}});
_.Vq.prototype.onYtNavigate_=_.Vq.prototype.onYtNavigate_;_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],_.Vq.prototype,"ytOpenPopupBehavior",void 0);_.L([_.J(_.M95.YtButtonBehavior),_.H("design:type",Object)],_.Vq.prototype,"ytButtonBehavior",void 0);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.Vq.prototype,"onYtNavigate_",null);
_.L([_.Em({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:nB0})],_.Vq);var biZ;var K99=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live"),t6=function(){var B=_.z.apply(this,arguments)||this;B.isPressed=!1;B.forceIconButton=!1;B.forceIconOnly=!1;B.forceModernIconButton=!1;B.skipCommandHandling=!1;B.alignByText=!1;B.fitToVisibleBounds=!0;B.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};B.onTap=function(c){_.aJ(B.hostElement,"yt-service-request-sent-button-renderer",c)};
return B};
_.w(t6,_.z);_.a=t6.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.a.onClick=function(B){var c,x=this.disabled||((c=this.data)==null?void 0:c.isDisabled);c=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");x&&c&&B.stopPropagation()};
_.a.computeIcon=function(){var B,c,x=(B=this.data)==null?void 0:(c=B.icon)==null?void 0:c.iconType;if(x)return _.$0(x)};
_.a.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.a.handleUpdateButtonAction=function(B){B=_.t(B,yd5);var c=_.t(B==null?void 0:B.updatedButton,_.z3);if(this.data&&B&&c){var x=this.data;x.targetId&&B.targetId&&x.targetId===B.targetId&&(this.data=c)}};
_.AJ.Object.defineProperties(t6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var B=this;if(this.data){var c=HfX({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.aJ(B.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.aJ(B.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});c.alignByText=this.alignByText;return c}}}});
_.AJ.Object.defineProperties(t6,{template:{configurable:!0,enumerable:!0,get:function(){if(biZ===void 0){var B=document.createElement("template");_.I(B,'\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>');biZ=B}B=biZ;return B}}});
t6.prototype.onClick=t6.prototype.onClick;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],t6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"isPressed",void 0);
_.L([_.F(),_.H("design:type",Object)],t6.prototype,"forceIconButton",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"forceIconOnly",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"forceModernIconButton",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"skipCommandHandling",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"alignByText",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"buttonTooltipPosition",void 0);
_.L([_.F(),_.H("design:type",Object)],t6.prototype,"fitToVisibleBounds",void 0);_.L([_.F({computed:"computeTooltip(data)"}),_.H("design:type",Object)],t6.prototype,"tooltip",void 0);_.L([_.F(),_.H("design:type",Object)],t6.prototype,"overrides",void 0);_.L([_.F(),_.H("design:type",Boolean)],t6.prototype,"disabled",void 0);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],t6.prototype,"onClick",null);
_.L([_.Q("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.H("design:type",Object),_.H("design:paramtypes",[])],t6.prototype,"computedButtonShape",null);_.L([_.Em({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!K99,cssBuildOptOut:!0}),_.Em({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!K99,cssBuildOptOut:!0})],t6);var jhI;var U5y;var wG=function(){var B=_.z.apply(this,arguments)||this;B.empty_=!0;B.loadTime=Infinity;B.pendingPaint=!1;B.hasChange_=!1;B.oldThumbnail_=null;B.oldDelayedSrc_="";B.objectURL_=null;return B};
_.w(wG,_.z);_.a=wG.prototype;_.a.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.a.ready=function(){var B=this.shouldShowPlaceholder_();_.gM(this.hostElement,"no-transition",!0);B&&this.hostElement.classList.add("with-placeholder")};
_.a.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.a.isThumbPreloaded_=function(B){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",B)};
_.a.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||d53};
_.a.computeThumbnailSrc_=function(B){return B&&B.thumbnails?_.Pw(B.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.a.computeAlt_=function(){var B=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&B||""};
_.a.thumbnailChanged_=function(){var B=_.p([this.thumbnail,this.oldThumbnail_]),c=B.next().value;B=B.next().value;this.oldThumbnail_=c;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(B=this.computeThumbnailSrc_(B),this.computeThumbnailSrc_(c)===B))return;_.T("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(c)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):c&&_.zu("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.fl(this,this.onReload_):_.fl(this,this.onShow_):this.resetImage_();c&&(this.hostElement.style.opacity=""+c.opacity)}};
_.a.delayedSrcChanged_=function(){var B=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===B||this.resetImage_()};
_.a.setSrc_=function(B){B?(_.Y9(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Y9(this.hostElement).querySelector("#img").src=B):(_.Y9(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.a.resetImage_=function(){uRC(this.hostElement);this.empty_=!0;this.setSrc_(d53);this.ytRendererBehavior.invalidate(!1)};
_.a.observePlaceholderColor_=function(){var B=this.thumbnail&&this.thumbnail.placeholderColor;B?this.hostElement.style.backgroundColor=_.zF(B):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.a.onLoad_=function(){_.Y9(this.hostElement).querySelector("#img").src&&_.Y9(this.hostElement).querySelector("#img").src!==d53&&(AN7(this.hostElement),this.notifyOnLoaded&&_.aJ(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.a.onError_=function(){var B=this;if(_.T("web_use_cache_for_image_fallback"))xWY(_.Y9(this.hostElement).querySelector("#img").src).then(function(c){B.objectURL_=_.Vc(c).toString();B.setSrc_(B.objectURL_)}).catch(function(){_.T("kevlar_woffle_fallback_image")&&B.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.a.onPrescanVisible=function(){this.onShow_()};
_.a.onVisible=function(){if(_.T("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.a.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var B=this.computeSrc_();B!==_.Y9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(B))}};
_.a.onReload_=function(){this.empty_=!1;var B=this.computeSrc_();B!==_.Y9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(B))};
_.a.shouldShowPlaceholder_=function(){return _.T("kevlar_thumbnail_bg")};
wG.prototype.observePlaceholderColor_=wG.prototype.observePlaceholderColor_;wG.prototype.delayedSrcChanged_=wG.prototype.delayedSrcChanged_;wG.prototype.thumbnailChanged_=wG.prototype.thumbnailChanged_;_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"alt",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],wG.prototype,"ariaHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"ariaLabel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"id",void 0);_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],wG.prototype,"ytVisibilityBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",String)],wG.prototype,"delayedSrc",void 0);
_.L([_.F(),_.H("design:type",Object)],wG.prototype,"thumbnail",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"loaded",void 0);_.L([_.F(),_.H("design:type",Boolean)],wG.prototype,"notifyOnLoaded",void 0);_.L([_.F(),_.H("design:type",Number)],wG.prototype,"height",void 0);_.L([_.F(),_.H("design:type",Number)],wG.prototype,"width",void 0);_.L([_.F({value:function(){return"width"}}),
_.H("design:type",String)],wG.prototype,"dimension",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"fit",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"fitHeight",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"fitWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"objectFit",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"objectPosition",void 0);_.L([_.F(),_.H("design:type",String)],wG.prototype,"preferredThumbnail",void 0);_.L([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.H("design:type",String)],wG.prototype,"alt_",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],wG.prototype,"sharedTooltipText",void 0);
_.L([_.F(),_.H("design:type",Boolean)],wG.prototype,"ftlEligible",void 0);_.L([_.F({value:void 0}),_.H("design:type",String)],wG.prototype,"observeHiddenOption",void 0);_.L([_.F({value:"observe_once"}),_.H("design:type",String)],wG.prototype,"observePrescanOption",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wG.prototype,"roundedContainer",void 0);
_.L([_.CF("thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wG.prototype,"thumbnailChanged_",null);_.L([_.CF("delayedSrc"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wG.prototype,"delayedSrcChanged_",null);_.L([_.bF("thumbnail.placeholderColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wG.prototype,"observePlaceholderColor_",null);
_.L([_.Em({is:"yt-img-shadow",disableElementRegistration:!0})],wG);var d53=_.zu("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.gX()(wG,"yt-img-shadow",function(){if(U5y===void 0){var B=document.createElement("template");_.I(B,'\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">');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;jhI===void 0&&(jhI=document.createElement("template"));var P=jhI;x.call(c,P.content.cloneNode(!0),B.content.firstChild);U5y=B}B=U5y;return B},{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 DEX;_.N3=new _.BL("SCREEN_MANAGER_TOKEN");DEX=new _.BL("LOG_INITIAL_SCREEN_TOKEN");_.Jb=_.rM(function(B){function c(px){return _.t(px,_.Tj)}
function x(){var px=P().isTogglingDisabled||h()?l():!l();E(px);M(!1);if(!P().isTogglingDisabled){var kI;(kI=k)==null||kI(!!px)}var Ul;((Ul=g)==null?0:Ul())||_.bd(_.cp().resolve(_.N3),P().trackingParams);var wC;if(!px||!c(P().defaultButtonViewModel)||(wC=g)!=null&&wC()){var W$;!c(P().toggledButtonViewModel)||((W$=g)==null?0:W$())||_.bd(_.cp().resolve(_.N3),c(P().toggledButtonViewModel).trackingParams)}else _.bd(_.cp().resolve(_.N3),c(P().defaultButtonViewModel).trackingParams)}
var P=B.data,Y=B.buttonShapeOverrides,g=B.disableExplicitClickLogging,k=B.onToggle,n=B.style,b=B.useOutlinedIcon,d=B.className,q=function(){var px,kI;return l()?(px=B.animatedTextPropsToggled)==null?void 0:px.call(B):(kI=B.animatedTextPropsDefault)==null?void 0:kI.call(B)},C=_.db(function(){return q()?Object.assign({},q(),{shouldAnimate:S()}):void 0},void 0,"ZKEa0b"),h=function(){var px;
return((px=u())==null?void 0:px.isToggled)!==void 0},V=_.p(_.mg(function(){var px,kI,Ul;
return h()?(px=u())==null?void 0:px.isToggled:(Ul=Y==null?void 0:(kI=Y())==null?void 0:kI.toggled)!=null?Ul:P().isToggled})),N=V.next().value;
V=V.next().value;var l=N,E=V;V=_.p(_.mg(function(){var px,kI;return(px=B.animatedTextPropsToggled)==null?void 0:(kI=px.call(B))==null?void 0:kI.shouldAnimate}));
N=V.next().value;V=V.next().value;var S=N,M=V;N=_.p(_.$D(!1,void 0,"S11hid"));var f=N.next().value,Z=N.next().value,u=_.FB(function(px){var kI;a:{var Ul=P().entityKey,wC=P().toggledStateEntitySelectorType;if(wC&&Ul)switch(wC){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var W$;px=(W$=_.X9(px.entities,"sfvAudioItemCurrentlyPlayingEntity",Ul))!=null?W$:void 0;W$=(kI=px==null?void 0:px.sfvAudioItemPlaybackState)!=null?kI:void 0;if(W$==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){kI={isToggled:!0};
break a}if(W$){kI={isToggled:!1};break a}break;default:_.Ob(new _.mc("Error: entitySelectorType defined but not matched in selector.",px,wC))}kI=void 0}return kI}),e=function(){return Object.assign({},Y==null?void 0:Y(),{onToggle:x,
toggleable:!0,toggled:l(),focused:f()})};
return _.U("toggle-button-view-model",{"on:focusin":_.qe(function(){var px=_.cp().resolve(_.Bp(_.Xr));px&&Z(px.isKeyBoardInUse());return!1}),
"on:focusout":_.qe(function(){Z(!1);return!1}),
class:d},_.U(_.m,{cond:function(){return l()?c(P().toggledButtonViewModel):c(P().defaultButtonViewModel)},
then:function(px){return _.U(_.Q7,{data:px,className:d,style:n,useOutlinedIcon:b,buttonOverrides:e,animatedTextProps:C})}}))},"z");
_.Jb.idomCompat={callbacks:{onToggle:!0}};_.xU(_.rM(function(B){return _.U("yt-toggle-button-view-model",{class:function(){var c;return(c=B.scopingClassName)==null?void 0:c.call(B)}},_.U(_.Jb,{data:function(){var c;
return(c=B.data)==null?void 0:c.call(B)},
buttonShapeOverrides:function(){var c;return(c=B.overrides)==null?void 0:c.call(B)},
animatedTextPropsDefault:function(){var c;return(c=B.animatedTextPropsDefault)==null?void 0:c.call(B)},
animatedTextPropsToggled:function(){var c;return(c=B.animatedTextPropsToggled)==null?void 0:c.call(B)},
disableExplicitClickLogging:function(){var c;return(c=B.disableExplicitClickLogging)==null?void 0:c.call(B)},
onToggle:function(c){var x;return(x=B.onToggle)==null?void 0:x.call(B,c)},
style:function(){var c;return(c=B.style)==null?void 0:c.call(B)},
useOutlinedIcon:function(){var c;return(c=B.useOutlinedIcon)==null?void 0:c.call(B)},
className:function(){var c;return(c=B.className)==null?void 0:c.call(B)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.rk,
buttonShapeOverrides:_.rk,overrides:_.rk,animatedTextPropsDefault:_.rk,animatedTextPropsToggled:_.rk,disableExplicitClickLogging:_.rk,onToggle:_.cw,style:_.rk,useOutlinedIcon:_.rk,className:_.rk,scopingClassName:_.rk}});var Ii=function(){return _.z.apply(this,arguments)||this};
_.w(Ii,_.z);Ii.prototype.onTap=function(B){B.stopPropagation();B=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Wv("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:B})):this.ytLiveChatReduxBehavior.dispatch(_.Uy("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:B}))};
_.AJ.Object.defineProperties(Ii.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.engagementState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=_.t(this.data.toggleButton,_.V7),c;if(Number(((c=this.likeCountState)==null?void 0:c.likeCountIfIndifferentNumber)||"0")===0){var x;c=((x=this.data.likeCountPlaceholder)==null?void 0:x.content)||""}else{var P,Y,g;c=((P=this.likeCountState)==null?void 0:(Y=P.likeCountIfIndifferent)==null?void 0:Y.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var k,n;x=((k=this.likeCountState)==null?void 0:(n=
k.likeCountIfLiked)==null?void 0:n.content)||"1";k=_.t(B.toggledButtonViewModel,_.Tj);return Object.assign({},B,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.t(B.defaultButtonViewModel,_.Tj),{title:c})},toggledButtonViewModel:{buttonViewModel:Object.assign({},k,{title:x})}})}}}});
Ii.prototype.onTap=Ii.prototype.onTap;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ii.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],Ii.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ii.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.likeCountEntityKey"],selector:fww}),_.H("design:type",Object)],Ii.prototype,"likeCountState",void 0);_.L([_.F({selectorArgs:["data.engagementStateKey"],selector:hZC}),_.H("design:type",Object)],Ii.prototype,"engagementState",void 0);_.L([_.Q("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ii.prototype,"isLiked",null);
_.L([_.Q("data","likeCountState","isLiked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ii.prototype,"toggleButton",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Ii.prototype,"onTap",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Ii);
_.G(Ii,"yt-live-chat-like-button-view-model",function(){if(O7S===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Emt===void 0&&(Emt=document.createElement("template"));var P=Emt;x.call(c,P.content.cloneNode(!0),B.content.firstChild);O7S=B}B=O7S;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var qzd;var CQ0;var J6=function(){return _.z.apply(this,arguments)||this};
_.w(J6,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],J6.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],J6);
_.G(J6,"yt-live-chat-paid-message-footer-renderer",function(){if(CQ0===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;qzd===void 0&&(qzd=document.createElement("template"));var P=qzd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);CQ0=B}B=CQ0;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var hG3;var m5W;var T1y;var Vu5,tuS=function(){if(Vu5!==void 0)return Vu5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;T1y===void 0&&(T1y=document.createElement("template"));var P=T1y;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Vu5=B};var WV=function(){return _.z.apply(this,arguments)||this};
_.w(WV,_.z);WV.prototype.onTap=function(B){B.stopPropagation()};
_.AJ.Object.defineProperties(WV.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=_.t(this.data.replyButton,_.Tj),c,x,P,Y,g,k,n,b=Number(((c=this.replyCountState)==null?void 0:c.replyCountNumber)||"0")===0?(x=this.data)==null?void 0:(P=x.replyCountPlaceholder)==null?void 0:P.content:((Y=this.replyCountState)==null?void 0:(g=Y.replyCount)==null?void 0:g.content)||((k=this.data)==null?void 0:(n=k.replyCountPlaceholder)==null?void 0:n.content)||"",d;return Object.assign({},
B,{title:b,accessibilityText:(d=this.replyCountState)==null?void 0:d.replyButtonAccessibilityText})}}}});
_.AJ.Object.defineProperties(WV,{template:{configurable:!0,enumerable:!0,get:function(){return tuS()}}});
WV.prototype.onTap=WV.prototype.onTap;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],WV.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],WV.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],WV.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(B,c){return _.X9(B.entities,"replyCountEntity",c)}}),
_.H("design:type",Object)],WV.prototype,"replyCountState",void 0);_.L([_.Q("data","replyCountState"),_.H("design:type",Object),_.H("design:paramtypes",[])],WV.prototype,"buttonViewModel",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],WV.prototype,"onTap",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],WV);
_.G(WV,"yt-live-chat-reply-button-view-model",function(){return tuS()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var w05;var N15;var lD=function(){var B=_.z.apply(this,arguments)||this;B.ariaLabel="";return B};
_.w(lD,_.z);
lD.prototype.dataChanged=function(){for(var B=(0,_.pF)(_.Y9(this.hostElement).querySelector("#image"));B.firstChild;)B.removeChild(B.firstChild);if(this.data)if(this.data.icon){var c=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(c.polymerController.icon="yt-sys-icons:shield-filled",c.polymerController.defaultToFilled=!0):c.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();B.appendChild(c)}else if(this.data.customThumbnail){c=document.createElement("img");
var x=_.GJY(this.data.customThumbnail.thumbnails,16);x?(c.src=x,B.appendChild(c),c.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Ob(new _.mc("Could not compute URL for thumbnail",this.data.customThumbnail))}};
lD.prototype.identity=function(B){return B};
lD.prototype.computeType=function(B){return pL(B||void 0)};
lD.prototype.dataChanged=lD.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],lD.prototype,"data",void 0);_.L([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.H("design:type",Object)],lD.prototype,"ariaLabel",void 0);_.L([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.H("design:type",String)],lD.prototype,"type",void 0);
_.L([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.H("design:type",String)],lD.prototype,"sharedTooltipText",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("live_chat_enable_new_moderator_badge")}}),
_.H("design:type",Boolean)],lD.prototype,"enableNewModeratorBadge",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lD.prototype,"dataChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],lD);
_.G(lD,"yt-live-chat-author-badge-renderer",function(){if(N15===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;w05===void 0&&(w05=document.createElement("template"));var P=w05;x.call(c,P.content.cloneNode(!0),B.content.firstChild);N15=B}B=N15;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Ihm;var JNt;var E2=function(){return _.z.apply(this,arguments)||this};
_.w(E2,_.z);_.a=E2.prototype;_.a.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"}}}}};
_.a.computeBadgesInsideChip=function(B){return B?B.filter(function(c){return pL(c.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.a.computeBadgesOutsideChip=function(B){return this.prependChatBadges||!B?[]:B.filter(function(c){c=pL(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"})};
_.a.computeBadgesBeforeChip=function(B){return this.prependChatBadges&&B?B.filter(function(c){c=pL(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"}):[]};
_.a.computeIsHighlighted=function(B,c){var x=!!xI$(B,"owner"),P=!!xI$(B,"verified");B=!!xI$(B,"moderator");return(x||P&&!B)&&!c};
_.a.computeAuthorType=function(B){return clw(B)};
_.a.computeAuthorClass=function(B,c){return c?(B?B+" ":"")+"single-line":B};
_.a.onSeedColorChanged=function(){_.T("live_chat_author_name_color_usernames")||_.T("live_chat_seed_color_usernames")||_.T("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):_.T("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
E2.prototype.onSeedColorChanged=E2.prototype.onSeedColorChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],E2.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],E2.prototype,"authorName",void 0);_.L([_.F(),_.H("design:type",Array)],E2.prototype,"authorBadges",void 0);
_.L([_.F({computed:"computeAuthorType(authorBadges)"}),_.H("design:type",String)],E2.prototype,"authorType",void 0);_.L([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.H("design:type",String)],E2.prototype,"authorClass",void 0);_.L([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.H("design:type",Array)],E2.prototype,"badgesInsideChip",void 0);_.L([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.H("design:type",Array)],E2.prototype,"badgesOutsideChip",void 0);
_.L([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.H("design:type",Array)],E2.prototype,"badgesBeforeChip",void 0);_.L([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.H("design:type",Boolean)],E2.prototype,"isHighlighted",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],E2.prototype,"singleLine",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],E2.prototype,"disableHighlighting",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],E2.prototype,"dashboardMoneyFeed",void 0);_.L([_.F({value:_.T("live_chat_prepend_badges"),reflectToAttribute:!0}),_.H("design:type",Boolean)],E2.prototype,"prependChatBadges",void 0);_.L([_.F(),_.H("design:type",String)],E2.prototype,"authorNameColor",void 0);_.L([_.jr("#author-name"),_.H("design:type",HTMLDivElement)],E2.prototype,"username",void 0);
_.L([_.bF("authorNameColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E2.prototype,"onSeedColorChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],E2);
_.G(E2,"yt-live-chat-author-chip",function(){if(JNt===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Ihm===void 0&&(Ihm=document.createElement("template"));var P=Ihm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);JNt=B}B=JNt;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var W9y;var lh9;var O2=function(){var B=_.z.apply(this,arguments)||this;B.debounceCommand=_.he(function(c){B.ytComponentBehavior.resolveCommand(c)},1500);
return B};
_.w(O2,_.z);O2.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var B=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",c,x,P=this.isHearted?(c=this.data)==null?void 0:c.unheartCommand:(x=this.data)==null?void 0:x.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Wv("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:B}));(B=_.vH(P))&&this.debounceCommand(B)}};
_.AJ.Object.defineProperties(O2.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var B,c;if(!((B=this.data)==null?0:(c=B.creatorThumbnail)==null?0:c.sources))return{};B={thumbnails:[]};c={};c.url=this.data.creatorThumbnail.sources[0].url;B.thumbnails.push(c);return B}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.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}}});
O2.prototype.onTap=O2.prototype.onTap;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],O2.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],O2.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],O2.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.engagementStateKey"],selector:hZC}),_.H("design:type",Object)],O2.prototype,"engagementState",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],O2.prototype,"thumbnailDetails",null);_.L([_.Q("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O2.prototype,"isHearted",null);_.L([_.Q("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O2.prototype,"isEditable",null);
_.L([_.Q("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O2.prototype,"showCreatorView",null);_.L([_.Q("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O2.prototype,"showButton",null);_.L([_.Q("data","isHearted"),_.H("design:type",String),_.H("design:paramtypes",[])],O2.prototype,"label",null);_.L([_.Q("data","isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],O2.prototype,"heartHoverText",null);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O2.prototype,"onTap",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],O2);
_.G(O2,"yt-live-chat-creator-heart-view-model",function(){if(lh9===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;W9y===void 0&&(W9y=document.createElement("template"));var P=W9y;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lh9=B}B=lh9;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var oi=function(){};
_.w(oi,kg);oi.prototype.JSC$11057_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Za("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
oi.prototype.getApiPaths=function(){return[]};
oi.prototype.getExtension=function(){};
oi.prototype.JSC$11057_buildRequest=function(){};var EB0={},Oit=(EB0.GET_DATASYNC_IDS=Vy(oi),EB0);var oB9,Qh3,F9Z,lfF,Qq,SzI,vR3,zGy,vBF;oB9="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Qh3=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Me=function(B,c,x,P,Y,g,k,n,b){this.endpointMap=B;this.networkManager=c;this.authService=x;this.responseProcessorMap=P;this.innertubeResponseStore=Y;this.contextProcessors=g;this.asyncContextProcessors=k;this.localInnertubeRouter=n;this.requestSequencer=b;this.inflightRequests=new Map;B.signalEndpointMap||(B.signalEndpointMap={});B.signalEndpointMap=Object.assign({},Oit,B.signalEndpointMap)};
F9Z=function(B,c,x,P,Y,g,k,n,b){if(_.Me.instance!==void 0){if(P=_.Me.instance,B=[B!==P.endpointMap,c!==P.networkManager,x!==P.authService,Y!==P.innertubeResponseStore,g!==P.contextProcessors,k!==P.asyncContextProcessors,n!==P.localInnertubeRouter],B.some(function(d){return d}))throw new _.mc("InnerTubeTransportService is already initialized",B);
}else _.Me.instance=new _.Me(B,c,x,P,Y,g,k,n,b)};
_.Zn=function(B,c,x){var P=P===void 0?DDy:P;var Y=vR3(B,c);return Y?new _.bb(function(g,k){var n,b,d,q,C;return _.X(function(h){switch(h.nextAddress){case 1:return _.K(h,Y,2);case 2:n=h.yieldResult;b=n.JSC$11057_getRequest(c,x,P);if(!b){k(new _.mc("Error: Failed to build request for command.",c));h.jumpTo(0);break}MA(b.input);q=((d=b.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(B.authService.syncHeaders){C=vBF(b.config,q);h.jumpTo(4);break}return _.K(h,zGy(b.config,q),5);case 5:C=
h.yieldResult;case 4:g(SzI(B,b,C)),_.Kq(h)}})}):_.Im(new _.mc("Error: No request builder found for command.",c))};
lfF=function(B,c,x,P){var Y=Y===void 0?DDy:Y;var g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e;return _.X(function(px){switch(px.nextAddress){case 1:g=uzX(c,B.endpointMap);if(!g)throw new _.mc("Error: No streaming request builder found for command",c);k=g.JSC$11057_getRequest(c,x,Y);if(!k)throw new _.mc("Failed to build YtRequest for streaming Command",c);if((n=B.localInnertubeRouter)==null||!n.shouldPreferLocalResponse(k.input,k.innerTubeRequest)){px.jumpTo(2);break}return _.K(px,B.localInnertubeRouter.localInnertubeResponse(k.input,
k.innerTubeRequest),3);case 3:return b=px.yieldResult,d={},b.playerResponse&&(Qq(B,b.playerResponse,k),d.player=b.playerResponse,(q=P)==null||q(d,b)),b.watchNextResponse&&(Qq(B,b.watchNextResponse,k),d.content=b.watchNextResponse,(C=P)==null||C(d,b)),px.return(d);case 2:V=((h=k.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(B.authService.syncHeaders){N=vBF(k.config,V);px.jumpTo(4);break}return _.K(px,zGy(k.config,V),5);case 5:N=px.yieldResult;case 4:return S=(E=(l=k.requestShell)==null?
void 0:l.headers)!=null?E:{},k.requestShell=Object.assign({},k.requestShell,{headers:Object.assign({},S,N)}),M=Object.assign({},k.requestShell),f=JSON.stringify(k.innerTubeRequest),k.requestShell.method==="POST"&&(M=Object.assign({},M,{body:f})),Z=function(kI,Ul){Qq(B,Ul.playerResponse||Ul.watchNextResponse||Ul.reelItemWatchResponse||Ul.reelWatchSequenceResponse,k);P==null||P(kI,Ul)},u={},_.K(px,yNZ(B.networkManager,k.input,M,Z),6);
case 6:return u=px.yieldResult,((e=k.config)==null?0:e.responseTick)&&_.Op(k.config.responseTick),px.return(u)}})};
_.Fa=function(B,c,x,P,Y){Y=Y===void 0?{authStrategy:{identity:DDy}}:Y;var g=g===void 0?!0:g;var k=function(){};
k=YhY(xc7(x));c.context||(c.context=_.$3X(P,g));return new _.bb(function(n){var b,d,q,C,h;return _.X(function(V){if(V.nextAddress==1)return b=ZRX(x),d=_.LN(b),B.authService.syncHeaders?(q=vBF(Y,d),V.jumpTo(2)):_.K(V,zGy(Y,d),3);V.nextAddress!=2&&(q=V.yieldResult);C=HRC(ZRX(x));h={input:C,requestShell:Za(C),innerTubeRequest:c,config:Y};n(SzI(B,h,q,k));_.Kq(V)})})};
Qq=function(B,c,x){var P;if(c&&!(c==null?0:(P=c.sequenceMetaData)==null?0:P.skipProcessing)&&B.responseProcessorMap){P=_.p(oB9);for(var Y=P.next();!Y.done;Y=P.next())Y=Y.value,B.responseProcessorMap[Y]&&B.responseProcessorMap[Y].handleResponse(c,x)}};
SzI=function(B,c,x,P){P=P===void 0?function(){}:P;
var Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI,Ul,wC,W$,El,H$,yw,r9,cs,NQ,n4,L4,UF,uX,yr,uz,XO,qQ,lt,D8;return _.X(function(VW){switch(VW.nextAddress){case 1:k=(Y=c.config)==null?void 0:(g=Y.storeStrategy)==null?void 0:g.storeKey;if(!(k&&B.innertubeResponseStore&&B.innertubeResponseStore.has(k))||((n=c.config)==null?0:(b=n.storeStrategy)==null?0:b.disableCache)){VW.jumpTo(2);break}return _.K(VW,B.innertubeResponseStore.get(k),3);case 3:if((d=VW.yieldResult)&&!d.isExpired())return VW.return(Promise.resolve(_.Xs(d)));
case 2:if(!((q=c)==null?0:(C=q.innerTubeRequest)==null?0:C.context)){VW.jumpTo(4);break}h=c.innerTubeRequest.context;if(!(B.asyncContextProcessors&&B.asyncContextProcessors.length>0)){VW.jumpTo(5);break}V=[];N=_.p(B.asyncContextProcessors);for(l=N.next();!l.done;l=N.next())E=l.value,S=E.processContext(c),S.wrappedPromise_&&V.push(S.wrappedPromise_);if(!(V.length>0)){VW.jumpTo(5);break}return _.K(VW,Promise.all(V),5);case 5:M=_.p(B.contextProcessors||[]),f=M.next();case 8:if(f.done){VW.jumpTo(4);break}Z=
f.value;return _.K(VW,Z.processContext(h),9);case 9:f=M.next();VW.jumpTo(8);break;case 4:if((u=B.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){VW.jumpTo(12);break}return _.K(VW,B.localInnertubeRouter.localInnertubeResponse(c.input,c.innerTubeRequest),13);case 13:return e=VW.yieldResult,Qq(B,e,c),VW.return(e);case 12:return(Ul=(kI=c.config)==null?void 0:kI.requestKey)&&B.inflightRequests.has(Ul)?px=B.inflightRequests.get(Ul):(wC=JSON.stringify(c.innerTubeRequest),
H$=(El=(W$=c.requestShell)==null?void 0:W$.headers)!=null?El:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},H$,x)}),yw=Object.assign({},c.requestShell),c.requestShell.method==="POST"&&(yw=Object.assign({},yw,{body:wC})),((r9=c.config)==null?0:r9.requestTick)&&_.Op(c.config.requestTick),cs=function(){return B.networkManager.fetch(c.input,yw,c.config)},px=B.requestSequencer?GJQ(B.requestSequencer,c,cs):cs(),Ul&&B.inflightRequests.set(Ul,px)),_.K(VW,px,14);
case 14:(NQ=VW.yieldResult)&&_.T("web_streaming_player")&&Array.isArray(NQ)&&(NQ=NQ[0].playerResponse);if(NQ&&"error"in NQ&&((n4=NQ)==null?0:(L4=n4.error)==null?0:L4.details))for(UF=NQ.error.details,uX=_.p(UF),yr=uX.next();!yr.done;yr=uX.next())uz=yr.value,(XO=uz["@type"])&&Qh3.indexOf(XO)>-1&&(delete uz["@type"],NQ=uz);Ul&&B.inflightRequests.has(Ul)&&B.inflightRequests.delete(Ul);((qQ=c.config)==null?0:qQ.responseTick)&&_.Op(c.config.responseTick);if(NQ||(lt=B.localInnertubeRouter)==null||!lt.canProvideFallbackResponse(c.input,
c.innerTubeRequest)){VW.jumpTo(15);break}return _.K(VW,B.localInnertubeRouter.localFallbackInnertubeResponse(c.input,c.innerTubeRequest),16);case 16:NQ=VW.yieldResult;case 15:return Qq(B,NQ,c),((D8=c.config)==null?0:D8.processorTick)&&_.Op(c.config.processorTick),P(),VW.return(NQ||void 0)}})};
_.Lw=function(B,c){return AAq(c,B.endpointMap)};
vR3=function(B,c){B=DJl(c,B.endpointMap);if(B!==void 0)return Promise.resolve(B)};
zGy=function(B,c){var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){Y=(x=B)==null?void 0:(P=x.authStrategy)==null?void 0:P.sessionIndex;var n=_.$C(U9q({sessionIndex:Y}));return _.K(k,n,2)}g=k.yieldResult;return k.return(Promise.resolve(Object.assign({},rA7(c),g)))})};
vBF=function(B,c){var x;B=B==null?void 0:(x=B.authStrategy)==null?void 0:x.sessionIndex;x=U9q({sessionIndex:B});return Object.assign({},rA7(c),x)};var Mu0,L9t,Zit,Hi3,fhy,iit,D5Z,rNt,zO,RGZ,eGt,uR9,BmW;Mu0=0;L9t=/tone[1-5]/;Zit=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Hi3="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
fhy=Number.MAX_SAFE_INTEGER;iit=RegExp("\ufe0f","g");_.Fr=function(B){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;B&&_.AN0(this,B)};
_.AN0=function(B,c){try{_.nU(c,{context:B,onSuccess:function(P,Y){Array.isArray(Y)?B.load(Y):(P=new _.mc("Emoji manager JSON response was not an array!",{response:Y}),_.lb(P))},
onError:function(P){P=new _.mc("Failed to retrieve emoji manager initial JSON data!",{url:c,statusCode:_.s4(P).toString()});_.Ob(P)}})}catch(P){var x=new _.mc("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:c});
_.Ob(x)}};
_.Fr.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Fr.prototype.load=function(B,c){if(c)if(B.length)B=B.concat(c.emojis);else{this.emojis=c.emojis;this.emojiMap=c.emojiMap;this.emojiShortcutMap=c.emojiShortcutMap;this.emojiShortcutCharMap=uR9(c);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=c.emojiRegex;return}this.emojis=[].concat(_.wq(new Set(this.emojis.concat(B))));this.hasInitializedShortcutCharMap=!1;B=Array(this.emojis.length);for(c=0;c<this.emojis.length;c++){var x=this.emojis[c];if(x.emojiId){this.emojiMap[x.emojiId]=x;this.emojiMap[x.emojiId].index=
c;for(var P=0;x.shortcuts&&P<x.shortcuts.length;P++)this.emojiShortcutMap[x.shortcuts[P].toLocaleLowerCase()]=x;B[c]=x.isCustomEmoji&&x.shortcuts?x.shortcuts[0]:x.emojiId}}B.sort(function(Y,g){return g.length-Y.length});
if(B.length)try{this.emojiRegex=new RegExp(B.join("|").replace("*","\\*"),"gi")}catch(Y){this.emojiRegex=/$./}else this.emojiRegex=/$./};
D5Z=function(B,c){c=_.p(c);for(var x=c.next();!x.done;x=c.next()){var P=x.value;if(P.emojiId&&B.emojiMap[P.emojiId]){x=Object.assign({},B.emojiMap[P.emojiId],P);B.emojiMap[P.emojiId]=x;var Y=void 0;x.index&&((Y=B.emojis[x.index])==null?void 0:Y.emojiId)===P.emojiId&&(B.emojis[x.index]=x);P=void 0;if((P=x.shortcuts)==null?0:P.length)for(B.hasInitializedShortcutCharMap=!1,P=_.p(x.shortcuts),Y=P.next();!Y.done;Y=P.next())B.emojiShortcutMap[Y.value.toLocaleLowerCase()]=x}}};
rNt=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,_.Nm.getInstance(),2);if(P.nextAddress!=3)return(c=P.yieldResult)?_.K(P,c.get("ytlc-emoji-pref"),3):P.return();(x=P.yieldResult)&&D5Z(B,Object.keys(x).map(function(Y){return{emojiId:Y,stickyPrefId:x[Y]}}).filter(function(Y){return!!Y.emojiId&&!!Y.stickyPrefId}));
_.Kq(P)})};
_.vV=function(B,c,x){return(B=B.emojiMap[c])&&(!B.isLocked||x!==void 0&&x)?B:void 0};
zO=function(B,c,x){x=_.vV(B,c,x===void 0?!1:x);var P=c.match("\u200d");x&&B.skinTone!==0&&(B=(P==null?void 0:P.length)===1?_.vV(B,c.replace("\u200d",Zit[B.skinTone]+"\u200d")):_.vV(B,c+Zit[B.skinTone]))&&(x=B);return x};
RGZ=function(B,c){var x=B.emojiMap[c];return(x==null?0:x.stickyPrefId)?B.emojiMap[x.stickyPrefId]:zO(B,c)};
_.mT=function(B,c){B=B.emojiShortcutMap[c.toLocaleLowerCase()];return!B||B.isLocked?null:B};
eGt=function(B,c,x){return uR9(B,x===void 0?!1:x)[c]||{}};
uR9=function(B,c){c=c===void 0?!1:c;if(!B.hasInitializedShortcutCharMap){B.hasInitializedShortcutCharMap=!0;for(var x=0;x<B.emojis.length;x++){var P=B.emojis[x];if(!(P.isLocked||c&&P.isCustomEmoji&&P.emojiId&&!B.pickerCustomEmojiIds.includes(P.emojiId)))for(var Y=0;P.shortcuts&&Y<P.shortcuts.length;Y++){var g=P.shortcuts[Y];g.startsWith(":_")&&P.isCustomEmoji&&(B.emojiShortcutCharMap[":_"]==null&&(B.emojiShortcutCharMap[":_"]=Object.create(null)),B.emojiShortcutCharMap[":_"][g]=P);if(!(g.length<3||
!P.isCustomEmoji&&L9t.test(g))){var k=g.substr(0,3).toLocaleLowerCase();B.emojiShortcutCharMap[k]==null&&(B.emojiShortcutCharMap[k]=Object.create(null));B.emojiShortcutCharMap[k][g]=P}}}}return B.emojiShortcutCharMap};
_.Fr.prototype.createEmoji=function(B,c){c=c===void 0?!0:c;var x=document.createElement("img");B.isCustomEmoji||x.classList.add("small-emoji");x.classList.add("emoji");x.classList.add("yt-formatted-string");x.src=B.image?_.Pw(B.image.thumbnails,this.emojiSize)||"":"";var P=void 0;B.image&&B.image.accessibility&&B.image.accessibility.accessibilityData&&(P=B.image.accessibility.accessibilityData.label);x.alt=P?P:(B.isCustomEmoji&&B.shortcuts?B.shortcuts[0]:B.emojiId)||"";B.isCustomEmoji&&(x.dataset.emojiId=
B.emojiId);_.$V&&(x.setAttribute("contenteditable","false"),x.setAttribute("unselectable","on"));c&&(B.shortcuts&&B.shortcuts.length&&x.setAttribute("shared-tooltip-text",B.shortcuts[0]),x.id="emoji-"+Mu0++);return x};
_.Fr.prototype.createDocumentFragment=function(B,c,x,P){c=c===void 0?!1:c;x=x===void 0?!0:x;P=P===void 0?!1:P;B=B.replace(iit,"");for(var Y=document.createDocumentFragment(),g=0,k,n=0;(k=this.emojiRegex.exec(B))!=null;){var b=_.vV(this,k[0])||_.mT(this,k[0]);!b||b.isCustomEmoji&&!c||(b=this.createEmoji(b,x),g!==k.index&&Y.appendChild(document.createTextNode(B.substring(g,k.index))),Y.appendChild(b),g=k.index+k[0].length,n++)}if(!P||n)return Y.appendChild(document.createTextNode(B.substr(g))),Y};
BmW=function(B,c,x){var P,Y,g,k,n,b,d,q,C;return _.X(function(h){if(h.nextAddress==1){if(!c.emojiId||!B.emojiMap[c.emojiId])return h.return();P=Object.assign({},B.emojiMap[c.emojiId],{stickyPrefId:x});B.emojiMap[c.emojiId]=P;c.index&&((Y=B.emojis[c.index])==null?void 0:Y.emojiId)===c.emojiId&&(B.emojis[c.index]=P);if((g=c.shortcuts)==null?0:g.length)for(B.hasInitializedShortcutCharMap=!1,k=_.p(c.shortcuts),n=k.next();!n.done;n=k.next())b=n.value,B.emojiShortcutMap[b.toLocaleLowerCase()]=P;return _.K(h,
_.Nm.getInstance(),2)}if(h.nextAddress!=4)return(d=h.yieldResult)?_.K(h,d.get("ytlc-emoji-pref"),4):h.jumpTo(0);C=(q=h.yieldResult)!=null?q:{};C[c.emojiId]=x;return _.K(h,d.set("ytlc-emoji-pref",C,fhy),0)})};
_.Sp=new _.Fr;var P1t;_.yq={};
P1t={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.T("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:_.T("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 Zj(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 B=_.Y9(this.hostElement||this).querySelector("#inline-action-button-container");B&&B.setAttribute("aria-hidden","true");this.menuButton=_.Y9(this.hostElement).querySelector("#menu-button")},
attached:function(){var B=this.menuButton;B&&(B.addEventListener("focusin",_.$9(this,this.onMenuButtonFocus_)),B.addEventListener("focusout",_.$9(this,this.onMenuButtonBlur_)))},
detached:function(){var B=this.menuButton;B&&(B.removeEventListener("focusin",_.$9(this,this.onMenuButtonFocus_)),B.removeEventListener("focusout",_.$9(this,this.onMenuButtonBlur_)))},
identity:_.Sd,truthy:function(B){return!!B},
computeTimestampString:function(B){return B?B.timestampText?this.getSimpleString(B.timestampText):this.TIME_FORMATTER.format(new Date(B.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(B){return B},
computeMenuVisible_:function(B,c){return B||c},
computeHasInlineActionButtons:function(B){if(!B)return!1;var c,x;return!((c=B.inlineActionButtons)==null||!c.length)||!((x=B.additionalInlineActionButtons)==null||!x.length)},
createDocumentFragmentFromString:function(B){var c=_.Sp.createDocumentFragment.bind(_.Sp),x;if((x=this.participantsManager)==null||!x.viewerRegex)return c(B);x=document.createDocumentFragment();for(var P=0,Y;(Y=this.participantsManager.viewerRegex.exec(B))!=null;){if(Y.index>0){var g=":"+Y[0]+":";if((_.vV(_.Sp,g)||_.mT(_.Sp,g))&&B.indexOf(g)===Y.index-1)continue}x.appendChild(c(B.substring(P,Y.index)));P=document.createElement("span");P.appendChild(c(Y[0]));P.classList.add("mention");x.appendChild(P);
P=Y.index+Y[0].length}x.appendChild(c(B.substring(P)));return x},
createDocumentFragment:function(B){var c=document.createDocumentFragment();if(B.simpleText)return c.appendChild(this.createDocumentFragmentFromString(B.simpleText)),c;if(!B.runs)return c;for(var x=0;x<B.runs.length;x++){var P=B.runs[x];if(P.emoji)c.appendChild(_.Sp.createEmoji(P.emoji));else if(P.text)if(P.navigationEndpoint){var Y=document.createElement("a");Y.classList.add("yt-simple-endpoint");FlX(Y,P.navigationEndpoint);_.Y9(Y).appendChild(this.createDocumentFragmentFromString(P.text));c.appendChild(Y)}else c.appendChild(this.createDocumentFragmentFromString(P.text))}return c},
hasModerationOverlayVisible:function(){var B;return((B=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:B.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(B){B.composedPath().some(function(c){return(c=c instanceof Element?c:null)?c.tagName&&(c.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||c.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.T("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(B)},
colorFromDecimal:function(B){return zyA(B)},
markAsDeleted:function(B,c){this.set("data.deletedStateMessage",B);this.set("data.showOriginalContentMessage",c)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(B){if(this.data.contextMenuEndpoint){var c=_.cp().resolve(_.Oi),x=this.data.contextMenuEndpoint,P;(P=_.Me.instance)&&_.Lw(P,x)?(c=cCm(c,x),P=_.Fa(P,{},c)):P=_.xWQ(c,x);P.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);B&&B.stopPropagation()}},
handleGetContextMenuResponse_:function(B){var c=_.Me.instance;c&&_.Lw(c,{liveChatEndpoint:{}})||(B=B.response);B.liveChatItemContextMenuSupportedRenderers&&B.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(B.liveChatItemContextMenuSupportedRenderers.menuRenderer);B.actions&&_.gj(this.hostElement,"yt-live-chat-actions",[B.actions])},
handleGetContextMenuError:function(B){if(B instanceof Error||B instanceof Object||B instanceof String)var c=B;_.lb(new _.mc("Error encountered calling GetLiveChatItemContextMenu",c))},
showContextMenu_:function(B){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:B}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.aJ(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.aJ(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.yq.YtLiveChatItemBehavior=[P1t,_.Z5.YtComponentBehavior,_.dG.YtOpenPopupBehavior];_.GO=function(){};var YwQ;var a74;var g8Z;var sT5;var M3=function(){var B=_.z.apply(this,arguments)||this;B.active=!1;B.identity=_.Sd;return B};
_.w(M3,_.z);M3.prototype.dataChanged=function(){this.active=!1};
M3.prototype.onClick=function(){_.aJ(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
M3.prototype.dataChanged=M3.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],M3.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],M3.prototype,"active",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M3.prototype,"dataChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],M3);
_.G(M3,"yt-live-chat-text-input-field-suggestion",function(){if(sT5===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;g8Z===void 0&&(g8Z=document.createElement("template"));var P=g8Z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);sT5=B}B=sT5;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});_.LQ=function(B,c,x){return CustomEvent.call(this,B,{detail:{value:c,path:x}})||this};
_.w(_.LQ,CustomEvent);_.ZP=function(){var B=_.z.apply(this,arguments)||this;B.viewerName=null;B.actionMap={"yt-live-chat-actions":"onChatMessage_"};B.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];B.PARTICIPANT_TIME_USEC_=3E8;return B};
_.w(_.ZP,_.z);_.a=_.ZP.prototype;_.a.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.a.addParticipant=function(B){var c=_.mYl(this.participants,B,function(P,Y){P=P[Object.keys(P)[0]];Y=Y[Object.keys(Y)[0]];P=String(_.iG(P.authorName)).toLowerCase();Y=String(_.iG(Y.authorName)).toLowerCase();return P<Y?-1:P==Y?0:1}.bind(this));
if(c>=0){var x=this.participants[c];x[Object.keys(x)[0]].timestampUsec&&this.splice("participants",c,1,B)}else this.splice("participants",-c-1,0,B);B=B[Object.keys(B)[0]];c=_.iG(B.authorName).toLocaleLowerCase();x=c.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(x)||(this.allParticipantsCharMap_[x]={});this.allParticipantsCharMap_[x][c]=B};
_.a.getAuthorsFromPrefix=function(B){return this.allParticipantsCharMap_.hasOwnProperty(B)?this.allParticipantsCharMap_[B]:null};
_.a.computeViewerRegex_=function(B){if(!B)return null;B=B.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var c=B.indexOf("@")===0&&_.T("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(c+B.replace(/ /g,"\\s*")+"|^"+B.replace(/ /g,"\\s*")+"$|^"+B.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+B.replace(/ /g,"\\s*")+"$|(?<=\\s)"+B.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.a.checkForStaleParticipants_=function(){var B=this;this.trimOldParticipants_();this.asyncHandle_&&$n7(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Sr(function(){B.checkForStaleParticipants_()},3E4))};
_.a.onChatMessage_=function(B){var c=this,x=Date.now()*1E3;B.forEach(function(P){if(P=_.t(P,Ks5)){P=P.item;var Y=Object.keys(P)[0];c.SUPPORTED_ITEM_TYPES_.indexOf(Y)!=-1&&P[Y].timestampUsec>=x-c.PARTICIPANT_TIME_USEC_&&c.addParticipant(P)}},this);
this.checkForStaleParticipants_()};
_.a.trimOldParticipants_=function(){for(var B=Date.now()*1E3,c=this.participants.length-1;c>=0;c--){var x=this.participants[c];x=x[Object.keys(x)[0]];x.timestampUsec&&x.timestampUsec<B-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",c,1)}};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],_.ZP.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],_.ZP.prototype,"viewerName",void 0);_.L([_.F({computed:"computeViewerRegex_(viewerName)"}),_.H("design:type",Object)],_.ZP.prototype,"viewerRegex",void 0);_.L([_.F({value:function(){return[]},
notify:!0}),_.H("design:type",Array)],_.ZP.prototype,"participants",void 0);_.L([_.Em({is:"yt-live-chat-participants-manager",noInjection:!0})],_.ZP);var pUW=/.*([:@#].*?)$/,HV=/\u00a0/g,kvI=String.fromCharCode(160),XUm={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"},fQ=function(){var B=_.z.apply(this,arguments)||this;B.disabled=!1;B.liveChatRichMessageInput=null;B.messageInput=null;B.isValidWithNoInputText=!1;B.suggestions=[];B.emojiManager=_.Sp;B.inputMethodEditorActive=
!1;B.suggestionIndex=-1;B.JSC$12055_lastSuggestionRange=null;return B};
_.w(fQ,_.z);_.a=fQ.prototype;_.a.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.a.attached=function(){_.nY&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.a.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.a.dataChanged=function(){if(!this.ignoreColorMapping){var B=!1,c={},x;for(x in XUm)this.data&&this.data.hasOwnProperty(x)&&(c[XUm[x]]=this.colorFromDecimal(this.data[x]),B=!0);B&&_.k9(this.hostElement,c)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.a.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.a.colorFromDecimal=function(B){B=Math.floor(Number(B));return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
_.a.preventDrag=function(B){B.dataTransfer&&(B.dataTransfer.dropEffect="none");B.preventDefault()};
_.a.preventResize=function(B){B.returnValue=!1};
_.a.onInputChange=function(){var B=this.characterCount,c=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&c&&c.remove();if(!c&&this.characterCount>this.maxCharacterLimit){var x=window.getSelection();if(x){var P=x.getRangeAt(0);x.removeAllRanges();x.addRange(P)}}if(x=this.getCurrentRange())P=this.calculateTextBeforeRange(x),this.completeEmojisInRange(x,P,!0)||this.updateSuggestions(x,P);P=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(P);
_.aJ(this.hostElement,"yt-live-chat-message-input-change",P);c&&this.characterCount===0&&c.remove();x&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>B):x&&!x.collapsed&&x.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(B=this.input.childNodes.length-1;B>=0;B--)this.input.childNodes[B].nodeName==="BR"&&this.input.childNodes[B].remove()};
_.a.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.a.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var B=this.getCurrentRange();B&&B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.a.mergeOverflowText=function(B){if(B){var c=document.createRange();c.selectNodeContents(B);c=c.extractContents();this.input.insertBefore(c,B)}};
_.a.checkRangeAtEndOfInput=function(){var B=this.getCurrentRange();if(B){var c=_.Y9(this.hostElement).querySelector("#overflow-text"),x=document.createRange();c&&c.previousSibling?c.previousSibling instanceof HTMLImageElement?x.selectNode(c.previousSibling):x.selectNodeContents(c.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?x.selectNode(this.input.lastChild):x.selectNodeContents(this.input.lastChild));x.collapse(!1);return x.isPointInRange(B.startContainer,
B.startOffset)}return!1};
_.a.handleOverflowText=function(B){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var c=_.Y9(this.hostElement).querySelector("#overflow-text"),x=this.getCurrentRange();this.input.normalize();B=this.checkRangeAtEndOfInput()&&B;this.mergeOverflowText(c);for(var P,Y=0,g=0,k,n=this.input.childNodes,b=0;b<n.length;b++){var d=n[b];d instanceof Text?(g+=d.textContent.length,g>this.maxCharacterLimit&&(P=d,Y=this.maxCharacterLimit+d.textContent.length-g)):d instanceof HTMLImageElement&&
(P=void 0,g=d.dataset.emojiId&&((P=this.data)==null?0:P.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+d.alt.length,P=this.input,Y=b);if(g>this.maxCharacterLimit&&P){k=document.createRange();k.collapse(!1);c?(g=this.input.lastChild.previousSibling,g instanceof Text?k.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&k.setEnd(this.input,this.input.childNodes.length-1)):k.selectNodeContents(this.input);k.setStart(P,Y);break}}k&&(P=!1,x&&(B=k.isPointInRange(x.startContainer,
x.startOffset-1)),c||(c=document.createElement("span"),c.id="overflow-text",c.textContent="",c.setAttribute("contenteditable","true"),_.Y9(_.Y9(this.hostElement).querySelector("#input")).appendChild(c),P=!0),c&&(x=k.extractContents(),c.insertBefore(x,c.firstChild),B&&c.firstChild&&(x=document.createRange(),P?x.setStartAfter(c.lastChild):x.setStartAfter(c.firstChild),x.collapse(!0),c=window.getSelection(),c.removeAllRanges(),c.addRange(x))))}};
_.a.checkForDuplicateSpans=function(){for(var B=0;B<this.input.childNodes.length;B++){var c=this.input.childNodes[B];if(c.nodeName==="SPAN"){var x=document.createRange();x.selectNodeContents(c);x=x.extractContents();this.input.insertBefore(x,c);c.remove()}}this.handleOverflowText(!0)};
_.a.getCurrentRange=function(){var B=window.getSelection();return B&&B.rangeCount?B.getRangeAt(0).cloneRange():null};
_.a.getInputRange=function(){var B=this.getCurrentRange();if(B){for(var c=B.commonAncestorContainer,x=!1,P=_.Y9(this.hostElement).querySelector("#input");c;){if(c===P){x=!0;break}c=c.parentNode}x||(B=null)}B||(B=this.getRangeAtEnd());return B};
_.a.getRangeAtEnd=function(){var B=document.createRange(),c=_.Y9(this.hostElement).querySelector("#input").lastChild;!c||c.nodeName!=="#text"&&c.nodeName!=="SPAN"?(B.selectNodeContents(_.Y9(this.hostElement).querySelector("#input")),B.collapse(!1)):c.nodeName==="#text"?B.setStart(c,c.textContent.length):B.setStart(c,c.childNodes.length);return B};
_.a.getChatParticipantSuggestions=function(B,c,x,P){var Y=_.T("live_chat_enable_handles_web_text_input_update");if(c)for(var g in c)if(g.indexOf(B)===0||Y&&g.indexOf(x+B)===0){var k=c[g],n=_.iG(k.authorName);P.push({suggestion:{author:!0,authorType:x,image:k.authorPhoto,alt:n,text:n}});if(P.length>=64)break}};
_.a.getSuggestions=function(B){var c=[],x=B.substring(0,3),P=eGt(_.Sp,x,!0);if(P)for(var Y in P)if(Y.toLocaleLowerCase().indexOf(B)===0){var g=P[Y];if(g&&g.emojiId){if(g=RGZ(_.Sp,g.emojiId)){var k=void 0,n=void 0,b=void 0,d=void 0,q=((k=g.image)==null?0:(n=k.accessibility)==null?0:(b=n.accessibilityData)==null?0:b.label)||g.isCustomEmoji?(d=g.shortcuts)==null?void 0:d[0]:g.emojiId;c.push({suggestion:{emoji:!0,image:g.image,alt:q,text:Y,textToInsertWhenSelected:g.isCustomEmoji?Y:q}})}if(c.length>=
64)break}}if(!this.participantsManager)return null;if(x.indexOf("@")===0||x.indexOf("#")===0)P=x.charAt(0),B=B.substring(1),Y=_.T("live_chat_enable_handles_web_text_input_update"),x.indexOf("@")===0&&Y&&(Y=this.participantsManager.getAuthorsFromPrefix(x.substring(0,2)),this.getChatParticipantSuggestions(B,Y,P,c)),x=x.substring(1),x=this.participantsManager.getAuthorsFromPrefix(x),this.getChatParticipantSuggestions(B,x,P,c);return c?c.sort(function(C,h){return h.suggestion.text<C.suggestion.text?-1:
h.suggestion.text===C.suggestion.text?0:1}):null};
_.a.insertSuggestion=function(B){var c=_.T("live_chat_enable_handles_web_text_input_update"),x=B.authorType;c=B.text.indexOf(x)===0&&c?B.text+kvI:x+B.text+kvI;B.emoji?this.insertTextAtRange(this.JSC$12055_lastSuggestionRange,B.textToInsertWhenSelected||""):B.author&&this.insertTextAtRange(this.JSC$12055_lastSuggestionRange,c)};
_.a.updateSuggestionsAtCaret=function(){var B=this.getCurrentRange();B&&this.updateSuggestions(B,this.calculateTextBeforeRange(B))};
_.a.offsetStartOfRangeBy=function(B,c){for(;c>0;)if(B.startOffset-c>=0){B.setStart(B.startContainer,B.startOffset-c);break}else{c=B.startContainer instanceof HTMLImageElement?c-B.startContainer.alt.length:c-B.startOffset;var x=B.startContainer.previousSibling;if(!x){B.setStart(B.startContainer,0);break}if(_.T("live_chat_require_space_for_autocomplete_emoji")){var P=void 0,Y=void 0;B.setStart(x,((P=x)==null?void 0:(Y=P.textContent)==null?void 0:Y.length)||0)}else B.setStart(x,x.childNodes.length||
0)}};
_.a.updateSuggestions=function(B,c){var x=this;this.JSC$12055_lastSuggestionRange&&(this.JSC$12055_lastSuggestionRange.detach(),this.JSC$12055_lastSuggestionRange=null);if((c=pUW.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2&&(this.offsetStartOfRangeBy(B,c.length),this.JSC$12055_lastSuggestionRange=B,(B=this.getSuggestions(c))&&B.length))){this.suggestions=B;_.fl(this,function(){_.Y9(x.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(B.length-1);return}this.dropdown.opened=!1};
_.a.completeEmojisInRange=function(B,c,x){var P=c.replace(/[\s\xa0]+$/,"");c=c.length-P.length;P=P.split(" ");P=P[P.length-1].trim().toLocaleLowerCase();var Y=P.lastIndexOf(":");if(x&&!c&&Y!==P.length-1)return!1;Y!==-1&&(x=P.lastIndexOf(":",Y-1),x!==-1&&(P=P.substring(x)));if((x=_.mT(_.Sp,P))&&x.emojiId){x=RGZ(_.Sp,x.emojiId)||null;this.offsetStartOfRangeBy(B,P.length+c);var g,k,n,b;P=(((g=x)==null?0:g.isCustomEmoji)?(k=x)==null?void 0:(n=k.shortcuts)==null?void 0:n[0]:(b=x)==null?void 0:b.emojiId)||
"";c&&(P+=kvI);this.insertTextAtRange(B,P);this.dropdown.opened=!1;return!0}return!1};
_.a.onSuggestion=function(B){this.insertSuggestion(B.detail);this.dropdown.opened=!1};
_.a.onKeyPress=function(B){B.keyCode===13&&(B.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.aJ(this.hostElement,"yt-live-chat-send-message"))};
_.a.completeEmojis=function(){var B=document.createRange(),c=_.Y9(this.hostElement).querySelector("#input").lastChild;c?B.setStart(c,c.childNodes.length):(B.selectNodeContents(_.Y9(this.hostElement).querySelector("#input")),B.collapse(!1));this.completeEmojisInRange(B,this.calculateTextBeforeRange(B),_.T("live_chat_require_space_for_autocomplete_emoji"))};
_.a.maybePreventTextFormatting=function(B){!_.UZ||!B.ctrlKey&&!B.metaKey||B.keyCode!==66&&B.keyCode!==73||(B.stopImmediatePropagation(),B.preventDefault())};
_.a.onKeyDown=function(B){this.maybePreventTextFormatting(B);if(this.dropdown.opened)switch(B.keyCode){case 27:this.dropdown.opened=!1;B.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;B.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);B.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),B.preventDefault()}};
_.a.onKeyUp=function(B){switch(B.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.$V)this.onInputChange()};
_.a.changeSuggestionIndex=function(B){if(this.dropdown.opened){var c=_.Y9(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<c.children.length&&(c.children[this.suggestionIndex].active=!1);var x=this.suggestions.length;this.suggestionIndex=(B+x)%x;B=c.children[this.suggestionIndex];B.active=!0;c.scrollTop=B.offsetTop}};
_.a.onInputPaste=function(B){B.preventDefault();(B=B.clipboardData)&&B.types&&(B=B.getData("text/plain")||"",B=B.replace(/\n/g,""),this.insertText(B));(B=this.getCurrentRange())&&B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.a.onFocus=function(){this._setFocused(!0)};
_.a.onBlur=function(){this._setFocused(!1)};
_.a.insertText=function(B){this.insertTextAtRange(this.getInputRange(),B)};
_.a.insertTextAtRange=function(B,c){if(B&&(B.collapsed||B.deleteContents(),c=_.Sp.createDocumentFragment(c,!0,!1))){for(var x=_.p((c==null?void 0:c.childNodes)||[]),P=x.next();!P.done;P=x.next()){P=P.value;var Y=void 0,g=void 0,k=void 0,n=void 0,b=void 0;(k=(Y=window)==null?void 0:(g=Y.ShadyCSS)==null?void 0:g.ScopingShim)==null||(b=(n=k).scopeNode)==null||b.call(n,P,this.hostElement.localName)}x=c.lastChild;B.insertNode(c);this.focused||this.input.focus();if(this.focused){B=B.cloneRange();B.selectNodeContents(x);
B.collapse(!1);if(c=window.getSelection())c.removeAllRanges(),c.addRange(B);B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}B=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(B);_.aJ(this.hostElement,"yt-live-chat-message-input-change",B)}};
_.a.setLiveChatRichMessageInput=function(B){_.Y9(_.Y9(this.hostElement).querySelector("#input")).textContent="";if(B&&B.textSegments){for(var c=0;c<B.textSegments.length;c++){var x=B.textSegments[c];x.text?_.Y9(_.Y9(this.hostElement).querySelector("#input")).appendChild(_.Sp.createDocumentFragment(x.text,!0,!1)):x.emojiId&&(x=_.vV(_.Sp,x.emojiId))&&_.Y9(_.Y9(this.hostElement).querySelector("#input")).appendChild(_.Sp.createEmoji(x,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.a.setText=function(B){this.setLiveChatRichMessageInput(B?{textSegments:[{text:B}]}:null)};
_.a.calculateTextBeforeRange=function(B){var c="",x=B.startContainer;if(x&&x instanceof Text){var P;c=((P=x.textContent)==null?void 0:P.substring(0,B.startOffset))||"";x=x.previousSibling}for(;x&&x instanceof Text;)c=x.textContent+c,x=x.previousSibling;return c.replace(HV," ")};
_.a.calculateLiveChatRichMessageInput=function(){for(var B=[],c="",x=_.Y9(_.Y9(this.hostElement).querySelector("#input")).childNodes,P=0;P<x.length;P++){var Y=x[P];Y instanceof Text?c+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(c&&(B.push({text:c.replace(HV," ")}),c=""),B.push({emojiId:Y.dataset.emojiId})):c+=Y.alt)}c&&B.push({text:c.replace(HV," ")});if(x=_.Y9(this.hostElement).querySelector("#overflow-text")){c="";x=x.childNodes;for(P=0;P<x.length;P++)Y=x[P],Y instanceof Text?
c+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(c&&(B.push({text:c.replace(HV," ")}),c=""),B.push({emojiId:Y.dataset.emojiId})):c+=Y.alt);c&&B.push({text:c.replace(HV," ")})}return{textSegments:B}};
_.a.computeCharacterCount=function(B){if(!B||!B.textSegments)return 0;for(var c=0,x=0;x<B.textSegments.length;x++){var P=B.textSegments[x];if(P.text)c+=P.text.length;else if(P.emojiId){var Y=void 0;if((Y=this.data)==null?0:Y.emojiCharacterCount)c+=this.data.emojiCharacterCount;else{var g=Y=void 0,k=void 0;c+=((g=_.vV(_.Sp,(Y=P)==null?void 0:Y.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0].length)||0}}}return c};
_.a.characterCountChanged=function(){_.aJ(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.a.focusedChanged=function(){this.hostElement.dispatchEvent(new _.LQ("focused-changed",this.focused))};
_.a.focus=function(){this.setFocus(!1)};
_.a.focusAtEnd=function(){this.setFocus(!0)};
_.a.setFocus=function(B){B=B?this.getRangeAtEnd():this.getInputRange();_.Y9(this.hostElement).querySelector("#input").focus();var c=window.getSelection();c&&(c.removeAllRanges(),c.addRange(B))};
_.a.insertEmoji=function(B){var c,x=((B==null?0:B.isCustomEmoji)?(c=B.shortcuts)==null?void 0:c[0]:B==null?void 0:B.emojiId)||"";this.insertText(x)};
_.a.computeText=function(B){if(!B||!B.textSegments)return"";for(var c="",x=0;x<B.textSegments.length;x++){var P=B.textSegments[x];if(P.text)c+=P.text;else if(P.emojiId){var Y=void 0,g=void 0,k=void 0;c+=((g=_.vV(_.Sp,(Y=P)==null?void 0:Y.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0])||""}}return c};
_.a.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.AJ.Object.defineProperties(fQ.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
fQ.prototype.focusedChanged=fQ.prototype.focusedChanged;fQ.prototype.characterCountChanged=fQ.prototype.characterCountChanged;fQ.prototype.onSuggestion=fQ.prototype.onSuggestion;fQ.prototype.onMessageSet=fQ.prototype.onMessageSet;fQ.prototype.dataChanged=fQ.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],fQ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],fQ.prototype,"disabled",void 0);_.L([_.Q("disabled"),_.H("design:type",Number),_.H("design:paramtypes",[])],fQ.prototype,"inputTabIndex",null);_.L([_.Q("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],fQ.prototype,"maxCharacterLimit",null);
_.L([_.Q("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],fQ.prototype,"characterCount",null);_.L([_.Q("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],fQ.prototype,"remainingCharacterCount",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],fQ.prototype,"isChatMessageInput",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],fQ.prototype,"inputExpanded",void 0);_.L([_.F({readOnly:!0,notify:!0}),_.H("design:type",Object)],fQ.prototype,"liveChatRichMessageInput",void 0);_.L([_.F(),_.H("design:type",Object)],fQ.prototype,"messageInput",void 0);_.L([_.F(),_.H("design:type",Boolean)],fQ.prototype,"ignoreColorMapping",void 0);_.L([_.Q("characterCount"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fQ.prototype,"hasText",null);
_.L([_.F(),_.H("design:type",Object)],fQ.prototype,"isValidWithNoInputText",void 0);_.L([_.Q("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fQ.prototype,"isInputValid",null);_.L([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],fQ.prototype,"focused",void 0);_.L([_.F(),_.H("design:type",Array)],fQ.prototype,"suggestions",void 0);
_.L([_.F(),_.H("design:type",_.Fr)],fQ.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",_.ZP)],fQ.prototype,"participantsManager",void 0);_.L([_.F(),_.H("design:type",Boolean)],fQ.prototype,"noUnderline",void 0);_.L([_.F(),_.H("design:type",Object)],fQ.prototype,"inputMethodEditorActive",void 0);_.L([_.jr("#dropdown"),_.H("design:type",Object)],fQ.prototype,"dropdown",void 0);_.L([_.jr("#input"),_.H("design:type",HTMLElement)],fQ.prototype,"input",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"dataChanged",null);_.L([_.bF("messageInput"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"onMessageSet",null);_.L([_.nF("yt-live-chat-select-suggestion"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fQ.prototype,"onSuggestion",null);
_.L([_.bF("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"characterCountChanged",null);_.L([_.bF("focused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"focusedChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],fQ);
_.$WS=_.G(fQ,"yt-live-chat-text-input-field-renderer",function(){if(a74===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;YwQ===void 0&&(YwQ=document.createElement("template"));var P=YwQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);a74=B}B=a74;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var iD=function(){var B=_.z.apply(this,arguments)||this;B.buttonOverrides={style:"overlay",type:"filled"};B.allowAnimations=!1;B.modern=_.T("web_button_rework_with_live");B.noPadding=!1;return B};
_.w(iD,_.z);_.a=iD.prototype;_.a.shouldSupportInlineActionButtons=function(){return!0};
_.a.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"}}}}};
_.a.ready=function(){var B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.a.attached=function(){this.allowAnimations=!1};
_.a.dataChanged=function(){if(this.data){var B={"--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)};_.k9(this.hostElement,B);this.allowAnimations=!0}};
_.a.messageChanged=function(){var B,c=(B=this.data)==null?void 0:B.message;B=_.Y9(_.Y9(this.hostElement).querySelector("#message"));B.textContent="";c&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.a.computeShowOnlyHeader=function(B,c){return!B||B.pdgLikeButton||B.replyButton||B.buyFlowButton?!1:this.isEmpty(B,c)&&!B.footer};
_.a.computeShowFooterDivider=function(B,c,x){return B?!!B.footer&&!this.isEmpty(B,c)&&!x:!1};
_.a.computeIsUserEditable=function(B){return!!B.inputField};
_.a.computeHasHeartButton=function(B){return(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.a.computeNoveltyImage=function(B){if(B.headerOverlayImage&&B.headerOverlayImage.thumbnails.length){var c=B.headerOverlayImage.thumbnails[0],x,P;if((x=B.pdgPurchasedNoveltyLoggingDirectives)==null?0:(P=x.loggingDirectives)==null?0:P.trackingParams){var Y,g;THA((Y=B.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=Y.loggingDirectives)==null?void 0:g.trackingParams)}return c.width||0}return 0};
_.a.computeAuthorPhotoSize=function(B){return(B==null?0:B.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.a.inputFocus=function(){var B=_.Y9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");B&&B.focus()};
_.a.inputInsertEmoji=function(B){var c=_.Y9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");c&&c.insertEmoji(B)};
_.a.inputMessage=function(){var B=_.Y9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),c;return B&&((c=this.data)==null?0:c.inputField)?(B.completeEmojis(),_.S5(B.liveChatRichMessageInput)):null};
_.a.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.a.isEmpty=function(B,c){return B?B.empty||!(B.message||B.inputField||c):!0};
_.a.onLowerBuyButtonClick=function(){var B,c=_.t((B=this.data)==null?void 0:B.buyButton,_.z3);c&&c.trackingParams&&!ylo(c.command)&&(B=_.VF(c.trackingParams))&&(c=_.Wf())&&_.fW(c,B)};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.AJ.Object.defineProperties(iD.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
iD.prototype.isDeletedChanged=iD.prototype.isDeletedChanged;iD.prototype.messageChanged=iD.prototype.messageChanged;iD.prototype.dataChanged=iD.prototype.dataChanged;_.L([_.J(MYI.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],iD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],iD.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],iD.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iD.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hZC}),_.H("design:type",Object)],iD.prototype,"engagementState",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.H("design:type",Boolean)],iD.prototype,"isUserEditable",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.H("design:type",Boolean)],iD.prototype,"hasHeartButton",void 0);_.L([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Boolean)],iD.prototype,"showOnlyHeader",void 0);
_.L([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.H("design:type",Boolean)],iD.prototype,"showFooterDivider",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],iD.prototype,"allowAnimations",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],iD.prototype,"dashboardMoneyFeed",void 0);_.L([_.F({computed:"computeNoveltyImage(data)"}),_.H("design:type",Number)],iD.prototype,"noveltyWidth",void 0);
_.L([_.F({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],iD.prototype,"authorPhotoSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iD.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iD.prototype,"noPadding",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iD.prototype,"dataChanged",null);
_.L([_.bF("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iD.prototype,"messageChanged",null);_.L([_.Q("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iD.prototype,"hideLowerBumper",null);_.L([_.bF("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iD.prototype,"isDeletedChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],iD);
_.G(iD,"yt-live-chat-paid-message-renderer",function(){if(m5W===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;hG3===void 0&&(hG3=document.createElement("template"));var P=hG3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);m5W=B}B=m5W;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var n8F;var bcm;var A6=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;return B};
_.w(A6,_.dM);A6.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.v5("openPopupConfig")};
_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],A6.prototype,"ytOpenPopupBehavior",void 0);_.L([_.qi()],A6);_.uD=[_.dG.YtOpenPopupBehavior,A6.prototype];var K3Z;var fw=[_.qA,PJI,_.QR,_.Cr,_.fN,_.jf3,_.TF,_.T75,_.Fs,dUC];_.T("web_watch_get_updated_metadata_response_processing")&&fw.push(_.Hdt);_.T("web_continuation_response_processing")&&fw.push(_.zU);var d1I=new _.BL("RESPONSE_RECEIVED_COMMANDS"),b_7=new _.BL("RESPONSE_RECEIVED_COMMANDS");var gO7="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),aBq=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Yad=["GET_UNSEEN_NOTIFICATION_COUNT"];var DP=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.serviceEndpointHandlers=[];return B};
_.w(DP,_.dM);DP.prototype.created=function(){var B=this;this.endpointHandlerActionMap={"yt-service-request":function(c,x,P,Y){var g;return P_o(B.hostElement,c,x,P,Y,B.serviceEndpointHandlers,(g=B.onEntitiesUpdated)==null?void 0:g.bind(B))}}};
DP.prototype.attached=function(){_.Ma(_.Gr.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
DP.prototype.detached=function(){_.LE(_.Gr.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.L([_.qi()],DP);_.jTm=[DP.prototype];var UWd,dWI=function(){return UWd!==void 0?UWd:UWd=document.createElement("template")};
document.head.appendChild(dWI().content);var qw4;var C1y=document.head,hw3=C1y.appendChild,mWW;if(qw4===void 0){var Tm9=document.createElement("template");_.I(Tm9,"\x3c!--css-build:shady--\x3e");Tm9.content.insertBefore(dWI().content.cloneNode(!0),Tm9.content.firstChild);qw4=Tm9}mWW=qw4;hw3.call(C1y,mWW.content);var VUm,tUd=function(){return VUm!==void 0?VUm:VUm=document.createElement("template")};
document.head.appendChild(tUd().content);var wUI;var Nm4=document.head,I7F=Nm4.appendChild,JCd;if(wUI===void 0){var W3y=document.createElement("template");_.I(W3y,"\x3c!--css-build:shady--\x3e");W3y.content.insertBefore(tUd().content.cloneNode(!0),W3y.content.firstChild);wUI=W3y}JCd=wUI;I7F.call(Nm4,JCd.content);var l79;_.o2("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.o2("sharingRendererButtons","buttonRenderer","ytd-button-renderer");l79=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.rG=function(){var B=_.z.apply(this,arguments)||this;B.isPressed=!1;B.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return B};
_.w(_.rG,_.z);_.a=_.rG.prototype;_.a.created=function(){this.showTooltips=!0};
_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.onHintIdChanged=function(){var B=this,c,x,P=(c=this.ytButtonBehavior.data)==null?void 0:(x=c.hint)==null?void 0:x.hintRenderer;if(P&&P.hintId){c=_.sp(this.hostElement,"yt-get-opened-popups-action");c=(c&&c.length===1?c[0]:[]).length>0;var Y=null;P.hintId!=="sponsor-pre-purchase"||c?P.hintId.startsWith("sponsor-post-purchase")&&!c?Y=xBd("membership-manage"):P.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!c&&(Y=xBd("membership-freebie-join")):Y=xBd("membership-join");Y&&_.EE.addLowPriorityJob(function(){for(var g=
_.p(Y),k=g.next();!k.done;k=g.next())B.ytComponentBehavior.resolveCommand(k.value)})}};
_.a.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.a.onYtNavigate=function(B){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);c&&(B.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.a.onYtServiceRequestSent=function(B,c){this.handleServiceRequestActions(c);_.aJ(this.hostElement,"yt-service-request-sent-button-renderer")};
_.a.onServiceRequestCompleted=function(B,c){this.handleServiceRequestActions(c);_.aJ(this.hostElement,"yt-service-request-completed-button-renderer")};
_.a.updateButton=function(B){var c;if(B=(c=_.t(B,yd5))==null?void 0:c.updatedButton)this.ytButtonBehavior.data=_.t(B,_.z3)};
_.a.handleUpdateButtonAction=function(B){var c=this.ytButtonBehavior.data;c.targetId&&B.updateButtonAction.targetId&&c.targetId===B.updateButtonAction.targetId&&this.updateButton(B)};
_.a.handleServiceRequestActions=function(B){if(B=B.actions)for(var c=0;c<B.length;c++)this.updateButton(B[c])};
_.AJ.Object.defineProperties(_.rG,{template:{configurable:!0,enumerable:!0,get:function(){if(K3Z===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);K3Z=B}B=K3Z;return B}}});
_.rG.prototype.onServiceRequestCompleted=_.rG.prototype.onServiceRequestCompleted;_.rG.prototype.onYtServiceRequestSent=_.rG.prototype.onYtServiceRequestSent;_.rG.prototype.onYtNavigate=_.rG.prototype.onYtNavigate;_.rG.prototype.onPressedStateChanged=_.rG.prototype.onPressedStateChanged;_.rG.prototype.onHintIdChanged=_.rG.prototype.onHintIdChanged;_.L([_.F(),_.H("design:type",Object)],_.rG.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],_.rG.prototype,"isPressed",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],_.rG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.M95.YtButtonBehavior),_.H("design:type",Object)],_.rG.prototype,"ytButtonBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],_.rG.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],_.rG.prototype,"ytComponentBehavior",void 0);
_.L([_.J(TO.YtRenderButtonBehavior),_.H("design:type",Object)],_.rG.prototype,"ytRenderButtonBehavior",void 0);_.L([_.bF("data.hint.hintRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.rG.prototype,"onHintIdChanged",null);_.L([_.bF("isPressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.rG.prototype,"onPressedStateChanged",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.rG.prototype,"onYtNavigate",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],_.rG.prototype,"onYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],_.rG.prototype,"onServiceRequestCompleted",null);_.L([_.y({is:"ytd-button-renderer",disableElementRegistration:l79})],_.rG);var Ri=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.w(Ri,_.z);_.a=Ri.prototype;_.a.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"}}}}};
_.a.ready=function(){var B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.a.dataChanged=function(){if(this.data&&this.data.sticker){var B=_.Pw(this.data.sticker.thumbnails,this.stickerWidth);B||_.hNx(B).thenCatch(function(){_.Ob(new _.mc("Failed to load Super Sticker with url",B))})}};
_.a.computeAuthorPhotoSize=function(B){return(B==null?0:B.isV2Style)?32:40};
_.a.computeIsV2Style=function(B){return(B==null?0:B.isV2Style)?!0:!1};
_.a.onStickerLoaded=function(B){var c,x,P;(c=_.uI(B))==null||(x=c.parentNode)==null||(P=x.classList)==null||P.add("sticker-loaded")};
_.a.computeNoveltyImageWidth=function(B){var c,x;if(B==null?0:(c=B.headerOverlayImage)==null?0:(x=c.thumbnails)==null?0:x.length){c=B.headerOverlayImage.thumbnails[0];var P,Y;if((P=B.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Y=P.loggingDirectives)==null?0:Y.trackingParams){var g,k;THA((g=B.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)}return c.width||0}return 0};
_.a.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.a.updateStickerStyles=function(){var B=this.data;B&&(B={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.authorNameTextColor)},
_.k9(this.hostElement,B))};
_.a.onBuyButtonClick=function(){var B,c=_.t((B=this.data)==null?void 0:B.buyButton,_.z3);c&&!ylo(c.command)&&this.ytRendererBehavior.logExplicitClick(c)};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.AJ.Object.defineProperties(Ri.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 B;return((B=this.data)==null?0:B.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Ri.prototype.updateStickerStyles=Ri.prototype.updateStickerStyles;Ri.prototype.isDeletedChanged=Ri.prototype.isDeletedChanged;Ri.prototype.onStickerLoaded=Ri.prototype.onStickerLoaded;Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.L([_.J(MYI.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],Ri.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],Ri.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ri.prototype,"data",void 0);
_.L([_.F({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],Ri.prototype,"authorPhotoSize",void 0);_.L([_.F(),_.H("design:type",Boolean)],Ri.prototype,"isDeleted",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ri.prototype,"dashboardMoneyFeed",void 0);_.L([_.F({computed:"computeNoveltyImageWidth(data)"}),_.H("design:type",Number)],Ri.prototype,"noveltyWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ri.prototype,"modern",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.H("design:type",Boolean)],Ri.prototype,"isV2Style",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ri.prototype,"dataChanged",null);_.L([_.nF("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ri.prototype,"onStickerLoaded",null);
_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Ri.prototype,"stickerWidth",null);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Ri.prototype,"stickerHeight",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ri.prototype,"hasHeartButton",null);_.L([_.Q("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ri.prototype,"hideLowerBumper",null);
_.L([_.bF("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ri.prototype,"isDeletedChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ri.prototype,"updateStickerStyles",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Ri);
_.G(Ri,"yt-live-chat-paid-sticker-renderer",function(){if(bcm===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;n8F===void 0&&(n8F=document.createElement("template"));var P=n8F;x.call(c,P.content.cloneNode(!0),B.content.firstChild);bcm=B}B=bcm;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var E85;var Oc5;var o8t,QTd=function(){return o8t!==void 0?o8t:o8t=document.createElement("template")};
document.head.appendChild(QTd().content);var F35,v8y=function(){return F35!==void 0?F35:F35=document.createElement("template")};
document.head.appendChild(v8y().content);var zwI;var Swd,yCd=function(){return Swd!==void 0?Swd:Swd=document.createElement("template")};
document.head.appendChild(yCd().content);var GvZ;var MUQ=document.head,L3t=MUQ.appendChild,Zc9;if(GvZ===void 0){var Hc4=document.createElement("template");_.I(Hc4,"\x3c!--css-build:shady--\x3e");Hc4.content.insertBefore(yCd().content.cloneNode(!0),Hc4.content.firstChild);GvZ=Hc4}Zc9=GvZ;L3t.call(MUQ,Zc9.content);var f7t=document.head,ic9=f7t.appendChild,ACZ;if(zwI===void 0){var ep=document.createElement("template");_.I(ep,"\x3c!--css-build:shady--\x3e");ep.content.insertBefore(v8y().content.cloneNode(!0),ep.content.firstChild);ep.content.insertBefore(QTd().content.cloneNode(!0),ep.content.firstChild);zwI=ep}ACZ=zwI;ic9.call(f7t,ACZ.content);var BD=function(){var B=_.dM.apply(this,arguments)||this;B.focusedIndex=0;B.verticalOffset=0;B.verticalAlign="top";B.dynamicAlign=!0;return B};
_.w(BD,_.dM);BD.prototype.emojiUrl=function(B){B=_.vV(this.emojiManager,B);if(!B)return"";var c;B=(c=B.image)==null?void 0:c.thumbnails;return _.Pw(B,24)||""};
var uc0=function(B){var c;B.emojiVariants&&(c=B.data)!=null&&c.target&&_.fl(B,function(){B.set("verticalOffset",-1*B.hostElement.clientHeight);var x=_.Y9(B.hostElement).querySelector("img");x&&x.focus()})};
_.a=BD.prototype;_.a.onKeyboardEnter=function(){};
_.a.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.a.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.a.onKeyDown=function(B){switch(B.keyCode){case 13:this.onKeyboardEnter();B.preventDefault();break;case 40:this.changeFocus(1);B.preventDefault();break;case 38:this.changeFocus(-1);B.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.a.onYtEmojiSelect=function(B){var c=this,x,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return P=(x=c.data)==null?void 0:x.emoji,k=((Y=P)==null?void 0:Y.stickyPrefId)||((g=P)==null?void 0:g.emojiId),b=(n=B.detail)==null?void 0:n.emojiId,k&&b&&k!==b?_.K(q,(d=c.emojiManager)==null?void 0:BmW(d,P,b),2):q.return();_.gj(c.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[P,b]);_.Kq(q)})};
_.a.changeFocus=function(B){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+B+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(B=_.Y9(this.hostElement).querySelector("#variants"))&&B.children[this.focusedIndex].focus())};
_.AJ.Object.defineProperties(BD.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
BD.prototype.onYtEmojiSelect=BD.prototype.onYtEmojiSelect;BD.prototype.onKeyDown=BD.prototype.onKeyDown;BD.prototype.onEmojiVariantsChanged=BD.prototype.onEmojiVariantsChanged;BD.prototype.onVerticalOffsetOrPositionTargetChanged=BD.prototype.onVerticalOffsetOrPositionTargetChanged;_.L([_.J(_.ii),_.H("design:type",Object)],BD.prototype,"ironOverlayBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],BD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",_.Fr)],BD.prototype,"emojiManager",void 0);
_.L([_.F(),_.H("design:type",Object)],BD.prototype,"emojiVariants",void 0);_.L([_.F(),_.H("design:type",Object)],BD.prototype,"focusedIndex",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],BD.prototype,"positionTarget",null);_.L([_.F({reflectToAttribute:!0}),_.Q("verticalOffset","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BD.prototype,"isPositioned",null);_.L([_.F(),_.H("design:type",Object)],BD.prototype,"verticalOffset",void 0);
_.L([_.F(),_.H("design:type",Object)],BD.prototype,"verticalAlign",void 0);_.L([_.F(),_.H("design:type",Object)],BD.prototype,"dynamicAlign",void 0);_.L([_.bF("verticalOffset","positionTarget"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BD.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.L([_.bF("emojiVariants"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BD.prototype,"onEmojiVariantsChanged",null);
_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],BD.prototype,"onKeyDown",null);_.L([_.nF("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],BD.prototype,"onYtEmojiSelect",null);_.L([_.qi()],BD);var DW5=[BD.prototype];var rCm;var RwQ;var ew4=/medium-light|medium-dark|light|medium|dark/,BHd=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,cAZ=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),cD=function(){var B=_.z.apply(this,arguments)||this;B.userSelection={left:null,right:null};B.scrollAction="lock";B.isEmojiDraftInProgress=!1;return B};
_.w(cD,_.z);_.a=cD.prototype;_.a.onClick=function(B){B=_.uI(B);B instanceof HTMLImageElement&&this.selectOrUpdateEmoji(B)};
_.a.selectOrUpdateEmoji=function(B){var c=B.getAttribute("selection");c&&(c==="default"?_.aJ(this.hostElement,"yt-emoji-select",_.vV(this.emojiManager,B.id)):c==="left"?this.userSelection=Object.assign({},this.userSelection,{left:B.src}):c==="right"?this.userSelection=Object.assign({},this.userSelection,{right:B.src}):c==="user"&&this.userSelection.left&&this.userSelection.right&&_.aJ(this.hostElement,"yt-emoji-select",_.vV(this.emojiManager,B.id)))};
_.a.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.a.onMultiSelectorThumbnailRowChanged=function(){var B,c,x;((B=this.data)==null?0:(c=B.emoji)==null?0:(x=c.multiSelectorThumbnailRow)==null?0:x.length)&&this.openSelector()};
_.a.getThumbnailFromEmojiRow=function(B){var c,x;return(B==null?void 0:(c=B.thumbnails)==null?void 0:(x=c[0])==null?void 0:x.url)||""};
_.a.getEmojiAltTextForPartialSelector=function(B){var c;return((c=this.getThumbnailFromEmojiRow(B).match(BHd))==null?void 0:c[0])||""};
_.a.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.a.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.a.getRowSelection=function(B){return["left","right"][B]};
_.a.getIdFromComposedEmoji=function(B){return(B==null?void 0:B.emojiId)||""};
_.a.getEmojiFromPartialSelections=function(B,c){if(!B&&!c)return null;var x,P,Y=(x=this.data)==null?void 0:(P=x.emoji)==null?void 0:P.variantIds;if(!Y||!Y.length)return null;var g;B=(g=B.match(ew4))==null?void 0:g[0];var k;c=(k=c.match(ew4))==null?void 0:k[0];if(!B||!c)return null;var n=cAZ.get(B);k=cAZ.get(c);if(n===k){k=Array.from(cAZ.values()).filter(function(d){return d!==n}).join("|");
var b=new RegExp("^((?!("+k+")).)*"+n+"$")}else b=new RegExp(n+".*"+k);return(Y=Y.find(function(d){return b.test(d)}))&&_.vV(this.emojiManager,Y)||null};
_.a.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var B,c=this.ytEmojiSelectorBehavior.emojiUrl(((B=this.data.emoji)==null?void 0:B.emojiId)||"");_.Y9(this.hostElement).querySelector('[selection="user"]').src.includes(c)||(this.isEmojiDraftInProgress=!0)}};
_.a.onDomChange=function(){uc0(this.ytEmojiSelectorBehavior)};
_.a.getFocusableElements=function(){return _.Y9(this.hostElement).querySelectorAll("img").filter(function(B){return B.getAttribute("role")==="option"})};
_.a.changeFocus=function(B){var c=this.getFocusableElements();c!=null&&c.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+B+c.length)%c.length,this.ytEmojiSelectorBehavior.focusedIndex<c.length&&(B=c[this.ytEmojiSelectorBehavior.focusedIndex])&&B.focus())};
_.a.onKeyboardEnter=function(){var B=this.getFocusableElements();B!=null&&B.length&&(B=B[this.ytEmojiSelectorBehavior.focusedIndex])&&B instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(B),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.AJ.Object.defineProperties(cD.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x,P;return this.emojiManager&&((c=this.data)==null?0:(x=c.emoji)==null?0:(P=x.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.vV(B.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var B,c=(B=this.userSelection)==null?void 0:B.left,x;B=(x=this.userSelection)==null?void 0:x.right;return c&&B?this.getEmojiFromPartialSelections(c,B):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.composedEmojiSelection)==null?0:B.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var c;B=(c=this.userSelection)==null?void 0:c.left;var x;c=(x=this.userSelection)==null?void 0:x.right;if(!B&&!c){var P;return this.ytEmojiSelectorBehavior.emojiUrl(((P=this.data.emoji)==null?void 0:P.emojiId)||"")}return B&&!c?B:!B&&c?c:""}}});
cD.prototype.onMultiSelectorThumbnailRowChanged=cD.prototype.onMultiSelectorThumbnailRowChanged;cD.prototype.onClick=cD.prototype.onClick;_.L([_.J(_.ii),_.H("design:type",Object)],cD.prototype,"ironOverlayBehavior",void 0);_.L([_.J(DW5),_.H("design:type",Object)],cD.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",_.Fr)],cD.prototype,"emojiManager",void 0);
_.L([_.F(),_.H("design:type",Object)],cD.prototype,"userSelection",void 0);_.L([_.F(),_.H("design:type",Object)],cD.prototype,"scrollAction",void 0);_.L([_.F(),_.H("design:type",Object)],cD.prototype,"isEmojiDraftInProgress",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],cD.prototype,"emojiVariants",null);_.L([_.Q("data","userSelection"),_.H("design:type",Object),_.H("design:paramtypes",[])],cD.prototype,"composedEmojiSelection",null);
_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],cD.prototype,"onClick",null);_.L([_.bF("data.emoji.multiSelectorThumbnailRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cD.prototype,"onMultiSelectorThumbnailRowChanged",null);_.L([_.Q("data","userSelection","composedEmojiSelection"),_.H("design:type",String),_.H("design:paramtypes",[])],cD.prototype,"draftEmojiUrl",null);
_.L([_.Em({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],cD);
_.G(cD,"yt-emoji-multi-person-selector",function(){if(RwQ===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;rCm===void 0&&(rCm=document.createElement("template"));var P=rCm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);RwQ=B}B=RwQ;return B},{mode:2});var xJ5;var PCF;var xG=function(){var B=_.z.apply(this,arguments)||this;B.tooltip_=null;return B};
_.w(xG,_.z);_.a=xG.prototype;_.a.dataChanged_=function(){var B;if((B=this.data)==null?0:B.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Y9(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.pF)(this.tooltip_).textContent=this.data.tooltip};
_.a.computeTargetId=function(){var B;return((B=this.data)==null?void 0:B.targetId)||""};
_.a.computeId_=function(B){return B};
_.a.computeIcon_=function(B){return _.$0(B)};
_.a.onTap_=function(){this.active=!this.active;_.aJ(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.a.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("active-changed",this.active))};
_.AJ.Object.defineProperties(xG.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var B,c;if((B=this.data)==null?0:(c=B.icon)==null?0:c.iconType)return this.data.icon.iconType==="SUPER_STICKER";var x,P;return((x=this.data)==null?void 0:(P=x.icon)==null?void 0:P.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
xG.prototype.activeChangedForBinding=xG.prototype.activeChangedForBinding;xG.prototype.dataChanged_=xG.prototype.dataChanged_;_.L([_.J(_.Ly.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],xG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xG.prototype,"data",void 0);_.L([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.H("design:type",String)],xG.prototype,"id",void 0);
_.L([_.F({computed:"computeTargetId(data.targetId)"}),_.H("design:type",String)],xG.prototype,"targetId",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xG.prototype,"active",void 0);_.L([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.H("design:type",String)],xG.prototype,"icon",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xG.prototype,"dataChanged_",null);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xG.prototype,"iconFilled",null);_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xG.prototype,"activeChangedForBinding",null);_.L([_.Em({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],xG);
_.G(xG,"yt-emoji-picker-category-button-renderer",function(){if(PCF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;xJ5===void 0&&(xJ5=document.createElement("template"));var P=xJ5;x.call(c,P.content.cloneNode(!0),B.content.firstChild);PCF=B}B=PCF;return B},{mode:2});var YHQ;var awm;var PD=function(){var B=_.z.apply(this,arguments)||this;B.ariaLabel=null;B.ariaActivedescendant=null;B.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};B.JSC$12120_ignoreNextFocus_=!1;B.longPressTimeoutId=-1;return B};
_.w(PD,_.z);_.a=PD.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.a.emojiChanged_=function(){this.changeFocus_(0,!1);for(var B=_.q_(),c=0;c<this.emoji.length;c++){var x={veType:88013,elementIndex:c},P=this.emoji[c];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(x=_.dX(B,x))&&(P.visualElement=x)}};
_.a.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.a.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.a.emojiSkinToneChanged_=function(B){this.skinTone=B};
_.a.dataChanged=function(){this.data&&this.data.emojiData&&D5Z(this.emojiManager,this.data.emojiData)};
_.a.emojiUrl=function(B){B=this.getEmoji(B);if(!B)return"";var c;B=(c=B.image)==null?void 0:c.thumbnails;return _.Pw(B,24)||""};
_.a.emojiAlt=function(B){var c=this.get("image.accessibility.accessibilityData.label",B);return c?c:B.isCustomEmoji?B.shortcuts[0]:B.emojiId};
_.a.emojiAriaLabel=function(B){return B.shortcuts?B.shortcuts[0]:""};
_.a.emojiAriaSelected=function(B,c,x){return B&&x==c?"true":"false"};
_.a.getEmoji=function(B){if(this.emojiManager)return this.shouldUseStickyPreferences?RGZ(this.emojiManager,B):zO(this.emojiManager,B)};
_.a.computeId_=function(B){return B.categoryId||""};
_.a.computeEmoji=function(B){var c=this;return this.emojiManager?B.emojiIds?B.emojiIds.map(function(x){return x?_.vV(c.emojiManager,x):null}).filter(mUl):B.emojiData?B.emojiData.map(function(x){var P=!!x.emojiId&&_.vV(c.emojiManager,x.emojiId);
return P?Object.assign({},P,x):null}).filter(mUl):[]:[]};
_.a.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.a.computeAriaLabel_=function(B){return _.iG(B)};
_.a.computeAriaActivedescendant_=function(B,c){return B&&B[c]?B[c].emojiId||"":""};
_.a.handleLongPressEmojiWithVariants=function(B,c){this.changeFocusToEmoji(B.emojiId,!1);this.openVariantSelector(B,c)};
_.a.onMouseDown=function(B){var c=this;this.hostElement!==document.activeElement&&(this.JSC$12120_ignoreNextFocus_=!0);if(B.button===0){var x=_.uI(B);if(x instanceof HTMLImageElement){var P=_.Y9(this.hostElement).querySelector("#repeat").itemForElement(x);this.emojiContainsVariants(P)&&(this.longPressTimeoutId=setTimeout(function(){c.handleLongPressEmojiWithVariants(P,x)},500))}}};
_.a.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.a.onFocus=function(){this.JSC$12120_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12120_ignoreNextFocus_=!1};
_.a.onBlur_=function(){this.showFocus=!1};
_.a.emojiContainsVariants=function(B){return!!(B&&B.variantIds&&B.variantIds.length)};
_.a.onClick=function(B){clearTimeout(this.longPressTimeoutId);B=_.uI(B);if(B instanceof HTMLImageElement){var c=B.id;this.changeFocusToEmoji(c,!1);var x=this.getEmoji(c),P;if(P=this.shouldUseStickyPreferences&&this.emojiContainsVariants(x)){var Y;P=!((Y=this.emojiManager.emojiMap[c])!=null&&Y.stickyPrefId)}P?(Y=_.Y9(this.hostElement).querySelector("#repeat").itemForElement(B),this.openVariantSelector(Y,B)):_.aJ(this.hostElement,"yt-emoji-select",x)}};
_.a.isActiveEmojiWithVariants=function(B,c){return B&&c?c.stickyPrefId?B===c.stickyPrefId:B===c.emojiId:!1};
_.a.onCloseEmojiVariantSelector=function(B){this.activeEmojiWithVariantsId===B&&(this.activeEmojiWithVariantsId="")};
_.a.onMouseOver_=function(B){B=_.uI(B);B instanceof HTMLImageElement&&_.aJ(this.hostElement,"yt-emoji-hover",_.vV(this.emojiManager,B.id))};
_.a.changeFocus_=function(B,c){this.focusedIndex=(this.focusedIndex+B+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(B=this.emoji[this.focusedIndex],c&&(this.showFocus=!0,_.Y9(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.aJ(this.hostElement,"yt-emoji-hover",B)))};
_.a.changeFocusToEmoji=function(B,c){if(B){var x=this.emoji.findIndex(function(P){return P.emojiId===B});
x!==-1&&this.changeFocus_(x-this.focusedIndex,c)}};
_.a.onKeyDown_=function(B){switch(B.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var c=this.emoji[this.focusedIndex];if(c&&c.emojiId){if(this.emojiContainsVariants(c)){var x=_.Y9(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(c,x)}else _.aJ(this.hostElement,"yt-emoji-select",zO(this.emojiManager,c.emojiId)),this.hostElement.focus();B.preventDefault()}}break;case 40:this.changeFocus_(1,!0);B.preventDefault();break;case 38:this.changeFocus_(-1,!0),
B.preventDefault()}};
_.a.onEmojiStickyPreferenceChanged=function(B,c){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&B.emojiId&&B.variantIds&&B.variantIds.includes(c)&&this.activeEmojiWithVariantsId!==c&&this.setStickyEmojiPreference(B.emojiId,c)};
_.a.openVariantSelector=function(B,c){this.activeEmojiWithVariantsId=B.stickyPrefId||B.emojiId||"";_.aJ(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:B,target:c})};
_.a.setStickyEmojiPreference=function(B,c){if(this.data){var x=this.emoji.findIndex(function(Y){return Y.emojiId===B});
if(x!==-1){var P=this.emoji[x];P.stickyPrefId=c;this.set("emoji."+x,Object.assign({},P));this.activeEmojiWithVariantsId=c}}};
PD.prototype.onKeyDown_=PD.prototype.onKeyDown_;PD.prototype.onMouseOver_=PD.prototype.onMouseOver_;PD.prototype.onClick=PD.prototype.onClick;PD.prototype.onBlur_=PD.prototype.onBlur_;PD.prototype.onFocus=PD.prototype.onFocus;PD.prototype.onMouseUp=PD.prototype.onMouseUp;PD.prototype.onMouseDown=PD.prototype.onMouseDown;PD.prototype.dataChanged=PD.prototype.dataChanged;PD.prototype.disableIncrementalLoadingChanged_=PD.prototype.disableIncrementalLoadingChanged_;PD.prototype.emojiManagerChanged_=PD.prototype.emojiManagerChanged_;
PD.prototype.emojiChanged_=PD.prototype.emojiChanged_;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],PD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PD.prototype,"data",void 0);_.L([_.F({computed:"computeId_(data)"}),_.H("design:type",String)],PD.prototype,"id",void 0);_.L([_.F({computed:"computeEmoji(data)"}),_.H("design:type",Array)],PD.prototype,"emoji",void 0);_.L([_.F(),_.H("design:type",Number)],PD.prototype,"skinTone",void 0);
_.L([_.F(),_.H("design:type",_.Fr)],PD.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Boolean)],PD.prototype,"disableIncrementalLoading",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],PD.prototype,"focusedIndex",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],PD.prototype,"showFocus",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.H("design:type",Object)],PD.prototype,"ariaLabel",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.H("design:type",Object)],PD.prototype,"ariaActivedescendant",void 0);_.L([_.F({value:60}),_.H("design:type",Number)],PD.prototype,"domRepeatTargetFramerate",void 0);_.L([_.F({value:1}),_.H("design:type",Number)],PD.prototype,"domRepeatInitialCount",void 0);_.L([_.F({value:""}),_.H("design:type",String)],PD.prototype,"activeEmojiWithVariantsId",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],PD.prototype,"shouldUseStickyPreferences",void 0);_.L([_.bF("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"emojiChanged_",null);_.L([_.bF("emojiManager"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"emojiManagerChanged_",null);
_.L([_.bF("disableIncrementalLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"disableIncrementalLoadingChanged_",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"dataChanged",null);_.L([_.nF("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],PD.prototype,"onMouseDown",null);
_.L([_.nF("mouseup"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"onMouseUp",null);_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"onFocus",null);_.L([_.nF("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PD.prototype,"onBlur_",null);
_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],PD.prototype,"onClick",null);_.L([_.nF("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],PD.prototype,"onMouseOver_",null);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],PD.prototype,"onKeyDown_",null);
_.L([_.Em({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],PD);
_.G(PD,"yt-emoji-picker-category-renderer",function(){if(awm===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;YHQ===void 0&&(YHQ=document.createElement("template"));var P=YHQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);awm=B}B=awm;return B},{mode:2});var g3Z;var s90;var p2W;var kan;var YG=function(){var B=_.z.apply(this,arguments)||this;B.ariaLabel=null;B.ariaActivedescendant=null;B.getFormattedStringRawText=_.iG;B.JSC$12126_ignoreNextFocus_=!1;return B};
_.w(YG,_.z);_.a=YG.prototype;_.a.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")};
_.a.emojiUrl=function(B){var c,x;B=(c=zO(this.emojiManager,B,!0))==null?void 0:(x=c.image)==null?void 0:x.thumbnails;return _.Pw(B,24)||""};
_.a.emojiAlt=function(B){var c=this.get("image.accessibility.accessibilityData.label",B);return c?c:B.isCustomEmoji?B.shortcuts[0]:B.emojiId};
_.a.emojiId=function(B){return"emoji"+B};
_.a.computeId_=function(B){return B.categoryId||""};
_.a.computeAriaActivedescendant_=function(B){return this.emoji&&B<this.emoji.length?this.emojiId(B):""};
_.a.emojiChanged_=function(){this.changeFocus_(0,!1);for(var B=_.q_(),c=0;c<this.emoji.length;c++){var x={veType:88013,elementIndex:c},P=this.emoji[c];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(x=_.dX(B,x))&&(P.visualElement=x)}};
_.a.computeEmoji_=function(B){var c=this;return this.emojiManager?B.emojiIds.map(function(x){return _.vV(c.emojiManager,x,!0)}).filter(T0d):[]};
_.a.titleOffsetChanged_=function(){var B=this.hostElement.getBoundingClientRect(),c=_.Y9(this.hostElement).querySelector("#title").getBoundingClientRect();B=Math.max(0,Math.min(this.titleOffset,B.height-c.height));_.Y9(this.hostElement).querySelector("#title").style.top=B+"px"};
_.a.onEmojiMouseOver_=function(B){_.aJ(this.hostElement,"yt-emoji-hover",B.model.item)};
_.a.onEmojiTap_=function(B){this.data.command&&(B=lw$(_.cp().resolve(_.Bp(S3)),this.data.command,B),_.aJ(this.hostElement,"yt-navigate",B))};
_.a.emojiAriaLabel=function(B){return B.shortcuts[0]};
_.a.emojiAriaSelected=function(B,c,x){return B&&x==c?"true":"false"};
_.a.changeFocus_=function(B,c){var x=this.emoji.length;this.focusedIndex=(this.focusedIndex+B+x)%x;B=this.emoji[this.focusedIndex];if(c){var P;(P=_.Y9(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||P.scrollIntoView(!1);_.aJ(this.hostElement,"yt-emoji-hover",B)}};
_.a.onMouseDown_=function(){this.JSC$12126_ignoreNextFocus_=!0};
_.a.onFocus_=function(){this.JSC$12126_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12126_ignoreNextFocus_=!1};
_.a.onBlur_=function(){this.showFocus=!1};
_.a.onKeyDown_=function(B){switch(B.keyCode){case 13:this.onEmojiTap_(B);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);B.preventDefault();break;case 38:this.changeFocus_(-1,!0),B.preventDefault()}};
YG.prototype.onKeyDown_=YG.prototype.onKeyDown_;YG.prototype.onBlur_=YG.prototype.onBlur_;YG.prototype.onFocus_=YG.prototype.onFocus_;YG.prototype.onMouseDown_=YG.prototype.onMouseDown_;YG.prototype.onEmojiTap_=YG.prototype.onEmojiTap_;YG.prototype.titleOffsetChanged_=YG.prototype.titleOffsetChanged_;YG.prototype.emojiChanged_=YG.prototype.emojiChanged_;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],YG.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],YG.prototype,"data",void 0);_.L([_.F({computed:"computeId_(data)"}),_.H("design:type",String)],YG.prototype,"id",void 0);_.L([_.F({computed:"computeEmoji_(data)"}),_.H("design:type",Array)],YG.prototype,"emoji",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],YG.prototype,"titleOffset",void 0);_.L([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.H("design:type",Object)],YG.prototype,"ariaLabel",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.H("design:type",Object)],YG.prototype,"ariaActivedescendant",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],YG.prototype,"showFocus",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],YG.prototype,"focusedIndex",void 0);_.L([_.F(),_.H("design:type",_.Fr)],YG.prototype,"emojiManager",void 0);
_.L([_.bF("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"emojiChanged_",null);_.L([_.bF("titleOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"titleOffsetChanged_",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],YG.prototype,"onEmojiTap_",null);
_.L([_.nF("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"onMouseDown_",null);_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"onFocus_",null);_.L([_.nF("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"onBlur_",null);
_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],YG.prototype,"onKeyDown_",null);_.L([_.Em({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],YG);
_.G(YG,"yt-emoji-picker-upsell-category-renderer",function(){if(kan===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;p2W===void 0&&(p2W=document.createElement("template"));var P=p2W;x.call(c,P.content.cloneNode(!0),B.content.firstChild);kan=B}B=kan;return B},{mode:2});var X29;var $Jn;var ae=function(){var B=_.z.apply(this,arguments)||this;B.scrollAction="lock";B.verticalAlign="top";return B};
_.w(ae,_.z);_.a=ae.prototype;_.a.onClick=function(B){B=_.uI(B);B instanceof HTMLImageElement&&_.aJ(this.hostElement,"yt-emoji-select",_.vV(this.emojiManager,B.id))};
_.a.openSelector=function(){this.ironOverlayBehavior.open()};
_.a.onDomChange=function(){uc0(this.ytEmojiSelectorBehavior)};
_.a.computeIsFamilySelector=function(B){var c;return(B==null?void 0:(c=B.emoji)==null?void 0:c.emojiId)==="\ud83d\udc6a"};
_.a.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var B=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];B&&B.emojiId&&(_.aJ(this.hostElement,"yt-emoji-select",_.vV(this.emojiManager,B.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.AJ.Object.defineProperties(ae.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x,P;return this.emojiManager&&((c=this.data)==null?0:(x=c.emoji)==null?0:(P=x.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.vV(B.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}}});
ae.prototype.onClick=ae.prototype.onClick;_.L([_.J(_.ii),_.H("design:type",Object)],ae.prototype,"ironOverlayBehavior",void 0);_.L([_.J(DW5),_.H("design:type",Object)],ae.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ae.prototype,"data",void 0);_.L([_.F(),_.H("design:type",_.Fr)],ae.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Object)],ae.prototype,"scrollAction",void 0);_.L([_.F(),_.H("design:type",Object)],ae.prototype,"verticalAlign",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.H("design:type",Boolean)],ae.prototype,"isFamilySelector",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ae.prototype,"emojiVariants",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],ae.prototype,"onClick",null);_.L([_.Em({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ae);
_.G(ae,"yt-emoji-variant-selector",function(){if($Jn===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;X29===void 0&&(X29=document.createElement("template"));var P=X29;x.call(c,P.content.cloneNode(!0),B.content.firstChild);$Jn=B}B=$Jn;return B},{mode:2});var n3F=/:/g,bft=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],gZ=function(){var B=_.z.apply(this,arguments)||this;B.emojiVariantSelector=null;B.emojiMultiPersonSelector=null;B.identity=_.Sd;B.lastAnimationTime_=0;B.animationStart_=null;B.animationEnd_=null;return B};
_.w(gZ,_.z);_.a=gZ.prototype;
_.a.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}}};
_.a.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Sp)};
_.a.attached=function(){_.$V&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&rNt(this.emojiManager)};
_.a.dataChanged=function(){var B;if((B=this.data)==null?0:B.categories){B=this.emojiManager;var c=this.getCustomEmojiIds();B.pickerCustomEmojiIds=[].concat(_.wq(Hi3),_.wq(c))}};
_.a.getCustomEmojiIds=function(){var B,c=(B=this.data.categories)==null?void 0:B.find(function(g){var k;return((k=g.emojiPickerCategoryRenderer)==null?void 0:k.categoryId)&&bft.includes(g.emojiPickerCategoryRenderer.categoryId)}),x;
B=(x=this.data.categories)==null?void 0:x.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var P,Y;return[c==null?void 0:(P=c.emojiPickerCategoryRenderer)==null?void 0:P.emojiIds,B==null?void 0:(Y=B.emojiPickerUpsellCategoryRenderer)==null?void 0:Y.emojiIds].flat().filter(function(g){return!!g})};
_.a.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.a.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.a.updateCategoriesAndPlaceholderInternal=function(B,c){var x=this;B&&c&&(this.categories=B.categories||[],this.categoryButtons=B.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Sr(function(){x.updateButtons_()}))};
_.a.computeId_=function(B){return B.id||""};
_.a.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(B){return B.emojiPickerCategoryRenderer&&B.emojiPickerCategoryRenderer.emojiData}):!1};
_.a.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.a.onShowEmojiVariantSelector=function(B){var c=B.detail.emojiData;c.variantIds&&c.variantIds.length&&(c.multiSelectorThumbnailRow&&c.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:c,target:B.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:c,target:B.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.a.onIronOverlayClosed=function(B){var c=RGZ(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");c&&B.composedPath&&(B.composedPath().includes(_.Y9(this.hostElement).querySelector("#emoji-variant-selector"))||B.composedPath().includes(_.Y9(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.gj(this.hostElement,"yt-close-emoji-variant-selector",[c.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.a.onEmojiVariantSelectorMouseup=function(B){var c=B.target.firstChild;this.variantSelectorOpened&&c&&_.Sr(function(){c.noCancelOnOutsideClick=!1},100)};
_.a.onEmojiVariantSelectorMousedown=function(B){B=B.target.firstChild;this.variantSelectorOpened&&B&&(B.noCancelOnOutsideClick=!1)};
_.a.onSelectCategory_=function(B){var c=this.search!="";this.search="";for(var x=_.Y9(this.hostElement).querySelector("#categories").children,P=0;P<x.length;P++){var Y=x[P];if(Y.id==B.detail.categoryId){c?(_.Y9(this.hostElement).querySelector("#categories").scrollTop=Y.offsetTop,this.updateButtons_()):(this.animationStart_=_.Y9(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Y.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.a.onEmojiHover_=function(B){this.placeholder=B.detail.shortcuts?B.detail.shortcuts[0]:""};
_.a.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.a.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.a.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.a.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.a.computeSearchCategory_=function(B){B=B.replace(n3F,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();B=B.split(" ");for(var c=[],x=this.emojiManager.emojis,P=0;P<x.length;P++){var Y=x[P];if(Y.searchTerms)for(var g=0;g<Y.searchTerms.length;g++){for(var k=Y.searchTerms[g].toLocaleLowerCase(),n=!1,b=0;b<B.length;b++)if(k.indexOf(B[b])!=-1){n=!0;break}if(n&&(!Y.isCustomEmoji||!Y.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Y.emojiId))){c.push(Y.emojiId);
break}}}return{categoryId:-1,emojiIds:c}};
_.a.computeSearchEmptyMessage_=function(B,c){return B&&c&&c.emojiIds&&c.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.a.computeSearching_=function(B){return this.emojiManager&&B.replace(n3F,"").length>1};
_.a.computeSkinToneHidden=function(){var B;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((B=this.data)==null||!B.hideSkinTonePicker)};
_.a.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.a.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.a.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.a.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.a.selectSkinTone_=function(B){B=Number(B.target.getAttribute("tone"));this.set("emojiManager.skinTone",B);_.gj(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[B]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.a.skinToneChanged_=function(){_.Y9(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var B=_.Y9(this.hostElement).querySelector("#dropdown-content").children,c=0;c<B.length;c++)c===this.skinTone?B[c].setAttribute("selected",""):B[c].removeAttribute("selected")};
_.a.animateScroll_=function(B){this.lastAnimationTime_||(this.lastAnimationTime_=B);B-=this.lastAnimationTime_;B<200?(_.Y9(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*B/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Y9(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.a.searchChanged_=function(){this.updateButtons_()};
_.a.updateButtons_=function(){var B=null;if(!this.search)for(var c=_.Y9(this.hostElement).querySelector("#categories").scrollTop,x=_.Y9(this.hostElement).querySelector("#categories").children,P=0;P<x.length;P++){var Y=x[P];Y.offsetTop<=c&&(B=Y.id)}c=_.Y9(this.hostElement).querySelector("#category-buttons").children;for(x=0;x<c.length;x++)P=c[x],P.active=P.id===B};
gZ.prototype.searchChanged_=gZ.prototype.searchChanged_;gZ.prototype.skinToneChanged_=gZ.prototype.skinToneChanged_;gZ.prototype.onEmojiHover_=gZ.prototype.onEmojiHover_;gZ.prototype.onSelectCategory_=gZ.prototype.onSelectCategory_;gZ.prototype.onShowEmojiVariantSelector=gZ.prototype.onShowEmojiVariantSelector;gZ.prototype.updateCategoriesAndPlaceholder_=gZ.prototype.updateCategoriesAndPlaceholder_;gZ.prototype.dataChanged=gZ.prototype.dataChanged;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gZ.prototype,"data",void 0);_.L([_.F({value:function(){return[]}}),
_.H("design:type",Array)],gZ.prototype,"categories",void 0);_.L([_.F({value:function(){return[]}}),
_.H("design:type",Array)],gZ.prototype,"categoryButtons",void 0);_.L([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"disableScroll",void 0);_.L([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.H("design:type",String)],gZ.prototype,"id",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],gZ.prototype,"selected",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],gZ.prototype,"disableIncrementalLoading",void 0);_.L([_.F(),_.H("design:type",String)],gZ.prototype,"placeholder",void 0);_.L([_.F({value:""}),_.H("design:type",String)],gZ.prototype,"search",void 0);_.L([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"searching",void 0);_.L([_.F({computed:"computeSearchCategory_(search)"}),_.H("design:type",Object)],gZ.prototype,"searchCategory",void 0);
_.L([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.H("design:type",Object)],gZ.prototype,"searchEmptyMessage",void 0);_.L([_.F({computed:"identity(emojiManager.skinTone)"}),_.H("design:type",Number)],gZ.prototype,"skinTone",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],gZ.prototype,"skinToneOpened",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"variantSelectorOpened",void 0);
_.L([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.H("design:type",Boolean)],gZ.prototype,"skinToneHidden",void 0);_.L([_.F(),_.H("design:type",_.Fr)],gZ.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Object)],gZ.prototype,"emojiVariantSelector",void 0);_.L([_.F(),_.H("design:type",Object)],gZ.prototype,"emojiMultiPersonSelector",void 0);
_.L([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.H("design:type",Boolean)],gZ.prototype,"shouldUseStickyPreferences",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gZ.prototype,"dataChanged",null);_.L([_.bF("data","selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gZ.prototype,"updateCategoriesAndPlaceholder_",null);
_.L([_.nF("yt-show-emoji-variant-selector"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gZ.prototype,"onShowEmojiVariantSelector",null);_.L([_.nF("yt-emoji-picker-select-category"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gZ.prototype,"onSelectCategory_",null);_.L([_.nF("yt-emoji-hover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gZ.prototype,"onEmojiHover_",null);
_.L([_.bF("skinTone"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gZ.prototype,"skinToneChanged_",null);_.L([_.bF("search"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gZ.prototype,"searchChanged_",null);_.L([_.Em({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],gZ);
_.G(gZ,"yt-emoji-picker-renderer",function(){if(s90===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;g3Z===void 0&&(g3Z=document.createElement("template"));var P=g3Z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);s90=B}B=s90;return B},{mode:2});var sU=function(){var B=_.z.apply(this,arguments)||this;B.emojiManager=_.Sp;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.selectedIndex=1;B.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return B};
_.w(sU,_.z);_.a=sU.prototype;_.a.handleEmojiCustomizationVisible=function(B){this.emojiPickerRenderer.selected=B;this.selectedIndex=1;B?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.a.emojiCustomizationSetChanged=function(){var B;(B=this.data)!=null&&B.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.p4(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.a.updateSaveButtonState=function(B){var c;(c=this.data)!=null&&c.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Uy("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:B}))};
_.a.emojiUrl=function(B){B=_.vV(this.emojiManager,B);if(!B)return"";var c;B=(c=B.image)==null?void 0:c.thumbnails;return _.Pw(B,24)||""};
_.a.emojiAlt=function(B){var c=_.vV(this.emojiManager,B);if(!c)return B;var x,P,Y,g=(c==null?void 0:(x=c.image)==null?void 0:(P=x.accessibility)==null?void 0:(Y=P.accessibilityData)==null?void 0:Y.label)||"";return g?g:c.isCustomEmoji?c.shortcuts[0]:c.emojiId||B};
_.a.emojiAriaLabel=function(B){var c,x;return((c=_.vV(this.emojiManager,B))==null?void 0:(x=c.shortcuts)==null?void 0:x[0])||B};
_.a.onEmojiClick=function(B){B.model.index!==0&&(this.selectedIndex=B.model.index)};
_.a.onEmojiSelect=function(B){B=B.detail;var c,x;((c=this.data)==null?0:c.emojiCustomizationSetEntityKey)&&((x=this.emojiCustomizationSet)==null?0:x.emojiId)&&B.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,B.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Uy("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,B.emojiId,this.selectedIndex)}))};
_.a.canEditEmoji=function(B,c,x){B=B.indexOf(c);return B===x||B===0||x===0?!1:!0};
_.a.getUpdatedEmojiIdList=function(B,c,x){var P=B.indexOf(c);B=[].concat(_.wq(B));P>=0&&(B[P]=B[x]);B[x]=c;return B};
_.AJ.Object.defineProperties(sU,{template:{configurable:!0,enumerable:!0,get:function(){if(Oc5===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;E85===void 0&&(E85=document.createElement("template"));var P=E85;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Oc5=B}B=Oc5;return B}}});
sU.prototype.onEmojiSelect=sU.prototype.onEmojiSelect;_.L([_.J(_.M4),_.H("design:type",Object)],sU.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.jr("yt-emoji-picker-renderer"),_.H("design:type",Object)],sU.prototype,"emojiPickerRenderer",void 0);
_.L([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(B,c){return _.X9(B.entities,"emojiCustomizationSetEntity",c)},
observer:"emojiCustomizationSetChanged"}),_.H("design:type",Object)],sU.prototype,"emojiCustomizationSet",void 0);_.L([_.F(),_.H("design:type",Object)],sU.prototype,"originalEmojiSet",void 0);_.L([_.F(),_.H("design:type",_.Fr)],sU.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Object)],sU.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],sU.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],sU.prototype,"selectedIndex",void 0);
_.L([_.nF("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sU.prototype,"onEmojiSelect",null);_.L([_.Em({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],sU);var KLy;var j90;var UJQ;var dJZ;var pj=function(){var B=_.z.apply(this,arguments)||this;B.authorBadges=[];return B};
_.w(pj,_.z);_.a=pj.prototype;_.a.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.a.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]]"}}}}}};
_.a.dataChanged=function(){var B=clw(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",B)};
_.a.updateMessage=function(){var B=this.data.message,c=_.Y9(_.Y9(this.hostElement).querySelector("#message"));c.textContent="";B&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.a.onShowOriginalClick=function(B){B.preventDefault();this.showOriginal=!0};
_.a.computeShowBar=function(B,c,x){return B&&c||x};
_.a.computeAuthorBadges=function(B){return B.authorBadges||[]};
_.a.computeAuthorIsOwner=function(B){return!!xI$(B.authorBadges,"owner")};
_.a.computeAuthorNameColor=function(B){var c;if(_.T("live_chat_author_name_color_usernames")&&(B==null?0:(c=B.authorName)==null?0:c.simpleText))return _.pdl(_.kYw(B.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(B==null?0:B.authorSeedColorArgb))return _.pdl(_.k0(B.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var x;return _.T("live_chat_simple_color_usernames")&&(B==null?0:(x=B.authorName)==null?0:x.simpleText)&&(B==null?0:B.authorUsernameColorLight)&&
(B==null?0:B.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.k0(B.authorUsernameColorDark):_.k0(B.authorUsernameColorLight):""};
pj.prototype.updateMessage=pj.prototype.updateMessage;pj.prototype.dataChanged=pj.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],pj.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pj.prototype,"data",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"showOriginal",void 0);_.L([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"isDimmed",void 0);_.L([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"showBar",void 0);
_.L([_.F({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],pj.prototype,"authorBadges",void 0);_.L([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"authorIsOwner",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"inCollapsedBanner",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"inBanner",void 0);
_.L([_.F({value:_.T("live_chat_hide_avatars"),reflectToAttribute:!0}),_.H("design:type",Boolean)],pj.prototype,"avatarHidden",void 0);_.L([_.F({computed:"computeAuthorNameColor(data)"}),_.H("design:type",String)],pj.prototype,"authorNameColor",void 0);_.L([_.F(),_.H("design:type",_.ZP)],pj.prototype,"participantsManager",void 0);_.L([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.H("design:type",Object)],pj.prototype,"filledButtonOverrides",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pj.prototype,"dataChanged",null);_.L([_.bF("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pj.prototype,"updateMessage",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],pj);
_.G(pj,"yt-live-chat-text-message-renderer",function(){if(dJZ===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;UJQ===void 0&&(UJQ=document.createElement("template"));var P=UJQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);dJZ=B}B=dJZ;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var kG=function(){var B=_.z.apply(this,arguments)||this;B.tonalButtonOverrides={type:"tonal",style:"overlay"};return B};
_.w(kG,_.z);
kG.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]]"}}}}}};
kG.prototype.shouldSupportInlineActionButtons=function(){return!0};
kG.prototype.shouldSupportWholeItemClick=function(){return!0};
_.AJ.Object.defineProperties(kG.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],kG.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],kG.prototype,"data",void 0);_.L([_.F(),_.H("design:type",_.ZP)],kG.prototype,"participantsManager",void 0);
_.L([_.F(),_.H("design:type",Object)],kG.prototype,"tonalButtonOverrides",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.infoDialogButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"hasInfoDialogButton",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],kG);
_.G(kG,"yt-live-chat-auto-mod-message-renderer",function(){if(j90===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;KLy===void 0&&(KLy=document.createElement("template"));var P=KLy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);j90=B}B=j90;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var qHS;var CCI;var hZ9;var mJ5=function(){return _.z.apply(this,arguments)||this};
_.w(mJ5,_.z);_.L([_.F(),_.H("design:type",Object)],mJ5.prototype,"data",void 0);_.L([_.y({is:"ytd-factoid-renderer",disableElementRegistration:!0})],mJ5);
_.G(mJ5,"ytd-factoid-renderer",function(){if(hZ9!==void 0)return hZ9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return hZ9=B},{mode:1});var Xh=function(){return _.z.apply(this,arguments)||this};
_.w(Xh,_.z);Xh.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.L([_.F(),_.H("design:type",Object)],Xh.prototype,"data",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Xh);
_.G(Xh,"yt-live-chat-channel-activity-reputation-renderer",function(){if(CCI===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;qHS===void 0&&(qHS=document.createElement("template"));var P=qHS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);CCI=B}B=CCI;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var THS;var Vfn;var $G=function(){return _.z.apply(this,arguments)||this};
_.w($G,_.z);$G.prototype.ready=function(){var B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Boolean)],$G.prototype,"menuFocused",void 0);_.L([_.F(),_.H("design:type",Object)],$G.prototype,"data",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],$G.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],$G);
_.G($G,"yt-live-chat-donation-announcement-renderer",function(){if(Vfn===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;THS===void 0&&(THS=document.createElement("template"));var P=THS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Vfn=B}B=Vfn;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var tfQ;var w2F,NH0=function(){if(w2F!==void 0)return w2F;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;tfQ===void 0&&(tfQ=document.createElement("template"));var P=tfQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return w2F=B};var nj=function(){return _.z.apply(this,arguments)||this};
_.w(nj,_.z);_.AJ.Object.defineProperties(nj,{template:{configurable:!0,enumerable:!0,get:function(){return NH0()}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nj.prototype,"data",void 0);_.L([_.Em({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],nj);_.G(nj,"yt-live-chat-empty-feed-view-model",function(){return NH0()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Iwt;var JA3;var b6=function(){return _.z.apply(this,arguments)||this};
_.w(b6,_.z);b6.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"}}}}}};
_.AJ.Object.defineProperties(b6.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var B,c;return{runs:[{text:(B=this.data)==null?void 0:(c=B.channelName)==null?void 0:c.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var B=[],c;if((c=this.data)==null||!c.channelBadges)return B;var x;c=_.p((x=this.data)==null?void 0:x.channelBadges);for(x=c.next();!x.done;x=c.next()){x=_.t(x.value,wBt);var P=void 0,Y=void 0;if((P=x)==null?0:(Y=P.badgeImage)==null?0:Y.sources)P=void 0,Y={liveChatAuthorBadgeRenderer:{tooltip:x.tooltip,accessibility:{accessibilityData:{label:(P=_.t(x.rendererContext,_.T3))==null?void 0:P.label}}}},x.badgeImage.sources[0].clientResource?Y.liveChatAuthorBadgeRenderer.icon=
{iconType:x.badgeImage.sources[0].clientResource.imageName}:Y.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:x.badgeImage.sources},B.push(Y)}return B}}});
_.L([_.F(),_.H("design:type",Object)],b6.prototype,"data",void 0);_.L([_.Q("data.channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],b6.prototype,"channelName",null);_.L([_.Q("data.channelBadges"),_.H("design:type",Array),_.H("design:paramtypes",[])],b6.prototype,"channelBadges",null);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],b6);
_.G(b6,"yt-live-chat-identity-view-model",function(){if(JA3===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Iwt===void 0&&(Iwt=document.createElement("template"));var P=Iwt;x.call(c,P.content.cloneNode(!0),B.content.firstChild);JA3=B}B=JA3;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var WL9;var lwy;var E34;var Of4;var Kj=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;B.supportsInlineActionButtons=!0;return B};
_.w(Kj,_.z);Kj.prototype.ready=function(){var B;((B=document.querySelector("yt-live-chat-app"))==null?0:B.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Kj.prototype.dataChanged=function(B){var c=(0,_.pF)(_.Y9(this.hostElement).querySelector("#detail-text"));c.textContent="";(B==null?0:B.detailText)&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B.detailText))};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],Kj.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({observer:"dataChanged"}),_.H("design:type",Object)],Kj.prototype,"data",void 0);
_.L([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],Kj.prototype,"hidden",void 0);_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Kj);
_.G(Kj,"yt-live-chat-legacy-paid-message-renderer",function(){if(Of4===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;E34===void 0&&(E34=document.createElement("template"));var P=E34;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Of4=B}B=Of4;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var o35;var Q95;var FLZ={},jM=function(){return _.dM.apply(this,arguments)||this};
_.w(jM,_.dM);jM.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
jM.prototype.onLiveChatMembershipItemBehaviorClick=jM.prototype.onLiveChatMembershipItemBehaviorClick;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jM.prototype,"data",void 0);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],jM.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.L([_.qi()],jM);
FLZ.YtLiveChatMembershipItemBehavior=[jM.prototype,_.R.YtRendererBehavior];var UU=function(){var B=_.z.apply(this,arguments)||this;B.supportsInlineActionButtons=!0;B.hasPrimaryHeaderText=!1;B.showOnlyHeader=!1;B.authorBadges=[];B.modern=_.T("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.w(UU,_.z);_.a=UU.prototype;_.a.shouldSupportInlineActionButtons=function(){return!0};
_.a.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.a.ready=function(){var B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.a.messageChanged=function(){var B=this.data.message,c=(0,_.pF)(_.Y9(this.hostElement).querySelector("#message"));c.textContent="";B&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.a.computeHasPrimaryHeaderText=function(B){return!(!B||!B.headerPrimaryText)};
_.a.computeShowOnlyHeader=function(B,c){return this.isMessageEmpty(B,c)};
_.a.computeAuthorBadges=function(B){return B.authorBadges||[]};
_.a.isMessageEmpty=function(B,c){return!B||B.empty?!0:!B.message&&!B.inputField&&!c};
_.a.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.a.getInputElement=function(){return _.Y9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.a.inputFocus=function(){var B=this.getInputElement();B&&B.focus()};
_.a.inputInsertEmoji=function(B){var c=this.getInputElement();c&&c.insertEmoji(B)};
_.a.inputMessage=function(){var B=this.getInputElement();return B&&this.data.inputField?(B.completeEmojis(),_.S5(B.liveChatRichMessageInput)):null};
_.a.onFooterButtonClick=function(){this.data.footerButton&&_.aJ(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.a.shouldSupportWholeItemClick=function(){return!0};
UU.prototype.isDeletedChanged=UU.prototype.isDeletedChanged;UU.prototype.messageChanged=UU.prototype.messageChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],UU.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(FLZ.YtLiveChatMembershipItemBehavior),_.H("design:type",Object)],UU.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UU.prototype,"data",void 0);_.L([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.H("design:type",Object)],UU.prototype,"hasPrimaryHeaderText",void 0);_.L([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],UU.prototype,"showOnlyHeader",void 0);
_.L([_.F({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],UU.prototype,"authorBadges",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],UU.prototype,"modern",void 0);_.L([_.bF("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UU.prototype,"messageChanged",null);_.L([_.bF("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UU.prototype,"isDeletedChanged",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],UU);
_.G(UU,"yt-live-chat-membership-item-renderer",function(){if(Q95===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;o35===void 0&&(o35=document.createElement("template"));var P=o35;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Q95=B}B=Q95;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var v3n;var zZW;var dZ=function(){return _.z.apply(this,arguments)||this};
_.w(dZ,_.z);dZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dZ.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],dZ);
_.G(dZ,"yt-live-chat-mode-change-message-renderer",function(){if(zZW===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;v3n===void 0&&(v3n=document.createElement("template"));var P=v3n;x.call(c,P.content.cloneNode(!0),B.content.firstChild);zZW=B}B=zZW;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var SHQ;var yAS;var qz=function(){return _.z.apply(this,arguments)||this};
_.w(qz,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],qz.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qz.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],qz);
_.G(qz,"yt-live-chat-moderation-message-renderer",function(){if(yAS===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;SHQ===void 0&&(SHQ=document.createElement("template"));var P=SHQ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);yAS=B}B=yAS;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var GaZ;var MfQ;var Cj=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework");return B};
_.w(Cj,_.z);Cj.prototype.onClick=function(){var B;if((B=this.data)!=null&&B.onClickCommand){var c;_.bA.instance.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Cj.prototype,"modern",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],Cj.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],Cj.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Cj.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Cj);
_.G(Cj,"yt-live-chat-offer-click-count-message-renderer",function(){if(MfQ===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;GaZ===void 0&&(GaZ=document.createElement("template"));var P=GaZ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);MfQ=B}B=MfQ;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var LLF;var Zf3=function(){return _.z.apply(this,arguments)||this};
_.w(Zf3,_.z);_.L([_.F(),_.H("design:type",Object)],Zf3.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Zf3);
_.G(Zf3,"yt-live-chat-placeholder-item-renderer",function(){if(LLF===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);LLF=B}B=LLF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Hft;var fwW;var if0=new Zj(7),hu=function(){var B=_.z.apply(this,arguments)||this;B.data={};return B};
_.w(hu,_.z);hu.prototype.dataChanged=function(){var B;((B=this.data)==null?0:B.class)&&_.gM(this.hostElement,this.data.class,!0);var c;((c=this.oldData)==null?0:c.class)&&_.gM(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
hu.prototype.computeTimestampString=function(B){return if0.format(new Date(B/1E3))};
hu.prototype.dataChanged=hu.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],hu.prototype,"data",void 0);_.L([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.H("design:type",String)],hu.prototype,"timestampString",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hu.prototype,"dataChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],hu);
_.G(hu,"yt-live-chat-server-error-message",function(){if(fwW===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Hft===void 0&&(Hft=document.createElement("template"));var P=Hft;x.call(c,P.content.cloneNode(!0),B.content.firstChild);fwW=B}B=fwW;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var AAm;var uzt;var mA=function(){var B=_.z.apply(this,arguments)||this;B.defaultToFilledIcon=!1;return B};
_.w(mA,_.z);mA.prototype.computeHasPrimaryColorIcon=function(B){return B==="SPARK"||B==="SPONSORSHIP_STAR"};
mA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],mA.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mA.prototype,"defaultToFilledIcon",void 0);_.L([_.F(),_.H("design:type",Object)],mA.prototype,"data",void 0);
_.L([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.H("design:type",Boolean)],mA.prototype,"hasPrimaryColorIcon",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],mA);
_.G(mA,"yt-live-chat-viewer-engagement-message-renderer",function(){if(uzt===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;AAm===void 0&&(AAm=document.createElement("template"));var P=AAm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);uzt=B}B=uzt;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var DJ3;var TH=function(){var B=_.z.apply(this,arguments)||this;B.modernUpdate=!1;B.buttonStyle="overlay";B.buttonType="filled";return B};
_.w(TH,_.z);TH.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
TH.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TH.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TH.prototype,"modernUpdate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],TH.prototype,"buttonStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],TH.prototype,"buttonType",void 0);
_.L([_.y({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],TH);
_.G(TH,"ytd-ad-hover-text-button-renderer",function(){if(DJ3!==void 0)return DJ3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return DJ3=B},{mode:1});var rA5;var Vz=function(){var B=_.z.apply(this,arguments)||this;B.buttonOverrides={size:"XS"};B.modern=_.T("web_button_rework");return B};
_.w(Vz,_.z);Vz.prototype.onHelpTap=function(B){this.data&&this.data.informationDialog&&(_.aJ(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),B.preventDefault(),B.stopPropagation())};
_.L([_.F(),_.H("design:type",Object)],Vz.prototype,"buttonOverrides",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vz.prototype,"modern",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Vz.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Vz);
_.G(Vz,"ytd-live-chat-purchased-product-message-renderer",function(){if(rA5!==void 0)return rA5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rA5=B},{mode:1});var RZd;var eZ4;var tu=function(){var B=_.z.apply(this,arguments)||this;B.isContainerDeleted=!1;return B};
_.w(tu,_.z);tu.prototype.onContextMenuClick=function(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
tu.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))};
tu.prototype.isContainerDeletedChanged=tu.prototype.isContainerDeletedChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],tu.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tu.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],tu.prototype,"isContainerDeleted",void 0);
_.L([_.F(),_.H("design:type",String)],tu.prototype,"deletedStateMessage",void 0);_.L([_.bF("isContainerDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tu.prototype,"isContainerDeletedChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],tu);
_.G(tu,"ytd-sponsorships-live-chat-header-renderer",function(){if(eZ4!==void 0)return eZ4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eZ4=B},{mode:1});var wZ=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.w(wZ,_.z);wZ.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]]"}}}}}};
wZ.prototype.onCtaButtonClick=function(){var B,c=_.t((B=this.data)==null?void 0:B.optInPrompt,_.z3);if(B=this.maybeGetButtonCommand(c)){var x;(x=_.q_())==null||x.clickCommand(B)}};
wZ.prototype.maybeGetButtonCommand=function(B){return!B||!B.command||_.t(B.command,xVn)===void 0&&_.t(B.command,c3d)===void 0?null:B.command};
wZ.prototype.shouldHideOptinPrompt=function(B,c){return!B||c};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],wZ.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wZ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],wZ.prototype,"modern",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],wZ);
_.G(wZ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(RZd!==void 0)return RZd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RZd=B},{mode:1});var B0W;var Nz=function(){return _.z.apply(this,arguments)||this};
_.w(Nz,_.z);Nz.prototype.onContextMenuClick=function(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
Nz.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))};
Nz.prototype.isDeletedChanged=Nz.prototype.isDeletedChanged;_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],Nz.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Nz.prototype,"data",void 0);_.L([_.bF("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nz.prototype,"isDeletedChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Nz);
_.G(Nz,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(B0W!==void 0)return B0W;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return B0W=B},{mode:1});var Ie=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return B};
_.w(Ie,_.z);_.a=Ie.prototype;
_.a.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"}}}};
_.a.handleLiveChatAction=function(B){_.t(B,Ufy)?this.handleMarkChatItemAsDeletedAction(_.t(B,Ufy)):_.t(B,jZW)&&this.handleRemoveChatItemAction(_.t(B,jZW))};
_.a.handleLiveChatActions=function(B){B.forEach(this.handleLiveChatAction,this)};
_.a.handleMarkChatItemAsDeletedAction=function(B){var c=this,x;((x=this.data)==null?0:x.items)&&this.data.items.forEach(function(P,Y){var g=Object.keys(P)[0];Object.values(P)[0].id===B.targetItemId&&c.markAsDeleted("data.items",Y,g,B.deletedStateMessage,B.showOriginalContentMessage)})};
_.a.handleRemoveChatItemAction=function(B){var c=this,x;((x=this.data)==null?0:x.items)&&this.data.items.forEach(function(P,Y){Object.values(P)[0].id===B.targetItemId&&c.splice("data.items",Y,1)})};
_.a.markAsDeleted=function(B,c,x,P,Y){B=[B,c,x].join(".");this.set(B+".deletedStateMessage",P);this.set(B+".showOriginalContentMessage",Y)};
_.L([_.F(),_.H("design:type",Object)],Ie.prototype,"data",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Ie.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Ie);
_.G(Ie,"yt-live-chat-item-display-list-renderer",function(){if(lwy===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;WL9===void 0&&(WL9=document.createElement("template"));var P=WL9;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lwy=B}B=lwy;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var cty;var xUW,P_n=function(){if(xUW!==void 0)return xUW;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;cty===void 0&&(cty=document.createElement("template"));var P=cty;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return xUW=B};var Ju=function(){var B=_.z.apply(this,arguments)||this;B.isHeader=!1;return B};
_.w(Ju,_.z);Ju.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.AJ.Object.defineProperties(Ju,{template:{configurable:!0,enumerable:!0,get:function(){return P_n()}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ju.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ju.prototype,"isHeader",void 0);_.L([_.Em({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Ju);_.G(Ju,"yt-live-chat-item-display-renderer",function(){return P_n()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var YaZ,aBm,XZt,kMI;
YaZ={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}};aBm={home:"eohps",search:"eosps",watch:"eowps"};_.gO0=["watch","search","home"];
_.WD=function(){this.JSC$12237_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12237_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.v5("PRECONSTRUCTION_DELAY",0);this.signals_=_.So();this.targetPage_=""};
_.WD.prototype.init=function(B,c){B=B===void 0?"":B;c=c===void 0?null:c;if(this.JSC$12237_isInitialized_)this.abort();else if(this.JSC$12237_isInitialized_=!0,B&&_.sYZ(this,B),c){var x=_.yO(this.signals_,"pcl")?0:10,P=function(){for(var Y=0,g;g=_.gO0[Y++];)g!=B&&g!=c&&this.pendingPages_.push(g);_.pZ3(this)}.bind(this);
this.signals_.parkOrScheduleJob(P,x,"pcl")}};
_.WD.prototype.abort=function(){this.fragmentJobId_&&(_.EE.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);kMI(this)};
_.sYZ=function(B,c){B.JSC$12237_isInitialized_&&!B.targetPage_&&(B.targetPage_=c,XZt(B,c),B.isInitialPass_=!1,XZt(B,c),B.signals_.processSignal(aBm[B.targetPage_]),kMI(B),_.pZ3(B))};
_.pZ3=function(B){B.pendingPages_.length&&!B.pagePreparerJobId_&&(B.pagePreparerJobId_=_.Vp(_.EE,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.sYZ(this,this.pendingPages_.shift())}.bind(B),B.DEFAULT_DELAY_))};
XZt=function(B,c){if(c=YaZ[c])for(var x in c){var P=!1,Y=x;x.charAt(0)=="~"&&(P=!0,Y=x.substring(1));var g=c[x];g=typeof g=="object"?g:{count:g};c[x]=g;g.componentName=Y;g.count>0&&(B.isInitialPass_?P||B.isSeenDuringInitialPass_[Y]||(B.JSC$12237_queue_.push({componentName:Y,count:1,signals:g.signals}),B.isSeenDuringInitialPass_[Y]=!0,g.count--):B.JSC$12237_queue_.push(g))}};
kMI=function(B){B.JSC$12237_queue_.length=0;B.targetPage_="";B.isInitialPass_=!0;B.signals_.processSignal("eop")};
_.WD.getInstance=function(){return _.pC(_.WD)};var $UI=function(){this.signals=_.So();this.init()};
$UI.prototype.startPreconstruction=function(){_.WD.getInstance().init(_.zu("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
$UI.prototype.init=function(){nOI(this);window.Polymer&&QHd&&f5X();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var B=_.xI.ytcsi;if(B&&B.gt&&(B=B.gt())&&B.tick&&(B.tick.aft>0||B.tick.pbs>0)&&(_.zu("IS_HOMEPAGE_COLD")||_.zu("IS_RESULTS_PAGE_COLD")||_.zu("IS_WATCH_PAGE_COLD"))){b_0(this);break a}p3Q(f0Q,this.onNotifications,this)}};
var nOI=function(B){var c=function(){B.signals.processSignal("dl")};
document.readyState==="complete"?(_.MR(Error("th"),"WARNING"),c()):_.z6l(window,"load",c)};
$UI.prototype.onNotifications=function(B){B.timer||(_.zu("IS_HOMEPAGE_COLD")||_.zu("IS_RESULTS_PAGE_COLD")||_.zu("IS_WATCH_PAGE_COLD"))&&b_0(this)};
var b_0=function(B){B.signals.parkOrScheduleJob(function(){B.signals.processSignal("eocs")},10,"eor")};
new $UI;var l6,KSS=function(){return _.dM.apply(this,arguments)||this};
_.w(KSS,_.dM);_.a=KSS.prototype;_.a.enableActiveViewMeasurement=function(B){if(this.isActiveViewEnabled(B)){var c=this.getUrlPrefixesFromCommand(B.viewableCommands);B=this.getUrlPrefixesFromCommand(B.endOfSessionCommands);if(!l6){var x=_.Yu("custom_active_view_tos_timeout_ms");l6=x>0&&x!==36E5?new TvX(this.getVersion(),x):new TvX(this.getVersion())}tsQ(l6,this.hostElement);wkx(l6,this.hostElement,c,B)}};
_.a.stopActiveViewMeasurement=function(){l6&&tsQ(l6,this.hostElement)};
_.a.isActiveViewEnabled=function(B){return!!B&&(this.hasAtLeastOneUrl(B.viewableCommands)||this.hasAtLeastOneUrl(B.endOfSessionCommands))};
_.a.hasAtLeastOneUrl=function(B){return!!B&&B.length>0&&B[0].loggingUrls!=null&&B[0].loggingUrls.length>0};
_.a.getVersion=function(){var B=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(B==null?void 0:B.length)===2?B[1]:null};
_.a.getUrlPrefixesFromCommand=function(B){if(!B)return[];var c=[];B=_.p(B);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x.loggingUrls){x=_.p(x.loggingUrls);for(var P=x.next();!P.done;P=x.next())P=P.value,P.baseUrl&&c.push(P.baseUrl)}return c};
_.L([_.qi()],KSS);var EU=[KSS.prototype];var jYS=function(){return _.dM.apply(this,arguments)||this};
_.w(jYS,_.dM);_.AJ.Object.defineProperties(jYS.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_entity_store_from_dependency_injection")?_.HW():_.uG()}}});
_.L([_.qi()],jYS);_.OU=[OQ.prototype,jYS.prototype];var UU5=["ytd-rich-shelf-renderer"],oe=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";B.followUpDialogPromise=null;B.followUpDialogPromiseResolve=null;B.followUpDialogPromiseReject=null;return B};
_.w(oe,_.dM);_.a=oe.prototype;_.a.dismissibleItemIsDismissedChanged_=function(B){_.T("kevlar_fluid_dismiss")&&(B?_.aJ(this.hostElement,"yt-dismissible-item-dismissed"):_.aJ(this.hostElement,"yt-dismissible-item-undismissed"))};
_.a.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.a.dismissibleItemReset_=function(){var B=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 _.bb(function(c,x){B.followUpDialogPromiseResolve=c;B.followUpDialogPromiseReject=x});
_.aJ(this.hostElement,"yt-enable-lockup-interaction")};
_.a.dismissibleItemOnYtServiceRequestSent_=function(B,c){c.actions&&this.dismissibleItemProcessActions(c.actions,B)};
_.a.dismissibleItemOnRequestSent=function(B){if(_.T("web_button_rework"))for(var c=_.p(B.detail),x=c.next();!x.done;x=c.next()){var P=void 0;(x=(P=_.t(x.value,_.KW))==null?void 0:P.actions)&&this.dismissibleItemProcessActions(x,B)}};
_.a.dismissibleItemOnCommandSent=function(B,c){c&&this.dismissibleItemProcessActions(c,B)};
_.a.setAndGetDismissedContentId=function(B){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+B};
_.a.replayDismissAction=function(B){this.dismissibleItemProcessActions([B])};
_.a.dismissibleItemProcessActions=function(B,c){for(var x=0;x<B.length;x++){var P=B[x],Y=void 0;((Y=_.t(P,_.nW))==null?0:Y.commands)&&this.dismissibleItemProcessActions(_.t(P,_.nW).commands,c);if(_.t(P,_.t3)){if(Y=_.t(P,_.t3),!Y.replaceParentSection||UU5.includes(this.hostElement.nodeName.toLowerCase()))_.T("web_see_fewer_shorts_reactive_dismissal")&&Y.groupDismissal&&Vel(this,Y.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Y),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Uy("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:P})),P=void 0,(P=c)==null||P.stopPropagation()}else if(_.t(P,wiF))this.dismissibleItemHandleHideEnclosingAction_(),P=void 0,(P=c)==null||P.stopPropagation();else if(_.t(P,SZ3))_.T("web_see_fewer_shorts_reactive_dismissal")&&(P=_.t(P,SZ3),Y=void 0,((Y=P)==null?0:Y.targetGroupId)&&Vel(this,{targetGroupId:P.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Uy("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),P=void 0,(P=c)==null||P.stopPropagation();else if(_.t(P,_.KW))(P=_.t(P,_.KW).actions)&&_.XX(this.hostElement,P,this.hostElement),P=void 0,(P=c)==null||P.stopPropagation();else{var g=Y=void 0;((Y=_.t(P,_.zr))==null?void 0:Y.signal)!=="TELL_US_WHY"||((g=_.t(P,_.zr))==null?0:g.targetId)&&_.T("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),P=void 0,(P=c)==null||P.stopPropagation())}}};
_.a.dismissibleItemOnYtServiceRequestCompleted_=function(B,c){var x=this.get("feedbackResponses.0.followUpDialog",c.data);x?this.followUpDialogPromiseResolve(x):c.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(c.actions,B)};
_.a.dismissibleItemHandleReplaceEnclosingAction_=function(B){this.dismissedRenderer=B.item;this.isDismissed=!0;var c=null;(c=_.Y9(this.hostElement).querySelector("#dismissed"))&&_.fl(this,function(){_.Aj(c)});
_.aJ(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.a.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.a.dismissibleItemHandleUndoFeedbackAction_=function(){_.aJ(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.a.dismissibleItemHandleTellUsWhySignalAction_=function(){var B=this;this.followUpDialogPromise.then(function(c){B.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:c}})})};
oe.prototype.dismissibleItemOnYtServiceRequestCompleted_=oe.prototype.dismissibleItemOnYtServiceRequestCompleted_;oe.prototype.dismissibleItemOnCommandSent=oe.prototype.dismissibleItemOnCommandSent;oe.prototype.dismissibleItemOnRequestSent=oe.prototype.dismissibleItemOnRequestSent;oe.prototype.dismissibleItemOnYtServiceRequestSent_=oe.prototype.dismissibleItemOnYtServiceRequestSent_;oe.prototype.dismissibleItemDataChanged_=oe.prototype.dismissibleItemDataChanged_;
oe.prototype.dismissibleItemIsDismissedChanged_=oe.prototype.dismissibleItemIsDismissedChanged_;_.L([_.J(_.uD),_.H("design:type",Object)],oe.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],oe.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],oe.prototype,"isDismissed",void 0);_.L([_.F(),_.H("design:type",Object)],oe.prototype,"dismissedRenderer",void 0);
_.L([_.bF("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],oe.prototype,"dismissibleItemIsDismissedChanged_",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oe.prototype,"dismissibleItemDataChanged_",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],oe.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.L([_.nF("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oe.prototype,"dismissibleItemOnRequestSent",null);
_.L([_.nF("yt-dismissible-item-action"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Array]),_.H("design:returntype")],oe.prototype,"dismissibleItemOnCommandSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],oe.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.L([_.qi()],oe);_.Qz=[_.uD,_.OU,oe.prototype];var Fh=function(){var B=_.dM.apply(this,arguments)||this;B.disableGridStateAware=!1;B.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};B.currentGridClass="";return B};
_.w(Fh,_.dM);Fh.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.fl(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var B=this.gridStateAwareGetElement();_.gM(B,"grid",!0)}};
Fh.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Fh.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Y9(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Fh.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var B="grid-disabled";else{B=_.gR5.getInstance();var c=this.get("pageSubtype");B=c&&PO4.includes(c)?"grid-disabled":B.currentSnapState_?B.currentSnapState_.className:null}(c=this.gridStateAwareGetElement())&&B!==this.currentGridClass&&(B&&_.gM(c,B,!0),this.currentGridClass&&_.gM(c,this.currentGridClass,!1),this.currentGridClass=B)};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",String)],Fh.prototype,"gridStateAwareSizingElementSelector",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Fh.prototype,"disableGridStateAware",void 0);_.L([_.qi()],Fh);_.vD=[Fh.prototype,_.s2.YtActionHandlerBehavior];_.zH=new _.BL("GUIDE_TOKEN");var yz;_.SM={};yz=function(){var B=_.dM.apply(this,arguments)||this;B.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 B};
_.w(yz,_.dM);_.a=yz.prototype;_.a.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.a.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var B=_.cp().resolve(_.Bp(_.zH));B&&(this.guidePersistentAndVisible=B.getGuidePersistentAndVisible(),this.activeEndpoint=B.getActiveEndpoint(),this.guideOpened=B.getGuideOpened(),this.miniGuideVisible=B.getMiniGuideVisible())};
_.a.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.a.handleGuideStateAction=function(B){this.guidePersistentAndVisible=B};
_.a.handleMiniGuideStateAction=function(B){this.miniGuideVisible=B};
_.a.handleGuideOpenedAction=function(B){this.guideOpened=B};
_.a.handleActiveEndpointAction=function(B){this.activeEndpoint=B};
yz.prototype.onActiveEndpointChange=yz.prototype.onActiveEndpointChange;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],yz.prototype,"guidePersistentAndVisible",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],yz.prototype,"miniGuideVisible",void 0);_.L([_.F(),_.H("design:type",Object)],yz.prototype,"activeEndpoint",void 0);
_.L([_.bF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yz.prototype,"onActiveEndpointChange",null);_.L([_.F(),_.H("design:type",Boolean)],yz.prototype,"guideOpened",void 0);_.L([_.qi()],yz);_.SM.YtdGuideStateAwareBehavior=[];_.SM.YtdGuideStateAwareBehavior.push(yz.prototype,_.s2.YtActionHandlerBehavior);var dU9=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],GH=function(){var B=_.dM.apply(this,arguments)||this;B.hoverJobId=0;B.JSC$12268_touched=!1;return B};
_.w(GH,_.dM);_.a=GH.prototype;_.a.created=function(){this.useExpandableTooltip=!dU9.includes(this.is)};
_.a.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.a.detached=function(){this.useExpandableTooltip=!1};
_.a.lockupOnDown=function(B){this.interactionElement&&!_.uv(_.AV(B),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.a.lockupOnUp=function(B){this.interactionElement&&!_.uv(_.AV(B),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.a.onTouchStart=function(){this.JSC$12268_touched=!0};
_.a.lockupOnMouseEnter=function(){var B=this,c=_.Yu("kevlar_lockup_hover_delay",-1);this.JSC$12268_touched&&c>=0?(_.EE.cancelJob(this.hoverJobId),this.hoverJobId=_.EE.addJob(function(){B.lockupIsHovered=!0},8,c),this.JSC$12268_touched=!1):this.lockupIsHovered=!0};
_.a.lockupOnMouseLeave=function(){this.hoverJobId&&(_.EE.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.a.lockupOnPopupClosed=function(B,c){var x;((x=c.popupRenderer)==null?void 0:x.is)==="ytd-menu-popup-renderer"&&(B=c.popupRenderer.veData,c=_.Wf(),B&&c&&_.Hr(c,[B]))};
_.a.lockupOnLockupRequested=function(B){var c=B.detail.videoIds[0],x;B.detail&&c===((x=this.data)==null?void 0:x.videoId)&&(B.detail.returnValue=[this.data])};
_.a.lockupOnYtServiceRequestSent=function(B,c){if(B=c.actions)for(var x=0;x<B.length;x++){var P=B[x];if(P.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&c.ajaxPromise){var Y=void 0,g=(Y=_.t(c.endpoint,_.QR))==null?void 0:Y.playlistId;Y=void 0;P=(Y=P.removedVideoId)!=null?Y:"";J7Q(_.Mm(),P,g)}else P.action==="ACTION_REMOVE_VIDEO"&&c.ajaxPromise&&(g=void 0,P=(g=P.setVideoId)!=null?g:"",_.WP0(_.Mm(),P))}};
_.a.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.a.lockupOnLockupEnabled=function(){if(!this.$){var B=_.cp().resolve(_.rV).getCurrentPage(),c=this.getParentRenderer?this.getParentRenderer():void 0;_.Ob(new _.mc("component not ready",this.is,this.isAttached,B==null?void 0:B.is,c==null?void 0:c.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
GH.prototype.lockupOnLockupEnabled=GH.prototype.lockupOnLockupEnabled;GH.prototype.lockupOnLockupDisabled=GH.prototype.lockupOnLockupDisabled;GH.prototype.lockupOnYtServiceRequestSent=GH.prototype.lockupOnYtServiceRequestSent;GH.prototype.lockupOnLockupRequested=GH.prototype.lockupOnLockupRequested;GH.prototype.lockupOnPopupClosed=GH.prototype.lockupOnPopupClosed;GH.prototype.lockupOnMouseLeave=GH.prototype.lockupOnMouseLeave;GH.prototype.lockupOnMouseEnter=GH.prototype.lockupOnMouseEnter;
GH.prototype.onTouchStart=GH.prototype.onTouchStart;GH.prototype.lockupOnUp=GH.prototype.lockupOnUp;GH.prototype.lockupOnDown=GH.prototype.lockupOnDown;_.L([_.F(),_.H("design:type",Object)],GH.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],GH.prototype,"lockupIsHovered",void 0);_.L([_.F(),_.H("design:type",Boolean)],GH.prototype,"lockupTouchTriggered",void 0);_.L([_.F(),_.H("design:type",Boolean)],GH.prototype,"useExpandableTooltip",void 0);
_.L([_.jr("#interaction"),_.H("design:type",Object)],GH.prototype,"interactionElement",void 0);_.L([_.nF("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],GH.prototype,"lockupOnDown",null);_.L([_.nF("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],GH.prototype,"lockupOnUp",null);
_.L([_.nF("touchstart"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"onTouchStart",null);_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"lockupOnMouseEnter",null);_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"lockupOnMouseLeave",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],GH.prototype,"lockupOnPopupClosed",null);_.L([_.nF("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],GH.prototype,"lockupOnLockupRequested",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],GH.prototype,"lockupOnYtServiceRequestSent",null);_.L([_.nF("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"lockupOnLockupDisabled",null);
_.L([_.nF("yt-enable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"lockupOnLockupEnabled",null);_.L([_.qi()],GH);_.Mz=[GH.prototype];_.qaZ={YtdReduxBehavior:[]};_.qaZ.YtdReduxBehavior.push.apply(_.qaZ.YtdReduxBehavior,_.OU);var Lj=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.disableNowPlaying=!1;B.disableTooltips=!1;B.useHoveredProperty=!1;B.hovered=!1;B.isThumbnailHovered_=!1;B.addBackground=_.T("kevlar_thumbnail_bg");B.nowPlaying=!1;B.disableRounding=!1;B.size="small";return B};
_.w(Lj,_.dM);_.a=Lj.prototype;_.a.computeThumbnailOverlaySidePanelWidth_=function(B,c){return B-c};
_.a.computeSize=function(B,c){if(!this.disableRounding){if(!B&&!c)return"small";B=Math.max(B||0,c||0);return B>=256?"large":B>=96?"medium":"small"}};
_.a.computeFinalHoveredState_=function(B,c,x){return this.nowPlaying?!1:_.T("kevlar_thumbnail_fluid")&&B?c:x};
_.a.computeHoverOverlays_=function(B,c){return B&&c?c:void 0};
_.a.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.a.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.a.checkMiniplayer_=function(){var B;if(((B=this.data)==null?0:B.playlistSetVideoId)&&_.T("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{B=_.dd();var c=B.currentEndpoint;!this.disableNowPlaying&&c&&_.t(c,_.fN)&&this.data?(c=_.t(c,_.fN),this.nowPlaying=this.data.playlistId?c.playlistId===this.data.playlistId:c.videoId===this.data.videoId,this.isVideoPlaying=B==null?void 0:B.isVideoPlaying):this.nowPlaying=!1}};
Lj.prototype.checkMiniplayer_=Lj.prototype.checkMiniplayer_;Lj.prototype.onMouseLeave_=Lj.prototype.onMouseLeave_;Lj.prototype.onMouseEnter_=Lj.prototype.onMouseEnter_;Lj.prototype.computeHoverOverlays_=Lj.prototype.computeHoverOverlays_;Lj.prototype.computeFinalHoveredState_=Lj.prototype.computeFinalHoveredState_;Lj.prototype.computeSize=Lj.prototype.computeSize;Lj.prototype.computeThumbnailOverlaySidePanelWidth_=Lj.prototype.computeThumbnailOverlaySidePanelWidth_;
_.L([_.J(_.OU),_.H("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],Lj.prototype,"height",void 0);_.L([_.F(),_.H("design:type",Boolean)],Lj.prototype,"bottomSidePanel",void 0);_.L([_.F(),_.H("design:type",Number)],Lj.prototype,"width",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"disableNowPlaying",void 0);
_.L([_.F({selector:_.Ev}),_.H("design:type",Boolean)],Lj.prototype,"miniplayerIsActive",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"disableTooltips",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"useHoveredProperty",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"hovered",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"isThumbnailHovered_",void 0);
_.L([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.H("design:type",Boolean)],Lj.prototype,"finalHoveredState_",void 0);_.L([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.H("design:type",Number)],Lj.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lj.prototype,"addBackground",void 0);
_.L([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.H("design:type",Object)],Lj.prototype,"hoverOverlays_",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lj.prototype,"nowPlaying",void 0);_.L([_.F(),_.H("design:type",Boolean)],Lj.prototype,"isVideoPlaying",void 0);_.L([_.F(),_.H("design:type",Object)],Lj.prototype,"disableRounding",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.H("design:type",Object)],Lj.prototype,"size",void 0);_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lj.prototype,"onMouseEnter_",null);_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lj.prototype,"onMouseLeave_",null);
_.L([_.bF("data","disableNowPlaying","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lj.prototype,"checkMiniplayer_",null);_.L([_.qi()],Lj);var C_S=[Lj.prototype];_.Z4={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(B,c){return B+":"+_.Py(c)},
getPlayerListener_:function(B,c,x){B=this.getPlayerListenerKey_(B,c);c=this.playerListeners_.get(B);x&&this.playerListeners_.delete(B);return c},
savePlayerListener_:function(B,c){var x=c.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(B,c),x);return x},
listenToPlayerEvent:function(B,c,x){x=this.savePlayerListener_(c,x);B.addEventListener(c,x)},
listenToPlayerEvents:function(B,c){c.forEach(function(x,P){this.listenToPlayerEvent(B,P,x)}.bind(this))},
unlistenFromPlayerEvent:function(B,c,x){x=this.getPlayerListener_(c,x,!0);B.removeEventListener(c,x)},
unlistenFromPlayerEvents:function(B,c){c.forEach(function(x,P){this.unlistenFromPlayerEvent(B,P,x)}.bind(this))}}};
_.HD=function(){};_.hN4=new _.BL("PLAYER_API_TOKEN");var lBC=!1,QYQ,O_C=!1,vOI;var xx=function(B,c,x,P,Y){_.tG.call(this);var g=this;this.playerId=c;this.webPlayerContextConfig=P;this.qrW=Y;this.ejQ=!1;this.api={};this.gKf=this.pCO=null;this.mhw=new _.KU;this.ud={};this.vjw=this.qMY=this.elementId=this.hp7=this.config=null;this.qhj=!1;this.yY=this.fMn=null;this.qzT={};this.gWA=["onReady"];this.lastError=null;this.kOV=NaN;this.h3L={};this.nUw=0;this.tJ=this.targetElement=B;_.bW(this,this.mhw);mU3(this);x?this.nUw=setTimeout(function(){g.loadNewVideoConfig(x)},0):P&&(T0Z(this),
Ve3(this))};
_.w(xx,_.tG);xx.prototype.getId=function(){return this.playerId};
xx.prototype.loadNewVideoConfig=function(B){if(!this.isDisposed()){this.nUw&&(clearTimeout(this.nUw),this.nUw=0);var c=B||{};c instanceof zTW||(c=new zTW(c));this.config=c;this.setConfig(B);Ve3(this);this.isReady()&&tey(this)}};
var T0Z=function(B){var c;B.webPlayerContextConfig?c=B.webPlayerContextConfig.rootElementId:c=B.config.attrs.id;B.elementId=c||B.elementId;B.elementId==="video-player"&&(B.elementId=B.playerId,B.webPlayerContextConfig?B.webPlayerContextConfig.rootElementId=B.playerId:B.config.attrs.id=B.playerId);var x;((x=B.tJ)==null?void 0:x.id)===B.elementId&&(B.elementId+="-player",B.webPlayerContextConfig?B.webPlayerContextConfig.rootElementId=B.elementId:B.config.attrs.id=B.elementId)};
xx.prototype.setConfig=function(B){this.hp7=B;this.config=wZ0(B);T0Z(this);if(!this.qMY){var c;this.qMY=N0m(this,((c=this.config.args)==null?void 0:c.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var x;if((x=this.config)==null?0:x.attrs)B=this.config.attrs,(c=B.width)&&this.tJ&&(this.tJ.style.width=vJ(Number(c)||c,!0)),(B=B.height)&&this.tJ&&(this.tJ.style.height=vJ(Number(B)||B,!0))};
var tey=function(B){if(B.config&&B.config.loaded!==!0)if(B.config.loaded=!0,!B.config.args||B.config.args.autoplay!=="0"&&B.config.args.autoplay!==0&&B.config.args.autoplay!==!1){var c;B.api.loadVideoByPlayerVars((c=B.config.args)!=null?c:null)}else B.api.cueVideoByPlayerVars(B.config.args)},JtW=function(B){var c=!0,x=B.getPlayerElement();
x&&B.config&&(c=x.dataset.version===IBQ(B));return c&&!!_.Gu("yt.player.Application.create")},Ve3=function(B){if(!B.isDisposed()&&!B.qhj){var c=JtW(B);
if(c&&(B.getPlayerElement()?"html5":null)==="html5")B.vjw="html5",B.isReady()||WS0(B);else if(lB9(B),B.vjw="html5",c&&B.yY&&B.targetElement)B.targetElement.appendChild(B.yY),WS0(B);else{B.config&&(B.config.loaded=!0);var x=!1;B.fMn=function(){x=!0;var P=EOd(B,"player_bootstrap_method")?_.Gu("yt.player.Application.createAlternate")||_.Gu("yt.player.Application.create"):_.Gu("yt.player.Application.create");var Y=B.config?wZ0(B.config):void 0;P&&P(B.targetElement,Y,B.webPlayerContextConfig,B.qrW);WS0(B)};
B.qhj=!0;c?B.fMn():(_.vf(IBQ(B),B.fMn),(c=O_9(B))&&nfX(c||""),oOt(B)&&!x&&_.rr("yt.player.Application.create",null))}}};
xx.prototype.getPlayerElement=function(){var B=_.cv(document,this.elementId);!B&&this.tJ&&this.tJ.querySelector&&(B=this.tJ.querySelector("#"+this.elementId));return B};
var WS0=function(B){if(!B.isDisposed()){var c=B.getPlayerElement(),x=!1;c&&c.getApiInterface&&c.getApiInterface()&&(x=!0);if(x){B.qhj=!1;if(!EOd(B,"html5_remove_not_servable_check_killswitch")){var P;if((c==null?0:c.isNotServable)&&B.config&&(c==null?0:c.isNotServable((P=B.config.args)==null?void 0:P.video_id)))return}QYI(B)}else B.kOV=setTimeout(function(){WS0(B)},50)}},QYI=function(B){mU3(B);
B.ejQ=!0;var c=B.getPlayerElement();if(c){B.pCO=FSF(B,c,"addEventListener");B.gKf=FSF(B,c,"removeEventListener");var x=c.getApiInterface();x=x.concat(c.getInternalApiInterface());for(var P=B.api,Y=0;Y<x.length;Y++){var g=x[Y];P[g]||(P[g]=FSF(B,c,g))}}for(var k in B.ud)B.ud.hasOwnProperty(k)&&B.pCO&&B.pCO(k,B.ud[k]);tey(B);B.qMY&&B.qMY(B.api);B.mhw.publish("onReady",B.api)},FSF=function(B,c,x){var P=c[x];
return function(){var Y=_.ts.apply(0,arguments);try{return B.lastError=null,P.apply(c,Y)}catch(g){if(x!=="sendAbandonmentPing")throw g.params=x,B.lastError=g,Y=new _.mc("PlayerProxy error in method call",{error:g,method:x,playerId:B.playerId}),Y.level="WARNING",Y;}}},mU3=function(B){B.ejQ=!1;
if(B.gKf)for(var c in B.ud)B.ud.hasOwnProperty(c)&&B.gKf(c,B.ud[c]);for(var x in B.h3L)B.h3L.hasOwnProperty(x)&&clearTimeout(Number(x));B.h3L={};B.pCO=null;B.gKf=null;c=B.api;for(var P in c)c.hasOwnProperty(P)&&(c[P]=null);c.addEventListener=function(Y,g){B.addEventListener(Y,g)};
c.removeEventListener=function(Y,g){B.removeEventListener(Y,g)};
c.destroy=function(){B.dispose()};
c.getLastError=function(){return B.getLastError()};
c.getPlayerType=function(){return B.getPlayerType()};
c.getCurrentVideoConfig=function(){return B.hp7};
c.loadNewVideoConfig=function(Y){B.loadNewVideoConfig(Y)};
c.isReady=function(){return B.isReady()}};
xx.prototype.isReady=function(){return this.ejQ};
xx.prototype.addEventListener=function(B,c){var x=this;this.isDisposed();var P=N0m(this,c);P&&(_.Lx(this.gWA,B)||this.ud[B]||(c=vOF(this,B),this.pCO&&this.pCO(B,c)),this.mhw.subscribe(B,P),B==="onReady"&&this.isReady()&&setTimeout(function(){P(x.api)},0))};
xx.prototype.removeEventListener=function(B,c){this.isDisposed()||(c=N0m(this,c))&&this.mhw.unsubscribe(B,c)};
var N0m=function(B,c){var x=c;if(typeof c==="string"){if(B.qzT[c])return B.qzT[c];x=function(){var P=_.ts.apply(0,arguments),Y=_.Gu(c);if(Y)try{Y.apply(_.xI,P)}catch(g){throw P=new _.mc("PlayerProxy error when executing callback",{error:g}),P.level="ERROR",P;}};
B.qzT[c]=x}return x?x:null},vOF=function(B,c){var x=function(P){var Y=function(){B.isDisposed();
if(!B.isDisposed())try{B.mhw.publish(c,P!=null?P:void 0)}catch(n){var k=new _.mc("PlayerProxy error when creating global callback",{error:n.message,event:c,playerId:B.playerId,data:P,originalStack:n.stack,componentStack:n.componentStack});k.level="WARNING";throw k;}};
if(EOd(B,"web_player_publish_events_immediately"))Y();else{var g=setTimeout(function(){Y();_.wW.remove(B.h3L,String(g))},0);
_.wW.add(B.h3L,String(g),!0)}};
return B.ud[c]=x};
xx.prototype.getPlayerType=function(){return this.vjw||(this.getPlayerElement()?"html5":null)};
xx.prototype.getLastError=function(){return this.lastError};
var lB9=function(B){B.cancel();mU3(B);B.vjw=null;B.config&&(B.config.loaded=!1);var c=B.getPlayerElement();c&&(JtW(B)||!oOt(B)?B.yY=c:(c&&c.destroy&&c.destroy(),B.yY=null));B.targetElement&&_.WJ(B.targetElement)};
xx.prototype.cancel=function(){this.fMn&&_.GiQ(IBQ(this),this.fMn);clearTimeout(this.kOV);this.qhj=!1};
xx.prototype.disposeInternal=function(){lB9(this);if(this.yY&&this.config&&this.yY.destroy)try{this.yY.destroy()}catch(c){var B=new _.mc("PlayerProxy error during disposal",{error:c});B.level="ERROR";throw B;}this.qzT=null;for(B in this.ud)this.ud.hasOwnProperty(B)&&delete this.ud[B];this.hp7=this.config=this.api=null;delete this.targetElement;delete this.tJ;_.tG.prototype.disposeInternal.call(this)};
var oOt=function(B){var c,x;B=(c=B.config)==null?void 0:(x=c.args)==null?void 0:x.fflags;return!!B&&B.indexOf("player_destroy_old_version=true")!==-1},IBQ=function(B){return B.webPlayerContextConfig?B.webPlayerContextConfig.jsUrl:(B=B.config.assets)?B.js:""},O_9=function(B){return B.webPlayerContextConfig?B.webPlayerContextConfig.cssUrl:(B=B.config.assets)?B.css:""},EOd=function(B,c){if(B.webPlayerContextConfig)var x=B.webPlayerContextConfig.serializedExperimentFlags;
else{var P;if((P=B.config)==null?0:P.args)x=B.config.args.fflags}return(x||"").split("&").includes(c+"=true")},wZ0=function(B){for(var c={},x=_.p(Object.keys(B)),P=x.next();!P.done;P=x.next()){P=P.value;
var Y=B[P];c[P]=typeof Y==="object"?_.wW.clone(Y):Y}return c};var Med={},GMx="player_uid_"+(Math.random()*1E9>>>0);var fj=function(B,c,x,P,Y,g){c=c===void 0?document.createElement("div"):c;this.webPlayerContextConfig=B;this.container=c;this.commandResolver=x;this.apiResolver=H_d();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.kH;P||g?zN5(this):SaI(this);this.pendingPlayerResponse=P;this.pendingWatchNextResponse=Y;this.pendingPlayerVars=g;ytd(this)};
fj.prototype.loadVideoWithPlayerResponse=function(B,c,x){this.loadVideo(B,c,x)};
fj.prototype.loadVideoWithPlayerVars=function(B){return this.loadVideo(void 0,void 0,B)};
fj.prototype.destroy=function(B){if(B=_.cv(document,B))B=GMx+"_"+_.Py(B),(B=Med[B])&&B.dispose()};
var MeZ=function(B,c){var x;_.X(function(P){if(P.nextAddress==1)return B.pendingWatchNextResponse=c,B.synchronousApi?(x=B.synchronousApi,P.jumpTo(2)):_.K(P,B.api,3);P.nextAddress!=2&&(x=P.yieldResult);GM4(B,x);B.pendingWatchNextResponse&&(x.updateVideoData({raw_watch_next_response:B.pendingWatchNextResponse}),B.pendingWatchNextResponse=void 0);_.Kq(P)})},GM4=function(B,c){var x;
if(!(c==null?0:(x=c.isReady)==null?0:x.call(c))){var P;B=new _.mc("playerApi is falsey",{synchronousApi:B.synchronousApi,apiResolved:B.apiResolver.resolved,playerApiUndefined:c===void 0,playerApiNull:c===null,playerApiReady:(c==null?void 0:(P=c.isReady)==null?void 0:P.call(c))===!0,playerApiMethods:c?Object.keys(c):[]});_.lb(B)}},LSS=function(B,c){if(typeof B[c]==="function")return B[c]()},Z_0=function(B){var c=window,x,P=(x=c.ytplayer)==null?void 0:x.bootstrapPlayerContainer;
if((x=P==null?void 0:P.firstElementChild)&&_.Zu(x,"html5-video-player")){var Y,g,k=(Y=c.ytplayer)==null?void 0:(g=Y.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;Y=B.webPlayerContextConfig.contextId;if(k&&k===Y){P!==B.container&&(P=!1,LSS(x,"getPlayerState")===2&&(P=!0),B.container.appendChild(x),P||LSS(x,"playVideo"));var n;if((n=c.ytplayer)==null?0:n.bootstrapPlayerResponse)B.bootstrapPlayerResponse=c.ytplayer.bootstrapPlayerResponse}}},ytd=function(B){var c,x,P,Y,g;
_.X(function(k){if(k.nextAddress==1)return B.pageReadyOrDataAvailable?k.jumpTo(2):_.K(k,B.pageReadyOrDataAvailableResolver.promise,2);if(k.nextAddress!=4)return!_.T("kevlar_player_unified_player_loading")||EOO()&&oOX()?k.jumpTo(4):_.K(k,SaQ(),4);Z_0(B);if(B.pendingPlayerResponse||B.pendingPlayerVars)c=ytO(B.pendingPlayerResponse,B.pendingWatchNextResponse,B.pendingPlayerVars),B.pendingPlayerResponse&&B.pendingPlayerResponse===B.bootstrapPlayerResponse&&(c.loaded=!0),B.bootstrapPlayerResponse=void 0;
x=Z_7(B.container,c,B.webPlayerContextConfig);((P=c)==null?0:P.loaded)&&B.pendingWatchNextResponse?(MeZ(B,B.pendingWatchNextResponse),B.pendingPlayerResponse=void 0,B.pendingPlayerVars=void 0):H_Z(B);Y=function(n){x.removeEventListener("onReady",Y);B.synchronousApi=n;B.apiResolver.resolve(n)};
x.addEventListener("onReady",Y);B.commandResolver!==void 0&&(g=B.commandResolver,x.addEventListener("innertubeCommand",function(n){g(n)}));
_.Kq(k)})};
fj.prototype.loadVideo=function(B,c,x){var P=this,Y,g,k,n,b,d,q,C,h;return _.X(function(V){if(V.nextAddress==1)return P.pendingPlayerResponse=B,P.pendingWatchNextResponse=c,P.pendingPlayerVars=x,zN5(P),P.synchronousApi?(Y=P.synchronousApi,V.jumpTo(2)):_.K(V,P.api,3);V.nextAddress!=2&&(Y=V.yieldResult);GM4(P,Y);k=new Promise(function(N){g=N});
n=function(){var N=Y.getPlayerResponse();N&&(Y.removeEventListener("onVideoDataChange",n),g(N))};
Y.addEventListener("onVideoDataChange",n);if(P.pendingPlayerResponse||P.pendingPlayerVars)P.pendingPlayerResponse&&P.pendingPlayerResponse===P.bootstrapPlayerResponse?(g(P.pendingPlayerResponse),P.pendingWatchNextResponse&&MeZ(P,P.pendingWatchNextResponse)):(b=ytO(P.pendingPlayerResponse,P.pendingWatchNextResponse,P.pendingPlayerVars),(h=(d=P.pendingPlayerResponse)==null?void 0:(q=d.playerConfig)==null?void 0:(C=q.playbackStartConfig)==null?void 0:C.startPaused)?Y.cueVideoByPlayerVars(b.args):Y.loadVideoByPlayerVars(b.args)),
H_Z(P),P.bootstrapPlayerResponse=void 0;return V.return(k)})};
var SaI=function(B){if(document.readyState==="complete"||document.readyState==="interactive")zN5(B);else{var c=function(){document.removeEventListener("DOMContentLoaded",c);zN5(B)};
document.addEventListener("DOMContentLoaded",c)}},zN5=function(B){B.pageReadyOrDataAvailable=!0;
B.pageReadyOrDataAvailableResolver.resolve()},H_Z=function(B){B.pendingPlayerResponse=void 0;
B.pendingWatchNextResponse=void 0;B.pendingPlayerVars=void 0};
_.AJ.Object.defineProperties(fj.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var i6=function(B){Oh.call(this,B===void 0?"document_active":B);var c=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(x){c.transition("document_disposed",{event:x})});
window.addEventListener("beforeunload",function(x){c.transition("document_disposed_preventable",{event:x})});
window.addEventListener("unload",function(x){c.transition("document_disposed",{event:x});c.hasRun=new Map})};
_.w(i6,Oh);
i6.prototype.runPreventableDispose=function(B,c){if(!this.hasRun.get("document_disposed_preventable")){B(c==null?void 0:c.event);var x,P;if((c==null?0:(x=c.event)==null?0:x.defaultPrevented)||(c==null?0:(P=c.event)==null?0:P.returnValue)){c.event.returnValue||(c.event.returnValue=!0);c.event.defaultPrevented||c.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")};
i6.prototype.runDispose=function(B,c){this.hasRun.get("document_disposed")?this.transition("document_active"):(B(c==null?void 0:c.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
i6.prototype.runFlush=function(B,c){B(c==null?void 0:c.event);this.transition("document_active")};
i6.prototype.runActive=function(){};var Au=function(B){Oh.call(this,B===void 0?"document_visibility_unknown":B);var c=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(x){document.visibilityState==="visible"?c.transition("document_visible",{event:x}):c.transition("document_hidden",
{event:x})});
_.T("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(x){c.transition("document_backgrounded",{event:x})}),window.addEventListener("focus",function(x){c.transition("document_foregrounded",{event:x})}))};
_.w(Au,Oh);Au.prototype.runVisible=function(B,c){B(c==null?void 0:c.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Au.prototype.runHidden=function(B,c){B(c==null?void 0:c.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Au.prototype.runBackgrounded=function(B,c){B(c==null?void 0:c.event)};
Au.prototype.runForegrounded=function(B,c){B(c==null?void 0:c.event)};var u6=function(){this.teardownLifecycle=new i6;this.visibilityLifecycle=new Au};
u6.prototype.install=function(){var B=_.ts.apply(0,arguments),c=this;B.forEach(function(x){c.teardownLifecycle.install(x)});
B.forEach(function(x){c.visibilityLifecycle.install(x)})};var D4=function(){u6.call(this);var B={};this.install((B.document_disposed={callback:this.abortSlisAndFlush},B));_.T("combine_ve_grafts")&&(B={},this.install((B.document_disposed={callback:this.flushInteractionLoggingAttachVes},B)));B={};this.install((B.flush_logs={callback:this.logFinalPayload},B));_.T("web_log_cfg_cee_ks")||_.Vp(_.EE,fBZ)};
_.w(D4,u6);var fBd=function(){D4.loggingInstance||(D4.loggingInstance=new D4);return D4.loggingInstance};
D4.prototype.logFinalPayload=function(){if(_.T("web_fp_via_jspb")){var B=new kry,c=_.Wf();c&&_.dW(B,1,c);c=_.T("jspb_sparse_encoded_pivot")?new Tr([{}]):new Tr;_.YX(c,380,Xo5,B);l0O("finalPayload",c);_.T("web_fp_via_jspb_and_json")&&_.JP("finalPayload",{csn:_.Wf()})}else _.JP("finalPayload",{csn:_.Wf()})};
D4.prototype.abortSlisAndFlush=function(){mmZ(ZY);H7!=null&&H7.flush()};
D4.prototype.flushInteractionLoggingAttachVes=function(){Mp0(_.q_())};
var fBZ=function(){var B=_.v5("CLIENT_EXPERIMENT_EVENTS");if(B){var c=SlQ();B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,c(x)&&_.JP("genericClientExperimentEvent",{eventType:x});delete _.Qa.CLIENT_EXPERIMENT_EVENTS}};var i_5={};
i_5.YtPlayerBehavior=[_.Z4.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 B=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.kH;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;i_7(function(){B.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.WX(this,"pan-down"),_.T("kevlar_pinch_fullscreen")&&_.N4().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.T("kevlar_pinch_fullscreen")&&_.N4().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(B,c,x){var P=this;Pv(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Pv(!1,"MainAppPlayer already created.");else{var Y=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.Y9(this.hostElement).querySelector("#container");this.mainAppPlayer_=new fj(this.getWebPlayerContextConfig_(),Y,function(g){return _.KL(g,P.hostElement)},B,c,x);
this.mainAppPlayer_.api.then(function(g){P.player_=g;P.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&GH4.resolve(g)})}},
loadVideoWithPlayerResponse:function(B,c){var x=this;if(this.useUnifiedPlayer_()){var P=this.watchNextData,Y,g=(Y=B.videoDetails)==null?void 0:Y.videoId,k,n,b;(Y=(k=this.watchNextData)==null?void 0:(n=k.currentVideoEndpoint)==null?void 0:(b=n.watchEndpoint)==null?void 0:b.videoId)&&g!=Y&&(P=void 0,_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(B,P,c):this.createMainAppPlayer_(B,P,c);this.mainAppPlayer_.api.then(function(){_.aJ(x.hostElement,
"yt-player-updated")})}else this.update(IBY(B,c))},
loadVideoWithPlayerVars:function(B){var c=this;this.useUnifiedPlayer_()?(_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(B):this.createMainAppPlayer_(void 0,void 0,B),this.mainAppPlayer_.api.then(function(){_.aJ(c.hostElement,"yt-player-updated")})):this.update({args:B})},
update:function(B){var c=this;if(this.useUnifiedPlayer_())Pv(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(B);var x=Dfq(B.args);x&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==x&&Object.assign(B.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(B).then(function(P){_.aJ(c.hostElement,"yt-player-updated",_.T("kevlar_player_updated_obsolete_player_killswitch")?
P:void 0)})}_.Eb(new _.mc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.getPlayerPromise(),2);x=P.yieldResult;if(!x)throw Error("vh");B&&c.updatePlayerPlaylist_(B);_.Kq(P)})},
acquireApi_:function(B){var c=this;if(this.useUnifiedPlayer_())Pv(!1,"Invalid method call in kevlar_unified_player.");else return _.EE.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Pv(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(x){c.shouldAutoplay_(B)?x.loadVideoByPlayerVars(B.args):x.cueVideoByPlayerVars(B.args)})):this.initPlayerPromise_=this.initPlayerContainer_(B),this.initPlayerPromise_},
initPlayerContainer_:function(B){var c=this;if(this.useUnifiedPlayer_())Pv(!1,"Invalid method call in kevlar_unified_player.");else return Pv(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Ob(Error("wh")),Pv(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.Y9(this.hostElement).querySelector("#container"),SaQ().then(function(){var x=c.initPlayer_(B);c.playerResolver_.resolve(x);
return x})},
onPlayerReady_:function(B,c){this.useUnifiedPlayer_()?Pv(!1,"Invalid method call in kevlar_unified_player."):(B.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&GH4.resolve(B),c(B))},
maybeCallApiMethodOnElement_:function(B,c){if(typeof B[c]==="function")return B[c]()},
maybeAdoptBootstrapPlayer_:function(){var B=window,c,x=(c=B.ytplayer)==null?void 0:c.bootstrapPlayerContainer;if((c=x==null?void 0:x.firstElementChild)&&c.classList.contains("html5-video-player")){var P,Y,g=(P=B.ytplayer)==null?void 0:(Y=P.bootstrapWebPlayerContextConfig)==null?void 0:Y.contextId;P=this.getWebPlayerContextConfig_().contextId;if(g&&g===P){x!==this.playerContainer_&&(x=!1,this.maybeCallApiMethodOnElement_(c,"getPlayerState")===2&&(x=!0),this.playerContainer_.appendChild(c),x||this.maybeCallApiMethodOnElement_(c,
"playVideo"));var k;if((k=B.ytplayer)==null?0:k.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=B.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(B){var c=this;if(this.useUnifiedPlayer_())Pv(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(x){c.maybeAdoptBootstrapPlayer_();var P=B?Jtw(B):void 0;P&&P==c.bootstrapPlayerResponse_&&(B.loaded=!0);P=c.playerContainer_;var Y=c.getWebPlayerContextConfig_();P=Z_7(P,B,Y);c.player_=P;c.onPlayerReadyEvent_=c.onPlayerReady_.bind(c,c.player_,x);c.player_.addEventListener("onReady",c.onPlayerReadyEvent_);c.player_.addEventListener("innertubeCommand",
c.onPlayerInnerTubeCommand_.bind(c));_.T("enable_web_shorts_captions_language_command")&&(c.player_.addEventListener("captionschanged",c.storePlayerCaptionLanguage_.bind(c)),c.player_.addEventListener("captionssettingschanged",c.storePlayerCaptionLanguage_.bind(c)),c.player_.addEventListener("onCaptionsTrackListChanged",c.storePlayerCaptionLanguage_.bind(c)))})},
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(B){B.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(B){B.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var B=_.cp().resolve(_.rV).getCurrentPage();B&&B.getScrollTop()<=0?_.WX(this,"pan-down"):_.WX(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(B){B.isFullscreen()||B.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(B){B.isFullscreen()&&B.toggleFullscreen()})},
updatePlayerPlaylist_:function(B){var c=this,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return x=_.cp().resolve(_.Bp(_.vK)),P=!!(x&&x.playlistComponent&&x.playlistComponent.loopOn),_.K(g,c.getPlayerPromise(),2);var k=Y=g.yieldResult,n=k.updatePlaylist,b=[];if(_.T("kevlar_player_playlist_use_local_index")){var d,q;var C=(q=(d=B.localCurrentIndex)!=null?d:B.currentIndex)!=null?q:0}else{var h;C=(h=B.currentIndex)!=null?h:0}if(B.contents)for(d=0;d<B.contents.length;d++)if((q=B.contents[d])&&q.playlistPanelVideoRenderer)if(vkl(q)){q=
q.playlistPanelVideoRenderer;h="";q.shortBylineText&&(h=_.iG(q.shortBylineText));var V="";q.title?V=_.iG(q.title):q.unplayableText&&(V=_.iG(q.unplayableText));b.push({author:h,title:V,encrypted_id:q.videoId})}else d<C&&--C;n.call(k,{index:C,list:B.playlistId?B.playlistId:"",loop:P,playlist_title:B.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:B.title?B.title:"",playlist_author:B.ownerName?_.iG(B.ownerName):void 0});_.Kq(g)})},
focusOnPlayer:function(){_.fl(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var B=this.playerContainer_.querySelector(".html5-video-player");B&&(_.rZ(_.cp().resolve(_.lv)),B.focus())}})},
preparePlayer:function(){var B=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(c){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")c();else{var x=function(){document.removeEventListener("DOMContentLoaded",x);c()};
document.addEventListener("DOMContentLoaded",x)}})).then(function(){return SaQ()}).then(function(){B.initPlayerPromise_||B.preparePlayerJobId_||(B.preparePlayerJobId_=_.Vp(_.EE,function(){B.initPlayerPromise_||(B.initPlayerPromise_=B.initPlayerContainer_())}))}):_.Eb(new _.mc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(B){this.useUnifiedPlayer_()?Pv(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(B)||(B.args.autoplay="0")},
shouldAutoplay_:function(B){if(this.useUnifiedPlayer_())Pv(!1,"Invalid method call in kevlar_unified_player.");else{var c=this.get("args.el",B);return c&&c!="detailpage"&&this.isMiniplayerActive_()||c&&(c=="sponsorshipsoffer"||c=="handlesclaiming")&&this.get("args.autoplay",B)=="0"?!1:(B=Jtw(B))&&this.get("playerConfig.playbackStartConfig.startPaused",B)?!1:!0}},
isMiniplayerActive_:function(){return _.cp().resolve(_.Ge).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var B=this.getPlayer();if(B){var c=B.getPlayerState();_.T("kevlar_player_check_ad_state_on_stop")&&(c=B.getPlayerState(B.getPresentingPlayerType()));c!=5&&B.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(B,c,x){x=x===void 0?!1:x;var P=this,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return c||(c=P.hostElement),Y=P.useUnifiedPlayer_()?!!P.mainAppPlayer_:!!P.initPlayerPromise_,Y?_.K(b,P.getPlayerPromise(),2):(x?B.insertBefore(c,B.firstChild):B.appendChild(c),b.return());g=b.yieldResult;k=g.getPlayerState(g.getPresentingPlayerType());n=!1;if(k==-1||k==1||k==3)n=!0;x?B.insertBefore(c,B.firstChild):B.appendChild(c);n&&g.playVideo();g.setSize(NaN,NaN);_.Kq(b)})},
watchNextDataChanged_:function(B){var c=this;B&&(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&MeZ(this.mainAppPlayer_,B):this.getPlayerPromise().then(function(x){x.updateVideoData(c.computeWatchNextPlayerVars_(B))}))},
computeWatchNextPlayerVars_:function(B){if(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch"))Pv(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:B}},
maybeSendAbandonmentPing_:function(){var B=this.getPlayer();B&&B.getPlayerState()!=5&&B.getPlayerState()!=0&&B.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var B=_.v5("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(B=Object.assign({},B),B.rootElementId=this.playerId);B.serializedExperimentIds&&B.serializedExperimentFlags||_.Ob(Error("xh"));return B},
hasWebPlayerContextConfig_:function(){return!!_.v5("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(B){this.useUnifiedPlayer_()?Pv(!1,"Invalid method call in kevlar_unified_player."):_.KL(B,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(B){var c=_.cp().resolve(_.h2);B=B==null?void 0:B.getOption("captions","track");var x=_.kN("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(B){var P,Y=(P=_.jA(_.if7,x)())==null?void 0:P.value,g;P=typeof(B==null?void 0:B.translationLanguage)==="object"&&((g=B.translationLanguage)==null?void 0:g.languageName)||B.displayName||"";Y!==P&&c.store.dispatch(_.Uy("stringEntity",x,{key:x,value:P.toString()}))}else c.store.dispatch(_.Uy("stringEntity",
x,{key:x,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var B=_.T("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.T("kevlar_unified_player")||B}}];var AtI={};AtI.YtPlaylistPanelBehavior=[_.R.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(B){B=B.detail;if(B.actions.loop!=void 0||B.actions["yt-icons:loop"]!=void 0)this.loopOn=B.actions.loop||B.actions["yt-icons:loop"];if(B.actions.shuffle!=void 0||B.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=B.actions.shuffle||B.actions["yt-icons:shuffle"]},
setMenuData_:function(B){if(!B||!B.playlistButtons||B.isInfinite)return null;for(var c=B.playlistButtons.menuRenderer.topLevelButtons,x=c.length,P=0;P<x;P++)if(c[P].toggleButtonRenderer){var Y=c[P].toggleButtonRenderer;Y.defaultIcon.iconType=="LOOP"&&this.loopOn?Y.isToggled=this.loopOn:Y.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Y.isToggled=this.shuffleOn)}return B.playlistButtons}}];var ukd=function(B){xd.call(this,B,132);this.isDocument=B===document.documentElement};
_.w(ukd,xd);ukd.prototype.calculateScrollDelta=function(B,c,x){var P=0;B<c?P=B<c-100?-48:-8:B>c+x&&(P=B>c+x+100?48:8);return P};
ukd.prototype.JSC$9355_onMouseMove=function(B){this.isDocument||(B.clientX=B.event_.pageX,B.clientY=B.event_.pageY);xd.prototype.JSC$9355_onMouseMove.call(this,B)};var Re=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.scrollElement=document.documentElement;B.JSC$12327_dragListGroup=null;B.dragScrollSupport=null;B.onDraggerCreated=function(c){var x=c.JSC$9351_dragger;x.scrollTarget_=B.scrollElement;c=c.draggerEl;x&&c.menuOpened&&x.setEnabled(!1)};
B.onDragStart=function(c){var x=c.draggerEl;c=c.currDragItem;var P=Object.assign({},c==null?void 0:c.data);P.trackingParams=void 0;x.data=P;x.style.position="absolute";x.style.width=(c==null?void 0:c.clientWidth)+"px";x.style.zIndex="2030";x.onDrag&&x.onDrag();_.T("web_owner_document_fallback_killswitch")?(c=document.querySelector("ytd-app"))&&_.Y9(c).appendChild(x):(c=_.ly(x),(P=c.querySelector("ytd-app"))?_.Y9(P).appendChild(x):c.body.appendChild(x));B.dragScrollSupport=new ukd(B.scrollElement);
B.dragScrollSupport.horizontalScrolling_=!1;x=B.dragScrollSupport;x.constrainScroll_=!!x.margin_&&!1};
B.onDrop=function(c){B.handleDrop(c);B.dragScrollSupport&&(_.R3(B.dragScrollSupport),B.dragScrollSupport=null)};
B.onReorderableScroll=function(){if(B.JSC$12327_dragListGroup){var c=B.JSC$12327_dragListGroup;Yv4(c,c.currDragItem_)}};
return B};
_.w(Re,_.dM);Re.prototype.detached=function(){_.DUn(this)};
_.DUn=function(B){B.JSC$12327_dragListGroup&&(_.Ti(B.JSC$12327_dragListGroup,uX5,B.onDragStart),_.Ti(B.JSC$12327_dragListGroup,edm,B.onDragStart),B.JSC$12327_dragListGroup.dispose(),B.JSC$12327_dragListGroup=null);B.dragScrollSupport&&(_.R3(B.dragScrollSupport),B.dragScrollSupport=null);B.scrollElement.removeEventListener("scroll",B.onReorderableScroll)};
_.rtZ=function(B,c,x,P){P=P===void 0?"":P;_.DUn(B);x&&(B.scrollElement=x);B.JSC$12327_dragListGroup=new Gg;B.JSC$12327_dragListGroup.hysteresisDistance_=2;cm5(B.JSC$12327_dragListGroup,c);B.JSC$12327_dragListGroup.draggerElClasses_=bX("dragging").split(" ");P&&xZW(B.JSC$12327_dragListGroup,function(Y){var g=Y||document,k=null;g.getElementsByClassName?k=g.getElementsByClassName(P)[0]:k=zQm("*",P,Y);return k||Y});
_.wX(B.JSC$12327_dragListGroup,iWm,B.onDraggerCreated);_.wX(B.JSC$12327_dragListGroup,uX5,B.onDragStart);_.wX(B.JSC$12327_dragListGroup,edm,B.onDrop);B.JSC$12327_dragListGroup.init();B.scrollElement.addEventListener("scroll",B.onReorderableScroll,{passive:!0})};
Re.prototype.handleDrop=function(){};
_.AJ.Object.defineProperties(Re.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.L([_.F({value:100}),_.H("design:type",Number)],Re.prototype,"scrollMargin",void 0);_.L([_.qi()],Re);_.RN5=[Re.prototype];_.eM={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(B,c,x){var P=this.getClickTarget_(c);if(P&&this.isClickAllowed_(P)){c.preventDefault();B=(0,_.wW.unsafeClone)(B);var Y=this.getContainerBoundingRect();c=this.getRelativeClickXy_(c,Y);this.expandEndpointUrlMacros_(B,{NX:c[0],NY:c[1],NB:P.code});x&&this.truncateWebCommendMetadataUrl_(B);_.aJ(this.hostElement,"yt-navigate",{endpoint:B})}},
getClickTarget_:function(B){if(!this.clickTargetMap)return null;B=_.AV(B)||[];B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;if(c===_.Y9(this.hostElement).querySelector("#menu"))break;if(c=this.clickTargetMap.get(c.id))return c}return null},
getRelativeClickXy_:function(B,c){var x=B.detail.x,P=B.detail.y;_.T("use_on_click_for_desktop_display_ad")&&B.clientX!=null&&B.clientY!=null&&(x=B.clientX,P=B.clientY);B=Math.round(x-c.left);c=Math.round(P-c.top);return B<0||c<0?[null,null]:[B,c]},
getContainerBoundingRect:function(){return _.Y9(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(B,c){for(var x=_.p(B.loggingUrls||[]),P=x.next();!P.done;P=x.next())P=P.value,P.baseUrl&&(P.baseUrl=Nj(P.baseUrl,c));B.urlEndpoint&&B.urlEndpoint.url&&(B.urlEndpoint.url=Nj(B.urlEndpoint.url,c));B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url&&(B.commandMetadata.webCommandMetadata.url=Nj(B.commandMetadata.webCommandMetadata.url,c))},
truncateWebCommendMetadataUrl_:function(B){if(B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url){var c=B.commandMetadata.webCommandMetadata.url,x=c.indexOf("&pp=");if(x>0){var P=c.indexOf("&",x+1);B.commandMetadata.webCommandMetadata.url=P>x&&P<c.length?c.slice(0,x)+c.slice(P):c.slice(0,x)}}},
configureClickTargets:function(B,c,x){this.containerId=B;this.clickTargetMap=new Map;B=_.p(c);for(c=B.next();!c.done;c=B.next())if(c=c.value,c.location){var P=x.get(c.location);P&&(_.gM(_.Y9(this.hostElement).querySelector("#"+P),"yt-simple-endpoint",this.isClickAllowed_(c)),this.clickTargetMap.set(P,c))}},
isClickAllowed_:function(B){return B.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.BC={};
_.BC.YtLazyListBehavior=[_.xJ.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 B=(this.constructor.generatedFrom||this).observers;B||(B=[]);B.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
B}},
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 B=this.renderElementsOutsideVisibleArea_;B&&(Ryn(B,4),B.processSignal())},
deepLazyListObserver_:function(B){var c=this;if(B){var x=B.value||[];if(this.itemsPath==B.path){var P=this.nonDeferredItemCount;B=0;P>-1&&x.length>P&&(B=_.v5("REMAINING_DOVA_DEFERRED_CHUNKS",-1));B>0?(P>0&&(P=x.slice(0,P),this.setInitialItemsOnDataChanged(P)),(P=this.renderElementsOutsideVisibleArea_)?P.cancel():(P=this.renderElementsOutsideVisibleArea_=new _.YJ(2,"eocs"),_.z6l(window,"scroll",function(){return c.renderDeferredElements()})),_.ai(P,function(){c.setInitialItemsOnDataChanged(x)}),_.FP("REMAINING_DOVA_DEFERRED_CHUNKS",
B-1)):this.setInitialItemsOnDataChanged(x)}else if(this.itemsPath+".splices"==B.path)this.onItemsUpdated_(x);
else P="shownItems"+B.path.substr(this.itemsPath.length),this.useSignals&&P==="shownItems.length"||this.notifyPath(P,B.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(B){B&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(B),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(B){B=B.indexSplices;for(var c=0,x=B.length;c<x;c++){var P=B[c];if(P.index<this.shownCount&&(P.removed&&this.splice("shownItems",P.index,P.removed.length),P.addedCount)){var Y=P.object.slice(P.index,P.index+P.addedCount);P=["shownItems",P.index,0];P.push.apply(P,Y);this.splice.apply(this,P)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(B){this.cancelPendingTasks_();B||(B=[]);this.items_=B;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&&(_.zu("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.fl(this,this.tryRenderChunk_)))},
fillRange_:function(B,c){this.canShowMore&&this.items_&&(B=this.items_.slice(B,c),B.unshift("shownItems"),this.push.apply(this,B),this.shownCount=c,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var B=this;this.canShowMore&&_.yo(this,"renderChunk",function(){B.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.zu("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.C3(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var B=this.renderElementsOutsideVisibleArea_;B&&(B.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var B=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(B-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=B;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(B){return Math.ceil(1E3/B)},
onCanShowMoreUpdated_:function(B){this.data&&this.items_!==null&&(B?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(B){!this.shouldUseTaskManager()&&this.data&&(!B&&this.canShowMore?(_.jpo(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):B&&this.partiallyRenderedItems_.has(this.items_)&&(_.T("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var PC;_.cC={};
PC=function(){var B=_.dM.apply(this,arguments)||this;B.atStart=!0;B.atEnd=!0;B.startIndex=0;B.endIndex=0;B.scrollCount=0;B.initialStartIndex=0;B.disableScrollEventListener=!1;B.useFloorScrolling=!1;B.isSearch=!1;B.dragging=!1;B.dragMouseStart=0;B.dragOffsetStart=0;B.disableWheelScroll=!1;B.centerListItems=!1;B.offset=0;B.minComponentWidth=0;B.marginWidthRight=0;B.marginWidthLeft=0;B.setButtonsStateRequested=!1;B.itemsVisibilityObserver=null;B.fullyVisibleItemsIndices=[];B.JSC$12338_onWheelScroll=function(c){if(B.isSearch&&
!B.disableWheelScroll&&_.T("desktop_enable_dmpanel_wheel_scroll")){var x=c.shiftKey?Math.abs(c.deltaY)>Math.abs(c.deltaX)?c.deltaY:c.deltaX:c.deltaX;x!==0&&(c.preventDefault(),B.ytLazyListBehavior.fillRemainingListItems(),B.offset+=x,xS(B),B.reposition_())}};
B.onPointerDown=function(c){eN4(B)&&(B.dragMouseStart=c.clientX,B.dragOffsetStart=B.offset,B.dragging=!0)};
B.onPointerMove=function(c){eN4(B)&&B.dragging&&(B.ytLazyListBehavior.fillRemainingListItems(),B.offset=B.dragOffsetStart-(c.clientX-B.dragMouseStart),xS(B),B.reposition_())};
B.onPointerUp=function(){eN4(B)&&(B.dragging=!1)};
return B};
_.w(PC,_.dM);var BE5=function(B){var c=_.Y9(B.hostElement).querySelector("#items").children;if(!c)return 0;var x=0;B=_.p(B.fullyVisibleItemsIndices);for(var P=B.next();!P.done;P=B.next())x+=c[P.value].clientWidth;return x},eN4=function(B){return B.isSearch&&_.T("desktop_enable_dmpanel_click_drag_scroll")};
PC.prototype.created=function(){this.cachedViewportWidth=_.v5("initialInnerWidth")||window.innerWidth;this.JSC$12338_cachedViewportHeight=_.v5("initialInnerHeight")||window.innerHeight;_.v5("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.FP("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
PC.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();chn(this)};
PC.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var B;(B=this.itemsVisibilityObserver)==null||B.disconnect();this.itemsVisibilityObserver=null;var c;(c=this.itemsObserver)==null||c.disconnect()};
var chn=function(B){var c=_.Y9(B.hostElement).querySelector("#scroll-container");if(c){if(!B.itemsVisibilityObserver){var x=window.getComputedStyle(c).marginRight;B.itemsVisibilityObserver=new IntersectionObserver(function(P){x00(B,P)},{root:c,
rootMargin:x,threshold:.98})}if(c=_.Y9(B.hostElement).querySelector("#items"))B.itemsObserver=new ody(c,function(P){P24(B,P)})}},P24=function(B,c){Y$0(B)&&(Array.from(c.addedNodes).filter(function(x){return x.nodeType===Node.ELEMENT_NODE}).forEach(function(x){B.itemsVisibilityObserver&&B.itemsVisibilityObserver.observe(x)}),Array.from(c.removedNodes).filter(function(x){return x.nodeType===Node.ELEMENT_NODE}).forEach(function(x){B.itemsVisibilityObserver&&B.itemsVisibilityObserver.unobserve(x)}))},
x00=function(B,c){var x=new Set(B.fullyVisibleItemsIndices);
c=_.p(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;var Y=P.target.parentElement;Y?(Y=Array.from(Y.children).indexOf(P.target),P.isIntersecting?x.add(Y):x.has(Y)&&x.delete(Y)):_.Ob(new _.mc("Parent element not found",P.target.nodeName))}B.fullyVisibleItemsIndices=Array.from(x).sort(function(g,k){return g-k});
x.size===0?_.Ob(new _.mc("No visible entries in horizontal list")):(B.startIndex=B.fullyVisibleItemsIndices[0],B.endIndex=B.fullyVisibleItemsIndices[B.fullyVisibleItemsIndices.length-1])},Y$0=function(B){B.data?B=(B=B.data)&&B.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===B.itemSizeConstraint:!1:B=!1;
return B};
_.a=PC.prototype;_.a.addScrollEventListeners=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container");B.style.touchAction="pan-y";B.addEventListener("wheel",this.JSC$12338_onWheelScroll);B.addEventListener("pointerdown",this.onPointerDown);B.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.a.removeScrollEventListeners=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container");B.removeEventListener("wheel",this.JSC$12338_onWheelScroll);B.removeEventListener("pointerdown",this.onPointerDown);B.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.a.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.fl(this,this.setStartIndex,[this.initialStartIndex])};
_.a.reposition_=function(){var B=_.v5("HTML_DIR")=="rtl"?"":"-",c=_.Y9(this.hostElement).querySelector("#items");c&&(c.style.transform="translateX("+B+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.a.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.fl(this,this.setButtonsState_))};
_.a.setButtonsState_=function(){this.setButtonsStateRequested=!1;var B=_.Y9(this.hostElement).querySelector("#items").firstElementChild;if(B){this.minComponentWidth||(this.minComponentWidth=aIy(this,B));B=_.Y9(this.hostElement).querySelector("#scroll-container").clientWidth;var c=_.Y9(this.hostElement).querySelector("#items").clientWidth,x=this.get(this.ytLazyListBehavior.itemsPath,this);if(x){var P=Math.round(B/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+P,x.length)-1)}this.ytLazyListBehavior.canShowMore?c+this.minComponentWidth>=this.offset+B&&(this.atEnd=!1):this.atEnd=this.offset+B>=c-20?!0:!1;this.atStart=this.offset<=20}};
_.a.setStartIndex=function(B){if(!this.minComponentWidth){var c=_.Y9(this.hostElement).querySelector("#items").firstElementChild;if(!c)return;this.minComponentWidth=aIy(this,c)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*B;xS(this);this.reposition_()};
_.a.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.b9();var B=_.Y9(this.hostElement).querySelector("#scroll-container").clientWidth;_.T("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=aIy(this,_.Y9(this.hostElement).querySelector("#items").firstElementChild));B=this.useFloorScrolling?Math.floor(B/this.minComponentWidth)||1:Math.round(B/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&gi4(this);this.offset+=Y$0(this)?
BE5(this):B*this.minComponentWidth;xS(this);this.reposition_();this.scrollCount++};
_.a.prevClick_=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container").clientWidth;B=this.useFloorScrolling?Math.floor(B/this.minComponentWidth)||1:Math.round(B/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Y$0(this)?BE5(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Y$0(this)?BE5(this):B*this.minComponentWidth;this.centerListItems&&gi4(this);xS(this);this.reposition_()};
_.a.onIronResize_=function(){this.resizeSupportEnabled&&_.fl(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.a.onItemsTransitionEnd_=function(B){_.uI(B)===_.Y9(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.a.onChildElementFocus_=function(B){B=B.target.closest("#items > *");var c=_.Y9(this.hostElement).querySelector("#scroll-container");if(c.contains(B)){if(_.T("web_horizontal_list_behavior_focus_killswitch"))if(B.offsetLeft<this.offset)this.offset=Math.abs(B.offsetLeft)<B.clientWidth?0:B.offsetLeft;else if(B.offsetLeft+B.clientWidth>this.offset+c.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.b9(),this.offset=B.offsetLeft+B.clientWidth-c.clientWidth;else return;else{var x=_.Y9(this.hostElement).querySelector("#items"),
P=_.v5("HTML_DIR")==="rtl",Y=P?x.clientWidth-B.offsetLeft:B.offsetLeft;x=P?x.clientWidth-(B.offsetLeft+B.clientWidth):B.offsetLeft+B.clientWidth;var g=P?Y>this.offset+c.clientWidth:Y<this.offset,k=P?x<this.offset:x>this.offset+c.clientWidth,n=P?g:k;if(P?k:g)c=P?x:Y,this.offset=Math.abs(c)<B.clientWidth?0:c;else if(n)this.ytLazyListBehavior.fillRemainingListItems(),_.b9(),this.offset=(P?Y:x)-c.clientWidth;else return}xS(this);this.reposition_()}};
_.a.observeShownItems_=function(){this.reset()};
_.a.checkComponentWidthResize=function(){var B=_.Y9(this.hostElement).querySelector("#items").firstElementChild;B&&(B=aIy(this,B),this.centerListItems||B!==this.minComponentWidth)&&(this.minComponentWidth=B,this.offset=B*this.scrollCount,this.centerListItems&&gi4(this),xS(this),this.reposition_())};
var aIy=function(B,c){var x=window.getComputedStyle(c).marginRight;x=Math.floor(Number(x.replace("px","")));var P=window.getComputedStyle(c).marginLeft;P=Math.floor(Number(P.replace("px","")));B.centerListItems&&!B.marginWidthRight&&(B.marginWidthRight=x,B.marginWidthLeft=P);return B.resizeSupportEnabled?c.getBoundingClientRect().width+x:c.offsetWidth+x},xS=function(B){var c=_.Y9(B.hostElement).querySelector("#scroll-container").clientWidth,x=_.Y9(B.hostElement).querySelector("#items").clientWidth;
B.offset<0?B.offset=0:B.offset+c>=x&&(B.offset=x-c)},gi4=function(B){B.offset-=(_.Y9(B.hostElement).querySelector("#scroll-container").clientWidth+B.marginWidthRight-B.minComponentWidth)/2-B.marginWidthLeft};
_.AJ.Object.defineProperties(PC.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var B=_.v5("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(B==-1)B=this.JSC$12338_cachedViewportHeight,B=B>1320?5:B>1020?4:B>730?3:B>430?2:1;else if(B==0)return 0;_.FP("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",B-1);B=_.v5("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(B>-1)return B;B=this.cachedViewportWidth;B=B>1600?6:B>1400?5:B>1300?4:B>1090?5:B>870?4:B>660?3:2;_.FP("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
B);return B},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.T("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
PC.prototype.observeShownItems_=PC.prototype.observeShownItems_;PC.prototype.onChildElementFocus_=PC.prototype.onChildElementFocus_;PC.prototype.onItemsTransitionEnd_=PC.prototype.onItemsTransitionEnd_;PC.prototype.onIronResize_=PC.prototype.onIronResize_;PC.prototype.prevClick_=PC.prototype.prevClick_;PC.prototype.nextClick_=PC.prototype.nextClick_;PC.prototype.setButtonsState_=PC.prototype.setButtonsState_;PC.prototype.requestButtonsStateUpdate_=PC.prototype.requestButtonsStateUpdate_;
PC.prototype.reposition_=PC.prototype.reposition_;PC.prototype.reset=PC.prototype.reset;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],PC.prototype,"ytLazyListBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],PC.prototype,"atStart",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],PC.prototype,"atEnd",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"startIndex",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"endIndex",void 0);_.L([_.F({value:6}),_.H("design:type",Number)],PC.prototype,"initialCount",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"scrollCount",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"initialStartIndex",void 0);
_.L([_.F(),_.H("design:type",Object)],PC.prototype,"disableScrollEventListener",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"supportComponentResize",void 0);_.L([_.F({value:function(){var B=this;return function(){return B.prevClick_()}}}),
_.H("design:type",Function)],PC.prototype,"boundPrevClick",void 0);_.L([_.F({value:function(){var B=this;return function(){return B.nextClick_()}}}),
_.H("design:type",Function)],PC.prototype,"boundNextClick",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"useFloorScrolling",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"isSearch",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"dragging",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"dragMouseStart",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"dragOffsetStart",void 0);
_.L([_.F(),_.H("design:type",Object)],PC.prototype,"disableWheelScroll",void 0);_.L([_.F(),_.H("design:type",Object)],PC.prototype,"centerListItems",void 0);_.L([_.nF("iron-resize"),_.bF("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PC.prototype,"onIronResize_",null);_.L([_.nF("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],PC.prototype,"onItemsTransitionEnd_",null);
_.L([_.nF("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],PC.prototype,"onChildElementFocus_",null);_.L([_.bF("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PC.prototype,"observeShownItems_",null);_.L([_.qi()],PC);_.cC.YtdHorizontalListBehavior=[];_.cC.YtdHorizontalListBehavior.push(_.Oc,_.R.YtRendererBehavior,_.BC.YtLazyListBehavior,_.SM.YtdGuideStateAwareBehavior,PC.prototype);var ukO=["APP_STATE","PI"];var so5=_.r2(["about:blank"]),pxQ={pushState:window.history.pushState,replaceState:window.history.replaceState};var YS=function(B){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=B;this.internalPushState=B.pushState.bind(B);this.internalReplaceState=B.replaceState.bind(B)};
YS.prototype.init=function(){this.initialized=!0};
YS.prototype.pushState=function(B,c){this.initialized||this.init();this.internalPushState&&this.internalPushState(B,"",c)};
YS.prototype.replaceState=function(B,c){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(B,"",c)};
YS.prototype.getState=function(){return this.history&&this.history.state};var kmW=function(B){var c=function(){var x=B.apply(this,arguments)||this;x.boundHistoryPushState=!1;x.boundHistoryReplaceState=!1;x.debugInfo={};return x};
_.w(c,B);c.prototype.init=function(){var x=_.df("IFRAME");_.EG(x,_.PM(so5));x.sandbox="allow-same-origin";x.style.display="none";this.iframe=x;document.body.appendChild(x);this.bindHistoryStateFunctions();B.prototype.init.call(this)};
c.prototype.bindHistoryStateFunctions=function(){var x=this,P=[],Y;this.iframe&&((Y=this.iframe.contentWindow)==null?0:Y.history)&&(Y=this.iframe.contentWindow.history)&&(P.push(Y),Object.getPrototypeOf(Y)&&P.push(Object.getPrototypeOf(Y)));window.history&&P.push(window.history);Y=window.history;Object.getPrototypeOf(Y)&&P.push(Object.getPrototypeOf(Y));P.push(pxQ);Y=function(k){for(var n=null,b=0;b<P.length;b++){var d=P[b][k];if(typeof d==="function"){n=d.bind(window.history);x.debugInfo[k]=b;break}}return n};
if(!this.boundHistoryReplaceState){var g=Y("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Y=Y("pushState"))&&(this.internalPushState=Y,this.boundHistoryPushState=!0)};
return c}(YS),Xx4=function(){return kmW.call(this,window.history)||this};
_.w(Xx4,kmW);Xx4.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var aN=function(B){this.browserHistory=B;this.initialized=!1};
aN.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
aN.prototype.pushState=function(B,c){this.initialized||this.init();this.browserHistory.pushState(B,c)};
aN.prototype.replaceState=function(B,c){this.initialized||this.init();this.browserHistory.replaceState(B,c)};
aN.prototype.handlePopstate=function(B){return B.state};_.$05=function(B,c,x,P,Y){this.endpoint=B;this.forward=c;this.historyEntry=x;this.JSC$26684_savedComponentState=P;this.legacyBorder=Y===void 0?!1:Y};var ni4=function(B,c){this.rootData=B;this.scrollTop=c};var Nb=new _.BL("PAGE_REQUEST_TOKEN"),IfZ=new _.BL("FETCH_PBJ_TOKEN");_.gA=new _.BL("EPHEMERAL_STORE_TOKEN");_.sf=function(B){this.data=Object.assign({},B);var c;(c=this.data.innertubeResponse)==null||delete c.frameworkUpdates};
_.sf.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.BA)()};
_.Xs=function(B){return Object.assign({},B.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var bPm=function(){this.maxSize=100;this.timeToDataCache=new Map};
bPm.prototype.get=function(B){var c=this.timeToDataCache.get(B);c&&(this.timeToDataCache.delete(B),this.timeToDataCache.set(B,c));if(c&&c.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var x=_.cp().resolve(_.gA),P=Kn4(c),Y=!!P;if(P){if(P.content){var g=pG(x,P.content);Y&&g?c.rootData.response=_.Xs(g):Y=!1}P.player&&(g=pG(x,P.player),Y&&g?c.rootData.playerResponse=_.Xs(g):Y=!1);P.reelSequence&&(x=pG(x,P.reelSequence),Y&&x?c.rootData.reelWatchSequenceResponse=
_.Xs(x):Y=!1)}Y||(this.timeToDataCache.delete(B),c=void 0)}return c};
bPm.prototype.set=function(B,c){if(c.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var x=Kn4(c),P=Object.assign({},c.rootData);x&&(x.content&&c.rootData.response&&(jon(this,x.content,c.rootData.response),P.response=null),x.player&&c.rootData.playerResponse&&(jon(this,x.player,c.rootData.playerResponse),P.playerResponse=null),x.reelSequence&&c.rootData.reelWatchSequenceResponse&&(jon(this,x.reelSequence,c.rootData.reelWatchSequenceResponse),P.reelWatchSequenceResponse=
null));c=new ni4(P,c.scrollTop)}this.timeToDataCache.has(B)?this.timeToDataCache.delete(B):this.timeToDataCache.size>=this.maxSize&&(x=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(x.value));this.maxSize!==0&&this.timeToDataCache.set(B,c)};
bPm.prototype.clear=function(){this.timeToDataCache.clear()};
var Kn4=function(B){var c=_.cp().resolve(_.Bp(Nb)),x;if((x=B.rootData)==null?0:x.endpoint)return c==null?void 0:$17(c,B.rootData.endpoint);var P;_.Ob(new _.mc("History snapshot response data does not contain endpoint",(P=B.rootData)==null?void 0:P.url));return null},jon=function(B,c,x){if(B.maxSize>0){var P;
(B=(P=x.responseContext)==null?void 0:P.maxAgeSeconds)&&Number(B)>0&&(P=_.cp().resolve(_.gA),x=g$(x,B),P.put(c,new _.sf(x)))}};var U0y=function(B,c,x){this.endpoint=c;this.JSC$26689_savedComponentState=x===void 0?null:x;this.entryTime=B};var cho=1;var kS=function(B){var c=function(){var x=B.apply(this,[].concat(_.wq(_.ts.apply(0,arguments))))||this;x.historyEntryTime=0;x.historySnapshotCache=x.createHistoryCache();return x};
_.w(c,B);c.prototype.createHistoryCache=function(){return new bPm};
c.prototype.saveAndReplace=function(x,P,Y){var g=window.location.href;var k=k===void 0?{}:k;var n=(n=this.browserHistory.getState())&&n.entryTime?n.entryTime:x07();x=this.createNewHistoryEntry(x,k,n);this.saveSnapshot(n,P,Y);this.replaceState(x,g||window.location.href)};
c.prototype.saveAndPush=function(x,P,Y,g,k){k=k===void 0?{}:k;this.saveSnapshot(this.historyEntryTime,Y,g);Y=this.historySnapshotCache;g=this.historyEntryTime;var n=Y.timeToDataCache.keys();n=_.p(n);for(var b=n.next();!b.done;b=n.next())b=b.value,b>g&&Y.timeToDataCache.delete(b);P=this.createNewHistoryEntry(P,k);this.pushState(P,x)};
c.prototype.saveSnapshot=function(x,P,Y){this.historySnapshotCache.set(x,new ni4(P,Y))};
c.prototype.createNewHistoryEntry=function(x,P,Y){Y=Y===void 0?x07():Y;return new U0y(Y,x,P)};
c.prototype.handlePopstate=function(x){var P=B.prototype.handlePopstate.call(this,x),Y=null,g=null,k=!1,n=null;P&&P.entryTime&&(n=this.historySnapshotCache.get(P.entryTime)||null,k=P.entryTime>this.historyEntryTime,this.historyEntryTime=P.entryTime,Y=P.endpoint,g=P.JSC$26689_savedComponentState);this.handleHistoryCacheLoad(new _.$05(Y,k,n,g),x);return P};
c.prototype.pushState=function(x,P){Number(x==null?void 0:x.entryTime)>=0&&(this.historyEntryTime=x.entryTime);B.prototype.pushState.call(this,x,P)};
c.prototype.replaceState=function(x,P){Number(x==null?void 0:x.entryTime)>=0&&(this.historyEntryTime=x.entryTime);B.prototype.replaceState.call(this,x,P)};
c.prototype.handleHistoryCacheLoad=function(){};
return c}(aN),d05=function(){var B=kS.call(this,new Xx4)||this;
B.dispatchElement=null;B.entryIndex=0;return B};
_.w(d05,kS);_.a=d05.prototype;_.a.init=function(B){B=B===void 0?!0:B;kS.prototype.init.call(this);this.initialized||(B||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.a.handlePopstate=function(B){var c=null;B.state||(c="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return kS.prototype.handlePopstate.call(this,B);var x=new CustomEvent("yt-history-pop",{cancelable:!0});_.gj(this.dispatchElement,"yt-history-pop",[x,{errorMsg:c}]);_.sp(this.dispatchElement,"yt-close-all-popups-action");if(!x.defaultPrevented){x=_.cp().resolve(_.rV);c=x.getCurrentData();var P=x.getCurrentPage();x=0;P?(P=_.gj(this.dispatchElement,"yt-get-page-offset",
[P]),P.length>0&&(x=P[0])):_.Ob(new _.mc("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:c?c.page:"undefined"}));c&&(c.csn=_.Wf());this.saveSnapshot(this.historyEntryTime,c,x)}return kS.prototype.handlePopstate.call(this,B)};
_.a.handleHistoryCacheLoad=function(B,c){B.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.p(_.sp(this.dispatchElement,"yt-history-will-navigate",[c])).next().value||_.gj(this.dispatchElement,"yt-history-load",[c,B]))};
_.a.pushState=function(B,c){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var x=new _.mc("history.pushState is not a function",this.getDebugString());_.lb(x)}kS.prototype.pushState.call(this,B,c)};
_.a.replaceState=function(B,c){if(!this.browserHistory.boundHistoryReplaceState){var x=new _.mc("history.replaceState is not a function",this.getDebugString());_.lb(x)}kS.prototype.replaceState.call(this,B,c)};
_.a.saveAndPush=function(B,c,x,P,Y){Y=Y===void 0?{}:Y;x&&(x.csn=_.Wf());kS.prototype.saveAndPush.call(this,B,c,x,P,Y)};
_.a.getDebugString=function(){var B=[];this.initialized&&B.push("i");this.browserHistory.boundHistoryReplaceState&&B.push("bhr");this.browserHistory.boundHistoryPushState&&B.push("bhs");"replaceState"in this.browserHistory.debugInfo&&B.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&B.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&B.push("ei:"+String(this.entryIndex));return B.join(",")};
_.XN=function(B,c){B.init(!0);var x=B.browserHistory.getState();B.replaceState(x,aF(c))};
d05.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.$S=new _.BL("DESKTOP_HISTORY_MANAGER_TOKEN");var q$F=[10,20,30,40,50,60],nG=function(){this.currentPartitionIndex=0},C2S=function(B){lpF({mainAppWeb:_.Z3(),
survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},hMQ=function(B){lpF({mainAppWeb:_.Z3(),
survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},m0I=function(B){return B.currentPartitionIndex>=0&&B.currentPartitionIndex<q$F.length?q$F[B.currentPartitionIndex]:-1},TEF=function(B){return B.currentPartitionIndex>0&&B.currentPartitionIndex-1<q$F.length?q$F[B.currentPartitionIndex-1]:-1};
nG.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var B=TEF(this);B>0&&hMQ(B);B=m0I(this);B>0&&C2S(B);VK9(this)}};
var VK9=function(B){var c=m0I(B);if(c>0){var x=TEF(B);x<0&&(x=0);B.intervalId=_.EE.addJob(function(){var P=TEF(B);P>0&&hMQ(P);P=m0I(B);P>0&&C2S(P);VK9(B)},3,(c-x)*6E4);
B.currentPartitionIndex+=1}else B.currentPartitionIndex=-1};var tKI=function(){this.skipNextNavigation=!1},wxy=function(B,c,x){if(!c)return!1;
if(B.skipNextNavigation)return B.skipNextNavigation=!1;if(_.t(x,_.yp))return!1;var P,Y,g;if((P=_.t(x,_.qA))==null?0:(Y=P.browseEndpointContextSupportedConfigs)==null?0:(g=Y.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var k;return((k=_.t(c.commandMetadata,_.Br))==null?void 0:k.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
tKI.prototype.showConfirmationDialog=function(B,c){this.navigateParams=c;this.customConfirmationCommand?_.cp().resolve(_.xu).resolveCommand(this.customConfirmationCommand):(c={openPopupAction:{popup:{confirmDialogRenderer:{title:_.fk(_.Up("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.fk(_.Up("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.fk(_.Up("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.fk(_.Up("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Gr.getInstance().triggerAction("yt-open-popup-action",c,B))};
tKI.prototype.cancelPendingNavigation=function(){var B;((B=this.navigateParams)==null?void 0:B.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var NE9=function(){},Jh9=function(B,c,x,P,Y,g,k){x=x===void 0?{}:x;
k=k===void 0?{}:k;var n=_.TC.instance,b,d=(b=_.t(c,_.yp))==null?void 0:b.url;return d?AF$(n,d,x,window.location.href,function(q,C){II5(B,q,C,!1,!0,x,g,P)},function(){return!1}):ZO(n,c,x,window.location.href,hV(c),function(q,C){II5(B,q,C,!1,!0,x,g,P)},Y,k)},II5=function(B,c,x,P,Y,g,k,n){if(!B.JSC$12396_chunkHandler)if(x.page==="watch"||x.page==="learning_journey_watch")if(Y||P){if(_.T("kevlar_continue_playback_without_player_response")){var b;
var d=(b=_.t(n,_.fN))==null?void 0:b.videoId}B.JSC$12396_chunkHandler=new e83(_.e5,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:d},tempData:g},k)}else B.JSC$12396_chunkHandler=new A7t(_.e5);else x.page==="shorts"&&Y&&!P?B.JSC$12396_chunkHandler=new R80(_.e5,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},k):B.JSC$12396_chunkHandler=new uN5(k);B.JSC$12396_chunkHandler.processChunk({endpoint:c,data:x});return B.JSC$12396_chunkHandler.hg.promise},
Wn3=function(B,c,x,P,Y){(x=_.MSI(x))&&II5(B,c,x,!1,!0,P,void 0,Y)};var lI5=function(){this.pendingNavigationPromise=null};
_.a=lI5.prototype;_.a.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.a.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.a.addEventListener=function(){throw Error("yh");};
_.a.dispatchEvent=function(){throw Error("yh");};
_.a.removeEventListener=function(){throw Error("yh");};var Eiy=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],bS=function(){_.V4.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];OPF(this)};
_.w(bS,_.V4);bS.prototype.verifyUser=function(){var B=OPF(this),c=B.logout;if(!B.sessionChange)return!0;this.dispatchEvent("ytsessionchange");c&&this.dispatchEvent("ytuserinvalid");return!1};
var OPF=function(B){var c=Eiy.map(function(Y){var g;return(g=_.U4.get(Y))!=null?g:""}),x=c.some(function(Y,g){return B.sessionCookies&&B.sessionCookies[g]!==""&&Y===""}),P=c.some(function(Y,g){return B.sessionCookies&&B.sessionCookies[g]!==Y});
B.sessionCookies=c;return{logout:x,sessionChange:P}};
bS.prototype.clearTimeout=function(){this.scheduledJobId&&(_.EE.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var so7=new _.BL("POSTMESSAGE_TUNNEL_TOKEN");var Y$7=["/parent_tools","/file_download","/artist_roster"],Xxx=[d$q,q1d,CfA,m$q,hnd,U$d,TwY,V7q];var oit=new _.BL("APP_ROOT");var KG=new _.BL("NAVIGATION_CONFIRMATION_SERVICE");var QoI="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Fny=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
j6=function(B,c){this.pendingNavigationPromise=null;this.JSC$12414_clientRoot=B;this.historyManager=c;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 NE9;this.debugString=B.is;B={"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};_.Ma(_.Gr.getInstance(),B,this.JSC$12414_clientRoot)},GmW,MKW,LnQ,ZPW,yhn;
_.w(j6,lI5);j6.prototype.reload=function(){_.Lr(window.location.href)};
var H89=function(B){B.currentEndpoint&&_.t(B.currentEndpoint,_.TF)?B.reload():B.currentEndpoint&&B.navigate(B.currentEndpoint,!0,void 0,{disableCache:!0})};
j6.prototype.navigate=function(B,c,x,P,Y,g,k,n){c=c===void 0?!1:c;x=x===void 0?{}:x;P=P===void 0?{}:P;var b=_.cp().resolve(KG),d;if(!k&&wxy(b,(d=this.currentEndpoint)!=null?d:void 0,B))return b.showConfirmationDialog(this.JSC$12414_clientRoot.parentElement,{endpoint:B,reload:c,params:x,tempData:P,requestType:Y,createScreenConfig:g}),!1;var q=_.So();_.yO(q,"eocs")||q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor");
k=hV(B);b=P.autonav==="1";d=_.Wf();bS.instance||(bS.instance=new bS);var C=bS.instance.verifyUser(),h;if(_.T("enable_dark_theme_only_on_shorts")){var V=document.documentElement.hasAttribute("dark"),N=_.Iu(!0)==="USER_INTERFACE_THEME_DARK";if(k==="shorts"){if(!V)if(_.T("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var l;_.Lr((l=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:l.url,void 0,void 0,window.top)}}else{var E;_.Lr(_.ik((E=_.t(B==null?
void 0:B.commandMetadata,_.Br))==null?void 0:E.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.T("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!V){var S;_.Lr(_.ik((S=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:S.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(N!==V){var M;_.Lr(_.ik((M=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:M.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(k==="watch"){if(vi9(_.cp().resolve(_.Ge),
B)&&(C||_.T("fix_miniplayer_navigation_killswitch")))return!1;_.T("block_all_player_prefetch_requests")||(h=L$F(_.pC(_.Vt),B,b))}else{var f,Z=(f=_.t(this.currentEndpoint,_.fN))==null?void 0:f.videoId;Z&&_.Nm.getInstance().then(function(W$){W$&&W$.set("yt-miniplayer-shown-video-id",Z)})}h&&(x.frags=h.missingFragments_.join(","));
l=null;var u;E=(u=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:u.ignoreNavigation;if(!E)if(_.T("kevlar_command_url")){var e;l=(e=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?void 0:e.url}else l=_.t_O(B,x);if(l&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&l==this.lastNavigationUrl)return _.lg({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.UB(FT(),"CANCELLED")}l&&(this.lastNavigationUrl=l);L8I();_.FP("IS_HOMEPAGE_COLD",
!1);_.FP("IS_RESULTS_PAGE_COLD",!1);_.FP("IS_WATCH_PAGE_COLD",!1);B.loggingUrls&&B.loggingUrls.forEach(function(W$){W$.baseUrl&&_.M6(W$.baseUrl)});
_.Knx(B,g?g.layer:0)&&_.T("kevlar_flush_logs_on_away_navigation")&&_.Wo();if($07(B))return!1;Ton(k,Y);if(!l)return E||_.Ob(new _.mc("Can't construct url for endpoint",B)),_.UB(FT(),"FAILURE"),!1;_.P2x();u=B&&_.t(B,_.qA)&&_.t(B,_.qA).browseId.startsWith("UC");x=(e=_.T("enable_dark_theme_only_on_shorts")&&k==="shorts"?!1:_.JV()&&document.documentElement.hasAttribute("dark")!==_.NA())?{themeRefresh:1}:{};e&&!_.qD()&&_.Iu()==="USER_INTERFACE_THEME_DARK"&&(x.theme="dark");u=e||zMF(l)&&!u&&!_.T("kevlar_disable_url_allowlist");
C||(u=!0);if(u||_.v5("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var px;var kI=(px=window.top)==null?void 0:px.location.href}catch(W$){var Ul;kI=(Ul=W$)==null?void 0:Ul.message}_.Ob(new _.mc("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:kI}))}B=_.T("kevlar_redirect_on_window_killswitch")?window.top:window;MA(l);_.Lr(_.ik(l,x),void 0,void 0,B);_.UB(FT(),"ABORTED");return!1}_.T("kevlar_early_popup_close")&&_.gj(this.JSC$12414_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12396_chunkHandler=void 0;var wC;kI=hV((wC=this.currentEndpoint)!=null?wC:void 0);(wC=k==="shorts"&&kI==="shorts")||_.DXI();_.ya(FtO)("nr",void 0);b&&_.lg({webInfo:{navigationReason:"an"}});B.clickTrackingParams&&(P.itct=B.clickTrackingParams,P.csn=d);BZO(P);P.endpoint=JSON.stringify(B);_.T("enable_unknown_lact_fix_on_html5")&&(_.cp().resolve(_.lv),P.lact=_.co());_.wW.isEmpty(P)||_.Da(l,P);!_.T("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=Jh9(this.pageFetcher,B,P,this.currentEndpoint,this.JSC$12414_isNetworkPromiseStale.bind(this),g,n);g=g.then(this.handleNavigateSuccess.bind(this,g,B,h,P),this.handleNavigateFail.bind(this,g,B));_.dd().navigationFinishPromise=g;c={endpoint:B,pageType:k,url:aF(l),reload:!!c,noProgressBar:wC};Y&&(c.type=Y);this.fireEvent("yt-navigate-start",c);h&&Wn3(this.pageFetcher,B,h,P,this.currentEndpoint);
return!0};
j6.prototype.JSC$12414_isNetworkPromiseStale=function(B){return B!=this.pendingNavigationPromise};
var S$d=function(B,c,x,P,Y){var g=hV(c);c={endpoint:c,pageType:g};Y&&(c.errorMessage=Y);_.Ob(x);c.navigationDoneMs=_.Op("nd");c.navigationErrorReason=P;B.fireEvent("yt-navigate-error",c)};
j6.prototype.handleNavigateFail=function(B,c,x){var P=void 0;x instanceof _.Aa&&(P=x,TXQ(x));if(this.JSC$12414_isNetworkPromiseStale(B))return _.Im(P);_.UB(FT(),"FAILURE");S$d(this,c,x,"101");return _.Im(x)};
j6.prototype.handleNavigateSuccess=function(B,c,x,P,Y){if(this.JSC$12414_isNetworkPromiseStale(B))return _.$C();this.pendingNavigationPromise=null;if(!Y)return c=new _.mc("Missing data in response for navigation endpoint",c),_.Im(c);if(Y.reload)return window.location.reload(!0),_.$C();x&&(B={},_.wW.extend(B,_.MSI(x),Y),Y=B);var g,k;x=(g=Y)==null?void 0:(k=g.timing)==null?void 0:k.responseStart;x!=null&&_.Op("srt",x);_.Op("pdc");var n,b;g=(n=Y)==null?void 0:(b=n.timing)==null?void 0:b.info;g!=null&&
(n=_.ya(_.yrO)(g),_.lg(n));_.UB(FT(),"SUCCESS");yhn(this,c,Y,1,P);return _.$C()};
var zMF=function(B){var c=B;_.T("kevlar_no_redirect_to_classic_2_ks")||(c=(new _.ih(B)).getPath());if(c==="/"||c==="/red")return!1;var x=!0;QoI.forEach(function(P){B.indexOf(P)===0&&(x=!1)});
Fny.forEach(function(P){var Y=P.url;_.T(P.expFlag)&&B.indexOf(Y)===0&&(x=!1)});
return x};
j6.prototype.publishPageData=function(B){this.fireEvent("yt-page-data-fetched",{pageData:B})};
GmW=function(B,c,x,P,Y,g){var k=null;c.page!=="watch"&&c.page!=="learning_journey_watch"||P?c.filler||_.gj(B.JSC$12414_clientRoot,"yt-stop-old-player",[c]):k=II5(B.pageFetcher,Y,c,x,!1,g,void 0,B.currentEndpoint);if(k)return k.then(B.publishPageData.bind(B,c));B.publishPageData(c);return _.$C()};
MKW=function(B,c,x){var P=null;if(!x)return P=new _.mc("Empty data",B.debugString,c);var Y=x.response;if(!Y)return P;var g={endpointType:hV(c)||"unknown"};Y.responseContext?(Y=Y.responseContext.errors)&&(P=new _.mc("Errors in response context",B.debugString,c,Y,g)):P=Y.error||Y.errorMetadata?new _.mc("Errors in response",B.debugString,c,Y.error,Y.errorMetadata,g):new _.mc("responseContext missing",B.debugString,c,Object.keys(Y).sort().join(","),g);var k,n,b,d;if(B=x==null?void 0:(k=x.response)==null?
void 0:(n=k.responseContext)==null?void 0:(b=n.webResponseContextExtensionData)==null?void 0:(d=b.webResponseContextDebugData)==null?void 0:d.debugErrorMessages)for(k=0;k<B.length;k++);return P};
LnQ=function(B){var c,x,P,Y;return B==null?void 0:(c=B.response)==null?void 0:(x=c.responseContext)==null?void 0:(P=x.errors)==null?void 0:(Y=P.error)==null?void 0:Y["0"]};
ZPW=function(B,c){var x;if(x=c.url&&!c.url.startsWith("/clip"))x=c.url,x=!_.T("webfe_parse_debug_param_in_resolveurl_service")&&B.searchDebugUrlMatcher.test(x)||WeA(x)?!0:!1;if(x)WeA(c.url)&&_.fa(window.location.href).themeRefresh?(c=_.rx(c.url,"themeRefresh"),_.XN(B.historyManager,c)):c.url&&!eNx(c.url)&&_.XN(B.historyManager,c.url);else if(c.endpoint){var P,Y,g;(x=(P=c.endpoint)==null?void 0:(Y=P.commandMetadata)==null?void 0:(g=Y.webCommandMetadata)==null?void 0:g.url)&&!eNx(x)&&_.XN(B.historyManager,
x);x&&c.url&&x!=c.url&&!c.url.match("playnext=1")&&new _.mc("Response url mismatch in response data",B.debugString,x,c.url)}};
_.HP5=function(B,c,x,P,Y,g,k,n){g=g===void 0?!1:g;var b=_.cp().resolve(KG),d;if(!n&&wxy(b,(d=B.currentEndpoint)!=null?d:void 0,c))return b.showConfirmationDialog(B.JSC$12414_clientRoot.parentElement,{endpoint:c,data:x,navigationType:P,tempData:Y,isMiniplayer:g,isForwardHistoryNavigation:k==null?void 0:k.forward}),_.$C();B.pageFetcher.JSC$12396_chunkHandler=void 0;return yhn(B,c,x,P,Y,g)};
yhn=function(B,c,x,P,Y,g){g=g===void 0?!1:g;B.isMiniplayerExpansion=g;var k=P===2;B.currentEndpoint=c;B.numNavigations++;B.numNavigations&&(GO7.navigationCount=B.numNavigations);_.FP("NUM_NAV",B.numNavigations);var n=MKW(B,c,x);if(n)return S$d(B,c,n,"102",LnQ(x)),_.Im(n);var b,d,q,C;n=x.rootVe||(x==null?void 0:(b=x.response)==null?void 0:(d=b.responseContext)==null?void 0:(q=d.webResponseContextExtensionData)==null?void 0:(C=q.ytConfigData)==null?void 0:C.rootVisualElementType);!k&&x&&ZPW(B,x);var h,
V;b=x==null?void 0:(h=x.response)==null?void 0:(V=h.responseContext)==null?void 0:V.maxAgeSeconds;if(!k&&!isNaN(b)){var N;_.T("kevlar_use_response_ttl_to_invalidate_cache")?N=(0,_.BA)()+1E3*b:_.T("kevlar_always_invalidate_cache")&&(N=0);isNaN(N)||(x.expirationTime=N)}_.T("html5_enable_ssap_entity_id")&&k&&x.playerResponse&&(x.playerResponse.cacheMetadata={isCacheHit:!0});_.pC(_.Vt).prefetchCache_.clear();k||x.page!=="watch"||x.type!=="reduced"&&P!==1?P=GmW(B,x,k,!!g,c,Y):(B.publishPageData(x),P=_.$C());
Y=P.then(function(){var l=hV(c);l={endpoint:c,pageType:l,fromHistory:k,response:x};l.navigationDoneMs=_.Op("nd");B.fireEvent("yt-navigate-finish",l)});
x.csn&&n&&x.clientSideGrafts&&P.then(B.attachClientSideGrafts.bind(B,x,_.Jg()));return Y};
_.a=j6.prototype;_.a.attachClientSideGrafts=function(B,c){B.clientSideGrafts&&c&&B.clientSideGrafts.forEach(function(x){if(c&&x){var P=_.VF(x);_.T("combine_ve_grafts")?_.q_().graftServerVe(x,c):_.Gq(B.csn,c,P)}})};
_.a.handleSignalActionHistoryBack=function(){window.history.back()};
_.a.handleSignalActionCloseWindow=function(){window.close()};
_.a.handleSignalActionReloadPage=function(){this.reload()};
_.a.handleSignalActionSoftReloadPage=function(){H89(this)};
_.a.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.a.fireEvent=function(B,c){B=new CustomEvent(B,{bubbles:!0,cancelable:!1,composed:!0,detail:c});this.dispatchEvent(B)};
_.a.addEventListener=function(B,c){this.JSC$12414_clientRoot.addEventListener(B,c)};
_.a.dispatchEvent=function(B){return this.JSC$12414_clientRoot.dispatchEvent(B)};
_.a.removeEventListener=function(B,c){this.JSC$12414_clientRoot.removeEventListener(B,c)};
j6[em]=[oit,_.$S];_.Rgd=new Yg("browse","h8y2qb");_.egA=new Yg("search","JzFVk");_.BSA=new Yg("shorts","xwEKAe");_.cLY=new Yg("watchFixie","nmfa2d");_.x1d=new Yg("watchFlexy","CF909");_.P0x=new Yg("watchGrid","Tm0L3c");_.YS7=new Yg("watchLearningJourney","L3n37");var fI4;var iPm=function(){return _.z.apply(this,arguments)||this};
_.w(iPm,_.z);_.AJ.Object.defineProperties(iPm,{template:{configurable:!0,enumerable:!0,get:function(){if(fI4===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);fI4=B}B=fI4;return B}}});
_.L([_.J(i_5.YtPlayerBehavior),_.H("design:type",Object)],iPm.prototype,"ytPlayerBehavior",void 0);_.L([_.y({is:"ytd-player"})],iPm);var AhW;var uiW;var D09;var Uf=function(){var B=_.z.apply(this,arguments)||this;B.forceModernIconButton=!1;B.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return B};
_.w(Uf,_.z);Uf.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]]"}}}}}};
Uf.prototype.handleAccountLinkingStateChangedCommand=function(B){if(B=_.t(B,fD3)){var c,x=(c=this.data)==null?void 0:c.providerKey;c=B.providerKey;x&&c&&x.id===c.id&&x.subject===c.subject&&(B=B.linked,B!==void 0&&(this.set("data.linked",B),this.notifyPath("data.linked"),_.T("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(B)))}};
Uf.prototype.setPlayerAccountLinkState=function(B){var c=new E1w;lVl(c,Oo7(new o1w,B));var x=_.e5();x&&x.getPlayerPromise().then(function(P){P.setAccountLinkState(_.PN(c.JSC$10128_serializeBinary(),4));P.updateAccountLinkingConfig(B)})};
Uf.prototype.handleShowAccountLinkDialog=function(){var B=this.get("button.buttonRenderer.command");B&&_.bg([B],this.hostElement)};
_.AJ.Object.defineProperties(Uf.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}}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],Uf.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Uf.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Uf.prototype,"overrides",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Uf.prototype,"forceModernIconButton",void 0);_.L([_.F({value:"bottom"}),_.H("design:type",String)],Uf.prototype,"buttonTooltipPosition",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Uf.prototype,"forceIconButton",void 0);_.L([_.F(),_.H("design:type",Boolean)],Uf.prototype,"disableTextTransform",void 0);
_.L([_.Q("data","data.linked","data.isWarning"),_.H("design:type",Object),_.H("design:paramtypes",[])],Uf.prototype,"button",null);_.L([_.y({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Uf);
_.G(Uf,"ytd-account-link-button-renderer",function(){if(D09!==void 0)return D09;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return D09=B},{mode:1});var rhI;var RM5=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],dA=function(){return _.z.apply(this,arguments)||this};
_.w(dA,_.z);dA.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
dA.prototype.updateButtonActiveState=function(){var B=this,c=!!RM5.find(function(x){return B.currentState===x});
this.button&&(this.button.isPressed=c)};
_.AJ.Object.defineProperties(dA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.playlistLoopStateEntity)==null?void 0:B.state)||((c=this.data)==null?void 0:c.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var B=void 0,c;if(this.currentState&&((c=this.data)==null?0:c.states)){c=_.p(this.data.states);for(var x=c.next();!x.done;x=c.next()){x=_.t(x.value,_.$wW);var P=void 0;if(((P=x)==null?void 0:P.state)===this.currentState){B=x;break}}}return B}}});
dA.prototype.updateButtonActiveState=dA.prototype.updateButtonActiveState;_.L([_.J(_.OU),_.H("design:type",Object)],dA.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.m0Q}),_.H("design:type",Object)],dA.prototype,"playlistLoopStateEntity",void 0);_.L([_.F(),_.H("design:type",Object)],dA.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],dA.prototype,"forceIconOnly",void 0);_.L([_.jr("ytd-button-renderer"),_.H("design:type",_.rG)],dA.prototype,"button",void 0);
_.L([_.Q("data","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"currentState",null);_.L([_.bF("currentButtonStateRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dA.prototype,"updateButtonActiveState",null);_.L([_.Q("currentState"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"currentButtonStateRenderer",null);
_.L([_.y({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],dA);
_.G(dA,"ytd-playlist-loop-button-renderer",function(){if(rhI!==void 0)return rhI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rhI=B},
{mode:1});var eM9;var Bzn=_.Up("DOWNLOAD",{},"Download"),cTF=_.Up("DOWNLOADING",{},"Downloading"),xCt=_.Up("DOWNLOADED",{},"Downloaded"),P5t=_.Up("RETRY",{},"Retry"),qT=function(){var B=_.z.apply(this,arguments)||this;B.forceIconButton=!1;B.forceIconOnly=!1;B.overrides=!1;B.buttonTooltipPosition=!1;B.styleActionButton=!1;B.disableTextTransform=!1;B.downloadProgress=0;B.isDownloadComplete=!1;B.isHidden=!0;B.transferState="TRANSFER_STATE_UNKNOWN";B.isVideoDeletedByUser=!1;B.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return B};
_.w(qT,_.z);_.a=qT.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.dataChanged=function(){var B;(B=this.data)!=null&&B.text||(B=_.QI(_.uG().getState(),this.videoId),this.updateButtonState(B))};
_.a.computeVideoId=function(B){return B};
_.a.showHideButton=function(){this.updateButtonVisibility()};
_.a.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};
_.a.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.a.updateButtonState=function(B){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==cTF||!_.Ck(B))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(B){case "TRANSFER_STATE_UNKNOWN":B=Bzn;var c="OFFLINE_DOWNLOAD";var x="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":B=P5t;c="OFFLINE_DOWNLOAD";x="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":B=xCt;c="OFFLINE_PIN";x="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":B=
cTF;c="OFFLINE_DOWNLOADING_ZERO";x="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":B=P5t;c="OFFLINE_DOWNLOAD";x="ACTION_RETRY";break;default:B=Bzn,c="OFFLINE_DOWNLOAD",x="ACTION_ADD"}this.isVideoDeletedByUser&&(B=Bzn,c="OFFLINE_DOWNLOAD",x="ACTION_ADD");var P=Object.assign({},this.data);P.text=_.fk(B);P.tooltip=B;P.icon={iconType:c};P.size="SIZE_DEFAULT";P.style="STYLE_DEFAULT";_.t(P.command,_.n3)&&(_.t(P.command,_.n3).action=x);this.set("data",P)}};
_.a.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var B="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?B="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?B="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?B="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?B="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?B="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(B="OFFLINE_PIN",this.isDownloadComplete=!0);var c;B!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.text=_.fk(cTF),c.tooltip=cTF,c.icon={iconType:B},_.t(c.command,_.n3)&&(_.t(c.command,_.n3).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
qT.prototype.updateProgress=qT.prototype.updateProgress;qT.prototype.onTransferStateChanged=qT.prototype.onTransferStateChanged;qT.prototype.showHideButton=qT.prototype.showHideButton;qT.prototype.dataChanged=qT.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],qT.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"forceIconButton",void 0);
_.L([_.F(),_.H("design:type",Object)],qT.prototype,"forceIconOnly",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"overrides",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"buttonTooltipPosition",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"styleActionButton",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"disableTextTransform",void 0);
_.L([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.H("design:type",String)],qT.prototype,"videoId",void 0);_.L([_.F(),_.H("design:type",Object)],qT.prototype,"data",void 0);_.L([_.F({selector:v3,selectorArgs:["videoId"]}),_.H("design:type",Object)],qT.prototype,"downloadProgress",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qT.prototype,"isDownloadComplete",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qT.prototype,"isHidden",void 0);_.L([_.F({selector:_.QI,selectorArgs:["videoId"]}),_.H("design:type",String)],qT.prototype,"transferState",void 0);_.L([_.F({selector:_.tPd,selectorArgs:["videoId"]}),_.H("design:type",Object)],qT.prototype,"isVideoDeletedByUser",void 0);_.L([_.F({selector:Cad,selectorArgs:["videoId"]}),_.H("design:type",Object)],qT.prototype,"offlineabilityState",void 0);
_.L([_.F({value:!0}),_.H("design:type",Boolean)],qT.prototype,"showTooltips",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],qT.prototype,"sendCommandWhenDisabled",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],qT.prototype,"disabled",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qT.prototype,"dataChanged",null);
_.L([_.CF("offlineabilityState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qT.prototype,"showHideButton",null);_.L([_.CF("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qT.prototype,"onTransferStateChanged",null);_.L([_.CF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qT.prototype,"updateProgress",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],qT);
_.G(qT,"ytd-download-button-renderer",function(){if(eM9!==void 0)return eM9;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eM9=B},{mode:2});var Y6F;var adS,gp3=function(){if(adS!==void 0)return adS;var B=document.createElement("template");_.I(B,'\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 adS=B};var sb9=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live"),puW=_.Yu("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,CG=function(){var B=_.z.apply(this,arguments)||this;B.isPressed=!1;B.forceIconButton=!1;B.forceIconOnly=!1;B.forceModernIconButton=!1;B.alignByText=!1;B.isShorts=!1;B.animatedText=!1;B.shouldAnimate=!1;B.JSC$12452_browserSupportsAnimation=_.T("web_supports_animations_api");B.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};B.onTap=function(){var c;if((c=B.data)==null||!c.defaultNavigationEndpoint){var x;c=!((x=B.data)==null?0:x.isToggled);var P;if((P=B.data)==null||!P.preventAutoToggle){B.shouldAnimate=!1;B.disableTextUpdateJobId&&_.EE.cancelJob(B.disableTextUpdateJobId);B.disableTextUpdateJobId=_.EE.addLowPriorityJob(function(){B.disableTextUpdateJobId=void 0},puW);
var Y;B.set("data.isToggled",!((Y=B.data)==null?0:Y.isToggled));x=B.getInnertubeIcon();P={toggled:c,actions:{}};x&&(P.actions[x.toLowerCase()]=c);_.aJ(B.hostElement,"yt-toggle-button",P)}}};
return B};
_.w(CG,_.z);_.a=CG.prototype;_.a.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.EE.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.toggle=function(B){var c;this.set("data.isToggled",B!==void 0?B:!((c=this.data)==null?0:c.isToggled))};
_.a.handleUpdateToggleButtonStateCommand=function(B){if(this.data){B=_.t(B,xwF);var c,x,P,Y=(c=this.data)==null?void 0:(x=c.toggleButtonSupportedData)==null?void 0:(P=x.toggleButtonIdData)==null?void 0:P.id;Y&&B&&Y===(B==null?void 0:B.buttonId)&&this.set("data.isToggled",B.toggled)}};
_.a.handleUpdateToggleButtonTextAction=function(B){if(this.data){B=_.t(B,zet);var c,x,P,Y=(c=this.data)==null?void 0:(x=c.toggleButtonSupportedData)==null?void 0:(P=x.toggleButtonIdData)==null?void 0:P.id;Y&&B&&Y===(B==null?void 0:B.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=B.defaultNumericalValue,this.set("data.defaultText",B.defaultText),this.set("data.toggledText",B.toggledText),this.shouldAnimate=!1)}};
_.a.getInnertubeIcon=function(){var B=this.data;if(B){var c,x,P=((c=B.defaultIcon)==null?0:c.iconType)?(x=B.defaultIcon)==null?void 0:x.iconType:null,Y,g;c=((Y=B.toggledIcon)==null?0:Y.iconType)?(g=B.toggledIcon)==null?void 0:g.iconType:P;return B.isToggled?c:P}};
_.a.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.AJ.Object.defineProperties(CG.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B={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$12452_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var c=B.renderer;var x=B.element;var P=B.toggled;var Y=B.onTapCallback;var g=B.commandClientArgs;var k=B.overrides;var n=B.forceIcon;var b=B.forceModernIconButton;var d=B.forceDisabled;var q=B.useAnimatedText;var C=B.animatedTextProps;B=wx$(c,P);n=!c.defaultIcon||!n&&c.defaultText?c.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";n==="icon-only-40"&&(B.type="text");var h;b=Object;var V=b.assign,N;a:switch((N=
c.style)==null?void 0:N.styleType){case "STYLE_COMPACT_GRAY":N={size:"S"};break a;default:N={size:"M"}}var l=!!P;var E=(E=P&&c.toggledText||c.defaultText)?_.OL(E):void 0;q?(q=_.iG(P&&c.toggledText||c.defaultText))&&C&&!isNaN(Number(C.numberValue))?(C.numberText=q,P&&(C.numberValue+=1),q=C):q=void 0:q=void 0;var S,M,f,Z;var u=(C=((M=P?c.toggledAccessibilityData||((u=c.toggledText)==null?void 0:u.accessibility):c.accessibilityData||((S=c.defaultText)==null?void 0:S.accessibility))==null?void 0:(f=M.accessibilityData)==
null?void 0:f.label)||((Z=c.accessibility)==null?void 0:Z.label))?C:_.iG(P&&c.toggledText||c.defaultText);d=d===void 0?c.isDisabled:d;x=tKQ(c,P,Y,x,g);P=VKC(c,P);P!=null&&P.length?(P=_.S_({innertubeCommand:b7Y(P),forceNewState:!0}),P=yF(P)?P:void 0):P=void 0;c=V.call(b,{},B,N,{iconPosition:n},k,{focused:!1,toggled:l,toggleable:!0,formattedButtonText:E,animatedTextProps:q,accessibilityLabel:u,disabled:d,onTap:x,aTagConfig:P},yAA((h=c.colorData)==null?void 0:h.basicColorPaletteData));c.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(c.type="filled");return c}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var B=this.getInnertubeIcon();if(B)return _.$0(B)}}});
CG.prototype.resetAnimation=CG.prototype.resetAnimation;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],CG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],CG.prototype,"isPressed",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"forceIconButton",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"forceIconOnly",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"forceModernIconButton",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"alignByText",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"overrides",void 0);
_.L([_.F(),_.H("design:type",Boolean)],CG.prototype,"disabled",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"isShorts",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"buttonTooltipPosition",void 0);_.L([_.F(),_.H("design:type",Object)],CG.prototype,"animatedText",void 0);_.L([_.F(),_.H("design:type",String)],CG.prototype,"textNumberValue",void 0);_.L([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.H("design:type",Object)],CG.prototype,"tooltip",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CG.prototype,"resetAnimation",null);_.L([_.Q("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.H("design:type",Object),_.H("design:paramtypes",[])],CG.prototype,"computedButtonShape",null);_.L([_.Q("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],CG.prototype,"computedIcon",null);
_.L([_.y({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],CG);sb9&&_.G(CG,"ytd-toggle-button-renderer",gp3,{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var Oy=_.rM(function(B){function c(d){var q;return _.X(function(C){if(C.nextAddress==1)return(q=!II7(d,n())||!n().enabled)?C.jumpTo(2):_.K(C,OPI(),3);C.nextAddress!=2&&(q=C.yieldResult);if(q)return C.return();x();setTimeout(function(){k(!1)},1500);
_.Kq(C)})}
function x(){setTimeout(function(){k(!0);var d;(d=P.lottieEl)==null||d.goToAndPlay(0)},150)}
var P=_.X5(),Y=_.p(_.$D(!1,void 0,"JJXzp")),g=Y.next().value,k=Y.next().value,n=_.A9(B.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.lk(function(){var d,q;((d=B.settings)==null?void 0:(q=d.call(B))==null?void 0:q.uniqueId)==="this is not intended behavior"&&_.Ob(new _.mc("Smartimation Settings is undefined"))});
_.IO(function(){n().experimentEnabled&&(n().enabled?JhC(c):(k(!1),Wnl(c)),_.lP(function(){Wnl(c)}))},"FRiAUe");
_.IO(function(){n().timings.join("");n().experimentEnabled&&(lI7(n()),_.lP(function(){Ei$(n())}))},"VKiJOe");
var b=_.db(function(){var d=P,q=n().uniqueId+"-border",C,h;var V="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((h=(C=_.cp().resolve(_.Bp(_.fL)))==null?void 0:C())!=null&&h?"dark":"light")+"_v2.json";return{animationRef:d,animationConfig:{name:q,autoplay:!1,loop:!1,path:V}}},void 0,"tgykab");
Y={};return _.U("yt-smartimation",{class:_.Kw(B.className,"smartimation",(Y["smartimation--experiment-enabled"]=function(){return n().experimentEnabled},Y["smartimation--active-border"]=g,Y["smartimation--enable-masking"]=oiX(),Y))},_.U(_.m,{cond:function(){return n().experimentEnabled},
then:function(){return _.U("div",{class:"smartimation__border"},_.U(_.j5,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.U("div",{class:"smartimation__content"},B.children))},"B");
Oy.idomCompat=!0;_.xU(Oy,"yt-smartimation",{props:{className:_.rk,settings:_.rk}});var h7=function(){var B=_.z.apply(this,arguments)||this;B.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};B.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};B.shouldEnableSmartimation=!1;return B};
_.w(h7,_.z);h7.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
h7.prototype.onDataChanged=function(){var B,c;this.shouldEnableSmartimation=(((B=this.data)==null?void 0:(c=B.timedAnimationData)==null?void 0:c.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
h7.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var B=_.t(this.data.likeButton,_.SP),c=_.t(this.data.dislikeButton,_.SP);return!!((B==null?0:B.isToggled)||(c==null?0:c.isToggled))};
h7.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]]"}}}}}};
_.AJ.Object.defineProperties(h7.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var B,c,x=((B=this.data)==null?void 0:(c=B.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:this.shouldEnableSmartimation,experimentEnabled:x.length>0}}}});
h7.prototype.onDataChanged=h7.prototype.onDataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],h7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],h7.prototype,"likeButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],h7.prototype,"dislikeButtonOverride",void 0);
_.L([_.Q("shouldEnableSmartimation"),_.H("design:type",Object),_.H("design:paramtypes",[])],h7.prototype,"smartimationSettings",null);_.L([_.bF("data"),_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h7.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],h7);
_.G(h7,"ytd-segmented-like-dislike-button-renderer",function(){if(Y6F!==void 0)return Y6F;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Y6F=B},{mode:1});var kNW;var XuW;(XuW=document.body)==null||XuW.setAttribute("rounded-container","");var $Cn={};$Cn.YtToggleButtonBehavior=[_.s2.YtActionHandlerBehavior,TO.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 B=this.data.isToggled;if(!this.isModal_(B)){if(!this.data.preventAutoToggle){this.toggle();var c={toggled:this.data.isToggled,actions:{}};c.actions[this.buttonIcon]=this.data.isToggled;_.aJ(this.hostElement,"yt-toggle-button",c)}c=this.data.defaultServiceEndpoint||null;var x=this.data.toggledServiceEndpoint||null;if(c&&x||c&&this.data.preventAutoToggle)B=B?x:c,c=this.disableCommandHandlerOverride,_.T("killswitch_toggle_button_behavior_resolve_command")||c?_.kC(this.hostElement,
[B]):_.KL(B,this.hostElement),_.aJ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:B})}},
stateChanged_:function(){var B=this.data;if(B){var c=B.isToggled;this._setEndpoint(this.computeEndpoint_(B));this._setServiceEndpoint(this.computeServiceEndpoint_(B));this._setButtonIcon(this.computeButtonIcon_(B,c));this._setButtonText(this.computeButtonText_(B,c));this._setButtonAccessibility(this.computeAccessibility_(B,c));this._setButtonTooltip(this.computeTooltip_(B,c));this._setButtonClass(this.computeButtonClass_(B,c));this._setIconPositionType(this.computeIconPositionType_(B));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=c):this.elements_.button.setAttribute("aria-pressed",c));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=c)}},
shouldSetIconActiveState_:function(){return _.T("kevlar_system_icons")},
toggle:function(B){this.set("data.isToggled",B!==void 0?B:!this.data.isToggled);_.T("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(B){if(B){var c,x;return!!((c=this.data)==null?0:(x=c.toggledServiceEndpoint)==null?0:x.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(B){return B&&B.defaultNavigationEndpoint||null},
computeButtonIcon_:function(B,c){var x=B&&B.defaultIcon?_.$0(B.defaultIcon.iconType):null;B=B&&B.toggledIcon?_.$0(B.toggledIcon.iconType):x;return c?B:x},
handleUpdateToggleButtonStateCommand_:function(B){B=B.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==B.buttonId&&this.toggle(B.toggled)},
computeButtonText_:function(B,c){return B?c&&B.toggledText||B.defaultText||null:null},
computeAccessibility_:function(B,c){return B?(c?this.get("toggledAccessibilityData.accessibilityData",B):this.get("accessibilityData.accessibilityData",B))||B.accessibility||null:null},
computeTooltip_:function(B,c){return B?c&&B.toggledTooltip||B.defaultTooltip||null:null},
computeButtonClass_:function(B,c){if(!B)return"";var x="",P=B.toggledStyle||B.style;if(c=c?P:B.style){c.styleType&&(c=c.styleType);try{x+=c.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.oG(Y,c,typeof c),_.Ob(Y)}}if(B=B.size){B.sizeType&&(B=B.sizeType);try{x+=B.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.oG(Y,B,typeof B),_.Ob(Y)}}return x.trim()},
computeIconPositionType_:function(B){return B&&B.iconPosition||null},
computeServiceEndpoint_:function(B){var c=B&&B.serviceEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:x&&B.command?B.command:null},
handleUpdateToggleButtonTextAction_:function(B){B=B.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==B.buttonId&&(this.set("data.defaultText",B.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",B.toggledText),this.notifyPath("data.toggledText"))}}];_.o2("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var npF=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live"),mP=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.roundedContainer=!0;return B};
_.w(mP,_.z);mP.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
mP.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var B=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var c={toggled:!!this.data.isToggled,actions:{}};c.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var x,P;c.actions.playlistId=(x=this.data.defaultServiceEndpoint)==null?void 0:(P=x.playlistEditEndpoint)==null?void 0:P.playlistId;_.aJ(this.hostElement,"yt-toggle-button",c)}(B=B?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(B)}};
mP.prototype.onYtNavigate=function(B){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);c&&(B.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.AJ.Object.defineProperties(mP,{template:{configurable:!0,enumerable:!0,get:function(){if(kNW===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);kNW=B}B=kNW;return B}}});
mP.prototype.onYtNavigate=mP.prototype.onYtNavigate;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],mP.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J($Cn.YtToggleButtonBehavior),_.H("design:type",Object)],mP.prototype,"ytToggleButtonBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],mP.prototype,"data",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],mP.prototype,"showTooltips",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],mP.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],mP.prototype,"roundedContainer",void 0);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mP.prototype,"onYtNavigate",null);
_.L([_.y({is:"ytd-toggle-button-renderer",disableElementRegistration:npF})],mP);var buW;_.TA=new _.BL("PANEL_CONTROLLER_TOKEN");_.Vi=new _.BL("SHEET_CONTROLLER_TOKEN");_.t7=new _.BL("DIALOG_CONTROLLER_TOKEN");buW=new _.BL("DIALOG_CONTAINER_TOKEN");var LnY=_.Up("DOWNLOAD",{},"Download"),ZPw=_.Up("DOWNLOADING",{},"Downloading"),HP7=_.Up("DOWNLOADED",{},"Downloaded"),fIx=_.Up("RETRY",{},"Retry");var Ahw=[],uiw=!1;var KN4=_.rM(function(B){var c=Y6I,x=function(){return""},P=Bzo(B.data),Y=cTI(B.data),g=xCX(B.data),k=P5X(B.data);
c=function(){var n=B.data(),b=Gmw(n,P(),Y(),g(),k()),d=!!n.videoId,q=b.text;return{title:d?q:void 0,tooltip:d?void 0:q,accessibilityText:q,onTap:b.onTap,iconName:b.iconType,style:n.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:n.buttonSize}};
x={};x=_.Kw("ytDownloadButtonViewModelHost",(x.ytDownloadButtonViewModelIsHidden=function(){var n=B.data(),b=k();return n.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},x));
return _.U("download-button-view-model",{class:x},_.U(_.Q7,{data:c}))},"C");
KN4.idomCompat=!0;var UC4=_.rM(function(B){var c=B.backgroundLottieRef;var x=B.foregroundLottieRef;var P=B.children;var Y=B.wrapperClass;var g=B.disableAnimation;B=function(){return(_.T("web_animated_actions")||_.T("web_animated_actions_v2"))&&!(g==null?0:g())};
return _.U("yt-animated-action",{class:_.Kw("animated-action__container",Y)},_.U("div",{class:"animated-action__content-with-background"},_.U(_.m,{cond:B,then:function(){return _.U(jbF,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(adA()?"dark":"light")+"_v5.json"}}}})}}),P),_.U(_.m,{cond:B,
then:function(){return _.U(jbF,{lottiePlayerProps:function(){return{animationRef:x==null?void 0:x(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(adA()?"dark":"light")+"_v4.json"}}}})}}))},"D");
UC4.idomCompat=!0;var jbF=_.rM(function(B){var c=B.wrapperClass;var x=B.lottieClass;var P=B.lottiePlayerProps;return _.U("div",{class:_.Kw("animated-action__lottie",c),"aria-hidden":"true"},_.U(_.j5,{className:x,data:P,animationName:function(){return P().animationConfig.name}}))},"E");var gpl={isOpen:!1};var puw={isAllowed:!1};var Xuw={errorMessage:"",title:"",privacy:"",isDisabled:!0};var npI={isOpen:!1};var KNx={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var dC0={response:void 0};var UCx=function(B,c){B=B===void 0?dC0:B;switch(c.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},B,{response:c.payload});default:return B}};var q6t={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var dC7=function(B,c){B=B===void 0?q6t:B;switch(c.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},B,{nextDisabled:c.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},B,{nextCommand:c.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},B,{footerSubmissionData:c.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},B,{isImpersonationValid:c.payload});default:return B}};var C59={reportFormData:void 0,reportDetailsFormData:void 0};var q6X=function(B,c){B=B===void 0?C59:B;switch(c.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},B,{reportFormData:c.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},B,{reportDetailsFormData:c.payload});default:return B}};var htn=void 0;_.T("mweb_enable_redux_store_on_demand")||(htn=new Am(C5C()));var mCQ=_.rM(function(B){B=_.uF(B,{themeOverride:void 0,animationRef:{}});var c=B.animatedIconType,x=B.active,P=B.themeOverride,Y=B.animationRef;B=B.staticIconFn;var g=_.p(_.$D(void 0,void 0,"P5a72b")),k=g.next().value,n=g.next().value,b=function(){a:{var E=c();var S=P==null?void 0:P();var M;S=(S==null?void 0:S.useDarkTheme)||((M=_.cp().resolve(_.Bp(_.fL)))==null?void 0:M());switch(E){case "LIKE":htn||(htn=new Am(C5C()));E=(E=hwl(htn.getState()))&&E.animationLightUrl&&E.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:S?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:S?E.animationDarkUrl:E.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(E){S=E;break a}S="animated_like_icon_"+(S?"dark_v4":"light_v4");S={lottiePlayerProps:{animationConfig:{name:S,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+S+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":S={lottiePlayerProps:{animationConfig:{name:S?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(S?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}S=void 0}return S},d=function(){var E,S;
return(S=(E=b())==null?void 0:E.lottiePlayerProps.animationConfig.name)!=null?S:""},q=function(){if(b()){var E=b().lottiePlayerProps.animationConfig.path;
return bv.get(E)||k()}};
g=_.p(_.$D(!1,void 0,"h6xR3c"));var C=g.next().value;g=g.next().value;var h=mCY(g),V=function(){var E=b(),S,M,f;return(f=E==null?void 0:(S=E.lottiePlayerProps.animationConfig)==null?void 0:(M=S.rendererSettings)==null?void 0:M.className)!=null?f:""},N=void 0,l=void 0;
_.IO(function(){var E=b(),S=d(),M=q(),f=C(),Z=x();if(E&&(l!==S&&(l=S,N=Z,S=Y(),h.animationConfig=E.lottiePlayerProps.animationConfig,h.animationRef=S,M&&(h.animationConfig.animationData=M,h.animationConfig.path=void 0),S=E.lottiePlayerProps.animationConfig.path,!bv.get(S)&&E.lazyLoad&&S&&hto(S,n)),!(f||E.lazyLoad&&!M))){if(M=!Y().lottieEl)Z?(f=E.totalFrames,h.animationConfig.initialSegment=[f-1,f]):h.animationConfig.initialSegment=void 0;if(N!==Z&&!M)if(M=Y(),Z){var u;(u=M.lottieEl)==null||u.playSegments([0,
E.totalFrames],!0)}else{var e;(e=M.lottieEl)==null||e.playSegments([0,1],!0)}N=Z}},"YCYOCe");
return _.U("animated-icon",{class:"ytAnimatedIconHost"},_.U(_.m,{cond:function(){var E,S;return!((E=b())==null||!E.lottiePlayerProps.animationConfig.path||((S=b())==null?0:S.lazyLoad)&&!q()||C())},
then:function(){return _.U(_.j5,{data:h,animationName:d,className:V,animationRef:Y})},
else:B}))},"F");_.wA=_.rM(function(B){var c=_.Ho("yt-subscribe-button-view-model"),x=_.Ho("div"),P=_.Ho("div"),Y=_.X5(),g=_.X5(),k=_.X5(),n=_.jA(joo,function(){return B.data().stateEntityStoreKey}),b=_.jA(U0$,function(){var n4,L4;
return(L4=(n4=B.data().notificationStateEntityStoreKeys)==null?void 0:n4.subsNotificationStateKey)!=null?L4:""}),d=function(){return!B.data().enableSubscribeButtonPostClickAnimation},q=_.p(_.$D(0,void 0,"eTsWvc")),C=q.next().value,h=q.next().value;
q=_.p(_.$D(0,void 0,"dniDQ"));var V=q.next().value,N=q.next().value;q=_.p(_.$D(!1,void 0,"EluPic"));var l=q.next().value,E=q.next().value;q=_.p(_.$D(!1,void 0,"r0jnre"));var S=q.next().value,M=q.next().value;q=_.p(_.$D(!1,void 0,"KMvoQe"));var f=q.next().value,Z=q.next().value,u;q=_.p(_.$D(!1,void 0,"aSENce"));var e=q.next().value,px=q.next().value,kI=function(){M(!0);_.C3(_.EE,function(){M(!1)},1500)};
_.IO(function(){var n4=S();XS(function(){n4&&!d()&&n()&&EpQ(Y,g,k)})},"LgmX6c");
_.IO(function(){var n4=n();XS(function(){if(!d()&&n4){var L4;((L4=B.animateWidth)==null?0:L4.call(B))&&ld7(c.value,!!n4.subscribed,C(),V());var UF,uX;((UF=u)==null?0:UF.subscribed)||!n4.subscribed||n4.key!==((uX=u)==null?void 0:uX.key)||kI();u=n4}})},"iZzoUb");
q=_.db(function(){var n4,L4,UF,uX=B.data(),yr=!((n4=n())==null||!n4.subscribed);n4=!((L4=B.isOverlay)==null||!L4.call(B));L4=l()?c:void 0;var uz=(UF=b())==null?void 0:UF.state;UF=e();WNd(uX,uz);return tvo({model:uX,subscribed:yr,isOverlay:n4,element:L4,notificationState:uz,disableTextEllipsis:!0,focused:UF})},void 0,"yGQGue");
var Ul=function(){var n4;if(!d()&&((n4=B.animateWidth)==null?0:n4.call(B))&&(x==null?0:x.value)&&(P==null?0:P.value)&&!f()){n4=n();var L4=_.p((n4==null?0:n4.subscribed)?[x,P]:[P,x]),UF=L4.next().value;L4=L4.next().value;UF=Math.ceil(UF.value.getBoundingClientRect().width);L4=Math.ceil(L4.value.getBoundingClientRect().width);h(UF);N(L4);ld7(c.value,!(n4==null||!n4.subscribed),UF,L4);Z(!0)}},wC=_.qe(function(n4){Ul();
var L4=n();L4&&(n4.detail.endpoint.subscribeEndpoint||n4.detail.endpoint.unsubscribeEndpoint)&&NzC(c.value,!L4.subscribed,L4)}),W$=function(){var n4=_.cp().resolve(_.Bp(_.Xr));
n4&&px(n4.isKeyBoardInUse())},El=function(){px(!1)};
_.Z6("yt-player-subscribe",function(n4){var L4=n();L4&&n4===B.data().channelId&&NzC(c.value,!0,L4)});
_.Z6("yt-player-unsubscribe",function(n4){var L4=n();L4&&n4===B.data().channelId&&NzC(c.value,!1,L4)});
_.Z6("yt-update-subscribe-button-action",function(n4){n4=_.t(n4,GoI);var L4=n();L4&&n4&&n4.channelId===B.data().channelId&&NzC(c.value,!!n4.subscribed,L4)});
_.lk(function(){c.value&&(c.value.addEventListener("focusin",W$),c.value.addEventListener("focusout",El));var n4=_.Vp(_.EE,function(){Ul()});
E(!0);_.lP(function(){_.EE.cancelJob(n4);c.value&&(c.value.removeEventListener("focusin",W$),c.value.removeEventListener("focusout",El))})});
var H$=function(){var n4,L4,UF;if(UF=!((n4=n())==null||!n4.subscribed))n4=!!B.data().disableNotificationBell,UF=(L4=b())==null?void 0:L4.state,UF=!n4&&!!UF;return UF},yw=function(){var n4;
return!((n4=n())==null?0:n4.subscribed)},r9=function(){var n4,L4;
if(L4=yw()){L4=!!B.data().disableNotificationBell;var UF=(n4=b())==null?void 0:n4.state;L4=!L4&&!!UF}return L4},cs={},NQ={};
return _.U("yt-subscribe-button-view-model",{class:_.Kw(B.className,"yt-subscribe-button-view-model-wiz",(cs["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var n4,L4;return!((n4=n())==null||!n4.subscribed)&&((L4=B.animateWidth)==null?void 0:L4.call(B))&&S()},cs["yt-subscribe-button-view-model-wiz--hidden"]=function(){var n4;
return!((n4=n())==null?0:n4.subscribed)&&B.data().hideWhenUnsubscribed},cs)),
el:c,"on:yt-service-request-sent":wC},_.U(UC4,{backgroundLottieRef:Y,foregroundLottieRef:g,wrapperClass:_.Kw("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(NQ["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var n4;return((n4=B.animateWidth)==null?void 0:n4.call(B))&&S()},NQ["yt-subscribe-button-view-model-wiz__static-width"]=function(){var n4;
return!((n4=B.animateWidth)==null?0:n4.call(B))},NQ)),
disableAnimation:d},_.U("div",{el:x,class:"yt-subscribe-button-view-model-wiz__container"},_.U(B8,{data:q,icon:function(){return _.U(_.m,{cond:H$,then:function(){var n4=function(){var L4;return wuX((L4=b())==null?void 0:L4.state)};
return _.U(_.m,{cond:function(){return d()||n4()!=="NOTIFICATIONS_NONE"},
then:function(){return _.U(_.Vf,{icon:n4})},
else:function(){return _.U(mCQ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:k})}})}})},
secondaryIconName:function(){return H$()?"EXPAND":void 0}}))),_.U("div",{el:P,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.U(_.m,{cond:function(){var n4;return((n4=B.animateWidth)==null?void 0:n4.call(B))&&!d()&&!f()},
then:function(){return _.U(B8,{data:_.db(function(){var n4;return tvo({model:B.data(),subscribed:yw(),isOverlay:!((n4=B.isOverlay)==null||!n4.call(B)),element:c,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var n4;return r9()?wuX((n4=b())==null?void 0:n4.state):void 0},
secondaryIconName:function(){return r9()?"EXPAND":void 0}})}})))},"G");
_.wA.idomCompat=!0;var OuC=new _.BL("RENDERER_STAMPER_OPTIONS_TOKEN");var Tz9=_.rM(function(B){var c=B.data;var x=_.jA(joo,function(){return c().subscriptionStateEntityKey});
return _.U(_.m,{cond:function(){var P=c(),Y=x();return!P.hideWhenUnsubscribed||(Y==null?0:Y.subscribed)?_.t(c().button,_.Tj):void 0},
then:function(P){return _.U("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.U(_.Q7,{data:P,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
Tz9.idomCompat=!0;var LN7=_.mp({buttonViewModel:_.Q7,subscribeButtonViewModel:_.wA,downloadButtonViewModel:KN4,toggleButtonViewModel:_.Jb,subscribePlusButtonViewModel:Tz9});_.BX(Hu7);var YOX=new _.BL("RENDERER_LOGGER_TOKEN");var w$;_.tb=new QuW;w$=new Map;var c5$="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),PTX=["notificationTextRenderer","notificationMultiActionRenderer"],xdO="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
B3X=fd7(function(B){return _.Ox(B==null?void 0:B.targetId)}).useUpdatableData;var etI=0;_.IF.debugName="EjJbCe";var Vv4=_.rM(function(B){return _.U(_.IF,{data:function(){return B.actionRow().actions}},{buttonViewModel:function(c){var x=c.data;
return _.U(NT,{isRow:B.isRow,isIconOnlyButton:function(){return aVQ(x())},
useIntrinsicWidth:B.useIntrinsicWidth},_.U(_.Q7,{data:x}))},
subscribeButtonViewModel:function(c){return _.U(NT,{isRow:B.isRow},_.U(_.wA,{data:c.data,isOverlay:!1,animateWidth:function(){return!B.isRow()}}))},
downloadButtonViewModel:function(c){var x=c.data;return _.U(NT,{isRow:B.isRow,isIconOnlyButton:function(){return!!x().playlistId}},_.U(KN4,{data:x}))},
toggleButtonViewModel:function(c){var x=c.data;return _.U(NT,{isRow:B.isRow,isIconOnlyButton:function(){var P=x();return aVQ(_.t(P.isToggled?P.toggledButtonViewModel:P.defaultButtonViewModel,_.Tj))}},_.U(_.Jb,{data:x}))},
subscribePlusButtonViewModel:function(c){return _.U(NT,{isRow:B.isRow},_.U(Tz9,{data:c.data}))}})},"I"),NT=_.rM(function(B){var c={};
return _.U("div",{class:_.Kw("yt-flexible-actions-view-model-wiz__action",(c["yt-flexible-actions-view-model-wiz__action--row-action"]=B.isRow,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=B.useIntrinsicWidth,c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=B.isIconOnlyButton,c))},B.children)},"J"),tvn=_.rM(function(B){var c=function(){var P;
return((P=B.layout)==null?void 0:P.call(B))===1},x={};
return _.U("yt-flexible-actions-view-model",{class:_.Kw("yt-flexible-actions-view-model-wiz",B.className,(x["yt-flexible-actions-view-model-wiz--inline"]=function(){return!c()},x["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return B.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},x))},_.U(_.mV,{each:function(){return B.data().actionsRows||[]}},function(P){return _.U(_.m,{cond:c,
then:function(){return _.U("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.U(Vv4,{actionRow:P,isRow:c,useIntrinsicWidth:function(){return!!B.data().respectActionIntrinsicWidth}}))},
else:function(){return _.U(Vv4,{actionRow:P,isRow:c})}})}))},"K"),IN=_.T("web_enable_sink_yt_flexible_actions_view_model")?tvn:_.dV(Hu7);
tvn.idomCompat=!0;_.xU(IN,"yt-flexible-actions-view-model",{props:{data:_.rk,layout:_.rk,justifyContentOverride:_.rk,className:_.rk}});_.BX(g1A);var wut,$dI;wut=_.rM(function(B){var c=_.jA(vw,function(){var Y;return(Y=B.data().dislikeEntityKey)!=null?Y:""}),x=_.db(function(){var Y=c();
return Y?Y.likeStatus==="DISLIKE":_.t(B.data().toggleButtonViewModel,_.V7).isToggled},void 0,"D8oIFb"),P=_.db(function(){return Object.assign({},_.t(B.data().toggleButtonViewModel,_.V7),{isToggled:x()})},void 0,"shaCXe");
return _.U("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.U(_.Jb,{data:P,buttonShapeOverrides:B.buttonShapeOverrideables,onToggle:function(Y){var g=c();g&&Y!==(g.likeStatus==="DISLIKE")&&g.key&&_.iF(_.Wv("likeStatusEntity",g.key,{likeStatus:Y?"DISLIKE":"INDIFFERENT",hadUserInteraction:Y}))}}))},"L");
$dI=_.T("web_enable_sink_dislike_button_view_model")?wut:g1A;_.J7=_.T("web_enable_sink_dislike_button_view_model")?wut:_.dV(g1A);wut.idomCompat=!0;_.BX(pSq);var Nz9,XSO;
Nz9=_.rM(function(B){var c=_.T("web_supports_animations_api"),x=e_(function(h){var V=d();if(!h){var N,l;return{numberText:(l=V==null?void 0:(N=V.likeCountIfIndifferent)==null?void 0:N.content)!=null?l:"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var E;N=(V==null?void 0:(E=V.likeCountIfIndifferent)==null?void 0:E.content)!==h.numberText;if(n()||!N)return h;var S;return{numberText:(V==null?void 0:(S=V.likeCountIfIndifferent)==null?void 0:S.content)||
"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!V}}),P=e_(function(h){var V=d();
if(!h){var N,l;return{numberText:(l=V==null?void 0:(N=V.likeCountIfLiked)==null?void 0:N.content)!=null?l:"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var E;N=(V==null?void 0:(E=V.likeCountIfIndifferent)==null?void 0:E.content)!==h.numberText;if(n()||!N)return h;var S;return{numberText:(V==null?void 0:(S=V.likeCountIfLiked)==null?void 0:S.content)||"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!V}}),Y=_.p(_.$D(void 0,
void 0,"yUfxHb")),g=Y.next().value,k=Y.next().value,n=g,b=_.jA(vw,function(){var h,V;
return(V=(h=B.data())==null?void 0:h.likeStatusEntityKey)!=null?V:""}),d=_.jA(fww,function(){var h,V;
return((h=B.likeCountEntity)==null?void 0:(V=h.call(B))==null?void 0:V.key)||""}),q=_.db(function(){var h;
return((h=b())==null?void 0:h.likeStatus)==="LIKE"},void 0,"Mx7vg"),C=function(){var h;
return c&&!((h=B.likeCountEntity)==null||!h.call(B))};
return _.U("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.U(_.Jb,{data:function(){var h=Object,V=h.assign,N;var l=_.t((N=B.data())==null?void 0:N.toggleButtonViewModel,_.V7);return V.call(h,{},l||{},{isToggled:q()})},
buttonShapeOverrides:B.buttonShapeOverrideables,animatedTextPropsDefault:function(){return C()?x():void 0},
animatedTextPropsToggled:function(){return C()?P():void 0},
onToggle:function(h){kT7(h,b(),n(),k)},
style:function(){var h;return((h=B.disableIconAnimation)==null?0:h.call(B))?void 0:{animateIcon:"true"}}}))},"M");
XSO=_.T("web_enable_sink_like_button_view_model")?Nz9:pSq;_.WC=_.T("web_enable_sink_like_button_view_model")?Nz9:_.dV(pSq);_.BX(n1$);var IdF=_.rM(function(B){var c=function(){return _.t(B.data().likeButtonViewModel,_.lR)},x=function(){var Y;
return((Y=c())==null?void 0:Y.likeStatusEntityKey)||""},P=_.db(function(){var Y,g;
var k=(g=_.jA(vw,x)())!=null?g:(Y=c())==null?void 0:Y.likeStatusEntity;Y=B.data();var n;Y=(Y==null?void 0:(n=Y.timedAnimationData)==null?void 0:n.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(k==null?void 0:k.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},void 0,"e1fsz");
return _.U("segmented-like-dislike-button-view-model",{class:_.Kw("ytSegmentedLikeDislikeButtonViewModelHost",B.className),"button-renderer":!0},_.U(Oy,{settings:P},_.U("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.U(_.m,{cond:c,then:function(Y){return _.U(_.WC,{data:Y,likeCountEntity:function(){return B.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.U(_.m,{cond:function(){return _.t(B.data().dislikeButtonViewModel,_.Ey)},
then:function(Y){return _.U(_.J7,{data:Y,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),JTt=_.T("web_enable_sink_segmented_like_dislike_button_view_model")?IdF:n1$;
IdF.idomCompat=!0;_.T("web_enable_sink_segmented_like_dislike_button_view_model")?_.xU(JTt,"segmented-like-dislike-button-view-model",{props:{data:_.rk,className:_.rk}}):_.XB(JTt,"segmented-like-dislike-button-view-model",{propNames:["data"]});var qOY=0;_.xU(QrO,"account-link-button-view-model",{props:{data:_.rk,className:_.cw,setMinWidth:_.cw,forceIconOnly:_.cw}});_.o2("menuRenderer","menuRenderer","ytd-menu-renderer");
var WNZ={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"}},
ld5=_.T("web_fix_missing_action_buttons")?100:200,lS=function(){var B=_.z.apply(this,arguments)||this;B.safeArea=!_.T("kevlar_flex_menu_safe_area_killswitch");B.tonalOverride=!1;B.threeDotSize="M";B.isOverlay=!1;B.useOverlayDark=!1;B.topLevelIconsOnly=!1;B.JSC$12597_lastWidth=0;B.maybeUpdateFlexibleMenu=function(){_.T("web_fix_missing_action_buttons")?requestAnimationFrame(B.maybeUpdateFlexibleMenuImpl):B.maybeUpdateFlexibleMenuImpl()};
B.maybeUpdateFlexibleMenuImpl=function(){var c;if((c=B.data)!=null&&c.flexibleItems){B.maybeFlushDebouncer();c=B.hostElement.clientWidth;var x=c>B.JSC$12597_lastWidth,P,Y=((P=B.topLevelButtonsContainer)==null?void 0:P.scrollHeight)||0,g;P=((g=B.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=B.hostElement.scrollHeight>Math.max(Y,P)+8;x?(B.resetFlexibleItems(),B.JSC$12597_lastWidth=B.hostElement.clientWidth,B.maybeUpdateFlexibleMenu()):g&&(B.shrinkFlexibleMenu(),B.JSC$12597_lastWidth=
c)}};
B.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){B.onOverflowTap()},
iconPosition:"icon-only",style:B.isOverlay?B.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:B.threeDotSize,state:"active",accessibilityLabel:B.computeAccessibilityLabel(B.data)},B.threeDotButtonOverride)};
B.onOverflowTap=function(){if(B.data.fetchMenuCommand)_.cp().resolve(_.xu).resolveCommand(B.data.fetchMenuCommand,{form:{element:B.hostElement}});else if(B.data.isDisabled&&B.data.disabledCommand)_.KL(B.data.disabledCommand,B.hostElement);else{var c=B.createMenuRendererVe(),x={items:B.items};B.data.menuPopupAccessibility&&(x.menuPopupAccessibility=B.data.menuPopupAccessibility);B.data.footer&&(x.footer=B.data.footer);c={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:x},veData:c}};
_.cp().resolve(_.Vi).openSheet({openPopupActionCommand:c},B.hostElement)}};
return B};
_.w(lS,_.z);_.a=lS.prototype;_.a.updateButtonOverrides=function(){if(!_.T("menu_renderer_label_update_upkillswitch")){var B=_.Y9(this.hostElement).querySelector("yt-button-view-model");B&&(B.buttonOverrides=this.buttonOverrides)}};
_.a.computeHasItems=function(){var B;return((B=this.topLevelButtonData)==null?void 0:B.length)||this.hasFlexibleItems};
_.a.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.a.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.k9(this.hostElement,{"--ytd-menu-renderer-button-color":_.zF(this.data.iconColor)}))};
_.a.onStamperFinished=function(){this.JSC$12597_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.a.setupFlexibleMenu=function(){var B=this,c;(c=this.data)!=null&&c.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.eA(this.maybeUpdateFlexibleMenu,ld5,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){B.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))};
_.a.maybeFlushDebouncer=function(){if(_.T("web_replace_formatted_with_attributed_string")){var B;(B=this.topLevelButtons)==null||B.forEach(function(x){var P;(x=(P=x.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&UnO(x)});
var c;(c=this.flexibleItemButtons)==null||c.forEach(function(x){var P;(x=(P=x.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&UnO(x)})}};
_.a.resetFlexibleItems=function(){var B;if((B=this.data)!=null&&B.flexibleItems){_.T("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var c;this.flexAsTopLevelButtons=(c=this.data.flexibleItems)==null?void 0:c.map(function(x){return _.t(x,_.X6I).topLevelButton});
_.T("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.a.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.a.shrinkFlexibleMenu=function(){var B;(B=this.flexAsTopLevelButtons)!=null&&B.length&&(this.flexAsTopLevelButtons=[].concat(_.wq(this.flexAsTopLevelButtons.slice(0,-1))))};
_.a.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:WNZ,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:WNZ,events:!0}}};
_.a.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.a.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.a.detached=function(){this.icon="MORE_VERT"};
_.a.computeTopLevelButtonData=function(B){if(!B)return[];var c;B=(c=B==null?void 0:B.topLevelButtons)!=null?c:[];return _.wW.unsafeClone([].concat(_.wq(B)))};
_.a.computeItems=function(B,c){if(!B)return[];var x=[];if(c){var P=(B.flexibleItems||[]).map(function(k){return _.t(k,_.X6I)});
P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next())Y=Y.value,c.includes(Y.topLevelButton)||(Y=Y.menuItem)&&x.push(Y)}var g;B=(g=B==null?void 0:B.items)!=null?g:[];return[].concat(_.wq(x),_.wq(B))};
_.a.computeMenuActive=function(B,c){return B||c};
_.a.onPopupOpened=function(){this.overlayOpen=!0;_.aJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.a.onPopupClosed=function(){this.overlayOpen=!1;_.aJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.a.onPopupCanceled=function(){this.overlayOpen=!1;_.aJ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.a.computeAccessibilityLabel=function(B){return this.get("accessibility.accessibilityData.label",B)};
_.a.isHidden=function(B,c){return this.tonalOverride||!B?!0:B.fetchMenuCommand||B.isDisabled&&B.disabledCommand?!1:!(c==null?0:c.length)};
_.a.isModernOverflowHidden=function(B,c){return this.tonalOverride&&B?B.fetchMenuCommand?!1:!(c==null?0:c.length):!0};
_.a.createMenuRendererVe=function(){var B=this.data.trackingParams,c=_.Wf(),x=_.Jg();return B&&c&&x?(B=_.VF(B),x=_.JW(7591),_.T("combine_ve_grafts")?_.Xa(_.q_(),x,B):_.Gq(c,B,x),x):null};
_.AJ.Object.defineProperties(lS.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.flexAsTopLevelButtons)==null||!B.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
lS.prototype.onPopupCanceled=lS.prototype.onPopupCanceled;lS.prototype.onPopupClosed=lS.prototype.onPopupClosed;lS.prototype.onPopupOpened=lS.prototype.onPopupOpened;lS.prototype.tonalOverrideChanged=lS.prototype.tonalOverrideChanged;lS.prototype.resetFlexibleItems=lS.prototype.resetFlexibleItems;lS.prototype.setupFlexibleMenu=lS.prototype.setupFlexibleMenu;lS.prototype.iconButtonColorChanged=lS.prototype.iconButtonColorChanged;lS.prototype.updateButtonOverrides=lS.prototype.updateButtonOverrides;
_.L([_.J(_.uD),_.H("design:type",Object)],lS.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#button-shape"),_.H("design:type",KQ)],lS.prototype,"buttonShape",void 0);_.L([_.jr("#button"),_.H("design:type",Object)],lS.prototype,"button",void 0);
_.L([_.F(),_.H("design:type",Object)],lS.prototype,"data",void 0);_.L([_.F({computed:"computeTopLevelButtonData(data)"}),_.H("design:type",Array)],lS.prototype,"topLevelButtonData",void 0);_.L([_.F(),_.H("design:type",Array)],lS.prototype,"flexAsTopLevelButtons",void 0);_.L([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.H("design:type",Array)],lS.prototype,"items",void 0);_.L([_.F({value:"MORE_VERT"}),_.H("design:type",String)],lS.prototype,"icon",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lS.prototype,"safeArea",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.H("design:type",Boolean)],lS.prototype,"menuActive",void 0);_.L([_.F(),_.H("design:type",Boolean)],lS.prototype,"menuFocused",void 0);_.L([_.F({value:"bottom"}),_.H("design:type",String)],lS.prototype,"buttonTooltipPosition",void 0);_.L([_.F(),_.H("design:type",Boolean)],lS.prototype,"overlayOpen",void 0);
_.L([_.F({value:!0}),_.H("design:type",Boolean)],lS.prototype,"forceIconButton",void 0);_.L([_.F(),_.H("design:type",Boolean)],lS.prototype,"styleActionButton",void 0);_.L([_.F(),_.H("design:type",Boolean)],lS.prototype,"disableTextTransformOnButtons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lS.prototype,"tonalOverride",void 0);_.L([_.F(),_.H("design:type",Object)],lS.prototype,"threeDotSize",void 0);
_.L([_.F(),_.H("design:type",Object)],lS.prototype,"threeDotButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],lS.prototype,"isOverlay",void 0);_.L([_.F(),_.H("design:type",Object)],lS.prototype,"useOverlayDark",void 0);_.L([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.H("design:type",Object)],lS.prototype,"buttonOverride",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],lS.prototype,"hasCustomIconColor",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("flexAsTopLevelButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],lS.prototype,"hasFlexibleItems",null);_.L([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.H("design:type",Boolean)],lS.prototype,"hasItems",void 0);_.L([_.F(),_.H("design:type",Object)],lS.prototype,"topLevelIconsOnly",void 0);
_.L([_.bF("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"updateButtonOverrides",null);_.L([_.Q("topLevelIconsOnly"),_.H("design:type",Object),_.H("design:paramtypes",[])],lS.prototype,"buttonOverrides",null);_.L([_.jr("#top-level-buttons-computed"),_.H("design:type",HTMLElement)],lS.prototype,"topLevelButtonsContainer",void 0);_.L([_.Um(".top-level-buttons > *"),_.H("design:type",Array)],lS.prototype,"topLevelButtons",void 0);
_.L([_.jr("#flexible-item-buttons"),_.H("design:type",HTMLElement)],lS.prototype,"flexibleItemButtonsContainer",void 0);_.L([_.Um("#flexible-item-buttons > *"),_.H("design:type",Array)],lS.prototype,"flexibleItemButtons",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"iconButtonColorChanged",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"setupFlexibleMenu",null);_.L([_.CF("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"resetFlexibleItems",null);_.L([_.bF("tonalOverride"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"tonalOverrideChanged",null);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"onPopupOpened",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"onPopupClosed",null);_.L([_.nF("yt-popup-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lS.prototype,"onPopupCanceled",null);
_.G(lS,"ytd-menu-renderer",function(){if(uiW===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);uiW=B}B=uiW;return B},{mode:_.sL("kevlar_poly_si_batch_j030")?1:2});var EpI;var Ou9;_.Ef=_.rM(function(B){var c=B.data;var x=function(){if(c().icon)a:{var P={iconName:c().icon};for(var Y=_.cp().resolve(_.nL),g=_.p([12,24]),k=g.next();!k.done;k=g.next()){var n=k.value;k=Object.assign({},P,{iconStyle:"youtube_fill",iconSize:n});n=Object.assign({},P,{iconStyle:"youtube_outline",iconSize:n});if(Y.resolveIcon(k)){P=k;break a}if(Y.resolveIcon(n)){P=n;break a}}P=void 0}else P=void 0;return P};
B={};return _.U("badge-shape",{class:_.Kw("badge-shape-wiz",function(){return zpo(c().type)},(B["badge-shape-wiz--overlay"]=function(){return c().isOverlay},B["badge-shape-wiz--ads-include-dot"]=function(){return c().adsIncludeDot},B["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(c().type){case 16:case 17:case 18:var P=!0;
break a;default:P=!1}return P},B["badge-shape-wiz--status-badge"]=function(){a:switch(c().type){case 11:case 12:case 13:case 14:case 15:var P=!0;
break a;default:P=!1}return P},B["badge-shape-wiz--no-text"]=function(){return!c().text},B["badge-shape-wiz--modern"]=function(){return c().modern||_.T("web_modern_badge_shape")},B)),
style:_.TU({"background-color":function(){var P;return(P=c().customColors)==null?void 0:P.backgroundColor}}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},_.U(_.m,{cond:function(){return c().animation},
then:function(P){return _.U(_.j5,{className:"badge-shape-wiz__icon",data:P,animationName:function(){return P().animationConfig.name||""}})}}),_.U(_.m,{cond:function(){var P;
return x()&&!((P=c())==null?0:P.animation)},
then:function(){return _.U("div",{class:"badge-shape-wiz__icon"},_.U(Oc7,{data:function(){return x()}}))}}),_.U("div",{class:"badge-shape-wiz__text"},function(){var P;
return(P=c())==null?void 0:P.text}))},"O");
_.Ef.idomCompat=!0;_.xU(_.Ef,"badge-shape",{props:{data:_.rk}});var Of=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.animated=_.T("animated_live_badge_icon");B.useBadgeShape=_.T("web_badge_shape_defrag");return B};
_.w(Of,_.z);_.a=Of.prototype;_.a.addTooltips=function(){for(var B=_.Y9(this.hostElement).querySelectorAll(".badge"),c=0,x;x=B[c++];){var P=this.repeatElement.itemForElement(x);x=_.Y9(x);x.lastChild&&x.lastChild.is==="tp-yt-paper-tooltip"&&x.removeChild(x.lastChild);if(P=P.metadataBadgeRenderer&&P.metadataBadgeRenderer.tooltip){var Y=_.PV("tp-yt-paper-tooltip");(0,_.pF)(Y).textContent=P;Y.setAttribute("position","top");Y.setAttribute("aria-hidden","true");x.appendChild(Y)}}};
_.a.badgesChanged=function(){var B=this;_.So().parkOrScheduleJob(function(){B.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.a.standaloneRoundedBadgeChanged=function(){var B=this.useRoundedBadge?this.useRoundedBadge:void 0;B&&(this.useRoundedBadge=B)};
_.a.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.a.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.a.computeStyle=function(B){_.T("enable_html5_teal_ad_badge")&&B==="BADGE_STYLE_TYPE_AD"&&(B="badge-style-type-ad-alternate");_.T("kevlar_ytb_live_badges")&&B==="BADGE_STYLE_TYPE_LIVE_NOW"&&(B="badge-style-type-live-now-alternate");return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeRole=function(B){return this.computeAriaLabel(B)?"img":"status"};
_.a.computeAriaLabel=function(B){var c;return(B==null?void 0:(c=B.accessibilityData)==null?void 0:c.label)||(B==null?void 0:B.label)};
_.a.computeBadgeShape=function(B){var c;if(B){var x,P=FBd(B.style),Y=v1q(B.style),g=B.label,k=((x=B.accessibilityData)==null?void 0:x.label)||B.label;B=(c=B.icon)==null?void 0:c.iconType;c={type:P,brNzRatingBadgeType:Y,text:g,accessibilityText:k,icon:B!=="PREMIUM"?B:void 0}}else c={};return c};
_.a.updateComputedBadges=function(B,c,x){var P=this;(c=c?[c]:x?[x]:void 0)?this.computedBadges=c:this.computedBadges=B==null?void 0:B.filter(function(Y){var g;if((g=Y.metadataBadgeRenderer)==null?0:g.groups){g=!1;Y=_.p(Y.metadataBadgeRenderer.groups);for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var n=void 0;g=g||((n=P.hiddenBadgeGroups)==null?void 0:n.includes(k))}return!g}return!0})};
_.a.useFilledIcons=function(B){return _.T("kevlar_system_icons")&&(B==="AUDIO_BADGE"||B==="CHECK_CIRCLE_THICK"||B==="OFFICIAL_ARTIST_BADGE"||B==="SPONSORSHIP_STAR"||B==="PERSON_RADAR_FILLED"||B==="PERSON_RADAR")};
_.a.computeIcon=function(B){var c,x;B=B==null?void 0:(c=B.metadataBadgeRenderer)==null?void 0:(x=c.icon)==null?void 0:x.iconType;if(B!=="PREMIUM"&&B)return _.$0(B)};
_.a.computeStandaloneBadge=function(B){var c;B=B==null?void 0:(c=B.icon)==null?void 0:c.iconType;return B==="PREMIUM_STANDALONE"||B==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Of.prototype.hiddenBadgeGroupsChanged=Of.prototype.hiddenBadgeGroupsChanged;Of.prototype.standaloneBadgeChanged=Of.prototype.standaloneBadgeChanged;Of.prototype.standaloneRoundedBadgeChanged=Of.prototype.standaloneRoundedBadgeChanged;Of.prototype.badgesChanged=Of.prototype.badgesChanged;_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"hidden",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Of.prototype,"componentBehavior",void 0);
_.L([_.F(),_.H("design:type",Array)],Of.prototype,"badges",void 0);_.L([_.F(),_.H("design:type",Object)],Of.prototype,"topStandaloneBadge",void 0);_.L([_.F(),_.H("design:type",Object)],Of.prototype,"bottomStandaloneBadge",void 0);_.L([_.F(),_.H("design:type",Object)],Of.prototype,"computedBadges",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"mediumFontAdBadge",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"useRoundedBadge",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"largeFontAdBadge",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"overlayAd",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"overlayPremium",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"noDotAdBadge",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"collectionTruncate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"isThumbnailBadge",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Of.prototype,"wrapBadges",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Of.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Of.prototype,"animated",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Of.prototype,"useBadgeShape",void 0);_.L([_.F({value:[]}),_.H("design:type",Array)],Of.prototype,"hiddenBadgeGroups",void 0);_.L([_.jr("#repeat"),_.H("design:type",IB)],Of.prototype,"repeatElement",void 0);_.L([_.CF("badges"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Of.prototype,"badgesChanged",null);
_.L([_.CF("useRoundedBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Of.prototype,"standaloneRoundedBadgeChanged",null);_.L([_.CF("topStandaloneBadge","bottomStandaloneBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Of.prototype,"standaloneBadgeChanged",null);_.L([_.CF("hiddenBadgeGroups"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Of.prototype,"hiddenBadgeGroupsChanged",null);
_.L([_.y({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Of);
var opZ=_.gX()(Of,"ytd-badge-supported-renderer",function(){if(Ou9===void 0){var B=document.createElement("template");_.I(B,'\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 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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);Ou9=B}B=Ou9;return B},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.sL("kevlar_poly_si_batch_j053")?1:2});var oN=function(){var B=_.z.apply(this,arguments)||this;B.iconType="STAR";B.standardizeIconSize=_.T("kevlar_system_icons");B.mediaHoverOverlayInitialVisibility=_.T("enable_top_landscape_image_button_command_web");B.noBottomMargin=!1;B.thumbnailObjectFit="CONTAIN";B.thumbnailFitHeight=!0;B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.w(oN,_.z);_.a=oN.prototype;
_.a.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"}}}};
_.a.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",oN.JSC$12609_DEFAULT_CLICK_LOCATION_BEHAVIOR,oN.JSC$12609_CLICK_LOCATION_ID_MAP))};
_.a.onTap=function(B){if(!_.T("use_on_click_for_desktop_display_ad"))this.onTapOrClick(B)};
_.a.onClick=function(B){if(_.T("use_on_click_for_desktop_display_ad"))this.onTapOrClick(B)};
_.a.onTapOrClick=function(B){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,B,!1)};
_.a.updateMediaBackgroundImage=function(){var B=this.get("data.image.thumbnail.thumbnails");B&&(B=_.Pw(B,0))&&_.k9(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+B+")"})};
_.a.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var B=0;B<this.data.impressionEndpoints.length;B++){var c=this.data.impressionEndpoints[B];c.clickTrackingParams&&delete c.clickTrackingParams;_.cp().resolve(_.xu).resolveCommand(c,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var x;((x=this.data)==null?0:x.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.a.handleMuteAd=function(){};
_.a.attached=function(){var B=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.AJ.Object.defineProperties(oN.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.titleText)return"";var c;return _.Up("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((c=this.data)==null?void 0:c.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.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 B;return!((B=this.data)==null||!B.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"}}});
oN.prototype.onClick=oN.prototype.onClick;oN.prototype.onTap=oN.prototype.onTap;oN.prototype.dataChanged=oN.prototype.dataChanged;
oN.JSC$12609_CLICK_LOCATION_ID_MAP=_.T("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"]]);
oN.JSC$12609_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.T("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"}];_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Qz),_.H("design:type",Object)],oN.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],oN.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],oN.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],oN.prototype,"ytdActiveViewBehavior",void 0);_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],oN.prototype,"actionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],oN.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],oN.prototype,"clickCommand",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],oN.prototype,"miniMode",void 0);_.L([_.F(),_.H("design:type",String)],oN.prototype,"iconType",void 0);_.L([_.Q("data.titleText"),_.H("design:type",String),_.H("design:paramtypes",[])],oN.prototype,"titleAriaLabel",null);
_.L([_.Q("data.rating"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"getRating",null);_.L([_.Q("data.price"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"getPrice",null);_.L([_.Q("data.thirdLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"getThirdLine",null);_.L([_.Q("data.fourthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"getFourthLine",null);
_.L([_.Q("data.fifthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"getFifthLine",null);_.L([_.Q("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computeRatingHidden",null);_.L([_.Q("getPrice"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computePriceHidden",null);_.L([_.Q("getThirdLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computeThirdLineHidden",null);
_.L([_.Q("getFourthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computeFourthLineHidden",null);_.L([_.Q("getFifthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computeFifthLineHidden",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.energyIcon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"hasEnergyIcon",null);
_.L([_.Q("computePriceHidden","computeRatingHidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"computeSecondaryTextHidden",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],oN.prototype,"standardizeIconSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],oN.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],oN.prototype,"noBottomMargin",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.layout"),_.H("design:type",String),_.H("design:paramtypes",[])],oN.prototype,"layout",null);_.L([_.Q("data.layout"),_.H("design:type",Object),_.H("design:paramtypes",[])],oN.prototype,"mediaThumbnailWidth",null);_.L([_.Q("layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oN.prototype,"useRoundedBadge",null);_.L([_.F(),_.H("design:type",String)],oN.prototype,"thumbnailObjectFit",void 0);
_.L([_.F(),_.H("design:type",Object)],oN.prototype,"thumbnailFitHeight",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oN.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oN.prototype,"onTap",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oN.prototype,"onClick",null);
_.L([_.y({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],oN);
_.G(oN,"ytd-display-ad-renderer",function(){if(EpI!==void 0)return EpI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EpI=B},{mode:1});var Qb3;var FNt;var vpW;var SOI=new Map;var ztt=!1;var Qi=function(){var B=_.z.apply(this,arguments)||this;B.DEFAULT_TOOLTIP_OFFSET="10";B.TOOLTIP_OFFSET_NO_BANNER="-8";B.badges=null;B.noEndpoints=!1;B.wrapText=!1;B.forceVerified=!1;B.tooltipPosition="top";B.compactStyle=!1;B.height=0;B.lineHeight=0;return B};
_.w(Qi,_.z);_.a=Qi.prototype;_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.a.attached=function(){var B=this;this.observer=new MutationObserver(function(c,x){B.handleResized();x.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.a.detached=function(){this.observer&&this.observer.disconnect()};
_.a.logTooltipEvent=function(){_.T("kevlar_wiz_tooltip_event_killswitch")||ztt||(_.y5x("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),ztt=!0)};
_.a.handleWindowResized=function(){this.handleResized()};
_.a.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")))};
_.a.onHeightChanged=function(){if(this.verified){var B=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.v5("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=B:this.textContainerEl.style.marginRight=B}};
_.a.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.v5("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.a.handleResized=function(){var B=this;this.verified&&_.EE.addLowPriorityJob(function(){B.fitBackgroundToText();var c=getComputedStyle(B.hostElement).lineHeight;c&&(c=c.match(/\d+/))&&c.length&&(B.lineHeight=Number(c[0]));B.height=B.lineHeight&&!B.wrapText?B.lineHeight:B.textEl.offsetHeight})};
_.a.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var B=document.createRange(),c=_.Y9(this.textEl).children;c.length>0?B.selectNodeContents(c[0]):B.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(B.getBoundingClientRect().width)+"px"}};
_.a.computeChannelBadgeStyle=function(B){var c;if((B==null?0:(c=B.runs)==null?0:c.length)&&B.runs[0].textColor)return"--ytd-badge-icon-color:"+_.zF(B.runs[0].textColor)+";"};
_.AJ.Object.defineProperties(Qi.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"?_.fk(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var B=this.get("badges.0.metadataBadgeRenderer.tooltip");if(B)return B}return _.iG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Qi.prototype.onLineHeightChanged=Qi.prototype.onLineHeightChanged;Qi.prototype.onHeightChanged=Qi.prototype.onHeightChanged;Qi.prototype.onChannelNameChanged=Qi.prototype.onChannelNameChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Qi.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"badges",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"channelName",void 0);
_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"noEndpoints",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"wrapText",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"forceVerified",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"tooltipPosition",void 0);_.L([_.F(),_.H("design:type",String)],Qi.prototype,"tooltip",void 0);_.L([_.F(),_.H("design:type",Boolean)],Qi.prototype,"hasChannelArt",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Qi.prototype,"compactStyle",void 0);_.L([_.jr("#text-container"),_.H("design:type",HTMLElement)],Qi.prototype,"textContainerEl",void 0);_.L([_.jr("#text"),_.H("design:type",Object)],Qi.prototype,"textEl",void 0);_.L([_.jr("#verified-tooltip"),_.H("design:type",HTMLElement)],Qi.prototype,"verifiedTooltip",void 0);_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"height",void 0);
_.L([_.F(),_.H("design:type",Object)],Qi.prototype,"lineHeight",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("badges","forceVerified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qi.prototype,"verified",null);_.L([_.Q("badges","verified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qi.prototype,"hideBadges",null);_.L([_.Q("channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qi.prototype,"formattedName",null);
_.L([_.Q("badges","verified","formattedName"),_.H("design:type",String),_.H("design:paramtypes",[])],Qi.prototype,"tooltipText",null);_.L([_.Q("hasChannelArt"),_.H("design:type",String),_.H("design:paramtypes",[])],Qi.prototype,"tooltipOffset",null);_.L([_.bF("channelName"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qi.prototype,"onChannelNameChanged",null);
_.L([_.bF("height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qi.prototype,"onHeightChanged",null);_.L([_.bF("lineHeight","height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qi.prototype,"onLineHeightChanged",null);_.L([_.y({is:"ytd-channel-name",disableElementRegistration:!0})],Qi);
_.G(Qi,"ytd-channel-name",function(){if(vpW!==void 0)return vpW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vpW=B},{mode:_.sL("kevlar_poly_si_batch_j036")?1:2});var FN=function(){var B=_.z.apply(this,arguments)||this;B.standardizeIconSize=_.T("kevlar_system_icons");B.enableModernCommentBadges=_.T("enable_modern_comment_badges");return B};
_.w(FN,_.z);FN.prototype.basicPaletteChanged=function(){var B;(B=this.data.color)!=null&&B.basicColorPaletteData&&_.E9(this.hostElement,this.data.color.basicColorPaletteData)};
FN.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var B,c=this.get("basicColorPaletteData.backgroundColor",(B=this.data)==null?void 0:B.color),x;B=this.get("basicColorPaletteData.foregroundTitleColor",(x=this.data)==null?void 0:x.color);x={};c?(c=_.zF(c),x["--ytd-author-comment-badge-background-color"]=c):(x["--ytd-author-comment-badge-icon-background-color"]="transparent",x["--ytd-author-comment-badge-background-color"]="transparent");B?(c=_.zF(B),x["--ytd-author-comment-badge-name-color"]=
c,x["--ytd-author-comment-badge-icon-color"]=c):x["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(x).length>0&&_.k9(this.hostElement,x)}};
FN.prototype.useFilledIcons=function(B){return _.T("kevlar_system_icons")&&(B==="CHECK_CIRCLE_THICK"||B==="OFFICIAL_ARTIST_BADGE")};
_.AJ.Object.defineProperties(FN.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
FN.prototype.colorChanged=FN.prototype.colorChanged;FN.prototype.basicPaletteChanged=FN.prototype.basicPaletteChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],FN.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],FN.prototype,"standardizeIconSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FN.prototype,"enableModernCommentBadges",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.authorUnifiedVerified"),_.H("design:type",Object),_.H("design:paramtypes",[])],FN.prototype,"verified",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],FN.prototype,"creator",null);_.L([_.bF("data.color.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FN.prototype,"basicPaletteChanged",null);
_.L([_.bF("data.color"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FN.prototype,"colorChanged",null);_.L([_.y({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],FN);
_.G(FN,"ytd-author-comment-badge-renderer",function(){if(FNt!==void 0)return FNt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return FNt=B},{mode:1});var S6Z;var S6=function(){return _.z.apply(this,arguments)||this};
_.w(S6,_.z);S6.prototype.computeThumbnailWidth=function(B){if(B==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],S6.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],S6.prototype,"icon",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],S6.prototype,"surface",void 0);
_.L([_.F({reflectToAttribute:!0,value:_.T("enable_shrink_image_size_on_web_posts_singleton")}),_.H("design:type",Boolean)],S6.prototype,"searchSxsUx",void 0);_.L([_.y({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],S6);
_.G(S6,"ytd-backstage-image-renderer",function(){if(S6Z!==void 0)return S6Z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return S6Z=B},{mode:1});var yTF;var yi=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;B.selectedItemIndex=-1;return B};
_.w(yi,_.z);_.a=yi.prototype;_.a.computeIsChannelOwner=function(B){if(!B)return!0;B=B[0];return!(B&&(B.signinEndpoint||B.selectServiceEndpoint))};
_.a.computeIsImagePoll=function(B){return(B==null?void 0:B.type)==="POLL_TYPE_IMAGE"};
_.a.computeIsTotalVotesDisabled=function(B){return!(B==null?0:B.totalVotes)};
_.a.thumbnailSrc=function(B){var c,x,P,Y;return(B==null?0:(c=B.thumbnails)==null?0:(x=c[0])==null?0:x.url)?_.Tz((P=B.thumbnails)==null?void 0:(Y=P[0])==null?void 0:Y.url):void 0};
_.a.progressWidth=function(B){return"width:"+(B?B*100:0)+"%;"};
_.a.textAreaWidth=function(B){return this.isImagePoll?null:"width:"+(B?B*100:0)+"%;"};
_.a.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.a.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var B=this.data.choices,c=0;c<B.length;c++)if(B[c].selected){this.selectedItemIndex=c;break}};
_.a.onPopupClosed=function(B,c){B=Number(this.pollVotes.selected);c.confirmed&&(this.selectChoice(B,!1),_.gj(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.a.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.a.onYtCommentPollRevert=function(B,c){c&&(this.selectChoice(c.selectedChoiceIndex,!0),this.set("data.totalVotes",c.totalVotes))};
_.a.onYtServiceRequestSent=function(B,c){if(c.actions)for(B=0;B<c.actions.length;B++){var x=c.actions[B];_.t(x,IA)&&this.set("data.totalVotes",_.t(x,IA).totalVotes)}};
_.a.onYtServiceRequestCompleted=function(B){var c=this.get("detail.data.actionResults.0.feedback",B);B=this.get("detail.data.actionResults.0.status",B);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,B==="STATUS_FAILED"?_.aJ(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.a.getEndpoint=function(B,c){return c===B?this.data.choices[c].deselectServiceEndpoint||null:this.data.choices[B].selectServiceEndpoint||null};
_.a.selectChoice=function(B,c){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var x=0;x<this.data.choices.length;x++){var P;if(B===this.selectedItemIndex){var Y=!1;var g=P=null}else P=(Y=x===B)?this.data.choices[x].voteRatioIfSelected:this.data.choices[x].voteRatioIfNotSelected,g=Y?this.data.choices[x].votePercentageIfSelected:this.data.choices[x].votePercentageIfNotSelected;this.set("data.choices."+x+".voteRatio",P);
this.set("data.choices."+x+".votePercentage",g);this.set("data.choices."+x+".selected",Y)}c||(this.isLoading=!0,(c=this.getEndpoint(B,this.selectedItemIndex))&&_.cp().resolve(_.xu).resolveCommand(c,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===B?-1:B};
_.AJ.Object.defineProperties(yi.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
yi.prototype.onYtServiceRequestCompleted=yi.prototype.onYtServiceRequestCompleted;yi.prototype.onYtServiceRequestSent=yi.prototype.onYtServiceRequestSent;yi.prototype.onYtCommentPollRevert=yi.prototype.onYtCommentPollRevert;yi.prototype.onPopupClosed=yi.prototype.onPopupClosed;yi.prototype.dataChanged=yi.prototype.dataChanged;_.L([_.J(_.Dy),_.H("design:type",Object)],yi.prototype,"paperItemBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],yi.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yi.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],yi.prototype,"isLoading",void 0);_.L([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],yi.prototype,"isChannelOwner",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.H("design:type",Boolean)],yi.prototype,"isImagePoll",void 0);_.L([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],yi.prototype,"isTotalVotesDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],yi.prototype,"previousPollInfo",void 0);_.L([_.F(),_.H("design:type",Object)],yi.prototype,"selectedItemIndex",void 0);_.L([_.jr("#poll-votes"),_.H("design:type",Object)],yi.prototype,"pollVotes",void 0);
_.L([_.Q("isChannelOwner"),_.H("design:type",Object),_.H("design:paramtypes",[])],yi.prototype,"endpointStyle",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yi.prototype,"dataChanged",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],yi.prototype,"onPopupClosed",null);
_.L([_.nF("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],yi.prototype,"onYtCommentPollRevert",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],yi.prototype,"onYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yi.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],yi);
_.G(yi,"ytd-backstage-poll-renderer",function(){if(yTF!==void 0)return yTF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yTF=B},{mode:2});var GNd;var Mvm={autoplay:!1,loop:!1},LN0={simpleText:""},GA=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;B.usesPanelLockup=!1;B.selectedItemIndex=-1;B.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Mvm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});B.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Mvm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});B.correctnessAnimationProps=[];B.correctnessAnimationRefs=[];return B};
_.w(GA,_.z);_.a=GA.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.a.computeIsChannelOwner=function(B){if(!B)return!0;B=B[0];return!(B&&(B.signinEndpoint||B.selectServiceEndpoint))};
_.a.computeIsTotalVotesDisabled=function(B){return!(B==null?0:B.totalVotes)};
_.a.computeIsImageQuiz=function(B){return(B==null?void 0:B.type)==="POLL_TYPE_IMAGE"};
_.a.onExplanationChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var B=this.data.choices;if(B){this.maybeInitializeQuizLotties(B);for(var c=0;c<B.length;c++)if(B[c].isSelected||this.isChannelOwner&&B[c].isCorrect){this.selectedItemIndex=c;return}this.selectedItemIndex=-1}}};
_.a.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var B=this.selectedItemIndex,c=Number(this.quizVotes.selected);this.selectChoice(c);this.sendVoteAction(c,B);this.quizVotes.selected=-1;var x;B=!((x=this.data)==null?0:x.enableAnimation);this.maybePlayAnswerAnimations(B)}};
_.a.onYtCommentPollRevert=function(B,c){c&&(this.selectChoice(c.selectedChoiceIndex),this.set("data.totalVotes",c.totalVotes))};
_.a.onYtServiceRequestSent=function(B,c){if(c.actions)for(B=_.p(c.actions),c=B.next();!c.done;c=B.next())(c=_.t(c.value,IA))&&this.set("data.totalVotes",c.totalVotes)};
_.a.onYtServiceRequestCompleted=function(B){var c=this.get("detail.data.actionResults.0.feedback",B);B=this.get("detail.data.actionResults.0.status",B);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,B==="STATUS_FAILED"?_.aJ(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.a.getAnimationPropsForChoiceIndex=function(B,c){return c[B]};
_.a.maybePlayAnswerAnimations=function(B){B=B===void 0?!1:B;var c;if((c=this.data)!=null&&c.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){c=_.p(this.correctnessAnimationRefs);for(var x=c.next();!x.done;x=c.next()){var P=void 0,Y=void 0;(P=x.value)==null||(Y=P.lottieEl)==null||Y.stop()}if(!(this.selectedItemIndex<0)){c=0;B&&(c=this.isCorrect?37:25);var g,k;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(k=g.lottieEl)==null||k.goToAndPlay(B?c:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(q){return q.isCorrect}),g<0))){var n,b;
(b=(n=this.correctnessAnimationRefs[g])==null?void 0:n.lottieEl)==null||b.goToAndPlay(37,!0);var d;n=(d=this.fadeContainers)==null?void 0:d.item(g);!B&&n&&this.fadeIn(n)}}}};
_.a.thumbnailSrc=function(B){var c,x,P,Y;return(B==null?0:(c=B.thumbnails)==null?0:(x=c[0])==null?0:x.url)?_.Tz((P=B.thumbnails)==null?void 0:(Y=P[0])==null?void 0:Y.url):void 0};
_.a.a11yVotedText=function(B,c){var x,P,Y=((x=this.data)==null?void 0:(P=x.correctVotedText)==null?void 0:P.simpleText)||"",g,k;x=((g=this.data)==null?void 0:(k=g.votedText)==null?void 0:k.simpleText)||"";if(!c)return"";var n,b;if((n=this.data)==null?0:(b=n.choices)==null?0:b[B].isCorrect)return Y;var d,q;return((d=this.data)==null?0:(q=d.choices)==null?0:q[B].isSelected)?x:""};
_.a.getEndpoint=function(B,c){return c===B?this.data.choices[B].deselectServiceEndpoint||null:this.data.choices[B].selectServiceEndpoint||null};
_.a.sendVoteAction=function(B,c){if(B=this.getEndpoint(B,c))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(B)};
_.a.selectChoice=function(B){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++)this.set("data.choices."+c+".isSelected",B===this.selectedItemIndex?!1:c===B);this.selectedItemIndex=this.selectedItemIndex===B?-1:B};
_.a.maybeInitializeQuizLotties=function(B){var c=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=B.map(function(x){return{animationConfig:x.isCorrect?c.baseCorrectLottiePlayerAnimationConfig:c.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){c.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(x){return x.animationRef||{}})};
_.a.fadeIn=function(B){B.classList.add("fade-in");_.s9(_.EE,function(){B.classList.remove("fade-in")},900)};
_.AJ.Object.defineProperties(GA.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.iG(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 B,c;return((B=this.data)==null?void 0:(c=B.choices)==null?void 0:c.some(function(x){return x.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null||!B.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?LN0:this.data.choices[this.selectedItemIndex].explanation||LN0}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null||!B.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
GA.prototype.onYtServiceRequestCompleted=GA.prototype.onYtServiceRequestCompleted;GA.prototype.onYtServiceRequestSent=GA.prototype.onYtServiceRequestSent;GA.prototype.onYtCommentPollRevert=GA.prototype.onYtCommentPollRevert;GA.prototype.dataChanged=GA.prototype.dataChanged;GA.prototype.onExplanationChanged=GA.prototype.onExplanationChanged;_.L([_.J(_.Dy),_.H("design:type",Object)],GA.prototype,"paperItemBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],GA.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.xJ.YtTaskEmitterBehavior),_.H("design:type",Object)],GA.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],GA.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GA.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],GA.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Object)],GA.prototype,"usesPanelLockup",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],GA.prototype,"isChannelOwner",void 0);_.L([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],GA.prototype,"isTotalVotesDisabled",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.H("design:type",Boolean)],GA.prototype,"isImageQuiz",void 0);_.L([_.F(),_.H("design:type",Object)],GA.prototype,"previousQuizInfo",void 0);_.L([_.F(),_.H("design:type",Object)],GA.prototype,"selectedItemIndex",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data","usesPanelLockup"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"shouldUseModernUi",null);
_.L([_.Um(".fade-container"),_.H("design:type",Object)],GA.prototype,"fadeContainers",void 0);_.L([_.F(),_.H("design:type",Array)],GA.prototype,"correctnessAnimationProps",void 0);_.L([_.Q("explanation","showCorrectAnswer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"showExplanation",null);_.L([_.Q("isChannelOwner","isAttempted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"showCorrectAnswer",null);
_.L([_.Q("isChannelOwner","isAttempted","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"isQuizAnsweringDisabled",null);_.L([_.Q("isQuizAnsweringDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],GA.prototype,"endpointStyle",null);_.L([_.Q("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"isAttempted",null);
_.L([_.Q("data","selectedItemIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],GA.prototype,"explanation",null);_.L([_.Q("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GA.prototype,"isCorrect",null);_.L([_.jr("ytd-expander"),_.H("design:type",Object)],GA.prototype,"expander",void 0);_.L([_.jr("#quiz-votes"),_.H("design:type",Object)],GA.prototype,"quizVotes",void 0);
_.L([_.bF("explanation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GA.prototype,"onExplanationChanged",null);_.L([_.bF("data","isChannelOwner"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GA.prototype,"dataChanged",null);_.L([_.nF("yt-comment-quiz-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],GA.prototype,"onYtCommentPollRevert",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],GA.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],GA.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],GA);
_.G(GA,"ytd-backstage-quiz-renderer",function(){if(GNd!==void 0)return GNd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return GNd=B},{mode:1});var Zu4;var MT=function(){return _.z.apply(this,arguments)||this};
_.w(MT,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],MT.prototype,"data",void 0);_.L([_.y({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],MT);
_.G(MT,"ytd-post-uploaded-video-renderer",function(){if(Zu4!==void 0)return Zu4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Zu4=B},{mode:1});var Hu5;var LG=function(){return _.z.apply(this,arguments)||this};
_.w(LG,_.z);LG.prototype.useFilledIcons=function(B){return B==="SPONSORSHIP_STAR"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LG.prototype,"data",void 0);_.L([_.y({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],LG);
_.G(LG,"ytd-sponsors-only-badge-renderer",function(){if(Hu5!==void 0)return Hu5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Hu5=B},{mode:1});var fd5;var Zr=function(){return _.z.apply(this,arguments)||this};
_.w(Zr,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Zr.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Zr.prototype,"data",void 0);_.L([_.y({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Zr);
_.G(Zr,"ytd-child-video-renderer",function(){if(fd5!==void 0)return fd5;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fd5=B},{mode:1});var iu5;var ATy;var HC=function(){var B=_.z.apply(this,arguments)||this;B.size=0;B.enableWebModernCollectionsV2=_.T("web_modern_collections_v2");B.fallbackImageSize={height:void 0,width:9999};B.webModernCollections=!1;return B};
_.w(HC,_.z);_.a=HC.prototype;_.a.computeBlurredImageSize=function(B){return B?{height:B*2,width:B*2}:this.fallbackImageSize};
_.a.computeImageSize=function(B){return B?{height:B,width:B}:this.fallbackImageSize};
_.a.computeObjectFit=function(B){return B?"FILL":"CONTAIN"};
_.a.computePreserve=function(B){return B?!0:!1};
_.a.setBackground=function(){var B,c;_.T("web_modern_collections_v2")&&((B=this.data)==null?0:(c=B.thumbnail)==null?0:c.sampledThumbnailColor)&&(B=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+B.red+","+B.green+","+B.blue+",1)")};
HC.prototype.setBackground=HC.prototype.setBackground;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],HC.prototype,"watchFeedThumbnail",void 0);_.L([_.F(),_.H("design:type",Object)],HC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],HC.prototype,"size",void 0);
_.L([_.F({computed:"computeBlurredImageSize(size)"}),_.H("design:type",Object)],HC.prototype,"blurredImageSize",void 0);_.L([_.F({computed:"computeImageSize(size)"}),_.H("design:type",Object)],HC.prototype,"imageSize",void 0);_.L([_.F({computed:"computePreserve(size)"}),_.H("design:type",String)],HC.prototype,"preserve",void 0);_.L([_.F({computed:"computeObjectFit(size)"}),_.H("design:type",String)],HC.prototype,"objectFit",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],HC.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HC.prototype,"webModernCollections",void 0);_.L([_.bF("data.thumbnail.sampledThumbnailColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HC.prototype,"setBackground",null);_.L([_.y({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],HC);
_.G(HC,"ytd-playlist-custom-thumbnail-renderer",function(){if(ATy!==void 0)return ATy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ATy=B},{mode:1});var uvI;var fG=function(){return _.z.apply(this,arguments)||this};
_.w(fG,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fG.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],fG.prototype,"width",void 0);_.L([_.y({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],fG);
_.G(fG,"ytd-playlist-video-thumbnail-renderer",function(){if(uvI!==void 0)return uvI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uvI=B},{mode:1});var DCd;var iS=function(){return _.z.apply(this,arguments)||this};
_.w(iS,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],iS.prototype,"width",void 0);_.L([_.y({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],iS);
_.G(iS,"ytd-show-custom-thumbnail-renderer",function(){if(DCd!==void 0)return DCd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return DCd=B},{mode:1});var rTW;var A7=function(){return _.z.apply(this,arguments)||this};
_.w(A7,_.z);A7.prototype.useFilledIcons=function(B){return B==="MUSIC"||B==="COURSE"};
A7.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=yy(this.overlayColor,"0.8");else if(this.overlayColor){var B=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+B.red+","+B.green+","+B.blue+",0.8)"}};
_.AJ.Object.defineProperties(A7.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)}}});
A7.prototype.overlayColorChanged=A7.prototype.overlayColorChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],A7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],A7.prototype,"overlayColor",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],A7.prototype,"overlayStyle",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],A7.prototype,"overlayTextStyle",null);_.L([_.bF("overlayColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A7.prototype,"overlayColorChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],A7);
_.G(A7,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(rTW!==void 0)return rTW;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rTW=B},{mode:1});var Rtd;var uS=function(){var B=_.z.apply(this,arguments)||this;B.active=!1;return B};
_.w(uS,_.z);uS.prototype.computeIsSpinnerHidden=function(B){return(B==null?void 0:B.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
uS.prototype.computeOverlayIcon=function(B){return(B==null?void 0:B.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(B==null?void 0:B.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],uS.prototype,"active",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],uS);
_.G(uS,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Rtd!==void 0)return Rtd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Rtd=B},{mode:1});var etF;var Dr=function(){return _.z.apply(this,arguments)||this};
_.w(Dr,_.z);_.AJ.Object.defineProperties(Dr.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Dr.prototype,"data",void 0);_.L([_.Q("data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dr.prototype,"text",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Dr);
_.G(Dr,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(etF!==void 0)return etF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return etF=B},{mode:1});var B3t,c5y=function(){if(B3t!==void 0)return B3t;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return B3t=B};var rA=function(){return _.z.apply(this,arguments)||this};
_.w(rA,_.z);_.AJ.Object.defineProperties(rA,{template:{configurable:!0,enumerable:!0,get:function(){return c5y()}}});
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],rA.prototype,"animateEqualizer",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],rA);_.gX()(rA,"ytd-thumbnail-overlay-equalizer",function(){return c5y()},{allowedProps:["animateEqualizer"],
mode:1});var xdd;var RN=function(){var B=_.z.apply(this,arguments)||this;B.nowPlayingBadge=_.T("web_now_playing_badge");B.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return B};
_.w(RN,_.z);RN.prototype.activeChanged=function(){var B=this;_.T("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.fl(this,function(){_.aJ(B.hostElement,"yt-playlist-lockup-now-playing-active",B)})};
RN.prototype.onMiniplayerPlayStateChanged=function(B){var c,x=(c=_.t(_.dd().currentEndpoint,_.fN))==null?void 0:c.videoId;this.isVideoPlaying=B&&(_.T("web_limit_now_playing_animation_killswitch")||this.videoId===x)};
RN.prototype.activeChanged=RN.prototype.activeChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],RN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RN.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],RN.prototype,"isVideoPlaying",void 0);_.L([_.F(),_.H("design:type",String)],RN.prototype,"videoId",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],RN.prototype,"equalizerOnly",void 0);_.L([_.F(),_.H("design:type",Boolean)],RN.prototype,"isActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],RN.prototype,"nowPlayingBadge",void 0);_.L([_.bF("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RN.prototype,"activeChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],RN);
_.G(RN,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(xdd!==void 0)return xdd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return xdd=B},{mode:1});var PTt;var e6=function(){return _.z.apply(this,arguments)||this};
_.w(e6,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],e6.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],e6);
_.G(e6,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(PTt!==void 0)return PTt;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return PTt=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var YOt;var BT=function(){return _.z.apply(this,arguments)||this};
_.w(BT,_.z);BT.prototype.onDurationChanged=function(){var B,c;_.Y9(this.hostElement).querySelector("#progress").style.width=((c=(B=this.data)==null?void 0:B.percentDurationWatched)!=null?c:0)+"%"};
BT.prototype.onDurationChanged=BT.prototype.onDurationChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],BT.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],BT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],BT.prototype,"isLive",void 0);_.L([_.bF("data.percentDurationWatched"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BT.prototype,"onDurationChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],BT);
_.G(BT,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(YOt!==void 0)return YOt;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return YOt=B},{mode:1});var aVI;var cT=function(){var B=_.z.apply(this,arguments)||this;B.bottomPanel=!1;B.richGridOverlay=!1;B.watchFeedOverlay=!1;B.isCompact=!1;return B};
_.w(cT,_.z);cT.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.AJ.Object.defineProperties(cT.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.icon)==null?void 0:c.iconType)==="PLAY_ALL"&&_.T("kevlar_system_icons")}}});
cT.prototype.widthChanged=cT.prototype.widthChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cT.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],cT.prototype,"width",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cT.prototype,"bottomPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cT.prototype,"richGridOverlay",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cT.prototype,"watchFeedOverlay",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cT.prototype,"isCompact",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cT.prototype,"isIconFilled",null);_.L([_.bF("width","watchFeedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cT.prototype,"widthChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],cT);
_.G(cT,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(aVI!==void 0)return aVI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return aVI=B},{mode:1});var g1S;var srF=["CLIP","SHORTS"],xR=function(){var B=_.z.apply(this,arguments)||this;B.animated=_.T("animated_live_badge_icon");B.hasIcon=!1;B.updateTimerIntervalId=0;B.timeSinceLive=0;return B};
_.w(xR,_.z);_.a=xR.prototype;_.a.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.a.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.a.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.a.hasIconOrText=function(){var B,c;return!!(((B=this.data)==null?0:B.icon)||((c=this.data)==null?0:c.text))};
_.a.initializeLiveBadgeTimer=function(){var B=this,c,x=(c=this.liveBadgeData)==null?void 0:c.startTimestampSec;if(x&&this.canShowLiveBadgeTimer()){var P;c=Number((P=this.liveBadgeData)==null?void 0:P.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(x);this.updateTimerIntervalId=_.ku(function(){B.canShowLiveBadgeTimer()?B.timeSinceLive++:(B.timeSinceLive=0,window.clearInterval(B.updateTimerIntervalId))},c)}else this.timeSinceLive=0};
_.a.canShowLiveBadgeTimer=function(){var B=Date.now(),c,x;return B<(Number((c=this.liveBadgeData)==null?void 0:c.endTimestampSec)-1)*1E3&&B>Number((x=this.liveBadgeData)==null?void 0:x.startTimestampSec)*1E3};
_.AJ.Object.defineProperties(xR.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data;var c=this.timeSinceLive;var x,P,Y,g;a:{var k=B.style;if(k===void 0)k=16;else switch(k){case "LIVE":k=17;break a;default:k=16}}c={type:k,text:c?WQA({seconds:c}):_.iG(B.text),accessibilityText:(x=B.text)==null?void 0:(P=x.accessibility)==null?void 0:(Y=P.accessibilityData)==null?void 0:Y.label,icon:(g=B.icon)==null?void 0:g.iconType}}else c={};return c}},
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 B;return(B=this.data)==null?void 0:B.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 srF.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
xR.prototype.initializeLiveBadgeTimer=xR.prototype.initializeLiveBadgeTimer;xR.prototype.dataChanged=xR.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],xR.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xR.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],xR.prototype,"icon",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],xR.prototype,"animated",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.H("design:type",Boolean)],xR.prototype,"hideTimeStatus",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],xR.prototype,"hasIcon",void 0);_.L([_.F(),_.H("design:type",Object)],xR.prototype,"timeSinceLive",void 0);_.L([_.Q("data","timeSinceLive"),_.H("design:type",Object),_.H("design:paramtypes",[])],xR.prototype,"badgeShapeData",null);
_.L([_.Q("data","overlayType"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xR.prototype,"hideBadgeShape",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xR.prototype,"dataChanged",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],xR.prototype,"overlayStyle",null);
_.L([_.Q("data.liveBadgeData"),_.H("design:type",Object),_.H("design:paramtypes",[])],xR.prototype,"liveBadgeData",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.type"),_.H("design:type",Object),_.H("design:paramtypes",[])],xR.prototype,"overlayType",null);_.L([_.Q("overlayType","overlayStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xR.prototype,"useFilledIcon",null);
_.L([_.CF("liveBadgeData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xR.prototype,"initializeLiveBadgeTimer",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],xR);
_.G(xR,"ytd-thumbnail-overlay-time-status-renderer",function(){if(g1S!==void 0)return g1S;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return g1S=B},{mode:_.sL("kevlar_poly_si_batch_j035")?1:2});var pSm;var PT=function(){return _.z.apply(this,arguments)||this};
_.w(PT,_.z);PT.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"}}}}};
PT.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(B){if(this.hasPlaybackProgressBar)return{percentDurationWatched:B.percentDurationWatched}};
PT.prototype.computeHasPlaybackProgressBar=function(B){return!!B.percentDurationWatched&&B.percentDurationWatched>0};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.H("design:type",Boolean)],PT.prototype,"hasPlaybackProgressBar",void 0);
_.L([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],PT);
_.G(PT,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(pSm!==void 0)return pSm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pSm=B},{mode:1});var kT5;var XSd=_.rM(function(B){var c=B.data;var x=B.children;var P=function(){return!!c().doubleStack};
return _.U("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!c().experimentEnabled}},_.U(_.m,{cond:c,
then:function(){return _.U("div",null,_.U(_.m,{cond:P,then:function(){var Y={};return _.U("div",{class:_.Kw("collections-stack-wiz__collection-stack2",function(){return c().customClassName2ndStack},(Y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return c().enableResponsiveMode},Y)),
style:_.TU({"background-color":function(){return M8l(c())}})})}}),_.U("div",{class:_.Kw("collections-stack-wiz__collection-stack1",function(){return c().customClassName1stStack},function(){return GTq(c().thumbnailSize?c().thumbnailSize:"medium")}),
style:_.TU({"background-color":function(){return M8l(c())}})}),x)}}))},"P");_.xU(XSd,"yt-collections-stack",{props:{data:_.rk}});var YR=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};B.webModernCollections=!1;B.isSearch=!1;B.isDoubleStack=!1;B.thumbnailSize="medium";B.enableWebModernCollectionsV2=_.T("web_modern_collections_v2");return B};
_.w(YR,_.z);_.a=YR.prototype;
_.a.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]]"}}}}}};
_.a.getThumbnailDetails=function(B){if(B!=null&&B.thumbnailRenderer){var c=B.thumbnailRenderer,x;if((x=c.playlistVideoThumbnailRenderer)==null?0:x.thumbnail)return c.playlistVideoThumbnailRenderer.thumbnail;var P;if((P=c.playlistCustomThumbnailRenderer)==null?0:P.thumbnail)return c.playlistCustomThumbnailRenderer.thumbnail;B=B.thumbnailRenderer;var Y;if((Y=B.showCustomThumbnailRenderer)==null?0:Y.thumbnail)return B.showCustomThumbnailRenderer.thumbnail}};
_.a.computeOverlayColor=function(B){var c,x;if((c=this.getThumbnailDetails(B))==null?0:(x=c.darkColorPalette)==null?0:x.section2Color)return this.getThumbnailDetails(B).darkColorPalette.section2Color;var P;return(P=this.getThumbnailDetails(B))==null?void 0:P.sampledThumbnailColor};
_.a.computeWebModernCollections=function(B){if(B==null||!B.thumbnailOverlays)return!1;B=_.p(B.thumbnailOverlays);for(var c=B.next();!c.done;c=B.next()){var x=void 0;if((x=c.value)==null?0:x.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.a.computeNavigationEndpoint=function(B){return FE$(B==null?void 0:B.navigationEndpoint)};
_.AJ.Object.defineProperties(YR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:B==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:B==null?void 0:B.vibrantColorPalette,darkColorPalette:B==null?void 0:B.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(C_S),_.H("design:type",Object)],YR.prototype,"ytdThumbnailBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],YR.prototype,"componentBehavior",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],YR.prototype,"watchFeedThumbnail",void 0);_.L([_.F(),_.H("design:type",Number)],YR.prototype,"customThumbnailSize",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],YR.prototype,"hideAria",void 0);_.L([_.F(),_.H("design:type",Object)],YR.prototype,"data",void 0);_.L([_.F({computed:"computeOverlayColor(data)"}),_.H("design:type",Object)],YR.prototype,"overlayColor",void 0);
_.L([_.F({computed:"computeWebModernCollections(data)"}),_.H("design:type",Object)],YR.prototype,"webModernCollections",void 0);_.L([_.F({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],YR.prototype,"computedNavigationEndpoint",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],YR.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],YR.prototype,"isDoubleStack",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],YR.prototype,"thumbnailSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],YR.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.Q("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],YR.prototype,"collectionStack",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],YR);
_.G(YR,"ytd-playlist-thumbnail",function(){if(kT5!==void 0)return kT5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return kT5=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var $dF;var aS=function(){var B=_.z.apply(this,arguments)||this;B.noEndpoints=!1;B.amsterdamPostMvp=_.T("web_amsterdam_post_mvp_playlists");B.badges=[];B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.w(aS,_.z);_.a=aS.prototype;_.a.getMetadata=function(B){if(!B)return[];var c=[],x=B.shortViewCountText||B.viewCountText;x&&c.push(_.iG(x));B.publishedTimeText&&c.push(_.iG(B.publishedTimeText));B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&c.push(_.F5(_.iG(B.upcomingEventData.upcomingEventText),Number(B.upcomingEventData.startTime)));return c};
_.a.observeDataForBylineSeparator=function(){this.data&&_.gM(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.a.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.zF(this.metadataColor)};
_.a.getSimpleString=function(B){return _.iG(B)};
_.a.isBylineHidden=function(B){return this.noByline||!((B==null?0:B.longBylineText)||(B==null?0:B.shortBylineText))};
_.a.isMetadataHidden=function(B){var c;return((c=this.getMetadata(B))==null?void 0:c.length)===0};
_.a.isBylineMetadataSeparatorHidden=function(B){return this.isMetadataHidden(B)||!this.shouldShowVideoInfo};
_.a.isLongByline=function(B,c){return c&&!(B==null||!B.longBylineText)};
_.AJ.Object.defineProperties(aS.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var B;return this.amsterdamPostMvp&&!((B=this.data)==null||!B.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 _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
aS.prototype.metadataColorChanged=aS.prototype.metadataColorChanged;aS.prototype.observeDataForBylineSeparator=aS.prototype.observeDataForBylineSeparator;_.L([_.J(_.OU),_.H("design:type",Object)],aS.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],aS.prototype,"noEndpoints",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"isSlimShort",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"radioMeta",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],aS.prototype,"isGridViewEnabled",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"richMeta",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],aS.prototype,"amsterdamPostMvp",void 0);_.L([_.F(),_.H("design:type",Boolean)],aS.prototype,"noByline",void 0);
_.L([_.F({computed:"isLongByline(data, radioMeta)"}),_.H("design:type",Boolean)],aS.prototype,"longByline",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"truncateMetadataLine",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"miniMode",void 0);_.L([_.F(),_.H("design:type",Number)],aS.prototype,"metadataColor",void 0);_.L([_.F(),_.H("design:type",Array)],aS.prototype,"badges",void 0);
_.L([_.F({selector:_.QI,selectorArgs:["data.videoId"]}),_.H("design:type",String)],aS.prototype,"transferState",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"isDownloading",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],aS.prototype,"typographyBump",void 0);_.L([_.jr("#metadata-line"),_.H("design:type",HTMLElement)],aS.prototype,"metadataLine",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aS.prototype,"observeDataForBylineSeparator",null);_.L([_.bF("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aS.prototype,"metadataColorChanged",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],aS.prototype,"shouldShowVideoInfo",null);
_.L([_.Q("badges"),_.H("design:type",String),_.H("design:paramtypes",[])],aS.prototype,"inlineBadgeClass",null);_.L([_.Q("longByline"),_.H("design:type",String),_.H("design:paramtypes",[])],aS.prototype,"longBylineClass",null);_.L([_.Q("data","longByline"),_.H("design:type",Object),_.H("design:paramtypes",[])],aS.prototype,"bylineText",null);_.L([_.Q("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aS.prototype,"watchFeedBigThumbs",null);
_.L([_.y({is:"ytd-video-meta-block",disableElementRegistration:!0})],aS);
_.G(aS,"ytd-video-meta-block",function(){if($dF!==void 0)return $dF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $dF=B},{mode:_.sL("kevlar_poly_si_batch_j080")?1:2});_.o2("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var g5=function(){var B=_.z.apply(this,arguments)||this;B.displayItemCount=2;B.isBackstagePlaylist=!1;B.isPostCompactPlaylist=!1;B.shouldShowChannelThumbnail=!1;B.useModernCollectionsV2=_.T("web_modern_collections_v2");return B};
_.w(g5,_.z);_.a=g5.prototype;_.a.computeFirstVideos=function(B,c){return B===void 0||c===void 0?[]:B.slice(0,c)};
_.a.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var B=this.data.thumbnailRenderer;B.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",B.playlistVideoThumbnailRenderer.thumbnail);B.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",B.playlistCustomThumbnailRenderer.thumbnail)}};
_.a.computeThumbnailHeight=function(B,c,x,P,Y){return P?Y==="BIG"?280:Y==="MASSIVE"?337:234:x?240:c?72:B?118:138};
_.a.computeThumbnailWidth=function(B,c,x,P,Y){return P?Y==="MEDIUM"?450:Y==="BIG"?500:Y==="MASSIVE"?600:420:x?360:c?128:B?210:246};
_.a.computeUseBiggerThumbs=function(B){return B&&_.T("enable_desktop_search_bigger_thumbs")};
_.a.computeShouldShowChannelThumbnail=function(B,c){return B&&!(c==null||!c.channelThumbnail)};
_.AJ.Object.defineProperties(g5.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
g5.prototype.dataChanged=g5.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],g5.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],g5.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],g5.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],g5.prototype,"displayItemCount",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],g5.prototype,"isBackstagePlaylist",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],g5.prototype,"isPostCompactPlaylist",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],g5.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.H("design:type",Boolean)],g5.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],g5.prototype,"biggerThumbsStyle",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],g5.prototype,"isDownloads",void 0);_.L([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.H("design:type",Object)],g5.prototype,"shouldShowChannelThumbnail",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],g5.prototype,"useModernCollectionsV2",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],g5.prototype,"dataChanged",null);_.L([_.Q("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],g5.prototype,"stackThumbnailSize",null);_.L([_.y({is:"ytd-playlist-renderer",disableElementRegistration:!0})],g5);
_.G(g5,"ytd-playlist-renderer",function(){if(iu5===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);iu5=B}B=iu5;return B},{mode:1});var n1y;var bod;var sA=function(){var B=_.z.apply(this,arguments)||this;B.collections=!!_.T("web_modern_collections_v2");B.startX=0;return B};
_.w(sA,_.z);sA.prototype.onEndpointMouseDown=function(B){this.startX=B.clientX};
sA.prototype.onEndpointClick=function(B){this.startX!==B.clientX&&(B.preventDefault(),B.stopPropagation())};
sA.prototype.computeObjectFit=function(B){return B==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||B==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||B==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
sA.prototype.computeCardStyle=function(B){return B?B.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.AJ.Object.defineProperties(sA.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var B,c;return this.collections&&((B=this.data)==null?void 0:(c=B.searchRefinementCardRendererStyle)==null?void 0:c.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}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],sA.prototype,"data",void 0);_.L([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",Number)],sA.prototype,"objectFit",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",String)],sA.prototype,"cardStyle",void 0);
_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],sA.prototype,"roundContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],sA.prototype,"collections",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],sA.prototype,"isAlbumCard",null);_.L([_.Q("data","collections","isAlbumCard"),_.H("design:type",Object),_.H("design:paramtypes",[])],sA.prototype,"collectionStack",null);
_.L([_.y({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],sA);
_.G(sA,"ytd-search-refinement-card-renderer",function(){if(bod!==void 0)return bod;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bod=B},{mode:1});var KBI;var p8=function(){var B=_.z.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.w(p8,_.z);_.L([_.F(),_.H("design:type",Object)],p8.prototype,"data",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],p8.prototype,"componentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],p8.prototype,"isRichGrid",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],p8.prototype,"miniMode",void 0);
_.L([_.y({is:"ytd-game-details-renderer",disableElementRegistration:!0})],p8);
_.G(p8,"ytd-game-details-renderer",function(){if(KBI!==void 0)return KBI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KBI=B},{mode:1});var jrF;var Ud0;var kR=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return B};
_.w(kR,_.z);_.a=kR.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.currentStateData=function(B){var c=B||this.data;return c&&c.states&&c.currentStateId!=null?c.states.find(function(x){return x.stateId===c.currentStateId})||null:null};
_.a.currentStateRendererData=function(B){return(B=this.currentStateData(B))&&B.state&&B.state.buttonRenderer?B.state.buttonRenderer:null};
_.a.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())};
_.a.computeButtonIcon=function(B){B=this.currentStateRendererData(B);var c;return(B==null?0:(c=B.icon)==null?0:c.iconType)?B.icon.iconType.toLowerCase():null};
_.a.computeAccessibility=function(B){return(B=this.currentStateRendererData(B))&&B.accessibilityData?B.accessibilityData.accessibilityData||null:null};
_.a.computeButtonClass=function(B){var c=this.currentStateRendererData(B);if(!c)return"";B="";var x=c.style;x&&(B+=x.toLowerCase().replace(/_/g,"-")+" ");(c=c.size)&&(B+=c.toLowerCase().replace(/_/g,"-")+" ");return B.trim()};
_.a.computeServiceEndpoint=function(B){if(!B)return null;var c=B&&B.serviceEndpoint,x=this.get("command.commandMetadata.webCommandMetadata.sendPost",B);return c?c:x&&B.command?B.command:null};
_.a.computeBellMenuItemParams=function(B){var c;B=(c=_.t(B==null?void 0:B.command,_.nW))==null?void 0:c.commands;if(!B||B.length===0)return null;c=_.t(B[0],_.J3);var x,P;return(c==null?0:(x=c.popup)==null?0:(P=x.menuPopupRenderer)==null?0:P.items)?c.popup.menuPopupRenderer.items.map(function(Y){return Y.menuServiceItemRenderer.trackingParams}):null};
_.a.handleBellMenuOpenSelectedAction=function(B){var c=B.trackingParams,x=this.computeBellMenuItemParams(this.data);this.data&&c&&x&&x.includes(c)&&this.ytRenderButtonBehavior._setButtonIcon(B.icon.iconType.toLowerCase())};
_.a.onYtServiceRequestCompleted=function(B,c){(B=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))&&this.set("data",B)};
_.a.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.a.resetState=function(){this.set("data.currentStateId",3)};
_.a.onYtButtonTapHandler=function(){if(this.data){var B=this.currentStateRendererData(this.data);B&&this.ytRendererBehavior.logExplicitClick(B)}};
kR.prototype.onYtServiceRequestError=kR.prototype.onYtServiceRequestError;kR.prototype.onYtServiceRequestCompleted=kR.prototype.onYtServiceRequestCompleted;kR.prototype.stateChanged=kR.prototype.stateChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(TO.YtRenderButtonBehavior),_.H("design:type",Object)],kR.prototype,"ytRenderButtonBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],kR.prototype,"data",void 0);_.L([_.CF("data","data.currentStateId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kR.prototype,"stateChanged",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],kR.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],kR.prototype,"onYtServiceRequestError",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],kR);
_.G(kR,"ytd-subscription-notification-toggle-button-renderer",function(){if(Ud0!==void 0)return Ud0;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ud0=B},{mode:1});var ddm;var X0=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};B.tapHandler=function(){if(B.data){var c=B.currentStateRendererData();c&&B.ytRendererBehavior.logExplicitClick(c)}};
return B};
_.w(X0,_.z);_.a=X0.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.currentStateData=function(){var B=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(c){return c.stateId===B.data.currentStateId})||null:null};
_.a.currentStateRendererData=function(){var B=this.currentStateData();return B&&B.state&&B.state.buttonRenderer?B.state.buttonRenderer:null};
_.a.computeAccessibilityLabel=function(){var B,c,x;return(B=this.currentStateRendererData())==null?void 0:(c=B.accessibilityData)==null?void 0:(x=c.accessibilityData)==null?void 0:x.label};
_.a.computeBellMenuItemParams=function(){var B,c,x=(c=_.t((B=this.data)==null?void 0:B.command,_.nW))==null?void 0:c.commands;if(!x||x.length===0)return null;B=_.t(x[0],_.J3);var P,Y;return(B==null?0:(P=B.popup)==null?0:(Y=P.menuPopupRenderer)==null?0:Y.items)?B.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.a.handleBellMenuOpenSelectedAction=function(B){var c=B.trackingParams,x=this.computeBellMenuItemParams();if(this.data&&c&&x&&x.includes(c)&&(B==null||!B.isDisabled)){var P;((P=_.t(B.serviceEndpoint,_.KW))==null?void 0:P.signal)!=="CLIENT_SIGNAL"&&(this.icon=B.icon.iconType)}};
_.a.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.a.onYtServiceRequestCompleted=function(B,c){if(B=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))this.icon=void 0,this.set("data",B)};
_.a.onYtServiceRequestError=function(){this.icon=void 0};
_.AJ.Object.defineProperties(X0.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data,c=this.textLabel,x=this.hostElement,P=this.computeAccessibilityLabel(),Y=this.tapHandler,g=this.isOverlay?"overlay":"mono",k=(B==null?0:B.disableButton)?"disabled":"active";c=c?_.OL(c):void 0;return{style:g,type:"tonal",state:k,size:"M",focused:!1,formattedButtonText:c,iconPosition:"leading-trailing",onTap:Hoq(B,Y,x),accessibilityLabel:P}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var B=this.currentStateRendererData(),c,x,P=(x=this.icon)!=null?x:B==null?void 0:(c=B.icon)==null?void 0:c.iconType;if(P)return _.$0(P)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.secondaryIcon)==null?void 0:c.iconType;if(x)return _.$0(x)}}});
X0.prototype.onYtServiceRequestError=X0.prototype.onYtServiceRequestError;X0.prototype.onYtServiceRequestCompleted=X0.prototype.onYtServiceRequestCompleted;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],X0.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],X0.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],X0.prototype,"textLabel",void 0);
_.L([_.F(),_.H("design:type",String)],X0.prototype,"icon",void 0);_.L([_.F(),_.H("design:type",Boolean)],X0.prototype,"isOverlay",void 0);_.L([_.Q("data.*","textLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],X0.prototype,"computedButtonShape",null);_.L([_.Q("data.*","icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],X0.prototype,"computedIcon",null);_.L([_.Q("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],X0.prototype,"computedSecondaryIcon",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],X0.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],X0.prototype,"onYtServiceRequestError",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],X0);
_.G(X0,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(ddm!==void 0)return ddm;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return ddm=B},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var qOQ;_.xU(UC4,"yt-animated-action",{props:{backgroundLottieRef:_.rk,foregroundLottieRef:_.rk,wrapperClass:_.rk,disableAnimation:_.rk},unsafeExternallySettableAttributes:new Set(["key"])});var $R=function(){var B=_.z.apply(this,arguments)||this;B.animatedActionEnabled=_.T("web_animated_actions");B.foregroundLottieRef={};B.backgroundLottieRef={};B.forceIconOnly=!1;B.showTextWhileAnimating=!1;B.keyboardFocused=!1;B.isAnimating=!1;B.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return B};
_.w($R,_.z);_.a=$R.prototype;_.a.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.a.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]]"}}}}}};
_.a.attached=function(){this.keyboardFocused=!1};
_.a.onYtServiceRequestSent=function(B,c){(this.get("endpoint.subscribeEndpoint",c)||this.get("endpoint.unsubscribeEndpoint",c))&&this.updateSubscriptionState(!this.subscribed)};
_.a.onYtServiceRequestCompleted=function(B,c){(B=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",c.data))&&this.bellButton&&(this.bellButton.data=B)};
_.a.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.k9(this.hostElement)};
_.a.onPlayerSubscribe=function(B){this.isCompactRed()||B!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.a.onPlayerUnsubscribe=function(B){this.isCompactRed()||B!==this.data.channelId||this.updateSubscriptionState(!1)};
_.a.handleUpdateSubscribeButtonAction=function(B){B=_.t(B,GoI);var c;B&&B.channelId===((c=this.data)==null?void 0:c.channelId)&&this.updateSubscriptionState(!!B.subscribed)};
_.a.computeButtonStyle=function(B){return this.get("style.styleType",B)||null};
_.a.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.a.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.a.updateSubscriptionState=function(B){if(B!==this.subscribed){this.set("data.subscribed",B);var c,x=(c=this.data)==null?void 0:c.subscribedEntityKey;x&&this.ytdReduxBehavior.dispatch(_.Uy("subscriptionStateEntity",x,{key:x,subscribed:B}));this.isCompactRed()||_.aJ(this.hostElement,"yt-subscription-changed",B);B||(_.gj(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!B),B&&this.hasBellButton&&this.startAnimation())}};
_.a.startAnimation=function(){var B=this;if(!this.isAnimating){var c=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var x;(x=this.backgroundLottieRef.lottieEl)==null||x.goToAndPlay(0);var P;(P=this.foregroundLottieRef.lottieEl)==null||P.goToAndPlay(0);_.EE.addJob(function(){B.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.EE.addJob(function(){B.updateContainerToFitContent(!!B.subscribed,!0)},2,1500);
_.EE.addJob(function(){B.isAnimating=!1},2,c)}};
_.a.maybeAnimateBellIcon=function(){var B=_.aB(this.hostElement).querySelector("yt-animated-icon");if(B){var c;(c=B.animationRef.lottieEl)==null||c.goToAndPlay(0)}};
_.a.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.a.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.a.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var B;this.unsubscribedWidth=(B=this.subscribeButtonShape)==null?void 0:B.getBoundingClientRect().width}var c;this.subscribedWidth=(c=this.bellButton)==null?void 0:c.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.a.updateContainerToFitContent=function(B,c){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(B?(B=this.subscribedWidth,c=this.isAnimating&&!c,this.subscribedIconOnlyWidth===void 0||c||(B=this.subscribedIconOnlyWidth),this.hostElement.style.width=B+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.a.clearContainerSize=function(){this.hostElement.style.width=""};
_.a.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.a.maybeSetSubscribedButtonIconOnlyWidth=function(){var B=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 c;B.subscribedIconOnlyWidth=(c=B.bellButton)==null?void 0:c.getBoundingClientRect().width;requestAnimationFrame(function(){if(B.bellButton){var x;B.bellButton.textLabel=
(x=B.data)==null?void 0:x.subscribedButtonText}})})))};
_.AJ.Object.defineProperties($R.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 B;return(B=this.data)==null?void 0:B.subscribedButtonText}var c;return this.forceIconOnly?void 0:(c=this.data)==null?void 0:c.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var B,c,x=((B=this.data)==null?void 0:(c=B.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"subscribe",timings:x,enabled:x.length>0&&!this.subscribed,experimentEnabled:x.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!this.subscribed&&((B=this.data)==null?void 0:B.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 B={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var c=B.renderer;var x=B.element;var P=B.subscribed;var Y=B.commandController;var g=B.isOverlay;B=B.stopPropagation;var k=uDX(c,P);g&&(k.style="overlay");g=Object;var n=g.assign,b;a:switch((b=c.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var d=A5X(c,
P);var q=(q=P?c.subscribedButtonText:c.unsubscribedButtonText)?_.OL(q):void 0;return n.call(g,{},k,b,{focused:!1,toggled:P,accessibilityLabel:d,formattedButtonText:q,onTap:ioQ(c,P,x,Y,B)})}}}});
$R.prototype.onMouseDown=$R.prototype.onMouseDown;$R.prototype.onDataChanged=$R.prototype.onDataChanged;$R.prototype.observedSubscribed=$R.prototype.observedSubscribed;$R.prototype.onYtServiceRequestCompleted=$R.prototype.onYtServiceRequestCompleted;$R.prototype.onYtServiceRequestSent=$R.prototype.onYtServiceRequestSent;$R.prototype.maybeUpdateBellButtonText=$R.prototype.maybeUpdateBellButtonText;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],$R.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],$R.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$R.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.subscribedEntityKey"],selector:joo}),_.H("design:type",Object)],$R.prototype,"subscriptionStateEntity",void 0);_.L([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.H("design:type",Boolean)],$R.prototype,"subscribed",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],$R.prototype,"branded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$R.prototype,"animatedActionEnabled",void 0);
_.L([_.F(),_.H("design:type",Object)],$R.prototype,"foregroundLottieRef",void 0);_.L([_.F(),_.H("design:type",Object)],$R.prototype,"backgroundLottieRef",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],$R.prototype,"overlayButton",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.H("design:type",Object)],$R.prototype,"buttonStyle",void 0);_.L([_.F(),_.H("design:type",Object)],$R.prototype,"forceIconOnly",void 0);
_.L([_.F(),_.H("design:type",Object)],$R.prototype,"showTextWhileAnimating",void 0);_.L([_.F({value:function(){return!!_.cp().resolve(_.Bp(_.Xr))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],$R.prototype,"useKeyboardFocused",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$R.prototype,"keyboardFocused",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$R.prototype,"isAnimating",void 0);_.L([_.Q("data.notificationPreferenceButton.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"hasBellButton",null);
_.L([_.bF("subscribedButtonText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$R.prototype,"maybeUpdateBellButtonText",null);_.L([_.Q("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"subscribedButtonText",null);_.L([_.Q("data.timedAnimationData.animationTiming","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"smartimationSettings",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"subscribeButtonHidden",null);_.L([_.F({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"subscribeButtonInvisible",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"unsubscribeButtonHidden",null);_.L([_.jr("ytd-subscription-notification-toggle-button-renderer-next"),_.H("design:type",Object)],$R.prototype,"bellButton",void 0);_.L([_.jr("#subscribe-button-shape"),_.H("design:type",HTMLElement)],$R.prototype,"subscribeButtonShape",void 0);
_.L([_.Q("overlayButton","subscribed","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$R.prototype,"buttonShape",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],$R.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],$R.prototype,"onYtServiceRequestCompleted",null);
_.L([_.bF("subscribed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$R.prototype,"observedSubscribed",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$R.prototype,"onDataChanged",null);_.L([_.nF("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$R.prototype,"onMouseDown",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],$R);
_.G($R,"ytd-subscribe-button-renderer",function(){if(qOQ!==void 0)return qOQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qOQ=B},{mode:1});var n8=function(){var B=_.z.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.w(n8,_.z);n8.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],n8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n8.prototype,"isRichGrid",void 0);_.L([_.y({is:"ytd-game-card-renderer",disableElementRegistration:!0})],n8);
_.G(n8,"ytd-game-card-renderer",function(){if(jrF!==void 0)return jrF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jrF=B},{mode:1});var bO={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.T("defer_menus")&&!gT0?0:void 0,waitForSignal:"eocs"};var CT3;var hpm;var K8=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return B};
_.w(K8,_.z);_.a=K8.prototype;_.a.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.a.onSeriesReminderStateEntityChange=function(){var B,c,x;((B=this.eventReminderStateEntity)==null?0:B.key)&&((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((x=this.eventReminderStateEntity)==null?void 0:x.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Uy("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.a.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.a.onYtServiceRequestError=function(){var B;this.updateReminderStateEntitiesFromButtonState((B=this.data)==null?void 0:B.currentState)};
_.a.handleUpdateUpcomingEventReminderButtonStateCommand=function(B){if(B=_.t(B,YPI)){var c,x=(c=this.data)==null?void 0:c.targetId;x&&B.targetId===x&&_.Sr(this.updateReminderStateEntitiesFromButtonState.bind(this,B.state))}};
_.a.getButtonStateFromReminderState=function(){var B;if(((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var c;if(((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var x,P;if(((x=this.seriesReminderStateEntity)==null?void 0:x.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 Y;return(Y=this.data)==null?void 0:Y.currentState};
_.a.updateReminderStateEntitiesFromButtonState=function(B){if(B){switch(B){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":B="UPCOMING_EVENT_REMINDER_STATE_NONE";var c="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":B="UPCOMING_EVENT_REMINDER_STATE_SINGLE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":B="UPCOMING_EVENT_REMINDER_STATE_NONE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var x;
((x=this.eventReminderStateEntity)==null?0:x.key)&&this.ytdReduxBehavior.dispatch(_.Uy("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:B})));var P;((P=this.seriesReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.Uy("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:c})))}};
_.AJ.Object.defineProperties(K8.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var B=this.getButtonStateFromReminderState(),c,x;if(B&&((c=this.data)==null?0:(x=c.states)==null?0:x.length))for(c=_.p(this.data.states),x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;if(((P=_.t(x,aYt))==null?void 0:P.state)===B)return _.t(x,aYt)}}}});
K8.prototype.onYtServiceRequestError=K8.prototype.onYtServiceRequestError;K8.prototype.onYtServiceRequestCompleted=K8.prototype.onYtServiceRequestCompleted;K8.prototype.onSeriesReminderStateEntityChange=K8.prototype.onSeriesReminderStateEntityChange;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],K8.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],K8.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:d07}),_.H("design:type",Object)],K8.prototype,"eventReminderStateEntity",void 0);
_.L([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(B,c){return _.X9(B.entities,"sportsSeriesReminderStateEntity",c)}}),
_.H("design:type",Object)],K8.prototype,"seriesReminderStateEntity",void 0);_.L([_.Q("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],K8.prototype,"currentButtonStateRenderer",null);_.L([_.bF("seriesReminderStateEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K8.prototype,"onSeriesReminderStateEntityChange",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K8.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K8.prototype,"onYtServiceRequestError",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],K8);
_.G(K8,"ytd-upcoming-event-reminder-button-renderer",function(){if(hpm!==void 0)return hpm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return hpm=B},{mode:1});var md3;var jS=function(){return _.z.apply(this,arguments)||this};
_.w(jS,_.z);jS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.AJ.Object.defineProperties(jS.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(_.T("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jS.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],jS.prototype,"shelfDismissal",void 0);_.L([_.Q("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"text",null);
_.L([_.Q("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"textAriaLabel",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],jS);
_.G(jS,"ytd-notification-multi-action-renderer",function(){if(md3!==void 0)return md3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return md3=B},{mode:1});var T3d;var UA=function(){return _.z.apply(this,arguments)||this};
_.w(UA,_.z);UA.prototype.ready=function(){var B=this;_.Y9(this.hostElement).querySelector("#undo").addEventListener("tap",function(){B.onUndoTap()})};
UA.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UA.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],UA);
_.G(UA,"ytd-notification-text-renderer",function(){if(T3d!==void 0)return T3d;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return T3d=B},{mode:1});var V8m;var d5=function(){var B=_.z.apply(this,arguments)||this;B.mouseOverDelayJobId=0;B.fadeInImageDelayJobId=0;B.startTimeMs=-1;B.loadingStartTimeMs=-1;B.loadingEndTimeMs=-1;B.hasVideoPreview=!1;return B};
_.w(d5,_.z);_.a=d5.prototype;_.a.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.a.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.a.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.a.showThumbnail=function(){var B=this;this.csn=_.Wf();_.oJ("fmth");_.EE.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.s9(_.EE,function(){B.loadingStartTimeMs=(0,_.BA)();var c=_.Y9(B.hostElement).querySelector("#thumbnail");c.complete?B.displayMouseOverImage():c.addEventListener("load",_.$9(B,B.displayMouseOverImage))},150):_.gM(_.Y9(this.hostElement).querySelector("#play"),"show",!0)};
_.a.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.a.onTap=function(){this.removeVideoPreview()};
_.a.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var B=this.videoId,c=this.csn,x=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,P=this.startTimeMs,Y=this.hasVideoPreview,g=_.VF(this.trackingParams),k={isMovingThumbnail:Y};Y&&P>0&&(x>0&&(k.movingThumbnailLoadingDurationMs=Math.round(x)),k.durationHoveredMs=Math.round((0,_.BA)()-P));B&&(k.videoId=B);_.ig(c,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:k});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.a.removeVideoPreview=function(){_.EE.cancelJob(this.mouseOverDelayJobId);_.EE.cancelJob(this.fadeInImageDelayJobId);var B=_.Y9(this.hostElement).querySelector("#thumbnail");_.gM(B,"fade-in",!1);B.removeEventListener("load",_.$9(this,this.displayMouseOverImage));B=_.Y9(this.hostElement).querySelector("#play");_.gM(B,"fade-in",!1);_.gM(B,"show",!1)};
_.a.displayMouseOverImage=function(){var B=_.Y9(this.hostElement).querySelector("#thumbnail"),c=_.Y9(this.hostElement).querySelector("#play");this.isImageAvailable(B)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.BA)(),this.startTimeMs=(0,_.BA)(),this.fadeInImageDelayJobId=_.s9(_.EE,function(){_.gM(B,"fade-in",!0)},50)):_.gM(c,"fade-in",!0)};
_.a.computeThumbnail=function(B,c){var x;B&&B.movingThumbnailDetails&&B.movingThumbnailDetails.thumbnails&&c?x=_.Pw(B.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):x=c?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(x)return _.Tz(x)};
_.a.isImageAvailable=function(B){return!(!B.src||B.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||B.naturalWidth===120)};
d5.prototype.onTap=d5.prototype.onTap;d5.prototype.dataChanged=d5.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],d5.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],d5.prototype,"csn",void 0);_.L([_.F(),_.H("design:type",Object)],d5.prototype,"trackingParams",void 0);
_.L([_.F(),_.H("design:type",String)],d5.prototype,"videoId",void 0);_.L([_.F(),_.H("design:type",Boolean)],d5.prototype,"isAttachedAndDataSet",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d5.prototype,"dataChanged",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d5.prototype,"onTap",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],d5);
_.G(d5,"ytd-moving-thumbnail-renderer",function(){if(V8m!==void 0)return V8m;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return V8m=B},{mode:1});var t8d;_.KC=function(B){this.hostElement=B;this.eventSink=null;this.eventList=[]};
_.KC.prototype.shouldForward=function(){var B,c;return(c=(B=this.eventSink)==null?void 0:B.isConnected)!=null?c:document.body.contains(this.eventSink)};
_.KC.prototype.start=function(B,c){this.eventSink&&this.stop();for(var x=0;x<B.length;x++)this.hostElement.addEventListener(B[x],_.$9(this,this.forwardEvent));var P;this.eventSink=(P=c.hostElement)!=null?P:c;this.eventList=B};
_.KC.prototype.stop=function(){for(var B=0;B<this.eventList.length;B++)this.hostElement.removeEventListener(this.eventList[B],_.$9(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.KC.prototype.forwardEvent=function(B,c){this.shouldForward()&&(B.stopPropagation(),this.eventSink instanceof Element?_.aJ(this.eventSink,B.type,c):_.Ob(new _.mc("eventSink is not an element")))};_.qB={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.KC(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(B,c){this.forwarder_.start(B,c)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var C8=function(){return _.z.apply(this,arguments)||this};
_.w(C8,_.z);_.a=C8.prototype;_.a.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=_.v5("HTML_DIR")==="rtl"?"right":"left"};
_.a.dataChanged=function(){this.popupOpen=!1};
_.a.computeAriaLabel=function(B){return _.t(B,qBn).label};
_.a.onTap=function(B){B.stopPropagation();B.preventDefault();this.data.command&&_.cp().resolve(_.xu).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.a.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.a.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
C8.prototype.onPopupClosed=C8.prototype.onPopupClosed;C8.prototype.onPopupOpened=C8.prototype.onPopupOpened;C8.prototype.onTap=C8.prototype.onTap;C8.prototype.dataChanged=C8.prototype.dataChanged;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],C8.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.QT),_.H("design:type",Object)],C8.prototype,"ironButtonState",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],C8.prototype,"componentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],C8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:-1}),_.H("design:type",Number)],C8.prototype,"tabindex",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.H("design:type",Object)],C8.prototype,"ariaLabel",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],C8.prototype,"disableTooltips",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],C8.prototype,"popupOpen",void 0);
_.L([_.F(),_.H("design:type",Element)],C8.prototype,"eventSink",void 0);_.L([_.jr("#tooltip"),_.H("design:type",Object)],C8.prototype,"tooltip",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C8.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],C8.prototype,"onTap",null);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C8.prototype,"onPopupOpened",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C8.prototype,"onPopupClosed",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],C8);
_.G(C8,"ytd-thumbnail-overlay-button-renderer",function(){if(t8d!==void 0)return t8d;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return t8d=B},{mode:1});var wSZ;var hf=function(){return _.z.apply(this,arguments)||this};
_.w(hf,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hf.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hf.prototype,"disableAnimation",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hf.prototype,"rounded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hf.prototype,"transparentBackground",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hf.prototype,"noPadding",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],hf);
_.G(hf,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(wSZ!==void 0)return wSZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return wSZ=B},{mode:1});var N30;var m$=function(){return _.z.apply(this,arguments)||this};
_.w(m$,_.z);m$.prototype.computeIconPosition=function(B){return this.get("iconPosition",B)||null};
m$.prototype.computeIconStyle=function(B){return this.get("iconStyle",B)||null};
m$.prototype.computeIsIconStyleFilled=function(B){if(!B)return!1;var c;return B.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((c=B.icon)==null?void 0:c.iconType)==="ERROR_BLACK"};
_.L([_.F(),_.H("design:type",Object)],m$.prototype,"data",void 0);_.L([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.H("design:type",Object)],m$.prototype,"iconPosition",void 0);_.L([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.H("design:type",Object)],m$.prototype,"iconStyle",void 0);_.L([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],m$.prototype,"iconStyleFilled",void 0);
_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],m$);
_.G(m$,"ytd-thumbnail-overlay-icon-renderer",function(){if(N30!==void 0)return N30;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return N30=B},{mode:1});var IV3;var T8=function(){return _.z.apply(this,arguments)||this};
_.w(T8,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],T8.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],T8);
_.G(T8,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(IV3!==void 0)return IV3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return IV3=B},{mode:1});var J55;var V9=function(){var B=_.z.apply(this,arguments)||this;B.isPreviewLoading=!1;return B};
_.w(V9,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],V9.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],V9.prototype,"isPreviewLoading",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],V9);
_.G(V9,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(J55!==void 0)return J55;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return J55=B},{mode:1});var WBW;var tf=function(){return _.z.apply(this,arguments)||this};
_.w(tf,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tf.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],tf);
_.G(tf,"ytd-thumbnail-overlay-pinking-renderer",function(){if(WBW!==void 0)return WBW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WBW=B},{mode:1});var lV3;var w5=function(){var B=_.z.apply(this,arguments)||this;B.disableTooltips=!1;B.isLoading=!1;B.useExpandableTooltip=!1;B.toggled=!1;B.hovered=!1;B.mouseoverDelayJobId=0;B.toggleDelayJobId=0;B.expandAnimationDelayJobId=0;return B};
_.w(w5,_.z);_.a=w5.prototype;_.a.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");_.Y9(this.hostElement).querySelector("#tooltip").position=_.v5("HTML_DIR")==="rtl"?"right":"left"};
_.a.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.EE.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.EE.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.EE.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.a.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.EE.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.EE.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.EE.cancelJob(this.expandAnimationDelayJobId)};
_.a.computeIcon=function(B,c,x){return(B=x?c:B)&&B.iconType?_.$0(B.iconType):void 0};
_.a.computeAriaLabel=function(B,c,x){return _.t(x?c:B,qBn).label};
_.a.computeTooltip=function(B,c,x){return x?c:B};
_.a.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.a.computeIconOnHover=function(B,c){if((B==null?0:B.iconType)&&!c)return _.$0(B.iconType)};
_.a.onTap=function(B){var c=this;B.stopPropagation();B.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(B=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(B),this.useExpandableTooltip&&(this.toggleDelayJobId=_.s9(_.EE,function(){c.hovered=!1;c.data&&!c.data.toggledServiceEndpoint&&(c.expandAnimationDelayJobId=_.s9(_.EE,function(){c.set("data.isToggled",
!1)},200))},2E3))};
_.a.onMouseenter=function(){var B=this;this.mouseoverDelayJobId=_.s9(_.EE,function(){B.hovered=!0},300)};
_.a.onMouseleave=function(){_.EE.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.a.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.a.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.a.onServiceRequestCompleted=function(B,c){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(c)||this.set("data.isToggled",!this.data.isToggled)};
_.a.serviceRequestWasSuccessful=function(B){return _.t(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.QR)?B.data.status==="STATUS_SUCCEEDED":!0};
w5.prototype.onServiceRequestCompleted=w5.prototype.onServiceRequestCompleted;w5.prototype.onPopupClosed=w5.prototype.onPopupClosed;w5.prototype.onPopupOpened=w5.prototype.onPopupOpened;w5.prototype.onMouseleave=w5.prototype.onMouseleave;w5.prototype.dataChanged=w5.prototype.dataChanged;_.L([_.J(_.QT),_.H("design:type",Object)],w5.prototype,"ironButtonState",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],w5.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],w5.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.H("design:type",Object)],w5.prototype,"ariaLabel",void 0);_.L([_.F(),_.H("design:type",Object)],w5.prototype,"disableTooltips",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],w5.prototype,"popupOpen",void 0);_.L([_.F(),_.H("design:type",Object)],w5.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Element)],w5.prototype,"eventSink",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w5.prototype,"useExpandableTooltip",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.H("design:type",Object)],w5.prototype,"toggled",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w5.prototype,"hovered",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.H("design:type",Object)],w5.prototype,"iconOnHover",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w5.prototype,"dataChanged",null);
_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w5.prototype,"onMouseleave",null);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w5.prototype,"onPopupOpened",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w5.prototype,"onPopupClosed",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],w5.prototype,"onServiceRequestCompleted",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],w5);
_.G(w5,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(lV3!==void 0)return lV3;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return lV3=B},{mode:_.sL("kevlar_poly_si_batch_j053")?1:2});var E1W;var Oo0=_.rM(function(B){var c=B.data;var x=B.thumbnailSize;var P=function(){return c().enableSegmentView};
return _.U("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Kw("ytThumbnailOverlayProgressBarHost",function(){return Ddq(x==null?void 0:x())})},_.U(_.m,{cond:P,
then:function(){return _.U("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.U("div",{class:_.U9("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+c().startPercent+"%"}}),_.U("div",{class:_.U9("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+c().segmentDurationPercent+"%"}},_.U("div",{class:_.U9("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.U("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.U("div",null," ",function(){return c().segmentLabel})),_.U("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.U("div",{class:_.U9("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.U(_.m,{cond:function(){return!P()&&c().startPercent},
then:function(){var Y={};return _.U("div",{class:_.U9("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Y.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.T("web_enable_modern_progress_bar_overlay"),Y))},_.U("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+c().startPercent+"%"}}))}}))},"Q");
Oo0.idomCompat=!0;var o1W=_.rM(function(B){var c=_.X5(),x=_.FB(function(Y){var g,k,n;a:{var b=(g=B.data())==null?void 0:g.animationActivationTargetId;g=((k=B.data())==null?void 0:k.animationActivationEntityKey)||"";k=(n=B.data())==null?void 0:n.animationActivationEntitySelectorType;if(g&&b)switch(k){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Y=_.X9(Y.entities,"playerStateEntity",g);n=_.cp().resolve(_.Bp(_.Ge));b=!!(Y&&Y.videoId===b&&(n==null?0:n.isMiniplayerActive()));b={activated:b,playAnimation:b&&
Y.playerState==="PLAYER_STATE_PLAYING"};break a}b=void 0}return b});
_.IO(function(){var Y;if((Y=x())==null?0:Y.activated){var g;if((g=x())==null?0:g.playAnimation){var k;(k=c.lottieEl)==null||k.goToAndPlay(0)}else{var n;(n=c.lottieEl)==null||n.goToAndStop(0)}}},"MDTl2e");
var P=function(){var Y,g=!((Y=x())==null||!Y.activated);if(B.data()){Y=B.data();var k=void 0;Y.icon&&(k=_.x5C(Y.icon),k=kJY(k));var n=void 0,b;if((b=Y.backgroundColor)==null?0:b.lightTheme){var d;n={backgroundColor:yy((d=Y.backgroundColor)==null?void 0:d.lightTheme,"0.8")}}if(Y.text||k||g){if(g&&Y.lottieData&&c){d=Y.lottieData;var q,C,h;b={animationConfig:{name:d.url,path:d.url,autoplay:(q=d.settings)==null?void 0:q.autoplay,loop:(h=(C=d.settings)==null?void 0:C.loop)!=null?h:!0},animationRef:c}}else b=
void 0;if(g)q=16;else b:switch(Y.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":q=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":q=18;break b;default:q=16}g={type:q,text:g&&Y.animatedText?Y.animatedText:Y.text,icon:k,customColors:n,animation:b}}else g=void 0}else g=void 0;return g};
return _.U("yt-thumbnail-badge-view-model",{class:_.Kw("yt-thumbnail-badge-view-model-wiz",B.class)},_.U(_.m,{cond:P,then:function(){return _.U(_.Ef,{data:function(){return P()}})}}))},"R");var Qrd=_.rM(function(B){var c={},x={};return _.U("yt-thumbnail-bottom-overlay-view-model",{class:_.Kw("ytThumbnailBottomOverlayViewModelHost",(c.ytThumbnailBottomOverlayViewModelHostBackground=function(){return B.data().enableGradientBackground},c))},_.U(_.IF,{data:function(){return B.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(P){return _.U(Oo0,{data:P.data,
thumbnailSize:B.thumbnailSize})}}),_.U("div",{class:_.Kw("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var P;
return r5X((P=B.thumbnailSize)==null?void 0:P.call(B))},(x.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var P;
return(P=B.isClip)==null?void 0:P.call(B)},x.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var P;
return!_.T("web_enable_modern_progress_bar_overlay")&&((P=B.thumbnailSize)==null?void 0:P.call(B))==="small"},x))},_.U(_.IF,{data:function(){return B.data().badge}},{thumbnailBadgeViewModel:function(P){return _.U(o1W,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.U(_.IF,{data:function(){return B.data().badges}},{thumbnailBadgeViewModel:function(P){return _.U(o1W,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
Qrd.idomCompat=!0;_.xU(Qrd,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.cw,thumbnailSize:_.cw,isClip:_.cw}});var pE7={calledOnce:!1,state:"visible"},kDY={calledOnce:!1,state:"hidden"};var NB=_.rM(function(B){var c=B.data;var x=B.className;B=B.alwaysShow;var P=_.Ho("thumbnail-hover-overlay-view-model");_.Hv(P,function(){return c().rendererContext});
var Y=_.Bsx(),g={};return _.U("thumbnail-hover-overlay-view-model",{el:P,class:_.Kw("ytThumbnailHoverOverlayViewModelHost",x,(g.ytThumbnailHoverOverlayViewModelHostForceHover=B,g)),"aria-label":function(){var k;return(k=_.t(c().rendererContext,_.T3))==null?void 0:k.label},
role:function(){return _.L3(c().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.L3(c().rendererContext)!==void 0?0:void 0},
"on:keypress":Y},_.U("div",{class:_.Kw("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(c().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var k="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:k="ytThumbnailHoverOverlayViewModelStyleCover"}return k})},_.U(_.m,{cond:function(){return c().icon},
then:function(k){return _.U(_.D9,{data:k,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.U(_.m,{cond:function(){return c().text},
then:function(k){return _.U(_.RF,{text:k,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
NB.idomCompat=!0;var FBZ=_.rM(function(B){var c=B.data;return _.U(_.IF,{data:function(){return c==null?void 0:c().overlays}},{thumbnailHoverOverlayViewModel:NB})},"U");
FBZ.idomCompat=!0;var v1m={};var zpn=_.rM(function(B){var c=B.data;var x=B.image;var P=B.state;var Y=B.iconType;var g=B.overlays;var k=B.isOverlay;var n=_.fE("div");B=_.p(_.$D(!0,void 0,"sUzEZ"));var b=B.next().value,d=B.next().value,q=function(){return!!c().onTap},C=_.A9(Y,"LIVE");
_.IO(function(){var V=c();requestAnimationFrame(function(){if(n.value===null)var N=!0;else{var l=n.value;N=V.badgeText;var E=n$Q(V.size);N in v1m?l=v1m[N]:(l=l.clientWidth,v1m[N]=l);(N=l>E)?n.value.style.display="none":n.value.style.visibility="visible"}d(N)})},"SpVcNb");
var h=function(){var V={};return V["yt-spec-avatar-shape__image"]=!0,V["yt-spec-avatar-shape__image--ads-app"]=c().type===1,V};
return _.U("yt-avatar-shape",null,_.U("div",{el:_.Rm(KJX(q,{keydown:function(V){if(V.key==="Enter"){var N;(N=V.currentTarget)==null||N.click()}},
click:function(V){var N,l;return void((l=(N=c()).onTap)==null?void 0:l.call(N,V))}})),
class:function(){var V={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},N=c();V=(V[N.clusterLayoutConfig?dK7(N.clusterLayoutConfig):qDq(N.size)]=!0,V["yt-spec-avatar-shape__button--tappable"]=q(),V);(N=c().avatarButtonCustomClassName)&&(V[N]=!0);return _.U9(V)},
"aria-label":function(){return q()?c().accessibilityText:""},
role:function(){return q()?"button":void 0},
tabindex:function(){return q()?0:void 0}},_.U("div",{class:function(){var V,N=c(),l=P==null?void 0:P(),E=k==null?void 0:k(),S=!((V=N.decorations)==null||!V.includes(2)||N.size!=="medium"&&N.size!=="large"),M=N.size==="tiny"||N.size==="extra-small",f,Z,u,e,px={};
V=(px["yt-spec-avatar-shape--live-ring"]=!!(((f=N.decorations)==null?0:f.includes(0))&&hiC(N.size)),px["yt-spec-avatar-shape--stories-watched"]=S&&!(l==null||!l.storiesWatched),px["yt-spec-avatar-shape--stories-unwatched"]=S&&!(l==null?0:l.storiesWatched),px["yt-spec-avatar-shape--background-border"]=mKQ(N.decorations)&&!M,px["yt-spec-avatar-shape--background-border-thin"]=mKQ(N.decorations)&&M,px["yt-spec-avatar-shape__on-select-border"]=!((Z=N.decorations)==null||!Z.includes(4)),px["yt-spec-avatar-shape__white-border"]=
!((u=N.decorations)==null||!u.includes(5)),px["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((e=N.decorations)==null?0:e.includes(5))&&M),px["yt-spec-avatar-shape--is-overlay"]=!!E,px);return _.U9(V)},
style:function(){a:{var V=c().clusterLayoutConfig;if(V){b:{var N=V.numAvatarsInCluster;var l=V.avatarIndex;if(l!==N-1){switch(V.clusterSize){case "small":V="32";break;case "medium":V="36";break;case "40":V="40";break;default:N=void 0;break b}N="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+V+"x"+V+"_avatars_"+N+"_index_"+l+".svg"}else N=void 0}if(N){N=_.TU({"-webkit-mask-image":"url("+N+")","mask-image":"url("+N+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}N=void 0}return N}},_.U("div",{class:function(){var V={};
var N=c();V=(V[N.clusterLayoutConfig?jLw(N.clusterLayoutConfig):UKX(N.size)]=!0,V["yt-spec-avatar-shape--no-margin"]=mKQ(c().decorations),V);return _.U9(V)}},_.U(_.D9,{data:x,
alt:function(){return!q()&&c().accessibilityText?c().accessibilityText:""},
targetWidth:function(){return C87(c().size)},
targetHeight:function(){return C87(c().size)},
className:function(){return _.U9(h())}}),_.U(_.m,{cond:function(){var V;
return((V=c().decorations)==null?void 0:V.includes(0))&&hiC(c().size)},
then:function(){return _.U("div",{class:function(){var V={};V=(V["yt-spec-avatar-shape__live-badge"]=!0,V["yt-spec-avatar-shape__live-badge--badge-small"]=c().size==="small",V["yt-spec-avatar-shape__live-badge--badge-medium"]=c().size==="medium"||c().size==="48",V["yt-spec-avatar-shape__live-badge--badge-large"]=c().size==="large",V["yt-spec-avatar-shape__live-badge--badge-extra-large"]=c().size==="extra-large"||c().size==="extra-extra-large"||c().size==="giant",V);return _.U9(V)}},_.U(_.m,{cond:function(){return c().badgeText},
then:function(V){return _.U("div",{class:"yt-spec-avatar-shape__badge-text",el:n},V)}}),_.U(_.m,{cond:b,
then:function(){return _.U("div",{class:"yt-spec-avatar-shape__badge-icon"},_.U(_.Vf,{icon:C,size:function(){a:switch(c().size){case "extra-large":var V=16;break a;default:V=13}return V}}))}}))}}),_.U(_.m,{cond:function(){var V,N;
return((V=c().decorations)==null?void 0:V.includes(1))||((N=c().decorations)==null?void 0:N.includes(0))&&!hiC(c().size)},
then:function(){return _.U("div",{class:function(){var V=c(),N,l,E={};var S=(E["yt-spec-avatar-shape__live-dot"]=!((N=V.decorations)==null||!N.includes(0)||hiC(V.size)),E["yt-spec-avatar-shape__new-content"]=!((l=V.decorations)==null||!l.includes(1)),E);return _.U9(S)}})}}),_.U(_.m,{cond:function(){return!!g},
then:function(){return _.U("div",{class:function(){var V={};V=Object.assign((V["yt-spec-avatar-shape__image-overlays"]=!0,V),h());return _.U9(V)}},g==null?void 0:g())}})))))},"V");
zpn.idomCompat={callbacks:{overlays:!0}};_.IS=_.rM(function(B){function c(){x().endpoint&&_.Gl(x().endpoint)}
var x=B.data;var P=B.decorations;var Y=B.avatarButtonCustomClassName;var g=B.isOverlay;var k=B.clusterLayoutConfig;return _.U("avatar-view-model",null,_.U(_.m,{cond:function(){return x().image},
then:function(n){return _.U(zpn,{data:function(){return VGO({data:x(),onTap:x().endpoint?c:void 0,decorations:P==null?void 0:P(),badgeText:void 0,accessibilityText:x().accessibilityText,avatarButtonCustomClassName:Y==null?void 0:Y(),clusterLayoutConfig:k==null?void 0:k()})},
image:n,iconType:"RADAR_LIVE",overlays:function(){return _.U(FBZ,{data:x})},
isOverlay:g})}}))},"W");
_.IS.idomCompat=!0;_.Jf=_.rM(function(B){var c=B.data;B=B.className;var x=_.fE("yt-decorated-avatar-view-model"),P=function(){return _.t(c().avatar,_.f3)},Y=_.db(function(){var g,k=c(),n=P(),b=_.L3(c().rendererContext),d=(g=x.value)!=null?g:void 0,q;
if(n){d={data:k,avatar:n,onTap:b,element:d};g=d.data;k=d.avatar;n=d.onTap;b=d.element;d=d.commandController;n=n?IRA(n,b,d):void 0;b=[];g.liveData&&b.push(0);var C;d=(C=g.liveData)==null?void 0:C.liveBadgeText;C=(q=_.t(g.rendererContext,_.T3))==null?void 0:q.label;q=VGO({data:k,onTap:n,decorations:b,badgeText:d,accessibilityText:C?C:g.a11yLabel})}else q={size:"medium"};return q},void 0,"H8tk9d");
return _.U("yt-decorated-avatar-view-model",{class:_.Kw("yt-decorated-avatar-view-model-wiz",B),el:x},_.U(_.m,{cond:function(){var g;return(g=P())==null?void 0:g.image},
then:function(g){return _.U(zpn,{data:Y,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.U(FBZ,{data:P})}})}}))},"X");
_.Jf.idomCompat=!0;_.WT=_.rM(function(B){var c=function(){var b;return Object.assign({},B.data(),(b=B.overrides)==null?void 0:b.call(B))},x=_.Ho("yt-avatar-stack-view-model"),P=function(){return x&&_.Z_(c().rendererContext)};
_.Hv(x,function(){return c().rendererContext});
var Y=function(){var b=c().avatars,d,q;return(q=(d=(b==null?0:b[0])?_.t(b[0],_.f3):void 0)==null?void 0:d.avatarImageSize)!=null?q:"AVATAR_SIZE_UNKNOWN"},g=function(){return Ns7(c())},k=function(){if(c().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var b=void 0;
else if((b=B.decorations)==null?0:b.call(B))b=B.decorations();else{b=c();var d=0;b.avatars&&(d+=b.avatars.length);b.decoratedText&&(d+=1);b=d>1?[3]:[]}return b},n={};
return _.U("yt-avatar-stack-view-model",{el:x,class:_.Kw("yt-avatar-stack-view-model-wiz",B.className,(n["yt-avatar-stack-view-model-wiz--tappable"]=P,n["yt-avatar-stack-view-model-wiz--is-overlay"]=B.isOverlay,n["yt-avatar-stack-view-model-wiz--medium-text"]=B.useMediumText,n)),tabindex:function(){return P()?0:void 0},
role:function(){return P()?"link":void 0},
"aria-label":function(){var b,d;return(d=(b=_.t(c().rendererContext,_.T3))==null?void 0:b.label)!=null?d:""}},_.U(_.m,{cond:function(){var b;
return c().avatars&&!((b=B.hideAvatar)==null?0:b.call(B))},
then:function(){return _.U("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.U(_.m,{cond:function(){return c().decoratedText},
then:function(b){var d={};return _.U("div",{class:_.Kw("yt-avatar-stack-view-model-wiz__text-container",(d["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return Y()==="AVATAR_SIZE_XXS"||Y()==="AVATAR_SIZE_XS"},d["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var q;
return((q=B.isOverlay)==null?void 0:q.call(B))&&(Y()==="AVATAR_SIZE_XXS"||Y()==="AVATAR_SIZE_XS")},d)),
style:_.TU({width:function(){return g().avatarSizeInPx+"px"},
height:function(){return g().avatarSizeInPx+"px"}})},_.U(_.RF,{text:b,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.U("div",{style:function(){return _.TU(g().avatarStackStyle)()},
class:function(){return g().avatarStackClass}},_.U(_.IF,{data:function(){return g().avatars.reverse()}},{avatarViewModel:function(b,d){return _.U("div",{style:function(){var q,C;
return _.TU((C=(q=g()).avatarStyle)==null?void 0:C.call(q,d()))()},
class:function(){return g().avatarClass}},_.U(_.IS,{data:b.data,
decorations:k,avatarButtonCustomClassName:function(){return g().avatarButtonCustomClassName},
isOverlay:B.isOverlay,clusterLayoutConfig:function(){var q,C;return(C=(q=g()).clusterLayoutConfig)==null?void 0:C.call(q,d())}}))},
decoratedAvatarViewModel:function(b,d){return _.U("div",{style:function(){var q,C;return _.TU((C=(q=g()).avatarStyle)==null?void 0:C.call(q,d()))()},
class:function(){return g().avatarClass}},_.U(_.Jf,{data:b.data}))}})))}}),_.U(_.m,{cond:function(){return c().text},
then:function(b){return _.U(_.RF,{text:b,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.WT.idomCompat=!0;_.xU(_.rM(function(B){var c=B.data;var x=B.thumbnailSize;return _.U("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.U("div",{class:_.Kw("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return J_I(x==null?void 0:x())})},_.U(_.IF,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(P){return _.U(_.WT,{data:P.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.rk,
thumbnailSize:_.rk}});var SOF=_.rM(function(B){B=_.uF(B,{hidden:!1});var c=B.data;return _.U("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:B.hidden},_.U(_.RF,{text:function(){return c().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.U(_.m,{cond:function(){return c().subtitle},
then:function(){return _.U(_.RF,{text:function(){return c().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
SOF.idomCompat=!0;_.xU(SOF,"yt-thumbnail-overlay-title-view-model",{props:{data:_.rk,hidden:_.rk}});var y54=_.rM(function(B){B=_.uF(B,{isClip:!1});var c=B.data,x=B.thumbnailSize,P={};return _.U("yt-thumbnail-overlay-badge-view-model",{class:_.Kw("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(c().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Y="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:Y="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return Y},function(){return WJq(x==null?void 0:x())},(P["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
B.isClip,P))},_.U(_.IF,{data:function(){return c().thumbnailBadges}},{thumbnailBadgeViewModel:function(Y){return _.U(o1W,{data:Y.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
y54.idomCompat=!0;_.xU(y54,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.rk,thumbnailSize:_.rk,isClip:_.rk}});_.BX(lR7);_.XB(lR7,"yt-page-indicator-view-model",{propNames:["data"]});var lO=function(){var B=_.z.apply(this,arguments)||this;B.eventSink=function(){return B};
B.disableInteraction=!1;B.noRoundedCorners=!1;B.isPreviewLoading=!1;B.isOriginalAspectRatio=!1;B.computedObjectFit=!1;B.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return B};
_.w(lO,_.z);_.a=lO.prototype;
_.a.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:_.T("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"}}};
_.a.onImageLoaded=function(){this.loaded=!0};
_.a.onImageUnloaded=function(){this.loaded=!1};
_.a.computeRichThumbnail=function(B,c,x,P){if(B&&c&&!P&&!_.T("disable_moving_thumbs_handling")&&!x)return c};
_.a.computeImageWidth=function(B,c){return c||9999};
_.a.computeIsOriginalAspectRatio=function(B){return B};
_.a.computeIsLive=function(B){if(B==null?0:B.badges)for(var c=0;c<B.badges.length;c++){var x=B.badges[c];if(x.metadataBadgeRenderer&&x.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(B==null?0:B.thumbnailOverlays)for(c=0;c<B.thumbnailOverlays.length;c++)if(x=B.thumbnailOverlays[c],x.thumbnailOverlayTimeStatusRenderer&&x.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.a.computeObjectFit=function(B,c){return c||(B?"CONTAIN":"")};
_.a.computeNavigationEndpoint=function(B,c,x){return B?c:x};
_.a.computeHasClip=function(B){B=_.p(B||[]);for(var c=B.next();!c.done;c=B.next())if(c.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.a.computeOverlayColor=function(B){var c;return(B==null?0:(c=B.darkColorPalette)==null?0:c.section2Color)?B.darkColorPalette.section2Color:B==null?void 0:B.sampledThumbnailColor};
_.AJ.Object.defineProperties(lO.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return wZ7(this.width)}}});
lO.prototype.onImageUnloaded=lO.prototype.onImageUnloaded;lO.prototype.onImageLoaded=lO.prototype.onImageLoaded;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],lO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(C_S),_.H("design:type",Object)],lO.prototype,"ytdThumbnailBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],lO.prototype,"componentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],lO.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lO.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],lO.prototype,"circular",void 0);
_.L([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.H("design:type",Object)],lO.prototype,"richThumbnail",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.H("design:type",Boolean)],lO.prototype,"hasClip",void 0);_.L([_.F(),_.H("design:type",Object)],lO.prototype,"eventSink",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],lO.prototype,"queued",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],lO.prototype,"richGridThumbnail",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],lO.prototype,"useExpandableTooltip",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],lO.prototype,"useUntranslatedNavigationEndpoint",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lO.prototype,"disableInteraction",void 0);
_.L([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.H("design:type",Object)],lO.prototype,"computedNavigationEndpoint",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],lO.prototype,"nowPlayingEqualizerOnly",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],lO.prototype,"hidePlaybackStatus",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],lO.prototype,"objectFit",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lO.prototype,"noRoundedCorners",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],lO.prototype,"watchFeedThumbnail",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lO.prototype,"isPreviewLoading",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.H("design:type",Object)],lO.prototype,"isOriginalAspectRatio",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.H("design:type",Object)],lO.prototype,"computedObjectFit",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.H("design:type",Boolean)],lO.prototype,"isLiveVideo",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],lO.prototype,"loaded",void 0);_.L([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.H("design:type",Object)],lO.prototype,"overlayColor",void 0);_.L([_.F({selector:_.p7I}),_.H("design:type",Boolean)],lO.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.F(),_.H("design:type",Number)],lO.prototype,"width",void 0);
_.L([_.Q("inlinePreviewIsEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lO.prototype,"isPreviewDisabled",null);_.L([_.Q("width"),_.H("design:type",String),_.H("design:paramtypes",[])],lO.prototype,"thumbnailSize",null);_.L([_.nF("image-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lO.prototype,"onImageLoaded",null);
_.L([_.nF("image-unloaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lO.prototype,"onImageUnloaded",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-thumbnail"})],lO);
var GTm=_.gX()(lO,"ytd-thumbnail",function(){if(E1W===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);E1W=B}B=E1W;return B},{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 QLo=function(B){var c=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12872_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12872_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(x){M83(c,x)};
this.onLockupMouseLeaveFn=function(x){x=x.relatedTarget;var P,Y;((P=document.getElementsByTagName("ytd-video-preview"))==null?0:(Y=P.item(0))==null?0:Y.contains(x))||(c.terminateVideoPreview(),EA(c))};
this.onThumbnailMouseDownFn=function(){c.terminateVideoPreview();EA(c)};
this.onTouchStart=function(){c.JSC$12872_touched=!0};
this.mediaRenderer=B.mediaRenderer;this.thumbnailElement=B.thumbnailElement;this.lockupElement=B.lockupElement;this.videoPreviewOptsInput=B.videoPreviewOpts;LBZ(this);OA(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)):
_.Ob(Error("Ch")):_.Ob(Error("Dh")):Zod(this)},g2=function(B){Zod(B);
var c;(c=B.lockupElement)==null||c.removeEventListener("mouseenter",B.onMouseMoveFn);var x;(x=B.lockupElement)==null||x.removeEventListener("mouseleave",B.onLockupMouseLeaveFn);var P;(P=B.lockupElement)==null||P.removeEventListener("touchstart",B.onTouchStart);var Y;(Y=B.thumbnailElement)==null||Y.removeEventListener("mousedown",B.onThumbnailMouseDownFn);EA(B)},LBZ=function(B){B.inlinePreviewIsEnabledForUser=_.uG().getState().ui.inlinePreviewIsEnabled;
B.unsubscribeFromInlinePreviewIsEnabled=_.C0(_.uG(),_.p7I,function(c){(B.inlinePreviewIsEnabledForUser=c)||EA(B)});
B.JSC$12872_unsubscribeFromInlinePreviewIsActive=_.C0(_.uG(),_.sAA,function(c){(B.inlinePreviewIsActive=c)||EA(B)})},Zod=function(B){B.unsubscribeFromInlinePreviewIsEnabled();
B.unsubscribeFromInlinePreviewIsEnabled=function(){};
B.JSC$12872_unsubscribeFromInlinePreviewIsActive();B.JSC$12872_unsubscribeFromInlinePreviewIsActive=function(){}},M83=function(B,c){c.buttons>0||(c=_.Yu("kevlar_lockup_hover_delay",-1),B.JSC$12872_touched&&c>=0?(_.EE.cancelJob(B.videoPreviewJobId),B.videoPreviewJobId=_.s9(_.EE,function(){Hom(B)},c),B.JSC$12872_touched=!1):Hom(B))},Eax=function(B){B.videoPreviewJobId=_.s9(_.EE,function(){var c,x,P,Y;
return _.X(function(g){if(g.nextAddress==1){if(!OA(B))return g.return();c=B.getVideoPreviewOpts();if(!c)return g.return();c.isAutoplay=!0;return(P=(x=_.sp(B.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&x[0])?_.K(g,x[0],3):g.jumpTo(2)}g.nextAddress!=2&&(P=g.yieldResult===1);P&&Ovw((Y=B.mediaRenderer)==null?void 0:Y.data);_.Kq(g)})})},Hom=function(B){!B.previewTriggered&&OA(B)&&(B.inlinePreviewIsActive&&B.terminateVideoPreview(),B.previewTriggered=!0,B.mediaRenderer.isInlinePreviewTriggered=
!0,_.EE.cancelJob(B.videoPreviewJobId),B.videoPreviewJobId=_.s9(_.EE,function(){var c,x,P,Y;
return _.X(function(g){if(g.nextAddress==1){if(!OA(B))return g.return();c=B.getVideoPreviewOpts();return c?(P=(x=_.sp(B.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&x[0])?_.K(g,x[0],3):g.jumpTo(2):g.return()}g.nextAddress!=2&&(P=g.yieldResult===1);P&&Ovw((Y=B.mediaRenderer)==null?void 0:Y.data);_.Kq(g)})}))};
QLo.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var B,c;if((c=(B=this.videoPreviewOptsInput)==null?void 0:B.videoPreviewData)!=null)B=c;else if(B=this.mediaRenderer.data)if(E$Q(B))B={inlinePlaybackEndpoint:_.vH(B.inlinePlayerData.onVisible),navigationEndpoint:_.vH(B.onTap),thumbnail:"image"in B?B.image:B.thumbnail,thumbnailOverlays:void 0,accessibilityText:o$d(B)};else if("multipleInlinePlaybackEndpoint"in B){var x=_.t(_.t(B.multipleInlinePlaybackEndpoint,hW5),mw9);if(x!=
null&&x.playerDescriptors){c=[];x=_.p(x.playerDescriptors);for(var P=x.next();!P.done;P=x.next())P=P.value,c.push({inlinePlaybackEndpoint:P.inlinePlaybackEndpoint,navigationEndpoint:P.navigationEndpoint,thumbnail:P.thumbnail,thumbnailOverlays:P.thumbnailOverlays,accessibilityText:o$d(B)});B=c}else B=void 0}else B={inlinePlaybackEndpoint:B.inlinePlaybackEndpoint,navigationEndpoint:B.navigationEndpoint,thumbnail:B.thumbnail,thumbnailOverlays:B.thumbnailOverlays,accessibilityText:o$d(B)};else B=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:B,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var OA=function(B){var c;if(c=B.inlinePreviewIsEnabledForUser)c=(B=B.mediaRenderer.data)?"inlinePlaybackEndpoint"in B&&B.inlinePlaybackEndpoint||E$Q(B)&&B.inlinePlayerData||"multipleInlinePlaybackEndpoint"in B&&B.multipleInlinePlaybackEndpoint?!0:!1:!1;return c};
QLo.prototype.terminateVideoPreview=function(){_.gj(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var EA=function(B){_.EE.cancelJob(B.videoPreviewJobId);B.inlinePreviewIsActive=!1;B.previewTriggered=!1;B.mediaRenderer.isInlinePreviewTriggered=!1};var fVI=_.r2(["#"]),oS=function(){var B=_.z.apply(this,arguments)||this;B.isDisabled=!1;return B};
_.w(oS,_.z);_.a=oS.prototype;_.a.configureRendererStamper=function(){return{"data.menu":bO,"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"}}}};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.getMetadata=function(B){var c=[];if(B.metadataText&&Object.keys(B.metadataText).length>0){var x=this.ytRendererBehavior.getSimpleString(B.metadataText);B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&(x=_.F5(x,Number(B.upcomingEventData.startTime)));c.push(x)}else B.shortViewCountText&&c.push(this.ytRendererBehavior.getSimpleString(B.shortViewCountText)),B.publishedTimeText&&c.push(this.ytRendererBehavior.getSimpleString(B.publishedTimeText)),B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&
(x=this.ytRendererBehavior.getSimpleString(B.upcomingEventData.upcomingEventText),c.push(_.F5(x,Number(B.upcomingEventData.startTime))));return c};
_.a.calculateBylineText=function(B){return B.shortBylineText?B.shortBylineText:B.bylineText?B.bylineText:null};
_.a.calculateIsDisabled=function(B){return!!B.isDisabled};
_.a.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B)||_.w8(fVI)};
_.a.onDetailsTap=function(B){var c=this.data&&this.data.navigationEndpoint;c&&!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.T("kevlar_grid_video_renderer_killswitch")?_.aJ(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.a.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12877_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:_.Y9(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Y9(this.hostElement).querySelector("ytd-thumbnail")})};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$12877_inlinePreviewHoverListener)==null||g2(B)};
_.a.computeThumbnailWidth=function(B,c){return c&&c>0?c:B?360:210};
_.a.computeShowChannelThumbnail=function(B,c){var x;return c&&!!(B==null?0:(x=B.channelThumbnailSupportedRenderers)==null?0:x.channelThumbnailWithLinkRenderer)};
_.AJ.Object.defineProperties(oS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$12877_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oS.prototype.dataChanged=oS.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],oS.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.Mz),_.H("design:type",Object)],oS.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],oS.prototype,"noEndpoints",void 0);_.L([_.F({computed:"calculateBylineText(data)"}),_.H("design:type",Object)],oS.prototype,"bylineText",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],oS.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],oS.prototype,"isDownloading",void 0);_.L([_.F({reflectToAttribute:!0,value:0}),_.H("design:type",Number)],oS.prototype,"width",void 0);_.L([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.H("design:type",Object)],oS.prototype,"isDisabled",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oS.prototype,"dataChanged",null);_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"isHovered",null);_.L([_.y({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],oS);
_.G(oS,"ytd-grid-video-renderer",function(){if(CT3!==void 0)return CT3;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CT3=B},{mode:_.sL("kevlar_poly_si_batch_j047")?1:2});var ioI;var Q9=function(){var B=_.z.apply(this,arguments)||this;B.roundedContainer=!0;B.skipRoundingTop=!1;B.disableTopPadding=!1;B.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return B};
_.w(Q9,_.z);Q9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Q9.prototype.onClick=function(B){var c,x=(c=this.data)==null?void 0:c.sourceEndpoint;!_.uv(_.AV(B),this.hostElement,["A".toString()])&&x&&_.aJ(this.hostElement,"yt-navigate",{endpoint:x})};
_.AJ.Object.defineProperties(Q9.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 B;return!((B=this.data)==null||!B.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.data)==null?void 0:B.paragraphMaxLines)!=null?c:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Q9.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q9.prototype,"showVerticalDividers",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q9.prototype,"roundedContainer",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q9.prototype,"skipRoundingTop",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q9.prototype,"disableTopPadding",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Q9.prototype,"amsterdamEnabled",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Q9.prototype,"showMetadataAtTop",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Q9.prototype,"showMetadataBelowTitle",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],Q9.prototype,"hasMenu",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.truncateParagraphs"),_.H("design:type",Object),_.H("design:paramtypes",[])],Q9.prototype,"truncateParagraphs",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.paragraphMaxLines"),_.H("design:type",Number),_.H("design:paramtypes",[])],Q9.prototype,"paragraphMaxLines",null);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],Q9.prototype,"background",null);_.L([_.y({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Q9);
_.G(Q9,"ytd-info-panel-content-renderer",function(){if(ioI!==void 0)return ioI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ioI=B},{mode:_.sL("kevlar_poly_si_batch_j076")?1:2});var A5t;var uDt;var Ddm;var r5t;var F0=function(){return _.z.apply(this,arguments)||this};
_.w(F0,_.z);F0.prototype.computeStyle=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],F0.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],F0.prototype,"style_",void 0);_.L([_.Em({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],F0);
_.G(F0,"yt-channel-thumbnail-with-link-renderer",function(){if(r5t===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Ddm===void 0&&(Ddm=document.createElement("template"));var P=Ddm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);r5t=B}B=r5t;return B},{mode:2});var vT=function(){var B=_.z.apply(this,arguments)||this;B.modernTypography=_.T("web_modern_typography");return B};
_.w(vT,_.z);vT.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"}}}};
vT.prototype.computeTitleStyle=function(B){return B||null};
vT.prototype.computeAvatarStyle=function(B){return B||null};
vT.prototype.computeShowNavigationButton=function(B,c){return!(B==null||!B.navigationButton||c)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.H("design:type",String)],vT.prototype,"titleStyle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.H("design:type",String)],vT.prototype,"avatarStyle",void 0);_.L([_.F(),_.H("design:type",Boolean)],vT.prototype,"hideNavigationButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],vT.prototype,"isModernSd",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],vT.prototype,"modernTypography",void 0);
_.L([_.y({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],vT);
_.G(vT,"ytd-rich-list-header-renderer",function(){if(uDt!==void 0)return uDt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uDt=B},{mode:_.sL("kevlar_poly_si_batch_j058")?1:2});var z8=function(){return _.z.apply(this,arguments)||this};
_.w(z8,_.z);z8.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]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],z8.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],z8.prototype,"isSearch",void 0);_.L([_.y({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],z8);
_.G(z8,"ytd-preview-card-renderer",function(){if(A5t!==void 0)return A5t;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return A5t=B},{mode:1});var RpZ;var SS=function(){return _.z.apply(this,arguments)||this};
_.w(SS,_.z);SS.prototype.configureRendererStamper=function(){return{"data.menu":bO}};
SS.prototype.dataChanged=function(){var B=this.get("colorExtractionPalette.section1Color",this.data);B=_.zF(B);_.k9(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":B})};
SS.prototype.computeCardStyle=function(B){return this.get("style.value",B)||null};
SS.prototype.dataChanged=SS.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],SS.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],SS.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.H("design:type",String)],SS.prototype,"cardStyle",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SS.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],SS);
_.G(SS,"ytd-compact-channel-recommendation-card-renderer",function(){if(RpZ!==void 0)return RpZ;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RpZ=B},{mode:1});var epy;var Bs4;var y9=function(){var B=_.z.apply(this,arguments)||this;B.alignAuto=!1;B.collapsed=!0;B.isToggled=!1;B.alwaysCollapsed=!1;B.canToggle=!0;B.collapsedHeight=80;B.disableToggle=!1;B.alwaysToggleable=!1;B.reversed=!1;B.shouldUseNumberOfLines=!1;B.recomputeOnResize=!1;B.canToggleJobId=0;B.lastReversed=!1;return B};
_.w(y9,_.z);_.a=y9.prototype;_.a.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.a.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.a.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var B=_.Y9(this.hostElement),c=B.childNodes,x=document.createDocumentFragment(),P=B.childNodes.length-1;P>=0;P--)_.Y9(x).appendChild(c[P]);_.T("enable_shadydom_free_scoped_node_methods")?_.aB(this.hostElement).appendChild(x):B.appendChild(x)}};
_.a.ready=function(){var B=this;_.Sr(function(){B.initChildrenObserver()},1)};
_.a.detached=function(){this.detachObserver()};
_.a.toggle=function(B,c){this.canToggle&&(this.isToggled=c,_.aJ(this.hostElement,"yt-refit"),B&&B.stopPropagation())};
_.a.reset=function(){this.childrenChanged()};
_.a.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.a.computeIsMoreVisible=function(B,c){return B&&!c};
_.a.computeShouldUseNumberOfLines=function(B){try{return!!B&&window.CSS.supports("-webkit-line-clamp","1")}catch(c){}return!1};
_.a.computeIsLessVisible=function(B,c){return B&&c};
_.a.observeCollapsedHeightAndMaxLines=function(){var B=this.collapsedHeight,c=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.k9(this.hostElement,{"--ytd-expander-max-lines":""+c,"--ytd-expander-collapsed-height":""}):_.k9(this.hostElement,{"--ytd-expander-collapsed-height":B+"px","--ytd-expander-max-lines":""})};
_.a.handleMoreTap=function(B){this.disableToggle||(_.aJ(this.hostElement,"yt-expander-more-tapped"),this.toggle(B,!0))};
_.a.handleLessTap=function(B){_.aJ(this.hostElement,"yt-expander-less-tapped");this.toggle(B,!1)};
_.a.initChildrenObserver=function(){var B=this;this.observer=new MutationObserver(function(){B.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.a.childrenChanged=function(){var B=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){gV(function(){B.canToggleJobId=0;B.calculateCanCollapse()})}))};
_.a.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};
_.a.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.a.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("collapsed-changed",this.collapsed))};
_.a.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("is-toggled-changed",this.isToggled))};
_.a.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("can-toggle-changed",this.canToggle))};
_.AJ.Object.defineProperties(y9.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
y9.prototype.canToggleChangedForBinding=y9.prototype.canToggleChangedForBinding;y9.prototype.isToggledChangedForBinding=y9.prototype.isToggledChangedForBinding;y9.prototype.collapsedChangedForBinding=y9.prototype.collapsedChangedForBinding;y9.prototype.observeCollapsedHeightAndMaxLines=y9.prototype.observeCollapsedHeightAndMaxLines;y9.prototype.onIronResize=y9.prototype.onIronResize;y9.prototype.reversedChanged=y9.prototype.reversedChanged;y9.prototype.toggledChanged=y9.prototype.toggledChanged;
y9.prototype.alwaysToggleableChanged=y9.prototype.alwaysToggleableChanged;_.L([_.J(_.Oc),_.H("design:type",Object)],y9.prototype,"ironResizableBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],y9.prototype,"alignAuto",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],y9.prototype,"collapsed",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"isToggled",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"alwaysCollapsed",void 0);
_.L([_.F(),_.H("design:type",Object)],y9.prototype,"canToggle",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"collapsedHeight",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"disableToggle",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"alwaysToggleable",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"reversed",void 0);_.L([_.F(),_.H("design:type",Number)],y9.prototype,"maxNumberOfLines",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.H("design:type",Object)],y9.prototype,"shouldUseNumberOfLines",void 0);_.L([_.F(),_.H("design:type",Object)],y9.prototype,"recomputeOnResize",void 0);_.L([_.jr("#content"),_.H("design:type",HTMLDivElement)],y9.prototype,"content",void 0);_.L([_.CF("alwaysToggleable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"alwaysToggleableChanged",null);
_.L([_.CF("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"toggledChanged",null);_.L([_.Q("canToggleJobId"),_.H("design:type",Object),_.H("design:paramtypes",[])],y9.prototype,"isResetting",null);_.L([_.bF("reversed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"reversedChanged",null);
_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"onIronResize",null);_.L([_.bF("maxNumberOfLines","collapsedHeight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"observeCollapsedHeightAndMaxLines",null);_.L([_.bF("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"collapsedChangedForBinding",null);
_.L([_.bF("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"isToggledChangedForBinding",null);_.L([_.bF("canToggle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y9.prototype,"canToggleChangedForBinding",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-expander"})],y9);
_.G(y9,"ytd-expander",function(){if(Bs4!==void 0)return Bs4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Bs4=B},{mode:1});var G8=function(){return _.z.apply(this,arguments)||this};
_.w(G8,_.z);G8.prototype.computeIsCarousel=function(B){return!!B.isCarousel};
G8.prototype.observeLightsourcePalette=function(){var B,c=(B=this.data)==null?void 0:B.vibrantsourceColorPaletteData;c&&_.E9(this.hostElement,c)};
G8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
G8.prototype.observeLightsourcePalette=G8.prototype.observeLightsourcePalette;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],G8.prototype,"data",void 0);_.L([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],G8.prototype,"isCarousel",void 0);
_.L([_.bF("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],G8.prototype,"observeLightsourcePalette",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],G8);
_.G(G8,"ytd-media-upsell-renderer",function(){if(epy!==void 0)return epy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return epy=B},{mode:2});var c_y;var MB=function(){var B=_.z.apply(this,arguments)||this;B.JSC$12905_playerEvents=new Map;B.listeningToPlayer=!1;B.startX=0;B.active=!1;B.shouldShowButtons=_.T("web_buttons_hidden_killswitch");B.isHighlighted=!1;B.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");B.modern=_.T("kevlar_modern_sd");B.enableProblemWalkthrough=_.T("problem_walkthrough_sd");return B};
_.w(MB,_.z);_.a=MB.prototype;
_.a.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}}}}}};
_.a.created=function(){this.JSC$12905_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.a.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.$9(this,this.onRepeatButtonToggle));_.T("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.$9(this,this.onActiveUpdate))};
_.a.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.$9(this,this.onRepeatButtonToggle));_.T("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.$9(this,this.onActiveUpdate))};
_.a.onDataChanged=function(){this.removePlayerListeners()};
_.a.onColorPaletteChange=function(){var B={},c;if(_.Iu()==="USER_INTERFACE_THEME_DARK"&&((c=this.data)==null?0:c.darkColorPalette)){var x=this.data.darkColorPalette;B["--ytd-macro-markers-list-item-background-color"]=_.SF(this.get("section2Color",x))}else{var P;_.Iu()==="USER_INTERFACE_THEME_LIGHT"&&((P=this.data)==null?0:P.lightColorPalette)&&(x=this.data.lightColorPalette,B["--ytd-macro-markers-list-item-background-color"]=_.SF(this.get("section3Color",x)))}x?(B["--ytd-macro-markers-list-item-title-color"]=
_.SF(this.get("primaryTitleColor",x)),B["--ytd-macro-markers-list-item-secondary-color"]=_.SF(this.get("secondaryTitleColor",x)),B["--ytd-macro-markers-list-item-timestamp-background-color"]=_.SF(this.get("section1Color",x)),this.customButtonProperties={customColors:{color:_.SF(this.get("primaryTitleColor",x))}},this.useColorSampling=!0):(B["--ytd-macro-markers-list-item-background-color"]="initial",B["--ytd-macro-markers-list-item-title-color"]="initial",B["--ytd-macro-markers-list-item-secondary-color"]=
"initial",B["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.k9(this.hostElement,B)};
_.a.onEndpointMouseDown=function(B){this.startX=B.clientX};
_.a.onEndpointClick=function(B){var c=this,x,P,Y;return _.X(function(g){if(g.nextAddress==1){if(c.startX!==B.clientX)return B.preventDefault(),g.return();c.data&&c.ytRendererBehavior.logExplicitClick(c.data);if(!c.seekWithAnimationOnClick)return g.jumpTo(0);if(B.button!==0||B.shiftKey||B.altKey||B.metaKey||B.ctrlKey||_.uv(_.AV(B),c.hostElement,["BUTTON".toString()]))return g.return();B.stopPropagation();B.preventDefault();return c.data?_.K(g,_.Bv().getPlayerPromise(),3):g.return()}x=g.yieldResult;
Y=(P=_.t(c.data.onTap,_.fN))==null?void 0:P.startTimeSeconds;Y!==void 0&&x.seekToTimeWithAnimation(Y*1E3,_.iG(c.data.title));_.Kq(g)})};
_.a.computeLayout=function(B){return B};
_.a.computeIsHighlighted=function(B){return!!B};
_.a.computeCarouselType=function(B){return B};
_.a.hideModernCarousel=function(B){return this.modern&&this.hideThumbnail(B)};
_.a.hideThumbnail=function(B){return this.enableProblemWalkthrough&&B!==null&&B==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.a.onRepeatButtonToggle=function(B){var c=this;B.detail.toggled&&_.Bv().getPlayerPromise().then(function(x){c.ytPlayerListenerBehavior.listenToPlayerEvents(x,c.JSC$12905_playerEvents);c.listeningToPlayer=!0})};
_.a.onLoopRangeChange=function(B){var c=_.Y9(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(c){var x=c.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",c.polymerController.data);if(x){var P=Number(x.endTimeMs);if(Number(x.startTimeMs)!==(B==null?void 0:B.startTimeMs)||P!==(B==null?void 0:B.endTimeMs))c.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.a.removePlayerListeners=function(){var B=this;this.listeningToPlayer&&_.Bv().getPlayerPromise().then(function(c){B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,B.JSC$12905_playerEvents);B.listeningToPlayer=!1})};
_.a.onActiveUpdate=function(B){this.active=B.detail.active};
MB.prototype.onColorPaletteChange=MB.prototype.onColorPaletteChange;MB.prototype.onDataChanged=MB.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],MB.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],MB.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],MB.prototype,"useCustomColors",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],MB.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],MB.prototype,"shouldShowButtons",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.H("design:type",String)],MB.prototype,"layout",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.H("design:type",Object)],MB.prototype,"isHighlighted",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],MB.prototype,"useHighlightStyling",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],MB.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],MB.prototype,"enableProblemWalkthrough",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.H("design:type",String)],MB.prototype,"carouselType",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],MB.prototype,"useColorSampling",void 0);_.L([_.F(),_.H("design:type",Boolean)],MB.prototype,"seekWithAnimationOnClick",void 0);_.L([_.F(),_.H("design:type",Object)],MB.prototype,"customButtonProperties",void 0);
_.L([_.jr("#repeat-button"),_.H("design:type",HTMLElement)],MB.prototype,"repeatButton",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MB.prototype,"onDataChanged",null);_.L([_.bF("data.lightColorPalette","data.darkColorPalette"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MB.prototype,"onColorPaletteChange",null);_.L([_.y({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],MB);
_.G(MB,"ytd-macro-markers-list-item-renderer",function(){if(c_y!==void 0)return c_y;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return c_y=B},{mode:1});var xKS;var P83;var L8=function(){var B=_.z.apply(this,arguments)||this;B.modernTypography=_.T("web_modern_typography");return B};
_.w(L8,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],L8.prototype,"modernTypography",void 0);_.L([_.F(),_.H("design:type",Object)],L8.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],L8);
_.G(L8,"ytd-title-and-button-list-header-renderer",function(){if(P83!==void 0)return P83;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return P83=B},{mode:1});var YDy;var aRm=new _.BL("BUTTON_RENDERER_WIZ_TOKEN"),g$m=new _.BL("BUTTON_RENDERER_TOKEN");_.Zf=_.rM(function(B){var c=_.cp().resolve(_.Bp(aRm));if(c)return _.U(c,Object.assign({},B));var x=_.cp().resolve(g$m);return x?_.U(Xwd,null,function(){return _.U(AP,null,function(){var P,Y,g,k,n,b,d,q,C,h,V,N;return void x(B.data(),{onButtonClickCallback:B.onButtonClickCallback,shouldShowIcons:(P=B.shouldShowIcons)==null?void 0:P.call(B),icon:(Y=B.icon)==null?void 0:Y.call(B),processAllEndpoints:(g=B.processAllEndpoints)==null?void 0:g.call(B),preventDefault:(k=B.preventDefault)==null?void 0:k.call(B),
stopPropagation:(n=B.stopPropagation)==null?void 0:n.call(B),disableButtonRendererClickHandling:(b=B.disableButtonRendererClickHandling)==null?void 0:b.call(B),className:(d=B.className)==null?void 0:d.call(B),buttonOverrides:(q=B.buttonOverrides)==null?void 0:q.call(B),forceModernIconButton:(C=B.forceModernIconButton)==null?void 0:C.call(B),isSubscribe:(h=B.isSubscribe)==null?void 0:h.call(B),alignByText:(V=B.alignByText)==null?void 0:V.call(B),forceDisabled:(N=B.forceDisabled)==null?void 0:N.call(B)})})}):
_.U(_.at,null)},"ba");
_.Zf.idomCompat=!0;var sL5=_.rM(function(B){var c=B.data,x=_.A9(B.useSquareAspectRatio,!1);return _.U("dismissed-mini-game-card-view-model",null,_.U(_.m,{cond:function(){var P,Y;return(P=c().responseText)==null?void 0:(Y=P.runs)==null?void 0:Y.length},
then:function(){var P={};return _.U("div",{class:_.Kw("yt-mini-game-card-view-model__dismissed-card",(P["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!x()},P["yt-mini-game-card-view-model--dismissed-square-card"]=x,P))},_.U("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.U(_.m,{cond:function(){return c().responseText.runs[0].text},
then:function(Y){return _.U("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Y},Y)}}),_.U(_.IF,{data:function(){return c().buttons}},{buttonRenderer:_.Zf,
buttonViewModel:_.Q7})))}}))},"ca");var bvW=_.rM(function(B){B=_.uF(B,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var c=B.data,x=B.useFullWidth,P=B.isDesktopWeb,Y=B.addSearchResultTopMargin,g=function(){return c().layout},k=function(){return c().title},n=function(){return c().metadataText?c().metadataText:c().genre},b=function(){return c().channelName},d=function(){return c().image},q=function(){return c().colorPalette},C=function(){return c().actionButton},h=function(){return c().overflowButton},
V=function(){return c().avatar},N=function(){var M={};
M=_.Kw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(M["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return P()},M));
return _.U("div",{class:M},_.U(pE0,{imageData:d,colorPalette:q}),_.U(kDQ,{onTap:function(){return c().onTap},
imageData:d,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.U(_.m,{cond:function(){return!P()},
then:function(){return _.U(_.at,null,_.U(XE5,{layout:g,colorPalette:q,isDesktopWeb:P,overflowButton:h,avatar:V,onTap:function(){return c().onTap},
genre:n,title:k,channelName:b,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.U(HT,{actionButton:C}))}}))},l=function(){var M={};
M=_.Kw((M["yt-mini-game-card-view-model--search-result-desktop"]=function(){return P()},M["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!P()},M["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Y()},M));
return _.U("div",{class:M},N(),_.U($KF,{description:function(){return c().description},
isDesktopWeb:P,title:k,genre:n,onTap:function(){return c().onTap},
actionButton:C,overflowButton:h,avatar:V,channelName:b}))},E=function(){var M=function(){var Z;
return(Z=c().entityRedesignExperiments)==null?void 0:Z.changePlayablesLayoutWithCta},f={};
f=_.Kw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(f["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return M()},f["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return P()},f["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return P()&&c().width===135},f["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return P()},f["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!M()&&P()&&c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},f["yt-mini-game-card-view-model--big-metadata-font"]=function(){return c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},f["yt-mini-game-card-view-model--use-full-width"]=function(){return x()},f["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!C()},f));
return _.U("div",{class:f},_.U(_.m,{cond:function(){return M()},
then:function(){return _.U(_.at,null,_.U(n$I,{entityRedesignExperiments:function(){return c().entityRedesignExperiments},
colorPalette:q,isDesktopWeb:P,onTap:function(){return c().onTap},
accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
actionButton:C,imageData:d}),_.U(XE5,{layout:g,colorPalette:q,isDesktopWeb:P,overflowButton:h,avatar:V,onTap:function(){return c().onTap},
genre:n,title:k,channelName:b,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.U(_.m,{cond:function(){return!!M()===!1&&C()},
then:function(){return _.U(HT,{actionButton:C})}}))},
else:function(){return _.U(_.at,null,_.U(pE0,{imageData:d,colorPalette:q}),_.U(kDQ,{onTap:function(){return c().onTap},
imageData:d,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.U(XE5,{layout:g,colorPalette:q,isDesktopWeb:P,overflowButton:h,avatar:V,onTap:function(){return c().onTap},
genre:n,title:k,channelName:b,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.U(HT,{actionButton:C}))}}))},S=function(){var M={};
M=_.Kw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(M["yt-mini-game-card-view-model--square-card-desktop"]=function(){return P()},M["yt-mini-game-card-view-model--use-full-width"]=function(){return x()},M));
return _.U("div",{class:M},_.U(kDQ,{onTap:function(){return c().onTap},
imageData:d,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.U(XE5,{layout:g,colorPalette:q,isDesktopWeb:P,overflowButton:h,avatar:V,onTap:function(){return c().onTap},
genre:n,title:k,channelName:b,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}))};
return _.U("mini-game-card-view-model",{class:B.className},_.U(_.tR,null,_.U(_.Tu,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return E()}),_.U(_.Tu,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return S()}),_.U(_.Tu,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return l()})))},"da");
bvW.idomCompat=!0;var HT=_.rM(function(B){var c=_.A9(B.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.U(_.IF,{data:B.actionButton},{buttonViewModel:function(x){return _.U("div",{class:c},_.U(_.Q7,{data:x.data}))}})},"ea"),kDQ=_.rM(function(B){var c=B.onTap;
var x=B.imageData;var P=B.accessibilityText;var Y=B.overlayBadgeText;var g=B.iconName;var k=B.unplayableInlinePlaybackIconName;B=B.isDesktopWeb;return _.U(_.$J,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:c},_.U(_.D9,{data:x,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(P==null?void 0:P())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.U(KJt,{overlayBadgeText:Y,iconName:g,unplayableInlinePlaybackIconName:k,isDesktopWeb:B}))},"fa"),KJt=_.rM(function(B){var c=B.overlayBadgeText;
var x=B.iconName;var P=B.unplayableInlinePlaybackIconName;var Y=B.isDesktopWeb;return _.U("div",{class:"yt-mini-game-card-view-model__badge-container"},_.U(_.m,{cond:x,then:function(g){return _.U("div",{class:"yt-mini-game-card-view-model__badge"},_.U("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.U(_.Vf,{icon:g,className:"yt-mini-game-card-view-model__icon"}),_.U("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},c)))}}),_.U(_.m,{cond:function(){return!x()&&
c()},
then:function(){return _.U("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},c)}}),_.U(_.m,{cond:function(){return P()&&Y()},
then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.U(_.Vf,{icon:P,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),pE0=_.rM(function(B){var c=B.colorPalette;
var x=B.imageData;var P=function(){return c().vibrantColorPalette?c().vibrantColorPalette.section2Color:c().sectionTwoColor};
return _.U(_.at,null,_.U("div",{class:"yt-mini-game-card-view-model__background-base",style:_.TU({"background-color":function(){return yy(P(),"1")}})}),_.U("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.TU({"background-image":function(){return"url("+x().sources[0].url+")"}})}),_.U("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.TU({background:function(){return"linear-gradient(180deg,\n    "+yy(P(),".8")+" 0%,\n    "+yy(P(),".4")+" 25%,\n    "+yy(c().vibrantColorPalette?c().vibrantColorPalette.section4Color:c().sectionFourColor,".8")+" 100%)"}})}))},"ha"),XE5=_.rM(function(B){var c=B.layout;
var x=B.colorPalette;var P=B.overflowButton;var Y=B.avatar;var g=B.onTap;var k=B.title;var n=B.channelName;var b=B.entityRedesignExperiments;var d=B.genre;var q=function(){var h;return c()!=="MINI_APP_LAYOUT_SQUARE"&&((h=x())==null?0:h.textPrimaryColor)?"color: "+yy(x().textPrimaryColor,".7"):""},C=function(){var h;
return b==null?void 0:(h=b())==null?void 0:h.changePlayablesLayoutWithCta};
return _.U("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.U(_.m,{cond:Y,then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__avatar"},_.U(_.IF,{data:Y},{avatarViewModel:_.IS}))}}),_.U(_.$J,{command:g,
className:"yt-mini-game-card-view-model__metadata-details"},_.U("h3",{class:"yt-mini-game-card-view-model__title",title:k},k),_.U(_.m,{cond:Y,then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.U("span",{class:"yt-mini-game-card-view-model__genre",title:n,style:q},n),_.U("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:q},d))},
else:function(){return _.U(_.m,{cond:C,then:function(){return _.U("span",{class:"yt-mini-game-card-view-model__genre",title:d},d)},
else:function(){return _.U("span",{class:"yt-mini-game-card-view-model__genre",title:d,style:q},d)}})}})),_.U("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.U(_.IF,{data:P},{buttonViewModel:function(h){var V=h.data;
return _.U(_.Q7,{data:function(){return Object.assign({},V(),{customFontColor:C()?void 0:V().customFontColor})}})}})))},"ia"),n$I=_.rM(function(B){var c=B.entityRedesignExperiments;
var x=B.colorPalette;var P=B.isDesktopWeb;var Y=B.onTap;var g=B.accessibilityText;var k=B.overlayBadgeText;var n=B.iconName;var b=B.unplayableInlinePlaybackIconName;var d=B.actionButton;B=B.imageData;var q=function(){var C;return c==null?void 0:(C=c())==null?void 0:C.changePlayablesLayoutWithCta};
return _.U("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.U(pE0,{imageData:B,colorPalette:x}),_.U(kDQ,{onTap:Y,imageData:B,accessibilityText:g,overlayBadgeText:k,iconName:n,unplayableInlinePlaybackIconName:b,isDesktopWeb:P}),_.U(_.m,{cond:function(){return(q==null?void 0:q())&&(d==null?void 0:d())},
then:function(){return _.U(HT,{actionButton:d})}}))},"ja"),$KF=_.rM(function(B){var c=B.description;
var x=B.isDesktopWeb;var P=B.title;var Y=B.genre;var g=B.onTap;var k=B.actionButton;var n=B.overflowButton;var b=B.avatar;B=B.channelName;var d={};d=_.Kw("yt-mini-game-card-view-model--search-result-metadata-wrapper",(d["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=x,d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=x,d["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!x()},d));
var q={};q=_.Kw("yt-mini-game-card-view-model__search-result-info-row",(q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!x()},q));
return _.U("div",{class:d},_.U("div",{class:q},_.U(_.$J,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.U("h3",{class:"yt-mini-game-card-view-model__title",title:P},P),_.U("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)),_.U(HT,{actionButton:k,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.U("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.U(_.IF,{data:n},{buttonViewModel:_.Q7}))),_.U("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.U("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.U("div",{class:"yt-mini-game-card-view-model__avatar"},_.U(_.IF,{data:b},{avatarViewModel:function(C){var h=C.data;return _.U(_.IS,{data:function(){return Object.assign({},h(),{avatarImageSize:x()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.U(_.$J,{command:g,
className:"yt-mini-game-card-view-model__description"},_.U("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},B)),_.U(_.$J,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.U("div",null)))),_.U(_.m,{cond:x,then:function(){return _.U(_.$J,{command:g,className:"yt-mini-game-card-view-model__description"},c)}}))},"ka");_.xU(bvW,"mini-game-card-view-model",{props:{data:_.rk,className:_.rk,useFullWidth:_.rk,isDesktopWeb:_.rk,addSearchResultTopMargin:_.rk}});_.xU(sL5,"dismissed-mini-game-card-view-model",{props:{data:_.rk,useSquareAspectRatio:_.rk}});var f8=function(){var B=_.z.apply(this,arguments)||this;B.isSearch=!1;B.isRichGrid=!1;return B};
_.w(f8,_.z);_.a=f8.prototype;_.a.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.a.dismissibleItemOnYtServiceRequestSent=function(B,c){c.actions&&this.dismissibleItemProcessActions(B,c.actions)};
_.a.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.a.dataChanged=function(){this.dismissibleItemReset()};
_.a.dismissibleItemProcessActions=function(B,c){for(var x=0;x<c.length;x++){var P=c[x];_.t(P,_.t3)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.t(P,_.t3)),B.stopPropagation())}};
_.a.dismissibleItemHandleReplaceEnclosingAction=function(B){this.dismissedRenderer=B.item;this.isDismissed=!0};
_.AJ.Object.defineProperties(f8.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var B;return!!this.data&&!((B=this.dismissedRenderer)==null?0:B.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.dismissedRenderer)==null||!B.notificationMultiActionRenderer)}}});
f8.prototype.dataChanged=f8.prototype.dataChanged;f8.prototype.dismissibleItemOnRequestSent=f8.prototype.dismissibleItemOnRequestSent;f8.prototype.dismissibleItemOnYtServiceRequestSent=f8.prototype.dismissibleItemOnYtServiceRequestSent;_.L([_.F(),_.H("design:type",Object)],f8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],f8.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],f8.prototype,"isDismissed",void 0);
_.L([_.F(),_.H("design:type",Object)],f8.prototype,"dismissedRenderer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],f8.prototype,"isRichGrid",void 0);_.L([_.Q("data.layout"),_.H("design:type",Object),_.H("design:paramtypes",[])],f8.prototype,"useSquareAspectRatio",null);_.L([_.Q("data","dismissedRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],f8.prototype,"showCard",null);
_.L([_.Q("data","dismissedRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],f8.prototype,"showDismissed",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],f8.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],f8.prototype,"dismissibleItemOnRequestSent",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f8.prototype,"dataChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],f8);
_.G(f8,"ytd-mini-game-card-view-model",function(){if(YDy!==void 0)return YDy;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return YDy=B},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var jLW;var UKt;var iO=function(){return _.u4.apply(this,arguments)||this};
_.w(iO,_.u4);iO.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
iO.prototype.getContinuationUrl=function(B){var c={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.AR(B,c)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iO.prototype,"data",void 0);_.L([_.Em({is:"yt-reload-continuation",noInjection:!0})],iO);var dK5;var qDm;var Af=function(){var B=_.z.apply(this,arguments)||this;B.notificationData={};return B};
_.w(Af,_.z);_.a=Af.prototype;_.a.isMenuExpanded=function(B){return B&&B.length<=1?"undefined":"false"};
_.a.dataChanged_=function(){this.selected=void 0;var B=this.computeSelectedIndex_(this.data);B>=0&&(this.selected=B);B=this.data&&this.data.length>1;_.gM(this.hostElement,"has-items",B);_.Y9(this.hostElement).querySelector("#label").tabIndex=B?0:-1};
_.a.onDropdownOpen=function(){var B=_.Wf();if(this.parentTrackingParams&&this.data){var c=_.VF(this.parentTrackingParams);this.data.forEach(function(x){B&&c&&x.trackingParams&&(x=_.VF(x.trackingParams),_.Gq(B,c,x),_.Z1(B,[x]))})}else this.parentTrackingParams||_.Ob(new _.mc("No parent tracking params passed in for yt-dropdown-menu."))};
_.a.hasNotification=function(B){var c;if(B.targetId&&((c=this.notificationData)==null?0:c.targetId)){var x;return B.targetId===((x=this.notificationData)==null?void 0:x.targetId)}};
_.a.computeSelectedIndex_=function(B){if(B)for(var c=0,x=B.length;c<x;c++)if(B[c].selected)return c;return-1};
_.a.computeLabel_=function(B){return this.data&&B!=void 0?this.data[B].title:""};
_.a.computeShowIcon_=function(B,c){return!c&&!!B};
_.a.computeVerticalOffset_=function(B){return B?36:0};
_.a.computeEndpoint_=function(B){return B.endpoint||B.navigationEndpoint};
_.a.onLabelClick_=function(B){this.data&&this.data.length<=1?B.stopPropagation():this.menuExpanded="true"};
_.a.onIronActivate_=function(B){B=B.detail.item;var c=_.Y9(this.hostElement).querySelector("#repeat").itemForElement(B);if(c&&c.trackingParams){var x=_.Wf(),P=_.VF(c.trackingParams);x&&_.fW(x,P)}if(c&&c.serviceEndpoint)_.T("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(c.serviceEndpoint):_.kC(this.hostElement,[c.serviceEndpoint]),_.aJ(this.hostElement,"yt-playlist-reloading");else a:{if((c=B.querySelector("yt-supported-renderers"))&&
(c=c.rendererElement)&&c.is=="yt-reload-continuation"){c.trigger();break a}(B=B.querySelector("yt-reload-continuation"))&&B.trigger()}};
_.a.onTap_=function(B){B.preventDefault()};
_.a.onItemTap_=function(B){this.ytEndpointBehavior.onEndpointTap_(B)};
_.a.onLinkFocus_=function(B){try{var c=B.target}catch(P){}if(c){var x=c.querySelector("tp-yt-paper-item");x&&_.yo(this,"focus",function(){x.focus()})}};
_.a.onMenuClose_=function(){this.menuExpanded="false"};
_.a.isLabelIconActive_=function(B){return B==="true"};
_.a.computeHasSubtitle_=function(B){return!!B};
_.a.computeHrefForItem_=function(B){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(B))};
_.a.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
_.AJ.Object.defineProperties(Af.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Af.prototype.onMenuClose_=Af.prototype.onMenuClose_;Af.prototype.onTap_=Af.prototype.onTap_;Af.prototype.onIronActivate_=Af.prototype.onIronActivate_;Af.prototype.onDropdownOpen=Af.prototype.onDropdownOpen;Af.prototype.dataChanged_=Af.prototype.dataChanged_;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Af.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],Af.prototype,"ytEndpointBehavior",void 0);
_.L([_.F(),_.H("design:type",Array)],Af.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Af.prototype,"parentTrackingParams",void 0);_.L([_.F(),_.H("design:type",Object)],Af.prototype,"selected",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Af.prototype,"useLabel",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Af.prototype,"useComputedAriaLabel",void 0);_.L([_.F(),_.H("design:type",String)],Af.prototype,"icon",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],Af.prototype,"iconLabel",void 0);_.L([_.F(),_.H("design:type",String)],Af.prototype,"ariaLabel",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Af.prototype,"disabled",void 0);_.L([_.F({computed:"isMenuExpanded(data)"}),_.H("design:type",String)],Af.prototype,"menuExpanded",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Af.prototype,"closeOnActivate",void 0);
_.L([_.F({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.H("design:type",Boolean)],Af.prototype,"modernButtons",void 0);_.L([_.F(),_.H("design:type",Object)],Af.prototype,"notificationData",void 0);_.L([_.Q("ariaLabel, selected"),_.F(),_.H("design:type",String),_.H("design:paramtypes",[])],Af.prototype,"computedAriaLabel",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"dataChanged_",null);
_.L([_.nF("paper-dropdown-open"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Af.prototype,"onDropdownOpen",null);_.L([_.nF("iron-activate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Af.prototype,"onIronActivate_",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Af.prototype,"onTap_",null);
_.L([_.nF("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Af.prototype,"onMenuClose_",null);_.L([_.Em({is:"yt-dropdown-menu",disableElementRegistration:!0})],Af);
_.G(Af,"yt-dropdown-menu",function(){if(qDm===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;dK5===void 0&&(dK5=document.createElement("template"));var P=dK5;x.call(c,P.content.cloneNode(!0),B.content.firstChild);qDm=B}B=qDm;return B},{mode:2});var uO=function(){var B=_.z.apply(this,arguments)||this;B.hasNotification=!1;return B};
_.w(uO,_.z);uO.prototype.computeId=function(B){return B};
uO.prototype.computeHorizontalAlign=function(B){return B?"right":"left"};
uO.prototype.computeAccessibilityLabel=function(B){var c,x;return((c=B.accessibility)==null?void 0:(x=c.accessibilityData)==null?void 0:x.label)||null};
uO.prototype.notificationDataChanged=function(){var B;this.hasNotification=!!this.notificationData&&!((B=this.data)==null?0:B.icon)};
uO.prototype.notificationDataChanged=uO.prototype.notificationDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Ly.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],uO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uO.prototype,"data",void 0);_.L([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],uO.prototype,"id",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],uO.prototype,"isRightAligned",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],uO.prototype,"disabled",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],uO.prototype,"closeOnActivate",void 0);_.L([_.F(),_.H("design:type",Object)],uO.prototype,"notificationData",void 0);_.L([_.F(),_.H("design:type",Object)],uO.prototype,"hasNotification",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],uO.prototype,"useComputedAriaLabel",void 0);_.L([_.bF("notificationData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uO.prototype,"notificationDataChanged",null);_.L([_.Em({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],uO);
_.G(uO,"yt-sort-filter-sub-menu-renderer",function(){if(UKt===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;jLW===void 0&&(jLW=document.createElement("template"));var P=jLW;x.call(c,P.content.cloneNode(!0),B.content.firstChild);UKt=B}B=UKt;return B},{mode:2});_.BX(v$O);
var C85=_.rM(function(B){var c=B.children;var x=B.className;var P=B.style;var Y=B.role;var g=B.ariaSelected;var k=B.ariaLabel;var n=B.ariaHidden;var b=B.ariaLabelledby;var d=B.ariaDescribedby;var q=B.command;var C=B.elementsCommand;var h=B.forceNewState;var V=B.tabIdentifier;var N=B.target;var l=B.tabIndex;var E=B.stopPropagation;B=_.db(function(){var S=_.S_({innertubeCommand:q==null?void 0:q(),elementsCommand:C==null?void 0:C(),forceNewState:h==null?void 0:h(),stopPropagation:(E==null?void 0:E())!==
!1});S||(S={});S["aria-hidden$"]=n==null?void 0:n();var M;S.tabindex$=(M=l==null?void 0:l())!=null?M:S.tabindex$;var f;S["force-new-state$"]=(f=h==null?void 0:h())!=null?f:S["force-new-state$"];var Z;S.role$=(Z=Y==null?void 0:Y())!=null?Z:S.role$;var u;S["aria-hidden$"]=(u=n==null?void 0:n())!=null?u:S["aria-hidden$"];var e;S.target$=(e=N==null?void 0:N())!=null?e:S.target$;return S},void 0,"SU0Mnc");
return _.U(_.$J,{aTagConfig:B,className:x,style:P,ariaLabel:k,ariaLabelledby:b,ariaDescribedby:d,ariaSelected:g,tabIdentifier:V},c)},"la");var hi9=_.dV(zi7);_.BX(zi7);_.xU(hi9,"place-data-view-model",{props:{data:_.rk}});var mKI=new _.BL("INLINE_PLAYBACK_HOOK_TOKEN");var Ts4=function(B){this.setActiveSlideIndex=B;this.jobIds=[];this.isSlideshowPlaying=!1},wEI=function(B,c){B.isSlideshowPlaying||(B.isSlideshowPlaying=!0,VGd(B),tG4(B,c,0))},VGd=function(B){_.s9(_.EE,function(){B.setActiveSlideIndex(0)},1)},tG4=function(B,c,x){B.jobIds.push(_.s9(_.EE,function(){var P=x<c-1?x+1:0;
B.setActiveSlideIndex(P);tG4(B,c,P)},1800))};var Ns5=new _.BL("IMAGE_ON_LOAD_HANDLER_TOKEN");var IRS=_.rM(function(B){return _.U("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.U(_.m,{cond:function(){var c;return(c=B.data())==null?void 0:c.thumbnail},
then:function(c){return _.U(_.D9,{data:c,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.J_F=_.rM(function(B){var c=B.data;var x=B.lockupExperiments;B={};return _.U("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.U("div",{class:_.Kw("ytThumbnailOverlayButtonViewModelButton",(B.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var P;return x&&((P=x())==null?void 0:P.useLegacySizedIconButton)},B))},_.U(_.IF,{data:function(){return c().overlayButton}},{buttonViewModel:function(P){return _.U(_.Q7,{data:P.data,
buttonOverrides:function(){var Y;return x&&((Y=x())==null?0:Y.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.J_F.idomCompat=!0;var WJm=_.rM(function(B){return _.U("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.qe(function(c){c.preventDefault();return!1})},_.U(_.IF,{data:function(){return B.data().buttons}},{toggleButtonViewModel:function(c){return _.U("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.U(_.Jb,{data:c.data}))}}))},"oa");
WJm.idomCompat=!0;var lR0=_.rM(function(B){var c=function(){var x;return((x=_.t(B.data().rendererContext,_.T3))==null?void 0:x.label)||""};
return _.U("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.U(_.m,{cond:function(){return B.data().image},
then:function(){return _.U("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.U(_.D9,{data:function(){return B.data().image},
alt:c}))}}),_.U(_.m,{cond:function(){return B.data().text},
then:function(){return _.U("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return B.data().text})}}))},"pa");_.Df=_.rM(function(B){var c=[],x=function(){var h,V;return wZ7((h=B.width)==null?void 0:h.call(B),(V=B.height)==null?void 0:V.call(B))},P=_.cp().resolve(_.Bp(Ns5)),Y=_.Ho("yt-thumbnail-view-model",function(){c.push("elRef.value set");
var h;(h=B.playbackRef)==null||h.call(B,{thumbnailElRef:Y,thumbnail:B.data().image,thumbnailOverlays:B.data().overlays,thumbnailSize:x()})});
_.lk(function(){c.push("onInit");_.lP(function(){c.push("onCleanup")})});
var g=_.FB(y_C),k=function(){var h,V;return(V=(h=B.aspectRatio)==null?void 0:h.call(B))!=null?V:0},n=function(){return(B.data().image?_.cN7(B.data().image):k())<=1&&k()===0},b=function(){return n()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},d=function(){Y.value||_.Ob(new _.mc("Thumbnail elRef.value is null",c.join("\n")));
P&&Y.value&&P(Y.value)},q=function(){var h,V;
return((h=B.hovered)==null?void 0:h.call(B))&&x()!=="large"&&((V=B.data().overlays)==null?void 0:V.some(function(N){return _.t(N,VPZ)}))},C={};
return _.U("yt-thumbnail-view-model",{class:_.Kw("yt-thumbnail-view-model",B.className,function(){return LJQ(k())},function(){var h,V;
a:{var N=x(),l=(h=B.disableRounding)==null?void 0:h.call(B);h=(V=B.isClip)==null?void 0:V.call(B);if(!l&&!h)switch(N){case "large":V="yt-thumbnail-view-model--large";break a;case "small":V="yt-thumbnail-view-model--small";break a;default:V="yt-thumbnail-view-model--medium";break a}V=void 0}return V},(C["yt-thumbnail-view-model--cinematic"]=n,C)),
style:_.TU({"background-color":function(){var h,V=n()?(h=B.data().backgroundColor)==null?void 0:h.lightTheme:void 0;return V?yy(V,"1"):void 0}}),
el:Y},_.U(_.m,{cond:n,then:function(){return _.U("div",{class:"yt-thumbnail-view-model__blurred-image"},_.U(_.D9,{data:function(){return B.data().image},
alt:"",contentMode:b,targetWidth:B.width,onload:d}))}}),_.U("div",{class:"yt-thumbnail-view-model__image"},_.U(_.D9,{data:function(){return B.data().image},
alt:"",contentMode:b,targetWidth:B.width,onload:d}),null),_.U(_.IF,{data:function(){return q()?void 0:B.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:SOF,thumbnailOverlayBadgeViewModel:function(h){return _.U(y54,{data:h.data,thumbnailSize:x,isClip:B.isClip})},
thumbnailBottomOverlayViewModel:function(h){return _.U(Qrd,{data:h.data,thumbnailSize:x,isClip:B.isClip})},
thumbnailOverlayFullViewModel:lR0,thumbnailOverlayButtonViewModel:function(h){return _.U(_.J_F,{data:h.data,lockupExperiments:B.lockupExperiments})}}),_.U(_.IF,{data:function(){var h;
return((h=B.hovered)==null?0:h.call(B))?B.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(h){return _.U(NB,{data:h.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:WJm}),_.U(_.IF,{data:function(){var h;return((h=B.hovered)==null?0:h.call(B))&&g()?B.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:IRS}),_.U(_.m,{cond:B.isClip,then:function(){return _.U("div",{class:"yt-pinking"},_.U("svg",{class:"yt-pinking__pinking-left"},_.U("defs",null,_.U("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.U("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.U("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.U("svg",{class:"yt-pinking__pinking-right"},_.U("defs",null,_.U("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.U("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.U("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.Df.idomCompat={callbacks:{playbackRef:!0}};var E$I=_.rM(function(B){var c=_.p(_.$D(-1,void 0,"IOLZ0b")),x=c.next().value,P=c.next().value;_.lk(function(){var Y=new Ts4(P);wEI(Y,B.data().thumbnails.length);_.lP(function(){if(Y.isSlideshowPlaying){Y.isSlideshowPlaying=!1;for(var g=Y.jobIds,k=0,n=g.length;k<n;k++)_.EE.cancelJob(g[k]);Y.jobIds.length=0}})});
return _.U("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.U(_.IF,{data:function(){return B.data().thumbnails}},{thumbnailViewModel:function(Y,g){return _.U("div",{class:function(){var k=!B.data().primaryThumbnail,n=g(),b=x(),d=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
k&&n===0&&d.push("yt-collection-thumbnail-slideshow--first-slide");n<=b&&d.push("yt-collection-thumbnail-slideshow--show-slide");return d.join(" ")}},_.U(_.Df,{data:Y.data,
disableRounding:B.disableRounding}))}}))},"ra");
E$I.idomCompat=!0;var ZvO=new _.BL("DWELL_DETECTOR_REGISTRY_TOKEN");var o$Z=_.rM(function(B){var c=fRI(B.triggeringElement),x=function(){return!!B.data().primaryThumbnail};
return _.U("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.U(OvW,{stackEnabled:x,thumbnailSize:function(){var P,Y;return wZ7((P=B.width)==null?void 0:P.call(B),(Y=B.height)==null?void 0:Y.call(B))},
doubleStack:B.doubleStack,stackColor:function(){return B.data().stackColor}},_.U("div",null,_.U(_.IF,{data:function(){return B.data().primaryThumbnail}},{thumbnailViewModel:function(P){var Y={};
return _.U(_.Df,{data:P.data,width:B.width,height:B.height,aspectRatio:B.aspectRatio,disableRounding:B.disableRounding,className:_.Kw((Y["yt-collection-thumbnail-view-model--has-stacks"]=x,Y)),hovered:B.hovered,playbackRef:B.playbackRef})}}),_.U(_.m,{cond:function(){var P;
return c()&&((P=B.data().thumbnails)==null?void 0:P.length)},
then:function(){return _.U("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.U(E$I,{data:B.data,disableRounding:function(){return!x()}}))}}))))},"sa");
o$Z.idomCompat={callbacks:{playbackRef:!0}};
var OvW=_.rM(function(B){var c=B.children;var x=B.stackEnabled;var P=B.thumbnailSize;var Y=B.doubleStack;var g=B.stackColor;var k,n=(k=_.cp().resolve(_.Bp(_.fL)))==null?void 0:k();return _.U(_.m,{cond:x,then:function(){return _.U(XSd,{data:function(){var b,d;return{experimentEnabled:!0,thumbnailSize:P(),doubleStack:Y==null?void 0:Y(),color:n?g==null?void 0:(b=g())==null?void 0:b.darkTheme:g==null?void 0:(d=g())==null?void 0:d.lightTheme,enableResponsiveMode:!1}}},c)},
else:function(){return c}})},"ta");var QLn=new _.BL("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var RS;_.r5={calledOnce:!0,state:"visible"};RS={calledOnce:!0,state:"hidden"};_.eS=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;var P=B.className;var Y=B.delayedClassName;var g=B.animationEntityKey;var k=B.isCompactWidth;var n=_.Ho("ad-button-view-model"),b=_.A9(g,""),d=_.jA(qwx,b),q=function(){var kI,Ul;return(Ul=(kI=d())==null?void 0:kI.value)!=null?Ul:!1},C=function(){_.iF(_.Uy("booleanEntity",b(),{key:b(),
value:!0}));f=void 0};
B=_.p(_.mg(q));var h=B.next().value,V=B.next().value;B=_.p(_.mg(q));var N=B.next().value,l=B.next().value;B=_.p(_.mg(function(){var kI;return q()?(kI=c().styleTransitionConfig)==null?void 0:kI.destinationStyle:void 0}));
var E=B.next().value,S=B.next().value,M=function(){var kI=Object.assign({},c(),E()&&{style:E()}),Ul,wC,W$=kI.label,El=(Ul=kI.interaction)==null?void 0:(wC=Ul.accessibility)==null?void 0:wC.label;Ul=kI.iconImage?kI.label&&kI.label.content?kI.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:W$,accessibilityLabel:El,style:DKw(kI.style),type:r_w(kI.style),state:"active",size:ubo(kI.size),iconPosition:Ul,disabled:!1,aTagConfig:A_C(kI,x)}},f;
_.e3(n,{visibilityCallback:function(kI){var Ul,wC=(Ul=c().interaction)==null?void 0:Ul.onFirstVisible;kI&&wC&&_.Gl(wC)},
showOption:_.r5});var Z=function(){return tW(M(),!!c().iconImage)};
B={};P=_.Kw(function(){return"ytwAdButtonViewModelHost"},function(){return c().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var kI=!!c().delayedAppearanceConfig,Ul=h();
return kI?Ul?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var kI=!!c().delayedAppearanceConfig,Ul=N();
return kI?Ul?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!c().delayedAppearanceConfig||h()?Y==null?void 0:Y():""},(B.ytwAdButtonViewModelHostCompactWidth=function(){return k==null?void 0:k()},B),P!=null?P:"");
var u=function(){var kI,Ul=(kI=c().delayedAppearanceConfig)==null?void 0:kI.delayedInvisibleSeconds;Ul&&(f=_.C3(_.EE,function(){V(!0);e()},Ul*1E3))},e=function(){var kI,Ul=(kI=c().delayedAppearanceConfig)==null?void 0:kI.delayedVisibleSeconds;
Ul&&(f=_.C3(_.EE,function(){l(!0);px()},Ul*1E3))},px=function(){var kI,Ul=(kI=c().styleTransitionConfig)==null?void 0:kI.styleTransitionSeconds,wC,W$=(wC=c().styleTransitionConfig)==null?void 0:wC.destinationStyle;
Ul&&W$?f=_.C3(_.EE,function(){S(W$);C()},Ul*1E3):C()};
_.lk(function(){var kI;((kI=c().delayedAppearanceConfig)==null?0:kI.transitionDurationSeconds)&&n.value.style.setProperty("transition-duration",c().delayedAppearanceConfig.transitionDurationSeconds+"s");u()});
_.lP(function(){f&&_.EE.cancelJob(f)});
return _.U("ad-button-view-model",{class:P,el:n},_.U(_.m,{cond:M,then:function(){return _.U(B8,{data:M,icon:function(){return _.U(_.m,{cond:function(){return c().iconImage},
then:function(kI){return _.U(_.D9,{data:kI,alt:"",targetWidth:Z,targetHeight:Z,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var FJ3=_.rM(function(B){var c=B.data;B=_.Ho("ad-button-group-view-model");_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});var x={};return _.U("ad-button-group-view-model",{class:_.Kw("ytwAdButtonGroupViewModelHost",(x.ytwAdButtonGroupViewModelHostCompactWidth=function(){return c().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},x)),
el:B},_.U("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.U(_.IF,{data:function(){return c().secondaryAdButton}},{adButtonViewModel:function(P){return _.U(_.eS,{data:P.data})}})),_.U("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.U(_.IF,{data:function(){return c().primaryAdButton}},{adButtonViewModel:function(P){return _.U(_.eS,{data:P.data})}})))},"va");var v$d=_.rM(function(B){var c=function(){var x;return((x=B.data())==null?void 0:x.answers)||[]};
return _.U("yt-survey-icons",{class:"ytSurveyIconsHost"},_.U("div",{class:"ytSurveyIconsHeader"},_.U("div",{class:"ytSurveyIconsTitle"},function(){var x;return(x=B.data())==null?void 0:x.text}),_.U("div",null,_.U(B8,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var x;(x=B.onDismiss)==null||x.call(B)}}},
iconName:"DISMISSAL"}))),_.U("div",null,_.U("div",{class:"ytSurveyIconsAnswers"},_.U(_.mV,{each:function(){return c()},
keyBy:"INDEX"},function(x,P){return _.U("div",null,_.U(B8,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Y;(Y=B.onSelect)==null||Y.call(B,x(),P)}}},
icon:function(){return _.U(_.Vf,{icon:function(){var Y,g;return(Y=x())==null?void 0:(g=Y.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.U("div",{class:"ytSurveyIconsAnswersText"},_.U("div",null,function(){return c().length?c()[0].text:""}),_.U("div",null,function(){return c().length?c()[c().length-1].text:""}))))},"wa");var zi0=_.rM(function(B){var c=_.p(_.$D(!1,void 0,"s8HkOb")),x=c.next().value,P=c.next().value,Y=_.jA(IVl,function(){var n;return(n=B.data().keys)==null?void 0:n.surveyEntityKey}),g=_.jA(J57,function(){var n;
return(n=B.data().keys)==null?void 0:n.surveyStateEntityKey});
_.Z6("ytd-slimline-survey-show-action",function(){P(!1)});
var k=function(){var n,b;var d=(n=g())==null?void 0:(b=n.questionStack)==null?void 0:b[0];if(d!==void 0){var q,C;return(q=Y())==null?void 0:(C=q.questions)==null?void 0:C[d]}};
c={};return _.U("yt-slimline-survey-view-model",{class:_.Kw("ytSlimlineSurveyViewModelHost",(c.ytSlimlineSurveyViewModelCollapsed=function(){return x()},c))},_.U("div",{class:"ytSlimlineSurveyViewModelContainer"},_.U(_.m,{cond:function(){var n;
return((n=k())==null?void 0:n.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.U(v$d,{data:function(){return k()},
onSelect:function(n,b){var d,q;return _.X(function(C){P(!0);if(q=(d=B.data())==null?void 0:d.onSelectRating)_.Gl(q),_.iF(ij0(b));_.Kq(C)})},
onDismiss:function(){P(!0)}})}})))},"xa");var SDm=_.rM(function(B){return _.U("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.U(_.IF,{data:function(){var c;return(c=B.data())==null?void 0:c.attachments}},{flexibleActionsViewModel:function(c){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(tvn,{data:c.data,
layout:function(){var x;return((x=B.lockupStyle())==null?void 0:x.arrangement)===1?0:1},
justifyContentOverride:function(){var x;return((x=B.lockupStyle())==null?void 0:x.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(c){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(zi0,{data:c.data}))},
expandableMetadataViewModel:function(c){c=c.data;var x;return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},(x=_.cp().resolve(_.Bp(QLn)))==null?void 0:x({data:c}))},
adButtonGroupViewModel:function(c){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(FJ3,{data:c.data}))},
adButtonViewModel:function(c){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(_.eS,{data:c.data,isCompactWidth:!0}))}}))},"ya");var P$7=_.Yu("rich_grid_min_item_width",310),cHw=_.Yu("rich_grid_max_item_width",500);var y_9=_.rM(function(B){var c=B.data;return _.U("br-nz-badge-shape",{class:_.Kw(function(){return $L7(c().brNzRatingBadgeType)}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},function(){var x;
return(x=c())==null?void 0:x.text})},"za");_.Bz=_.rM(function(B){var c=function(){var x=B.data(),P,Y;if(x){var g=!((P=B.workaroundShortsIsThumbnailBadge)==null||!P.call(B));P=(Y=B.modern)==null?void 0:Y.call(B);a:switch(x.badgeStyle){case "BADGE_OVERLAY":Y=!0;break a;default:Y=!1}x={type:g?16:nLo(x.badgeStyle),brNzRatingBadgeType:bZl(x.badgeStyle),text:x.badgeText,icon:x.iconName,isOverlay:Y,modern:P||_.T("web_modern_badge_view_model"),accessibilityText:x.accessibilityLabel}}else x=void 0;return x};
return _.U("yt-badge-view-model",{class:_.Kw("yt-badge-view-model-wiz",B.class)},_.U(_.tR,null,_.U(_.Tu,{when:function(){var x;return!((x=c())==null||!x.brNzRatingBadgeType)}},function(){return _.U(y_9,{data:function(){return c()}})}),_.U(_.Tu,{when:function(){return!!c()&&!c().brNzRatingBadgeType}},function(){return _.U(_.Ef,{data:function(){return c()}})})))},"Aa");
_.Bz.idomCompat=!0;var jlx,Kwl;jlx=16/9;Kwl=2/3;_.cz=_.rM(function(B){var c=B.data;var x=B.className;var P=B.imageSizeConfig;var Y=B.notifyOnLoaded;B=_.Ho("yt-content-preview-image-view-model");var g=function(){return c().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k=function(){var V;
return _.Z_((V=c())==null?void 0:V.rendererContext)},n={};
n=(n["yt-content-preview-image-view-model-wiz"]=!0,n["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},n["yt-content-preview-image-view-model-wiz--tappable"]=function(){return k()},n);
var b=function(){var V,N;return(N=(V=_.t(c().rendererContext,_.T3))==null?void 0:V.label)!=null?N:""},d=function(){return dLo(c())},q=function(){var V=ULI(g(),c().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",P==null?void 0:P(),qeY(d()),c().layoutWidth,c().layoutHeight),N=Object.assign({},V);
V.width&&(N.width=Math.round(V.width));V.height&&(N.height=Math.round(V.height));V.maxWidth&&(N.maxWidth=Math.round(V.maxWidth));V.maxHeight&&(N.maxHeight=Math.round(V.maxHeight));return N},C=_.db(function(){return q().height},void 0,"QOtei"),h=_.db(function(){return q().width},void 0,"rKpuNc");
_.Hv(B,function(){var V;return(V=c())==null?void 0:V.rendererContext});
return _.U("yt-content-preview-image-view-model",{el:B,role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.Kw(x,n,function(){var V=g();var N=P==null?void 0:P();V=V==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||V==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||V==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||V==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(N==null?void 0:N.size)!=null&&N.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(N==null?void 0:N.size)!=null&&N.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return V}),
style:function(){var V=q(),N=[];V.width&&N.push("width: "+V.width+"px");V.height&&N.push("height: "+V.height+"px");V.maxWidth&&N.push("max-width: "+V.maxWidth+"px");V.maxHeight&&N.push("max-height: "+V.maxHeight+"px");V.fullWidth&&N.push("width: 100%");return N.join(";")}},_.U(_.m,{cond:d,
then:function(V){return _.U(_.D9,{data:V,alt:b,"data-disabled$":function(){return!b()},
notifyOnLoaded:Y,targetWidth:h,targetHeight:C,preserveWidth:function(){return!!h()},
preserveHeight:function(){return!!C()}})}}),_.U(_.IF,{data:function(){var V;
return(V=c())==null?void 0:V.overlays}},{thumbnailHoverOverlayViewModel:NB,
thumbnailOverlayButtonViewModel:_.J_F}))},"Ba");
_.cz.idomCompat=!0;var MGm=_.rM(function(B){var c=B.data;var x=B.className;var P=B.useSmallLayout;var Y=B.useMediumText;B=_.Ho("yt-attribution-view-model");var g={};Y=(g["yt-attribution-view-model-wiz"]=!0,g["yt-attribution-view-model-wiz--medium-text"]=Y,g);_.Hv(B,function(){var k;return(k=c())==null?void 0:k.rendererContext});
return _.U("yt-attribution-view-model",{el:B,class:_.Kw(x,Y)},_.U(_.m,{cond:function(){return _.Z_(c().rendererContext)},
then:function(){return _.U("button",{class:"yt-attribution-view-model-wiz--tappable"},_.U(GD5,{data:c,useSmallLayout:P}))},
else:function(){return _.U(GD5,{data:c,useSmallLayout:P})}}))},"Ca"),GD5=_.rM(function(B){var c=B.data;
var x=B.useSmallLayout;var P=function(){return{size:(x==null?0:x())?16:24}};
return _.U(_.at,null,_.U(_.IF,{data:function(){return c().contentPreviewImage}},{contentPreviewImageViewModel:function(Y){return _.U(_.cz,{data:Y.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:P})}}),_.U(_.IF,{data:function(){return c().badge}},{badgeViewModel:function(Y){return _.U(_.Bz,{data:Y.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.U(_.m,{cond:function(){return c().text},
then:function(){return _.U(_.RF,{text:function(){return c().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.U(_.m,{cond:function(){return c().suffix},
then:function(){return _.U(_.RF,{text:function(){return c().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
MGm.idomCompat=!0;var N6l=_.mp({avatarStackViewModel:_.WT,badgeViewModel:_.Bz});_.BX(WwA);var LJI,Zvd,HvS,fRF,ivS,A_9;LJI=_.rM(function(B){var c=B.delimiter;var x=B.max;var P=B.index;var Y=B.isStandalone;return _.U(_.m,{cond:function(){return x()-1>P()},
then:function(){var g={};return _.U("span",{class:_.Kw("yt-content-metadata-view-model-wiz__delimiter",(g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Y,g)),"aria-hidden":!0},c)}})},"Ea");
Zvd=_.rM(function(B){var c=B.metadataPart;var x=B.maxLines;return _.U(_.RF,{text:function(){return c().text},
linkInheritColor:!0,className:function(){return lXC(x())},
userInput:!0})},"Fa");
HvS=_.rM(function(B){var c=B.metadataPart;var x=B.maxLines;return _.U(_.m,{cond:function(){return c().tooltip},
then:function(P){return _.U("span",{title:P,role:"tooltip"},_.U(Zvd,{metadataPart:c,maxLines:x}))},
else:function(){return _.U(Zvd,{metadataPart:c,maxLines:x})}})},"Ga");
fRF=_.rM(function(B){var c=B.metadataPart;var x=B.isOverlay;var P=B.useMediumText;var Y=B.hideAvatar;var g=function(){return c().maxLines!==void 0?c().maxLines:1};
return _.U(_.at,null,_.U(_.IF,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(k){return _.U(_.WT,{data:k.data,
isOverlay:x,useMediumText:P,hideAvatar:Y})},
badgeViewModel:_.Bz}),_.U(_.m,{cond:function(){return c().text},
then:function(){return _.U(HvS,{metadataPart:c,maxLines:g})}}))},"Ha");
ivS=_.rM(function(B){var c=B.metadataRow;var x=B.isInline;var P=B.delimiter;var Y=B.isOverlay;var g=B.useMediumText;var k=B.extensions;var n=function(){var d;return h4w(k==null?void 0:(d=k())==null?void 0:d.lockupMetadata,c())},b=function(){return c().metadataParts||[]};
B={};return _.U("div",{class:_.Kw("yt-content-metadata-view-model-wiz__metadata-row",(B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=x,B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var d;return T6A(k==null?void 0:(d=k())==null?void 0:d.lockupMetadata,c())},B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var d;
return!!(k==null?0:(d=k())==null?0:d.lockupMetadata)&&c().badges&&!c().metadataParts},B))},_.U(_.IF,{data:function(){return c().badges}},{badgeViewModel:function(d){return _.U("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.U(_.Bz,{data:d.data}))}}),_.U(_.mV,{each:b},function(d,q){return _.U(_.at,null,_.U(fRF,{metadataPart:d,
isOverlay:Y,useMediumText:g,hideAvatar:n}),_.U(LJI,{delimiter:P,max:function(){return b().length},
index:q,isStandalone:!1}))}),_.U(_.m,{cond:function(){return c().isSpacerRow&&!x()},
then:function(){return _.U("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
A_9=_.rM(function(B){var c=_.uF(B,{layout:0,isOverlay:!1});B=c.className;var x=c.data,P=c.layout,Y=c.isOverlay,g=c.useMediumText,k=c.extensions;c=_.Ho("yt-content-metadata-view-model");var n=function(){return P()===0};
_.Hv(c,function(){return x().rendererContext});
var b=function(){var q;return((q=x().metadataRows)==null?void 0:q.filter(function(C){var h;return!mLI(k==null?void 0:(h=k())==null?void 0:h.lockupMetadata,C)}))||[]},d={};
return _.U("yt-content-metadata-view-model",{class:_.Kw(B,"yt-content-metadata-view-model-wiz",(d["yt-content-metadata-view-model-wiz--inline"]=n,d["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Z_(x().rendererContext)},d["yt-content-metadata-view-model-wiz--medium-text"]=g,d)),
el:c},_.U(_.mV,{each:b},function(q,C){return _.U(_.at,null,_.U(ivS,{metadataRow:q,isInline:n,delimiter:function(){return x().delimiter},
isOverlay:Y,useMediumText:g,extensions:k}),_.U(_.m,{cond:function(){return n()&&!q.isSpacerRow},
then:function(){return _.U(LJI,{delimiter:function(){return x().delimiter},
max:function(){return b().length},
index:C,isStandalone:!0})}}))}))},"Ja");
_.ubn=_.T("web_enable_sink_yt_content_metadata_view_model")?A_9:_.dV(WwA);A_9.idomCompat=!0;var DKW=_.rM(function(B){var c={};return _.U("yt-lockup-metadata-view-model",{class:_.Kw("yt-lockup-metadata-view-model-wiz",function(){a:{var x=B.lockupStyle();if(x==null?0:x.isOverlay)x="yt-lockup-metadata-view-model-wiz--overlay";else switch(x==null?void 0:x.arrangement){case 1:x="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:x="yt-lockup-metadata-view-model-wiz--vertical"}}return x},function(){a:{var x=B.lockupStyle();
if(x==null?0:x.isTiny)x="yt-lockup-metadata-view-model-wiz--tiny";else switch(x==null?void 0:x.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":x="yt-lockup-metadata-view-model-wiz--compact";break a;default:x="yt-lockup-metadata-view-model-wiz--standard"}}return x},(c["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.isOverlay},c["yt-lockup-metadata-view-model-wiz--card"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.isCard},c["yt-lockup-metadata-view-model-wiz--centered"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.isCentered},c["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.typographyBump},c["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.useLegacyTypography},c["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var x;
return(x=B.lockupStyle())==null?void 0:x.useRichGridLegacyTypography},c))},_.U(_.IF,{data:function(){return B.data().image}},{avatarStackViewModel:function(x){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.WT,{data:x.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(x){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.IS,{data:x.data}))},
decoratedAvatarViewModel:function(x){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.Jf,{data:x.data}))}}),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.U("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var x;return(x=B.data().title)==null?void 0:x.content}},_.U(_.m,{cond:function(){return B.data().title},
then:function(x){return _.U(_.$J,{command:B.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:B.lockupAccessibilityLabel},_.U(_.RF,{text:x}))}})),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.U(_.IF,{data:function(){return B.data().metadata}},{contentMetadataViewModel:function(x){return _.U(_.ubn,{data:x.data,
layout:1,useMediumText:function(){var P,Y;return((P=B.lockupStyle())==null?void 0:P.typographyBump)||((Y=B.lockupStyle())==null?void 0:Y.useRichGridLegacyTypography)},
extensions:function(){var P,Y,g;return{lockupMetadata:{byline:{hideAvatar:((P=B.lockupStyle())==null?void 0:P.arrangement)===0,addPadding:((Y=B.lockupStyle())==null?void 0:Y.arrangement)===1},description:{hideDescription:!((g=B.lockupStyle())==null||!g.hideDescription)}}}}})}})),_.U(_.IF,{data:function(){return B.data().attribution}},{attributionViewModel:function(x){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.U(MGm,{data:x.data,
useSmallLayout:!0}))}})),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.U(_.IF,{data:function(){return B.data().menuButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
buttonOverrides:function(){var P;return((P=B.lockupStyle())==null?0:P.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
DKW.idomCompat=!0;var r_W=_.rM(function(B){var c=_.Ho("notification-multi-action-renderer");_.JR(function(){requestAnimationFrame(function(){_.Aj(c.value)})});
var x={},P={},Y={};return _.U("notification-multi-action-renderer",{class:_.Kw("ytNotificationMultiActionRendererHost",(x.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=B.useLegacyShelfStyle)==null?void 0:g.call(B)},x)),
el:c},_.U("span",{"aria-live":"polite",class:_.Kw("ytNotificationMultiActionRendererTextContainer",(P.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=B.useLegacyShelfStyle)==null?void 0:g.call(B)},P))},_.U(_.RF,{text:function(){return B.data().responseText}})),_.U("div",{class:_.Kw("ytNotificationMultiActionRendererButtonContainer",(Y.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=B.useLegacyShelfStyle)==null?void 0:g.call(B)},Y))},_.U(_.IF,{data:function(){var g;
return(g=B.data().buttons)==null?void 0:g.map(function(k){if(k=k.buttonRenderer){var n,b=Object,d=b.assign,q=(n=k.icon)==null?void 0:n.iconType;n=(n=k.command||k.serviceEndpoint||k.navigationEndpoint)?{innertubeCommand:n}:void 0;k={buttonViewModel:d.call(b,{},{iconName:q,onTap:n,trackingParams:k.trackingParams,titleFormatted:k.text?_.OL(k.text):void 0},ELO(k))}}else k=void 0;return k}).filter(function(k){return!!k})}},{buttonViewModel:function(g,k){return _.U("div",null,_.U(_.Q7,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var n;return((n=B.useModernStyles)==null?0:n.call(B))?{type:k()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var RiZ=_.rM(function(B){var c=_.Ho("notification-text-renderer");_.JR(function(){requestAnimationFrame(function(){_.Aj(c.value)})});
return _.U("notification-text-renderer",{el:c,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.U(_.RF,{text:function(){return B.data().successResponseText}}))},"Ma");_.ei4=_.rM(function(B){var c=_.jA(TEI,function(){var P;return OZw((P=B.contentId)==null?void 0:P.call(B))}),x=function(){var P;
return _.t((P=c())==null?void 0:P.command,_.t3)};
return _.U(_.m,{cond:function(){var P;if(!(P=x())){var Y;P=_.t((Y=c())==null?void 0:Y.command,wiF)}return P},
then:function(){return _.U(_.m,{cond:x,then:function(){var P={};return _.U("div",{class:_.Kw("ytDismissibleItemReplacedContent",function(){var Y;return oL7((Y=B.aspectRatio)==null?void 0:Y.call(B))})},_.U("div",{class:_.Kw((P.ytDismissibleItemAspectRatioContainer=function(){var Y;
return((Y=B.aspectRatio)==null?void 0:Y.call(B))!==void 0},P))},_.U(_.IF,{data:function(){var Y;
return(Y=x())==null?void 0:Y.item}},{notificationMultiActionRenderer:function(Y){return _.U(r_W,{data:Y.data,
useModernStyles:B.useModernStyle,useLegacyShelfStyle:B.useLegacyShelfStyle})},
notificationTextRenderer:RiZ})))}})},
else:B.children})},"Na");_.B6d=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;B=_.fE("ad-avatar-view-model");var P=function(){var g;return((g=c().interaction)==null?0:g.onTap)?function(k){var n;ivA(k,(n=c().interaction)==null?void 0:n.onTap,x)}:void 0},Y=function(){var g,k=c(),n=P(),b=(g=_.t(c().rendererContext,_.T3))==null?void 0:g.label;
a:switch(k.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:vLq(k.size),type:g,onTap:n,accessibilityText:b}};
_.e3(B,{visibilityCallback:function(g){var k,n=(k=c().interaction)==null?void 0:k.onFirstVisible;g&&n&&_.Gl(n)},
showOption:_.r5});return _.U("ad-avatar-view-model",{class:function(){var g;return((g=c().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:B},_.U(_.m,{cond:function(){return c().image},
then:function(g){return _.U(zpn,{data:Y,image:g})}}))},"Oa");_.xT=_.rM(function(B){B=_.uF(B,{hasDot:!1});var c=Object.assign({},B),x=B.data,P=B.hasDot;B=B.customCommandResolver;var Y=(delete c.data,delete c.hasDot,delete c.customCommandResolver,c);c=function(){return x().style};
c!==void 0&&c!==null||_.MR(Error("Eh"));c=_.Ho("ad-badge-view-model");_.uR(c,function(){return x().interaction},B);
return _.U("ad-badge-view-model",{class:_.Kw(function(){var g;return((g=x().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=Y.adRenderingContextType();
x();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:c},_.U(_.Ef,{data:function(){var g;x();return{type:2,text:(g=x().label)==null?void 0:g.content,adsIncludeDot:P(),isOverlay:x().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var cHW;_.Pz=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;var P=B.adRenderingContextType;B=_.Ho("ad-details-line-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(Y){var g,k=(g=c().interaction)==null?void 0:g.onFirstVisible;Y&&k&&_.Gl(k)},
showOption:_.r5});return _.U("ad-details-line-view-model",{class:function(){var Y;return((Y=c().interaction)==null?0:Y.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:B},_.U(_.m,{cond:function(){return c().style},
then:function(Y){return _.U(_.mV,{each:function(){var g;return((g=c())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.U(cHW,{attribute:g,style:Y,adRenderingContextType:function(){return P()}})})}}))},"Qa");
cHW=_.rM(function(B){var c=B.attribute;var x=B.style;var P=B.adRenderingContextType;return _.U(_.m,{cond:function(){return c().text},
then:function(Y){return _.U(_.RF,{text:Y,className:function(){var g=P();x();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var xL4=_.rM(function(B){var c=B.data;var x=B.typographyBump;var P=function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
B={};return _.U(_.at,null,_.U("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.U(_.RF,{text:function(){return c().headline},
className:_.Kw("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(B.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return P==null?void 0:P()},B.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(x==null?void 0:x())&&!(P==null?0:P())},B)),
linkInheritColor:!0}),_.U(_.m,{cond:function(){return c().description},
then:function(Y){var g={};return _.U(_.RF,{text:Y,className:_.Kw("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return P==null?void 0:P()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(x==null?void 0:x())&&!(P==null?0:P())},g)),
linkInheritColor:!0})}}),_.U(_.m,{cond:function(){return c().secondaryDescription},
then:function(Y){var g={};return _.U(_.RF,{text:Y,className:_.Kw("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return x==null?void 0:x()},g)),
linkInheritColor:!0})}}),_.U("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.U(_.m,{cond:function(){return c().adAvatar},
then:function(){return _.U("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.U(_.IF,{data:function(){return c().adAvatar}},{adAvatarViewModel:_.B6d}))}}),_.U(_.IF,{data:function(){return c().adBadge}},{adBadgeViewModel:function(Y){return _.U(_.xT,{data:Y.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.U(_.IF,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(Y){return _.U(_.Pz,{data:Y.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}}))),_.U("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
buttonOverrides:function(){a:switch(c().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var g="S";break a;default:g="M"}return{size:g}}})}})))},"Sa"),P$0=_.rM(function(B){var c=B.data;
var x=B.noBottomMargin;var P=B.useVideoLockupTopPadding;var Y=B.typographyBump;B={};B=_.Kw("ytwFeedAdMetadataViewModelHostMetadata",(B.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return x==null?void 0:x()},B.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},B));
var g=function(){return c().adBadge};
g!==void 0&&g!==null||_.MR(Error("Fh"));g={};var k={};return _.U(_.at,null,_.U(_.m,{cond:function(){return c().adAvatar},
then:function(){return _.U("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.U(_.IF,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(n){return _.U(_.B6d,{data:n.data})}}))}}),_.U("div",{class:B},_.U("div",{class:_.Kw("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Y==null?void 0:Y()},g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Y==
null?void 0:Y())&&_.T("web_enable_typography_bump_v2")},g))},_.U(_.RF,{text:function(){return c().headline},
linkInheritColor:!0})),_.U(_.m,{cond:function(){return c().description},
then:function(n){return _.U(_.RF,{text:n,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.U("div",{class:function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.T("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.U(_.IF,{data:function(){return c().adBadge}},
{adBadgeViewModel:function(n){return _.U(_.xT,{data:n.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.U(_.IF,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(n){return _.U(_.Pz,{data:n.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}})),_.U(_.m,{cond:function(){return c().secondaryDescription},
then:function(n){return _.U(_.RF,{text:n,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.U("div",{class:_.Kw("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(k.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},k))},_.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:_.Q7})))},"Ta"),Yen=_.rM(function(B){var c=B.data;
var x=B.noBottomMargin;var P=B.listenToTapEvent;var Y=B.setTouchEndHandler;var g=B.useVideoLockupTopPadding;var k=B.typographyBump;var n=_.Ho("feed-ad-metadata-view-model");_.uR(n,function(){return c().interaction},void 0,function(){return P==null?void 0:P()});
B=_.p(_.$D(!1,void 0,"qjt0Xc"));var b=B.next().value,d=B.next().value;B=_.qe(function(){(Y==null?0:Y())&&!b()&&(n.value.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
_.e3(n,{visibilityCallback:function(q){var C,h=(C=c().interaction)==null?void 0:C.onFirstVisible;q&&h&&_.Gl(h)},
showOption:_.r5});return _.U("feed-ad-metadata-view-model",{class:function(){var q;return((q=c().interaction)==null?0:q.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:n,"on:touchend":B},_.U(_.tR,null,_.U(_.Tu,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.U(xL4,{data:c,
typographyBump:k})}),_.U(_.Tu,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.U(P$0,{data:c,
noBottomMargin:x,useVideoLockupTopPadding:g,typographyBump:k})})))},"Ua");var aX0;_.ap=_.rM(function(B){return _.U("yt-lockup-view-model",{class:_.Kw(B.className)},_.U(_.ei4,{contentId:function(){return B.data().contentId},
useModernStyle:!0,aspectRatio:function(){var c,x;return((c=B.containerType)==null?void 0:c.call(B))!==3?khq(B.data().contentType,(x=B.force16By9ThumbnailAspectRatio)==null?void 0:x.call(B)):void 0}},function(){return _.U(aX0,Object.assign({},B))}))},"Va");
aX0=_.rM(function(B){B=_.uF(B,{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 c=B.data,x=B.containerLayoutConfig,P=B.containerType,Y=B.sizing,g=B.protectBackground,k=B.typographyBump,n=B.force16By9ThumbnailAspectRatio,b=B.thumbnailFixedWidth,d=B.thumbnailTargetWidth,q=B.lockupExperiments,C=B.elementsPerRow;
B=_.Ho("div");_.Hv(B,function(){var El;return(El=c())==null?void 0:El.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 h=_.FB(GD7),V=_.cp().resolve(_.Bp(mKI)),N=V?{}:void 0,l=function(){var El,H$,yw;return(yw=(H$=_.t((El=c())==null?void 0:El.rendererContext,_.T3))==null?void 0:H$.label)!=null?yw:void 0},E=function(){var El=x==null?void 0:x(),H$;
if(El==null?0:El.containerType){var yw=(H$=c())==null?void 0:H$.contentType;H$=q();var r9=k(),cs=d(),NQ=g();El=Object.assign({},Xew(gL$(El),Yeo(El.responsiveSize),r9,yw,El.force16By9ThumbnailAspectRatio,cs,NQ,H$),{thumbnailFixedWidth:El.contentPreviewWidth})}else El=Xew(P(),Y(),k(),(yw=c())==null?void 0:yw.contentType,n(),d(),g(),q());return El};
V&&N&&V({enabled:function(){return h()},
itemPlaybackModel:function(){return c().itemPlayback},
thumbnailElRef:function(){return N.thumbnailElRef},
containerElRef:B,options:function(){var El,H$=(El=_.t(c().metadata,dVm))==null?void 0:El.endorsement;El=N.thumbnailOverlays||[];H$&&El.push(H$);var yw,r9;return{thumbnail:N.thumbnail,thumbnailOverlays:El,accessibilityText:l(),thumbnailSize:N.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,trackingParams:(yw=_.t(c().rendererContext,_.CL))==null?void 0:(r9=yw.loggingDirectives)==null?void 0:r9.trackingParams}}});
var S=0;V=_.p(_.$D(!1,void 0,"BKBkhb"));var M=V.next().value,f=V.next().value;V=_.p(_.$D(!1,void 0,"GK0mq"));var Z=V.next().value,u=V.next().value;V=_.qe(function(){var El=h()&&c().itemPlayback;Z()?(_.EE.cancelJob(S),S=_.EE.addJob(function(){f(!El)},8,32)):f(!El);
return!0});
var e=_.qe(function(){S&&(_.EE.cancelJob(S),S=0);f(!1)});
_.lP(function(){S&&(_.EE.cancelJob(S),S=0)});
var px=Fwd(function(){u(!0)}),kI=px.touchFeedbackEvents,Ul=px.touchFeedbackOnPointerUp,wC=px.touchFeedbackOnPointerDown;
px=px.touchFeedbackOnPointerLeave;var W$={};return _.U("div",{el:B,class:_.Kw("yt-lockup-view-model-wiz",function(){a:{var El=E();if(El.isOverlay)El="yt-lockup-view-model-wiz--overlay";else switch(El.arrangement){case 1:El="yt-lockup-view-model-wiz--horizontal";break a;default:El="yt-lockup-view-model-wiz--vertical"}}return El},function(){a:{var El=E();
if(El.isOverlay)El="yt-lockup-view-model-wiz--overlay";else{switch(El.collectionStackNumber){case 1:El="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:El="yt-lockup-view-model-wiz--collection-stack-2";break a}El=void 0}}return El},(W$["yt-lockup-view-model-wiz--card"]=function(){return E().isCard},W$["yt-lockup-view-model-wiz--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},W$["yt-lockup-view-model-wiz--protect-background"]=g,W$["yt-lockup-view-model-wiz--add-margins"]=
function(){return E().addMarginForFullbleed},W$["yt-lockup-view-model-wiz--centered"]=function(){return E().isCentered},W$["yt-lockup-view-model-wiz--fullbleed"]=function(){return E().fullbleed},W$["yt-lockup-view-model-wiz--single-column-grid"]=function(){return C()===1&&P()===2},W$["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var El;
return(El=q())==null?void 0:El.useRichGridLegacyMargin},W$)),
"on:mousedown":wC,"on:mouseleave":e,"on:mouseup":Ul,"on:mouseover":V,"on:touchstart":wC,"on:touchend":Ul,"on:pointerleave":px},_.U(_.$J,{command:function(){var El;return _.L3((El=c())==null?void 0:El.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return b()&&E().arrangement===1?"width: "+b():""}},_.U(_.IF,{data:function(){var El;
return(El=c())==null?void 0:El.contentImage}},{thumbnailViewModel:function(El){return _.U(_.Df,{data:El.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:d,hovered:M,isClip:function(){var H$;return((H$=c())==null?void 0:H$.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:SDq(N),lockupExperiments:function(){return q()}})},
collectionThumbnailViewModel:function(El){return _.U(o$Z,{data:El.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:d,doubleStack:function(){return E().collectionStackNumber===2},
hovered:M,playbackRef:SDq(N)})},
decoratedAvatarViewModel:_.Jf})),_.U("div",{class:"yt-lockup-view-model-wiz__metadata"},_.U(_.IF,{data:function(){var El;return(El=c())==null?void 0:El.metadata}},{lockupMetadataViewModel:function(El){return _.U(DKW,{data:El.data,
lockupStyle:E,lockupCommand:function(){var H$;return _.L3((H$=c())==null?void 0:H$.rendererContext)},
lockupAccessibilityLabel:function(){return l()}})},
feedAdMetadataViewModel:function(El){return _.U(Yen,{data:El.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:k})}}),_.U(_.IF,{data:function(){var El;
return(El=c())==null?void 0:El.attachmentSlot}},{lockupAttachmentsViewModel:function(El){return _.U(SDm,{data:El.data,
lockupStyle:E})}})),_.U(_.Ne,{model:function(){a:{switch(E().collectionStackNumber){case 1:var El=8;
break a;case 2:El=12;break a}El=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:El}},
pointerDownEvent:kI.pointerDownEvent,pointerUpEvent:kI.pointerUpEvent,pointerLeaveEvent:kI.pointerLeaveEvent}))},"Wa");
_.ap.idomCompat=!0;_.xU(_.ap,"yt-lockup-view-model",{props:{data:_.rk,containerLayoutConfig:_.rk,containerType:_.rk,sizing:_.rk,protectBackground:_.rk,typographyBump:_.rk,thumbnailFixedWidth:_.rk,thumbnailTargetWidth:_.rk,force16By9ThumbnailAspectRatio:_.rk,className:_.rk,lockupExperiments:_.rk,elementsPerRow:_.rk}});var M0A;_.BX(iZX);var gLy=_.dV(iZX,{callbacks:{onExpandClick:!0}});var e4l=_.mp({buttonViewModel:_.Q7}),slF=_.dV(rHo);_.BX(rHo);_.BX(uZ7);_.BX(DL7);_.xU(slF,"yt-video-attribute-view-model",{props:{data:_.rk,className:_.rk}});var go=function(){var B=_.z.apply(this,arguments)||this;B.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");B.isSearch=!1;B.JSC$13110_lastScrollContainerWidth=NaN;B.pageLoadingFromNavigation=!1;B.currentIndex=0;B.supportComponentResize=!1;return B};
_.w(go,_.z);_.a=go.prototype;
_.a.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}}}}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.$9(this,this.onPageChange))};
_.a.detached=function(){document.removeEventListener("yt-page-type-changed",_.$9(this,this.onPageChange))};
_.a.getItemsPath=function(){return"data.cards"};
_.a.onIronResize=function(){this.updateListStyles()};
_.a.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var B;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(B=this.data)==null?void 0:B.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.T("problem_walkthrough_sd")&&!!this.centerItems};
_.a.computeCardListStyle=function(B){return B||null};
_.a.computeEmpty=function(B){return!this.get("cards.length",B)};
_.a.computeThumbnailStyle=function(B){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",B)||null};
_.a.computeHasSubtitle=function(B){return!!this.get("header.richListHeaderRenderer.subtitle",B)};
_.a.computeInitialCountNumber=function(B){return this.hasSquareMiniApp&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.a.computeUseFloorScrolling=function(B){return B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.a.computeHasGameCard=function(B){return(B=this.get("cards",B))?B.some(function(c){return c.gameCardRenderer}):!1};
_.a.computeCenterHeaderTitle=function(B){return!(B==null||!B.centerHeaderTitle)};
_.a.computeHasPortraitMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.a.computeHasSquareMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.a.computeHasSkinnyWidthPortraitMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.width===135}):!1};
_.a.computeCenterItems=function(B){return!!B};
_.a.computeHasInfoPanel=function(B){var c;return B==null?void 0:(c=B.cards)==null?void 0:c.some(function(x){return x.infoPanelContentRenderer})};
_.a.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.a.getItemByIndex=function(B){var c=this.items.children;return c&&c.length>B?c[B]:void 0};
_.a.onPageChange=function(){var B=this;this.pageLoadingFromNavigation=!0;_.EE.addJob(function(){B.pageLoadingFromNavigation=!1;_.sp(B.hostElement,"yt-terminate-video-preview-action")},8)};
_.a.updateListStyles=function(){if(_.T("problem_walkthrough_sd")&&this.JSC$13110_scrollContainer!==void 0){var B=this.JSC$13110_scrollContainer.clientWidth;B!==this.JSC$13110_lastScrollContainerWidth&&(this.JSC$13110_lastScrollContainerWidth=B,_.k9(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(B*.8,415)+"px"}),_.aJ(this.hostElement,"iron-resize"))}};
_.AJ.Object.defineProperties(go.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.T("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.cards)==null?0:(x=c[0])==null?0:x.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.cards)==null?0:(x=c[0])==null?0:x.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return _.T("enable_desktop_amsterdam_info_panels")&&!!((B=this.data)==null?0:(c=B.cards)==null?0:(x=c[0])==null?0:x.infoPanelContentRenderer)}}});
go.prototype.dataChanged=go.prototype.dataChanged;go.prototype.onIronResize=go.prototype.onIronResize;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],go.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.J(_.Qz),_.H("design:type",Object)],go.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],go.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],go.prototype,"useCustomColors",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],go.prototype,"useHighlightStyling",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.H("design:type",Object)],go.prototype,"cardListStyle",void 0);_.L([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.H("design:type",Boolean)],go.prototype,"empty",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.H("design:type",Boolean)],go.prototype,"hasSubtitle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.H("design:type",Boolean)],go.prototype,"thumbnailStyle",void 0);_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.H("design:type",Boolean)],go.prototype,"hasGameCard",void 0);_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.H("design:type",Boolean)],go.prototype,"centerHeaderTitle",void 0);
_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.H("design:type",Boolean)],go.prototype,"hasPortraitMiniApp",void 0);_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.H("design:type",Boolean)],go.prototype,"hasSquareMiniApp",void 0);_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.H("design:type",Boolean)],go.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.L([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.H("design:type",Boolean)],go.prototype,"hasInfoPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],go.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],go.prototype,"inlineStructuredDescription",void 0);_.L([_.jr("#scroll-container"),_.H("design:type",HTMLDivElement)],go.prototype,"JSC$13110_scrollContainer",void 0);
_.L([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.H("design:type",Number)],go.prototype,"initialCount",void 0);_.L([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.H("design:type",Boolean)],go.prototype,"useFloorScrolling",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.H("design:type",Boolean)],go.prototype,"centerItems",void 0);_.L([_.F(),_.H("design:type",Object)],go.prototype,"pageLoadingFromNavigation",void 0);
_.L([_.F(),_.H("design:type",Object)],go.prototype,"currentIndex",void 0);_.L([_.F(),_.H("design:type",Number)],go.prototype,"scrollCount",void 0);_.L([_.F(),_.H("design:type",Object)],go.prototype,"supportComponentResize",void 0);_.L([_.jr("#items"),_.H("design:type",HTMLDivElement)],go.prototype,"items",void 0);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],go.prototype,"onIronResize",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],go.prototype,"dataChanged",null);_.L([_.F({reflectToAttribute:!0}),_.Q("inlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],go.prototype,"hideNavigationButton",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],go.prototype,"modernChapters",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],go.prototype,"hasVideoAttributeViewModels",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],go.prototype,"modernInfoPanels",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],go);
_.G(go,"ytd-horizontal-card-list-renderer",function(){if(xKS!==void 0)return xKS;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return xKS=B},{mode:_.sL("kevlar_poly_si_batch_j072")?1:2});var peZ=_.rM(function(B){var c=B.data;var x={};return _.U("video-summary-content-view-model",{class:_.Kw("video-summary-content-view-model-wiz",B.className,(x["video-summary-content-view-model-wiz--is-search"]=B.isSearch,x))},_.U(_.mV,{each:function(){var P=[],Y=c().paragraphs;if(Y==null||!Y.length)return[];for(var g=0;g<Y.length;g++){var k=_.t(Y[g],TBt),n=void 0;g>0&&(n=_.t(Y[g-1],TBt));n&&!!n.marker===!!k.marker?P[P.length-1].paragraphs.push(k):P.push({isList:!!k.marker,paragraphs:[k]})}return P},
keyBy:"INDEX"},function(P){return _.U(_.m,{cond:function(){return P().isList},
then:function(){return _.U("ul",{class:"video-summary-content-view-model-wiz__list"},_.U(_.mV,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(Y){return _.U("li",{class:"video-summary-content-view-model-wiz__list-item"},_.U(_.RF,{text:function(){return Y().text}}))}))},
else:function(){return _.U(_.mV,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(Y){return _.U("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.U(_.RF,{text:function(){return Y().text}}))})}})}),_.U(_.m,{cond:function(){return!!_.t(c().likeButtonViewModel,_.lR)&&!!_.t(c().dislikeButtonViewModel,_.Ey)},
then:function(){return _.U("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.U("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.U(_.WC,{data:function(){return _.t(c().likeButtonViewModel,_.lR)},
disableIconAnimation:!0})),_.U(_.J7,{data:function(){return _.t(c().dislikeButtonViewModel,_.Ey)}}))}}))},"Xa");
peZ.idomCompat=!0;_.xU(peZ,"video-summary-content-view-model",{props:{data:_.rk,isSearch:_.rk,className:_.rk}});var sg=function(){var B=_.z.apply(this,arguments)||this;var c,x;B.isExpanded=(x=(c=B.data)==null?void 0:c.isExpanded)!=null?x:!1;B.disableExpand=!1;B.showProminentLabel=!1;B.showRightSideLabel=!0;B.toggleExpandableContent=function(P){B.disableExpand||(P.stopPropagation(),_.Dn(_.AV(P),B.hostElement,["info","expanded-subtitle"])||(B.isExpanded=!B.isExpanded,B.ytRendererBehavior.logExplicitClick(B.data),B.JSC$13121_cardList&&!_.T("expandable_metadata_a11y_fix_ks")&&_.fl(B,function(){_.ir(B.hostElement)})))};
B.useSquareThumbnail=!1;B.startX=0;return B};
_.w(sg,_.z);_.a=sg.prototype;_.a.computeUseSquareThumbnail=function(){var B;return(B=this.data)==null?void 0:B.useSquareThumbnail};
_.a.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"}}}}};
_.a.dataChanged=function(){if(this.data){var B,c;this.isExpanded=(c=(B=this.data)==null?void 0:B.isExpanded)!=null?c:!1;var x,P,Y,g;if(B=this.isDarkTheme()?(x=this.data)==null?void 0:(P=x.colorData)==null?void 0:P.darkColorPalette:(Y=this.data)==null?void 0:(g=Y.colorData)==null?void 0:g.lightColorPalette){var k,n;if((k=this.data)==null?0:(n=k.colorData)==null?0:n.vibrantColorPalette)B.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.E9(this.hostElement,B)}}};
_.a.isExpandedChanged=function(){this.isExpanded&&this.JSC$13121_cardList&&_.aJ(this.JSC$13121_cardList,"iron-resize")};
_.a.computeIsExpanded=function(B){return!!B.isExpanded};
_.a.computeShowProminentLabel=function(B,c){var x;return!!(B==null?0:(x=B.header)==null?0:x.showLeadingCollapsedLabel)&&!c};
_.a.computeShowRightSideLabel=function(B,c){var x;return!(B==null?0:(x=B.header)==null?0:x.showLeadingCollapsedLabel)&&!c};
_.a.captureContentClick=function(B){if(!this.disableExpand)if(_.T("expandable_metadata_fix_killswitch")){var c=B.target;_.py4(c,"ytd-macro-markers-list-item-renderer")||B.stopPropagation();(c==null?void 0:c.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Dn(_.AV(B),this.hostElement,["items"])||_.uv(_.AV(B),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.a.timestampClick=function(B){B.stopPropagation();var c,x;(B=(c=this.data)==null?void 0:(x=c.header)==null?void 0:x.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(B)};
_.a.onDown=function(B){B.stopPropagation();this.startX=B.detail?B.detail.x:0};
_.a.onUp=function(B){this.skipKeyInteraction(B)&&B.stopPropagation()};
_.a.skipKeyInteraction=function(B){var c=B.target;if((c==null?void 0:c.id)==="scroll-container"||(c==null?void 0:c.id)==="items"||B.detail&&B.detail.x!==this.startX)return!0;B=_.AV(B);B=_.p(B);for(c=B.next();!c.done;c=B.next()){c=c.value;if(c===this.hostElement)break;if(c.hasAttribute&&c.hasAttribute("skip-key-interaction"))return!0}return!1};
_.a.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.AJ.Object.defineProperties(sg.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.t((B=this.data)==null?void 0:B.expandedContent,mX5)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.t((B=this.data)==null?void 0:B.expandedContent,_.qPQ)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.useCustomColors)&&!((c=this.data)==null||!c.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!((B=this.data)==null?0:(c=B.header)==null?0:c.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!((B=this.data)==null?0:(c=B.header)==null?0:c.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!((B=this.data)==null?0:(c=B.header)==null?0:c.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
sg.prototype.onUp=sg.prototype.onUp;sg.prototype.onDown=sg.prototype.onDown;sg.prototype.isExpandedChanged=sg.prototype.isExpandedChanged;sg.prototype.dataChanged=sg.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],sg.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],sg.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],sg.prototype,"isExpanded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],sg.prototype,"disableExpand",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],sg.prototype,"isSearch",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],sg.prototype,"isWatch",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.H("design:type",Object)],sg.prototype,"showProminentLabel",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.H("design:type",Object)],sg.prototype,"showRightSideLabel",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"hasVideoSummary",null);_.L([_.F({value:!1,reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"hasLockupViewModel",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data","isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"useCustomColors",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"showInfoButton",null);_.L([_.Q("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"showTimestamp",null);_.L([_.Q("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"showExpandedSubtitle",null);
_.L([_.Q("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sg.prototype,"showThumbnail",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],sg.prototype,"useVppShoppingDestinationStyle",null);_.L([_.F(),_.H("design:type",Object)],sg.prototype,"toggleExpandableContent",void 0);_.L([_.jr("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],sg.prototype,"JSC$13121_cardList",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.H("design:type",Object)],sg.prototype,"useSquareThumbnail",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sg.prototype,"dataChanged",null);_.L([_.bF("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sg.prototype,"isExpandedChanged",null);
_.L([_.nF("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sg.prototype,"onDown",null);_.L([_.nF("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sg.prototype,"onUp",null);_.L([_.y({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],sg);
_.G(sg,"ytd-expandable-metadata-renderer",function(){if(n1y!==void 0)return n1y;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return n1y=B},{mode:1});var khm,XeW=function(){if(khm!==void 0)return khm;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return khm=B};_.xU(_.WT,"yt-avatar-stack-view-model",{props:{className:_.rk,data:_.rk,overrides:_.rk,isOverlay:_.rk,useMediumText:_.rk,decorations:_.rk,hideAvatar:_.rk}});_.o2("itemSectionRenderer","videoRenderer","ytd-video-renderer");var pb=function(){var B=_.z.apply(this,arguments)||this;B.disableExpand=!1;B.shouldShowChannelInfo=!1;B.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return B};
_.w(pb,_.z);_.a=pb.prototype;_.a.computeUseSearchUi=function(){var B,c;return this.isSearch||((B=this.data)==null?void 0:(c=B.style)==null?void 0:c.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.a.computeUseThreeLineTitle=function(){var B;return((B=this.data)==null?void 0:B.maxTitleLines)===3};
_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.T("polymer_video_renderer_defer_menu")&&!gT0?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"}}}};
_.a.attached=function(){_.gM(this.hostElement,"blue-links",_.T("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.sm(_.Y9(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var B=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;B&&((c=_.t(B.commandMetadata,_.W7))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(B);this.updateInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13126_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.JSC$13126_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13126_inlinePreviewHoverListener)==null||g2(B)};
_.a.onTextWrapperClick=function(B){var c,x,P=this.hideTranslation?(c=this.data)==null?void 0:c.untranslatedNavigationEndpoint:(x=this.data)==null?void 0:x.navigationEndpoint;c=_.Dn(_.AV(B),this.hostElement,["expandable-metadata"]);!P||c&&!_.T("expandable_metadata_fix_killswitch")||_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.aJ(this.hostElement,"yt-navigate",{endpoint:P})};
_.a.computeThumbnailWidth=function(B,c,x,P,Y){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:P?Y==="MASSIVE"?600:Y==="BIG"?500:Y==="MEDIUM"?450:420:x?360:c?128:B?210:246};
_.a.computeUseBiggerThumbs=function(B){return B&&_.T("enable_desktop_search_bigger_thumbs")};
_.a.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.a.computeVideoStyle=function(){if(_.T("enable_video_style")){var B,c;return(B=this.data)==null?void 0:(c=B.style)==null?void 0:c.value}};
_.a.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.a.handleHideItemSectionVideosByIdCommand=function(B){var c;B=(c=_.t(B,Lsd))==null?void 0:c.videoId;this.data&&this.data.videoId===B&&(this.isHidden=!0)};
_.a.getMetadataSnippetContainerClass=function(B){return B?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.a.computeTitleText=function(B,c,x){return B?x:c};
_.a.computeDescriptionSnippet=function(B,c,x){return B?x:c};
_.a.computeSnippetText=function(B,c,x){return B?x:c};
_.a.computeNavigationEndpoint=function(B,c){return B?c==null?void 0:c.untranslatedNavigationEndpoint:c==null?void 0:c.navigationEndpoint};
_.a.hideInlineTitleIcon=function(B,c){return B||!c};
_.AJ.Object.defineProperties(pb.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 B;return(B=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?B:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!(this==null?0:(B=this.data)==null?0:(c=B.channelThumbnailSupportedRenderers)==null?0:(x=c.channelThumbnailWithLinkRenderer)==null?0:x.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.t((B=this.data)==null?void 0:B.avatar,CaZ)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13126_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.AJ.Object.defineProperties(pb,{template:{configurable:!0,enumerable:!0,get:function(){return XeW()}}});
pb.prototype.dataChanged=pb.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],pb.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.Mz),_.H("design:type",Object)],pb.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],pb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pb.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pb.prototype,"isBackstageVideo",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pb.prototype,"isPostCompactVideo",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],pb.prototype,"isHistory",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pb.prototype,"isRichGridVideoPost",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pb.prototype,"isHidden",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pb.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.H("design:type",Boolean)],pb.prototype,"useSearchUi",void 0);_.L([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.H("design:type",Boolean)],pb.prototype,"useThreeLineTitle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.H("design:type",Boolean)],pb.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.H("design:type",Object)],pb.prototype,"videoStyle",void 0);_.L([_.F({computed:"computeDisableExpand(videoStyle)"}),_.H("design:type",Object)],pb.prototype,"disableExpand",void 0);
_.L([_.F({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.H("design:type",Object)],pb.prototype,"shouldShowChannelInfo",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],pb.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.H("design:type",String)],pb.prototype,"inlineTitleIcon",void 0);_.L([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.H("design:type",Object)],pb.prototype,"computedNavigationEndpoint",void 0);_.L([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(B,c){return _.X9(B.entities,"searchVideoResultEntity",c)}}),
_.H("design:type",Object)],pb.prototype,"searchVideoResultEntity",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],pb.prototype,"thumbnail",void 0);_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],pb.prototype,"JSC$13126_dismissibleMedia",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pb.prototype,"dataChanged",null);
_.L([_.Q("searchVideoResultEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pb.prototype,"hideTranslation",null);_.L([_.Q("searchVideoResultEntity"),_.H("design:type",Array),_.H("design:paramtypes",[])],pb.prototype,"hiddenBadgeGroups",null);_.L([_.Q("data","useAvatar"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pb.prototype,"shouldShowChannelThumbnail",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pb.prototype,"useAvatar",null);
_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pb.prototype,"isHovered",null);_.L([_.y({is:"ytd-video-renderer",disableElementRegistration:!0})],pb);_.G(pb,"ytd-video-renderer",function(){return XeW()},{mode:_.sL("kevlar_poly_si_batch_j047")?1:2});var Kb=function(){var B=_.z.apply(this,arguments)||this;B.editDialog=null;B.roundedContainer=!0;B.isLoading=!1;B.isRichGrid=!1;B.isRichGridRepost=!1;B.reduceSidePaddings=_.T("reduce_side_paddings_in_shelf");B.JSC$13133_spinnerEl=null;return B};
_.w(Kb,_.z);_.a=Kb.prototype;
_.a.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"}}}};
_.a.contentTextChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){var B=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var c=0,x=this.data.actions&&this.data.actions.length;c<x;c++)this.openEditDialog(_.t(this.data.actions[c],nV9));if((c=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(c=this.get("buttonRenderer.hint.hintRenderer.hintId",c))&&c.startsWith("share-post-hint")){var P=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(P){_.cl.getInstance();var Y=xg(_.fk(_.Up("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.EE.addLowPriorityJob(function(){_.XX(B.hostElement,Y,P)})}}}};
_.a.updatePoll=function(B){B>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.a.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13133_spinnerEl||(this.JSC$13133_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Y9(this.hostElement).appendChild(this.JSC$13133_spinnerEl));this.JSC$13133_spinnerEl&&(this.JSC$13133_spinnerEl.active=this.isLoading)};
_.a.onYtNavigate=function(B){var c=this.get("updateCommentDialogEndpoint",B.detail.endpoint);c&&(this.openEditDialog(c),B.stopPropagation())};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.onYtCommentPollRevert=function(B,c){c&&this.updatePoll(c.selectedChoiceIndex)};
_.a.onYtServiceRequestSent=function(B,c){var x;c.endpoint&&(_.t(c.endpoint,FaI)||_.t(c.endpoint,lE5)&&((x=_.t(c.endpoint,lE5))==null||!x.clientActions))&&(this.isLoading=!0);if(c.actions)for(B=0;B<c.actions.length;B++)x=c.actions[B],_.t(x,IA)&&(x=this.get("updateBackstagePollAction.selectedChoiceIndex",x),x==void 0&&(x=-1),this.updatePoll(x))};
_.a.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.a.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.editDialogEl.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.a.computeIsPostHidden=function(B,c){return!!B||c};
_.a.computeSurfaceType=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeUsesCompactLockup=function(B){return B==="BACKSTAGE_SURFACE_TYPE_HOME"||B==="BACKSTAGE_SURFACE_TYPE_SEARCH"||B==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||B==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||B==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||B==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.a.computeShowWithoutToolbar=function(B){return!B.actionButtons&&!B.actionMenu};
_.a.computePostAttachment=function(B){if(B.backstageAttachment){if(_.t(B.backstageAttachment,$lW))return"poll";if(_.t(B.backstageAttachment,uHI))return"quiz";if(_.t(B.backstageAttachment,_.yR))return"video";if(_.t(B.backstageAttachment,DcS))return"uploaded-videos";if(_.t(B.backstageAttachment,GeF))return B.contentText?"image":"image-only";if(_.t(B.backstageAttachment,Hmm))return"playlist"}return"none"};
_.a.computePostTabIndex=function(B){return B?0:-1};
_.a.computeButtonTooltipPosition=function(B){return this.computeUsesCompactLockup(B)?"top":"bottom"};
_.a.computeHasText=function(B){return!(B==null||!B.contentText)};
_.a.onTap=function(B){var c,x;if(((c=this.data)==null?0:c.navigationEndpoint)&&((x=this.data)==null?void 0:x.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.AJ.Object.defineProperties(Kb.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.fk("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,$lW))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,DcS))}}});
Kb.prototype.onYtServiceRequestCompleted=Kb.prototype.onYtServiceRequestCompleted;Kb.prototype.onYtServiceRequestSent=Kb.prototype.onYtServiceRequestSent;Kb.prototype.onYtCommentPollRevert=Kb.prototype.onYtCommentPollRevert;Kb.prototype.onYtCommentboxDismiss=Kb.prototype.onYtCommentboxDismiss;Kb.prototype.onYtNavigate=Kb.prototype.onYtNavigate;Kb.prototype.isLoadingChanged=Kb.prototype.isLoadingChanged;Kb.prototype.dataChanged=Kb.prototype.dataChanged;Kb.prototype.contentTextChanged=Kb.prototype.contentTextChanged;
_.L([_.J(_.Qz),_.H("design:type",Object)],Kb.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Kb.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],Kb.prototype,"editDialog",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Kb.prototype,"roundedContainer",void 0);_.L([_.F(),_.H("design:type",Object)],Kb.prototype,"isLoading",void 0);_.L([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.H("design:type",String)],Kb.prototype,"surface",void 0);
_.L([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Kb.prototype,"usesCompactLockup",void 0);_.L([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Kb.prototype,"showWithoutToolbar",void 0);_.L([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.H("design:type",String)],Kb.prototype,"attachment",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Kb.prototype,"isRichGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Kb.prototype,"isRichGridRepost",void 0);_.L([_.F({reflectToAttribute:!0,value:_.T("use_better_post_dismissals")}),_.H("design:type",Boolean)],Kb.prototype,"useBetterPostDismissals",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Kb.prototype,"reduceSidePaddings",void 0);
_.L([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Kb.prototype,"hasText",void 0);_.L([_.jr("#expander"),_.H("design:type",Object)],Kb.prototype,"expander",void 0);_.L([_.jr("#action-buttons"),_.H("design:type",Object)],Kb.prototype,"actionButtons",void 0);_.L([_.jr("#edit-dialog"),_.H("design:type",HTMLElement)],Kb.prototype,"editDialogEl",void 0);
_.L([_.bF("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kb.prototype,"contentTextChanged",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kb.prototype,"dataChanged",null);_.L([_.bF("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kb.prototype,"isLoadingChanged",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Kb.prototype,"onYtNavigate",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kb.prototype,"onYtCommentboxDismiss",null);_.L([_.nF("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Kb.prototype,"onYtCommentPollRevert",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],Kb.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],Kb.prototype,"onYtServiceRequestCompleted",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Kb.prototype,"voteCount",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Kb.prototype,"commentCount",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"hasPoll",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"hasUploadedVideo",null);_.L([_.y({is:"ytd-post-renderer",disableElementRegistration:!0})],Kb);
_.G(Kb,"ytd-post-renderer",function(){if(Qb3!==void 0)return Qb3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Qb3=B},{mode:1});var $L0;var nLn;var j4=function(){return _.z.apply(this,arguments)||this};
_.w(j4,_.z);j4.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],j4.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],j4.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],j4.prototype,"data",void 0);
_.L([_.F({value:"$.items.children"}),_.H("design:type",String)],j4.prototype,"itemsPath",void 0);_.L([_.F({value:1}),_.H("design:type",Number)],j4.prototype,"initialCount",void 0);_.L([_.F(),_.H("design:type",String)],j4.prototype,"surface",void 0);_.L([_.y({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],j4);
_.G(j4,"ytd-post-multi-image-renderer",function(){if(nLn!==void 0)return nLn;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nLn=B},{mode:_.sL("kevlar_poly_si_batch_j079")?1:2});var bZ3={"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"}}},Ug=function(){var B=_.z.apply(this,arguments)||this;B.hasInlineCommentSection=!1;B.editDialog=null;B.isLoading=!1;B.shouldHideAuthor=!1;B.shouldShowVideoTime=!1;
B.isInEngagementPanel=!1;B.hideBorder=!1;B.usesFullLockup=!1;B.shouldShowMenuInCompactView=!1;B.JSC$13149_spinnerEl=null;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.w(Ug,_.z);_.a=Ug.prototype;_.a.configureRendererStamper=function(){return bZ3};
_.a.computeIsPollHeaderEnabled=function(B){return(B==null?void 0:B.pollMetadataIcon)!=null};
_.a.getPublishTimeStampString=function(B,c){c=new Date((Number(c)-60*((new Date).getTimezoneOffset()-(new Date(Number(c)*1E3)).getTimezoneOffset()))*1E3);c=(new Zj(10)).format(c);if(B&&B.runs&&B.runs.length)for(var x=0;x<B.runs.length;x++)B.runs[x].text&&(B.runs[x].text=B.runs[x].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",c));return B};
_.a.created=function(){this.JSC$13149_spinnerEl=null};
_.a.contentTextChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var B;if((B=this.data)==null?0:B.actions){B=_.p(this.data.actions);for(var c=B.next();!c.done;c=B.next())this.openEditDialog(_.t(c.value,nV9))}};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){_.Y9(this.hostElement).querySelector("#action-buttons").reply()};
_.a.updatePoll=function(B,c){c&&this.set("data.pollMetadataVoteCountText",c);this.hasInlineCommentSection&&(B=B>=0,c=_.Y9(this.hostElement).querySelector("#action-buttons"),B?c.reply():c.hideReplyDialog())};
_.a.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13149_spinnerEl||(this.JSC$13149_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Y9(this.hostElement).appendChild(this.JSC$13149_spinnerEl));this.JSC$13149_spinnerEl&&(this.JSC$13149_spinnerEl.active=this.isLoading)};
_.a.onYtNavigate=function(B){var c=this.get("updateCommentDialogEndpoint",B.detail.endpoint);c&&(this.openEditDialog(c),B.stopPropagation())};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.onYtCommentPollRevert=function(B,c){c&&this.updatePoll(c.selectedChoiceIndex,c.totalVotes)};
_.a.onYtServiceRequestSent=function(B,c){B.stopPropagation();B=_.t(c.endpoint,lE5);if(_.t(c.endpoint,FaI)||B&&!B.clientActions)this.isLoading=!0;if(c.actions)for(B=0;B<c.actions.length;B++){var x=c.actions[B],P=_.t(x,IA);P&&(x=this.get("updateBackstagePollAction.selectedChoiceIndex",x),x===void 0&&(x=-1),this.updatePoll(x,P.totalVotes))}};
_.a.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.a.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.editDialogElement.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.a.computeIsBodyHidden=function(B,c){return!!B||c};
_.AJ.Object.defineProperties(Ug.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var B,c;if((B=this.data)==null?0:(c=B.pollMetadataIcon)==null?0:c.iconType)return _.$0(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.fk("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,$lW))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,uHI))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,DcS))}}});
Ug.prototype.onYtServiceRequestCompleted=Ug.prototype.onYtServiceRequestCompleted;Ug.prototype.onYtServiceRequestSent=Ug.prototype.onYtServiceRequestSent;Ug.prototype.onYtCommentPollRevert=Ug.prototype.onYtCommentPollRevert;Ug.prototype.onYtCommentboxDismiss=Ug.prototype.onYtCommentboxDismiss;Ug.prototype.onYtNavigate=Ug.prototype.onYtNavigate;Ug.prototype.isLoadingChanged=Ug.prototype.isLoadingChanged;Ug.prototype.dataChanged=Ug.prototype.dataChanged;Ug.prototype.contentTextChanged=Ug.prototype.contentTextChanged;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Ug.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ug.prototype,"rendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ug.prototype,"rendererstamperBehavior",void 0);_.L([_.jr("#contentTextExpander"),_.H("design:type",Object)],Ug.prototype,"expander",void 0);
_.L([_.jr("#edit-dialog"),_.H("design:type",Element)],Ug.prototype,"editDialogElement",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"hasInlineCommentSection",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"editDialog",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"isLoading",void 0);
_.L([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.H("design:type",Boolean)],Ug.prototype,"isPollHeaderEnabled",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"shouldHideAuthor",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"shouldShowVideoTime",void 0);_.L([_.F(),_.H("design:type",Object)],Ug.prototype,"isInEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ug.prototype,"hideBorder",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ug.prototype,"usesFullLockup",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ug.prototype,"shouldShowMenuInCompactView",void 0);_.L([_.Q("isInEngagementPanel"),_.H("design:type",Number),_.H("design:paramtypes",[])],Ug.prototype,"postTextMaxLines",null);_.L([_.Q("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ug.prototype,"pollIcon",null);
_.L([_.bF("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ug.prototype,"contentTextChanged",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ug.prototype,"dataChanged",null);_.L([_.bF("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ug.prototype,"isLoadingChanged",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ug.prototype,"onYtNavigate",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ug.prototype,"onYtCommentboxDismiss",null);_.L([_.nF("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Ug.prototype,"onYtCommentPollRevert",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],Ug.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ug.prototype,"onYtServiceRequestCompleted",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ug.prototype,"voteCount",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ug.prototype,"commentCount",null);_.L([_.Q("data.backstageAttachment"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ug.prototype,"hasPoll",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ug.prototype,"hasQuiz",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ug.prototype,"hasUploadedVideo",null);
_.L([_.y({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ug);
_.G(Ug,"ytd-backstage-post-renderer",function(){if($L0!==void 0)return $L0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $L0=B},{mode:1});var Kw3;var qn=function(){var B=_.z.apply(this,arguments)||this;B.editDialog=null;B.showExpandButton=!1;B.isRichGrid=!1;B.usesFullLockup=!1;return B};
_.w(qn,_.z);_.a=qn.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.a.computeShowExpandButton=function(B){return this.usesCompactLockup||B&&B.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.a.computeUsesCompactLockup=function(B){return!!B.condensedContent};
_.a.computeShowFullContentText=function(B){return!B};
_.a.onYtNavigate=function(B){B=this.get("updateCommentDialogEndpoint",B.detail.endpoint);this.openEditDialog(B)};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.repostEditDialogEl.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.a.onTap=function(B){if(this.data){var c=null;this.usesCompactLockup&&!_.uv(_.AV(B)||[],this.hostElement,["YT-IMG-SHADOW"])?c=this.get("navigationEndpoint",this.data):B.target===this.moreButtonEl&&(c=this.get("navigationEndpoint",B.target.data));c&&_.aJ(this.hostElement,"yt-navigate",{endpoint:c})}};
qn.prototype.onYtCommentboxDismiss=qn.prototype.onYtCommentboxDismiss;qn.prototype.onYtNavigate=qn.prototype.onYtNavigate;qn.prototype.dataChanged=qn.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qn.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],qn.prototype,"editDialog",void 0);_.L([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"usesCompactLockup",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"showExpandButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"isRichGrid",void 0);
_.L([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"showFullContentText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"usesFullLockup",void 0);_.L([_.jr("#more"),_.H("design:type",Object)],qn.prototype,"moreButtonEl",void 0);_.L([_.jr("#repost-content-text"),_.H("design:type",HTMLElement)],qn.prototype,"repostContentTextEl",void 0);
_.L([_.jr("#repost-edit-dialog"),_.H("design:type",HTMLElement)],qn.prototype,"repostEditDialogEl",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"dataChanged",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qn.prototype,"onYtNavigate",null);
_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"onYtCommentboxDismiss",null);_.L([_.y({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],qn);
_.G(qn,"ytd-shared-post-renderer",function(){if(Kw3!==void 0)return Kw3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Kw3=B},{mode:1});var jl4;var ULF;var Cb=function(){return _.z.apply(this,arguments)||this};
_.w(Cb,_.z);Cb.prototype.attached=function(){var B=this;this.networkStatusManager||(this.networkStatusManager=new _.Z$,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){B.onlineHandler()}))};
Cb.prototype.detached=function(){var B=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){B.onlineHandler()}),delete this.networkStatusManager)};
Cb.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cb.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Cb);
_.G(Cb,"ytd-reload-page-button-renderer",function(){if(ULF!==void 0)return ULF;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return ULF=B},{mode:1});var dLn={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"},hI=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(hI,_.z);_.a=hI.prototype;_.a.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.a.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.a.computeHasBodyText=function(B){return!!B.bodyText};
_.a.computeButtons=function(B){var c=[];B.ctaButton&&c.push(B.ctaButton);B.secondaryButton&&c.push(B.secondaryButton);return c};
_.a.computeRendererStyle=function(B){return B.style?B.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():B.icon?"":"no-icon"};
_.a.getIconName=function(B,c){c=c===void 0?!1:c;if(B===void 0)return"";B=this.get("icon.iconType",B);var x;_.T("enable_hlp_client_icon_pick")?x=this.getThemedIcon(B,c):x=B;(c=dLn[x])||(c="yt-icons");return[c,x].join(":")};
_.a.getThemedIcon=function(B,c){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(B)?c?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(B)?c?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":B};
_.a.isThumbnail=function(B){return!!B.thumbnail};
_.a.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],hI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hI.prototype,"data",void 0);
_.L([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],hI.prototype,"rendererStyle",void 0);_.L([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.H("design:type",String)],hI.prototype,"iconName",void 0);_.L([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],hI.prototype,"thumbnail",void 0);_.L([_.F({computed:"computeButtons(data)"}),_.H("design:type",Array)],hI.prototype,"buttons",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hI.prototype,"isDarkTheme",void 0);_.L([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],hI.prototype,"hasBodyText",void 0);_.L([_.y({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],hI);
_.G(hI,"ytd-background-promo-renderer",function(){if(jl4!==void 0)return jl4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jl4=B},{mode:1});var qeQ;var mf=function(){var B=_.z.apply(this,arguments)||this;B.collections=_.T("web_modern_collections_v2");return B};
_.w(mf,_.z);_.AJ.Object.defineProperties(mf.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(c=B.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(g=Y.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mf.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],mf.prototype,"collections",void 0);_.L([_.Q("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],mf.prototype,"collectionStack",null);_.L([_.y({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],mf);
_.G(mf,"ytd-compact-station-renderer",function(){if(qeQ!==void 0)return qeQ;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return qeQ=B},{mode:1});var C$3;var TG=function(){var B=_.z.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.w(TG,_.z);TG.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]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TG.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TG.prototype,"isRichGrid",void 0);_.L([_.y({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],TG);
_.G(TG,"ytd-grid-channel-renderer",function(){if(C$3!==void 0)return C$3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return C$3=B},{mode:1});var h4W;var VN=function(){return _.z.apply(this,arguments)||this};
_.w(VN,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VN.prototype,"data",void 0);_.L([_.y({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],VN);
_.G(VN,"ytd-grid-movie-playlist-renderer",function(){if(h4W!==void 0)return h4W;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return h4W=B},{mode:1});var mLF;var tI=function(){var B=_.z.apply(this,arguments)||this;B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.modernButtons=_.T("web_modern_buttons");B.useModernCollectionsV2=_.T("web_modern_collections_v2");return B};
_.w(tI,_.z);tI.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
tI.prototype.configureRendererStamper=function(){return{"data.menu":bO}};
tI.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
tI.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.T("woffle_playlist_renderer_killswitch")){var B,c=cvO(this.entityInfo,this.transferState,this.downloadProgress,(B=this.data)==null?void 0:B.playlistId,this.isOnline);B=c.viewPlaylistText;var x=c.badges;c=c.thumbnailOverlays;this.isDownloads=!!B||!!x;this.set("data.viewPlaylistText",B);x&&x.length>0&&this.set("data.badges",x);c&&c.length>0&&this.set("data.thumbnailOverlays",
c)}};
_.AJ.Object.defineProperties(tI.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 B;return!((B=this.data)==null?0:B.menu)}}});
tI.prototype.transferStateChanged=tI.prototype.transferStateChanged;tI.prototype.dataChanged=tI.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],tI.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],tI.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F({selector:_.UV7,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],tI.prototype,"downloadProgress",void 0);_.L([_.F({selector:_.F9,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],tI.prototype,"transferState",void 0);_.L([_.F({selector:jAq,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],tI.prototype,"entityInfo",void 0);_.L([_.F({selector:ow}),_.H("design:type",Boolean)],tI.prototype,"isOnline",void 0);
_.L([_.F(),_.H("design:type",Object)],tI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],tI.prototype,"downloadRenderData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],tI.prototype,"modernButtons",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],tI.prototype,"isDownloads",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tI.prototype,"useModernCollectionsV2",void 0);
_.L([_.Q("transferState"),_.F({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],tI.prototype,"downloadState",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tI.prototype,"menuHidden",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tI.prototype,"dataChanged",null);
_.L([_.CF("transferState","downloadProgress","isOnline"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tI.prototype,"transferStateChanged",null);_.L([_.y({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],tI);
_.G(tI,"ytd-grid-playlist-renderer",function(){if(mLF!==void 0)return mLF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return mLF=B},{mode:1});var T6S;var wo=function(){var B=_.z.apply(this,arguments)||this;B.collections=_.T("web_modern_collections_v2");return B};
_.w(wo,_.z);wo.prototype.configureRendererStamper=function(){return{"data.menu":bO,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.AJ.Object.defineProperties(wo.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(c=B.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(g=Y.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],wo.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],wo.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wo.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wo.prototype,"collections",void 0);_.L([_.Q("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],wo.prototype,"collectionStack",null);_.L([_.y({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],wo);
_.G(wo,"ytd-grid-radio-renderer",function(){if(T6S!==void 0)return T6S;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return T6S=B},{mode:1});var V0Z;var Nn=function(){var B=_.z.apply(this,arguments)||this;B.useModernCollectionsV2=_.T("web_modern_collections_v2");return B};
_.w(Nn,_.z);Nn.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Nn.prototype.computeNavigationEndpoint=function(B){return FE$(B==null?void 0:B.navigationEndpoint)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],Nn.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Nn.prototype,"data",void 0);_.L([_.F({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],Nn.prototype,"computedNavigationEndpoint",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Nn.prototype,"useModernCollectionsV2",void 0);_.L([_.y({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Nn);
_.G(Nn,"ytd-grid-show-renderer",function(){if(V0Z!==void 0)return V0Z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return V0Z=B},{mode:1});var t0m;_.Ip=function(B){this.playerClient=B};
_.weZ=function(B,c,x){x=x===void 0?{}:x;return B.playerClient.setOption("ad",c,x)};
_.Ip.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Ip.prototype.executeCommand=function(B,c){this.getOptions().includes("executeCommand")?_.weZ(this,"executeCommand",{command:B,layoutId:c}):_.c8("Calling executeCommand when adModule is not loaded")};var JI=function(){return _.z.apply(this,arguments)||this};
_.w(JI,_.z);JI.prototype.getLayoutId=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
JI.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var B=_.e5(),c=this.getLayoutId(),x=this.data.clickthroughEndpoint;B&&c&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(P){(new _.Ip(P)).executeCommand(x,c)}):_.aJ(this.hostElement,"yt-navigate",{endpoint:x})}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JI.prototype,"data",void 0);_.L([_.y({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],JI);
_.G(JI,"ytd-shopping-companion-item-renderer",function(){if(t0m!==void 0)return t0m;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return t0m=B},{mode:1});var N63;var Wz=function(){var B=_.z.apply(this,arguments)||this;B.isExpandableContent=!1;return B};
_.w(Wz,_.z);_.AJ.Object.defineProperties(Wz.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?void 0:B.price)||((c=this.data)==null?void 0:(x=c.dealsData)==null?void 0:x.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var B,c;if((B=this.data)!=null&&B.dealsData&&((c=this.data)==null||!c.priceReplacementText)){B=this.data.dealsData;var x,P,Y;return((x=B.salesData)==null?void 0:x.originalPrice)||((P=B.priceDropData)==null?void 0:P.referencePrice)||((Y=B.promotionData)==null?void 0:Y.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var B,c;return(B=this.data)==null?void 0:(c=B.dealsData)==null?void 0:c.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Wz.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wz.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Wz.prototype,"isExpandableContent",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"showCta",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"ctaText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"hasPriceTopPosition",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"hasPriceBottomPosition",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"useNewStyle",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"showPriceReplacementText",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"priceValue",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"showDeal",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"showAffiliateDisclaimer",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"useSaleStyle",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"useFromBrandCtaStyle",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"useFromVendorCtaStyle",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wz.prototype,"useShoppingCollectionCtaStyle",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Wz);
_.G(Wz,"ytd-vertical-product-card-renderer",function(){if(N63!==void 0)return N63;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return N63=B},{mode:1});var IXS;var lc=function(){return _.z.apply(this,arguments)||this};
_.w(lc,_.z);lc.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],lc.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lc.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],lc);
_.G(lc,"ytd-grid-movie-renderer",function(){if(IXS!==void 0)return IXS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return IXS=B},{mode:1});var JH9;var Eg=function(){var B=_.z.apply(this,arguments)||this;B.rounded=!0;B.itemStyle="small-item";return B};
_.w(Eg,_.z);Eg.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var B,c,x,P,Y=(c=_.t((B=this.data)==null?void 0:B.buttonCommand,_.VR))==null?void 0:(x=c.item)==null?void 0:(P=x.notificationTextRenderer)==null?void 0:P.successResponseText;Y&&_.Bvx(this.hostElement,Y)}};
_.AJ.Object.defineProperties(Eg.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.isProductPlaceholder)!==void 0&&((c=this.data)==null?void 0:c.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Eg.prototype,"rounded",void 0);_.L([_.F(),_.H("design:type",Object)],Eg.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],Eg.prototype,"itemStyle",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"hasPrice",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"hasPriceReplacementText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"hasAdditionalFeesText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"hasAffiliateDisclaimer",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"isProductPlaceholder",null);
_.L([_.F(),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"hideOpenInNewIcon",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"ariaLabel",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Eg);
_.G(Eg,"ytd-merch-shelf-item-renderer",function(){if(JH9!==void 0)return JH9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return JH9=B},{mode:1});var WwS=_.rM(function(B){var c=_.Ho("button-card-view-model");_.Hv(c,function(){return B.data().rendererContext});
return _.U("button-card-view-model",{el:c,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return B.data().title},
role:"button"},_.U(_.Ne,{model:{}}),_.U("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.U("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.U(_.m,{cond:function(){return B.data().image},
then:function(x){return _.U(_.D9,{data:x,alt:function(){var P;return(P=B.data().title)!=null?P:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.U("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return B.data().title})))},"Ya");_.T("web_button_view_model_wcw_registration_killswitch")||_.xU(WwS,"button-card-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){B=_.uF(B,{className:void 0});var c=B.data;B=B.className;var x=_.db(function(){return c().onTapCommand},void 0,"NprDr");
return _.U("ytd-shopping-item-card",{class:_.Kw("ytdShoppingItemCardHost",B)},_.U(_.$J,{command:x,className:"ytdShoppingItemCardHostLink"},_.U("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.U(_.IF,{data:function(){return c().thumbnailViewModel}},{thumbnailViewModel:function(P){return _.U(_.Df,{data:P.data,
aspectRatio:3})}})),_.U("div",null,_.U("p",{class:"ytdShoppingItemCardHostItemTitle"},_.U(_.RF,{text:function(){return c().itemTitle}})),_.U("p",{class:"ytdShoppingItemCardHostPrice"},_.U(_.RF,{text:function(){return c().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.rk,
className:_.rk}});var lX9={isAdsVideo:!0},ELd={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},OZW={showPlayerControls:!1,videoPreviewDurationMs:15E3},oL0={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.T("web_shorts_imp_fullwidth_killswitch")};var P8=null,cy$={};var YtC="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(" "),Og={},abq=(Og.FEwhat_to_watch="home",Og.FEhashtag="hashtag",Og.FEtrending="trending",Og.FEhistory="history",Og.SPunlimited="premium",Og.FEmemberships_and_purchases="paid_memberships",Og.SPredeem_code="redeem",Og.SPverify_location="locate",Og.SPminor_moment="minor_moment",
Og.FEmini_app_container="mini_app",Og.FEnews_destination="news",Og.SPopen_in_app="open_in_app",Og.FEexplore="explore",Og.FEsubscriptions="subscriptions",Og.FEsfv_audio_pivot="sfv_audio_pivot",Og.FEplaylist_aggregation="playlist_aggregation",Og);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");_.$C("init");var Ql3=function(){},SeS=_.rM(function(B){var c=B.data;
var x=B.inlineMetadata;var P=B.aspectRatio;var Y=B.scrimStyle;var g=B.className;var k=B.useDefaultStyle;var n=new Ql3,b=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.db(function(){return(k==null?0:k())?b==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),q=_.db(function(){return _.Ox(x)||d()||!1},void 0,"x8cr8b"),C=function(){return(Y==null?void 0:Y())!==void 0?Y==null?void 0:Y():1},h=_.db(function(){return c().belowThumbnailMetadata||
!q()},void 0,"Q84Mmb");
B=_.Ho("ytm-shorts-lockup-view-model",function(u){n&&(n.hostElement=u,E())});
_.e3(B,{visibilityCallback:function(u){var e=c().onFirstVisible;u&&e&&_.Gl(e)},
showOption:{calledOnce:!0,state:"visible"}});g=_.Kw("shortsLockupViewModelHost",g);var V=_.Ho("div"),N={};N=_.Kw(function(){return d(),"shortsLockupViewModelHostThumbnailContainer"},(N.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Ox(P)===1},N.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Ox(P)===2},N.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!d()},N.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.T("web_shorts_2_by_3_lockups_study")&&!_.T("desktop_search_enable_two_by_three_shorts_aspect_ratio")},N));
var l,E=function(){if(n){var u;(u=l)==null||g2(u);var e;n.hostElement&&((e=n.data)==null?0:e.inlinePlayerData)&&(l=Ab({mediaRenderer:n,lockupElement:n.hostElement,thumbnailElement:V.value,videoPreviewOpts:oL0}))}};
_.IO(function(){n&&(n.data=c(),E())},"M6Qdl");
var S=_.db(function(){return c().thumbnail},void 0,"kpJjV"),M=_.db(function(){return c().badge},void 0,"Uaw67"),f=_.db(function(){return c().onTap},void 0,"aZjcTb"),Z={};
return _.U("ytm-shorts-lockup-view-model",{el:B,class:g},_.U(_.at,null,_.U(_.$J,{command:f,className:_.Kw("shortsLockupViewModelHostEndpoint",(Z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!h()},Z),"reel-item-endpoint",""),
ariaHidden:function(){return!q()},
tabIndex:function(){return q()?0:-1}},_.U("div",{el:V,
class:N},_.U(_.m,{cond:S,then:function(){return _.U(_.D9,{data:function(){var u;return(u=S==null?void 0:S())!=null?u:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.U(_.m,{cond:q,
then:function(){return _.U(FwZ,{data:c,scrimStyle:C,useDefaultStyle:k})}}),_.U(_.IF,{data:M},{badgeViewModel:function(u){return _.U(_.Bz,{data:u.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.U(_.m,{cond:function(){return q()&&c().menuOnTap},
then:function(){return _.U(vLm,{data:c,inlineMetadata:!0})}}),_.U(_.m,{cond:h,
then:function(){return _.U(z43,{data:c,useDefaultStyle:k})}})))},"$a"),FwZ=_.rM(function(B){var c=B.data;
var x=B.scrimStyle;var P=B.useDefaultStyle;var Y=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=P&&_.T("web_hide_primary_text_for_pivot_panel"),k=_.db(function(){return(P==null?0:P())?Y==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"Vk6Xmf");
B={};B=_.Kw("shortsLockupViewModelHostInlineMetadata",(B.shortsLockupViewModelHostMetadataRounded=function(){return!k()},B.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(x==null?void 0:x())===3&&!_.T("enable_shorts_lockup_new_scrim")},B.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(x==null?void 0:x())===3&&_.T("enable_shorts_lockup_new_scrim")},B.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(x==null?void 0:x())===2||(x==null?void 0:
x())===4},B.shortsLockupViewModelHostShowOverPlayer=function(){return!0},B),"image-overlay-text");
var n={};return _.U("div",{class:B},_.U("h3",{class:_.Kw("shortsLockupViewModelHostMetadataTitle",(n.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(x==null?void 0:x())===4},n)),
"aria-label":function(){return c().accessibilityText}},_.U(_.m,{cond:function(){var b;
return!((b=c().overlayMetadata)==null||!b.primaryText)&&!g},
then:function(){return _.U(_.RF,{text:function(){var b;return(b=c().overlayMetadata)==null?void 0:b.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.U(_.m,{cond:function(){var b;
return(b=c().overlayMetadata)==null?void 0:b.secondaryText},
then:function(){return _.U(yH9,{data:c,scrimStyle:x,className:void 0})}}))},"ab"),z43=_.rM(function(B){var c=B.data;
var x=B.useDefaultStyle;var P=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Y=_.db(function(){return(x==null?0:x())?P==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KkUyib");
B=_.Kw(function(){return Y()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var g=_.Ho("div"),k,n=_.qe(function(h){if(_.Mv(_.Gj(h),g.value,["AVATAR-VIEW-MODEL"]))return!1;var V;(V=k)==null||V.click();return!1}),b=_.db(function(){return c().belowThumbnailMetadata||c().overlayMetadata},void 0,"pwoVwc"),d=function(){var h;
return(h=b())==null?void 0:h.avatar},q={},C={};
return _.U("div",{class:_.Kw(B,(q.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!d()},q)),
"on:click":n,el:g},_.U(_.IF,{data:d},{avatarViewModel:function(h){return _.U("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.U(_.IS,{data:h.data}))}}),_.U("div",null,_.U("h3",{class:_.Kw("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(C.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var h,V;
return!((h=b())==null?0:(V=h.primaryText)==null?0:V.content)},C)),
"aria-label":function(){return c().accessibilityText}},_.U(_.$J,{ref:function(h){return void(k=h)},
command:function(){return c().onTap},
className:_.Kw("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var h,V;return(h=b())==null?void 0:(V=h.primaryText)==null?void 0:V.content}},_.U(_.m,{cond:function(){var h;
return(h=b())==null?void 0:h.primaryText},
then:function(h){return _.U(_.RF,{text:h,noEndpoints:!0,noStyleRuns:!0})}}))),_.U(_.m,{cond:function(){var h;
return(h=b())==null?void 0:h.secondaryText},
then:function(h){return _.U("div",{class:_.Kw("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.U(_.RF,{text:h,noStyleRuns:!0}))}})),_.U(_.m,{cond:function(){return c().menuOnTap},
then:function(){return _.U(vLm,{data:c,inlineMetadata:!1})}}))},"bb"),yH9=_.rM(function(B){var c=B.data;
var x=B.scrimStyle;B=B.className;var P={};return _.U("div",{class:_.Kw((P.shortsLockupViewModelHostMetadataSubhead=function(){return(x==null?void 0:x())!==4},P.shortsLockupViewModelHostMetadataSubheadNew=_.T("enable_shorts_lockup_new_scrim"),P.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(x==null?void 0:x())===4},P),B),
"aria-hidden":"true"},_.U(_.RF,{text:function(){var Y;return(Y=c().overlayMetadata)==null?void 0:Y.secondaryText},
noStyleRuns:!0}))},"cb"),vLm=_.rM(function(B){var c=B.data;
var x=B.inlineMetadata;B={};B=_.Kw((B.shortsLockupViewModelHostInlineMetadataMenu=function(){return x()},B.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!x()},B.shortsLockupViewModelHostShowOverPlayer=function(){return!0},B),"image-overlay-text");
return _.U("div",{class:B},_.U(B8,{data:function(){return{style:x()?"overlay":"mono",accessibilityLabel:c().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(P){P.preventDefault();P.stopPropagation();var Y=_.S_({elementsCommand:c().menuOnTap,forceNewState:!0});if(Y==null?0:Y.onclick)Y.onclick(P)}}},
iconName:"MORE_VERT"}))},"db");var GhQ=_.rM(function(B){var c=B.data;var x=B.inlineMetadata;var P=B.aspectRatio;var Y=B.scrimStyle;var g=B.className;var k=B.useDefaultStyle;B=_.db(function(){var n=c().entityId;return n?n.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.U("ytm-shorts-lockup-view-model-v2",{class:_.Kw("shortsLockupViewModelHost",g)},_.U(_.ei4,{contentId:B,aspectRatio:function(){return(P==null?void 0:P())===1?1:(P==null?void 0:P())===2?2:4}},function(){return _.U(SeS,{data:c,
inlineMetadata:x,aspectRatio:P,scrimStyle:Y,className:g,useDefaultStyle:k})}))},"eb");_.xU(GhQ,"ytm-shorts-lockup-view-model-v2",{props:{data:_.cw,inlineMetadata:_.cw,aspectRatio:_.cw,scrimStyle:_.cw,className:_.cw,useDefaultStyle:_.cw}});var M0S=16/9*210,op=function(){var B=_.z.apply(this,arguments)||this;B.isExpandableContent=!1;B.hideShelfHeader=!1;B.engagementPanel=!1;B.buttonClasses=["arrow"];B.isSearch=!1;B.disableScrollEventListener=!1;B.containsLockup=!1;B.overrideArrowPositionForProductCard=!1;B.overrideArrowPositionForShoppingItemCard=!1;B.overrideArrowPositionForReelItems=!1;B.overrideArrowPositionForGridMovie=!1;B.overrideArrowPositionToCenter=!1;B.isSearchPostShelf=!1;B.overrideArrowPositionForMixedShelf=!1;B.overrideArrowPositionForMixedShelfShortsOnly=
!1;B.hasBigThumbsReelItems=!1;B.shouldUseMixedListHeight=!1;B.shouldUseShortsListHeight=!1;B.gridVideoWidth=0;B.isSearchVodShelf=!1;B.disableWheelScroll=!1;B.sizing="COMPACT";B.shortsLockupAspectRatio=0;return B};
_.w(op,_.z);_.a=op.prototype;
_.a.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]]"}}}}};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.T("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.a.computeInitialCountNumber=function(B){if(!B)return 6;var c=B.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),x=B.items.some(function(g){return!!g.displayAdRenderer}),P=this.computeShouldListItemsHaveEqualHeight(B),Y=B.items.some(function(g){return!!g.gridPlaylistRenderer});
B=B.items.some(function(g){return!!g.shoppingItemCardViewModel});
return c?9:x?8:Y||P?10:B?7:6};
_.a.computeContainsPost=function(B){return!!B&&!!B.items&&B.items.some(function(c){return!!c.postRenderer})};
_.a.computeContainsLockup=function(){if(_.T("web_horizontal_list_lockup_arrow_killswitch"))return!1;var B,c;return(B=this.data)==null?void 0:(c=B.items)==null?void 0:c.some(function(x){return!!x.lockupViewModel})};
_.a.maybeUpdateLockupAspectRatio=function(){var B,c;if(this.computeContainsLockup()&&((B=this.data)==null?0:(c=B.items)==null?0:c.length)){var x;B=khq((x=this.data.items[0].lockupViewModel)==null?void 0:x.contentType,this.data.force16By9ThumbnailAspectRatio);x=N0q(B);x=this.computeLockupWidth()/x;_.k9(this.hostElement,{"--yt-horizontal-list-content-height":x+"px"})}};
_.a.computeOverrideArrowPositionForProductCard=function(B){if(this.isExpandableContent)return!1;var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){return!!x.verticalProductCardRenderer}))};
_.a.computeOverrideArrowPositionForShoppingItemCard=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){return!!x.shoppingItemCardViewModel}))};
_.a.computeOverrideArrowPositionForReelItemRenderer=function(B){return this.containsReelItemRenderer(B)};
_.a.computeHasBigThumbsReelItems=function(B,c){return B&&this.containsReelItemRenderer(c)};
_.a.computeShouldListItemsHaveEqualHeight=function(B){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(B==null?void 0:B.itemSizeConstraint)};
_.a.computeShouldListItemsHaveShortsHeight=function(B){return this.computeShouldListItemsHaveEqualHeight(B)&&!this.containsGridVideoRenderer(B)};
_.a.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.a.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.a.containsReelItemRenderer=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){return!(!x.reelItemRenderer&&!x.shortsLockupViewModel)}))};
_.a.containsGridVideoRenderer=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){return!!x.gridVideoRenderer||!!x.lockupViewModel}))};
_.a.computeContainsGridMovieRenderer=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){return!!x.gridMovieRenderer}))};
_.a.computeOverrideArrowPositionToCenter=function(B){return this.computeIsSearchPostShelf(B)};
_.a.computeIsSearchPostShelf=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){var P,Y;return((Y=(P=x.postRenderer)==null?void 0:P.surface)!=null?Y:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.a.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(B){var c;return!!(B==null?0:(c=B.items)==null?0:c.some(function(x){var P,Y,g;return((g=(P=x.backgroundPromoRenderer)==null?void 0:(Y=P.style)==null?void 0:Y.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.a.computeIsSearchVodShelf=function(B,c){return B&&this.containsGridVideoRenderer(c)};
_.a.computeDisableWheelScroll=function(B,c){return this.computeIsSearchVodShelf(B,c)};
_.a.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.a.computeShortsLockupAspectRatio=function(){return 1};
_.a.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.k9(this.hostElement,{"--ytd-reel-item-thumbnail-height":M0S+"px"})};
op.prototype.dataChanged=op.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],op.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],op.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],op.prototype,"isExpandableContent",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"hideShelfHeader",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Array)],op.prototype,"buttonClasses",void 0);_.L([_.F(),_.H("design:type",Object)],op.prototype,"isSearch",void 0);
_.L([_.F(),_.H("design:type",Object)],op.prototype,"disableScrollEventListener",void 0);_.L([_.F({computed:"computeInitialCountNumber(data)"}),_.H("design:type",Number)],op.prototype,"initialCount",void 0);_.L([_.F({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],op.prototype,"supportComponentResize",void 0);_.L([_.F({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],op.prototype,"containsPost",void 0);
_.L([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"containsLockup",void 0);_.L([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],op.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.L([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForProductCard",void 0);_.L([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.L([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForReelItems",void 0);_.L([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForGridMovie",void 0);
_.L([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionToCenter",void 0);_.L([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"isSearchPostShelf",void 0);_.L([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.L([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.L([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"hasBigThumbsReelItems",void 0);
_.L([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"shouldUseMixedListHeight",void 0);_.L([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"shouldUseShortsListHeight",void 0);_.L([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"gridVideoWidth",void 0);
_.L([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"isSearchVodShelf",void 0);_.L([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],op.prototype,"disableWheelScroll",void 0);_.L([_.F({computed:"computeSizing(isSearch)"}),_.H("design:type",Object)],op.prototype,"sizing",void 0);
_.L([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.H("design:type",Object)],op.prototype,"shortsLockupAspectRatio",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],op.prototype,"dataChanged",null);
_.G(op,"yt-horizontal-list-renderer",function(){if(AhW===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);AhW=B}B=AhW;return B},{mode:1});var Lwy;var ZZ9=[10,12,14,16,18,20,24,28,32,36],HZd=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],QN=function(){var B=_.z.apply(this,arguments)||this;B.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";B.hideOverflow=!1;B.useRoboto=!1;B.fontClass="";B.overflown=!1;B.actionMap={"yt-window-resized":"resize"};return B};
_.w(QN,_.z);_.a=QN.prototype;
_.a.attached=function(){var B=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();_.fl(this,function(){B.resize()});
if(!_.$V){var c,x,P;(c=document)==null||(x=c.fonts)==null||(P=x.ready)==null||P.then(function(){B.resize()})}};
_.a.dataChanged=function(){this.resize()};
_.a.guideIsExpandedChanged=function(){this.resize()};
_.a.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 B=this.getMaxNumLines(),c=this.getMinFont(),x=this.getMaxFont(),P=this.useRoboto?ZZ9:HZd;for(P=P.filter(function(g){return g<=x&&g>=c});P.length>1;){var Y=Math.floor(P.length/2);
this.updateFontSize(P[Y]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=B)P=P.slice(Y,P.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>B)P=P.slice(0,Y);else break}this.updateFontSize(P[P.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(B)}};
_.a.handleOverflow=function(B){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>B&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",B.toString()))};
_.a.updateFontSize=function(B){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+B;this.textNode.classList.add(this.fontClass)};
_.a.getMaxFont=function(){var B=this.useRoboto?ZZ9:HZd;B=B[B.length-1];return this.maxFontSize&&this.maxFontSize<=B?this.maxFontSize:B};
_.a.getMinFont=function(){var B=(this.useRoboto?ZZ9:HZd)[0];return this.minFontSize&&this.minFontSize>=B?this.minFontSize:B};
_.a.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.a.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.a.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.iG(this.text).split("\n").length-1:Infinity};
_.a.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
QN.prototype.guideIsExpandedChanged=QN.prototype.guideIsExpandedChanged;QN.prototype.dataChanged=QN.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],QN.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],QN.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QN.prototype,"text",void 0);
_.L([_.F(),_.H("design:type",String)],QN.prototype,"fontFamily",void 0);_.L([_.F(),_.H("design:type",Number)],QN.prototype,"maxWidth",void 0);_.L([_.F(),_.H("design:type",Number)],QN.prototype,"maxHeight",void 0);_.L([_.F(),_.H("design:type",Number)],QN.prototype,"maxFontSize",void 0);_.L([_.F(),_.H("design:type",Number)],QN.prototype,"minFontSize",void 0);_.L([_.F(),_.H("design:type",Number)],QN.prototype,"maxLines",void 0);_.L([_.F(),_.H("design:type",Object)],QN.prototype,"hideOverflow",void 0);
_.L([_.F({selector:_.YPQ}),_.H("design:type",Boolean)],QN.prototype,"guideIsExpanded",void 0);_.L([_.jr("#container"),_.H("design:type",HTMLElement)],QN.prototype,"containerNode",void 0);_.L([_.jr("#text"),_.H("design:type",HTMLElement)],QN.prototype,"textNode",void 0);_.L([_.CF("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QN.prototype,"dataChanged",null);
_.L([_.CF("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QN.prototype,"guideIsExpandedChanged",null);_.L([_.y({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],QN);
_.G(QN,"yt-dynamic-sizing-formatted-string",function(){if(Lwy!==void 0)return Lwy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Lwy=B},{mode:1});var fXF;_.iZt=function(B){_.B$.call(this,B)};
_.w(_.iZt,_.B$);var AHm=function(B){_.B$.call(this,B)};
_.w(AHm,_.iZt);var FK=function(){return _.z.apply(this,arguments)||this};
_.w(FK,_.z);FK.prototype.onTapSuspendedChannel=function(){var B;if((B=this.data)!=null&&B.serviceEndpoint){var c,x;(B=(x=_.t((c=this.data)==null?void 0:c.serviceEndpoint,_.yp))==null?void 0:x.url)?_.Lr(B,void 0,void 0,window.top):(c=new AHm("Did not handle suspended account tap. No appealUrl."),_.lb(c))}else c=new AHm("Did not handle suspended account tap. No serviceEndpoint."),_.lb(c)};
FK.prototype.onTap=function(){var B=this,c=_.q_(),x,P=(x=_.dX(c,{veType:7116}))!=null?x:void 0;_.GU(c,{visualElement:P});_.GF();this.saveRoleText();var Y;if((Y=this.data)==null?0:Y.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,k,n;(c=(n=_.t((k=this.data)==null?void 0:k.serviceEndpoint,_.MgI))==null?void 0:n.supportedTokens)&&c.forEach(function(b){if(b.accountSigninToken)if(g=!0,B.onAccountItemTap)B.onAccountItemTap(b.accountSigninToken.signinUrl);else _.Lr(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(k=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(k);g||_.Eb(new AHm("Did not handle account switch tap. No token."))}}};
FK.prototype.saveRoleText=function(){if(this.data){var B=this.data,c=B.channelDelegationRole;if(c){var x,P=(x=_.t(B==null?void 0:B.serviceEndpoint,_.MgI))==null?void 0:x.supportedTokens;if(!P){var Y,g,k,n;P=(Y=_.t(B==null?void 0:B.serviceEndpoint,_.J3))==null?void 0:(g=Y.popup)==null?void 0:(k=g.confirmDialogRenderer)==null?void 0:(n=k.confirmButton)==null?void 0:n.buttonRenderer;var b;P=(b=_.t(P==null?void 0:P.command,_.nW))==null?void 0:b.commands;if(!P)return;var d;P=(d=_.t(P[1],_.MgI))==null?
void 0:d.supportedTokens}if(P){b=void 0;d=_.p(P);for(P=d.next();!P.done;P=d.next())if(P=P.value,P.datasyncIdToken){b=P.datasyncIdToken.datasyncIdToken;break}if(b){var q;a:{if(_.iQI()&&(d=_.Xfq(b+"::pom"))){d=new I$(d);break a}d=void 0}(q=d)==null||q.set("role_text",c);if((gGC?gGC:window.location).href.indexOf("studio")!==-1&&(q=A6w())){d=q.src?(new URL(q.src)).origin:"*";var C;(C=q.contentWindow)==null||C.postMessage({action:"save_pom_role",datasyncId:b,roleText:c},d)}}}}}};
_.AJ.Object.defineProperties(FK.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.accountPhoto)==null?void 0:c.thumbnails;return x&&x.length>0&&(x[0].height===36||x[0].height===48)?x[0].height:40}}});
FK.prototype.onTap=FK.prototype.onTap;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],FK.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Function)],FK.prototype,"onAccountItemTap",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FK.prototype,"enableRingForActiveAccount",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],FK.prototype,"thumbnailSize",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FK.prototype,"onTap",null);_.L([_.y({is:"ytd-account-item-renderer",disableElementRegistration:!0})],FK);
_.G(FK,"ytd-account-item-renderer",function(){if(fXF!==void 0)return fXF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return fXF=B},{mode:1});var uZ5;var vz=function(){return _.z.apply(this,arguments)||this};
_.w(vz,_.z);vz.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.cp().resolve(_.xu).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vz.prototype,"data",void 0);_.L([_.y({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],vz);
_.G(vz,"ytd-identity-chip-renderer",function(){if(uZ5!==void 0)return uZ5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uZ5=B},{mode:1});var DL5;var rHn;var R4Q;var e43;var zG=function(){var B=_.z.apply(this,arguments)||this;B.richItemMinWidth=_.Yu("wn_grid_min_item_width",310);B.isShorts=!1;B.isWatchNext=!1;B.isExploreHub=!1;return B};
_.w(zG,_.z);_.AJ.Object.defineProperties(zG.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var B=[],c=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.k9(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var x;if(((x=this.data)==null?0:x.rows)&&c)for(c*=this.data.rows,x=0;x<c;x++)B.push({});return B}}});
_.L([_.J(_.OU),_.H("design:type",Object)],zG.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zG.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.lG,value:3}),_.H("design:type",Number)],zG.prototype,"itemsPerRow",void 0);_.L([_.F({selector:_.PaX,value:6}),_.H("design:type",Number)],zG.prototype,"slimItemsPerRow",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Number)],zG.prototype,"richItemMinWidth",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],zG.prototype,"miniMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zG.prototype,"isShorts",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zG.prototype,"isWatchNext",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zG.prototype,"isExploreHub",void 0);
_.L([_.Q("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.H("design:type",Array),_.H("design:paramtypes",[])],zG.prototype,"cardItems",null);_.L([_.y({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],zG);
_.Bv4=_.gX()(zG,"ytd-ghost-grid-renderer",function(){if(e43===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);e43=B}B=e43;return B},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.xU(_.rM(function(B){var c=_.uF(B,{numberOfComments:3}).numberOfComments,x=_.uF(B,{isInitialLoad:!1}).isInitialLoad,P=_.uF(B,{engagementPanel:!1}).engagementPanel,Y=function(){return Math.min(Number(c==null?void 0:c())||20,20)};
return _.U("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.U(_.m,{cond:function(){return!(P==null?0:P())&&(x==null?void 0:x())},
then:function(){return _.U("div",{class:"ytGhostCommentsComments"},_.U("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.U("div",{class:_.Kw("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.U("div",{class:_.Kw("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.U("div",{class:"ytGhostCommentsGhostCard"},_.U("div",{class:"ytGhostCommentsAvatar"},_.U("div",{class:"ytGhostCommentsCircle"})),_.U("div",{class:"ytGhostCommentsComments"},_.U("div",{class:"ytGhostCommentsMeta"},
_.U("div",{class:_.Kw("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.U("div",{class:_.Kw("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.U("div",{class:"ytGhostCommentsComments"},_.U(_.mV,{each:function(){return Array((Y==null?void 0:Y())||3)}},function(){return _.U("div",{class:"ytGhostCommentsGhostCard"},_.U("div",{class:"ytGhostCommentsAvatar"},_.U("div",{class:"ytGhostCommentsCircle"})),_.U("div",{class:"ytGhostCommentsHost"},_.U("div",{class:"ytGhostCommentsMeta"},
_.U("div",{class:_.Kw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.U("div",{class:_.Kw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:_.Kw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:"ytGhostCommentsGhostLikeDislike"},_.U("div",{class:_.Kw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:_.Kw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.rk,
isInitialLoad:_.rk,engagementPanel:_.rk}});_.o2("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var S4=function(){var B=_.z.apply(this,arguments)||this;B.isOverridable=!1;B.spinnerActive=!1;B.showButton=!1;B.isCommentsSection=!1;B.engagementPanel=!0;B.isShortsGrid=!1;B.isShortsPage=!1;B.isWatchPage=!1;B.ghostCardExperimentEnabled=_.T("show_ghost_comments_shorts_watch")||_.T("show_ghost_comments_desktop_watch");B.originalShowButton=!1;B.endOfList=!1;return B};
_.w(S4,_.z);_.a=S4.prototype;_.a.resetIntersectionObserver=function(){var B;(B=this.observer)==null||B.disconnect();this.observer=void 0};
_.a.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var B,c;((B=this.data)==null?void 0:B.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((c=this.data)==null?0:c.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.a.initializeIntersectionObserver=function(){var B=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(c){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x.value.isIntersecting&&(B.triggerContinuation(),B.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.a.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]]"}}}}}};
_.a.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var B;((B=this.data)==null?0:B.continuationEndpoint)&&(B=_.t(this.data.continuationEndpoint,_.zU))&&this.ytdReduxBehavior.dispatch(_.YN({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:B}}))};
_.a.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.a.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.a.onServiceRequestCompleted=function(B,c){if(!_.T("kevlar_hide_spinner_on_empty_continuation_killswitch")){var x;(x=c.actions)!=null&&x.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.a.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.a.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.a.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.a.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var B=3;if(this.engagementPanel){var c,x,P;B=Math.floor(((((c=this.hostElement)==null?void 0:(x=c.parentElement)==null?void 0:(P=x.parentElement)==null?void 0:P.scrollHeight)||108)-108)/108);B=this.isInitialLoad?Math.max(B,3):3}c=[].concat(_.wq(this.hostElement.querySelectorAll("yt-ghost-comments")));c=_.p(c);for(x=c.next();!x.done;x=c.next())x=x.value,x.numberOfComments=B,x.isInitialLoad=this.isInitialLoad,x.engagementPanel=
this.engagementPanel}};
_.a.detached=function(){this.resetIntersectionObserver()};
_.AJ.Object.defineProperties(S4.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.T("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.T("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
S4.prototype.numberOfGhostCommentsChanged=S4.prototype.numberOfGhostCommentsChanged;S4.prototype.continuationTriggerOffsetChanged=S4.prototype.continuationTriggerOffsetChanged;S4.prototype.showButtonChanged=S4.prototype.showButtonChanged;S4.prototype.onYtServiceRequestCompletedForButtonRenderer=S4.prototype.onYtServiceRequestCompletedForButtonRenderer;S4.prototype.onServiceRequestCompleted=S4.prototype.onServiceRequestCompleted;S4.prototype.onYtServiceRequestSentForButtonRenderer=S4.prototype.onYtServiceRequestSentForButtonRenderer;
S4.prototype.observeData=S4.prototype.observeData;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],S4.prototype,"ytVisibilityBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],S4.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],S4.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"isOverridable",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"spinnerActive",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"showButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],S4.prototype,"isCommentsSection",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],S4.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"isShortsGrid",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.g5O}),_.H("design:type",Object)],S4.prototype,"isShortsPage",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.Ov}),_.H("design:type",Object)],S4.prototype,"isWatchPage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],S4.prototype,"ghostCardExperimentEnabled",void 0);
_.L([_.F(),_.H("design:type",Number)],S4.prototype,"continuationTriggerOffset",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"endOfList",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],S4.prototype,"isInitialLoad",void 0);_.L([_.jr("ytd-button-renderer"),_.H("design:type",_.rG)],S4.prototype,"buttonRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],S4.prototype,"buttonOverrides",void 0);
_.L([_.F(),_.Q("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.H("design:type",Object),_.H("design:paramtypes",[])],S4.prototype,"isShortsCommentsSection",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"observeData",null);
_.L([_.nF("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],S4.prototype,"onServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-completed-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.L([_.CF("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"showButtonChanged",null);
_.L([_.CF("continuationTriggerOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"continuationTriggerOffsetChanged",null);_.L([_.bF("isInitialLoad","engagementPanel"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S4.prototype,"numberOfGhostCommentsChanged",null);_.L([_.y({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],S4);
_.G(S4,"ytd-continuation-item-renderer",function(){if(R4Q!==void 0)return R4Q;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return R4Q=B},{mode:1});var cyy;var yN=function(){var B=_.z.apply(this,arguments)||this;B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.downloadState="DOWNLOAD_STATE_UNKNOWN";B.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";B.offlineVideoPolicyExpirationTimestamp=0;B.downloadedVideoPlaybackPosition=0;return B};
_.w(yN,_.z);yN.prototype.dataChanged=function(){var B;this.videoData=_.t((B=this.data)==null?void 0:B.renderer,Ul0);this.transferStateChanged()};
yN.prototype.downloadProgressChanged=function(){if(this.entityInfo){var B=Object.assign({},this.videoData),c=xmI(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=c.publishedTimeText,P=c.badges;B.shortViewCountText=c.shortViewCountText;B.publishedTimeText=x;B.badges=P;this.set("videoData",B)}};
yN.prototype.transferStateChanged=function(){if(this.entityInfo){var B=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",c=_.Ck(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qZ(this.entityInfo.policyEntity),x=Object.assign({},this.videoData),P=xmI(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Y=P.publishedTimeText,g=P.badges;x.shortViewCountText=
P.shortViewCountText;x.publishedTimeText=Y;x.badges=g;x.isDisabled=c;x.isWatched=this.downloadedVideoPlaybackPosition>0;x.navigationEndpoint=c?void 0:obX(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var k;B&&((k=this.videoData)==null?0:k.videoId)&&!_.T("dl_resume_click_killswitch")&&(x.isDisabled=!1,x.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});x.thumbnailOverlays=Bdx(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",x)}};
yN.prototype.transferStateChanged=yN.prototype.transferStateChanged;yN.prototype.downloadProgressChanged=yN.prototype.downloadProgressChanged;yN.prototype.dataChanged=yN.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yN.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],yN.prototype,"videoData",void 0);_.L([_.F({selector:v3,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"downloadProgress",void 0);_.L([_.F(),_.H("design:type",Number)],yN.prototype,"relativeDateReference",void 0);_.L([_.F({selector:_.QI,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"transferState",void 0);
_.L([_.F({selector:w7C,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"downloadState",void 0);_.L([_.F({selector:$VQ,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"offlinePolicyAction",void 0);_.L([_.F({selector:n5w,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.L([_.F({selector:z$,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"downloadedVideoPlaybackPosition",void 0);_.L([_.F({selector:KQI,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],yN.prototype,"entityInfo",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],yN.prototype,"isDownloading",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yN.prototype,"dataChanged",null);
_.L([_.CF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yN.prototype,"downloadProgressChanged",null);_.L([_.CF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yN.prototype,"transferStateChanged",null);
_.L([_.y({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],yN);
_.G(yN,"ytd-downloaded-video-grid-video-renderer",function(){if(cyy!==void 0)return cyy;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return cyy=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var xSZ;var GG=function(){};
GG.prototype.resolve=function(B,c){var x=this;return _.X(function(P){return _.K(P,x.resolveCommand(B,c),0)})};var PZd,Mn;PZd=fd7(function(B){return B.targetId},{shouldPersist:!1});
Mn=PZd.updateData;_.Yt9=PZd.useUpdatableData;var abm,god;abm=fd7(function(B){return B.targetId});
god=abm.updateData;_.scW=abm.useUpdatableData;var pkd=pkO.bind(null,Mn),ktZ=pkO.bind(null,god);(function(B,c,x){var P=_.t(x==null?void 0:x.updatedRenderer,_.fWI);return P?B({targetId:c},function(){return P}):!1}).bind(null,Mn);var Lb=function(){};
_.w(Lb,GG);Lb.prototype.resolveCommand=function(B){var c;return _.X(function(x){c=_.t(B,_.jYA);if(!c)return x.return();pkd(c.targetId,c);_.Kq(x)})};var ZT=function(){var B=_.dM.apply(this,arguments)||this;B.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return B};
_.w(ZT,_.dM);_.a=ZT.prototype;_.a.configureContinuationPathMap=function(){return{}};
_.a.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.a.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.a.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.a.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.a.handleAppendContinuationItemsAction=function(B){var c=_.t(B,_.V2t);if(this.data&&this.data.targetId&&c&&this.continuationPathMap&&c.targetId===this.data.targetId){var x=JXq(B),P=x&&this.continuationPathMap[x];if(P&&x)if(B=this.get(P,this.data)){a:{for(x=0;x<B.length;x++){var Y=B[x],g=void 0,k=!!_.t((g=_.t(Y,sfF))==null?void 0:g.content,_.nvF);if(_.t(Y,_.sB)||k)break a}x=B.length}P="data."+P;c.continuationItems?x===B.length-1?(this.pop(P),this.push.apply(this,[P].concat(_.wq(c.continuationItems)))):
x===B.length?this.push.apply(this,[P].concat(_.wq(c.continuationItems))):this.splice.apply(this,[P,x,1].concat(_.wq(c.continuationItems))):this.splice(P,x,1);(_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation"))&&_.aJ(this.hostElement,"yt-append-continuation-items-action-finished");_.aJ(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Ob(new _.mc("append continuation items does not exist",x));else _.Ob(new _.mc("append continuation path does not exist",
x))}};
_.a.handleReloadContinuationItemsCommand=function(B){var c=_.t(B,_.jYA);if(this.data&&c){if(_.T("web_explore_hub")||_.T("web_client_explore_hub")||_.T("web_explore_hub_on_hover")||_.T("web_client_explore_hub_on_hover"))try{_.cp().resolve(Lb).resolveCommand(B)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&c.targetId===this.data.targetId&&(!_.T("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||c.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var x,P=
(x=c.slot)==null?void 0:x.replace("RELOAD_CONTINUATION_SLOT_","");x=(B=JXq(B)+"-"+(P==null?void 0:P.toLowerCase()))&&this.continuationPathMap[B];if(!x||!B||!P)_.Ob(new _.mc("reload continuation path does not exist",B));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(c)){if(c.replaceWithFirstItem){var Y;this.set("data."+x,((Y=c.continuationItems)==null?0:Y.length)?c.continuationItems[0]:{})}else this.set("data."+x,c.continuationItems?c.continuationItems:
[]);this.continuationIsReloading=!1;_.aJ(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.a.handleShowReloadUiCommand=function(B){B=_.t(B,zFn);var c;((c=this.data)==null?0:c.targetId)&&(B==null?0:B.targetId)&&B.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ZT.prototype.observeData=ZT.prototype.observeData;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ZT.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ZT.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZT.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ZT.prototype,"continuationIsReloading",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZT.prototype,"observeData",null);_.L([_.qi()],ZT);_.Hz=[_.Z5.YtComponentBehavior,_.s2.YtActionHandlerBehavior,ZT.prototype];_.fb={};_.fb.YtNextContinuationBehavior=[_.xJ.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",_.$9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.$9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(B,c){B.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,c,{}):(B={locationRetrieved:function(x){this.makeNextContinuationRequest_(x,c,{})}.bind(this)},_.aJ(this.hostElement,"yt-retrieve-location",B))},
makeNextContinuationRequest_:function(B,c,x){_.oJ("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();B=c(B);var P;this.canUseContextualNetworkManager_()&&(P=this.getNetworkManager());P||(P=_.cp().resolve(_.Oi));c=_.Me.instance;if(_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&c){P=_.Dj([B.startsWith("/")?B.substr(1):B]);var Y,g;x=_.Fa(c,{},P,x==null?void 0:(Y=x.context)==null?void 0:(g=Y.clickTracking)==null?void 0:g.clickTrackingParams).then(function(k){return{response:k}})}else x=
this.nextContinuation.usePost?P.postData(B,x):P.fetchData(B);
x.then(this.updateNextContinuationData_.bind(this,B));this.pendingContinuationRequest_=x;this.startListeningForNavigate_()},
updateNextContinuationData_:function(B,c){var x=this;_.oJ("ncl");this.pendingContinuationRequest_=void 0;if(c){var P={};this.nextContinuation&&(P=this.nextContinuation);if(c.response&&c.response.continuationContents&&c.response.continuationContents[P.continuationType]){B=c.response.continuationContents[P.continuationType];var Y=P.header||"data.header",g=B[P.responseHeaderKey||"header"];g&&this.set(Y,g);Y=P.contentsArray||"data.contents";g=this.getContents_(B,P.responseContentsKey||"contents")||[];
this.pathExists_(Y)?(g.unshift(Y),this.push.apply(this,g)):this.set(Y,g);g&&(ktd(_.q_(),c.response,this.hostElement,function(k){_.gj(x.hostElement,"yt-store-grafted-ve-action",[k])}),_.aJ(this.hostElement,"yt-next-continuation-data-updated",{continuationData:c,
page:this,contentsArray:Y}));this.set(P.continuationsArray||"data.continuations",B[P.responseContinuationsKey||"continuations"]||[])}else c.reload?_.Ob(new _.mc("Reloading from continuation is unsupported")):c.responseContext&&c.responseContext.errors||(delete c.xsrf_token,delete c.timing,delete c.endpoint,delete c.csn,c.responseContext&&delete c.responseContext.serviceTrackingParams,Y={request:_.ik(B,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(c).sort()},c.response&&(Y.responseContentKeys=
Object.keys(c.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Y.continuationType=this.nextContinuation.continuationType.substr(0,256)),c=new _.mc("Malformed continuation",Y),B.indexOf("/comment_service_ajax")==0?_.Ob(c):_.lb(c)),this.set(P.continuationsArray||"data.continuations",[])}else _.Eb(new _.mc("Missing continuation response",B))},
getContents_:function(B,c){c=c.split(".");return _.wW.getValueByKeys(B,c)},
pathExists_:function(B){var c=this;B=B.toString().split(".");for(var x=0;x<B.length;x++)if(c=c[B[x]],c===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Xk5;var $S0;var ic=function(){var B=_.z.apply(this,arguments)||this;B.triggered_=!1;return B};
_.w(ic,_.z);_.a=ic.prototype;_.a.attached=function(){this.maybeTriggerAutoload()};
_.a.detached=function(){this.hasBeenTriggered_=!1};
_.a.onPrescanVisible=function(){this.onShow()};
_.a.onShow=function(){this.showButton||this.trigger()};
_.a.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.aJ(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.a.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.a.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.a.computeLabel_=function(B,c){return B===void 0?null:B.label||!c?B.label:this.showMoreText_};
_.a.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.a.getContinuationUrl=function(B){var c={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.AR(B,c)};
_.a.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
ic.prototype.showButtonChanged_=ic.prototype.showButtonChanged_;ic.prototype.observeData_=ic.prototype.observeData_;_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],ic.prototype,"ytVisibilityBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ic.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ic.prototype,"showButton",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],ic.prototype,"showIcon",void 0);_.L([_.F({computed:"computeLabel_(data, showButton)"}),_.H("design:type",Object)],ic.prototype,"label",void 0);_.L([_.F({value:_.fk(_.Up("SHOW_MORE",void 0,"Show More"))}),_.H("design:type",Object)],ic.prototype,"showMoreText_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ic.prototype,"spinnerActive_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ic.prototype,"hasBeenTriggered_",void 0);
_.L([_.F({value:void 0}),_.H("design:type",String)],ic.prototype,"observeVisibleOption",void 0);_.L([_.F({value:void 0}),_.H("design:type",String)],ic.prototype,"observeHiddenOption",void 0);_.L([_.F({value:"observe_once"}),_.H("design:type",Object)],ic.prototype,"observePrescanOption",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ic.prototype,"observeData_",null);
_.L([_.bF("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ic.prototype,"showButtonChanged_",null);_.L([_.Em({is:"yt-next-continuation",disableElementRegistration:!0})],ic);
_.G(ic,"yt-next-continuation",function(){if($S0===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Xk5===void 0&&(Xk5=document.createElement("template"));var P=Xk5;x.call(c,P.content.cloneNode(!0),B.content.firstChild);$S0=B}B=$S0;return B},{mode:2});var no9;var bhS;var AI=function(){return _.z.apply(this,arguments)||this};
_.w(AI,_.z);AI.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AI.prototype,"data",void 0);_.L([_.Em({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],AI);
_.G(AI,"yt-music-pass-small-feature-info-renderer",function(){if(bhS===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;no9===void 0&&(no9=document.createElement("template"));var P=no9;x.call(c,P.content.cloneNode(!0),B.content.firstChild);bhS=B}B=bhS;return B},{mode:2});_.o2("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var uc=function(){var B=_.z.apply(this,arguments)||this;B.isCollapsible=!1;B.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return B};
_.w(uc,_.z);_.a=uc.prototype;_.a.computeIsCollapsible=function(B){return!!(((B==null?0:B.showMoreText)||(B==null?0:B.visibleRowCount))&&(B==null?0:B.isCollapsible))};
_.a.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"}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.a.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.a.onIronResize=function(){var B=this;_.yo(this,"updateGridInitItems",function(){B.maybeUpdateInitialItemsDisplayed()})};
_.a.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var B=this.getVisibleWidth();B!==0&&(B=Math.floor(B/214)*(this.data.visibleRowCount||2),B!==this.initialCount&&(this.initialCount=B,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.a.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.a.computeExpandVisible=function(B,c,x,P){return B&&c&&x&&!!P&&!!P.showMoreText};
_.a.computeShowMoreButton=function(B){return{text:B,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.a.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.a.initCollapsed=function(){var B=this;this.ytLazyListBehavior.canShowMore=!1;var c;(this.collapsed=!((c=this.data)==null||!c.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.fl(this,function(){_.sp(B.hostElement,"yt-refit-popups-action")})};
_.a.fillRestIfNotCollapsible=function(){var B=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!B||this.ytLazyListBehavior.fillRemainingListItems()};
_.a.computeViewAllHidden=function(B,c){return B||!c.viewAllEndpoint};
uc.prototype.fillRestIfNotCollapsible=uc.prototype.fillRestIfNotCollapsible;uc.prototype.initCollapsed=uc.prototype.initCollapsed;uc.prototype.onIronResize=uc.prototype.onIronResize;uc.prototype.persistentGuideChanged=uc.prototype.persistentGuideChanged;_.L([_.J(_.Oc),_.H("design:type",Object)],uc.prototype,"ironResizableBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],uc.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],uc.prototype,"ytNextContinuationBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],uc.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.J(_.Hz),_.H("design:type",Object)],uc.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uc.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],uc.prototype,"collapsed",void 0);_.L([_.F(),_.H("design:type",Number)],uc.prototype,"initialCount",void 0);_.L([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.H("design:type",Object)],uc.prototype,"showMoreButton",void 0);
_.L([_.F({computed:"computeIsCollapsible(data)"}),_.H("design:type",Object)],uc.prototype,"isCollapsible",void 0);_.L([_.jr("#items"),_.H("design:type",HTMLElement)],uc.prototype,"items",void 0);_.L([_.CF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uc.prototype,"persistentGuideChanged",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uc.prototype,"onIronResize",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uc.prototype,"initCollapsed",null);_.L([_.CF("canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uc.prototype,"fillRestIfNotCollapsible",null);_.L([_.y({is:"ytd-grid-renderer",disableElementRegistration:!0})],uc);
_.G(uc,"ytd-grid-renderer",function(){if(xSZ!==void 0)return xSZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return xSZ=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var DT=function(){return _.z.apply(this,arguments)||this};
_.w(DT,_.z);
DT.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"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DT.prototype,"data",void 0);_.L([_.y({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],DT);
_.G(DT,"ytd-carousel-ad-renderer",function(){if(rHn!==void 0)return rHn;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return rHn=B},{mode:1});var KOy;var ro=function(){return _.z.apply(this,arguments)||this};
_.w(ro,_.z);_.a=ro.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ro.JSC$13324_CLICK_LOCATION_ID_MAP))};
_.a.onSitelinkTap=function(B){B.stopPropagation();var c,x,P=B==null?void 0:(c=B.model)==null?void 0:(x=c.item)==null?void 0:x.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,B,!1)};
_.a.onTap=function(B){var c=this.data&&this.data.content&&this.data.content.navigationEndpoint;c&&this.ytSparklesClickLocationBehavior.handleClick(c,B,!1)};
_.a.sendImpression=function(){if(this.data&&this.data.content)for(var B=_.p(this.data.content.impressionEndpoints||[]),c=B.next();!c.done;c=B.next()){c=_.p(c.value.loggingUrls||[]);for(var x=c.next();!x.done;x=c.next())x=x.value,x.baseUrl&&Lp(x.baseUrl,x.attributionSrcMode)}};
ro.prototype.onTap=ro.prototype.onTap;ro.prototype.dataChanged=ro.prototype.dataChanged;ro.JSC$13324_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"]]);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],ro.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ro.prototype,"data",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ro.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ro.prototype,"onTap",null);_.L([_.y({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],ro);
_.G(ro,"ytd-promoted-sparkles-text-search-renderer",function(){if(KOy!==void 0)return KOy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return KOy=B},{mode:1});var jcn;var Rp=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.w(Rp,_.z);_.a=Rp.prototype;
_.a.configureRendererStamper=function(){return{"data.menu":{id:_.T("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]]"}}}}}};
_.a.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.a.computeHasAdBadge=function(B){return!(B==null||!B.adBadge)};
_.a.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Rp.JSC$13333_DEFAULT_AD_BADGE_RENDERER),_.gM(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Rp.JSC$13333_CLICK_LOCATION_ID_MAP))};
_.a.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var B;(((B=this.data)==null?void 0:B.impressionCommands)||[]).forEach(function(c){c=_.p(c.loggingUrls||[]);for(var x=c.next();!x.done;x=c.next())x=x.value,x.baseUrl&&Lp(x.baseUrl,x.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.a.onTap=function(B){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint,P;(c=(P=this.data)==null?void 0:P.thumbnailNavigationEndpoint)&&_.Dn(_.AV(B),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(c,B,!1):x&&this.ytSparklesClickLocationBehavior.handleClick(x,B,!1)};
_.a.handleMuteAd=function(){this.collapsed=!0};
_.a.attached=function(){var B=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.AJ.Object.defineProperties(Rp.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var B;return!(((B=this.data)==null?void 0:B.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var B;return!(((B=this.data)==null?void 0:B.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
Rp.prototype.dataChanged=Rp.prototype.dataChanged;
Rp.JSC$13333_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"]]);
Rp.JSC$13333_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Up("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],Rp.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],Rp.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Rp.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Rp.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Rp.prototype,"collapsed",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Rp.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Rp.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.H("design:type",Boolean)],Rp.prototype,"fixAlignmentSmallScreens",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs_square")}}),
_.H("design:type",Boolean)],Rp.prototype,"useBiggerThumbsSquare",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.mediaHoverOverlay"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"hideHoverOverlay",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"webSearchLayout",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"webSearchLayoutLandscape",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"webSearchLayoutSquare",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"sparklesCtaNoBackground",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.actionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"hideActionButton",null);_.L([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],Rp.prototype,"buttonOverride",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.H("design:type",Boolean)],Rp.prototype,"hasNewAdBadge",void 0);_.L([_.Q("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rp.prototype,"useRoundedBadge",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rp.prototype,"dataChanged",null);_.L([_.y({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Rp);
_.G(Rp,"ytd-promoted-sparkles-web-renderer",function(){if(jcn!==void 0)return jcn;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jcn=B},{mode:1});var USd;var e4=function(){return _.z.apply(this,arguments)||this};
_.w(e4,_.z);_.a=e4.prototype;_.a.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]]"}}}}}};
_.a.computeShowCta=function(B){return!(B==null||!B.ctaRenderer)};
_.a.onCtaClick=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.ctaRenderer)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.a.onWatchButtonClick=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.watchButtonRenderer)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.a.onTap=function(){};
_.a.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",e4.JSC$13336_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",e4.JSC$13336_DEFAULT_CLICK_LOCATION_BEHAVIOR,e4.JSC$13336_CLICK_LOCATION_ID_MAP),this.thumbnail)){var B=this.thumbnail.getElementsByTagName("a");B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href")}};
_.a.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var B=_.p(this.data.impressionUrls),c=B.next();!c.done;c=B.next())c=c.value,nHX(c,Kz7(c));this.data.impressionsFired=!0}};
_.a.maybeComputeHref=function(){return null};
_.a.computeIsShortDR=function(B){return!(B==null||!B.watchButtonRenderer)&&!(B==null||!B.ctaRenderer)&&!!this.enableShortDR};
_.a.computeIsNewUiOrShortDr=function(B){return!!this.enableUiUpdate||this.computeIsShortDR(B)};
_.a.computeIsNewUiAndNotShortDr=function(B){return!!this.enableUiUpdate&&!this.computeIsShortDR(B)};
_.a.computeHideAvatar=function(B){return!((B==null?0:B.channelThumbnail)&&this.computeIsNewUiOrShortDr(B))};
_.a.onClick=function(B){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;if(this.enableShortDR&&x&&(_.t(x,_.fN)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(x,B,!!_.t(x,_.fN)),B.stopPropagation();else if(x&&_.t(x,_.fN))this.ytSparklesClickLocationBehavior.handleClick(x,B,!0),B.stopPropagation();else if(x){var P,Y;((P=this.data)==null?0:P.navigationEndpoint)&&((Y=this.data)==null?0:Y.adPlaybackContextParams)&&xX7(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(x)}};
_.a.computeButtonOverride=function(B){if(this.computeIsNewUiOrShortDr(B))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.a.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.a.onThumbnailContainerClick=function(B){this.onClick(B)};
_.a.computeThumbnailWidth=function(B,c){return B?c==="MASSIVE"?600:c==="BIG"?500:c==="MEDIUM"?450:420:360};
_.a.attached=function(){var B=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
e4.prototype.dataChanged=e4.prototype.dataChanged;e4.prototype.onTap=e4.prototype.onTap;e4.JSC$13336_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Up("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};e4.JSC$13336_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
e4.JSC$13336_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"}];_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],e4.prototype,"ytdActiveViewBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],e4.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],e4.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],e4.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_video_display_compact_button_group_for_desktop_search")}}),
_.H("design:type",Boolean)],e4.prototype,"enableShortDR",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_vac_ui_update_for_desktop_search")}}),
_.H("design:type",Boolean)],e4.prototype,"enableUiUpdate",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],e4.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.H("design:type",Boolean)],e4.prototype,"showCta",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.H("design:type",Boolean)],e4.prototype,"isShortDr",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.H("design:type",Boolean)],e4.prototype,"isShortDrOrNewUi",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.H("design:type",Boolean)],e4.prototype,"isNewUiAndNotShortDr",void 0);_.L([_.F({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],e4.prototype,"buttonOverride",void 0);_.L([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.H("design:type",Object)],e4.prototype,"secondaryButtonOverride",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],e4.prototype,"thumbnail",void 0);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e4.prototype,"onTap",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e4.prototype,"dataChanged",null);_.L([_.y({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],e4);
_.G(e4,"ytd-promoted-video-renderer",function(){if(USd!==void 0)return USd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return USd=B},{mode:1});var dS4;var BI=function(){var B=_.z.apply(this,arguments)||this;B.useRoundedBadge=!0;B.sitelinkIds=[];return B};
_.w(BI,_.z);_.a=BI.prototype;
_.a.configureRendererStamper=function(){return{"data.menu":{id:_.T("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]]"}}}}}};
_.a.dataChanged=function(){var B;(B=this.data)!=null&&B.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,BI.JSC$13343_CLICK_LOCATION_ID_MAP)};
_.a.onTap=function(B){var c,x=(c=this.data)==null?void 0:c.navigationCommand;x&&!_.Dn(_.AV(B),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(x,B,!1)};
_.a.onSitelinkTap=function(B){var c,x,P=B==null?void 0:(c=B.model)==null?void 0:(x=c.item)==null?void 0:x.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,B,!1)};
_.a.configureSitelinkClickTargets=function(){var B=this,c,x,P=(c=this.data)==null?void 0:(x=c.clickLocationTargets)==null?void 0:x.find(function(Y){return Y.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
P&&_.Y9(this.hostElement).querySelectorAll(".sitelink").forEach(function(Y){_.gM(Y,"yt-simple-endpoint",!0);B.sitelinkIds.push(Y.id);var g,k;(g=B.ytSparklesClickLocationBehavior)==null||(k=g.clickTargetMap)==null||k.set(Y.id,P)})};
_.a.sendImpression=function(){var B,c,x=((B=this.data)==null?void 0:(c=B.impressionCommand)==null?void 0:c.loggingUrls)||[];B=_.p(x);for(c=B.next();!c.done;c=B.next())c=c.value,c.baseUrl&&Lp(c.baseUrl,c.attributionSrcMode)};
_.a.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.AJ.Object.defineProperties(BI.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
BI.prototype.onTap=BI.prototype.onTap;BI.prototype.dataChanged=BI.prototype.dataChanged;BI.JSC$13343_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"]]);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],BI.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],BI.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BI.prototype,"showFavicon",null);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],BI.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],BI.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.H("design:type",Boolean)],BI.prototype,"enableThumbnailScalingFix",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BI.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],BI.prototype,"onTap",null);_.L([_.y({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],BI);
_.G(BI,"ytd-text-image-no-button-layout-renderer",function(){if(dS4!==void 0)return dS4;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return dS4=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var qt5;var cI=function(){var B=_.z.apply(this,arguments)||this;B.isInlinePlaybackState=!1;B.uiUpdate=_.T("web_modern_buttons");B.hideCta=_.T("hide_cta_for_home_web_video_ads");B.noBottomMargin=!1;B.animateInTimeStamp=_.Yu("hide_cta_for_home_web_video_ads_animate_in_time");B.animateInCta=!1;B.isHovered=!1;B.player=null;B.JSC$13350_playerEvents=new Map;B.JSC$13350_preventProgressSaveTimer=null;B.delayedCtaJobId=null;return B};
_.w(cI,_.z);_.a=cI.prototype;_.a.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]]"}}}}}};
_.a.attached=function(){this.JSC$13350_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13350_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.T("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.a.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13350_playerEvents)};
_.a.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",cI.JSC$13349_DEFAULT_CLICK_LOCATION_BEHAVIOR,cI.JSC$13349_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.a.hoverChanged=function(){var B=this;this.delayedCtaJobId&&(_.EE.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.T("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.C3(_.EE,function(){B.buttonContainer.classList.add("show-delayed-buttons")},_.Yu("delayed_cta_on_web_delay_milliseconds")))};
_.a.setPlayer=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return(c=_.sp(B.hostElement,"yt-get-inline-preview-player-action"))&&c[0]?_.K(x,c[0].getPlayerPromise(),3):x.jumpTo(0);B.player=x.yieldResult;B.ytPlayerListenerBehavior.listenToPlayerEvents(B.player,B.JSC$13350_playerEvents);_.Kq(x)})};
_.a.onPlaybackStart=function(){var B=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13350_preventProgressSaveTimer=_.s9(_.EE,function(){B.JSC$13350_preventProgressSaveTimer=null},1E4))};
_.a.onVideoProgress=function(B){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&B>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.a.resetPreventProgressSaveTimer=function(){_.EE.cancelJob(this.JSC$13350_preventProgressSaveTimer);this.JSC$13350_preventProgressSaveTimer=null};
_.a.getSimpleString=function(B){return _.iG(B)};
_.a.onClick=function(B){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint,P;c=(P=this.data)==null?void 0:P.channelEndpoint;var Y,g;(P=(g=_.t((Y=this.data)==null?void 0:Y.adCtaButton,_.z3))==null?void 0:g.command)&&_.Dn(_.AV(B),this.hostElement,["call-to-action"])?_.T("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(P,B,!1):c&&_.Dn(_.AV(B),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(c,B,!1):!_.Dn(_.AV(B),this.hostElement,["secondary-button"])&&x&&(_.T("enable_short_dr_for_desktop_launchable")?(Y=!!_.t(x,_.fN),this.isInlinePlaybackState&&Y&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(x,B,Y)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(x,B,!0)))}};
_.a.updateWatchEndpointStartTime=function(){var B,c;this.player&&((B=this.data)==null?0:B.inlinePlaybackEndpoint)&&((c=this.data)==null?0:c.navigationEndpoint)&&!this.JSC$13350_preventProgressSaveTimer&&(B=Math.floor(this.player.getCurrentTime()),_.t(this.data.navigationEndpoint,_.fN).startTimeSeconds=B,_.t(this.data.inlinePlaybackEndpoint,_.fN).startTimeSeconds=B)};
_.a.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.a.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.AJ.Object.defineProperties(cI.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.watchButton)&&!((c=this.data)==null||!c.adCtaButton)}}});
cI.prototype.hoverChanged=cI.prototype.hoverChanged;cI.prototype.dataChanged=cI.prototype.dataChanged;
cI.JSC$13349_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"]]);
cI.JSC$13349_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"}];
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],cI.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],cI.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cI.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"isInlinePlaybackState",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],cI.prototype,"miniMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"uiUpdate",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"hideCta",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"noBottomMargin",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"animateInCta",void 0);_.L([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],cI.prototype,"buttonOverride",void 0);
_.L([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.H("design:type",Object)],cI.prototype,"secondaryButtonOverride",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cI.prototype,"isHovered",void 0);_.L([_.jr("#button-container"),_.H("design:type",HTMLElement)],cI.prototype,"buttonContainer",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],cI.prototype,"typographyBump",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cI.prototype,"typographyBumpV2",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cI.prototype,"dataChanged",null);_.L([_.bF("isHovered"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cI.prototype,"hoverChanged",null);
_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cI.prototype,"isButtonGroup",null);_.L([_.y({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],cI);
_.G(cI,"ytd-ad-inline-playback-meta-block",function(){if(qt5!==void 0)return qt5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qt5=B},{mode:_.sL("kevlar_poly_si_batch_j065")?1:2});var CZd;var xy=function(){var B=_.z.apply(this,arguments)||this;B.noBottomMargin=!1;B.isInlinePreviewTriggered=!1;B.JSC$13355_activeViewMeasurementDataResolver=_.Hw();return B};
_.w(xy,_.z);_.a=xy.prototype;_.a.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.attached=function(){var B=this;this.updateInlinePreviewHoverListeners();this.JSC$13355_activeViewMeasurementDataResolver.promise.then(function(c){B.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){this.clearInlinePreviewHoverListeners();_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13355_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.JSC$13355_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lX9})};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13355_inlinePreviewHoverListener)==null||g2(B)};
_.a.onDataChanged=function(){var B;((B=this.data)==null?0:B.activeView)&&this.JSC$13355_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",xy.JSC$13354_DEFAULT_CLICK_LOCATION_BEHAVIOR,xy.JSC$13354_CLICK_LOCATION_ID_MAP);this.thumbnail&&(B=this.thumbnail.getElementsByTagName("a"),B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href"));var c,x;if(((c=this.data)==
null?0:c.hasAutoplay)||((x=this.data)==null?0:x.forceImpAutoplay)){var P;(P=this.JSC$13355_inlinePreviewHoverListener)==null||Eax(P)}};
_.a.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.a.onThumbnailContainerClick=function(B){if(this.data&&this.data.navigationEndpoint){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(x,B,!!_.t(x,_.fN));B.stopPropagation()}};
_.a.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.a.impressionLog=function(){var B=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,x,P=(x=_.t((c=this.data)==null?void 0:c.onImpression,_.nW))==null?void 0:x.commands;P&&(P.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;B.ytComponentBehavior.resolveCommand(Y)}),this.data.impressionsFired=!0)}};
_.AJ.Object.defineProperties(xy.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13355_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xy.prototype.onTypographyBumpChanged=xy.prototype.onTypographyBumpChanged;xy.prototype.onDataChanged=xy.prototype.onDataChanged;xy.JSC$13354_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);xy.JSC$13354_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"}];
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],xy.prototype,"ytdActiveViewBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],xy.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.Mz),_.H("design:type",Object)],xy.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],xy.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],xy.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xy.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],xy.prototype,"noBottomMargin",void 0);
_.L([_.F(),_.H("design:type",Object)],xy.prototype,"isInlinePreviewTriggered",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],xy.prototype,"miniMode",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],xy.prototype,"typographyBump",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],xy.prototype,"thumbnail",void 0);_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],xy.prototype,"JSC$13355_dismissibleMedia",void 0);
_.L([_.jr("ytd-ad-inline-playback-meta-block"),_.H("design:type",HTMLElement)],xy.prototype,"adInlinePlaybackMetaBlock",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xy.prototype,"onDataChanged",null);_.L([_.CF("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xy.prototype,"onTypographyBumpChanged",null);
_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xy.prototype,"isHovered",null);_.L([_.y({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],xy);
_.G(xy,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(CZd!==void 0)return CZd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CZd=B},{mode:1});var hCt;var PI=function(){var B=_.z.apply(this,arguments)||this;B.isInlinePreviewTriggered=!1;B.JSC$13358_activeViewMeasurementDataResolver=_.Hw();return B};
_.w(PI,_.z);_.a=PI.prototype;_.a.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.attached=function(){var B=this;this.updateInlinePreviewHoverListeners();this.JSC$13358_activeViewMeasurementDataResolver.promise.then(function(c){B.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)})};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13358_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.JSC$13358_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lX9})};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13358_inlinePreviewHoverListener)==null||g2(B)};
_.a.onDataChanged=function(){var B;((B=this.data)==null?0:B.activeView)&&this.JSC$13358_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",PI.JSC$13357_DEFAULT_CLICK_LOCATION_BEHAVIOR,PI.JSC$13357_CLICK_LOCATION_ID_MAP);this.thumbnail&&(B=this.thumbnail.getElementsByTagName("a"),B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href"))};
_.a.onThumbnailContainerClick=function(B){if(this.data&&this.data.navigationEndpoint){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(x,B,!0);B.stopPropagation()}};
_.a.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.a.impressionLog=function(){var B=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,x,P=(x=_.t((c=this.data)==null?void 0:c.onImpression,_.nW))==null?void 0:x.commands;P&&(P.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;_.cp().resolve(_.xu).resolveCommand(Y,{form:{element:B.hostElement}})}),this.data.impressionsFired=!0)}};
_.AJ.Object.defineProperties(PI.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13358_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
PI.prototype.onDataChanged=PI.prototype.onDataChanged;PI.JSC$13357_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);PI.JSC$13357_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"}];_.L([_.J(EU),_.H("design:type",Object)],PI.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],PI.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],PI.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],PI.prototype,"ytdReduxBehavior",void 0);
_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],PI.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],PI.prototype,"isInlinePreviewTriggered",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],PI.prototype,"miniMode",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],PI.prototype,"thumbnail",void 0);
_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],PI.prototype,"JSC$13358_dismissibleMedia",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PI.prototype,"onDataChanged",null);_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PI.prototype,"isHovered",null);_.L([_.y({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],PI);
_.G(PI,"ytd-video-display-full-buttoned-renderer",function(){if(hCt!==void 0)return hCt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hCt=B},{mode:1});var K2=function(B,c,x,P){P=P===void 0?!1:P;_.B$.call(this,B);this.adsClientErrorMessage=x;this.aggressivelySample=P;this.args=[];c&&this.args.push(c)};
_.w(K2,_.B$);var kE=function(B,c,x,P){P=P===void 0?!1:P;_.B$.call(this,B);this.adsClientErrorMessage=x;this.aggressivelySample=P;this.args=[];c&&this.args.push(c)};
_.w(kE,_.B$);var mSQ=function(B){_.tG.call(this);var c=this;this.initializationFunction=B;this.instance=null;this.addOnDisposeCallback(function(){_.R3(c.instance);c.instance=null})};
_.w(mSQ,_.tG);mSQ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.c8("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var dSx=function(){var B=new Map;[].forEach(function(c){B.set(c.JSC$27005_getType(),c)})};new Promise(function(){});var noC=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"]]),Xk7=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"}]]),Tvt=function(B){this.experimentApiProvider=B;B=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=B<.1};var Yy=function(B,c,x,P){_.tG.call(this);this.adsControlFlowEventListeners=c;this.adEventLogger=x;this.experimentApiProvider=P;this.adsControlFlowManagerHelper=B(this,this,this,this,this);_.bW(this,this.adsControlFlowManagerHelper);B=_.p(c);for(c=B.next();!c.done;c=B.next())_.bW(this,c.value)};
_.w(Yy,_.tG);var Vs0=function(B,c,x,P){aj(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",c,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P);B=_.p(B.adsControlFlowEventListeners);for(P=B.next();!P.done;P=B.next())Vs0(P.value,c,x)};
_.a=Yy.prototype;_.a.onOpportunityProcessedExternallyManaged=function(B,c,x,P){aj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",B,x,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)};
_.a.onSlotReceivedExternallyManaged=function(B,c){gT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",B,c)};
_.a.onSlotEntered=function(B){if(sJ(this.adsControlFlowManagerHelper,B)!=null){gT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",B);this.adsControlFlowManagerHelper.onSlotEntered(B);for(var c=_.p(this.adsControlFlowEventListeners),x=c.next();!x.done;x=c.next())x.value.onSlotEntered(B);if(sJ(this.adsControlFlowManagerHelper,B)!=null&&sJ(this.adsControlFlowManagerHelper,B).isOccupyingSlotType()&&pM(this.adsControlFlowManagerHelper,B)&&!tsI(this.adsControlFlowManagerHelper,B)){var P;ky(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",B,(P=pM(this.adsControlFlowManagerHelper,B))!=null?P:void 0);B=sJ(this.adsControlFlowManagerHelper,B);B.slotLifecycleStage!=="entered"&&Xq(B.slot,B.slotLifecycleStage,"enterLayoutForSlot");B.slotLifecycleStage="rendering";B.registeredLayoutRenderingAdapter.startRendering(B.layout)}}};
_.a.onSlotExited=function(B){if(sJ(this.adsControlFlowManagerHelper,B)!=null){gT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",B);this.adsControlFlowManagerHelper.onSlotExited(B);for(var c=_.p(this.adsControlFlowEventListeners),x=c.next();!x.done;x=c.next())x.value.onSlotExited(B);sJ(this.adsControlFlowManagerHelper,B)!=null&&sJ(this.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests&&wk4(this,B)}};
_.a.onLayoutReceivedExternallyManaged=function(B,c,x){B.managerLayer!=="core"&&ky(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",B,c,x)};
var NvS=function(B,c,x){if(sJ(B.adsControlFlowManagerHelper,c)!=null){ky(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,x);B=_.p(B.adsControlFlowEventListeners);for(var P=B.next();!P.done;P=B.next())NvS(P.value,c,x)}};
Yy.prototype.onLayoutExited=function(B,c,x){if(sJ(this.adsControlFlowManagerHelper,B)!=null){ky(this.adEventLogger,$S7(x),B,c);this.adsControlFlowManagerHelper.onLayoutExited(B,c);for(var P=_.p(this.adsControlFlowEventListeners),Y=P.next();!Y.done;Y=P.next())Y.value.onLayoutExited(B,c,x);(x=pM(this.adsControlFlowManagerHelper,B))&&c.layoutId===x.layoutId&&Ib4(this,B)}};
Yy.prototype.disposeInternal=function(){var B=JyQ(this.adsControlFlowManagerHelper);B=_.p(B);for(var c=B.next();!c.done;c=B.next())wk4(this,c.value);_.tG.prototype.disposeInternal.call(this)};
var wk4=function(B,c){if(sJ(B.adsControlFlowManagerHelper,c)!=null)if(sJ(B.adsControlFlowManagerHelper,c).JSC$27036_isSlotExitRequested()||sJ(B.adsControlFlowManagerHelper,c).JSC$27036_isLayoutExitRequested())sJ(B.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(sJ(B.adsControlFlowManagerHelper,c).isOccupyingSlotType())sJ(B.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0,Ib4(B,c);else if(sJ(B.adsControlFlowManagerHelper,c).JSC$27036_isSlotFillRequested())sJ(B.adsControlFlowManagerHelper,
c).markedForUnscheduleAfterOutboundAdapterRequests=!0,sJ(B.adsControlFlowManagerHelper,c)!=null&&(gT(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",c),c=sJ(B.adsControlFlowManagerHelper,c),c.fulfillmentLifecycleStage="fill_cancel_requested",c.registeredFulfillmentAdapter.cancelSlotFilling());else{var x=pM(B.adsControlFlowManagerHelper,c),P;B.experimentApiProvider.get();(P=_.T("h5_enable_layout_unscheduling_events"))&&(x?WOI(B,c,x):_.c8(Error("Ih"),c,x,void 0,!1));gT(B.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",c);var Y=sJ(B.adsControlFlowManagerHelper,c),g=c.slotEntryTrigger,k=Y.registeredSlotEntryTriggerAdapters.get(g.triggerId);k&&(k.unregisterTrigger(g),Y.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.p(c.slotFulfillmentTriggers);for(k=g.next();!k.done;k=g.next()){k=k.value;var n=Y.registeredFulfillmentTriggerAdapters.get(k.triggerId);n&&(n.unregisterTrigger(k),Y.registeredFulfillmentTriggerAdapters.delete(k.triggerId))}g=_.p(c.slotExpirationTriggers);
for(k=g.next();!k.done;k=g.next())if(k=k.value,n=Y.registeredExpirationTriggerAdapters.get(k.triggerId))n.unregisterTrigger(k),Y.registeredExpirationTriggerAdapters.delete(k.triggerId);Y.hasLayout()&&(g=Y.layout,$y(Y,g.layoutExitNormalTriggers),$y(Y,g.layoutExitSkipTriggers),$y(Y,g.layoutExitMuteTriggers),$y(Y,g.layoutExitUserInputSubmittedTriggers),$y(Y,g.layoutExitUserCancelledTriggers));Y.registeredFulfillmentAdapter=void 0;Y.registeredSlotAdapter!=null&&(Y.registeredSlotAdapter.release(),Y.registeredSlotAdapter=
void 0);Y.registeredLayoutRenderingAdapter!=null&&(Y.registeredLayoutRenderingAdapter.release(),Y.registeredLayoutRenderingAdapter=void 0);Y=B.adsControlFlowManagerHelper;sJ(Y,c)&&(Y=lbm(Y,c.slotType+"_"+c.slotPhysicalPosition))&&Y.delete(c.slotId);gT(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);B=_.p(B.adsControlFlowEventListeners);for(Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y.onSlotUnscheduled(c),x&&!P&&WOI(Y,c,x)}},WOI=function(B,c,x){ky(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
c,x);
ky(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",c,x);B=_.p(B.adsControlFlowEventListeners);for(var P=B.next();!P.done;P=B.next())P=P.value,x&&WOI(P,c,x)},Ib4=function(B,c){if(sJ(B.adsControlFlowManagerHelper,c)!=null&&sJ(B.adsControlFlowManagerHelper,c).isOccupyingSlotType()){var x=pM(B.adsControlFlowManagerHelper,c);
if(x&&tsI(B.adsControlFlowManagerHelper,c)){if(sJ(B.adsControlFlowManagerHelper,c)!=null){var P=B.adEventLogger,Y;var g=((Y=Xk7.get("abandoned"))==null?void 0:Y.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ky(P,g,c,x);B=sJ(B.adsControlFlowManagerHelper,c);B.slotLifecycleStage!=="rendering"&&Xq(B.slot,B.slotLifecycleStage,"exitLayout");B.slotLifecycleStage="rendering_stop_requested";B.registeredLayoutRenderingAdapter.stopRendering(x,"abandoned")}}else{gT(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
c);try{P=sJ(B.adsControlFlowManagerHelper,c);if(!P)throw new kE("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"&&Xq(P.slot,P.slotLifecycleStage,"exitSlot");P.slotLifecycleStage="exit_requested";if(P.registeredSlotAdapter===void 0)throw P.slotLifecycleStage="scheduled",new kE("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
P.registeredSlotAdapter.exit()}catch(k){k instanceof kE&&k.adsClientErrorMessage?(EoQ(B.adEventLogger,k.adsClientErrorMessage,c),_.c8(k,c,void 0,void 0,k.aggressivelySample)):(EoQ(B.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),_.c8(k,c))}}}};var nM=function(B,c,x,P,Y,g){_.tG.call(this);this.registry=B;this.experimentApiProvider=g;this.slotMap=new Map};
_.w(nM,_.tG);var lbm=function(B,c){return(B=B.slotMap.get(c))?B:new Map},sJ=function(B,c){return lbm(B,c.slotType+"_"+c.slotPhysicalPosition).get(c.slotId)},JyQ=function(B){var c=[];
B.slotMap.forEach(function(x){x=_.p(x.values());for(var P=x.next();!P.done;P=x.next())c.push(P.value.slot)});
return c};
nM.prototype.onSlotEntered=function(B){B=sJ(this,B);B.slotLifecycleStage!=="enter_requested"&&Xq(B.slot,B.slotLifecycleStage,"onSlotEntered");B.slotLifecycleStage="entered"};
var tsI=function(B,c){B=sJ(B,c);return B.hasLayout()&&B.isRendering()},pM=function(B,c){(B=sJ(B,c))?B.hasLayout()&&!B.layout&&_.c8("Unexpected empty layout",c):_.c8("Unexpected undefined slotState",c);
return(B==null?void 0:B.layout)||null};
nM.prototype.onSlotExited=function(B){B=sJ(this,B);B.slotLifecycleStage!=="exit_requested"&&Xq(B.slot,B.slotLifecycleStage,"onSlotExited");B.slotLifecycleStage="scheduled"};
nM.prototype.onLayoutExited=function(B,c){B=sJ(this,B);B.isPrimaryLayout(c)&&(B.slotLifecycleStage!=="rendering_stop_requested"&&Xq(B.slot,B.slotLifecycleStage,"onLayoutExited"),B.slotLifecycleStage="entered")};
var $y=function(B,c){c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=B.registeredLayoutExitTriggerAdapters.get(x.triggerId);P&&(P.unregisterTrigger(x),B.registeredLayoutExitTriggerAdapters.delete(x.triggerId))}},Xq=function(B,c,x){_.c8("Slot stage was "+c+" when calling method "+x,B)};var oot=function(B){_.tG.call(this);this.deps=B;this.JSC$13407_adsControlFlowManager=Oh9(this)};
_.w(oot,_.tG);var Oh9=function(B){var c=new Yy(function(x,P,Y,g){return new nM(B.deps.registry,x,P,Y,g,B.deps.experimentApiProvider)},new Set(USO(B.deps.registry).concat(B.deps.listeners)),B.deps.adEventLogger,B.deps.experimentApiProvider);
_.bW(B,c);return c};var Qc5=function(B,c){_.tG.call(this);this.experimentApiProvider=B;this.eventLoggingSettingsProvider=c;this.eventCount=0};
_.w(Qc5,_.tG);Qc5.prototype.logEvent=function(B){aj(this,B)};
var gT=function(B,c,x,P){aj(B,c,void 0,void 0,void 0,x,void 0,void 0,void 0,x.adSlotLoggingData,void 0,void 0,P)},ky=function(B,c,x,P,Y){aj(B,c,void 0,void 0,void 0,x,P?P:void 0,void 0,void 0,x.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,void 0,Y)},EoQ=function(B,c,x){aj(B,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,x,void 0,void 0,void 0,x.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:c})},aj=function(B,c,x,P,Y,g,k,n,b,d,q,C,h){h=h===void 0?0:h;
FO4(B.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+c,"slot:",g,"layout:",k,"ping:",n,"Opportunity:",{opportunityType:x,associatedSlotId:P,slotsFromOpportunity:Y,triggerBundle:b,adSlotLoggingData:d,adLayoutLoggingData:q});try{var V=function(){B.experimentApiProvider.get();if(c!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){c||_.c8("Empty PACF event type",g,k);var N=B.eventLoggingSettingsProvider.get();var l;(l=N.alwaysIncludeDebugData)||(N.experimentApiProvider.get(),l=
!1);N=l;l={eventType:c,eventOrder:++B.eventCount};var E={};g&&(E.slotData=KO$(N,g));if(k){var S={type:k.layoutType,controlFlowManagerLayer:noC.get(k.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N&&(S.debugData={layoutId:k.layoutId});E.layoutData=S}n&&(E.pingData={pingDispatchStatus:n.dispatchStatus,serializedAdPingMetadata:n.ping.serializedAdPingMetadata,pingIndex:n.index});b&&(E.triggerData=bhA(b.trigger,b.category));x&&(E.opportunityData=jco(N,x,P,Y));l.adClientData=E;d&&(l.serializedSlotAdServingData=
d.serializedSlotAdServingDataEntry);q&&(l.serializedAdServingData=q.serializedAdServingDataEntry);C&&(l.errorInfo=C);_.JP("adsClientStateChange",{adsClientEvent:l})}};
h&&h>0?_.Vp(_.EB(),function(){return V()},h):V()}catch(N){FO4(B.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Vp(_.EB(),function(){_.c8(N instanceof Error?N:String(N),g,k,{pacf_message:"exception during pacf logging"})})}};var voW=function(B,c){Qc5.call(this,B,c)};
_.w(voW,Qc5);var zC3=function(){},FO4=function(B,c){return _.T(c)};var yyt=function(){var B=new StI;this.JSC$13426_adsControlFlowManager=(new oot(B)).JSC$13407_adsControlFlowManager},StI=function(){_.tG.call(this);
var B=this;this.experimentApiProvider=new mSQ(function(){return new zC3});
var c=new mSQ(function(){return new Tvt(B.experimentApiProvider)});
this.adEventLogger=new voW(this.experimentApiProvider,c);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.w(StI,_.tG);var GtQ=function(){},Ms0,bB=function(){Ms0||(Ms0=new GtQ);
return Ms0},KM=function(B){if(!B.JSC$13437_externallyManagedSlotAdapterCallback){var c=(new yyt).JSC$13426_adsControlFlowManager;
B.JSC$13437_externallyManagedSlotAdapterCallback=c}return B.JSC$13437_externallyManagedSlotAdapterCallback},LOZ=function(B,c,x){var P=c.opportunityType,Y=Error("Jh");
if(P!==void 0){var g=KM(B);Vs0(g,P,void 0,x)}else _.c8(Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(c.adSlotAndLayoutMetadata!==void 0){c=_.p(c.adSlotAndLayoutMetadata);for(var k=c.next();!k.done;k=c.next()){var n=k.value;if(k=n.adSlotMetadata)if(g.push(k),B.onSlotReceivedExternallyManaged(k,x),n.adLayoutMetadata){n=_.p(n.adLayoutMetadata);for(var b=n.next();!b.done;b=n.next())B.onLayoutReceivedExternallyManaged(k,b.value,x)}else x>0&&_.c8("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else x>0&&_.c8("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else x>0&&_.c8("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(P!==void 0)B.onOpportunityProcessedExternallyManaged(P,g,void 0,x);else _.c8(Y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
GtQ.prototype.onSlotReceivedExternallyManaged=function(B,c){B=bj(B);if(B instanceof kE)_.c8(B,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else KM(this).onSlotReceivedExternallyManaged(B,c)};
GtQ.prototype.onLayoutReceivedExternallyManaged=function(B,c,x){B=bj(B);c=qt7(c);if(B instanceof kE)_.c8(B,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(c instanceof K2)_.c8(c,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else KM(this).onLayoutReceivedExternallyManaged(B,c,x)};
GtQ.prototype.onOpportunityProcessedExternallyManaged=function(B,c,x,P){var Y=[];c=_.p(c);for(var g=c.next();!g.done;g=c.next())g=bj(g.value),g instanceof kE?_.c8(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Y.push(g);KM(this).onOpportunityProcessedExternallyManaged(B,Y,x,P)};
var Zh4=function(B,c){c=bj(c);if(c instanceof kE)_.c8(c,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var x=KM(B);gT(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);x=_.p(x.adsControlFlowEventListeners);for(var P=x.next();!P.done;P=x.next())P=sJ(P.value,c),P.slotLifecycleStage!=="not_scheduled"&&Xq(P.slot,P.slotLifecycleStage,"onSlotScheduled"),P.slotLifecycleStage="scheduled";B=KM(B);gT(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",c);B=_.p(B.adsControlFlowEventListeners);
for(x=B.next();!x.done;x=B.next())x.value.onSlotEntered(c)}},Hh3=function(B,c){c=bj(c);
if(c instanceof kE)_.c8(c,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var x=KM(B);gT(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",c);x=_.p(x.adsControlFlowEventListeners);for(var P=x.next();!P.done;P=x.next())P.value.onSlotExited(c);B=KM(B);gT(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);B=_.p(B.adsControlFlowEventListeners);for(x=B.next();!x.done;x=B.next())x.value.onSlotUnscheduled(c)}},fb3=function(B,c,x){c=bj(c);
x=qt7(x);if(c instanceof kE)_.c8(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(x instanceof K2)_.c8(x,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var P=KM(B);ky(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",c,x);P=_.p(P.adsControlFlowEventListeners);for(var Y=P.next();!Y.done;Y=P.next())Y.value.onLayoutScheduled(c,x);B=KM(B);ky(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,x);B=_.p(B.adsControlFlowEventListeners);
for(P=B.next();!P.done;P=B.next())NvS(P.value,c,x)}},jY=function(B,c,x){c=bj(c);
x=qt7(x);if(c instanceof kE)_.c8(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(x instanceof K2)_.c8(x,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var P=KM(B);ky(P.adEventLogger,$S7("normal"),c,x);P=_.p(P.adsControlFlowEventListeners);for(var Y=P.next();!Y.done;Y=P.next())Y.value.onLayoutExited(c,x,"normal");B=KM(B);B=_.p(B.adsControlFlowEventListeners);for(P=B.next();!P.done;P=B.next())WOI(P.value,c,x)}};_.UJ=_.rM(function(B){var c=_.uF(B,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});B=Object.assign({},c);var x=c.data;c=c.customCommandResolver;var P=(delete B.data,delete B.customCommandResolver,B),Y=_.Ho("ad-image-view-model");_.uR(Y,function(){return x().interaction},c,function(){var n;
return(n=P.listenToTapEvent)==null?void 0:n.call(P)});
_.e3(Y,{visibilityCallback:function(n){var b,d=(b=x().interaction)==null?void 0:b.onFirstVisible;n&&(d&&_.Gl(d),P.setOnErrorHandler()&&CZO(Y))},
showOption:_.r5});B=_.p(_.$D(!1,void 0,"eiYvIe"));var g=B.next().value,k=B.next().value;return _.U("ad-image-view-model",{class:function(){var n,b=[((n=x().interaction)==null?0:n.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],d;((d=P.isGridViewEnabled)==null?0:d.call(P))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:Y,"on:touchend":_.qe(function(){var n;((n=P.setTouchEndHandler)==null?0:n.call(P))&&!g()&&(Y.value.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1})},_.U("div",{class:"ytwAdImageViewModelHostImageContainer"},_.U(_.D9,{data:function(){var n;
return{sources:x().imageSources,contentMode:(n=x().imageProperties)==null?void 0:n.contentMode}},
alt:function(){var n,b;return((n=x().interaction)==null?void 0:(b=n.accessibility)==null?void 0:b.label)||""},
targetHeight:P.targetHeight,targetWidth:P.targetWidth,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,useWidth:P.useWidth,style:function(){var n,b;return"vertical-align: bottom;"+(((n=x().background)==null?0:n.color)?"background-color:"+_.zF((b=x().background)==null?void 0:b.color)+";":"")},
className:function(){return P.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var n,b;return(b=(n=P.setDraggable)==null?void 0:n.call(P))!=null?b:void 0}})))},"gb");var ih0=_.rM(function(B){var c=B.data,x=B.listenToTapEvent,P=_.Ho("ad-button-hover-overlay-view-model");_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.uR(P,function(){return c().interaction},void 0,function(){return x==null?void 0:x()});
_.e3(P,{visibilityCallback:function(g){var k,n=(k=c().interaction)==null?void 0:k.onFirstVisible;g&&n&&_.Gl(n)},
showOption:_.r5});var Y=function(){};
return _.U("ad-button-hover-overlay-view-model",{"on:click":_.qe(function(){if(_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,k=(g=c().interaction)==null?void 0:g.onTap;k&&_.aJ(P.value,"yt-navigate",{endpoint:_.vH(k)})}}),
class:function(){var g;return((g=c().interaction)==null?0:g.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:P},function(){return _.T("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.U(_.IF,{data:function(){return c().button}},{adButtonViewModel:function(g){return _.U(_.eS,{data:g.data,
customCommandResolver:Y})}}):_.U(_.IF,{data:function(){return c().button}},{adButtonViewModel:_.eS})}())},"hb");var jn;_.xU(_.rM(function(B){var c=B.data;var x=_.Ho("compact-landscape-no-button-layout-view-model");_.T("stop_av_measurement_on_detach")&&_.lP(function(){dc(x)});
_.uR(x,function(){return c().interaction},void 0,function(){return!0});
_.e3(x,{visibilityCallback:function(g){if(g){var k;(g=(k=c().interaction)==null?void 0:k.onFirstVisible)&&_.Gl(g);var n;if(k=(n=c().adLayoutData)==null?void 0:n.activeViewData)Ur(x,k),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dc(x)})}else _.T("stop_av_measurement_on_detach")&&dc(x)},
showOption:_.r5,hideOption:RS});B=_.p(_.$D(!1,void 0,"yzu6qe"));var P=B.next().value,Y=B.next().value;return _.U("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:x,"on:mouseenter":_.qe(function(){Y(!0)}),
"on:mouseleave":_.qe(function(){Y(!1)})},_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.TU({"max-width":function(){return _.T("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.U("div",{class:function(){var g;
a:{var k;switch((g=_.t(c().thumbnailImage,vl9))==null?void 0:(k=g.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}g=void 0}return g}},_.U(_.IF,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(g){return _.U(_.UJ,
{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})),_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.U(_.m,{cond:function(){var g,k,n;
return(g=_.t(c().thumbnailImage,vl9))==null?void 0:(k=g.imageProperties)==null?void 0:(n=k.overlayIcon)==null?void 0:n.iconImage},
then:function(g){return _.U(_.D9,{data:g,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.U("div",{class:function(){return P()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.U(_.IF,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(g){return _.U(ih0,
{data:g.data,
listenToTapEvent:!0})}}))),_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.U(_.IF,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(g){return _.U(Yen,{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=_.Ho("square-image-layout-view-model");_.T("stop_av_measurement_on_detach")&&_.lP(function(){dc(x)});
var P=_.FB(_.SA);_.uR(x,function(){return c().interaction});
_.e3(x,{visibilityCallback:function(k){if(k){var n;(k=(n=c().interaction)==null?void 0:n.onFirstVisible)&&_.Gl(k);var b;if(n=(b=c().adLayoutData)==null?void 0:b.activeViewData)Ur(x,n),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dc(x)})}else _.T("stop_av_measurement_on_detach")&&dc(x)},
showOption:_.r5,hideOption:RS});B={};var Y={},g={};return _.U("square-image-layout-view-model",{class:_.Kw("ytwSquareImageLayoutViewModelHost",(B.ytwSquareImageLayoutViewModelHostColumn=P,B)),el:x},_.U("div",{class:_.Kw("ytwSquareImageLayoutViewModelHostImage",(Y.ytwSquareImageLayoutViewModelHostColumnImage=P,Y))},function(){return _.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(k){return _.U(_.UJ,{data:k.data,
isGridViewEnabled:P,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.U("div",{class:_.Kw("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(g.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=P,g))},_.U(_.IF,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:Yen}),function(){return _.U(_.IF,{data:function(){return c().adButton}},{adButtonViewModel:function(k){var n={};
return _.U(_.eS,{data:k.data,className:_.Kw((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=P,n))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=B.noBottomMargin;var P=B.typographyBump;var Y=_.Ho("top-landscape-image-layout-view-model");_.T("stop_av_measurement_on_detach")&&_.lP(function(){dc(Y)});
_.T("enable_web_home_top_landscape_image_layout_level_click")&&_.uR(Y,function(){return c().interaction},void 0,function(){return!0});
B=function(){return c().interaction};
B!==void 0&&B!==null||_.MR(Error("Kh"));_.e3(Y,{visibilityCallback:function(d){if(d){var q;(d=(q=c().interaction)==null?void 0:q.onFirstVisible)&&_.Gl(d);var C;if(q=(C=c().adLayoutData)==null?void 0:C.activeViewData)Ur(Y,q),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dc(Y)})}else _.T("stop_av_measurement_on_detach")&&dc(Y)},
showOption:_.r5,hideOption:RS});var g=function(){var d,q,C;return(d=_.t(c().thumbnailImage,vl9))==null?void 0:(q=d.background)==null?void 0:(C=q.backgroundImageSource)==null?void 0:C.imageSources};
B=_.p(_.$D(!1,void 0,"GIwTMc"));var k=B.next().value,n=B.next().value,b=function(){return k()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.U("top-landscape-image-layout-view-model",{class:function(){var d;return((d=c().interaction)==null?0:d.onTap)&&_.T("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:Y,"on:mouseenter":_.qe(function(){n(!0)}),
"on:mouseleave":_.qe(function(){n(!1)})},_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.U(_.m,{cond:function(){return g()&&g().length>0},
then:function(){return _.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.TU({top:"0","background-image":function(){return"url("+String(g()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.U(_.m,{cond:function(){return!!c().adButtonHoverOverlay},
then:function(){return _.U("div",{class:b},_.U(_.IF,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:ih0}))}}),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.U(_.IF,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(d){return _.U(_.UJ,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.T("enable_web_home_top_landscape_image_layout_level_click")})}})),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.U(_.D9,{data:{sources:[{clientResource:{imageName:_.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.U(_.IF,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.U(Yen,{data:d.data,
noBottomMargin:function(){return x==null?void 0:x()},
listenToTapEvent:function(){return _.T("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return P==null?void 0:P()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.rk,
noBottomMargin:_.rk,typographyBump:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=B.typographyBump;var P=_.Ho("video-display-button-group-layout-view-model");_.e3(P,{visibilityCallback:function(Y){if(Y){var g;(Y=(g=c().interaction)==null?void 0:g.onFirstVisible)&&_.Gl(Y);var k;g=(k=c().adLayoutData)==null?void 0:k.activeViewData;!_.T("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&g&&Ur(P,g)}},
showOption:_.r5,hideOption:RS});return _.U("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:P},_.U("div",null,_.U(_.IF,{data:function(){return c().videoLockup}},{lockupViewModel:function(Y){return _.U(_.ap,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:x})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.rk,
noBottomMargin:_.rk,typographyBump:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=B.className;var P=B.typographyBump;var Y=_.Ho("video-display-compact-button-group-layout-view-model");_.e3(Y,{visibilityCallback:function(g){if(g){var k;(g=(k=c().interaction)==null?void 0:k.onFirstVisible)&&_.Gl(g);var n;(k=(n=c().adLayoutData)==null?void 0:n.activeViewData)&&Ur(Y,k)}},
showOption:_.r5});return _.U("video-display-compact-button-group-layout-view-model",{el:Y,class:_.Kw("videoDisplayCompactButtonGroupLayoutViewModelHost",x)},_.U(_.IF,{data:function(){return c().videoLockup}},{lockupViewModel:function(g){return _.U(_.ap,{data:g.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.rk,
className:_.rk,typographyBump:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=B.typographyBump;var P=_.Ho("video-display-full-layout-view-model");_.e3(P,{visibilityCallback:function(Y){if(Y){var g;(Y=(g=c().interaction)==null?void 0:g.onFirstVisible)&&_.Gl(Y);var k;g=(k=c().adLayoutData)==null?void 0:k.activeViewData;!_.T("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&g&&Ur(P,g)}},
showOption:_.r5,hideOption:RS});return _.U("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:P},_.U("div",null,_.U(_.IF,{data:function(){return c().videoLockup}},{lockupViewModel:function(Y){return _.U(_.ap,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:x})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.rk,
noBottomMargin:_.rk,typographyBump:_.rk}});_.Ayy=_.rM(function(B){var c=B.data;B=_.Ho("ad-card-badge-view-model");return _.U("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:B},_.U(_.m,{cond:function(){return c().imageBadge},
then:function(x){return _.U(_.D9,{data:x,alt:""})}}))},"ob");var uYt=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;B=_.Ho("carousel-ad-card-image-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});return _.U("carousel-ad-card-image-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:B,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(P){return _.U(_.UJ,{data:P.data,
customCommandResolver:x})}}),_.U("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.U(_.IF,{data:function(){return c().badge}},{adCardBadgeViewModel:_.Ayy})),_.U(_.Ne,{model:{color:4}}))},"pb");var DSQ=_.rM(function(B){var c=_.p(_.$D(0,void 0,"o9Bzd")),x=c.next().value;c.next();var P=c.next().value,Y=_.p(_.$D(!1,void 0,"KLdzYe"));c=Y.next().value;var g=Y.next().value,k;_.lP(function(){clearTimeout(k)});
Y=_.qe(function(){var d;((d=B.animate)==null?0:d.call(B))?(g(!0),k=setTimeout(function(){g(!1);n()},200)):n();
return!1});
var n=function(){P(function(d){return(d+B.numShownItems())%B.data().length})},b={};
return _.U("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.U("div",{class:_.Kw("ytwHorizontalCarouselCarouselWrapper")},_.U("div",{class:_.Kw("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=c,b))},_.U(_.mV,{each:B.data,keyBy:"INDEX"},function(d,q){return _.U("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.TU({"flex-basis":function(){return"calc((100% - (8px * "+(B.numShownItems()-1)+")) / "+B.numShownItems()+")"},
order:function(){var C=q-x();C<0&&(C+=B.data().length);return C}})},B.children(d,q))}))),_.U("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Y},B.nextButton()))},"qb");var ry0=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;var P=B.expansive;B=_.Ho("carousel-ad-card-collection-view-model");_.e3(B,{visibilityCallback:function(Y){var g,k=(g=c().interaction)==null?void 0:g.onFirstVisible;Y&&k&&_.Gl(k)},
showOption:_.r5});return _.U("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:B},_.U(DSQ,{data:function(){var Y;return((Y=c())==null?void 0:Y.carouselAdCards)||[]},
nextButton:function(){return _.U(_.IF,{data:function(){return c().nextButton}},{buttonViewModel:function(Y){var g=Y.data;
return _.U(_.Q7,{data:function(){return(P==null?0:P())?Object.assign({},g(),{style:"mono"}):g()},
className:_.T("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Y){return _.U(_.IF,{data:Y},{carouselAdCardImageViewModel:function(g){return _.U(uYt,{data:g.data,customCommandResolver:x})}})}))},"rb");var RCZ=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;var P=B.className;var Y=B.buttonClassName;var g=B.animationEntityKey;var k=B.expansive;return _.U("carousel-button-view-model",{class:_.Kw("ytwCarouselButtonViewModelHost",P)},_.U(_.IF,{data:function(){return c().carousel}},{carouselAdCardCollectionViewModel:function(n){return _.U(ry0,{data:n.data,
customCommandResolver:x,expansive:k})}}),_.U(_.IF,{data:function(){return c().button}},{adButtonViewModel:function(n){var b=n.data;
return _.U(_.eS,{data:function(){return(k==null?0:k())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:Y,customCommandResolver:x,animationEntityKey:g})}}))},"sb");_.eCZ=_.rM(function(B){var c=B.data;B=B.className;var x=_.Ho("pivot-button-view-model");_.lk(function(){var P;((P=c())==null?0:P.backgroundColor)&&x.value.setAttribute("data-background-color",String(c().backgroundColor))});
return _.U("pivot-button-view-model",{el:x,class:_.Kw("ytwPivotButtonViewModelHost",B)},_.U(_.$J,{command:function(){var P=c();P=P.onClickCommand?_.vH(P.onClickCommand):P.contentDescription?_.Rw(P.contentDescription):void 0;return P},
ariaLabel:function(){return c().contentDescription}},_.U(_.m,{cond:function(){return c().thumbnail},
then:function(P){return _.U(_.D9,{data:P,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.U(_.m,{cond:function(){return c().icon},
then:function(P){return _.U(_.Vf,{icon:function(){return P().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.BIW=_.rM(function(B){var c=B.data;var x=B.buttonShapeOverrideables;return _.U("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.U(_.IF,{data:function(){return c().buttonViewModels}},{buttonViewModel:function(P){return _.U(_.Q7,{data:P.data,
buttonOverrides:x})},
likeButtonViewModel:function(P){return _.U(_.WC,{data:P.data,buttonShapeOverrideables:x})},
dislikeButtonViewModel:function(P){return _.U(_.J7,{data:P.data,buttonShapeOverrideables:x})},
toggleButtonViewModel:function(P){return _.U(_.Jb,{data:P.data,buttonShapeOverrides:x})}}))},"ub");var cQd=_.rM(function(B){var c=B.avatar;var x=B.headline;var P=B.badge;var Y=B.description;var g=B.expansive;B={};return _.U("yt-ad-metadata-shape",{class:_.Kw("ytAdMetadataShapeHost",(B.ytAdMetadataShapeHostLarge=g,B))},_.U("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.U(_.m,{cond:c,then:function(k){return _.U(_.B6d,{data:function(){return(g==null?0:g())?Object.assign({},k(),{size:"AD_AVATAR_SIZE_MPLUS"}):k()}})}}),_.U("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.U(_.RF,{text:x,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.U(_.m,{cond:P,then:function(k){return _.U(_.xT,{data:function(){return(g==null?0:g())?Object.assign({},k(),{style:"AD_BADGE_STYLE_STARK"}):k()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.U("h2",{class:"ytAdMetadataShapeHostDescription"},_.U(_.RF,{text:Y,
linkInheritColor:!0})))},"vb");var xtI=_.rM(function(B){var c=B.data;var x=B.onShow;var P=B.expansive;B=_.Ho("reels-ad-card-buttoned-view-model");_.uR(B,function(){return c().interaction});
_.lk(function(){var g,k=(g=c().animatedRenderingConfig)==null?void 0:g.delayedSecondsToVisible;if(k){var n=setTimeout(x,k*1E3);_.lP(function(){clearTimeout(n)})}});
var Y={};return _.U("reels-ad-card-buttoned-view-model",{class:_.Kw(function(){var g;return((g=c().interaction)==null?0:g.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Y.ytwReelsAdCardButtonedViewModelHostExpansive=P,Y)),
el:B},_.U(cQd,{avatar:function(){return _.t(c().avatar,QE3)},
headline:function(){return c().headline},
badge:function(){return _.t(c().adBadge,FH3)},
description:function(){return c().description},
expansive:P}),_.U(_.IF,{data:function(){return c().ctaButton}},{adButtonViewModel:function(g){var k=g.data;
return _.U(_.eS,{data:function(){return(P==null?0:P())?Object.assign({},k(),{style:"AD_BUTTON_STYLE_FILLED"}):k()}})}}))},"wb");var Pwt=_.rM(function(B){var c=B.data;B=B.expansive;var x=_.Ho("reels-ad-metadata-view-model");_.T("web_ad_metadata_clickable")&&_.uR(x,function(){return c().interaction});
var P={};P=_.U9("ytwReelsAdMetadataViewModelHost",(P.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.T("web_ad_metadata_clickable"),P));return _.U("reels-ad-metadata-view-model",{class:P,el:x},_.U(cQd,{avatar:function(){return _.t(c().avatar,QE3)},
headline:function(){return c().headline},
badge:function(){return _.t(c().adBadge,FH3)},
description:function(){return c().description},
expansive:B}))},"xb");var YW0={iconPosition:"icon-with-label",size:"L"},aoZ=_.rM(function(B){var c=B.data;var x=B.overlayDensity;B=_.Ho("reels-player-overlay-layout-view-model");var P=_.A9(x,0),Y=function(){var C;return(C=c().reelsAdCardButtonedEntityKey)!=null?C:""},g=function(){return Y()+"/ad_button"},k=_.jA(qwx,Y),n=function(){var C,h;
return(h=(C=k())==null?void 0:C.value)!=null?h:!1},b=_.FB(NvA),d=function(){return Object.assign({},YW0,(b()||P()===2)&&{style:"overlay-dark"})};
x={};var q={};return _.U("reels-player-overlay-layout-view-model",{class:_.Kw("ytwReelsPlayerOverlayLayoutViewModelHost",(x.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!c().extension},x.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},x)),
"overlay-density":function(){return String(P())},
el:B},_.U("div",{class:_.Kw("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(q.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},q))},_.U("div",{"aria-hidden":function(){return n()},
class:_.Kw("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return n()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.TU({"transition-duration":function(){return WOQ(c())}})},_.U(_.IF,{data:function(){return c().adMetadata}},{reelsAdMetadataViewModel:function(C){return _.U(Pwt,{data:C.data,
expansive:function(){return P()===1}})}}),_.U(_.m,{cond:function(){return c().extension},
then:function(C){return _.U("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.U(_.IF,{data:C},{adButtonViewModel:function(h){return _.U(_.eS,{data:h.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(h){return _.U(RCZ,{data:h.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return P()===1}})}}))}})),_.U("div",{"aria-hidden":function(){return!n()},
class:_.Kw("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return n()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.TU({"transition-duration":function(){return WOQ(c())}})},_.U(_.IF,{data:function(){return c().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(C){return _.U(xtI,{data:C.data,
onShow:function(){_.iF(_.Uy("booleanEntity",Y(),{key:Y(),value:!0}))},
expansive:function(){return P()===1}})}}))),_.U("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.U(_.IF,{data:function(){return c().actions}},{reelActionBarViewModel:function(C){return _.U(_.BIW,{data:C.data,
buttonShapeOverrideables:d})}}),_.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:function(C){return _.U(_.Q7,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},d(),{type:"tonal"})}})}}),_.U(_.IF,{data:function(){return c().pivotButton}},{pivotButtonViewModel:function(C){return _.U(_.eCZ,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.xU(aoZ,"reels-player-overlay-layout-view-model",{props:{data:_.rk,overlayDensity:_.rk}});var dT=function(){var B=_.z.apply(this,arguments)||this;B.noBottomMargin=!1;B.overlayDensity=0;return B};
_.w(dT,_.z);_.a=dT.prototype;
_.a.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.T("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]]"}}}}}};
_.a.ready=function(){var B=this;i_7(function(){B.isAttached&&sr(B.JSC$13480_storedAdSlotMetadata,B.JSC$13480_storedAdLayoutMetadata,B.adSlotMetadata,B.adLayoutMetadata)&&jY(bB(),B.JSC$13480_storedAdSlotMetadata,B.JSC$13480_storedAdLayoutMetadata)})};
_.a.attached=function(){sr(this.JSC$13480_storedAdSlotMetadata,this.JSC$13480_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fb3(bB(),this.JSC$13480_storedAdSlotMetadata,this.JSC$13480_storedAdLayoutMetadata)};
_.a.detached=function(){sr(this.JSC$13480_storedAdSlotMetadata,this.JSC$13480_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jY(bB(),this.JSC$13480_storedAdSlotMetadata,this.JSC$13480_storedAdLayoutMetadata)};
_.a.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.a.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13480_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13480_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13480_storedAdLayoutMetadata!==void 0&&this.JSC$13480_storedAdSlotMetadata!==void 0&&jY(bB(),this.JSC$13480_storedAdSlotMetadata,this.JSC$13480_storedAdLayoutMetadata),fb3(bB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13480_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13480_storedAdSlotMetadata=this.adSlotMetadata)};
_.AJ.Object.defineProperties(dT.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.adLayoutMetadata}}});
dT.prototype.onAdMetadataChanged=dT.prototype.onAdMetadataChanged;dT.prototype.onTypographyBumpChanged=dT.prototype.onTypographyBumpChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dT.prototype,"rendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],dT.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],dT.prototype,"noBottomMargin",void 0);_.L([_.F(),_.H("design:type",Object)],dT.prototype,"overlayDensity",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],dT.prototype,"typographyBump",void 0);_.L([_.Q("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],dT.prototype,"adLayoutMetadata",null);_.L([_.F(),_.H("design:type",Object)],dT.prototype,"adSlotMetadata",void 0);
_.L([_.jr("ytd-video-display-full-buttoned-and-button-group-renderer"),_.H("design:type",HTMLElement)],dT.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.L([_.bF("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dT.prototype,"onTypographyBumpChanged",null);_.L([_.bF("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dT.prototype,"onAdMetadataChanged",null);
_.L([_.y({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],dT);
_.G(dT,"ytd-in-feed-ad-layout-renderer",function(){if(DL5!==void 0)return DL5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return DL5=B},
{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var gK4;var san;var qP=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return B};
_.w(qP,_.z);_.a=qP.prototype;_.a.computeHasLiveDescription=function(B){return!(B==null||!B.liveDescription)};
_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.a.onYtToggleButton=function(B){var c,x=(c=this.data)==null?void 0:c.videoReminderEntityKey;x&&this.ytdReduxBehavior.dispatch(_.Uy("upcomingEventReminderStateEntity",x,{key:x,state:B.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.a.attached=function(){this.updateChannelBanner()};
_.a.dataChanged=function(){this.updateChannelBanner()};
_.a.videoReminderStateChanged=function(){var B;this.videoReminderState&&_.t((B=this.data)==null?void 0:B.cta,_.SP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.a.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var B=_.Pw(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);B&&(B.startsWith("//")&&(B="https:"+B),this.hostElement.classList.add("channel-banner"),_.k9(this.hostElement,{"--ytvmh-channel-banner":"url("+B+")"}))}else _.T("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.a.onPlayerReady=function(){this.onIronResize()};
_.a.maybeFlushDebouncer=function(){_.T("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(B){var c;B=(c=B.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0];UnO(B==null?void 0:B.polymerController)})};
_.a.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var B=_.Y9(this.hostElement).querySelector("#live-description"),c;B&&((c=this.data)==null?0:c.shortLiveDescription)&&B.clientWidth<B.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
qP.prototype.onIronResize=qP.prototype.onIronResize;qP.prototype.videoReminderStateChanged=qP.prototype.videoReminderStateChanged;qP.prototype.dataChanged=qP.prototype.dataChanged;qP.prototype.onYtToggleButton=qP.prototype.onYtToggleButton;_.L([_.J(_.Oc),_.H("design:type",Object)],qP.prototype,"ironResizableBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qP.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:d07}),_.H("design:type",Object)],qP.prototype,"videoReminderState",void 0);
_.L([_.F({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.H("design:type",Boolean)],qP.prototype,"rounded",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.H("design:type",Boolean)],qP.prototype,"hasLiveDescription",void 0);_.L([_.F({reflectToAttribute:!0,value:_.T("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.H("design:type",Boolean)],qP.prototype,"resizableAdBannerSafariFix",void 0);
_.L([_.F({reflectToAttribute:!0,value:_.T("align_three_dot_menu_with_title_description")}),_.H("design:type",Boolean)],qP.prototype,"menuFix",void 0);_.L([_.Um("yt-formatted-string"),_.H("design:type",Array)],qP.prototype,"formattedStrings",void 0);_.L([_.jr("#cta-button"),_.H("design:type",HTMLElement)],qP.prototype,"ctaButton",void 0);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qP.prototype,"onYtToggleButton",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qP.prototype,"dataChanged",null);_.L([_.bF("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qP.prototype,"videoReminderStateChanged",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qP.prototype,"onIronResize",null);
_.L([_.y({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],qP);
_.G(qP,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(san!==void 0)return san;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return san=B},{mode:1});var p1Q;var CM=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};B.isLocked=!1;return B};
_.w(CM,_.z);_.a=CM.prototype;_.a.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.a.onExpandedChanged=function(){this.expanded&&_.sp(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.a.onMouseOver=function(){this.maybeExpand()};
_.a.onTap=function(){this.maybeExpand()};
_.a.onExpandableTileExpanding=function(B){B!==this&&(this.expanded=!1)};
_.a.onExpandableTileLockAndCollapse=function(B){this.isLocked=!0;B!==this&&(this.expanded=!1)};
_.a.onExpandableTileUnlock=function(){this.isLocked=!1};
CM.prototype.onTap=CM.prototype.onTap;CM.prototype.onMouseOver=CM.prototype.onMouseOver;CM.prototype.onExpandedChanged=CM.prototype.onExpandedChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CM.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],CM.prototype,"expanded",void 0);_.L([_.CF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CM.prototype,"onExpandedChanged",null);_.L([_.nF("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CM.prototype,"onMouseOver",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CM.prototype,"onTap",null);
_.L([_.y({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],CM);
_.G(CM,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(p1Q!==void 0)return p1Q;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return p1Q=B},{mode:1});var k0W;var h8=function(){var B=_.z.apply(this,arguments)||this;B.buttonOverrides={style:"overlay"};B.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");B.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};B.playbackFinished=!1;B.JSC$13492_playerManager=null;B.JSC$13492_mastheadCounter=new Qdm;return B};
_.w(h8,_.z);_.a=h8.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$13492_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13492_playerManager=new J2)};
_.a.ready=function(){var B=this;this.JSC$13492_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var c=_.Y9(this.hostElement).querySelector("#player");this.useYtdPlayer?c.style.display="none":(this.ytdPlayer.style.display="none",Ccd(this.JSC$13492_playerManager,c,function(){B.onPlaybackEnded()}),_.Y9(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var x;
((x=B.data)==null?0:x.navigationEndpoint)&&_.aJ(B.hostElement,"yt-navigate",{endpoint:B.data.navigationEndpoint})}))};
_.a.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13492_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.a.attached=function(){var B=this;_.Sr(function(){B.maybePlayVideo()})};
_.a.maybePlayVideo=function(){var B=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$13492_playerManager.playVideo(),this.getPlayerPromise().then(function(){B.JSC$13492_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.a.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13492_playerManager.stopVideo()};
_.a.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var B,c={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((B=this.data.playbackStartMs)!=null?B:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else mnd(this.JSC$13492_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(h$m(this.JSC$13492_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.a.getPlayerPromise=function(){return this.JSC$13492_playerManager.getPlayerPromise()};
_.a.onYtToggleButton=function(B){this.useYtdPlayer?this.toggleMute(B.detail.toggled):B.detail.toggled?this.JSC$13492_playerManager.mute():this.JSC$13492_playerManager.unMute()};
_.a.onYtNavigate=function(B){var c=kHC(B.detail.endpoint),x=XDY(this.data.clickthroughReportingData);c&&x&&(B.detail.endpoint.watchEndpoint?B.detail.tempData=x:_.Da(c,x,30))};
_.a.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.a.onExpandedChanged=function(){this.expanded?(_.sp(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.a.onMouseOver=function(){this.maybeExpand()};
_.a.onTap=function(){this.maybeExpand()};
_.a.onExpandableTileExpanding=function(B){B!==this&&(this.stopVideo(),this.expanded=!1)};
_.a.onExpandableTileLockAndCollapse=function(B){B!==this&&(this.isLocked=!0,this.expanded=!1)};
_.a.onExpandableTileUnlock=function(){this.isLocked=!1};
_.a.lockAndCollapseExpandableTiles=function(){_.gj(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.a.unlockExpandableTiles=function(){_.gj(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.a.setupYtdPlayer=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.ytdPlayer.getPlayerPromise(),2);c=x.yieldResult;c.addEventListener("onStateChange",function(P){B.onPlayerStateChange(P)});
c.addEventListener("onCueRangeExit",function(P){B.onCueRangeExit(P)});
_.Kq(x)})};
_.a.onPlayerStateChange=function(B){if(B===1&&(B=this.ytdPlayer.getPlayer())){var c=B.getCurrentTime(),x,P,Y=c+((P=(x=this.data)==null?void 0:x.playbackDurationMs)!=null?P:0)/1E3;B.addCueRange("playback",c,Y);this.JSC$13492_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.a.onCueRangeExit=function(B){B==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.a.toggleMute=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.ytdPlayer.getPlayerPromise(),2);x=P.yieldResult;B?x.mute():x.unMute();_.Kq(P)})};
h8.prototype.onTap=h8.prototype.onTap;h8.prototype.onMouseOver=h8.prototype.onMouseOver;h8.prototype.onExpandedChanged=h8.prototype.onExpandedChanged;h8.prototype.onYtNavigate=h8.prototype.onYtNavigate;h8.prototype.onYtToggleButton=h8.prototype.onYtToggleButton;h8.prototype.dataChanged=h8.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],h8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],h8.prototype,"expanded",void 0);_.L([_.F(),_.H("design:type",Object)],h8.prototype,"buttonOverrides",void 0);
_.L([_.F(),_.H("design:type",Object)],h8.prototype,"useYtdPlayer",void 0);_.L([_.jr("#ytd-player"),_.H("design:type",Object)],h8.prototype,"ytdPlayer",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h8.prototype,"dataChanged",null);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],h8.prototype,"onYtToggleButton",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],h8.prototype,"onYtNavigate",null);_.L([_.CF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h8.prototype,"onExpandedChanged",null);_.L([_.nF("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h8.prototype,"onMouseOver",null);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h8.prototype,"onTap",null);_.L([_.y({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],h8);
_.G(h8,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(k0W!==void 0)return k0W;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return k0W=B},{mode:1});var X1Q;var mx=function(){return _.z.apply(this,arguments)||this};
_.w(mx,_.z);mx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mx.prototype.onShow=function(){var B=_.Y9(this.hostElement).querySelector("#live-description"),c;B&&((c=this.data)==null?0:c.shortLiveDescription)&&B.clientWidth<B.scrollWidth&&this.hostElement.classList.add("short-live-description")};
mx.prototype.onYtToggleButton=function(B){var c,x=(c=this.data)==null?void 0:c.videoReminderEntityKey;x&&this.ytdReduxBehavior.dispatch(_.Uy("upcomingEventReminderStateEntity",x,{key:x,state:B.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
mx.prototype.videoReminderStateChanged=function(){var B;this.videoReminderState&&_.t((B=this.data)==null?void 0:B.cta,_.SP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
mx.prototype.videoReminderStateChanged=mx.prototype.videoReminderStateChanged;mx.prototype.onYtToggleButton=mx.prototype.onYtToggleButton;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],mx.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mx.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:d07}),_.H("design:type",Object)],mx.prototype,"videoReminderState",void 0);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mx.prototype,"onYtToggleButton",null);_.L([_.bF("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mx.prototype,"videoReminderStateChanged",null);
_.L([_.y({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],mx);
_.G(mx,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(X1Q!==void 0)return X1Q;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return X1Q=B},{mode:_.sL("kevlar_poly_si_batch_j065")?1:2});var $tI;var Tn=function(){var B=_.z.apply(this,arguments)||this;B.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");B.buttonOverrides={style:"overlay"};B.JSC$13500_playerManager=null;B.JSC$13500_mastheadCounter=new Qdm;B.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return B};
_.w(Tn,_.z);_.a=Tn.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$13500_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13500_playerManager=new J2)};
_.a.ready=function(){var B=this;this.JSC$13500_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var c;(c=this.embeddedPlayer)==null||c.remove()}else{var x;(x=this.ytdPlayer)==null||x.remove();Ccd(this.JSC$13500_playerManager,this.embeddedPlayer,function(){B.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){B.data&&B.data.navigationEndpoint&&_.aJ(B.hostElement,"yt-navigate",{endpoint:B.data.navigationEndpoint})})}};
_.a.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13500_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.a.dataChanged=function(){var B=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var c=!this.data.disableAutoPlayback,x,P={autoplay:c,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((x=this.data.playbackStartMs)!=null?x:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(c?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else mnd(this.JSC$13500_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(h$m(this.JSC$13500_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13500_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.gj(B.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");B.JSC$13500_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.a.getPlayerPromise=function(){return this.JSC$13500_playerManager.getPlayerPromise()};
_.a.onYtToggleButton=function(B){this.useYtdPlayer?this.toggleMute(B.detail.toggled):B.detail.toggled?this.JSC$13500_playerManager.mute():this.JSC$13500_playerManager.unMute()};
_.a.onYtNavigate=function(B){var c=kHC(B.detail.endpoint),x=XDY(this.data.clickthroughReportingData);c&&x&&(B.detail.endpoint.watchEndpoint?B.detail.tempData=x:_.Da(c,x,30))};
_.a.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13500_playerManager.stopVideo()};
_.a.setupYtdPlayer=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.ytdPlayer.getPlayerPromise(),2);c=x.yieldResult;c.addEventListener("onStateChange",function(P){B.onPlayerStateChange(P)});
c.addEventListener("onCueRangeExit",function(P){B.onCueRangeExit(P)});
_.Kq(x)})};
_.a.onPlayerStateChange=function(B){if(B===1&&(B=this.ytdPlayer.getPlayer())){var c=B.getCurrentTime(),x,P,Y=c+((P=(x=this.data)==null?void 0:x.playbackDurationMs)!=null?P:0)/1E3;B.addCueRange("playback",c,Y);_.gj(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13500_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.a.onCueRangeExit=function(B){B==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.a.toggleMute=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.ytdPlayer.getPlayerPromise(),2);x=P.yieldResult;B?x.mute():x.unMute();_.Kq(P)})};
_.AJ.Object.defineProperties(Tn.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B,c;if(!((B=this.data)==null?0:(c=B.accessibilityData)==null?0:c.label))return"Ad primary link";var x,P;return _.Up("AD_TITLE",{title:(x=this.data)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label})}}});
Tn.prototype.onYtMastheadHidden=Tn.prototype.onYtMastheadHidden;Tn.prototype.onYtNavigate=Tn.prototype.onYtNavigate;Tn.prototype.onYtToggleButton=Tn.prototype.onYtToggleButton;Tn.prototype.dataChanged=Tn.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Tn.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Tn.prototype,"useYtdPlayer",void 0);_.L([_.jr("ytd-toggle-button-renderer"),_.H("design:type",Object)],Tn.prototype,"muteButton",void 0);_.L([_.F(),_.H("design:type",Object)],Tn.prototype,"buttonOverrides",void 0);
_.L([_.Q("data.accessibilityData.label"),_.H("design:type",String),_.H("design:paramtypes",[])],Tn.prototype,"titleAriaLabel",null);_.L([_.jr("#replay-button"),_.H("design:type",Object)],Tn.prototype,"replayButton",void 0);_.L([_.jr("#player-container"),_.H("design:type",Object)],Tn.prototype,"playerContainer",void 0);_.L([_.jr("#player"),_.H("design:type",Object)],Tn.prototype,"embeddedPlayer",void 0);_.L([_.jr("#ytd-player"),_.H("design:type",Object)],Tn.prototype,"ytdPlayer",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tn.prototype,"dataChanged",null);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tn.prototype,"onYtToggleButton",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tn.prototype,"onYtNavigate",null);
_.L([_.nF("yt-masthead-hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tn.prototype,"onYtMastheadHidden",null);_.L([_.y({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Tn);
_.G(Tn,"ytd-video-masthead-ad-primary-video-renderer",function(){if($tI!==void 0)return $tI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $tI=B},{mode:2});var nKQ;var Vn=function(){var B=_.z.apply(this,arguments)||this;B.collapsed=!1;B.impressionResolver=_.Hw();B.JSC$13504_activeViewMeasurementDataResolver=_.Hw();B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.w(Vn,_.z);_.a=Vn.prototype;_.a.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"}}}};
_.a.ready=function(){var B=this;_.Y9(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){B.expandAd()});
this.hostElement.addEventListener("yt-action",function(c){if(c.detail.actionName==="yt-service-request"){var x=c.detail.args[1];x.videoMastheadAdMuteCommand&&(B.collapseAd(x.videoMastheadAdMuteCommand.encryptedMastheadId),c.stopPropagation())}})};
_.a.attached=function(){var B=this;_.Sr(function(){B.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(c){if(!B.collapsed){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,Lp(x.baseUrl,x.attributionSrcMode);B.data.impressionCommand=void 0}});
this.JSC$13504_activeViewMeasurementDataResolver.promise.then(function(c){B.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.dataChanged=function(){var B;((B=this.data.impressionCommand)==null?0:B.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var c;((c=this.data)==null?0:c.activeView)&&this.JSC$13504_activeViewMeasurementDataResolver.resolve(this.data.activeView);(B=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(B.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.a.computeWidescreen=function(B){var c;return!!(B&&((c=_.t(B,WHm))==null?0:c.isWidescreen))};
_.a.computeExpandable=function(B){return!!(B&&B.length>0)};
_.a.onIronResize=function(){if(this.expandable){var B=_.Y9(this.hostElement).querySelector("#expandable-tile-container :first-child");B&&!B.expanded&&(B.expanded=!0)}};
_.a.handleMuteAd=function(){this.collapseAd(null)};
_.a.restoreCollapsedState=function(B){this.collapsed=_.CW().get("HIDDEN_MASTHEAD_ID")===B};
_.a.collapseAd=function(B){if(B){var c=_.CW();c.set("HIDDEN_MASTHEAD_ID",B);c.save()}(B=_.Y9(this.hostElement).querySelector("#video"))&&_.aJ(B,"yt-masthead-hidden");this.collapsed=!0};
_.a.expandAd=function(){var B=_.CW();B.set("HIDDEN_MASTHEAD_ID",!1);B.save();location.reload()};
_.a.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Vn.prototype.onIronResize=Vn.prototype.onIronResize;Vn.prototype.dataChanged=Vn.prototype.dataChanged;_.L([_.J(_.Oc),_.H("design:type",Object)],Vn.prototype,"ironResizableBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],Vn.prototype,"ytdActiveViewBehavior",void 0);_.L([_.J(_.vD),_.H("design:type",Object)],Vn.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Vn.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Vn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.H("design:type",Boolean)],Vn.prototype,"widescreen",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.H("design:type",Boolean)],Vn.prototype,"expandable",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vn.prototype,"collapsed",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vn.prototype,"dataChanged",null);
_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vn.prototype,"onIronResize",null);_.L([_.y({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Vn);
_.G(Vn,"ytd-video-masthead-ad-v3-renderer",function(){if(nKQ!==void 0)return nKQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nKQ=B},{mode:2});var t8=function(){return _.z.apply(this,arguments)||this};
_.w(t8,_.z);_.a=t8.prototype;_.a.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.a.ready=function(){var B=this;i_7(function(){B.isAttached&&sr(B.JSC$13509_storedAdSlotMetadata,B.JSC$13509_storedAdLayoutMetadata,B.adSlotMetadata,B.adLayoutMetadata)&&jY(bB(),B.JSC$13509_storedAdSlotMetadata,B.JSC$13509_storedAdLayoutMetadata)})};
_.a.attached=function(){sr(this.JSC$13509_storedAdSlotMetadata,this.JSC$13509_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fb3(bB(),this.JSC$13509_storedAdSlotMetadata,this.JSC$13509_storedAdLayoutMetadata)};
_.a.detached=function(){sr(this.JSC$13509_storedAdSlotMetadata,this.JSC$13509_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jY(bB(),this.JSC$13509_storedAdSlotMetadata,this.JSC$13509_storedAdLayoutMetadata)};
_.a.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13509_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13509_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13509_storedAdLayoutMetadata!==void 0&&this.JSC$13509_storedAdSlotMetadata!==void 0&&jY(bB(),this.JSC$13509_storedAdSlotMetadata,this.JSC$13509_storedAdLayoutMetadata),fb3(bB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13509_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13509_storedAdSlotMetadata=this.adSlotMetadata)};
_.AJ.Object.defineProperties(t8.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.adLayoutMetadata}}});
t8.prototype.onAdMetadataChanged=t8.prototype.onAdMetadataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],t8.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],t8.prototype,"data",void 0);_.L([_.Q("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],t8.prototype,"adLayoutMetadata",null);
_.L([_.F(),_.H("design:type",Object)],t8.prototype,"adSlotMetadata",void 0);_.L([_.bF("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],t8.prototype,"onAdMetadataChanged",null);_.L([_.y({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],t8);
_.G(t8,"ytd-page-top-ad-layout-renderer",function(){if(gK4!==void 0)return gK4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return gK4=
B},{mode:_.sL("kevlar_poly_si_batch_j070")?1:2});var b54;var wT=function(){var B=_.z.apply(this,arguments)||this;B.noBottomMargin=!1;B.overlayDensity=0;B.typographyBump=!1;return B};
_.w(wT,_.z);_.a=wT.prototype;
_.a.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]]"}}}}}};
_.a.ready=function(){var B=this;i_7(function(){B.isAttached&&B.adSlotMetadata&&Hh3(bB(),B.adSlotMetadata)})};
_.a.attached=function(){if(this.adSlotMetadata){var B;if(this.adSlotMetadata===((B=this.data)==null?void 0:B.adSlotMetadata))Zh4(bB(),this.adSlotMetadata);else{var c;_.Ob(Error("Lh`"+this.adSlotMetadata+"`"+((c=this.data)==null?void 0:c.adSlotMetadata)))}}};
_.a.detached=function(){this.adSlotMetadata&&Hh3(bB(),this.adSlotMetadata)};
_.a.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.a.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Hh3(bB(),this.adSlotMetadata),Zh4(bB(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.AJ.Object.defineProperties(wT.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.Eln),P;return(B=(P=_.t(x==null?void 0:x.renderingContent,lOI))==null?void 0:P.layout)?B.toLowerCase().replace(/_/g,"-"):""}}});
wT.prototype.onAdSlotMetadataChanged=wT.prototype.onAdSlotMetadataChanged;wT.prototype.onTypographyBumpChanged=wT.prototype.onTypographyBumpChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],wT.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wT.prototype,"rendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],wT.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],wT.prototype,"noBottomMargin",void 0);_.L([_.F(),_.H("design:type",Object)],wT.prototype,"overlayDensity",void 0);_.L([_.F(),_.H("design:type",Object)],wT.prototype,"typographyBump",void 0);_.L([_.jr("ytd-in-feed-ad-layout-renderer"),_.H("design:type",HTMLElement)],wT.prototype,"inFeedAdLayoutRenderer",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],wT.prototype,"layout",null);_.L([_.bF("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wT.prototype,"onTypographyBumpChanged",null);_.L([_.bF("data.adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wT.prototype,"onAdSlotMetadataChanged",null);
_.L([_.y({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],wT);
_.G(wT,"ytd-ad-slot-renderer",function(){if(b54!==void 0)return b54;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return b54=B},{mode:_.sL("kevlar_poly_si_batch_j077")?
1:2});var KM3;var NP=function(){return _.z.apply(this,arguments)||this};
_.w(NP,_.z);_.a=NP.prototype;_.a.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"}}}};
_.a.maybeComputeHref=function(B){return _.T("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(B)};
_.a.onTap=function(){_.T("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&xX7(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.a.onThumbnailContainerClick=function(B){this.onClick(B)};
_.a.onClick=function(B){if(_.T("enable_handle_watch_endpoint_click_for_vdc")){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;x&&_.t(x,_.fN)&&(this.ytSparklesClickLocationBehavior.handleClick(x,B,!1),B.stopPropagation())}};
_.a.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var B=_.p(this.data.impressionUrls),c=B.next();!c.done;c=B.next())c=c.value,nHX(c,Kz7(c));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.T("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",NP.JSC$13517_DEFAULT_CLICK_LOCATION_BEHAVIOR,NP.JSC$13517_CLICK_LOCATION_ID_MAP),this.thumbnail&&(B=this.thumbnail.getElementsByTagName("a"),
B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href")))}};
_.a.attached=function(){var B=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.AJ.Object.defineProperties(NP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
NP.prototype.dataChanged=NP.prototype.dataChanged;NP.prototype.onTap=NP.prototype.onTap;NP.JSC$13517_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
NP.JSC$13517_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"}];_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.L([_.J(EU),_.H("design:type",Object)],NP.prototype,"ytdActiveViewBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],NP.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],NP.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],NP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.F({selector:_.SA}),_.H("design:type",Object)],NP.prototype,"isGridViewEnabled",void 0);_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],NP.prototype,"watchFeedBigThumbs",null);_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],NP.prototype,"thumbnailWidth",null);_.L([_.F(),_.H("design:type",Object)],NP.prototype,"data",void 0);
_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],NP.prototype,"thumbnail",void 0);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NP.prototype,"onTap",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NP.prototype,"dataChanged",null);_.L([_.y({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],NP);
_.G(NP,"ytd-compact-promoted-video-renderer",function(){if(KM3!==void 0)return KM3;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return KM3=B},{mode:1});var jaS;_.o2("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Ij=function(){return _.z.apply(this,arguments)||this};
_.w(Ij,_.z);Ij.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ij.prototype,"data",void 0);_.L([_.y({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Ij);
_.G(Ij,"ytd-search-pyv-renderer",function(){if(jaS!==void 0)return jaS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jaS=B},{mode:1});var UtI;_.o2("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var J8=function(){var B=_.z.apply(this,arguments)||this;B.roundedContainer=!0;B.JSC$13525_handleOpenPostCommentDialogActionAfterStamp=!1;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.w(J8,_.z);_.a=J8.prototype;
_.a.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}}};
_.a.onStampFinished=function(){this.JSC$13525_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){var B=_.Y9(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");B?B.openDialog():this.JSC$13525_handleOpenPostCommentDialogActionAfterStamp=!0};
_.a.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.a.computeHideBorder=function(){return this.isInEngagementPanel};
_.a.computeIsCompact=function(){return this.isInEngagementPanel};
_.a.computeUsesCompactLockup=function(B){return B==="BACKSTAGE_SURFACE_TYPE_HOME"||B==="BACKSTAGE_SURFACE_TYPE_SEARCH"||B==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||B==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||B==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||B==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.a.computeUsesFullLockup=function(){var B,c=(B=this.data)==null?void 0:B.post,x;B=(x=_.t(c,MXm))==null?void 0:x.surface;var P;x=(P=_.t(c,ZC3))==null?void 0:P.originalPost;var Y;if(P=B||((Y=_.t(x,MXm))==null?void 0:Y.surface))return!this.computeUsesCompactLockup(P)&&this.useUpdatedRepostUi;var g;return((g=_.t(c,ZC3))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.AJ.Object.defineProperties(J8.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var B,c;return((c=_.t((B=this.data)==null?void 0:B.post,MXm))==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.useUpdatedRepostUi}}});
J8.prototype.onYtCommentModerationPanelEmpty=J8.prototype.onYtCommentModerationPanelEmpty;J8.prototype.onStampFinished=J8.prototype.onStampFinished;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],J8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],J8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],J8.prototype,"roundedContainer",void 0);_.L([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],J8.prototype,"hideBorder",void 0);_.L([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],J8.prototype,"isCompact",void 0);
_.L([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.H("design:type",Boolean)],J8.prototype,"usesFullLockup",void 0);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J8.prototype,"onStampFinished",null);
_.L([_.nF("ytd-comment-moderation-panel-empty"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],J8.prototype,"onYtCommentModerationPanelEmpty",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],J8.prototype,"isInEngagementPanel",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],J8.prototype,"useUpdatedRepostUi",null);
_.L([_.y({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],J8);
_.G(J8,"ytd-backstage-post-thread-renderer",function(){if(UtI!==void 0)return UtI;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return UtI=B},{mode:1});var dtS;var WI=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(WI,_.z);WI.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
WI.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var B=this.data.thumbnail.thumbnails;this.isDarkTheme&&(B=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(B=_.Pw(B,24,void 0,"height"))?B:void 0}};
WI.prototype.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
WI.prototype.computeHasText=function(){var B;return!((B=this.data)==null||!B.text)};
_.AJ.Object.defineProperties(WI.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Tz(this.bannerImageUrl))+'");'}}});
WI.prototype.computeHasText=WI.prototype.computeHasText;WI.prototype.computeBannerImageUrl=WI.prototype.computeBannerImageUrl;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],WI.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],WI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],WI.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",String)],WI.prototype,"bannerImageUrl",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.H("design:type",Boolean)],WI.prototype,"hasText",void 0);_.L([_.bF("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WI.prototype,"computeBannerImageUrl",null);
_.L([_.bF("data.text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WI.prototype,"computeHasText",null);_.L([_.Q("bannerImageUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],WI.prototype,"bannerStyle",null);_.L([_.y({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],WI);
_.G(WI,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(dtS!==void 0)return dtS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return dtS=B},{mode:1});var qWZ;var lB=function(){return _.z.apply(this,arguments)||this};
_.w(lB,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lB.prototype,"data",void 0);_.L([_.y({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],lB);
_.G(lB,"ytd-backstage-zero-state-renderer",function(){if(qWZ!==void 0)return qWZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qWZ=B},{mode:1});var CwZ;var EJ=function(){return _.z.apply(this,arguments)||this};
_.w(EJ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],EJ.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],EJ.prototype,"icon",void 0);_.L([_.y({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],EJ);
_.G(EJ,"ytd-post-filter-zero-state-renderer",function(){if(CwZ!==void 0)return CwZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CwZ=B},{mode:1});var hj4;var mtt={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},OJ=function(){return _.z.apply(this,arguments)||this};
_.w(OJ,_.z);OJ.prototype.configureRendererStamper=function(){return mtt};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],OJ.prototype,"rendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OJ.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],OJ.prototype,"icon",void 0);_.L([_.y({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],OJ);
_.G(OJ,"ytd-post-scheduling-zero-state-renderer",function(){if(hj4!==void 0)return hj4;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hj4=B},{mode:1});var TId;var oj=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return B};
_.w(oj,_.z);oj.prototype.onTabsActivate=function(B){this.data&&this.data.tabs&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[B.detail.selected].navigationEndpoint})};
oj.prototype.shouldShowTotalCount=function(B){return B&&B.totalCount!==void 0};
oj.prototype.handleUpdatePostsTotalCountAction=function(B){var c=this.get(["data.tabs",1,"totalCount"]),x=this.get("updatePostsTotalCountAction.updateType",B);B=this.get("updatePostsTotalCountAction.number",B);c!==void 0&&x!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&B&&(x==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(c)+B):x==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(c)-B))};
_.AJ.Object.defineProperties(oj.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var B=0,c=this.data.tabs.length;B<c;B++)if(this.data.tabs[B].selected)return B;return 0}}});
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],oj.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oj.prototype,"rendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oj.prototype,"data",void 0);_.L([_.Q("data.tabs"),_.H("design:type",Number),_.H("design:paramtypes",[])],oj.prototype,"selected",null);_.L([_.y({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],oj);
_.G(oj,"ytd-post-stream-filter-renderer",function(){if(TId!==void 0)return TId;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return TId=B},{mode:1});var VyZ;var Qn=function(){return _.z.apply(this,arguments)||this};
_.w(Qn,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Qn.prototype,"kevlarBehaviors",void 0);_.L([_.F(),_.H("design:type",Object)],Qn.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Qn);
_.G(Qn,"ytd-channel-age-gate-renderer",function(){if(VyZ!==void 0)return VyZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return VyZ=B},{mode:1});var tyF;_.o2("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Fq=function(){var B=_.z.apply(this,arguments)||this;B.data=null;return B};
_.w(Fq,_.z);Fq.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.AJ.Object.defineProperties(Fq.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?0:(c=B.title)==null?0:(x=c.runs)==null?0:x.length)?147:160}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Fq.prototype,"imageSizePx",null);_.L([_.y({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Fq);
_.G(Fq,"ytd-channel-owner-empty-state-renderer",function(){if(tyF!==void 0)return tyF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return tyF=B},{mode:1});var w1m;var NIW;var vI=function(){var B=_.z.apply(this,arguments)||this;B.boundSubmitSearch=function(){B.submitSearch()};
B.boundClearSearch=function(){B.clearSearch()};
return B};
_.w(vI,_.z);_.a=vI.prototype;_.a.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]]"}}}}}};
_.a.toggleClearButton=function(){this.hideClearButton=qKl||!this.input.value};
_.a.submitOnEnterKeyUp=function(B){B.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.a.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.a.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.a.submit=function(){_.aJ(this.hostElement,"search-query-changed",this.input.value)};
vI.prototype.toggleClearButton=vI.prototype.toggleClearButton;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],vI.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vI.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],vI.prototype,"hideClearButton",void 0);_.L([_.F(),_.H("design:type",Object)],vI.prototype,"boundSubmitSearch",void 0);_.L([_.F(),_.H("design:type",Object)],vI.prototype,"boundClearSearch",void 0);_.L([_.jr("#input"),_.H("design:type",Object)],vI.prototype,"input",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vI.prototype,"toggleClearButton",null);
_.L([_.y({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],vI);
_.G(vI,"ytd-channel-switcher-search-box-renderer",function(){if(NIW!==void 0)return NIW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return NIW=B},{mode:1});var Io5;var zn=function(){var B=_.z.apply(this,arguments)||this;B.boundSubmit=function(){B.submit()};
return B};
_.w(zn,_.z);_.a=zn.prototype;_.a.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"}}}}};
_.a.ready=function(){var B=this;this.form.addEventListener("submit",function(c){return B.onSubmit(c)})};
_.a.onSubmit=function(B){B.preventDefault();return!1};
_.a.toggleClearButton=function(){this.hideClearButton=qKl||!this.input.value};
_.a.submitOnEnterKeyUp=function(B){B.keyCode===13&&this.submit()};
_.a.submit=function(){var B=this.data.endpoint,c=(0,_.wW.unsafeClone)(B);_.t(c,_.qA)?_.t(c,_.qA).query=this.input.value:_.t(c,_.Cr)&&(_.t(c,_.Cr).query=this.input.value);var x=_.t(c.commandMetadata,_.Br);(x==null?0:x.url)?(x.url=_.FU(x.url,"query",this.input.value),_.aJ(this.hostElement,"yt-navigate",{endpoint:c})):_.t(c,tXZ)?(_.t(c,tXZ).channelSwitcherQuery=this.input.value,_.cp().resolve(_.xu).resolveCommand(c,{form:{element:this.hostElement}})):(B=Error("Mh`"+JSON.stringify(B)),_.lb(B))};
_.a.getUrl=function(B){return this.get("commandMetadata.webCommandMetadata.url",B)};
zn.prototype.toggleClearButton=zn.prototype.toggleClearButton;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],zn.prototype,"hideClearButton",void 0);
_.L([_.F(),_.H("design:type",Object)],zn.prototype,"boundSubmit",void 0);_.L([_.jr("#form"),_.H("design:type",HTMLFormElement)],zn.prototype,"form",void 0);_.L([_.jr("#input"),_.H("design:type",Object)],zn.prototype,"input",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zn.prototype,"toggleClearButton",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],zn);
_.G(zn,"ytd-search-box-renderer",function(){if(Io5!==void 0)return Io5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Io5=B},{mode:2});var SY=function(){var B=_.z.apply(this,arguments)||this;B.showSearchBox=!0;return B};
_.w(SY,_.z);SY.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],SY.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],SY.prototype,"showSearchBox",void 0);_.L([_.y({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],SY);
_.G(SY,"ytd-channel-switcher-header-renderer",function(){if(w1m!==void 0)return w1m;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return w1m=B},{mode:1});var JQS;var WMy;var yn=function(){var B=_.z.apply(this,arguments)||this;B.isDisplayed=!0;return B};
_.w(yn,_.z);_.a=yn.prototype;_.a.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.dataChanged=function(){this.isDisplayed=!0};
_.a.computeType=function(B){return B||"UNKNOWN"};
_.a.onYtServiceRequestCompleted=function(B){B.stopPropagation();this.isDisplayed=!1};
_.a.onClose=function(){this.isDisplayed=!1};
yn.prototype.onYtServiceRequestCompleted=yn.prototype.onYtServiceRequestCompleted;yn.prototype.dataChanged=yn.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yn.prototype,"data",void 0);
_.L([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.H("design:type",String)],yn.prototype,"type",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yn.prototype,"isDisplayed",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yn.prototype,"dataChanged",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yn.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],yn);
_.G(yn,"ytd-alert-with-button-renderer",function(){if(WMy!==void 0)return WMy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WMy=B},{mode:1});var Gn=function(){var B=_.z.apply(this,arguments)||this;B.noResult=!1;B.enableAlertBanner=!1;B.dismissedAlertBanner=!1;B.hideCreateChannelButton=!1;B.boundDismissAlertBanner=function(){B.dismissAlertBanner()};
B.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return B};
_.w(Gn,_.z);_.a=Gn.prototype;_.a.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.a.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.a.updateChannelSwitcherAction=function(B){var c;B=(c=_.t(B,g7t))==null?void 0:c.page;_.t(B,aDZ)!==void 0&&(this.data=_.t(B,aDZ))};
_.a.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]]"}}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.a.searchQueryChanged=function(B,c){if(this.data&&this.data.contents&&this.data.contents.length){B=[];var x=[];this.hideCreateChannelButton=this.noResult=!1;for(var P=document.querySelectorAll("ytd-account-item-renderer"),Y=_.p(P),g=Y.next();!g.done;g=Y.next())g=g.value,x.push(g),g.style.display="block";this.resetRightBorder(x);if(c){this.hideCreateChannelButton=!0;for(x=1;x<this.data.contents.length;x++)if(g=this.data.contents[x],_.t(g,mbI)){var k=void 0,n=void 0;Y=(k=_.t(g,mbI))==null?void 0:(n=
k.accountName)==null?void 0:n.simpleText;n=k=void 0;g=(k=_.t(g,mbI))==null?void 0:(n=k.channelHandle)==null?void 0:n.simpleText;(k=P[x-1])&&Y&&_.nx(Y,c)?B.push(k):_.T("enable_handle_search_on_channel_switcher")&&k&&g&&_.nx(g.toString(),c.toString())?B.push(k):k.style.display="none"}B.length===0&&(this.noResult=!0);this.resetRightBorder(B)}}};
_.a.resetRightBorder=function(B){for(var c=0;c<B.length;c++)B[c].style.borderRight=!this.hideCreateChannelButton&&(c+2)%3===0||this.hideCreateChannelButton&&(c+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.a.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.a.setShowSearchBox=function(B){if(B&&B.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var c=0;c<B.contents.length;c++)_.t(B.contents[c],_.sB)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.a.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.AJ.Object.defineProperties(Gn.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null?0:B.contents)}}});
Gn.prototype.onContinuationItemsUpdated=Gn.prototype.onContinuationItemsUpdated;Gn.prototype.searchQueryChanged=Gn.prototype.searchQueryChanged;Gn.prototype.onDataChanged=Gn.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Gn.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],Gn.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Gn.prototype,"data",void 0);_.L([_.jr("ytd-channel-switcher-header-renderer"),_.H("design:type",Object)],Gn.prototype,"channelSwitcherHeaderRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],Gn.prototype,"noResult",void 0);
_.L([_.F(),_.H("design:type",Object)],Gn.prototype,"enableAlertBanner",void 0);_.L([_.F(),_.H("design:type",Object)],Gn.prototype,"dismissedAlertBanner",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Gn.prototype,"hideCreateChannelButton",void 0);_.L([_.Q("data.contents"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Gn.prototype,"isLoading",null);_.L([_.F(),_.H("design:type",Object)],Gn.prototype,"boundDismissAlertBanner",void 0);
_.L([_.F({computed:"computeButtonOverride()"}),_.H("design:type",Object)],Gn.prototype,"buttonOverride",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gn.prototype,"onDataChanged",null);_.L([_.nF("search-query-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],Gn.prototype,"searchQueryChanged",null);
_.L([_.nF("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Gn.prototype,"onContinuationItemsUpdated",null);_.L([_.y({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Gn);
_.G(Gn,"ytd-channel-switcher-page-renderer",function(){if(JQS!==void 0)return JQS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return JQS=B},{mode:1});var loW;var EK0;var MP=function(){var B=_.z.apply(this,arguments)||this;B.images=[];B.selectedImageIndex=0;return B};
_.w(MP,_.z);_.a=MP.prototype;
_.a.ready=function(){_.wX(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.wX(this.JSC$13570_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.wX(this.JSC$13570_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.wX(this.JSC$13570_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.a.onThumbnailClick=function(B){if(B=B.event_.detail)this.selectedImageIndex=this.images.indexOf(B)};
_.a.updateImageThumbnails=function(B){B=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:B.event_.detail});this.images.splice(this.selectedImageIndex,1,B);this.images=[].concat(_.wq(this.images))};
_.a.cancelImageRepositions=function(){this.selectedImageIndex=0;_.aJ(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.a.saveImageRepositions=function(){this.selectedImageIndex=0;_.aJ(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.AJ.Object.defineProperties(MP.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var B=this;return(this.images||[]).map(function(c,x){return{image:c,selected:x===B.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("ytd-backstage-image-preview-renderer"),_.H("design:type",Object)],MP.prototype,"JSC$13570_imagePreviewContainer",void 0);_.L([_.jr(".thumbnail-images-container"),_.H("design:type",HTMLElement)],MP.prototype,"thumbnailImagesContainer",void 0);_.L([_.F(),_.H("design:type",Array)],MP.prototype,"images",void 0);
_.L([_.F(),_.H("design:type",Object)],MP.prototype,"repositionInstructions",void 0);_.L([_.F(),_.H("design:type",Object)],MP.prototype,"selectedImageIndex",void 0);_.L([_.Q("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],MP.prototype,"thumbnailRendererDatas",null);_.L([_.Q("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],MP.prototype,"selectedImageData",null);
_.L([_.y({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],MP);
_.G(MP,"ytd-backstage-multi-image-reposition-renderer",function(){if(EK0!==void 0)return EK0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EK0=B},{mode:1});var LM=function(B,c){_.V4.call(this);this.uploadUrl=B;this.channelId=c;this.imagesUploadData=[]};
_.w(LM,_.V4);LM.prototype.getAllUploadStatuses=function(){var B=this,c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,O54(B),2);c=Y.yieldResult;x=c.get("succeed");P=c.get("failed");return Y.return(x.concat(P))})};
var Qat=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,O54(B),2);c=P.yieldResult;x=c.get("failed");x.length>0&&oKQ(B,x);return P.return(B.getAllUploadStatuses())})},O54=function(B){var c,x,P,Y,g,k,n;
return _.X(function(b){if(b.nextAddress==1)return c=new Map,_.K(b,Promise.allSettled(B.imagesUploadData.map(function(d){return d.uploadPromise})),2);
x=b.yieldResult;P=[];Y=_.p(x);for(g=Y.next();!g.done;g=Y.next())k=g.value,k.status==="fulfilled"&&P.push(k.value);n=B.imagesUploadData.map(function(d){return d.image}).filter(function(d){return P.every(function(q){return q.id!==d.id})});
c.set("succeed",P);c.set("failed",n);return b.return(c)})},oKQ=function(B,c){c=_.p(c);
for(var x=c.next();!x.done;x=c.next()){var P=B;x=x.value;FM3(P,x.id)>=0&&P.cancel(x.id);var Y=new vK5(x),g=_.ket(P.uploadUrl,{"X-YouTube-ChannelId":P.channelId},x.imageBlob);Y.transfer=g;Y.uploadPromise=zjS(g,x);P.imagesUploadData.push(Y);g.run()}};
LM.prototype.cancel=function(B){var c=FM3(this,B);c!==-1&&((c=this.imagesUploadData[c].transfer)&&c.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(x){return x.image.id!==B}))};
var FM3=function(B,c){return B.imagesUploadData.findIndex(function(x){return x.image.id===c})},zjS=function(B,c){return new Promise(function(x,P){B.listen("l",function(){var Y=B.getResponseText();
Y?(Y=JSON.parse(Y).encryptedBlobId,c.encryptedBlobId=Y,x(c)):P("upload failed")});
B.listen("n",function(){P("upload failed")})})},vK5=function(B){this.image=B};var lbq=function(B,c,x,P,Y){this.id=B;this.imageBlob=c;this.localImageSrc=x;this.naturalWidth=P;this.naturalHeight=Y;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var SWd=[".jpeg",".jpg",".png"],ZC=function(){var B=_.z.apply(this,arguments)||this;B.showImagesPreview=!1;B.pollOptions=[];B.errorMessage="";B.optionPlaceholderText="";B.optionDefaultText="";B.JSC$13581_imageId=0;B.maxFileSizeMb=0;B.maxAspectRatio=0;B.invalidFileSizeError="";B.invalidAspectRatioError="";B.invalidFileTypeError="";B.imageSelector=new KV(null,"single_file",SWd);return B};
_.w(ZC,_.z);_.a=ZC.prototype;_.a.ready=function(){_.wX(this.imageSelector,"j",this.onImageSelect,!1,this);_.wX(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.wX(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.a.dataChanged=function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.cellTemplate)==null?void 0:c.onEmptyCellTap,aW9);if(x&&x.uploadUrl&&x.channelId){var P;this.maxFileSizeMb=((P=x.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0;var Y;this.maxAspectRatio=((Y=x.imageValidationInfo)==null?void 0:Y.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var k;this.invalidAspectRatioError=this.getSimpleString((k=this.data)==
null?void 0:k.invalidAspectRatioError);var n;this.invalidFileTypeError=this.getSimpleString((n=this.data)==null?void 0:n.invalidFileTypeError);this.uploadManager=new LM(x.uploadUrl,x.channelId)}};
_.a.onEditorInfoChange=function(){this.optionPlaceholderText=_.iG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.iG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.a.observeAddImageError=function(){this.errorMessage!==""&&_.aJ(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.a.onPollOptionsChange=function(){for(var B=!1,c=[],x=0;x<this.pollOptions.length;x++){var P=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(x+1);this.pollOptions[x].placeholderText!==P?(B=!0,c.push(Object.assign({},this.pollOptions[x],{placeholderText:P}))):c.push(this.pollOptions[x])}B&&(this.pollOptions=c);this.isValid()?_.aJ(this.hostElement,"yt-commentbox-post-enable"):_.aJ(this.hostElement,"yt-commentbox-post-disable")};
_.a.createPollOptions=function(B){var c=[],x;B=(x=B==null?void 0:B.minPollOptions)!=null?x:0;for(x=0;x<B;x++)c.push(this.createPollOption());return c};
_.a.onImageSelect=function(B){var c=this,x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1){if(c.selectedImageIndex===void 0)return b.jumpTo(0);x=B.files[0];c.errorMessage="";P=c.validateImage(x);if(P!=="")return c.errorMessage=P,b.return();Y=new A3(c.maxAspectRatio,!1,!0);return _.K(b,Y.transform(x),3)}if(b.nextAddress!=4)return g=b.yieldResult,g.transformedData?g.invalidAspectRatio?(c.errorMessage=c.invalidAspectRatioError,b.return()):_.K(b,EoY(c.JSC$13581_imageId,B.files[0],g.transformedData),
4):(c.errorMessage=c.invalidFileTypeError,b.return());k=b.yieldResult;c.JSC$13581_imageId++;oKQ(c.uploadManager,[k]);n=Object.assign({},c.pollOptions[c.selectedImageIndex],{image:k});c.pollOptions.splice(c.selectedImageIndex,1,n);c.refreshPollOptions();_.aJ(c.hostElement,"yt-backstage-poll-image-select");_.Kq(b)})};
_.a.validateImage=function(B){return B.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.a.refreshPollOptions=function(){this.pollOptions=[].concat(_.wq(this.pollOptions))};
_.a.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.wq(this.pollOptions),[this.createPollOption()]))};
_.a.onRemovePollOption=function(B){var c=this.pollOptions[B.model.index];c&&c.image&&this.uploadManager.cancel(c.image.id);this.pollOptions.splice(B.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.aJ(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.a.onTextInput=function(){this.refreshPollOptions()};
_.a.onImageButtonClick=function(B){this.selectedImageIndex=B.model.index;this.imageSelector.click()};
_.a.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.a.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.a.saveImageRepositions=function(B){B=B.event_.detail;for(var c=0,x=[],P=_.p(this.pollOptions),Y=P.next();!Y.done;Y=P.next())Y=Y.value,Y.image!==void 0?(Y=Object.assign({},Y,{image:B[c]}),x.push(Y),c++):x.push(Y);this.showImagesPreview=!1;this.pollOptions=[].concat(_.wq(x))};
_.a.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 B=0,c=_.p(this.pollOptions),x=c.next();!x.done;x=c.next())if(x=x.value,x.optionText.trim()!==""||x.image!==void 0){if(!x.image||this.hasCustomOptionText&&x.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;B++}return B>=Number(this.editorInfo.minPollOptions)};
_.a.getAllUploadStatuses=function(){var B=this,c,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.uploadManager.getAllUploadStatuses(),2);c=g.yieldResult;x=_.p(c);for(P=x.next();!P.done;P=x.next())if(Y=P.value,Y.encryptedBlobId===void 0)return g.return(Qat(B.uploadManager));return g.return(c)})};
_.a.getPostCreateOptions=function(){for(var B=[],c=_.p(this.pollOptions),x=c.next();!x.done;x=c.next())x=x.value,x.image!==void 0&&B.push({text:this.hasCustomOptionText?x.optionText:x.placeholderText,image:x.image});return B};
_.a.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.a.createButtonRenderer=function(B,c){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:B,accessibilityData:{accessibilityData:{label:this.getSimpleString(B)}},isDisabled:c}};
_.a.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.a.computeThumbnailRendererData=function(B){return B?{image:B,selected:!1}:void 0};
_.a.getSimpleString=function(B){return _.iG(B)};
_.a.updateOptionTextFromBinding=function(B){if(B.target){var c=Array.from(_.Y9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(B.target);if(c>=0){var x;this.pollOptions[c].optionText=(x=B.detail.value)!=null?x:""}}};
_.AJ.Object.defineProperties(ZC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var B,c;return this.pollOptions.length<((c=(B=this.editorInfo)==null?void 0:B.maxPollOptions)!=null?c:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(B){return B.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(B){return B.image}).map(function(B){return B.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(B){return B.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.data)==null?void 0:B.addOptionButtonText;return c?this.createButtonRenderer(c,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.data)==null?void 0:B.repositionImagesButtonLabel;return c?this.createButtonRenderer(c,!this.hasImages):void 0}}});
ZC.prototype.onPollOptionsChange=ZC.prototype.onPollOptionsChange;ZC.prototype.observeAddImageError=ZC.prototype.observeAddImageError;ZC.prototype.onEditorInfoChange=ZC.prototype.onEditorInfoChange;ZC.prototype.dataChanged=ZC.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("ytd-backstage-multi-image-reposition-renderer"),_.H("design:type",Object)],ZC.prototype,"imageRepositionContainer",void 0);
_.L([_.F(),_.H("design:type",Object)],ZC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],ZC.prototype,"editorInfo",void 0);_.L([_.F(),_.H("design:type",LM)],ZC.prototype,"uploadManager",void 0);_.L([_.F(),_.H("design:type",Object)],ZC.prototype,"showImagesPreview",void 0);_.L([_.F(),_.H("design:type",Array)],ZC.prototype,"pollOptions",void 0);_.L([_.F(),_.H("design:type",Object)],ZC.prototype,"errorMessage",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"dataChanged",null);_.L([_.CF("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"onEditorInfoChange",null);_.L([_.bF("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"observeAddImageError",null);
_.L([_.CF("pollOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"onPollOptionsChange",null);_.L([_.Q("pollOptions","editorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"isAllowedToAddOption",null);_.L([_.Q("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"hasImages",null);
_.L([_.Q("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"imagesToReposition",null);_.L([_.Q("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"hasCustomOptionText",null);_.L([_.Q("data","isAllowedToAddOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"addOptionButton",null);_.L([_.Q("data","hasImages"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZC.prototype,"repositionImagesButton",null);
_.L([_.y({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ZC);
_.G(ZC,"ytd-backstage-image-poll-editor-renderer",function(){if(loW!==void 0)return loW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return loW=B},{mode:2});var yQS={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 G0W;var HI=function(){var B=_.z.apply(this,arguments)||this;B.a11yConfig=yQS;B.imageDisplayOffsetTop=0;B.imageDisplayOffsetLeft=0;B.pickerDisplayOffsetTop=0;B.pickerDisplayOffsetLeft=0;B.showPreviewContainer=!0;B.startPicker=!1;B.repositionOptional=!1;B.editOnlyMode=!1;B.savedImageDisplayOffsetTop=0;B.savedImageDisplayOffsetLeft=0;return B};
_.w(HI,_.z);_.a=HI.prototype;_.a.created=function(){_.Mk.requestAvailability()};
_.a.ready=function(){};
_.a.onArrowKeysDown=function(B){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){B.detail.keyboardEvent.preventDefault();var c=0,x=0,P="";switch(B.detail.keyboardEvent.key){case "ArrowUp":OhC(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":OhC(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":OhC(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:x=this.imageWidth*.05*-1;break;case "ArrowRight":OhC(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:x=this.imageWidth*.05}P&&_.Up(P)&&_.aJ(this.hostElement,"iron-announce",{text:_.Up(P)});if(x||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),B=_.Up(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+x)),B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),B=_.Up(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})),B&&_.aJ(this.hostElement,"iron-announce",{text:B})}};
_.a.getPreviewPosition=function(B,c,x,P){return Math.round(100*(B+c*.5-x)/P)};
_.a.calculateDisplayPosition=function(){var B=this.imageData.naturalWidth,c=this.imageData.naturalHeight;this.displayScale=Math.max(200/B,200/c);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var x=B*this.displayScale*this.imageData.previewCoordinates.left,P=c*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=c>B?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-x;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=B>c?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-P;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=B*this.displayScale;this.imageHeight=c*this.displayScale};
_.a.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.a.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.a.getSignedPosition=function(B,c,x){return c==="X"&&_.v5("HTML_DIR")==="rtl"?x==="-"?B+"px":B*-1+"px":x==="-"?B*-1+"px":B+"px"};
_.a.pickerMove=function(B){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-B.clientX,x=this.pickerOffsetY-B.clientY;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
x)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.a.pickerMoveStart=function(B){this.startPicker=!0;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY};
_.a.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var B=this.generateCropPreview();B&&_.aJ(this.hostElement,"ytd-backstage-image-preview-coordinates-update",B)};
_.a.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.aJ(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.a.deleteImage=function(){_.aJ(this.hostElement,"ytd-backstage-image-preview-delete")};
_.a.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.a.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var B=this.generateCropPreview();B&&_.aJ(this.hostElement,"ytd-backstage-image-preview-coordinates-save",B)};
_.a.getPreviewOffset=function(B,c,x){return c&&B?(x==="X"&&_.v5("HTML_DIR")==="rtl"?300/c*B:300/c*B*-1)+"px":"0px"};
_.a.getSimpleText=function(B){return B?_.iG(B):""};
_.a.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}};
_.AJ.Object.defineProperties(HI.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Up(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Up(this.a11yConfig.verticalRepositionInstruction)}B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Up(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Up(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 B,c,x=(B=this.instruction)==null?void 0:(c=B.previewInstruction)==null?void 0:c.editButtonLabel;return x?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y=this.editOnlyMode?(B=this.instruction)==null?void 0:(c=B.editInstruction)==null?void 0:c.saveImagesButtonLabel:(x=this.instruction)==null?void 0:(P=x.editInstruction)==null?void 0:P.saveButtonLabel;return Y?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.instruction)==null?void 0:(c=B.previewInstruction)==null?void 0:c.deleteButtonLabel;return x?{size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.instruction)==null?void 0:(c=B.editInstruction)==null?void 0:c.cancelButtonLabel;B=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return x?{style:B,size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}: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"}}});
HI.prototype.onEditOnlyModeUpdate=HI.prototype.onEditOnlyModeUpdate;HI.prototype.onImageChange=HI.prototype.onImageChange;_.L([_.F(),_.H("design:type",lbq)],HI.prototype,"imageData",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"instruction",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"a11yConfig",void 0);_.L([_.F(),_.H("design:type",Number)],HI.prototype,"imageWidth",void 0);_.L([_.F(),_.H("design:type",Number)],HI.prototype,"imageHeight",void 0);
_.L([_.F(),_.H("design:type",Number)],HI.prototype,"displayScale",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"imageDisplayOffsetTop",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"showPreviewContainer",void 0);
_.L([_.F(),_.H("design:type",Object)],HI.prototype,"startPicker",void 0);_.L([_.F(),_.H("design:type",Number)],HI.prototype,"pickerOffsetX",void 0);_.L([_.F(),_.H("design:type",Number)],HI.prototype,"pickerOffsetY",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"repositionOptional",void 0);_.L([_.F(),_.H("design:type",Object)],HI.prototype,"editOnlyMode",void 0);_.L([_.jr("#picker-container"),_.H("design:type",HTMLElement)],HI.prototype,"JSC$13594_pickerContainer",void 0);
_.L([_.jr("#picker"),_.H("design:type",HTMLElement)],HI.prototype,"picker",void 0);_.L([_.jr("#preview-clipper"),_.H("design:type",HTMLElement)],HI.prototype,"previewClipper",void 0);_.L([_.jr("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],HI.prototype,"JSC$13594_imageInBackground",void 0);_.L([_.jr("#image-in-picker"),_.H("design:type",HTMLImageElement)],HI.prototype,"JSC$13594_imageInPicker",void 0);
_.L([_.jr("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],HI.prototype,"JSC$13594_imageInPreviewClipper",void 0);_.L([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"altLabelForImage",null);_.L([_.Q("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],HI.prototype,"pickerSize",null);
_.L([_.Q("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],HI.prototype,"imageOrientationStyle",null);_.L([_.Q("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],HI.prototype,"editButton",null);_.L([_.Q("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],HI.prototype,"saveButton",null);_.L([_.Q("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],HI.prototype,"deleteButton",null);
_.L([_.Q("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],HI.prototype,"cancelButton",null);_.L([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],HI.prototype,"cropOffsetTop",null);_.L([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],HI.prototype,"cropOffsetLeft",null);
_.L([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"pickerBackgroundStyle",null);_.L([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"pickerDisplayStyle",null);_.L([_.Q("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"imageInPickerStyle",null);
_.L([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"previewClipperStyle",null);_.L([_.CF("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HI.prototype,"onImageChange",null);_.L([_.CF("editOnlyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HI.prototype,"onEditOnlyModeUpdate",null);
_.L([_.Q("showPreviewContainer"),_.H("design:type",String),_.H("design:paramtypes",[])],HI.prototype,"pickerModeStyle",null);_.L([_.y({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],HI);
_.G(HI,"ytd-backstage-image-preview-renderer",function(){if(G0W!==void 0)return G0W;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return G0W=B},{mode:1});var Myt;var LM3={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 Z50;var H5t;var fM=function(){var B=_.z.apply(this,arguments)||this;B.a11yConfig=LM3;B.imageDisplayOffsetTop=0;B.imageDisplayOffsetLeft=0;B.pickerDisplayOffsetTop=0;B.pickerDisplayOffsetLeft=0;B.cropCoordinatesSaved=!1;B.previewSize=0;B.startPicker=!1;B.repositionOptional=!1;return B};
_.w(fM,_.z);_.a=fM.prototype;_.a.created=function(){_.Mk.requestAvailability()};
_.a.ready=function(){};
_.a.onArrowKeysDown=function(B){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){B.detail.keyboardEvent.preventDefault();var c=0,x=0,P="";switch(B.detail.keyboardEvent.key){case "ArrowUp":ooX(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":ooX(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":ooX(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:x=this.imageWidth*.05*-1;break;case "ArrowRight":ooX(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:x=this.imageWidth*.05}P&&_.Up(P)&&_.aJ(this.hostElement,"iron-announce",{text:_.Up(P)});if(x||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),B=_.Up(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+x)),B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),B=_.Up(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})),B&&_.aJ(this.hostElement,"iron-announce",{text:B})}};
_.a.getPreviewPosition=function(B,c,x,P){return Math.round(100*(B+c*.5-x)/P)};
_.a.displayImage=function(){var B=this.JSC$13605_pickerContainer.getBoundingClientRect().width,c=this.JSC$13605_pickerContainer.getBoundingClientRect().height,x=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),P=this.JSC$13605_imageInBackground.naturalWidth,Y=this.JSC$13605_imageInBackground.naturalHeight;this.displayScale=Math.max(x/P,x/Y);this.imageWidth=P*this.displayScale;this.imageHeight=Y*this.displayScale;this.pickerDisplayOffsetLeft=(B-x)/2;this.pickerDisplayOffsetTop=
(c-x)/2;this.imageDisplayOffsetLeft=Y>P?this.pickerDisplayOffsetLeft:(B-this.imageWidth)/2;this.imageDisplayOffsetTop=P>Y?this.pickerDisplayOffsetTop:(c-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.a.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13605_imageInBackground.src=this.imageData.toString(),this.JSC$13605_imageInPicker.src=this.imageData.toString(),this.JSC$13605_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.a.getSignedPosition=function(B,c,x){return c==="X"&&_.v5("HTML_DIR")==="rtl"?x==="-"?B+"px":B*-1+"px":x==="-"?B*-1+"px":B+"px"};
_.a.pickerMove=function(B){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-B.clientX,x=this.pickerOffsetY-B.clientY;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
x)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.a.pickerMoveStart=function(B){this.startPicker=!0;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY};
_.a.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.a.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.aJ(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.a.getPreviewOffset=function(B,c,x,P){return c&&B&&x?(P==="X"&&_.v5("HTML_DIR")==="rtl"?x/c*B:x/c*B*-1)+"px":"0px"};
_.a.getSimpleText=function(B){return B?_.iG(B):""};
_.a.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var B=this.cropOffsetTop/this.imageHeight,c=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,x=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,P=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Y9(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.aJ(this.hostElement,"yt-img-crop-coordinates-update",{top:B,right:c,bottom:x,left:P})}};
_.AJ.Object.defineProperties(fM.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Up(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Up(this.a11yConfig.verticalRepositionInstruction)}B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Up(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Up(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 B,c=(B=this.learnMore.runs[0])==null?void 0:B.navigationEndpoint,x;return((x=_.t(c,_.yp))==null?void 0:x.url)||void 0}}}});
fM.prototype.onImageDataChange=fM.prototype.onImageDataChange;_.L([_.F(),_.H("design:type",Object)],fM.prototype,"imageData",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"instruction",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"a11yConfig",void 0);_.L([_.F(),_.H("design:type",Number)],fM.prototype,"imageWidth",void 0);_.L([_.F(),_.H("design:type",Number)],fM.prototype,"imageHeight",void 0);_.L([_.F(),_.H("design:type",Number)],fM.prototype,"displayScale",void 0);
_.L([_.F(),_.H("design:type",Object)],fM.prototype,"imageDisplayOffsetTop",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"cropCoordinatesSaved",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"previewSize",void 0);
_.L([_.F(),_.H("design:type",Object)],fM.prototype,"startPicker",void 0);_.L([_.F(),_.H("design:type",Number)],fM.prototype,"pickerOffsetX",void 0);_.L([_.F(),_.H("design:type",Number)],fM.prototype,"pickerOffsetY",void 0);_.L([_.F(),_.H("design:type",Object)],fM.prototype,"repositionOptional",void 0);_.L([_.jr("#picker-container"),_.H("design:type",HTMLElement)],fM.prototype,"JSC$13605_pickerContainer",void 0);_.L([_.jr("#picker"),_.H("design:type",HTMLElement)],fM.prototype,"picker",void 0);
_.L([_.jr("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],fM.prototype,"JSC$13605_imageInBackground",void 0);_.L([_.jr("#image-in-picker"),_.H("design:type",HTMLImageElement)],fM.prototype,"JSC$13605_imageInPicker",void 0);_.L([_.jr("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],fM.prototype,"JSC$13605_imageInPreviewClipper",void 0);_.L([_.jr("#full-image-as-preview"),_.H("design:type",HTMLImageElement)],fM.prototype,"imageAsPreview",void 0);
_.L([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"altLabelForImage",null);_.L([_.Q("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],fM.prototype,"pickerSize",null);_.L([_.Q("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],fM.prototype,"imageOrientationStyle",null);
_.L([_.Q("instruction.previewInstruction.editButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],fM.prototype,"editButton",null);_.L([_.Q("instruction.editInstruction.saveButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],fM.prototype,"saveButton",null);_.L([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],fM.prototype,"cropOffsetTop",null);
_.L([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],fM.prototype,"cropOffsetLeft",null);_.L([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"pickerBackgroundStyle",null);_.L([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"pickerDisplayStyle",null);
_.L([_.Q("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"imageInPickerStyle",null);_.L([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"previewClipperStyle",null);_.L([_.bF("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fM.prototype,"onImageDataChange",null);
_.L([_.Q("cropCoordinatesSaved"),_.H("design:type",String),_.H("design:paramtypes",[])],fM.prototype,"pickerModeStyle",null);_.L([_.Q("instruction.editInstruction.learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],fM.prototype,"learnMore",null);_.L([_.Q("learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],fM.prototype,"learnMoreUrl",null);_.L([_.Em({is:"yt-img-crop-picker",disableElementRegistration:!0})],fM);
_.G(fM,"yt-img-crop-picker",function(){if(H5t===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Z50===void 0&&(Z50=document.createElement("template"));var P=Z50;x.call(c,P.content.cloneNode(!0),B.content.firstChild);H5t=B}B=H5t;return B},{mode:2});var iB=function(){var B=_.z.apply(this,arguments)||this;B.errorMessage="";B.hasPreview=!1;B.isBackstagePost=!1;B.dismissButtonOverrides={size:"XS"};return B};
_.w(iB,_.z);_.a=iB.prototype;_.a.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"}}}};
_.a.detached=function(){this.removeOverlay()};
_.a.setPreview=function(B){_.Y9(this.hostElement).querySelector("#preview-picker").imageData=B;this.hasPreview=!0;_.aJ(this.hostElement,"yt-backstage-image-select-preview")};
_.a.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var B=_.Y9(this.hostElement).querySelector("#dropzone");B.classList.remove("dragover");B.classList.remove("error");_.aJ(this.hostElement,"yt-backstage-image-select-cancel")};
_.a.setupOverlay=function(){var B=this.imageUploadEndpoint;this.removeOverlay();if(B&&B.imageValidationInfo){var c=_.Y9(this.hostElement).querySelector("#dropzone"),x=_.Y9(this.hostElement).querySelector("#select");this.overlay=new DY(B.uploadUrl,B.channelId,B.imageValidationInfo.maxFileSizeMb,B.imageValidationInfo.allowedMaxAspectRatio,c,x,!0);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.a.removeOverlay=function(){this.overlay&&(_.Ti(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Ti(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Ti(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Ti(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Ti(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.a.onDragOver=function(B){var c=_.Y9(this.hostElement).querySelector("#dropzone");_.gM(c,"dragover",B.value)};
_.a.onPreview=function(B){this.setPreview(B.value)};
_.a.onImageError=function(B){if(B.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var c;B=(c=this.data)==null?void 0:c.fileSizeError}else if(B.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var x;B=(x=this.data)==null?void 0:x.invalidError}else if(B.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var P;B=(P=this.data)==null?void 0:P.invalidAspectRatioError}else return;this.errorMessage=_.iG(B);_.Y9(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.a.onImageAlert=function(B){this.onImageError(B)};
_.a.uploadPromise=function(){var B=this,c=this.overlay&&this.overlay.uploadPromise();if(c)return c.catch(function(){throw Error(B.data?_.iG(B.data.uploadFailureError):"");})};
_.AJ.Object.defineProperties(iB.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var B,c;if((B=this.data)==null?0:(c=B.icon)==null?0:c.iconType)return _.$0(this.data.icon.iconType)}}});
iB.prototype.setupOverlay=iB.prototype.setupOverlay;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],iB.prototype,"rendererStamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iB.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],iB.prototype,"imageUploadEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],iB.prototype,"errorMessage",void 0);
_.L([_.F(),_.H("design:type",DY)],iB.prototype,"overlay",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iB.prototype,"hasPreview",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iB.prototype,"isBackstagePost",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iB.prototype,"selectionCancel",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iB.prototype,"previewCancel",null);
_.L([_.Q("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],iB.prototype,"icon",null);_.L([_.F(),_.H("design:type",Object)],iB.prototype,"dismissButtonOverrides",void 0);_.L([_.bF("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iB.prototype,"setupOverlay",null);_.L([_.y({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],iB);
_.G(iB,"ytd-backstage-image-select-renderer",function(){if(Myt!==void 0)return Myt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Myt=B},{mode:1});var fon;var i5d;var A8=function(){var B=_.z.apply(this,arguments)||this;B.selected=!1;return B};
_.w(A8,_.z);_.a=A8.prototype;_.a.computeSelected=function(B){return B==null?void 0:B.selected};
_.a.computeTransform=function(B,c,x){var P,Y,g=(Y=(P=this.imageContainer)==null?void 0:P.getBoundingClientRect())!=null?Y:{width:0,height:0};P=Math.max(g.width/c,g.height/x);x=x*P*B.top;return"translateX("+this.getSignedPosition(c*P*B.left,"X","-")+") translateY("+this.getSignedPosition(x,"Y","-")+")"};
_.a.getSignedPosition=function(B,c,x){return c==="X"&&_.v5("HTML_DIR")==="rtl"?x==="-"?B+"px":B*-1+"px":x==="-"?B*-1+"px":B+"px"};
_.a.onClick=function(){var B;_.aJ(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(B=this.data)==null?void 0:B.image)};
_.a.onKeyPress=function(B){if(B.keyCode===13)this.onClick()};
_.AJ.Object.defineProperties(A8.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.image)==null?void 0:c.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.image){var c;B=(c=this.data)==null?void 0:c.image;return B.previewCoordinates.top!==0||B.previewCoordinates.left!==0?(c=this.computeTransform(B.previewCoordinates,B.naturalWidth,B.naturalHeight),B.naturalHeight>=B.naturalWidth?"width:inherit;transform:"+c+";":"height:inherit;transform:"+c+";"):B.naturalHeight>=B.naturalWidth?"width:inherit;":"height:inherit;"}}}});
A8.prototype.onKeyPress=A8.prototype.onKeyPress;_.L([_.jr(".image-container"),_.H("design:type",HTMLElement)],A8.prototype,"imageContainer",void 0);_.L([_.F(),_.H("design:type",Object)],A8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.H("design:type",Object)],A8.prototype,"selected",void 0);_.L([_.Q("data.image"),_.H("design:type",Object),_.H("design:paramtypes",[])],A8.prototype,"thumbnailUrl",null);
_.L([_.Q("data.image","data.image.previewCoordinates"),_.H("design:type",Object),_.H("design:paramtypes",[])],A8.prototype,"thumbnailStyle",null);_.L([_.nF("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],A8.prototype,"onKeyPress",null);_.L([_.y({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],A8);
_.G(A8,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(i5d!==void 0)return i5d;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return i5d=B},{mode:2});var uB=function(B,c,x){x=x===void 0?!1:x;_.V4.call(this);var P=this;this.dropZoneOverlay=new ba(B);this.selectOverlay=x?new KV(c,"multiple_file",["image/*"]):new KV(c,"single_file",["image/*"]);this.handler=new _.cf(this);_.bW(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(c,"click",function(){P.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.w(uB,_.V4);uB.prototype.onChange=function(B){var c;(c=B.files)!=null&&c.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:B.files}))};var DC=function(){var B=_.z.apply(this,arguments)||this;B.addImageErrorMessage="";B.errorMessage="";B.images=[];B.selectedImageIndex=0;B.modern=_.T("web_modern_buttons");B.maxNumImagesPerPost=_.Yu("max_num_images_per_post_web_ui");B.JSC$13620_imageId=0;return B};
_.w(DC,_.z);_.a=DC.prototype;_.a.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.aJ(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.a.observeDragToReorder=function(){var B=this;if(this.showImagesPreview){var c,x=k8Q(_.cl.getInstance(),(c=this.data)==null?void 0:c.dragToReorderTooltip);_.EE.addLowPriorityJob(function(){_.XX(B.hostElement,x,B.thumbnailDragDropArea)})}};
_.a.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}}};
_.a.computeThumbnail=function(B){return(B==null?void 0:B.localImageSrc)||void 0};
_.a.onRendererstamperFinished=function(){_.rtZ(this.ytReorderableBehavior,_.Y9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Y9(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.a.handleDrop=function(B){var c=B.currDragItem;if(c!=null&&c.data){B=this.images[this.selectedImageIndex];var x=c.data.image,P=this.images.indexOf(x)||0;c=_.G7(c.parentNode.children,c);this.images.splice(P,1);this.images.splice(c,0,x);this.images=[].concat(_.wq(this.images));this.selectedImageIndex=this.images.indexOf(B)}};
_.a.setUpImagePicker=function(){var B=this.imageUploadEndpoint;B&&B.imageValidationInfo&&(this.uploadManager=new LM(B.uploadUrl,B.channelId),this.initialPicker||(this.initialPicker=new uB(this.dropzone,this.selectLink,!0),_.wX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new uB(this.addImageButtonContainer,this.addImageSelectButton),_.wX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.wX(this.JSC$13620_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.wX(this.JSC$13620_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.wX(_.Y9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.a.detached=function(){this.initialPicker&&(_.Ti(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Ti(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.a.onInitialSelectImages=function(B){var c=this;return _.X(function(x){return _.K(x,c.onSelectImages(B,!1),0)})};
_.a.onAddImage=function(B){var c=this;return _.X(function(x){return _.K(x,c.onSelectImages(B,!0),0)})};
_.a.onSelectImages=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e;return _.X(function(px){switch(px.nextAddress){case 1:c?x.addImageErrorMessage="":(x.images=[],x.errorMessage="");P=B.detail;Y=x.validateImages([].concat(_.wq(P)));if(Y!=="")return c?x.addImageErrorMessage=Y:x.errorMessage=Y,px.return();g=[].concat(_.wq(P)).map(function(kI){return(new A3(x.maxAspectRatio,!1,!0)).transform(kI)});
return _.K(px,Promise.allSettled(g),2);case 2:k=px.yieldResult,n=_.p(k.entries()),b=n.next();case 3:if(b.done){px.jumpTo(5);break}d=b.value;q=_.p(d);C=q.next().value;h=q.next().value;V=C;N=h;if(N.status!=="fulfilled"){S=E=l=void 0;c?x.addImageErrorMessage=_.iG((l=x.data)==null?void 0:l.invalidError):x.errorMessage=x.errorMessage===""?_.iG((E=x.data)==null?void 0:E.invalidError):_.iG((S=x.data)==null?void 0:S.multiFileError);px.jumpTo(4);break}M=N.value;M.cropped&&_.aJ(x.hostElement,"yt-backstage-multi-image-cropped");
if(M.invalidAspectRatio){u=Z=f=void 0;c?x.addImageErrorMessage=_.iG((f=x.data)==null?void 0:f.invalidAspectRatioError):x.errorMessage=x.errorMessage===""?_.iG((Z=x.data)==null?void 0:Z.invalidAspectRatioError):_.iG((u=x.data)==null?void 0:u.multiFileError);px.jumpTo(4);break}return _.K(px,EoY(x.JSC$13620_imageId,B.detail[V],M.transformedData),8);case 8:e=px.yieldResult,x.images.push(e),x.JSC$13620_imageId++;case 4:b=n.next();px.jumpTo(3);break;case 5:if(x.errorMessage!==""||x.addImageErrorMessage!==
"")return px.return();c?oKQ(x.uploadManager,[x.images[x.images.length-1]]):oKQ(x.uploadManager,x.images);x.images=[].concat(_.wq(x.images));x.selectedImageIndex=c?Math.max(x.images.length-1,0):0;_.aJ(x.hostElement,"yt-backstage-multi-image-select");_.Kq(px)}})};
_.a.onThumbnailClick=function(B){if(B=B.event_.detail)this.selectedImageIndex=this.images.indexOf(B)};
_.a.validateImages=function(B){if(B.length>this.maxNumImagesPerPost){var c;return _.iG((c=this.data)==null?void 0:c.multiImageExceedMaxImageCountError)}var x=1048576*this.maxFileSizeMb;B=B.filter(function(g){return g.size>x}).length;
if(B===0)return"";var P,Y;B=B>1?(P=this.data)==null?void 0:P.multiFileError:(Y=this.data)==null?void 0:Y.fileSizeError;return _.iG(B)};
_.a.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.wq(this.images));this.selectedImageIndex=0};
_.a.repositionImage=function(B){this.images[this.selectedImageIndex].previewCoordinates=B.event_.detail;this.images=[].concat(_.wq(this.images))};
_.a.getAllUploadStatuses=function(){var B=this,c,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.uploadManager.getAllUploadStatuses(),2);c=g.yieldResult;x=_.p(c);for(P=x.next();!P.done;P=x.next())if(Y=P.value,Y.encryptedBlobId===void 0)return g.return(Qat(B.uploadManager));return g.return(c)})};
_.a.hasImages=function(){return this.images.length>0};
_.a.cancel=function(){for(var B=this.uploadManager,c=_.p(B.imagesUploadData),x=c.next();!x.done;x=c.next())B.cancel(x.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.aJ(this.hostElement,"yt-backstage-multi-image-cancel")};
_.AJ.Object.defineProperties(DC.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.imageUploadEndpoint)==null?void 0:(c=B.imageValidationInfo)==null?void 0:c.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.imageUploadEndpoint)==null?void 0:(c=B.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var B,c;if((B=this.data)==null?0:(c=B.icon)==null?0:c.iconType)return _.$0(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.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 B=this;return(this.images||[]).map(function(c,x){return{renderer:{image:c,selected:x===B.selectedImageIndex}}})}}});
DC.prototype.setUpImagePicker=DC.prototype.setUpImagePicker;DC.prototype.onRendererstamperFinished=DC.prototype.onRendererstamperFinished;DC.prototype.observeDragToReorder=DC.prototype.observeDragToReorder;DC.prototype.observeAddImageError=DC.prototype.observeAddImageError;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DC.prototype,"rendererStamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.RN5),_.H("design:type",Object)],DC.prototype,"ytReorderableBehavior",void 0);_.L([_.jr("#dropzone"),_.H("design:type",HTMLElement)],DC.prototype,"dropzone",void 0);_.L([_.jr("#select-link"),_.H("design:type",HTMLElement)],DC.prototype,"selectLink",void 0);_.L([_.jr("#thumbnail-drag-drop-area"),_.H("design:type",HTMLElement)],DC.prototype,"thumbnailDragDropArea",void 0);_.L([_.jr("#add-image-button-container"),_.H("design:type",HTMLElement)],DC.prototype,"addImageButtonContainer",void 0);
_.L([_.jr("#add-image-button"),_.H("design:type",HTMLElement)],DC.prototype,"addImageSelectButton",void 0);_.L([_.jr("#image-preview-container"),_.H("design:type",Object)],DC.prototype,"JSC$13620_imagePreviewContainer",void 0);_.L([_.F(),_.H("design:type",Object)],DC.prototype,"addImageErrorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],DC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],DC.prototype,"errorMessage",void 0);
_.L([_.F(),_.H("design:type",Object)],DC.prototype,"imageUploadEndpoint",void 0);_.L([_.F(),_.H("design:type",Array)],DC.prototype,"images",void 0);_.L([_.F(),_.H("design:type",uB)],DC.prototype,"initialPicker",void 0);_.L([_.F(),_.H("design:type",uB)],DC.prototype,"addImagePicker",void 0);_.L([_.F(),_.H("design:type",LM)],DC.prototype,"uploadManager",void 0);_.L([_.F(),_.H("design:type",Object)],DC.prototype,"selectedImageIndex",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DC.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DC.prototype,"maxNumImagesPerPost",void 0);_.L([_.Q("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],DC.prototype,"maxAspectRatio",null);_.L([_.Q("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],DC.prototype,"maxFileSizeMb",null);
_.L([_.Q("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],DC.prototype,"dropIcon",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],DC.prototype,"selectionCancel",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],DC.prototype,"previewCancel",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],DC.prototype,"dataForAddImageButton",null);
_.L([_.Q("errorMessage"),_.H("design:type",String),_.H("design:paramtypes",[])],DC.prototype,"dropzoneClass",null);_.L([_.Q("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],DC.prototype,"showImagesPreview",null);_.L([_.Q("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],DC.prototype,"containMaxImages",null);_.L([_.bF("addImageErrorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DC.prototype,"observeAddImageError",null);
_.L([_.bF("showImagesPreview"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DC.prototype,"observeDragToReorder",null);_.L([_.Q("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],DC.prototype,"selectedImageData",null);_.L([_.Q("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],DC.prototype,"thumbnailRenderers",null);
_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DC.prototype,"onRendererstamperFinished",null);_.L([_.bF("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DC.prototype,"setUpImagePicker",null);_.L([_.y({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],DC);
_.G(DC,"ytd-backstage-multi-image-select-renderer",function(){if(fon!==void 0)return fon;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return fon=B},{mode:1});var AQn;var uE3;var Dt0;var rT=function(){var B=_.z.apply(this,arguments)||this;B.boundCaptureFocus=function(c){B.onCaptureFocus(c)};
return B};
_.w(rT,_.z);_.a=rT.prototype;_.a.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.a.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.a.onCaptureFocus=function(B){_.AV(B).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.a.getIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
_.a.onSelect=function(){var B;if((B=this.data)==null?0:B.onSelectCommand)if(_.T("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var c;((c=_.t(this.data.onSelectCommand.commandMetadata,_.Br))==null?0:c.url)?_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.cp().resolve(_.xu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.AJ.Object.defineProperties(rT.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.iG(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}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],rT.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rT.prototype,"data",void 0);_.L([_.jr("#item"),_.H("design:type",HTMLElement)],rT.prototype,"item",void 0);_.L([_.Q("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],rT.prototype,"label",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rT.prototype,"value",null);_.L([_.y({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],rT);
_.G(rT,"ytd-privacy-dropdown-item-renderer",function(){if(Dt0!==void 0)return Dt0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Dt0=B},{mode:1});var Rj=function(){var B=_.z.apply(this,arguments)||this;B.value="";B.label="";B.disabled=!1;return B};
_.w(Rj,_.z);_.a=Rj.prototype;_.a.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"}}}};
_.a.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.a.dataChanged=function(){this.reset()};
_.a.valueChanged=function(){var B;if(this.value&&(B=this.data)!=null&&B.entries){B=_.p(this.data.entries);for(var c=B.next();!c.done;c=B.next())if((c=this.getRendererForEntry(c.value))&&this.getItemRendererValue(c)===this.value){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}}};
_.a.setInitialLabel=function(){if(this.data&&this.data.entries)for(var B=_.p(this.data.entries),c=B.next();!c.done;c=B.next())if(c=this.getRendererForEntry(c.value)){if(c.isSelected){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}this.data.label&&(this.label=this.data.label)}};
_.a.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var B=_.p(this.data.entries),c=B.next();!c.done;c=B.next()){c=this.getRendererForEntry(c.value);var x=void 0;if((x=c)==null?0:x.isSelected)return this.getItemRendererValue(c)||-1}return-1};
_.a.getItemRendererValue=function(B){return"stringValue"in B||"int32Value"in B?B.stringValue||B.int32Value||null:null};
_.a.getRendererForEntry=function(B){return B.dropdownItemRenderer||B.privacyDropdownItemRenderer||B.navigationDropdownItemRenderer||null};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("value-changed",this.value))};
_.a.updateValueFromBinding=function(B){this.value=B.detail.value};
Rj.prototype.valueChangedForBinding=Rj.prototype.valueChangedForBinding;Rj.prototype.valueChanged=Rj.prototype.valueChanged;Rj.prototype.dataChanged=Rj.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Rj.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Rj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Rj.prototype,"value",void 0);_.L([_.F(),_.H("design:type",Object)],Rj.prototype,"label",void 0);_.L([_.jr("#entries"),_.H("design:type",Object)],Rj.prototype,"entries",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Rj.prototype,"disabled",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rj.prototype,"dataChanged",null);
_.L([_.CF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rj.prototype,"valueChanged",null);_.L([_.bF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rj.prototype,"valueChangedForBinding",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Rj);
_.G(Rj,"ytd-flat-dropdown-renderer",function(){if(uE3!==void 0)return uE3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uE3=B},{mode:1});var rQZ;var eY=function(){var B=_.z.apply(this,arguments)||this;B.quizOptions=[];B.explanationPlaceholderText="";B.optionPlaceholderText="";B.correctAnswerIndex=-1;B.isMarkAnswerTooltipShown=!1;B.timer=0;return B};
_.w(eY,_.z);_.a=eY.prototype;_.a.dataChanged=function(){this.optionPlaceholderText=_.iG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.iG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.a.onMarkCorrectAnswer=function(B){var c,x=((c=this.quizOptions[this.correctAnswerIndex])==null?void 0:c.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[B.model.index]=Object.assign({},this.quizOptions[B.model.index],{explanationText:x,isCorrect:!0});this.correctAnswerIndex=B.model.index;this.quizOptions=[].concat(_.wq(this.quizOptions))};
_.a.updatePlaceholderTexts=function(){for(var B=!1,c=[],x=0;x<this.quizOptions.length;x++){var P=this.optionPlaceholderText+" "+(x+1),Y=void 0;((Y=this.quizOptions[x])==null?void 0:Y.placeholderText)!==P?(B=!0,c.push(Object.assign({},this.quizOptions[x],{placeholderText:P}))):c.push(this.quizOptions[x])}B&&(this.quizOptions=c);this.isValid()?_.aJ(this.hostElement,"yt-commentbox-post-enable"):_.aJ(this.hostElement,"yt-commentbox-post-disable")};
_.a.getSimpleString=function(B){return _.iG(B)};
_.a.createQuizOptions=function(B){var c=[],x;B=(x=B==null?void 0:B.minQuizOptions)!=null?x:0;for(x=0;x<B;x++)c.push(this.createQuizOption());return c};
_.a.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.wq(this.quizOptions),[this.createQuizOption()]))};
_.a.onInput=function(){this.quizOptions=[].concat(_.wq(this.quizOptions))};
_.a.onExplanationInput=function(){_.aJ(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.a.onRemoveQuizOption=function(B){this.quizOptions.splice(B.model.index,1);B.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:B.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.wq(this.quizOptions));this.quizOptions.length===0&&_.aJ(this.hostElement,"yt-quiz-attachment-dismiss")};
_.a.updateHintRenderer=function(){var B=this;clearTimeout(this.timer);this.timer=setTimeout(function(){B.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.a.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var B=0,c=0,x=_.p(this.quizOptions),P=x.next();!P.done;P=x.next()){P=P.value;var Y=void 0;if(((Y=P.optionText)==null?void 0:Y.trim())!==""||P.isCorrect){P.isCorrect&&c++;Y=void 0;if(this.hasCustomOptionText&&((Y=P.optionText)==null?void 0:Y.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;B++}}return B>=
Number(this.editorInfo.minQuizOptions)&&c===1};
_.a.getPostCreateOptions=function(){for(var B=[],c=_.p(this.quizOptions),x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;((P=x.optionText)==null?void 0:P.trim())!==""&&B.push({pollOption:{text:x.optionText,explanation:x.explanationText},isCorrect:x.isCorrect})}return B};
_.a.getExplanationText=function(){var B;return((B=this.quizOptions[this.correctAnswerIndex])==null?void 0:B.explanationText)||""};
_.a.maybeDisplayMarkAnswerEduToolTip=function(){var B,c,x,P,Y,g,k;this.shouldShowMarkAnswerTooltip()&&((B=this.editorInfo)==null?0:(c=B.markAnswerButton)==null?0:(x=c.buttonRenderer)==null?0:(P=x.hint)==null?0:(Y=P.hintRenderer)==null?0:(g=Y.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.cl.getInstance(),B=xg(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,(B==null?void 0:B.length)>0&&this.optionSelectors&&_.KL(B[0],this.optionSelectors[0]))};
_.a.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var B=0,c=_.p(this.quizOptions),x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;((P=x.optionText)==null?void 0:P.trim())!==""&&B++;if(x.isCorrect)return!1}return B<2?!1:!0};
_.a.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.a.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.a.updateOptionTextFromBinding=function(B){if(B.target){var c=Array.from(_.Y9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(B.target);if(c>=0){var x;this.quizOptions[c].optionText=(x=B.detail.value)!=null?x:""}}};
_.AJ.Object.defineProperties(eY.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.editorInfo)==null?void 0:(c=B.addOptionButton)==null?void 0:c.buttonRenderer;x&&(x.style="STYLE_SUGGESTIVE",x.size="SIZE_SMALL",x.isDisabled=!this.isAllowedToAddOption);return(x==null?0:x.text)?x:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var B,c;return this.quizOptions.length<((c=(B=this.editorInfo)==null?void 0:B.maxQuizOptions)!=null?c:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(B){var c;return(c=B.optionText)==null?void 0:c.trim()})}}});
eY.prototype.updatePlaceholderTexts=eY.prototype.updatePlaceholderTexts;eY.prototype.dataChanged=eY.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],eY.prototype,"editorInfo",void 0);_.L([_.F(),_.H("design:type",Array)],eY.prototype,"quizOptions",void 0);_.L([_.F(),_.H("design:type",Object)],eY.prototype,"explanationPlaceholderText",void 0);_.L([_.Um(".option-selector-button"),_.H("design:type",Array)],eY.prototype,"optionSelectors",void 0);
_.L([_.CF("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eY.prototype,"dataChanged",null);_.L([_.Q("editorInfo","isAllowedToAddOption","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],eY.prototype,"addAnswerButton",null);_.L([_.Q("editorInfo","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],eY.prototype,"isAllowedToAddOption",null);
_.L([_.CF("quizOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eY.prototype,"updatePlaceholderTexts",null);_.L([_.Q("quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],eY.prototype,"hasCustomOptionText",null);_.L([_.y({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],eY);
_.G(eY,"ytd-backstage-quiz-editor-renderer",function(){if(rQZ!==void 0)return rQZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return rQZ=B},{mode:2});var RjZ;var ej3=(Ja.FIRSTDAYOFWEEK+1)%7;var BN5;var ckW=[],xuQ=0,PsI=0;xuQ=0;PsI=24;if(.25*(PsI-xuQ)<0)BN5=[];else{for(var Y8F=xuQ;Y8F<PsI;Y8F+=.25)ckW.push(Y8F);BN5=ckW}var aJ3=BN5.map(function(B){B=B*60*60;return{secondsSinceMidnight:B,text:(new Zj(7)).format(new Date(0,0,0,0,0,B))}});var ghy;var Bd=function(){var B=_.z.apply(this,arguments)||this;B.skipNextOpenDialog=!1;B.errorMessage="";return B};
_.w(Bd,_.z);_.a=Bd.prototype;_.a.attached=function(){var B=this,c=new MutationObserver(function(){B.JSC$13663_calendarMain.scrollHeight>0&&(c.disconnect(),B.calendarConfig&&B.calendarConfig.selectedDate&&B.scrollToDate())});
c.observe(this.JSC$13663_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){c.disconnect()},1E3)};
_.a.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.a.onDateTextChange=function(){if(this.calendarConfig){var B=this.validateDateText();B.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(B.details)):this.textbox.setAttribute("invalid","")}};
_.a.handleDayClick=function(B){B.model.day.date&&(this.commitDate(B.model.day.date),this.dialog.close())};
_.a.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var B=LOd(this.calendarConfig.selectedDate,this.renderData);B!==void 0&&this.JSC$13663_calendarMain.scrollToIndex(B)}};
_.a.scrollToNextMonth=function(){this.JSC$13663_calendarMain.scrollToIndex(this.JSC$13663_calendarMain.firstVisibleIndex+1)};
_.a.scrollToPrevMonth=function(){this.JSC$13663_calendarMain.firstVisibleIndex===0&&this.JSC$13663_calendarMain.scrollTo(0,0);this.JSC$13663_calendarMain.scrollToIndex(this.JSC$13663_calendarMain.firstVisibleIndex-1)};
_.a.onFormSubmit=function(B){B.preventDefault();this.calendarConfig&&(B=this.validateDateText(),B.isValid&&(this.commitDate(B.details),this.dialog.close()))};
_.a.onEscOrClickingOutside=function(B){B=B.detail.path&&!!B.detail.path.length&&B.detail.path[0];if(B.classList.contains("ytd-calendar-date-picker")){B===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var c=0;c<this.dropdownButton.children.length;c++)this.dropdownButton.children[c]===B&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}B=this.textbox.value!==this.dateText;c=this.validateDateText();B&&c.isValid&&this.commitDate(c.details);this.dialog.close();this.textbox.value=
this.dateText};
_.a.commitDate=function(B){this.calendarConfig&&(this.set("calendarConfig.selectedDate",B),_.aJ(this.hostElement,"ytd-calendar-date-selected",B))};
_.a.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var B=this.textbox.value;var c=new Date;B=(new p1Y(2)).parse(B,c,{validate:!0})===B.length?GtY(c):void 0;if(!B)return this.errorMessage=_.Up("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};c=this.calendarConfig.start;var x=this.calendarConfig.end;if(FOx(B,c))return this.errorMessage=_.Up("ENTER_DATE_OR_LATER",{allowed_date:yyX(c)}),{isValid:!1,details:void 0};if(FOx(x,B))return this.errorMessage=
_.Up("ENTER_DATE_OR_EARLIER",{allowed_date:yyX(x)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:B}};
_.AJ.Object.defineProperties(Bd.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?yyX(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var B=this.calendarConfig,c=[],x=0;x<7;x++)c.push(Ja.NARROWWEEKDAYS[(x+ej3)%7]);x=[];for(var P=new Date(B.start.year,B.start.month);P.getFullYear()<B.end.year||P.getFullYear()===B.end.year&&P.getMonth()<=B.end.month;){var Y=x,g=Y.push,k=P.getFullYear(),n=P.getMonth(),b=B,d=void 0,q=[],C=Object.freeze({extraCssClass:"invisible",debugClass:""}),h=new Date(k,n),V=GtY(h);h=h.getDay();for(var N=GtY(new Date);V.month===
n;){h!==ej3&&d||(d=Array.from({length:7}).fill(C),q.push(d));var l={date:{year:k,month:n,day:V.day},extraCssClass:"",debugClass:""};b.selectedDate&&l.date&&Qc7(l.date,b.selectedDate)&&(l.extraCssClass+=" selected");if(FOx(V,b.start)||FOx(b.end,V))l.extraCssClass+=" disabled";Qc7(V,N)&&(l.extraCssClass+=" today");l.extraCssClass=l.extraCssClass.trim();d[(h-ej3+7)%7]=l;V=zCl(V);h=(h+1)%7}g.call(Y,{weeks:q,monthLabel:Ja.SHORTMONTHS[n]+" "+k,year:k,month:n,monthLabelExtraCssClass:q[0][2]===C?"shift-down-label":
""});P.setMonth(P.getMonth()+1)}return{months:x,daysOfWeekLabel:c}}}}});
Bd.prototype.onEscOrClickingOutside=Bd.prototype.onEscOrClickingOutside;Bd.prototype.scrollToDate=Bd.prototype.scrollToDate;_.L([_.F(),_.H("design:type",Object)],Bd.prototype,"calendarConfig",void 0);_.L([_.F(),_.H("design:type",Object)],Bd.prototype,"skipNextOpenDialog",void 0);_.L([_.F(),_.H("design:type",Object)],Bd.prototype,"errorMessage",void 0);_.L([_.jr("#textbox"),_.H("design:type",HTMLInputElement)],Bd.prototype,"textbox",void 0);
_.L([_.jr("#calendar-dialog"),_.H("design:type",Object)],Bd.prototype,"dialog",void 0);_.L([_.jr("#calendar-main"),_.H("design:type",Object)],Bd.prototype,"JSC$13663_calendarMain",void 0);_.L([_.jr("#date-picker"),_.H("design:type",HTMLElement)],Bd.prototype,"dropdownButton",void 0);_.L([_.Q("calendarConfig.selectedDate"),_.H("design:type",String),_.H("design:paramtypes",[])],Bd.prototype,"dateText",null);
_.L([_.Q("calendarConfig","calendarConfig.selectedDate"),_.H("design:type",Object),_.H("design:paramtypes",[])],Bd.prototype,"renderData",null);_.L([_.bF("renderData","calendarConfig.selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bd.prototype,"scrollToDate",null);_.L([_.nF("iron-overlay-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bd.prototype,"onEscOrClickingOutside",null);
_.L([_.Em({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Bd);
_.G(Bd,"ytd-calendar-date-picker",function(){if(ghy!==void 0)return ghy;var B=document.createElement("template");_.I(B,'\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" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ghy=B},{mode:2});var sKn=_.Up("UTC_OFFSET_FORMAT",{utc_offset:(new Zj("Z")).format(new Date)}),pg0=(new Date).getTimezoneOffset()*-60,ksQ=new Date,Xgd,$ud=Lk(ksQ.getTimezoneOffset());Xgd=jwW(dZS($ud,ksQ));var nhZ=_.Up("LOCAL_TIME_GMT_LABEL",{gmt_text:Xgd.replace("+0","+").replace("-0","-").replace(":00","")}),cd=function(){var B=_.z.apply(this,arguments)||this;B.selectedTimeIndex=0;B.selectedTimezoneIndex=0;B.timeOfDayOptions=aJ3;return B};
_.w(cd,_.z);_.a=cd.prototype;_.a.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var B=StQ();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=B,this.selectedTimeIndex=0;else{var c=Ms7(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},B,{selectedDate:c.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(x){return x.secondsSinceMidnight===c.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.a.onDatePicked=function(B){this.selectedDate=B.detail};
_.a.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.aJ(this.hostElement,"ytd-date-time-selection-cancelled")};
_.a.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var B=this.selectedDate;B=new Date(B.year,B.month,B.day);_.aJ(this.hostElement,"ytd-date-time-selection-update",Math.floor(B.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+B.getTimezoneOffset()*60))}};
_.a.getTimezoneFormat=function(B){return B.localizedDisplayText?B.localizedDisplayText:_.Up("TIMEZONE_FORMAT",{utc_offset_text:""+B.localizedUtcOffset,city_name:""+B.localizedName})};
_.a.updateSelectedTimeIndexFromBinding=function(B){this.selectedTimeIndex=B.detail.value};
_.a.updateSelectedTimezoneIndexFromBinding=function(B){this.selectedTimezoneIndex=B.detail.value};
_.AJ.Object.defineProperties(cd.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data.timezoneOptions;var c={name:"Etc/Unknown",localizedName:_.Up("LOCAL_TIME_LABEL"),localizedUtcOffset:sKn,utcOffsetSec:""+pg0,localizedDisplayText:nhZ};B?B.length&&B[0].name!==c.name&&(B[0].localizedDisplayText||(c.localizedDisplayText=""),B.unshift(c)):B=[c];return B}}},
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]}}});
cd.prototype.onDateTimeTimezoneChange=cd.prototype.onDateTimeTimezoneChange;cd.prototype.onDatePicked=cd.prototype.onDatePicked;cd.prototype.updateDefaultSelectedValue=cd.prototype.updateDefaultSelectedValue;_.L([_.F(),_.H("design:type",Object)],cd.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],cd.prototype,"calendarConfig",void 0);_.L([_.F(),_.H("design:type",Object)],cd.prototype,"selectedDate",void 0);_.L([_.F(),_.H("design:type",Object)],cd.prototype,"selectedTimeIndex",void 0);
_.L([_.F(),_.H("design:type",Object)],cd.prototype,"selectedTimezoneIndex",void 0);_.L([_.jr("#time-listbox"),_.H("design:type",Object)],cd.prototype,"timeListBox",void 0);_.L([_.jr("#timezone-listbox"),_.H("design:type",Object)],cd.prototype,"timezoneListBox",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],cd.prototype,"rendererStamperBehavior",void 0);_.L([_.Q("data.timezoneOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],cd.prototype,"timeZones",null);
_.L([_.CF("data","timeZones"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cd.prototype,"updateDefaultSelectedValue",null);_.L([_.Q("selectedTimezoneIndex","timeZones"),_.H("design:type",Object),_.H("design:paramtypes",[])],cd.prototype,"selectedTimezone",null);_.L([_.Q("selectedTimeIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],cd.prototype,"selectedTime",null);
_.L([_.nF("ytd-calendar-date-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],cd.prototype,"onDatePicked",null);_.L([_.bF("selectedTimezone","selectedTime","selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cd.prototype,"onDateTimeTimezoneChange",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],cd);
_.G(cd,"ytd-date-time-picker-renderer",function(){if(RjZ!==void 0)return RjZ;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RjZ=B},{mode:1});var be9;var xs=function(){var B=_.z.apply(this,arguments)||this;B.boundOnTapDismissButton=function(){B.dismissTapHandler()};
B.dismissButtonOverrides={size:"XS"};return B};
_.w(xs,_.z);xs.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}}}}}};
xs.prototype.dismissTapHandler=function(){_.aJ(this.hostElement,"yt-backstage-attachment-dismissed")};
xs.prototype.computeAttachmentType=function(B){return B?B.backstageImageRenderer?"image":B.videoRenderer?"video":"none":"none"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xs.prototype,"attachmentPreview",void 0);_.L([_.F(),_.H("design:type",Object)],xs.prototype,"dismissButton",void 0);_.L([_.F(),_.H("design:type",Object)],xs.prototype,"boundOnTapDismissButton",void 0);
_.L([_.F(),_.H("design:type",Object)],xs.prototype,"dismissButtonOverrides",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.H("design:type",String)],xs.prototype,"attachmentType",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],xs);
_.G(xs,"ytd-backstage-dismissable-attachment",function(){if(be9!==void 0)return be9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return be9=B},{mode:1});var KZ3;var Pd=function(){var B=_.z.apply(this,arguments)||this;B.selectedVideoId=void 0;B.picker=void 0;B.dismissButtonOverrides={size:"XS"};B.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return B};
_.w(Pd,_.z);_.a=Pd.prototype;_.a.onServiceRequestCompleted=function(B){B.stopPropagation()};
_.a.handleAddVideoPreviewAction=function(B){B=this.get("addVideoPreviewAction",B);this.onGetVideoPreviewSuccess(B)};
_.a.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}}}}}};
_.a.onLaunchVideoPicker=function(B){var c=this,x=_.iG(this.get("addVideoLinkAction.title",B)),P=this.get("addVideoLinkAction.onePickHostId",B);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",B);P&&(this.picker||(x=_.XRm(_.nJo(P).setTitle(x).addView(gDt()).addView(ac0()),function(Y){c.onPickVideo(Y)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",B)||x.addView("youtube"),this.picker=x.build()),this.picker.setVisible(!0))};
_.a.onPickVideo=function(B){if(B)if(B.action==="cancel")_.aJ(this.hostElement,"yt-video-link-button-cancel");else if(B.action==="picked"){B=B.docs;if(!B||B.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(B=(B==null?0:B.length)?B[0]:void 0)?B.id:void 0;this.setVideoPreview()}};
_.a.setVideoPreview=function(){var B=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){B.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.a.onGetVideoPreviewSuccess=function(B){if(B&&B.videoPreview&&B.cancelButton)this.videoPreview=B.videoPreview,this.cancelButton=B.cancelButton,_.aJ(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.a.onGetVideoPreviewError=function(){this.cancel()};
_.a.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.aJ(this.hostElement,"yt-video-link-cancel")};
_.a.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Pd.prototype.onServiceRequestCompleted=Pd.prototype.onServiceRequestCompleted;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Pd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Pd.prototype,"videoPreview",void 0);_.L([_.F(),_.H("design:type",Object)],Pd.prototype,"cancelButton",void 0);_.L([_.F(),_.H("design:type",Object)],Pd.prototype,"getVideoPreviewCommand",void 0);_.L([_.F(),_.H("design:type",Object)],Pd.prototype,"dismissButtonOverrides",void 0);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Pd.prototype,"onServiceRequestCompleted",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Pd);
_.G(Pd,"ytd-backstage-video-link-attachment",function(){if(KZ3!==void 0)return KZ3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KZ3=B},{mode:1});var jKS;var Uud;var dut;var Ys=function(){return _.z.apply(this,arguments)||this};
_.w(Ys,_.z);Ys.prototype.dataChanged=function(){this.active=!1};
Ys.prototype.onTap=function(){_.aJ(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Ys.prototype.identity=function(B){return B};
_.AJ.Object.defineProperties(Ys.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;if((B=this.data)==null?0:(c=B.image)==null?0:(x=c.thumbnails)==null?0:(P=x[0])==null?0:P.url)return B=this.data.image.thumbnails[0].url,B.startsWith("data:image/svg+xml")?K6(B):_.Tz(B)}}});
Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],Ys.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ys.prototype,"active",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ys.prototype,"dataChanged",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ys.prototype,"imageSrc",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ys);
_.G(Ys,"ytd-emoji-suggestion",function(){if(dut!==void 0)return dut;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dut=B},{mode:1});var q80=/.*([:@#].*?)$/,an=function(){var B=_.z.apply(this,arguments)||this;B.suggestions=[];B.suggestionIndex=-1;B.JSC$13691_lastSuggestionRange=null;return B};
_.w(an,_.z);_.a=an.prototype;_.a.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.a.getSuggestions=function(B){var c=[],x=eGt(this.emojiManager,B.substr(0,3));if(x)for(var P in x)if(P.toLocaleLowerCase().indexOf(B)===0){var Y=x[P];if(Y&&Y.emojiId){Y=zO(this.emojiManager,Y.emojiId);var g=void 0,k=void 0,n=void 0,b=void 0,d=((g=Y)==null?0:g.isCustomEmoji)?(k=Y)==null?void 0:(n=k.shortcuts)==null?void 0:n[0]:(b=Y)==null?void 0:b.emojiId;g=void 0;c.push({suggestion:{image:(g=Y)==null?void 0:g.image,alt:d,text:P}});if(c.length>=64)break}}return c?c.sort(function(q,C){return C.suggestion.text<
q.suggestion.text?-1:C.suggestion.text===q.suggestion.text?0:1}):null};
_.a.insertSuggestion=function(B){_.aJ(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13691_lastSuggestionRange,text:B.alt});this.dropdown.opened=!1};
_.a.updateSuggestionsAtCaret=function(B){this.updateSuggestions(B,this.retrieveTextBeforeRange(B))};
_.a.offsetStartOfRangeBy=function(B,c){B.startOffset>=c&&B.setStart(B.startContainer,B.startOffset-c)};
_.a.updateSuggestions=function(B,c){var x=this;this.JSC$13691_lastSuggestionRange&&(this.JSC$13691_lastSuggestionRange.detach(),this.JSC$13691_lastSuggestionRange=null);if((c=q80.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2||c===":_")&&(this.offsetStartOfRangeBy(B,c.length),this.JSC$13691_lastSuggestionRange=B,(B=this.getSuggestions(c))&&B.length)){this.suggestions=B;_.fl(this,function(){x.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(B.length-1);return}this.dropdown.opened=!1};
_.a.onKeyDown=function(B){if(this.dropdown.opened)switch(B.key){case "Escape":this.dropdown.opened=!1;B.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);B.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);B.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),B.preventDefault()}};
_.a.onKeyUp=function(B,c){switch(B.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(c);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(c)}};
_.a.onKeyPress=function(B){B.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),B.preventDefault())};
_.a.changeSuggestionIndex=function(B){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(B+this.suggestions.length)%this.suggestions.length,B=this.dropdownContent.children[this.suggestionIndex],B.active=!0,this.dropdownContent.scrollTop=B.offsetTop)};
_.a.retrieveTextBeforeRange=function(B){var c=B.startContainer;return c&&c.nodeType===Node.TEXT_NODE?c.textContent.substr(0,B.startOffset):""};
an.prototype.onKeyPress=an.prototype.onKeyPress;an.prototype.onKeyUp=an.prototype.onKeyUp;an.prototype.onKeyDown=an.prototype.onKeyDown;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Array)],an.prototype,"suggestions",void 0);_.L([_.F(),_.H("design:type",_.Fr)],an.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Number)],an.prototype,"verticalSuggestionsOffset",void 0);
_.L([_.jr("#dropdown"),_.H("design:type",Object)],an.prototype,"dropdown",void 0);_.L([_.jr("#dropdown-content"),_.H("design:type",HTMLDivElement)],an.prototype,"dropdownContent",void 0);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],an.prototype,"onKeyDown",null);_.L([_.nF("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent,Range]),_.H("design:returntype")],an.prototype,"onKeyUp",null);
_.L([_.nF("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],an.prototype,"onKeyPress",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-emoji-input"})],an);
_.G(an,"ytd-emoji-input",function(){if(Uud!==void 0)return Uud;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Uud=B},{mode:2});var Cs0;var ge=function(){var B=_.z.apply(this,arguments)||this;B.hasMaxOptions=!1;return B};
_.w(ge,_.z);_.a=ge.prototype;_.a.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.a.setPrefilledChoices=function(B){var c=this;this.set("pollOptions",[]);var x;for(x=0;x<Math.min(B.length,this.data.maxPollOptions);x++)this.push("pollOptions",B[x].substring(0,this.data.maxPollOptionChars));for(;x<this.data.minPollOptions;x++)this.push("pollOptions","");this.hasMaxOptions=x>=this.data.maxPollOptions;_.fl(this,function(){for(var P=c.pollOptions,Y=_.Y9(c.hostElement).querySelectorAll(".poll-option-input"),g=0;g<Y.length;g++)Y[g].value=P[g]})};
_.a.focusChanged=function(){_.k9(this.hostElement)};
_.a.onInput=function(){var B=this;_.yo(this,"onInput",function(){B.isValid()?_.aJ(B.hostElement,"yt-commentbox-post-enable"):_.aJ(B.hostElement,"yt-commentbox-post-disable")},300)};
_.a.setPollOptions=function(){var B=[],c,x=((c=this.data)==null?0:c.minPollOptions)?this.data.minPollOptions:0;for(c=0;c<x;c++)B.push("");return B};
_.a.addPollOption=function(){var B=this;_.aJ(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.EE.addLowPriorityJob(function(){var c;(c=_.Y9(B.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||c.focus()})};
_.a.onRemovePollOption=function(B){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.aJ(this.hostElement,"yt-poll-attachment-dismiss")):(B=this.repeat.indexForElement(B.target.parentNode),B!==null&&(this.splice("pollOptions",B,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.aJ(this.hostElement,"yt-commentbox-post-enable"))))};
_.a.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.a.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var B=0,c=this.pollOptions.length;B<c;B++)if(this.pollOptions[B].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.a.getPollOptions=function(){return this.pollOptions};
_.a.setPollOptionsFromInputs=function(){for(var B=_.Y9(this.hostElement).querySelectorAll(".poll-option-input"),c=0;c<B.length;c++)this.pollOptions[c]=B[c].value.trim()};
_.a.clearPollOptions=function(){var B=_.Y9(this.hostElement).querySelectorAll(".poll-option-input");B=_.p(B);for(var c=B.next();!c.done;c=B.next())c.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.a.getSimpleString=function(B){return _.iG(B)};
_.a.updateValueFromBinding=function(B){if(B.target&&this.pollOptions){var c=Array.from(_.Y9(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(B.target);if(c>=0){var x;this.pollOptions[c]=(x=B.detail.value)!=null?x:"";this.notifyPath("pollOptions."+c)}}};
ge.prototype.dataChanged=ge.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ge.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],ge.prototype,"pollOptions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ge.prototype,"hasMaxOptions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],ge.prototype,"enableCreationBox",void 0);
_.L([_.jr("#repeat"),_.H("design:type",IB)],ge.prototype,"repeat",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ge.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-poll-attachment"})],ge);
_.G(ge,"ytd-poll-attachment",function(){if(Cs0!==void 0)return Cs0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Cs0=B},{mode:2});var ho5;var mu0;var TN0;var VHt;var so=function(){return _.z.apply(this,arguments)||this};
_.w(so,_.z);_.AJ.Object.defineProperties(so.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],so.prototype,"rendererBehaviors",void 0);_.L([_.F(),_.H("design:type",Object)],so.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],so.prototype,"focused",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("focused"),_.H("design:type",Object),_.H("design:paramtypes",[])],so.prototype,"ariaSelected",null);_.L([_.Em({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],so);
_.G(so,"yt-user-mention-suggestion-renderer",function(){if(VHt===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;TN0===void 0&&(TN0=document.createElement("template"));var P=TN0;x.call(c,P.content.cloneNode(!0),B.content.firstChild);VHt=B}B=VHt;return B},{mode:2});var tHd;var wgI;var ps=function(){var B=_.z.apply(this,arguments)||this;B.focusedSuggestionIndex=-1;return B};
_.w(ps,_.z);_.a=ps.prototype;_.a.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.a.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.a.setFocusedSuggestionIndex=function(B){!this.data||!this.data.suggestions||B<0||B>=this.data.suggestions.length||(this.focusedSuggestionIndex=B,B=this.getSuggestionId(B),this._setFocusedSuggestionId(B))};
_.a.advanceSuggestion=function(B){this.focusedSuggestionIndex===-1||B!==-1&&B!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+B),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.a.ensureSuggestionVisible=function(B){B=this.getSuggestionId(B);B=_.Y9(this.hostElement).querySelector("[id="+B+"]");B!=null&&(B.offsetTop<this.hostElement.scrollTop?B.scrollIntoView(!0):B.offsetTop+B.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&B.scrollIntoView(!1))};
_.a.getSuggestionId=function(B){return"user-mention-suggestion-"+B};
_.a.onSuggestionTap=function(B){var c=_.t(B.model.item,BJ4);this.ytRendererBehavior.logExplicitClick(c);_.aJ(this.hostElement,"yt-user-mention-suggestion-selected",{data:c,index:B.model.index})};
_.a.onSuggestionMouseMove=function(B){B.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(B.model.index)};
_.a.isSuggestionFocused=function(B,c){return B===c};
_.a.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.a.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("focused-suggestion-id-changed",this.focusedSuggestionId))};
ps.prototype.focusedSuggestionIdChangedForBinding=ps.prototype.focusedSuggestionIdChangedForBinding;ps.prototype.onDomChange=ps.prototype.onDomChange;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ps.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],ps.prototype,"focusedSuggestionIndex",void 0);_.L([_.F({readOnly:!0}),_.H("design:type",String)],ps.prototype,"focusedSuggestionId",void 0);
_.L([_.nF("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ps.prototype,"onDomChange",null);_.L([_.bF("focusedSuggestionId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ps.prototype,"focusedSuggestionIdChangedForBinding",null);_.L([_.Em({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],ps);
_.G(ps,"yt-user-mention-suggestions-dropdown",function(){if(wgI===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;tHd===void 0&&(tHd=document.createElement("template"));var P=tHd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);wgI=B}B=wgI;return B},{mode:2});var ks=function(){var B=_.z.apply(this,arguments)||this;B.suggestionsResponse=null;B.activeMention=null;B.selectionChangeListener=B.onSelectionChange.bind(B);B.handlesEnabled=_.T("enable_handles_in_mention_suggest_posts");B.handlesInMentionSuggestionsEnabled=_.T("handles_in_mention_suggest_posts");B.zeroPrefixMentionSuggestionEnabled=_.T("enable_zero_prefix_mention_suggestion_web");B.pendingQuery=null;B.flowNonce=null;return B};
_.w(ks,_.z);_.a=ks.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.a.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.a.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.a.hasSuggestions=function(B){return!!(B&&B.suggestions&&B.suggestions.length>0)};
_.a.onInput=function(){var B=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var c=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),x=this.activeMention.JSC$9307_getText().slice(-1)===" ",P=this.activeMention.JSC$9307_getText().slice(-2,-1)===" ",Y="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9307_getText().slice(-2,-1))>=
0;Y=this.zeroPrefixMentionSuggestionEnabled&&Y;if(this.activeMention.isCollapsed()||(c||P||Y)&&x)this.cancelActiveMention();else{var g=this.activeMention.JSC$9307_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.yo(this,"requestSuggestions",function(){B.requestSuggestions(g)},100)}}}};
_.a.onServiceRequestSent=function(B){B.stopPropagation()};
_.a.onServiceRequestCompleted=function(B){B.stopPropagation();B=B.detail.data;B.query&&(!this.pendingQuery||this.pendingQuery!==B.query)||!this.zeroPrefixMentionSuggestionEnabled&&B.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=B,this.hasSuggestions(B)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.a.onServiceRequestError=function(B){B.stopPropagation()};
_.a.onUserMentionSuggestionSelected=function(B){this.selectSuggestion(B.detail.data,B.detail.index)};
_.a.onSelectionChange=function(){if(this.activeMention){var B=_.V0(),c=this.activeMention.JSC$9307_containsRange(B);B=B&&this.containsHelper(this.dropdown,B.getContainer());c||B||this.cancelActiveMention()}};
_.a.containsHelper=function(B,c){var x;if(((x=window.ShadyDOM)==null?void 0:x.noPatch)===!0)return B.contains(c);for(;c;){if(c===B)return!0;c=c instanceof ShadowRoot?c.host:c.parentNode}return!1};
_.a.maybeStartSuggest=function(){var B=_.V0();if(B&&B.isCollapsed()){var c=B.JSC$9307_getStartNode(),x=B.JSC$9307_getStartOffset();if(c instanceof Text&&!(x<1)){var P=c.textContent;!(P=P&&P.charAt(x-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(P)<0||(this.activeMention=_.SE(c,x-1,B.JSC$9307_getEndNode(),B.JSC$9307_getEndOffset()),this.flowNonce=Np(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.a.updateActiveMention=function(){if(this.activeMention){var B=_.V0();B&&B.isCollapsed()&&(this.activeMention=_.SE(this.activeMention.JSC$9307_getStartNode(),this.activeMention.JSC$9307_getStartOffset(),B.JSC$9307_getEndNode(),B.JSC$9307_getEndOffset()))}};
_.a.requestSuggestions=function(B){if(this.activeMention){var c={suggestions_query:B};this.pendingQuery=B;_.kC(this.hostElement,[this.suggestionsEndpoint,c])}};
_.a.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()};
_.a.focusPreviousSuggestion=function(B){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),B.preventDefault())};
_.a.focusNextSuggestion=function(B){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),B.preventDefault())};
_.a.selectFocusedSuggestion=function(B){if(this.hasSuggestions(this.suggestionsResponse)){var c=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.t(c,BJ4)&&(this.selectSuggestion(_.t(c,BJ4),this.dropdown.focusedSuggestionIndex),B.preventDefault())}};
_.a.selectSuggestion=function(B,c){if(B){var x=this.activeMention;if(x){var P=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&B.handle?_.of(P,"\u00a0\u2068@"+B.handle+"\u2069\u00a0"):this.handlesEnabled?_.of(P,"\u00a0"+B.displayName+"\u00a0"):_.of(P,"\u00a0@"+B.displayName+"\u00a0");IW(P,"/channel/"+B.channelId);P.classList.add("yt-formatted-string","yt-simple-endpoint");P.setAttribute("spellcheck","false");x.isCollapsed()||x.JSC$9307_removeContents();x.insertNode(P,!0);B=document.createTextNode(" ");
P.parentNode.insertBefore(B,P.nextSibling);window.getSelection().collapse(B,1);c={suggestionSelected:{suggestionIndex:c}};if(this.zeroPrefixMentionSuggestionEnabled){var Y;c.suggestionSelected.isZeroPrefix=((Y=this.suggestionsResponse)==null?void 0:Y.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",c);this.cancelActiveMention();_.aJ(this.hostElement,"yt-mention-inserted")}}};
_.a.getPositionTarget=function(B){return B&&B.getBrowserRangeObject()};
_.a.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.a.onFocusedSuggestionIdChanged=function(B){var c=_.UTl(this.hostElement)[0];c&&(B.detail.value?c.setAttribute("aria-activedescendant",B.detail.value):c.removeAttribute("aria-activedescendant"))};
_.a.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.a.logGELEvent=function(B,c){B={eventType:B,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};c&&(B=Object.assign(B,c));_.JP("userMentionAutoCompleteBoxEvent",B)};
ks.prototype.onDomChange=ks.prototype.onDomChange;ks.prototype.onUserMentionSuggestionSelected=ks.prototype.onUserMentionSuggestionSelected;ks.prototype.onServiceRequestError=ks.prototype.onServiceRequestError;ks.prototype.onServiceRequestCompleted=ks.prototype.onServiceRequestCompleted;ks.prototype.onServiceRequestSent=ks.prototype.onServiceRequestSent;ks.prototype.onInput=ks.prototype.onInput;_.L([_.J(_.VT),_.H("design:type",Object)],ks.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],ks.prototype,"suggestionsEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],ks.prototype,"suggestionsResponse",void 0);_.L([_.F(),_.H("design:type",Object)],ks.prototype,"activeMention",void 0);_.L([_.jr("#dropdown"),_.H("design:type",Object)],ks.prototype,"dropdown",void 0);_.L([_.jr("#iron-dropdown"),_.H("design:type",Object)],ks.prototype,"ironDropdown",void 0);
_.L([_.nF("input"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ks.prototype,"onInput",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ks.prototype,"onServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ks.prototype,"onServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ks.prototype,"onServiceRequestError",null);_.L([_.nF("yt-user-mention-suggestion-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ks.prototype,"onUserMentionSuggestionSelected",null);
_.L([_.nF("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ks.prototype,"onDomChange",null);_.L([_.Em({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],ks);
_.G(ks,"yt-user-mention-autosuggest-input",function(){if(mu0===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;ho5===void 0&&(ho5=document.createElement("template"));var P=ho5;x.call(c,P.content.cloneNode(!0),B.content.firstChild);mu0=B}B=mu0;return B},{mode:2});var XA=null;
_.Ni({is:"ytd-commentbox",_template:function(){if(jKS!==void 0)return jKS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jKS=B},
behaviors:[_.A7X.YtHostElementBehavior,_.VT,_.s2.YtActionHandlerBehavior,_.Z5.YtComponentBehavior,_.gG.YtRendererstamperBehavior,_.qaZ.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(B,c){return _.X9(B.entities,"aadcGuidelinesStateEntityPayload",c)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(B,c){return _.X9(B.entities,"commentboxStateEntity",c)},
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 _.Sp}},
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:_.T("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.T("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",_.$9(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(B){this.fire(B?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(B){this.set("submitButtonDisabled",void 0);this.clear();B&&this.computeIsEmojiButtonDisplayed_(B)&&(B=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&B.updateEmojiCategories()},
observePrefilledImage_:function(B,c,x){this.isValidPrefilledImage_(B,c,x)&&(this.prefilledAttachment_="image",this.prefilledImageData_=c,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(B,c){this.isValidPrefilledVideo_(B,c)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(B){B&&B.pollData&&B.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(B.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.b9();this.focus()},
detached:function(){document.removeEventListener("tap",_.$9(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(B){B=B.detail;B=B.isCustomEmoji?B.shortcuts[0]:B.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,B);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var B=_.V0();if(B){B=B.getBrowserRangeObject();for(var c=B.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return B;c=c.parentNode}}B=this.getEditableTextArea_();B=_.zg(B,B.childNodes.length);B.select();return B.getBrowserRangeObject()},
insertTextWithEmojis_:function(B,c,x){(c=this.emojiManager.createDocumentFragment(c,!0,!1,x===void 0?!0:x))&&c.childNodes.length!==0&&(B.collapsed||B.deleteContents(),x=c.lastChild,B.insertNode(c),_.vCm(x).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var B=_.V0();if(B){var c=B.JSC$9307_getStartNode(),x=B.JSC$9307_getEndNode();if(Zhx(c)&&Zhx(x)){var P=B.JSC$9307_getStartOffset(),Y;if(_.j2&&c.nodeType===Node.ELEMENT_NODE&&(Y=_.SlI(c)))_.zg(Y,0).select();else{Y=ha(c)?c:_.QE(c,ha);var g=ha(x)?x:_.QE(x,ha);if(Y||g)if(B.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){B=!0;P===c.length&&(B=!1);if(XA==="end"||XA==="right")B=!1;c=c.parentNode;B=[].concat(_.wq(c.parentNode.childNodes)).indexOf(c)+(B?0:1);_.zg(c.parentNode,B).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.SE(x,B.JSC$9307_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),Y.parentNode.insertBefore(c,Y),_.SE(x,B.JSC$9307_getEndOffset(),c,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.SE(c,B.JSC$9307_getStartOffset(),g.nextSibling,1).select():(x=document.createTextNode("\u200b"),g.parentNode.insertBefore(x,g.nextSibling),_.SE(c,B.JSC$9307_getStartOffset(),x,x.length).select()));XA=null}}else XA=
null}else XA=null},
leftKeyPressed_:function(){XA="left"},
rightKeyPressed_:function(){XA="right"},
endKeyPressed_:function(){XA="end"},
maybeDeleteChip_:function(){var B=DSY(!0);if(B){var c=_.V0(),x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();_.E5(x,c,B,B.childNodes.length).select()}},
maybeBackspaceChip_:function(){var B=DSY(!1);if(B){var c=_.V0(),x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();_.E5(x,c,B,0).select()}},
maybeBackspaceChipWordMode_:function(B){var c=_.V0();if(c.isCollapsed()){var x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();var P=ry7(x,c,!0);P&&(_.E5(x,c,P,0).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(B){var c=_.V0();if(c.isCollapsed()){var x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();var P=ry7(x,c,!1);P&&(_.E5(x,c,P,P.childNodes.length).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
onTap_:function(B){if(!B.defaultPrevented&&(B.currentTarget.tagName==="YTD-COMMENTBOX"&&ha(B.target)&&B.preventDefault(),this.isEmojiPickerDisplayed)){var c=this.$$("#emojis"),x=this.$$("#emoji-button"),P=this.getEditableTextArea_();if((B=B.path?B.path:B.composedPath&&B.composedPath())&&!B.includes(c)&&!B.includes(P)&&!B.includes(x))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(B,c,x){return B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c!==void 0&&c.encryptedBlobId!==null&&c.sourceExternalVideoId!==null&&x!==void 0&&x.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(B,c){return B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!c&&!!c.videoRenderer&&!!c.videoRenderer.videoId},
isValidPrefilledAttachment_:function(B,c,x){return this.isValidPrefilledImage_(B,c,x)||this.isValidPrefilledVideo_(B,x)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.T("enable_multi_image_post_creation")){var B=this.$$("ytd-backstage-multi-image-select-renderer");B&&B.hasImages()&&B.cancel()}else(B=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&B.cancel();(B=this.$["poll-attachment"])&&this.hasPoll_&&B.clearPollOptions();(B=this.$["image-poll-attachment"])&&this.hasImagePoll_&&B.resetPollOptions();(B=this.$["quiz-attachment"])&&this.hasQuiz_&&B.resetQuizOptions();
(B=this.$["video-link-attachment"])&&this.hasVideo_&&B.cancel();(B=this.$["access-restrictions-selector"].firstElementChild)&&B.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 _.Y9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Y9(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(B,c){B=fbl(B,this.emojiManager,c).cloneNode(!0);for(c=B.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var x=_.If();_.ix9(x,c);c=x.nextSibling;break;case "DIV":(x=c.lastChild)&&c.nextSibling&&_.EY(_.If(),x);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.lL(_.If(),c);x&&x.nodeName==="BR"&&_.qH(x);x=c;c.hasChildNodes()?(c=c.firstChild,
_.Ao4(x)):(c=c.nextSibling,_.qH(x));break;default:c=c.nextSibling}return RCd(B)},
onAddImageError_:function(B){B.stopPropagation();this.errorMessage_=_.fk(B.detail)},
setTextAreaValue_:function(B){B||(B="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof B==="string"&&(B={runs:[{text:B}]});c.text=B},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();XA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var B=this.getEditableTextArea_();B&&(_.zg(B,B.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.v5("HTML_DIR")==="rtl"){var B=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";B.setAttribute("dir",c)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var B;return aud((B=this.$["quiz-attachment"])==null?void 0:B.getExplanationText())||aud(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var B=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(B=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(B,!0);this.updateCharCount_();this.setSubmitButton_();B=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=B.scrollHeight>B.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var B=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:B})},
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(B){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(B)},
onPasteEmoji_:function(B){B.preventDefault();B.stopImmediatePropagation();B=B.clipboardData.getData("text/plain");this.insertText_(B,!1,!1)},
insertText_:function(B,c,x){c=c===void 0?!1:c;x=x===void 0?!0:x;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&B){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(c&&this.emojiInput.offsetStartOfRangeBy(P,B.length),this.insertTextWithEmojis_(P,B,x),Hhl(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,B),this.updateSuggestionOffset_(P)))}},
setSubmitButton_:function(){if(this.data){var B=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",c=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(B||c){var x=this.getTextAreaValue().trim();c=x===this.previousText_;x=!x||this.aboveCharLimit_;B&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(x=this.aboveCharLimit_);this.submitButtonDisabled=
c||x||!this.getTextLength();B&&_.T("enable_post_scheduling")&&(this.submitButtonDisabled=c&&!this.scheduledPublishTimeSec_||x)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.iG,computeCreationBoxClass_:function(B){return B?"focused":"not-focused"},
computeFooterMessageClass_:function(B,c){return c?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(B,c){return c?c:B},
computeFooterMessageHidden_:function(B,c){return!c&&!B},
computePlaceholderText_:function(B,c,x){return(x==="video"||x==="image")&&(B==null?0:B.prefilledPlaceholderText)?B==null?void 0:B.prefilledPlaceholderText:c==="poll"||c==="image-poll"?B==null?void 0:B.pollPostPlaceholderText:c==="quiz"?B==null?void 0:B.quizPostPlaceholderText:c==="image"?B==null?void 0:B.imagePostPlaceholderText:B==null?void 0:B.placeholderText},
computeHideAttachmentButtons_:function(B,c,x,P){return B===void 0?!1:P&&this.getSimpleString(P)===this.getSimpleString(B.rateLimitErrorMessage)?!0:c!=="none"||x!=="none"||!B.videoLinkButton&&!B.pollButton&&!B.imagePollButton&&!B.quizButton&&!B.imageButton},
computeHideDismissableAttachment_:function(B){return B!=="image"&&B!=="video"},
computeHasVideo_:function(B){return B==="video"},
computeHasImage_:function(B){return B==="image"},
computeHasPoll_:function(B){return B==="poll"},
computeHasImagePoll_:function(B){return B==="image-poll"},
computeHasQuiz_:function(B){return B==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(B){return B&&B.backstageAttachment?B.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!B.backstageAttachment.quizRenderer&&!B.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(B){if(this.isValidPrefilledAttachment_(B.purpose,B.prefilledImageData,B.backstageAttachment))return B.backstageAttachment},
computeEditAttachment_:function(B){if(this.computePrefilledContent_(B)===void 0)return B.backstageAttachment},
computeAuthorThumbnailDimension_:function(B,c){return B&&!c?24:40},
computeImageUploadEndpoint_:function(B){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",B)},
computeRateLimitErrorCommands_:function(B){var c,x;return B==null?void 0:(c=B.advancedTierFeatures)==null?void 0:(x=c.rateLimit)==null?void 0:x.rateLimitCommands},
computeIsBackstageComment_:function(B){return!(!B||B!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(B){return this.get("submitButton.buttonRenderer.serviceEndpoint",B)||this.get("replyButton.buttonRenderer.serviceEndpoint",B)||this.get("postButton.buttonRenderer.serviceEndpoint",B)},
computeSubmitButtonOverride:function(){if(_.T("web_modern_buttons")){var B,c;return{segmentedPosition:this.dropdownSchedulePanel_||!((B=this.data)==null?0:(c=B.postOptionsMenu)==null?0:c.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.T("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(B,c){B=this.get("submitButton.buttonRenderer",B)||this.get("replyButton.buttonRenderer",B)||this.get("postButton.buttonRenderer",B);c&&(B=c);B&&(B=Object.assign({},B),B.serviceEndpoint=void 0,B.isDisabled=this.submitButtonDisabled);return B},
computeHasExternalLinksAccess_:function(B){if(_.T("enable_rfa_external_links")){var c,x,P;return(P=B==null?void 0:(c=B.advancedTierFeatures)==null?void 0:(x=c.externalLinks)==null?void 0:x.allowExternalLinks)!=null?P:!0}return!0},
computeIsEmojiButtonDisplayed_:function(B){return B.emojiButton&&B.emojiPicker&&B.emojiPicker.emojiPickerRenderer&&B.emojiPicker.emojiPickerRenderer.categories?B.emojiPicker.emojiPickerRenderer.categories.find(function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(B){return B.charLimit?B.charLimit:null},
computeDropdownSchedulingPanel_:function(B,c){if(B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c)return c},
computeInlineSchedulingPanel_:function(B,c){if(B==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c)return c},
computeHideAuthorThumbnail_:function(B,c){return B||this.computeUseIdentityChip_(c)},
computeHideIdentityChipRenderer_:function(B,c){return B||!this.computeUseIdentityChip_(c)},
computeUseIdentityChip_:function(B){return!!B&&!!B.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(B){var c,x,P,Y;(B==null?0:(c=B.detail)==null?0:(x=c.endpoint)==null?0:x.ypcGetOffersEndpoint)||(B==null?0:(P=B.detail)==null?0:(Y=P.endpoint)==null?0:Y.ypcOffersEndpoint)?(B.stopPropagation(),_.kC(this,[B.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",B)&&(B.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(B){this.addedAttachment="video";this.selectedVideoId_=B.detail.videoId},
commentboxStateEntityChanged_:function(B){var c=this;(B==null?void 0:B.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(B==null?void 0:B.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){c.focus()})},
onYtServiceRequestSent_:function(B,c){if(c.actions)for(B=_.p(c.actions),c=B.next();!c.done;c=B.next())c.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(B){this.isLoading=!1;var c=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",B),x,P,Y,g=B==null?void 0:(x=B.detail)==null?void 0:(P=x.data)==null?void 0:(Y=P.actionResult)==null?void 0:Y.commentboxStateEntityKey;if(c)this.errorMessage_=c;else if(g){var k;this.dismissData_=B==null?void 0:(k=B.detail)==null?void 0:k.data;this.commentboxStateKey_=g}else{this.clear();var n;this.fire("yt-commentbox-dismiss",B==null?void 0:(n=B.detail)==
null?void 0:n.data)}},
onYtServiceRequestError_:function(B){B.stopPropagation();this.isLoading=!1;var c,x;if(((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((x=this.data)==null?void 0:x.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(c=this.get("detail.error.args",B)||[],c.length>1&&c[1].message){this.handlePostsServiceRequestError_(c[1].message);return}(B=this.get("detail.error.message",B))?this.errorMessage_=this.data.errorMessage||_.fk(B):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(B){if(_.T("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var c=_.p(this.rateLimitErrorCommands),x=c.next();!x.done;x=c.next())if(x=x.value,x.errorLabel===B){_.KL(x.command,this.hostElement);return}this.errorMessage_=_.fk(B)},
submitIfNotBackstagePost_:function(B){if(!this.isBackstagePost)this.onSubmit_(B)},
onSubmit_:function(B){var c=this,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E;return _.X(function(S){switch(S.nextAddress){case 1:B.stopPropagation();if(!c.serviceEndpoint||!c.isValidInput_())return S.return();if(c.shouldShowPostAadcNotice_())return c.showPostAadcNotice_(),S.return();if(c.shouldShowCommentAadcNotice_())return c.showCommentAadcNotice_(),S.return();if(!(c.$$("ytd-backstage-multi-image-select-renderer")&&c.hasImage_&&_.T("enable_multi_image_post_creation"))){S.jumpTo(2);break}x=c.$$("ytd-backstage-multi-image-select-renderer");
return _.K(S,x.getAllUploadStatuses(),3);case 3:P=S.yieldResult;if(!P)return S.return();Y=_.p(P);for(g=Y.next();!g.done;g=Y.next())if(k=g.value,k.encryptedBlobId===void 0)return c.isLoading=!1,b=n=void 0,c.errorMessage_=(b=(n=c.imageUploadEndpoint_)==null?void 0:n.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,S.return();return S.return(c.submitForm_(void 0,void 0,void 0,void 0,x.images,c.taggedVideoId_));case 2:if(!c.hasImagePoll_||!c.$["image-poll-attachment"]){S.jumpTo(4);
break}return _.K(S,c.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:d=S.yieldResult;if(!d)return S.return();q=_.p(d);for(C=q.next();!C.done;C=q.next())if(h=C.value,!h.encryptedBlobId)return c.isLoading=!1,V=void 0,c.errorMessage_=(V=c.data.errorMessage)!=null?V:null,S.return();case 4:l=(N=c.$$("ytd-backstage-image-select-renderer"))&&N.uploadPromise(),E=c.getSharedPostId_(),l?l.then(function(){c.submitForm_.apply(c,_.wq(_.ts.apply(0,arguments)))}).catch(function(M){c.isLoading=!1;
c.errorMessage_=_.fk(M.message)}):c.selectedVideoId_?c.submitForm_(void 0,c.selectedVideoId_):c.prefilledAttachment_==="image"?c.submitForm_(c.prefilledImageData_.encryptedBlobId,void 0,void 0,c.prefilledImageData_.sourceExternalVideoId,void 0,c.taggedVideoId_):c.prefilledAttachment_==="video"?c.submitForm_(void 0,c.data.backstageAttachment.videoRenderer.videoId):E?c.submitForm_(void 0,void 0,E):c.taggedVideoId_!==void 0?c.submitForm_(void 0,void 0,void 0,void 0,void 0,c.taggedVideoId_):c.submitForm_(),
_.Kq(S)}})},
openSchedulingPanel:function(B){B&&B.scheduleButton&&B.scheduleButton.buttonRenderer&&(this.scheduleButton_=B.scheduleButton.buttonRenderer);B&&B.dateTimePicker&&this.set("data.schedulingDateTimePicker",B.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(B){B.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(B){B.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(B){B.stopPropagation();B.detail.alertMessage&&(this.alertMessage_=B.detail.alertMessage)},
onImageSelected_:function(B){B.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(B){B.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(B){B.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(B.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(B){B.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(B){var c=this.$["video-link-attachment"];c&&c.onLaunchVideoPicker(B)},
onAttachmentDismiss_:function(B){B.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"&&_.T("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.T("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 B;if(this.addedAttachment==="image-poll"&&((B=this.$["image-poll-attachment"])==null||!B.isValid()))return!1;var c;if(this.addedAttachment==="quiz"&&((c=this.$["quiz-attachment"])==null||!c.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;B=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(B=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")B=!0;return B||!!this.getTextAreaValue().trim()},
submitForm_:function(B,c,x,P,Y,g){var k=this.getTextAreaValue().trim(),n={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&k===this.previousText_&&(k=void 0);k!==void 0&&(n.comment_text=k);this.isLoading=!0;g!=void 0&&(n.tagged_video_id=g);B?(n.image_blob_id=B,this.imagePreviewCoordinates_&&(n.image_preview_coordinates=this.imagePreviewCoordinates_)):c?n.attached_video_id=c:x?n.shared_post_id=x:Y&&Y.length>0&&(n.images_data=Y.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
P&&(n.source_video_id=P);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(n.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(n.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(n.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.T("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(n.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.T("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(n.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.kC(this,[this.serviceEndpoint,n])},
onIsInputFocusChanged_:function(B,c){B?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(B){var c=this.getEditableTextArea_();[].concat(_.wq(B.dataTransfer.items)).forEach(function(x){x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(P){c.appendChild(document.createTextNode(P))})});
B.preventDefault()},
preventDefault_:function(B){B.preventDefault()},
onSuggestionInsert_:function(B){this.insertTextWithEmojis_(B.detail.range,B.detail.text)},
onEmojiSuggestionClick_:function(B){this.emojiInput.insertSuggestion(B.detail)},
computeSubmitButtonClass_:function(B,c){return!c||B?"":"with-options"},
updateSuggestionOffset_:function(B){if(this.emojiInput&&_.Y9(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,x=B.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-x)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;B=B.getBoundingClientRect().left-c;_.Y9(this.emojiInput).querySelector("#dropdown").style.marginLeft=B+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(B){if(_.T("enable_post_scheduling")&&this.data&&this.data.purpose){B=B.detail;if(Math.floor(Date.now()/1E3)>=B)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var c=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(c)||c!==B?this.scheduledPublishTimeSec_=B:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=B;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var B=["image-button","image-poll-button","poll-button"];_.T("enable_quiz_creation")&&B.push("quiz-button");_.T("auto_convert_posts_video_tag")||B.push("video-link-button");return B},
getButtonRenderer:function(B,c){if(B)switch(c){case "video-link-button":var x;return((x=B.videoLinkButton)==null?void 0:x.buttonRenderer)||void 0;case "image-button":var P;return((P=B.imageButton)==null?void 0:P.buttonRenderer)||void 0;case "poll-button":var Y;return((Y=B.pollButton)==null?void 0:Y.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=B.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var k;return((k=B.quizButton)==null?void 0:k.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var B;return(B=this.data)==null||!B.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var B,c;return!((B=this.data)==null||!B.openAadcDialog)&&!((c=this.aadcGuidelinesState_)==null||!c.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.v5("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var B;((B=this.data)==null?0:B.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.vA("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(B){B.clickTrackingParams&&_.q_().clickCommand(B);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.gj(this,"yt-close-popup-action")},
onHideIdentityChip:function(B){var c;this.set("data.placeholderText",(c=B.hideIdentityChipAction)==null?void 0:c.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var $s=function(){var B=_.z.apply(this,arguments)||this;B.isOpen=!1;B.modern=_.T("web_modern_buttons");B.roundedContainer=!0;B.dropdownButtonOverride=_.T("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;B.inPopupContainer=!1;B.isCommentboxLoading=!1;var c=["image-button","image-poll-button","poll-button"];_.T("enable_quiz_creation")&&c.push("quiz-button");_.T("auto_convert_posts_video_tag")||c.push("video-link-button");B.attachmentButtonIds=c;B.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 B};
_.w($s,_.z);_.a=$s.prototype;_.a.computeButtonOverride=function(){var B;return((B=this.data)==null?0:B.postOptionsMenu)&&_.T("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.a.configureRendererStamper=function(){var B={"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]]"}}}}};_.T("auto_convert_posts_video_tag")||(B["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return B};
_.a.ready=function(){var B=this,c=_.Y9(this.hostElement).querySelector("#placeholder-area"),x=function(P){B.onOpen(P)};
c.addEventListener("tap",x);c.addEventListener("keypress",x)};
_.a.showButtonEduTooltip=function(){var B,c,x,P,Y,g,k;if(_.T("enable_quiz_creation")&&((B=this.data)==null?0:(c=B.quizButton)==null?0:(x=c.buttonRenderer)==null?0:(P=x.hint)==null?0:(Y=P.hintRenderer)==null?0:(g=Y.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.cl.getInstance(),B=xg(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(B==null?void 0:
B.length)>0)){this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.quizButton}});return}var n;if((n=this.data)==null?0:n.imagePollButtonTooltip)if(_.cl.getInstance(),n=xg(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0){this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imagePollButton}});return}var b;_.T("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.cl.getInstance(),b=xg(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.a.onCreatePollAction=function(B){_.t(B,XGZ)&&(this.JSC$13746_commentbox.addedAttachment="poll",this.openDialog())};
_.a.onAddVideoLinkAction=function(B){if(_.t(B,ko9))this.JSC$13746_commentbox.onAddVideoLink(B)};
_.a.onShowSchedulingPanelCommand=function(B){(B=_.t(B,SBF))&&this.openSchedulingPanel(B)};
_.a.onCreateImagePollCommand=function(B){_.t(B,im9)&&(this.JSC$13746_commentbox.openImagePollComponent(),this.openDialog())};
_.a.onCreateQuizCommand=function(B){_.t(B,AZy)&&(this.JSC$13746_commentbox.openQuizComponent(),this.openDialog())};
_.a.openSchedulingPanel=function(B){_.T("enable_post_scheduling")&&(this.openDialog(),this.JSC$13746_commentbox.openSchedulingPanel(B))};
_.a.onCreateCommentAction=function(B){this.get("createCommentAction.contents",B)&&(this.JSC$13746_commentbox.clear(),this.closeDialog())};
_.a.onOpen=function(B){B instanceof KeyboardEvent&&B.type==="keypress"&&B.keyCode!==13&&B.keyCode!==32||(this.data.prepareAccountEndpoint?_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.a.onYtCommentboxDismiss=function(){this.closeDialog()};
_.a.onYtCommentboxLoadingStart=function(B){B.stopPropagation();this.isCommentboxLoading=!0};
_.a.onYtCommentboxLoadingEnd=function(B){B.stopPropagation();this.isCommentboxLoading=!1};
_.a.onYtVideoLinkButtonCancel=function(B){B.stopPropagation();this.onOpen(B)};
_.a.onYtVideoLinkSelected=function(B){B.stopPropagation();this.onOpen(B)};
_.a.onIronSelect=function(B){B.stopPropagation();B.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=B.detail.item.value&&(this.accessRestriction?(this.accessRestriction=B.detail.item.value,this.onOpen(B)):this.accessRestriction=B.detail.item.value)};
_.a.onYtNavigate=function(B){this.get("detail.endpoint.backstageImageUploadEndpoint",B)&&(this.JSC$13746_commentbox.addedAttachment="image",this.JSC$13746_commentbox.submitButtonDisabled=!0,this.onOpen(B))};
_.a.onRequestSent=function(B){if(_.T("web_button_rework"))for(var c=_.p(B.detail),x=c.next();!x.done;x=c.next())_.t(x.value,aW9)&&(this.JSC$13746_commentbox.addedAttachment="image",this.JSC$13746_commentbox.submitButtonDisabled=!0,this.onOpen(B))};
_.a.openDialog=function(){this.JSC$13746_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13746_commentbox.focus()};
_.a.onPopupClosed=function(){_.cl.getInstance()};
_.a.computeCreationDisabled=function(B){return!!B};
_.a.computeIsCreationDialog=function(B){return!!B&&B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.a.computeDisabledPostButton=function(B){if(!B)return null;B.isDisabled=!0;return B};
_.a.computeIsCreationDialogWithHeader=function(B){return!this.inPopupContainer&&!!B&&!!B.authorText&&B.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.a.computeIsHeaderHidden=function(B,c){return!B||c};
_.a.computeDropdownRendererClasses=function(B){return B?["text-secondary-style"]:[]};
_.a.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var B=_.Y9(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;B&&B.reset()};
$s.prototype.onPopupClosed=$s.prototype.onPopupClosed;$s.prototype.onRequestSent=$s.prototype.onRequestSent;$s.prototype.onYtNavigate=$s.prototype.onYtNavigate;$s.prototype.onIronSelect=$s.prototype.onIronSelect;$s.prototype.onYtVideoLinkSelected=$s.prototype.onYtVideoLinkSelected;$s.prototype.onYtVideoLinkButtonCancel=$s.prototype.onYtVideoLinkButtonCancel;$s.prototype.onYtCommentboxLoadingEnd=$s.prototype.onYtCommentboxLoadingEnd;$s.prototype.onYtCommentboxLoadingStart=$s.prototype.onYtCommentboxLoadingStart;
$s.prototype.onYtCommentboxDismiss=$s.prototype.onYtCommentboxDismiss;$s.prototype.showButtonEduTooltip=$s.prototype.showButtonEduTooltip;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],$s.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],$s.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$s.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"isOpen",void 0);_.L([_.F({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],$s.prototype,"buttonOverride",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"modern",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"roundedContainer",void 0);_.L([_.F(),_.H("design:type",Object)],$s.prototype,"dropdownButtonOverride",void 0);_.L([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.H("design:type",Boolean)],$s.prototype,"creationDisabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],$s.prototype,"enableCreationBox",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.H("design:type",Boolean)],$s.prototype,"isCreationDialog",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"inPopupContainer",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.H("design:type",Boolean)],$s.prototype,"isCreationDialogWithHeader",void 0);_.L([_.F(),_.H("design:type",Object)],$s.prototype,"accessRestriction",void 0);
_.L([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.H("design:type",Array)],$s.prototype,"dropdownRendererClasses",void 0);_.L([_.F(),_.H("design:type",Object)],$s.prototype,"isCommentboxLoading",void 0);_.L([_.F(),_.H("design:type",Array)],$s.prototype,"attachmentButtonIds",void 0);_.L([_.jr("#image-button"),_.H("design:type",HTMLElement)],$s.prototype,"imageButton",void 0);
_.L([_.jr("#image-poll-button"),_.H("design:type",HTMLElement)],$s.prototype,"imagePollButton",void 0);_.L([_.jr("#quiz-button"),_.H("design:type",HTMLElement)],$s.prototype,"quizButton",void 0);_.L([_.jr("#commentbox"),_.H("design:type",Object)],$s.prototype,"JSC$13746_commentbox",void 0);_.L([_.bF("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"showButtonEduTooltip",null);
_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtCommentboxDismiss",null);_.L([_.nF("yt-commentbox-loading-start"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtCommentboxLoadingStart",null);
_.L([_.nF("yt-commentbox-loading-end"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtCommentboxLoadingEnd",null);_.L([_.nF("yt-video-link-button-cancel"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtVideoLinkButtonCancel",null);
_.L([_.nF("yt-video-link-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtVideoLinkSelected",null);_.L([_.nF("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onIronSelect",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onYtNavigate",null);
_.L([_.nF("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onRequestSent",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],$s);
_.G($s,"ytd-backstage-post-dialog-renderer",function(){if(AQn!==void 0)return AQn;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return AQn=B},{mode:1});var NN3;var IJZ;var ns=function(){return _.z.apply(this,arguments)||this};
_.w(ns,_.z);_.a=ns.prototype;_.a.computeHeartButtonStyle=function(B){return(B==null?0:B.styleType)?B.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.a.onYtButtonTap=function(){if(this.data.isEnabled){var B=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(B=this.getEndpoint(B))&&_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})}else(B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(B)};
_.a.toggle=function(B){this.set("data.isHearted",B!==void 0?B:!this.data.isHearted)};
_.a.getEndpoint=function(B){var c,x=(c=this.data)==null?void 0:c.heartEndpoint,P;c=(P=this.data)==null?void 0:P.unheartEndpoint;if(x&&c)return B?c:x};
_.a.computeButtonAccessibility=function(B,c){var x,P,Y=B==null?void 0:(x=B.heartedAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label,g,k;B=B==null?void 0:(g=B.unheartedAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label;return c?Y:B};
_.AJ.Object.defineProperties(ns.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 B;return _.T("kevlar_system_icons")&&!((B=this.data)==null||!B.isHearted)}}});
ns.prototype.onYtButtonTap=ns.prototype.onYtButtonTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],ns.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ns.prototype,"data",void 0);_.L([_.Q("data.isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],ns.prototype,"heartTooltip",null);
_.L([_.Q("data.isHearted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ns.prototype,"iconFilled",null);_.L([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.H("design:type",String)],ns.prototype,"buttonAccessibility",void 0);_.L([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],ns.prototype,"heartButtonStyle",void 0);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ns.prototype,"onYtButtonTap",null);_.L([_.y({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ns);
_.G(ns,"ytd-creator-heart-renderer",function(){if(IJZ!==void 0)return IJZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return IJZ=B},{mode:1});var bl=function(){var B=_.z.apply(this,arguments)||this;B.hasCreatorReply=!1;B.buttonOverrides={size:"S",iconPosition:"icon-only"};B.replyButtonOverrides={size:"S",type:"text"};B.forceIconButton=!_.T("web_modern_buttons");B.modern=_.T("web_modern_buttons");B.buttonTooltipPosition="bottom";B.systemIcons=_.T("kevlar_system_icons");B.replyDialog=null;return B};
_.w(bl,_.z);_.a=bl.prototype;
_.a.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]]"}}}}}};
_.a.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.a.dataChange=function(){this.replyDialog&&_.Y9(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var B,c,x;this.isLiked=this.systemIcons&&!!((B=this.data)==null?0:(c=B.likeButton)==null?0:(x=c.toggleButtonRenderer)==null?0:x.isToggled)};
_.a.computeShowVoteCountBeginning=function(B,c){return B===void 0||c===void 0?!0:B.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.a.computeShowVoteCountEnd=function(B,c){return B===void 0||c===void 0?!0:B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.a.computeShowCommentCount=function(B,c){return B===void 0||c===void 0?!0:B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.a.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.a.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.a.showReplyDialog=function(B){B&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Y9(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=B,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.a.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.a.onRequestSent=function(B){if(_.T("web_button_rework")){B=_.p(B.detail);for(var c=B.next();!c.done;c=B.next())(c=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",c.value))&&this.showReplyDialog(c)}};
_.a.onYtNavigate=function(B){var c,x;(B=(c=_.t(B.detail.endpoint,_.sX3))==null?void 0:(x=c.dialog)==null?void 0:x.commentReplyDialogRenderer)&&this.showReplyDialog(B)};
_.a.onYtServiceRequestSent=function(B,c){B.stopPropagation();if(c.actions)for(B=0;B<c.actions.length;B++){var x=_.t(c.actions[B],bY9);x&&this.handleUpdateCommentVoteAction(x)}};
_.a.handleUpdateCommentVoteAction=function(B){this.voteCount=B.voteCount||_.fk("0");B.voteStatus==="LIKE"?this.JSC$13757_ytdDislikeToggleButtonRenderer.toggle(!1):B.voteStatus==="DISLIKE"?this.JSC$13757_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13757_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13757_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.a.computeReplyButtonHidden=function(B){return B};
_.a.computeReplyButtonBeginning=function(B){return(B==null?0:B.replyButton)&&B.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?B.replyButton:void 0};
_.a.computeReplyButtonEnd=function(B){return(B==null?0:B.replyButton)&&B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?B.replyButton:void 0};
_.a.computeActionButtonStyle=function(B){return(B==null?0:B.style)?B.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.a.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.a.onYtToggleButton=function(B){var c,x;this.isLiked=this.systemIcons&&!!((c=B.detail)==null?0:(x=c.actions)==null?0:x.like)};
bl.prototype.onYtToggleButton=bl.prototype.onYtToggleButton;bl.prototype.onButtonTooltipPositionChanged=bl.prototype.onButtonTooltipPositionChanged;bl.prototype.onYtServiceRequestSent=bl.prototype.onYtServiceRequestSent;bl.prototype.onYtNavigate=bl.prototype.onYtNavigate;bl.prototype.onRequestSent=bl.prototype.onRequestSent;bl.prototype.onYtCommentboxDismiss=bl.prototype.onYtCommentboxDismiss;bl.prototype.dataChange=bl.prototype.dataChange;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"voteCount",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"commentCount",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"replyThumbnail",void 0);
_.L([_.F(),_.H("design:type",Object)],bl.prototype,"hasCreatorReply",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],bl.prototype,"enableCreationBox",void 0);_.L([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],bl.prototype,"actionButtonsStyle",void 0);_.L([_.F({computed:"computeReplyButtonBeginning(data)"}),_.H("design:type",Object)],bl.prototype,"replyButtonBeginning",void 0);
_.L([_.F({computed:"computeReplyButtonEnd(data)"}),_.H("design:type",Object)],bl.prototype,"replyButtonEnd",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"buttonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"replyButtonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"forceIconButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],bl.prototype,"useCommentIcon",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bl.prototype,"modern",void 0);_.L([_.F(),_.H("design:type",Object)],bl.prototype,"buttonTooltipPosition",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bl.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],bl.prototype,"isLiked",void 0);_.L([_.jr("ytd-button-renderer"),_.H("design:type",Object)],bl.prototype,"ytdReplyButtonRenderer",void 0);
_.L([_.jr("#like-button"),_.H("design:type",Object)],bl.prototype,"JSC$13757_ytdLikeToggleButtonRenderer",void 0);_.L([_.jr("#dislike-button"),_.H("design:type",Object)],bl.prototype,"JSC$13757_ytdDislikeToggleButtonRenderer",void 0);_.L([_.jr("#reply-dialog"),_.H("design:type",HTMLElement)],bl.prototype,"replyDialogElement",void 0);_.L([_.jr("#reply-button"),_.H("design:type",HTMLElement)],bl.prototype,"replyButtonElement",void 0);
_.L([_.jr("#reply-button-end"),_.H("design:type",HTMLElement)],bl.prototype,"replyButtonEndElement",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bl.prototype,"dataChange",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],bl.prototype,"onYtCommentboxDismiss",null);
_.L([_.nF("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],bl.prototype,"onRequestSent",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],bl.prototype,"onYtNavigate",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],bl.prototype,"onYtServiceRequestSent",null);_.L([_.bF("buttonTooltipPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bl.prototype,"onButtonTooltipPositionChanged",null);
_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],bl.prototype,"onYtToggleButton",null);_.L([_.y({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],bl);
_.G(bl,"ytd-comment-action-buttons-renderer",function(){if(NN3!==void 0)return NN3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return NN3=B},{mode:1});var Jk0;var Ks=function(){return _.z.apply(this,arguments)||this};
_.w(Ks,_.z);Ks.prototype.focus=function(){_.Y9(this.hostElement).querySelector("#commentbox").focus()};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ks.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Ks.prototype,"zeroStepChannelCreationRenderer",void 0);_.L([_.y({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Ks);
_.G(Ks,"ytd-comment-dialog-renderer",function(){if(Jk0!==void 0)return Jk0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Jk0=B},{mode:1});var WZI;var jL=function(){var B=_.z.apply(this,arguments)||this;B.buttonOverrides={size:"S",iconPosition:"icon-only"};B.replyButtonOverrides={size:"S",type:"text"};return B};
_.w(jL,_.z);_.a=jL.prototype;_.a.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.a.detached=function(){this.replyBox&&this.replyBox.remove()};
_.a.showReplyDialog=function(B){if(B){var c=this.replyBox;c||(c=document.createElement("ytd-comment-reply-dialog-renderer"),c.id="replybox",_.Y9(this.replyDialogDiv).appendChild(c));c.data=B;this.replyDialogDiv.hidden=!1;c.openDialog()}};
_.a.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.a.onYtServiceRequestSent=function(B,c){B.stopPropagation();if(c.actions)for(var x=0;x<c.actions.length;x++){var P=_.t(c.actions[x],bY9);P?this.handleUpdateCommentVoteAction(P):B.target===this.heartButton&&this.toggleHeartState()}};
_.a.handleUpdateCommentVoteAction=function(B){var c;(c=this.toolbarState)!=null&&c.key&&this.ytdReduxBehavior.dispatch(_.Wv("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:B.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":B.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.a.toggleHeartState=function(){var B;(B=this.toolbarState)!=null&&B.key&&this.ytdReduxBehavior.dispatch(_.Wv("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.AJ.Object.defineProperties(jL.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return(((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(c=this.toolbarData)==null?void 0:c.likeCountLiked:(x=this.toolbarData)==null?void 0:x.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand)!==void 0&&!_.T("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c=_.t((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand,_.Fo),x,P,Y,g,k,n,b,d,q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((x=this.toolbarSharedData)==null||!x.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:c!=null?c:_.t((Y=this.toolbarSurface)==null?void 0:Y.likeCommand,_.Fo),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.t((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.Fo),defaultCommand:this.isVisiblyDisabled?_.t((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Fo):void 0,defaultTooltip:(n=this.toolbarData)==null?void 0:n.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(d=this.toolbarData)==null?void 0:d.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(q=this.toolbarSharedData)==null?void 0:q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c=_.t((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand,_.Fo),x,P,Y,g,k,n,b,d,q,C;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((x=this.toolbarSharedData)==null||!x.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.t((Y=this.toolbarSurface)==null?void 0:Y.dislikeCommand,_.Fo),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.t((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.Fo),defaultCommand:this.isVisiblyDisabled?_.t((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Fo):void 0,defaultTooltip:(n=this.toolbarData)==null?void 0:n.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(d=this.toolbarSharedData)==null?void 0:d.dislikeReplyButtonA11y:(q=this.toolbarSharedData)==null?void 0:q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(C=this.toolbarSharedData)==null?void 0:C.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c,x;if(((B=this.toolbarState)==null?void 0:B.heartState)!==void 0&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((x=this.toolbarState)==null?void 0:x.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var P,Y,g,k,n,b,d,q,C,h,V,N,l,E;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(P=this.toolbarData)==null?void 0:P.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((n=this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.t((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.Fo),unheartEndpoint:this.isVisiblyDisabled?void 0:_.t((d=this.toolbarSurface)==null?void 0:d.unheartCommand,_.Fo),disabledEndpoint:this.isVisiblyDisabled?_.t((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.Fo):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(C=this.toolbarData)==null?void 0:C.heartActiveTooltip,unheartedTooltip:(h=this.toolbarData)==null?void 0:h.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((V=
this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(N=this.toolbarSharedData)==null?void 0:N.unheartButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(E=this.toolbarSharedData)==null?void 0:E.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.toolbarSurface)==null||!B.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(B=this.commentStrings)==null?void 0:B.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.t((c=this.toolbarSurface)==null?void 0:c.replyCommand,_.Fo),command:this.isVisiblyDisabled?_.t((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,
_.Fo):this.isSubscribersOnlyComments?_.t((P=this.toolbarSurface)==null?void 0:P.subscribersOnlySnackbarCommand,_.Fo):void 0}}}});
jL.prototype.onYtServiceRequestSent=jL.prototype.onYtServiceRequestSent;jL.prototype.hideReplyDialogDiv=jL.prototype.hideReplyDialogDiv;_.L([_.F(),_.H("design:type",Object)],jL.prototype,"commentStrings",void 0);_.L([_.F(),_.H("design:type",Boolean)],jL.prototype,"isReply",void 0);_.L([_.F(),_.H("design:type",Object)],jL.prototype,"toolbarData",void 0);_.L([_.F(),_.H("design:type",Object)],jL.prototype,"toolbarSharedData",void 0);
_.L([_.F(),_.H("design:type",String)],jL.prototype,"toolbarStateKey",void 0);_.L([_.F(),_.H("design:type",String)],jL.prototype,"toolbarSurfaceKey",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],jL.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.jr("#reply-dialog"),_.H("design:type",HTMLElement)],jL.prototype,"replyDialogDiv",void 0);_.L([_.jr("#replybox"),_.H("design:type",Object)],jL.prototype,"replyBox",void 0);_.L([_.jr("ytd-creator-heart-renderer"),_.H("design:type",Object)],jL.prototype,"heartButton",void 0);_.L([_.F({selector:function(B,c){return _.X9(B.entities,"engagementToolbarStateEntityPayload",c)},
selectorArgs:["toolbarStateKey"]}),_.H("design:type",Object)],jL.prototype,"toolbarState",void 0);_.L([_.F({selector:q$I,selectorArgs:["toolbarSurfaceKey"]}),_.H("design:type",Object)],jL.prototype,"toolbarSurface",void 0);_.L([_.F(),_.H("design:type",Object)],jL.prototype,"buttonOverrides",void 0);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jL.prototype,"hideReplyDialogDiv",null);
_.L([_.Q("toolbarData","toolbarState"),_.H("design:type",String),_.H("design:paramtypes",[])],jL.prototype,"likeCount",null);_.L([_.Q("likeCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jL.prototype,"showLikeCount",null);_.L([_.Q("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jL.prototype,"isVisiblyDisabled",null);_.L([_.Q("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jL.prototype,"isSubscribersOnlyComments",null);
_.L([_.Q("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jL.prototype,"hasPrepareAccountCommand",null);_.L([_.Q("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],jL.prototype,"likeToggleButtonRenderer",null);_.L([_.Q("isReply","toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],jL.prototype,"dislikeToggleButtonRenderer",null);
_.L([_.Q("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],jL.prototype,"creatorHeartSupportedRenderer",null);_.L([_.Q("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jL.prototype,"hasReplyCommand",null);_.L([_.Q("toolbarSurface","commentStrings","isVisiblyDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],jL.prototype,"replyButtonRenderer",null);
_.L([_.F(),_.H("design:type",Object)],jL.prototype,"replyButtonOverrides",void 0);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],jL.prototype,"onYtServiceRequestSent",null);_.L([_.y({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],jL);
_.G(jL,"ytd-comment-engagement-bar",function(){if(WZI!==void 0)return WZI;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WZI=B},{mode:1});var lJF;var Uo=function(){return _.z.apply(this,arguments)||this};
_.w(Uo,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Uo.prototype,"data",void 0);_.L([_.y({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Uo);
_.G(Uo,"ytd-comment-inline-thumbnail-renderer",function(){if(lJF!==void 0)return lJF;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return lJF=B},{mode:1});var EhI;var de=function(){return _.z.apply(this,arguments)||this};
_.w(de,_.z);de.prototype.onMessageTap=function(){if(this.onTapCommand){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);B&&this.ytdOpenPopupBehavior.openPopup(B)}};
_.AJ.Object.defineProperties(de.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return(B=this.data)==null?void 0:(c=B.button)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.command}}});
_.L([_.J(_.uD),_.H("design:type",Object)],de.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],de.prototype,"data",void 0);_.L([_.Q("data.button.buttonRenderer.command"),_.H("design:type",Object),_.H("design:paramtypes",[])],de.prototype,"onTapCommand",null);_.L([_.y({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],de);
_.G(de,"ytd-comment-pause-composer-renderer",function(){if(EhI!==void 0)return EhI;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return EhI=B},{mode:1});var OeQ;var oh5;var qI=function(){var B=_.z.apply(this,arguments)||this;B.isOpen=!1;return B};
_.w(qI,_.z);_.a=qI.prototype;_.a.dataChanged=function(){this.isOpen=!1};
_.a.onTap=function(){this.data&&(this.data.navigationEndpoint?_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.a.focus=function(){this.JSC$13785_commentbox.focus()};
_.a.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.a.openDialog=function(){this.isOpen=!0;this.JSC$13785_commentbox.focus();this.JSC$13785_commentbox.maybeHeightChanged()};
qI.prototype.onYtCommentboxDismiss=qI.prototype.onYtCommentboxDismiss;qI.prototype.dataChanged=qI.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],qI.prototype,"isOpen",void 0);_.L([_.jr("#commentbox"),_.H("design:type",Object)],qI.prototype,"JSC$13785_commentbox",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qI.prototype,"dataChanged",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qI.prototype,"onYtCommentboxDismiss",null);_.L([_.y({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],qI);
_.G(qI,"ytd-comment-reply-dialog-renderer",function(){if(oh5!==void 0)return oh5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return oh5=B},{mode:1});var QKt;var Cs=function(){return _.z.apply(this,arguments)||this};
_.w(Cs,_.z);_.AJ.Object.defineProperties(Cs.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.icon)==null?void 0:c.iconType;return x?"yt-icons:"+x.toLowerCase():null}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cs.prototype,"data",void 0);_.L([_.F(),_.Q("data.icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],Cs.prototype,"icon",null);_.L([_.y({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Cs);
_.G(Cs,"ytd-pinned-comment-badge-renderer",function(){if(QKt!==void 0)return QKt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QKt=B},{mode:1});var FZS;var vh5={},zoZ={input:!0,meta:!0,br:!0,link:!0,img:!0},hl=null;vh5.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(){hl==null&&(hl=document.createElement("tp-yt-paper-tooltip"),hl.offset=8,hl.fitToVisibleBounds=!0)},
onMouseOver_:function(B){if(B=_.QE(B.target,function(Y){return Y==this||Y.getAttribute&&Y.getAttribute("shared-tooltip-text")}.bind(this),!0)){var c=B.getAttribute("shared-tooltip-text");
if(c){var x=this,P=null;B!=this&&(B.tagName.toLowerCase()in zoZ?x=B.parentElement:x=B,B.id&&(P=B.id));this.polymerController.createTooltipIfRequired_();if(hl.parentElement!=x||hl.for!=P)(0,_.pF)(hl).textContent=c,_.Y9(x).appendChild(hl),hl.for=P,hl.animationDelay=this.polymerController.sharedTooltipAnimationDelay,hl.position=this.polymerController.sharedTooltipPosition}}}};var mR=function(){return _.z.apply(this,arguments)||this};
_.w(mR,_.z);mR.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]]"}}}}}};
mR.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
mR.prototype.colorChanged=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.color)==null?void 0:(x=c.basicColorPaletteData)==null?void 0:x.foregroundBodyColor;P&&(this.rgbBadgeColor=_.zF(P));_.Y9(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
mR.prototype.tooltipChanged=function(){var B;((B=this.data)==null?0:B.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
mR.prototype.tooltipChanged=mR.prototype.tooltipChanged;mR.prototype.colorChanged=mR.prototype.colorChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(vh5.YtSharedTooltipBehavior),_.H("design:type",Object)],mR.prototype,"ytSharedTooltipBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mR.prototype,"data",void 0);
_.L([_.F({value:"#4285F4"}),_.H("design:type",String)],mR.prototype,"rgbBadgeColor",void 0);_.L([_.bF("data.color"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mR.prototype,"colorChanged",null);_.L([_.bF("data.tooltip"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mR.prototype,"tooltipChanged",null);_.L([_.y({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],mR);
_.G(mR,"ytd-sponsor-comment-badge-renderer",function(){if(FZS!==void 0)return FZS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return FZS=B},{mode:1});var S8Q;var yk9;var TY=function(){return _.z.apply(this,arguments)||this};
_.w(TY,_.z);TY.prototype.computeState=function(B){switch(B==null?void 0:B.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"}};
TY.prototype.updateStateIdentifier=function(B){if(this.viewModel.triStateKey){var c=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Wv("triStateButtonStateEntityPayload",c,{key:c,stateIdentifier:B}))}};
TY.prototype.onClick=function(){var B=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(){B.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){B.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.AJ.Object.defineProperties(TY.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 B;return((B=this.data)==null?void 0:B.buttonText)||""}}});
_.L([_.F(),_.H("design:type",Object)],TY.prototype,"viewModel",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],TY.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],TY.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.L([_.F({selector:C2A,selectorArgs:["viewModel.triStateKey"]}),_.H("design:type",Object)],TY.prototype,"triStateButtonStateEntity",void 0);
_.L([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.H("design:type",String)],TY.prototype,"state",void 0);_.L([_.Q("viewModel","state"),_.H("design:type",Object),_.H("design:paramtypes",[])],TY.prototype,"data",null);_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],TY.prototype,"buttonText",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],TY);
_.G(TY,"ytd-tri-state-button-view-model",function(){if(yk9!==void 0)return yk9;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yk9=B},{mode:1});var GsZ;var MHy;var VU=function(){var B=_.z.apply(this,arguments)||this;B.defaultIconToFilled=!_.T("kevlar_fill_comment_chip_icon_killswitch");return B};
_.w(VU,_.z);VU.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
VU.prototype.dataChanged=function(){if(this.data){var B,c;((B=this.data.chipColorPalette)==null?0:B.backgroundColor)&&((c=this.data.chipColorPalette)==null?0:c.foregroundTitleColor)&&_.k9(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.SF(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.SF(this.data.chipColorPalette.foregroundTitleColor)});var x;((x=this.data)==null?0:x.command)?(_.k9(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.k9(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}};
VU.prototype.onTap=function(){var B;if(this.data&&(B=this.data)!=null&&B.command){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.command)}};
VU.prototype.getIconSize=function(){return _.T("kevlar_fill_comment_chip_icon_killswitch")?24:12};
VU.prototype.onTap=VU.prototype.onTap;VU.prototype.dataChanged=VU.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],VU.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.VT),_.H("design:type",Object)],VU.prototype,"ironA11yKeysBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VU.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],VU.prototype,"basePriceText",void 0);_.L([_.F(),_.H("design:type",Object)],VU.prototype,"chipIcon",void 0);_.L([_.F(),_.H("design:type",Object)],VU.prototype,"defaultIconToFilled",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VU.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VU.prototype,"onTap",null);
_.L([_.Em({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],VU);
_.G(VU,"yt-pdg-comment-chip-renderer",function(){if(MHy===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;GsZ===void 0&&(GsZ=document.createElement("template"));var P=GsZ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);MHy=B}B=MHy;return B},{mode:2});var tl=function(){var B=_.z.apply(this,arguments)||this;B.useSmallAvatars=_.T("small_avatars_for_comments");B.webWatchCompactComments=_.T("web_watch_compact_comments");B.editDialog=null;return B};
_.w(tl,_.z);_.a=tl.prototype;_.a.onShow=function(){_.oJ("cmv",void 0,"wn_comments")};
_.a.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"}}}};
_.a.detached=function(){this.editDialog=null;this.expander.reset()};
_.a.updateBackgroundColor=function(){if(this.backgroundColor){var B={"--ytd-comment-paid-background-color":_.SF(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.k9(this.hostElement,B)}else _.k9(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.a.resetExpander=function(){var B;(B=this.expander)==null||B.reset()};
_.a.openEditDialog=function(B){B.dialog&&(this.editDialog=B.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.a.onYtNavigate=function(B){var c=B.detail.endpoint;if(c=_.t(c,_.pLW)||_.t(c,_.kxd))B.stopPropagation(),this.openEditDialog(c)};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null;_.k9(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.a.onAuthorThumbnailClicked=function(){var B=this;_.T("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(c,x){B.onAuthorThumbnailEndpointSuccess(x)},
onServerError:function(c,x){_.Ob(new _.mc("Failed to resolve the command",x))}}})};
_.a.onAuthorThumbnailEndpointSuccess=function(B){if((B=B==null?void 0:B.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(B,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();B=B==null?void 0:B.clickTrackingParams;var c=_.Jg();B&&c&&_.q_().graftServerVe(B,c)}};
_.a.logScreenVe=function(){_.kk(_.q_(),66557)};
_.a.onYtCommentboxResize=function(B){var c;(B==null?0:(c=B.detail)==null?0:c.height)&&_.k9(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":B.detail.height+"px"})};
_.AJ.Object.defineProperties(tl.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 B,c=(B=this.commentEntity)==null?void 0:B.author;return c&&(c.isCreator||c.isVerified||c.isArtist)?{renderer:{authorEndpoint:c.channelPageEndpoint?_.t(c.channelPageEndpoint,_.Fo):_.t(c.channelCommand,_.Fo),authorText:{runs:[{text:c.displayName}]},color:c.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:c.isArtist?{iconType:"AUDIO_BADGE"}:
c.isVerified?{iconType:c.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:c.isArtist||c.isVerified?c.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.commentEntity)==null?void 0:B.author;return c!=null&&c.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:c.sponsorBadgeUrl}]},tooltip:c.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return _.t((B=this.commentSurfaceEntity)==null?void 0:B.pdgCommentChip,_.z5F)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var B;return this.voiceReplyContainerViewModel&&((B=this.voiceReplyContainerViewModel)==null?void 0:B.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return _.t((B=this.commentSurfaceEntity)==null?void 0:B.voiceReplyContainerViewModel,myI)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var B;return this.voiceReplyContainerViewModel&&(B=this.voiceReplyContainerViewModel)!=null&&B.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.commentSurfaceEntity)==null?void 0:B.commentBackgroundColor)!=null?c:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var B,c;return(((B=this.commentEntity)==null?void 0:(c=B.properties)==null?void 0:c.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var B,c;if(_.T("enable_profile_cards_on_comments")&&((B=this.commentEntity)==null?0:(c=B.author)==null?0:c.profileCardEndpoint)&&this.viewModel.allowProfileCard){var x,P;return _.t((x=this.commentEntity)==null?void 0:(P=x.author)==null?void 0:P.profileCardEndpoint,_.Fo)}var Y,g;return _.t((Y=this.commentEntity)==null?void 0:(g=Y.avatar)==null?void 0:g.endpoint,_.Fo)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var B,c;if(_.T("enable_profile_cards_on_comments")&&((B=this.commentEntity)==null?0:(c=B.author)==null?0:c.channelPageEndpoint)){var x,P;return _.t((x=this.commentEntity)==null?void 0:(P=x.author)==null?void 0:P.channelPageEndpoint,_.Fo)}var Y,g;return _.t((Y=this.commentEntity)==null?void 0:(g=Y.avatar)==null?void 0:g.endpoint,_.Fo)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y=(B=this.commentEntity)==null?void 0:(c=B.avatar)==null?void 0:(x=c.image)==null?void 0:(P=x.sources)==null?void 0:P[0];return Y?{thumbnails:[{url:Y.url,width:Y.width,height:Y.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.commentEntity)==null?0:(c=B.author)==null?0:c.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.commentEntity)==null?void 0:(c=B.author)==null?void 0:c.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.commentEntity)==null?void 0:(c=B.properties)==null?void 0:c.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var B;return _.t((B=this.commentSurfaceEntity)==null?void 0:B.publishedTimeCommand,_.Fo)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var B,c;if(((B=this.commentEntity)==null?0:B.translatedContent)&&((c=this.translateButtonState)==null?void 0:c.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var x;if((x=this.voiceReplyContainerViewModel)==null?0:x.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var P,Y;return((P=this.commentEntity)==null?void 0:(Y=P.properties)==null?void 0:Y.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.commentSharedEntity)==null?void 0:(c=B.strings)==null?void 0:c.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.commentSharedEntity)==null?void 0:(c=B.strings)==null?void 0:c.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.commentEntity)==null||!B.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var B,c,x=(c=_.t((B=this.viewModel)==null?void 0:B.translateButton,hFW))!=null?c:{},P,Y,g,k,n,b,d,q,C,h,V;return Object.assign({},x,{untoggledStateData:Object.assign({},x.untoggledStateData,{buttonText:(P=this.commentEntity)==null?void 0:(Y=P.translateData)==null?void 0:Y.text}),togglingStateData:Object.assign({},x.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(k=g.strings)==null?void 0:k.translatingText}),toggledStateData:Object.assign({},x.toggledStateData,{buttonText:(n=this.commentSharedEntity)==null?void 0:(b=n.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((d=this.commentEntity)==null?0:d.translatedContent)?void 0:_.t((q=this.commentEntity)==null?void 0:(C=q.translateData)==null?void 0:C.translateComment,_.Fo),triStateKey:(h=this.commentEntity)==null?void 0:(V=h.properties)==null?void 0:V.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((c=_.t(_.t((B=this.toolbarSurface)==null?void 0:B.menuCommand,_.Fo),XLm))==null?void 0:(x=c.menu)==null?void 0:x.menuRenderer)||null}}});
tl.prototype.onYtCommentboxResize=tl.prototype.onYtCommentboxResize;tl.prototype.onYtCommentboxDismiss=tl.prototype.onYtCommentboxDismiss;tl.prototype.onYtNavigate=tl.prototype.onYtNavigate;tl.prototype.resetExpander=tl.prototype.resetExpander;tl.prototype.updateBackgroundColor=tl.prototype.updateBackgroundColor;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],tl.prototype,"ytdReduxBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],tl.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#author-thumbnail > button"),_.H("design:type",HTMLElement)],tl.prototype,"authorThumbnailAnchor",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tl.prototype,"linked",null);
_.L([_.Q("viewModel","linked"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"linkedCommentBadge",null);_.L([_.F({reflectToAttribute:!0}),_.Q("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tl.prototype,"pinned",null);_.L([_.Q("viewModel","pinned"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"pinnedCommentBadge",null);
_.L([_.Q("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"authorCommentBadge",null);_.L([_.F({reflectToAttribute:!0}),_.Q("authorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"hasAuthorBadge",null);_.L([_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"sponsorCommentBadge",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("sponsorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"hasSponsorBadge",null);_.L([_.Q("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"pdgCommentChipRenderer",null);_.L([_.F({reflectToAttribute:!0}),_.Q("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"hasVoiceReply",null);
_.L([_.Q("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"voiceReplyContainerViewModel",null);_.L([_.Q("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"voiceReplyUnavailableText",null);_.L([_.F(),_.H("design:type",Object)],tl.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"viewModel",null);
_.L([_.F({selector:function(B,c){return _.X9(B.entities,"commentSharedEntityPayload",c)},
selectorArgs:["viewModel.sharedKey"]}),_.H("design:type",Object)],tl.prototype,"commentSharedEntity",void 0);_.L([_.F({selector:function(B,c){return _.X9(B.entities,"commentEntityPayload",c)},
selectorArgs:["viewModel.commentKey"]}),_.H("design:type",Object)],tl.prototype,"commentEntity",void 0);_.L([_.F({selector:function(B,c){return _.X9(B.entities,"commentSurfaceEntityPayload",c)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.H("design:type",Object)],tl.prototype,"commentSurfaceEntity",void 0);_.L([_.F({selector:q$I,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.H("design:type",Object)],tl.prototype,"toolbarSurface",void 0);_.L([_.F({selector:C2A,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.H("design:type",Object)],tl.prototype,"translateButtonState",void 0);
_.L([_.Q("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"backgroundColor",null);_.L([_.F({reflectToAttribute:!0}),_.Q("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tl.prototype,"optimalReadingWidthComments",null);_.L([_.jr("ytd-expander"),_.H("design:type",Object)],tl.prototype,"expander",void 0);
_.L([_.bF("backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tl.prototype,"updateBackgroundColor",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tl.prototype,"useSmallAvatars",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tl.prototype,"webWatchCompactComments",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"isReply",null);
_.L([_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"authorThumbnailEndpoint",null);_.L([_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"authorNameEndpoint",null);_.L([_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"authorThumbnail",null);_.L([_.Q("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],tl.prototype,"authorTextClass",null);
_.L([_.Q("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],tl.prototype,"authorChannelName",null);_.L([_.Q("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"publishedTime",null);_.L([_.Q("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"publishedTimeCommand",null);
_.L([_.Q("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"contentText",null);_.L([_.bF("contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tl.prototype,"resetExpander",null);_.L([_.Q("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tl.prototype,"shouldShowReadMoreInitially",null);
_.L([_.Q("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],tl.prototype,"expandText",null);_.L([_.Q("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],tl.prototype,"collapseText",null);_.L([_.Q("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tl.prototype,"shouldShowTranslateButton",null);
_.L([_.Q("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"translateButton",null);_.L([_.Q("toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],tl.prototype,"overflowMenuRenderer",null);_.L([_.F(),_.H("design:type",Object)],tl.prototype,"editDialog",void 0);_.L([_.jr("ytd-comment-dialog-renderer"),_.H("design:type",Object)],tl.prototype,"editCommentDialogContainer",void 0);
_.L([_.jr("ytd-comment-reply-dialog-renderer"),_.H("design:type",Object)],tl.prototype,"editReplyDialogContainer",void 0);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tl.prototype,"onYtNavigate",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tl.prototype,"onYtCommentboxDismiss",null);
_.L([_.nF("yt-commentbox-resize"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tl.prototype,"onYtCommentboxResize",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-comment-view-model"})],tl);
_.G(tl,"ytd-comment-view-model",function(){if(S8Q!==void 0)return S8Q;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return S8Q=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var we=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_modern_buttons");B.isWatchGrid=_.T("kevlar_watch_grid");B.buttonOverrides={style:"call-to-action"};B.JSC$13831_spinnerEl=null;return B};
_.w(we,_.z);_.a=we.prototype;_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.a.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]]"}}}}}};
_.a.attached=function(){this.isShowRepliesVisible=!0};
_.a.dataChanged=function(){var B=this.expanderContents;B&&(B.hidden=!0);this.isLoading=!1};
_.a.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.a.isLoadingChanged=function(){this.isLoading&&!this.JSC$13831_spinnerEl&&(this.JSC$13831_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Y9(this.expanderContents).appendChild(this.JSC$13831_spinnerEl));this.JSC$13831_spinnerEl&&(this.JSC$13831_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var B;(B=this.contents)==null||B.classList.remove("reloading")}};
_.a.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var B=_.t(this.data.viewReplies,_.z3);B&&this.ytRendererBehavior.logExplicitClick(B)};
_.a.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var B=_.t(this.data.hideReplies,_.z3);B&&this.ytRendererBehavior.logExplicitClick(B)};
_.a.isShowMoreChanged=function(){var B=_.Y9(this.hostElement).querySelector("#expander-contents");B&&(B.hidden=this.isShowRepliesVisible)};
_.a.computeAlign=function(){if(this.modern){var B;return!((B=this.data)==null?0:B.viewRepliesCreatorThumbnail)}};
_.AJ.Object.defineProperties(we.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.data)==null?void 0:B.contents;return!!c&&c.length>0&&!!c[c.length-1].continuationItemRenderer}}});
we.prototype.isShowMoreChanged=we.prototype.isShowMoreChanged;we.prototype.isLoadingChanged=we.prototype.isLoadingChanged;we.prototype.triggerFirstContinuation=we.prototype.triggerFirstContinuation;we.prototype.dataChanged=we.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Hz),_.H("design:type",Object)],we.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],we.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],we.prototype,"modern",void 0);_.L([_.F(),_.H("design:type",Boolean)],we.prototype,"isLoading",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],we.prototype,"isShowRepliesVisible",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],we.prototype,"useNewFormatting",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],we.prototype,"isWatchGrid",void 0);_.L([_.F(),_.H("design:type",Object)],we.prototype,"buttonOverrides",void 0);_.L([_.jr("#expander-contents"),_.H("design:type",HTMLElement)],we.prototype,"expanderContents",void 0);_.L([_.jr("ytd-continuation-item-renderer"),_.H("design:type",Object)],we.prototype,"continuationItemRenderer",void 0);_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],we.prototype,"contents",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],we.prototype,"dataChanged",null);_.L([_.Q("data.contents"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],we.prototype,"hasContinuation",null);_.L([_.nF("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],we.prototype,"triggerFirstContinuation",null);
_.L([_.bF("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],we.prototype,"isLoadingChanged",null);_.L([_.bF("isShowRepliesVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],we.prototype,"isShowMoreChanged",null);_.L([_.y({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],we);
_.G(we,"ytd-comment-replies-renderer",function(){if(OeQ!==void 0)return OeQ;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return OeQ=B},{mode:1});var LZ5;var NI=function(){var B=_.z.apply(this,arguments)||this;B.isOpen=!1;B.commentDialog=null;B.useSmallAvatars=_.T("small_avatars_for_comments");B.useSmallAvatarsEngagementPanelOnly=_.T("small_avatars_for_comments_ep");B.placeholderFocusListener=null;B.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return B};
_.w(NI,_.z);_.a=NI.prototype;_.a.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]]"}}}}}};
_.a.ready=function(){var B=this,c=_.Y9(this.hostElement).querySelector("#placeholder-area"),x=_.Y9(this.hostElement).querySelector("#simplebox-placeholder"),P=function(Y){Y.stopPropagation();Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||B.openDialog()};
this.placeholderFocusListener=P;x.addEventListener("focus",this.placeholderFocusListener);c.addEventListener("tap",P);c.addEventListener("keypress",P)};
_.a.maybeRemoveFocusEventListener=function(){var B;(B=this.data)!=null&&B.prepareAccountEndpoint&&!_.T("web_comments_simplebox_modal_focus_on_tap_ks")&&(B=_.Y9(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(B.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.a.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.a.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.T("web_comment_simplebox_resolve_polymer_command_ks")?_.bA.instance.resolveCommand(this.data.prepareAccountEndpoint):_.KL(this.data.prepareAccountEndpoint,this.hostElement);else if(this.data.subscribersOnlySnackbarCommand){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);B&&this.ytdOpenPopupBehavior.openPopup(B)}else this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),
this.isOpen=!0,_.Y9(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()};
_.a.onYtCommentboxDismiss=function(B){B.stopPropagation();this.isOpen=!1};
_.a.onCreateCommentAction=function(B){this.get("createCommentAction.contents",B)&&(this.isOpen=!1)};
_.a.computeCommentDialog=function(B){return{placeholderText:B.placeholderText,authorThumbnail:B.authorThumbnail,submitButton:B.submitButton,imageButton:B.imageButton,cancelButton:B.cancelButton,emojiButton:B.emojiButton,emojis:B.emojis,emojiPicker:B.emojiPicker,aadcGuidelinesStateEntityKey:B.aadcGuidelinesStateEntityKey,openAadcDialog:B.openAadcDialog,unicodeEmojisUrl:B.unicodeEmojisUrl}};
_.a.onHideIdentityChip=function(B){_.t(B,$ym)&&this.set("data.placeholderText",_.t(B,$ym).placeholderText)};
NI.prototype.onYtCommentboxDismiss=NI.prototype.onYtCommentboxDismiss;NI.prototype.dataChanged=NI.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],NI.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],NI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],NI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],NI.prototype,"isOpen",void 0);_.L([_.F(),_.H("design:type",Object)],NI.prototype,"commentDialog",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],NI.prototype,"engagementPanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],NI.prototype,"useSmallAvatars",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],NI.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],NI.prototype,"enableCreationBox",void 0);_.L([_.F(),_.H("design:type",Boolean)],NI.prototype,"showCreateDialog",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NI.prototype,"dataChanged",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],NI.prototype,"onYtCommentboxDismiss",null);_.L([_.y({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],NI);
_.G(NI,"ytd-comment-simplebox-renderer",function(){if(LZ5!==void 0)return LZ5;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return LZ5=B},{mode:1});var Ze3;_.o2("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var In=function(){var B=_.z.apply(this,arguments)||this;B.addHoverEffect=_.T("swatcheroo_comments_hover_effect");return B};
_.w(In,_.z);In.prototype.onTap=function(B){if(this.addHoverEffect&&!this.engagementPanel&&!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||_.KL({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
In.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.AJ.Object.defineProperties(In.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.commentViewModel)return _.t(this.data.commentViewModel,CJn)}}});
In.prototype.onTap=In.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],In.prototype,"addHoverEffect",void 0);_.L([_.F(),_.H("design:type",Object)],In.prototype,"data",void 0);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],In.prototype,"commentViewModel",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],In.prototype,"engagementPanel",void 0);_.L([_.nF("tap"),_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],In.prototype,"onTap",null);_.L([_.y({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],In);
_.G(In,"ytd-comment-thread-renderer",function(){if(Ze3!==void 0)return Ze3;var B=document.createElement("template");_.I(B,'\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<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ze3=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var HeZ;var Jl=function(){var B=_.z.apply(this,arguments)||this;B.modernTypography=_.T("web_modern_typography");B.compactHeader=_.T("web_watch_compact_comments_header");B.hidePanelButton=!1;B.isPostSchedulingEnabled=_.T("enable_post_scheduling");B.hasFinishedStamping=!1;B.JSC$13849_handleOpenPostCommentDialogActionAfterStamp=!1;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.w(Jl,_.z);_.a=Jl.prototype;
_.a.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"}}}};
_.a.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.a.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13849_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.a.onYtServiceRequestSent=function(B,c){if(!_.T("kevlar_command_handler")&&c.actions)for(B=0;B<c.actions.length;B++){var x=c.actions[B];_.t(x,SBF)&&_.Y9(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.t(x,SBF))}};
_.a.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var B;if(this.getPrefilledBackstagePostDialog((B=this.data)==null?void 0:B.actions)){_.Y9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var c=_.Y9(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;c&&_.fl(this,function(){c.focus();c.openDialog&&c.openDialog()})}}else this.hasActionsChange=!0};
_.a.computeIsBackstage=function(B){return B};
_.a.onYtCommentboxDismiss=function(){_.Y9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.a.removePrefilledDialog=function(B){if(B==null?0:B.actions){for(var c=B.actions.length-1;c>=0;c--){var x=void 0;((x=_.t(B.actions[c],gbZ))==null?0:x.dialog)&&delete B.actions[c]}this.set("data",void 0);this.set("data",B)}};
_.a.getPrefilledBackstagePostDialog=function(B){if(B)for(var c=0;c<B.length;c++){var x=B[c],P=void 0;if((P=_.t(x,gbZ))==null?0:P.dialog)return _.t(x,gbZ).dialog}return null};
_.a.computeBackstagePostDialog=function(B){return B&&(this.getPrefilledBackstagePostDialog(B.actions)||B.createRenderer)};
_.a.dataChanged=function(){if(this.data){var B=this.data.customEmojis,c=this.data.unicodeEmojisUrl;_.Sp.clear();c&&_.AN0(_.Sp,c);B&&_.Sp.load(B)}};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){var B=_.Y9(this.hostElement).querySelector("ytd-comment-simplebox-renderer");B?B.openDialog():this.JSC$13849_handleOpenPostCommentDialogActionAfterStamp=!0};
_.AJ.Object.defineProperties(Jl.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.T("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g,k;return!this.hidePanelButton&&_.T("kevlar_watch_comments_panel_button")&&((k=_.t((B=this.data)==null?void 0:(c=B.sortMenu)==null?void 0:(x=c.sortFilterSubMenuRenderer)==null?void 0:(P=x.subMenuItems)==null?void 0:(Y=P[0])==null?void 0:(g=Y.serviceEndpoint)==null?void 0:g.commandMetadata,_.Br))==null?void 0:k.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Up("MINIPLAYER_EXPAND_LABEL"),text:_.fk(_.Up("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Jl.prototype.dataChanged=Jl.prototype.dataChanged;Jl.prototype.onYtCommentboxDismiss=Jl.prototype.onYtCommentboxDismiss;Jl.prototype.observePrefilledBackstagePostDialog=Jl.prototype.observePrefilledBackstagePostDialog;Jl.prototype.onYtServiceRequestSent=Jl.prototype.onYtServiceRequestSent;Jl.prototype.onStampFinished=Jl.prototype.onStampFinished;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Jl.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Jl.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jl.prototype,"modernTypography",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jl.prototype,"compactHeader",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Jl.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Object)],Jl.prototype,"hidePanelButton",void 0);_.L([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Jl.prototype,"isBackstage",void 0);_.L([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.H("design:type",Object)],Jl.prototype,"backstagePostDialog",void 0);
_.L([_.F(),_.H("design:type",Object)],Jl.prototype,"isPostSchedulingEnabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jl.prototype,"useSpaceBetween",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data","hidePanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jl.prototype,"showCommentsPanelButton",null);
_.L([_.Q("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jl.prototype,"commentsPanelButtonData",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jl.prototype,"onStampFinished",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],Jl.prototype,"onYtServiceRequestSent",null);
_.L([_.bF("data.actions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jl.prototype,"observePrefilledBackstagePostDialog",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Jl.prototype,"onYtCommentboxDismiss",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jl.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Jl);
_.G(Jl,"ytd-comments-header-renderer",function(){if(HeZ!==void 0)return HeZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HeZ=B},{mode:1});var fJZ;var Wd=function(){return _.z.apply(this,arguments)||this};
_.w(Wd,_.z);_.L([_.F(),_.H("design:type",Object)],Wd.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.L([_.y({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Wd);
_.G(Wd,"ytd-destination-button-renderer",function(){if(fJZ!==void 0)return fJZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fJZ=B},{mode:1});var ieQ;var ll=function(){var B=_.z.apply(this,arguments)||this;B.isRichGrid=!1;B.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};B.modernTypography=_.T("web_modern_typography");return B};
_.w(ll,_.z);_.a=ll.prototype;_.a.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.a.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.a.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.a.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var B;if((B=this.data)==null||!B.isExpanded){B=this.hostElement.clientWidth;var c;if(B&&(c=this.data)!=null&&c.destinationButtons){c=Math.floor((B+4)/214);B=this.data.destinationButtons.length;var x=Math.ceil(B/c);this.fullyVisibleRows=B%c===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}}}};
_.a.updateRichGridDestinationButtonsVisibility=function(){var B,c;if(this.isRichGrid&&((B=this.data)==null||!B.isExpanded)&&(c=this.data)!=null&&c.destinationButtons){B=this.richGridItemsPerRow+1;c=this.data.destinationButtons.length;var x=Math.ceil(c/B);this.fullyVisibleRows=c%B===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}};
_.a.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ll.prototype.updateRichGridDestinationButtonsVisibility=ll.prototype.updateRichGridDestinationButtonsVisibility;_.L([_.F(),_.H("design:type",Object)],ll.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Number)],ll.prototype,"fullyVisibleRows",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ll.prototype,"isShowMoreVisible",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ll.prototype,"isRichGrid",void 0);
_.L([_.F({selector:_.lG,value:0}),_.H("design:type",Number)],ll.prototype,"richGridItemsPerRow",void 0);_.L([_.F(),_.H("design:type",Object)],ll.prototype,"gridStateActionMap",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ll.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],ll.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ll.prototype,"modernTypography",void 0);_.L([_.bF("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ll.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.L([_.y({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ll);
_.G(ll,"ytd-destination-shelf-renderer",function(){if(ieQ!==void 0)return ieQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ieQ=B},{mode:1});var AkI;var Eo=function(){return _.z.apply(this,arguments)||this};
_.w(Eo,_.z);Eo.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Eo.prototype,"data",void 0);_.L([_.y({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Eo);
_.G(Eo,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(AkI!==void 0)return AkI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return AkI=B},{mode:1});var ul0;var Oo=function(){var B=_.z.apply(this,arguments)||this;B.disableAnimation=!1;B.isSlimlineSurvey=!1;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;return B};
_.w(Oo,_.z);Oo.prototype.onTap=function(B){B.preventDefault();this.data&&_.aJ(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.AJ.Object.defineProperties(Oo.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 B,c,x,P,Y;return((B=this.data)==null?0:B.checked)?(c=this.data)==null?void 0:(x=c.onStateIcon)==null?void 0:x.iconType:(P=this.data)==null?void 0:(Y=P.defaultStateIcon)==null?void 0:Y.iconType}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Oo.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Oo.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Oo.prototype,"disableAnimation",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Oo.prototype,"isSlimlineSurvey",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Oo.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Oo.prototype,"isShortsStyle",void 0);_.L([_.Q("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oo.prototype,"isAnimatedIcon",null);
_.L([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Number),_.H("design:paramtypes",[])],Oo.prototype,"iconSize",null);_.L([_.Q("isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oo.prototype,"isDarkTheme",null);_.L([_.Q("data.checked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oo.prototype,"icon",null);_.L([_.y({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Oo);
_.G(Oo,"ytd-rating-survey-option-renderer",function(){if(ul0!==void 0)return ul0;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ul0=B},{mode:2});var Dud;var on=function(){var B=_.z.apply(this,arguments)||this;B.firstResponseText=null;B.lastResponseText=null;B.selectedNonStarOption=null;B.hideOptions=!1;B.hideUndoButton=!0;B.disableAnimation=!1;B.showResponseRangeText=!1;B.selectedRatingIndex=-1;B.isSlimlineSurvey=!1;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;B.slimlineSurveyRatingSelectedIndex=-1;return B};
_.w(on,_.z);_.a=on.prototype;_.a.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.a.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.a.onOptionChange=function(B,c){var x=this;B=c.onStateIcon&&c.defaultStateIcon&&c.onStateIcon.iconType===c.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(k,n){k.responseText===c.responseText?x.isSlimlineSurvey?(x.selectedRatingIndex=n,x.ytdReduxBehavior.dispatch(ij0(n))):(x.setSurveyOptionValue(n,!0,"checked"),x.setSurveyOptionValue(n,!0,"selected")):(x.setSurveyOptionValue(n,!1,"checked"),x.setSurveyOptionValue(n,
!1,"selected"))});
else if(B)this.selectedNonStarOption=c,this.hideOptions=!0;else{var P=this.ytRendererBehavior.getSimpleString(c.responseText),Y=!0;this.getOptionRenderers().forEach(function(k,n){x.setSurveyOptionValue(n,Y,"checked");x.setSurveyOptionValue(n,!1,"selected");x.ytRendererBehavior.getSimpleString(k.responseText)===P&&(Y=!1,x.setSurveyOptionValue(n,!0,"selected"))})}B=c.responseEndpoint;
var g;c.followUpCommand&&(g=_.t(c.followUpCommand,o7d));this.isSlimlineSurvey?(this.resetComponent(),_.gj(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.gj(this.hostElement,"ytd-inline-survey-rating-select-action",[B,g])};
_.a.showSelectedOption=function(){var B=this;_.EE.addJob(function(){var c=B.getOptionRenderers()[B.slimlineSurveyRatingSelectedIndex];B.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),c)},8,100)};
_.a.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(B){var c;return(c=_.t(B,Fvt))!=null?c:{}}):[]};
_.a.onUndoClick=function(){this.resetComponent();_.gj(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.a.setSurveyOptionValue=function(B,c,x){this.notifyPath("data.ratings."+B+".ratingSurveyOptionRenderer."+x);this.set("data.ratings."+B+".ratingSurveyOptionRenderer."+x,c)};
_.a.resetComponent=function(){var B=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var c=this.getOptionRenderers(),x,P;this.firstResponseText=(P=(x=c[0])==null?void 0:x.responseText)!=null?P:null;var Y,g;this.lastResponseText=(g=(Y=c[c.length-1])==null?void 0:Y.responseText)!=null?g:null;c.forEach(function(k,n){B.setSurveyOptionValue(n,!1,"checked");B.setSurveyOptionValue(n,!1,"selected")})};
_.AJ.Object.defineProperties(on.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
on.prototype.onOptionChange=on.prototype.onOptionChange;on.prototype.dataChanged=on.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],on.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],on.prototype,"firstResponseText",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"lastResponseText",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"selectedNonStarOption",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"hideOptions",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"hideUndoButton",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"disableAnimation",void 0);
_.L([_.F(),_.H("design:type",Object)],on.prototype,"showResponseRangeText",void 0);_.L([_.F(),_.H("design:type",Object)],on.prototype,"selectedRatingIndex",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],on.prototype,"isSlimlineSurvey",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],on.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],on.prototype,"isShortsStyle",void 0);_.L([_.F({selector:function(B){return B.ui.slimlineSurveyRatingSelectedIndex}}),
_.H("design:type",Object)],on.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.L([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],on.prototype,"isSingleSelect",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],on.prototype,"dataChanged",null);
_.L([_.nF("ytd-rating-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],on.prototype,"onOptionChange",null);_.L([_.y({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],on);
_.G(on,"ytd-rating-survey-renderer",function(){if(Dud!==void 0)return Dud;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Dud=B},{mode:1});var rkW;var Rom;var eoS;var aod=(Ja.FIRSTDAYOFWEEK+1)%7,BO9=function(B,c,x,P){var Y="";if(P.selection&&cQO(P.selection))wc(B,P.selection)&&(Y+=" selected");else if(P.selection&&xtQ(P.selection)){var g=P.selection.selectionState||"START_DATE";wc(B,P.selection.start)&&(Y+=" period-start ",g==="START_DATE"&&(Y+="selected"));wc(B,P.selection.end)&&(Y+=" period-end ",g==="END_DATE"&&(Y+="selected"));Ns(B,P.selection.start)||Ns(P.selection.end,B)||(Y+=" highlighted")}if(Ns(c,P.start)||Ns(P.end,c))Y+=" disabled";P.circleToday&&
wc(c,x)&&(Y+=" today");return Y};var QU=function(){return _.z.apply(this,arguments)||this};
_.w(QU,_.z);_.a=QU.prototype;_.a.attached=function(){var B=this;_.fl(this,function(){B.JSC$13883_calendarMain.scrollHeight>0&&(B.calendarConfig.selection?B.scrollToDate(PwX(B.calendarConfig.selection)):B.scrollToDate(B.calendarConfig.end))})};
_.a.updateSelection=function(B){B=gKx(Object.assign({},this.calendarConfig,{selection:B}),BO9);this.splice.apply(this,["renderData.months",0,B.length].concat(_.wq(B)))};
_.a.scrollToDate=function(B){this.renderData&&(B=sao(B,this.renderData),B!==void 0&&this.JSC$13883_calendarMain.scrollToIndex(B))};
_.a.scrollToNextMonth=function(){this.JSC$13883_calendarMain.scrollToIndex(this.JSC$13883_calendarMain.firstVisibleIndex+1)};
_.a.scrollToPrevMonth=function(){this.JSC$13883_calendarMain.firstVisibleIndex===0&&this.JSC$13883_calendarMain.scrollTo(0,0);this.JSC$13883_calendarMain.scrollToIndex(this.JSC$13883_calendarMain.firstVisibleIndex-1)};
_.a.handleDayClick=function(B){_.gj(this.hostElement,"ytd-calendar-date-clicked",[B.model.day.date])};
_.a.handleDayMouseDown=function(B){B.preventDefault();_.gj(this.hostElement,"ytd-calendar-date-mousedown",[B.model.day.date])};
_.a.handleDayMouseUp=function(B){_.gj(this.hostElement,"ytd-calendar-date-mouseup",[B.model.day.date])};
_.a.handleDayMouseEnter=function(B){B.preventDefault();_.gj(this.hostElement,"ytd-calendar-date-mouseenter",[B.model.day.date])};
_.a.handleDayMouseLeave=function(B){_.gj(this.hostElement,"ytd-calendar-date-mouseleave",[B.model.day.date])};
_.AJ.Object.defineProperties(QU.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var B=this.calendarConfig,c=BO9;c=c===void 0?BO9:c;for(var x=[],P=0;P<7;P++)x.push(Ja.NARROWWEEKDAYS[(P+aod)%7]);return{months:gKx(B,c),daysOfWeekLabel:x}}}});
_.L([_.F(),_.H("design:type",Object)],QU.prototype,"calendarConfig",void 0);_.L([_.jr("#calendar-main"),_.H("design:type",Object)],QU.prototype,"JSC$13883_calendarMain",void 0);_.L([_.Q("calendarConfig"),_.H("design:type",Object),_.H("design:paramtypes",[])],QU.prototype,"renderData",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],QU);
_.G(QU,"ytd-scrollable-calendar",function(){if(eoS!==void 0)return eoS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eoS=B},{mode:2});var czt;var xqn;var FA=function(){var B=_.z.apply(this,arguments)||this;B.hideCharCounter=!1;B.hideLabel=!1;B.noLabelFloat=!1;B.autoValidate=!0;B.invalid=!1;B.disabled=!1;B.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return B};
_.w(FA,_.z);_.a=FA.prototype;_.a.reset=function(B){this.value=B&&this.data?this.data.value=B:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.a.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.a.focusTextInput=function(){this.input.focus()};
_.a.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()};
_.a.valueChanged=function(){var B,c;if(((B=this.data)==null?0:B.value)||((c=this.data)==null?void 0:c.value)==="")this.value=this.data.value;else{var x;((x=this.data)==null?void 0:x.value)!==void 0||this.value||(this.value="")}};
_.a.computeLabel=function(B,c){return c?"":_.iG(B)};
_.a.computeAriaLabel=function(B,c){return c?_.iG(B):""};
_.a.computeErrorMessage=function(B,c,x,P){!B&&c?B=x||this.strings.REQUIRED_LABEL:(B=_.iG(P),B=_.$I(B,"&")?"document"in _.xI?lqx(B):EqO(B):B);return B};
_.a.computeType=function(B){return B==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.a.onTextValueChanged=function(B){this.value=B.detail.value;var c;(c=this.onValueChanged)==null||c.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.a.handleUpdateTextInputFormFieldRendererCommand=function(B){(B=_.t(B,ce5))&&this.data&&this.data.id===B.id&&(B.invalid!==void 0&&(this.invalid=B.invalid),B.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",B.invalidValueErrorMessage))};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("value-changed",this.value))};
_.a.updateInvalidFromBinding=function(B){this.invalid=B.detail.value};
_.AJ.Object.defineProperties(FA.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var B;return!((B=this.data)==null||!B.isMultiline)}}});
FA.prototype.valueChangedForBinding=FA.prototype.valueChangedForBinding;FA.prototype.valueChanged=FA.prototype.valueChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],FA.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],FA.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],FA.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],FA.prototype,"value",void 0);_.L([_.F(),_.H("design:type",String)],FA.prototype,"pattern",void 0);_.L([_.F(),_.H("design:type",String)],FA.prototype,"errorMessage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],FA.prototype,"componentStyle",void 0);_.L([_.F(),_.H("design:type",Object)],FA.prototype,"hideCharCounter",void 0);
_.L([_.F(),_.H("design:type",Object)],FA.prototype,"hideLabel",void 0);_.L([_.F(),_.H("design:type",Object)],FA.prototype,"noLabelFloat",void 0);_.L([_.F(),_.H("design:type",Function)],FA.prototype,"onValueChanged",void 0);_.L([_.F(),_.H("design:type",Boolean)],FA.prototype,"isMultilineOverride",void 0);_.L([_.F(),_.H("design:type",Object)],FA.prototype,"autoValidate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FA.prototype,"invalid",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FA.prototype,"disabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],FA.prototype,"enableOverlayTheme",void 0);_.L([_.F({value:{REQUIRED_LABEL:_.Up("REQUIRED_LABEL",void 0,"Required")}}),_.H("design:type",Object)],FA.prototype,"strings",void 0);_.L([_.jr("#input"),_.H("design:type",Object)],FA.prototype,"input",void 0);
_.L([_.Q("data","isMultilineOverride"),_.H("design:type",Object),_.H("design:paramtypes",[])],FA.prototype,"isMultiline",null);_.L([_.CF("data.value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FA.prototype,"valueChanged",null);_.L([_.bF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FA.prototype,"valueChangedForBinding",null);_.L([_.Em({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],FA);
_.G(FA,"yt-text-input-form-field-renderer",function(){if(xqn===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;czt===void 0&&(czt=document.createElement("template"));var P=czt;x.call(c,P.content.cloneNode(!0),B.content.firstChild);xqn=B}B=xqn;return B},{mode:2});var vd=function(){var B=_.z.apply(this,arguments)||this;B.data=void 0;B.selectionState="START_DATE";B.isStartDateInvalid=!1;B.isEndDateInvalid=!1;B.autoapply=!1;B.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 B};
_.w(vd,_.z);_.a=vd.prototype;_.a.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"}}}}};
_.a.focus=function(){this.startDateInput.focus()};
_.a.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Iv(this.data.selection.start),end:Iv(this.data.selection.end)})};
_.a.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.a.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.kz(this.selectionState)}};
_.a.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.a.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.a.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.a.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var B=this.calendar.calendarConfig,c=B.end;B=k0w({start:B.start,end:this.endDate||c},this.startDateInput.value||"");this.isStartDateInvalid=!B.isValid;B.isValid&&(B=B.value,this.selection=this.endDate?{start:B,end:this.endDate}:B,this.calendar.scrollToDate(B));this.updateInvalidState()}};
_.a.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var B=this.calendar.calendarConfig,c=B.start;B=k0w({start:this.startDate||c,end:B.end},this.endDateInput.value||"");this.isEndDateInvalid=!B.isValid;B.isValid&&(B=B.value,this.selection={start:this.startDate,end:B},this.calendar.scrollToDate(B));this.updateInvalidState()}};
_.a.handleCalendarDateClicked=function(B){var c=this.selection&&PwX(this.selection),x=this.selection&&YW7(this.selection);c&&!Ns(B,c)&&this.selectionState==="END_DATE"?(this.selection={start:c,end:B},this.selectionState="START_DATE"):(x&&!Ns(x,B)?this.selection={start:B,end:x}:this.selection=B,this.selectionState="END_DATE")};
_.a.handleCalendarDateMouseDown=function(B){this.selection&&!cQO(this.selection)&&(this.dragPivot=wc(B,this.selection.start)?this.selection.end:wc(B,this.selection.end)?this.selection.start:B)};
_.a.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.a.handleCalendarDateMouseEnter=function(B){this.dragPivot&&(this.selection={start:function(c,x){return Ns(c,x)?c:x}(this.dragPivot,B),
end:function(c,x){return Ns(c,x)?x:c}(this.dragPivot,B)},this.dragPivot||(this.selectionState="START_DATE"))};
_.a.handleCalendarDateMouseLeave=function(){};
_.a.handleCalendarSubmitDateRange=function(){this.selection&&!cQO(this.selection)&&_.gj(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.a.updateInvalidState=function(){var B=function(c,x){x?c.setAttribute("invalid",""):c.removeAttribute("invalid")};
B(this.startDateInput,this.isStartDateInvalid);B(this.endDateInput,this.isEndDateInvalid)};
_.a.updateDateStrings=function(){this.selection&&(cQO(this.selection)?BIw(this.selection):(BIw(this.selection.start),BIw(this.selection.end)))};
_.a.updateCalendarSelection=function(B){this.calendar.updateSelection(Object.assign({},B,{selectionState:this.selectionState}))};
_.a.updateIsStartDateInvalidFromBinding=function(B){this.isStartDateInvalid=B.detail.value};
_.a.updateIsEndDateInvalidFromBinding=function(B){this.isEndDateInvalid=B.detail.value};
_.a.updateStartDateStringFromBinding=function(){};
_.a.updateEndDateStringFromBinding=function(){};
_.AJ.Object.defineProperties(vd.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Iv(this.data.dateRangeStart),end:Iv(this.data.dateRangeEnd),selection:{start:Iv(this.data.selection.start),end:Iv(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&PwX(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&YW7(this.selection)}}});
vd.prototype.resetTextboxes=vd.prototype.resetTextboxes;vd.prototype.observeSelection=vd.prototype.observeSelection;vd.prototype.dataChanged=vd.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],vd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#calendar"),_.H("design:type",Object)],vd.prototype,"calendar",void 0);
_.L([_.jr("#start-date"),_.H("design:type",Object)],vd.prototype,"startDateInput",void 0);_.L([_.jr("#end-date"),_.H("design:type",Object)],vd.prototype,"endDateInput",void 0);_.L([_.F(),_.H("design:type",Object)],vd.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],vd.prototype,"selection",void 0);_.L([_.F(),_.H("design:type",String)],vd.prototype,"selectionState",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vd.prototype,"calendarConfig",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vd.prototype,"errorMessage",null);_.L([_.Q("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],vd.prototype,"startDate",null);_.L([_.Q("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],vd.prototype,"endDate",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vd.prototype,"dataChanged",null);
_.L([_.bF("selection","selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vd.prototype,"observeSelection",null);_.L([_.bF("selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vd.prototype,"resetTextboxes",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],vd);
_.G(vd,"ytd-date-period-picker-renderer",function(){if(Rom!==void 0)return Rom;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Rom=B},{mode:1});var zY=function(){var B=_.z.apply(this,arguments)||this;var c={};B.actionMap=(c["ytd-date-period-picker-apply"]="handleDateRangeUpdated",c);return B};
_.w(zY,_.z);zY.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
zY.prototype.handleDateRangeUpdated=function(){};
_.L([_.F(),_.H("design:type",Object)],zY.prototype,"data",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],zY.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zY.prototype,"rendererstamperBehavior",void 0);_.L([_.y({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],zY);
_.G(zY,"ytd-report-history-section-header-renderer",function(){if(rkW!==void 0)return rkW;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rkW=B},{mode:1});var Pqd;var Y7Q;var alt;var SL=function(){return _.z.apply(this,arguments)||this};
_.w(SL,_.z);_.AJ.Object.defineProperties(SL.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?0:(c=B.icon)==null?0:c.iconType)?_.$0(this.data.icon.iconType):""}}});
_.L([_.F(),_.H("design:type",Object)],SL.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],SL.prototype,"icon",null);_.L([_.y({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],SL);
_.G(SL,"ytd-report-history-table-text-cell-renderer",function(){if(alt!==void 0)return alt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return alt=B},{mode:1});var yU=function(){return _.z.apply(this,arguments)||this};
_.w(yU,_.z);yU.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yU.prototype,"data",void 0);_.L([_.y({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],yU);
_.G(yU,"ytd-report-history-table-reason-cell-renderer",function(){if(Y7Q!==void 0)return Y7Q;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Y7Q=B},{mode:1});var GY=function(){return _.z.apply(this,arguments)||this};
_.w(GY,_.z);GY.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"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],GY.prototype,"rendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GY.prototype,"data",void 0);_.L([_.y({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],GY);
_.G(GY,"ytd-report-history-table-cell-renderer",function(){if(Pqd!==void 0)return Pqd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return Pqd=B},{mode:1});var gAQ;var MI=function(){var B=_.z.apply(this,arguments)||this;B.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 B};
_.w(MI,_.z);MI.prototype.onDataChanged=function(){var B;if((B=this.data)==null?0:B.style)this.componentStyle=this.getStyleName(this.data.style)};
MI.prototype.getCellForColumn=function(B){return this.cells.find(function(c){var x;return((x=_.t(c==null?void 0:c.cell,SY3)||_.t(c==null?void 0:c.cell,zWS))==null?void 0:x.columnId)===B.type})};
MI.prototype.getClassForColumn=function(B){switch(B){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
MI.prototype.getStyleName=function(B){switch(B){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.AJ.Object.defineProperties(MI.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.cells)||[]).map(function(c){return _.t(c,v7Z)})}}});
MI.prototype.onDataChanged=MI.prototype.onDataChanged;_.L([_.F(),_.H("design:type",Object)],MI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],MI.prototype,"columnRenderData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],MI.prototype,"componentStyle",void 0);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],MI.prototype,"cells",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MI.prototype,"onDataChanged",null);_.L([_.y({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],MI);
_.G(MI,"ytd-report-history-table-row-renderer",function(){if(gAQ!==void 0)return gAQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gAQ=B},{mode:1});var sQI;var pQW;var X1Y={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},$tQ={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Ls=function(){return _.z.apply(this,arguments)||this};
_.w(Ls,_.z);Ls.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"}}}}}};
Ls.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.AJ.Object.defineProperties(Ls.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.columns)?UtQ(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return KMl(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var B=this.tableSpec,c=X1Y;c=c===void 0?$tQ:c;c=jaA(B.columnDimensions,B.columnsToShow||[],c);B=0;c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,B+=x.minWidth+x.paddingLeft+x.paddingRight;return B}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.L([_.J(_.Hz),_.H("design:type",Object)],Ls.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ls.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ls.prototype,"tableSpec",null);_.L([_.Q("tableSpec"),_.H("design:type",Array),_.H("design:paramtypes",[])],Ls.prototype,"columnRenderData",null);
_.L([_.Q("tableSpec"),_.H("design:type",Number),_.H("design:paramtypes",[])],Ls.prototype,"totalMinWidth",null);_.L([_.Q("totalMinWidth"),_.H("design:type",String),_.H("design:paramtypes",[])],Ls.prototype,"tableWidthStyle",null);_.L([_.y({is:"ytd-table-renderer",disableElementRegistration:!0})],Ls);
_.G(Ls,"ytd-table-renderer",function(){if(pQW!==void 0)return pQW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pQW=B},{mode:1});var ZG=function(){return _.z.apply(this,arguments)||this};
_.w(ZG,_.z);ZG.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}}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZG.prototype,"data",void 0);_.L([_.y({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],ZG);
_.G(ZG,"ytd-report-reason-history-modal-renderer",function(){if(sQI!==void 0)return sQI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return sQI=B},{mode:1});var kpQ;var XQt;var $qZ;var Hd=function(){return _.z.apply(this,arguments)||this};
_.w(Hd,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Hd.prototype,"data",void 0);_.L([_.y({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Hd);
_.G(Hd,"ytd-profile-column-stats-entry-renderer",function(){if($qZ!==void 0)return $qZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $qZ=B},{mode:1});var nAt;var fs=function(){return _.z.apply(this,arguments)||this};
_.w(fs,_.z);fs.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fs.prototype,"data",void 0);_.L([_.y({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],fs);
_.G(fs,"ytd-profile-column-stats-renderer",function(){if(nAt!==void 0)return nAt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return nAt=B},{mode:1});var bX4;var il=function(){return _.z.apply(this,arguments)||this};
_.w(il,_.z);_.AJ.Object.defineProperties(il.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.useThumbnailSize)return 80;var c,x;B=(c=this.data)==null?void 0:(x=c.thumbnail)==null?void 0:x.thumbnails;var P;return B&&((P=B[0])==null?void 0:P.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.useThumbnailSize)return 80;var c,x;B=(c=this.data)==null?void 0:(x=c.thumbnail)==null?void 0:x.thumbnails;var P;return B&&((P=B[0])==null?void 0:P.height)||80}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],il.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],il.prototype,"componentStyle",void 0);_.L([_.Q("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],il.prototype,"thumbnailWidth",null);
_.L([_.Q("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],il.prototype,"thumbnailHeight",null);_.L([_.y({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],il);
_.G(il,"ytd-profile-column-user-info-renderer",function(){if(bX4!==void 0)return bX4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bX4=B},{mode:1});var Al=function(){return _.z.apply(this,arguments)||this};
_.w(Al,_.z);Al.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]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Al.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],Al.prototype,"componentStyle",void 0);_.L([_.y({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Al);
_.G(Al,"ytd-profile-column-renderer",function(){if(XQt!==void 0)return XQt;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return XQt=B},{mode:1});var ul=function(){var B=_.z.apply(this,arguments)||this;B.componentStyle="NON_CENTERED_PROFILE";return B};
_.w(ul,_.z);ul.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
ul.prototype.getIcon=function(B){return B?"settings:"+B.toLowerCase():null};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ul.prototype,"data",void 0);_.L([_.y({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],ul);
_.G(ul,"ytd-page-introduction-renderer",function(){if(kpQ!==void 0)return kpQ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kpQ=B},{mode:1});var Kr5;var DG=function(){return _.z.apply(this,arguments)||this};
_.w(DG,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DG.prototype,"data",void 0);_.L([_.y({is:"ytd-report-description-renderer",disableElementRegistration:!0})],DG);
_.G(DG,"ytd-report-description-renderer",function(){if(Kr5!==void 0)return Kr5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Kr5=B},{mode:1});var jQ5;var Uqn;var re=function(){return _.z.apply(this,arguments)||this};
_.w(re,_.z);re.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],re.prototype,"data",void 0);_.L([_.y({is:"ytd-video-report-renderer",disableElementRegistration:!0})],re);
_.G(re,"ytd-video-report-renderer",function(){if(Uqn!==void 0)return Uqn;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Uqn=B},{mode:1});var dq4;_.o2("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.o2("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Rn=function(){return _.z.apply(this,arguments)||this};
_.w(Rn,_.z);Rn.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]]"}}}}}};
Rn.prototype.computeMessageStyle=function(B){return B};
Rn.prototype.computeButtonOverride=function(B){var c;if((B==null?0:(c=B.style)==null?0:c.value)&&B.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Rn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Rn.prototype,"shelf",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Rn.prototype,"panel",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.H("design:type",Boolean)],Rn.prototype,"componentStyle",void 0);_.L([_.F({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],Rn.prototype,"buttonOverride",void 0);_.L([_.y({is:"ytd-message-renderer",disableElementRegistration:!0})],Rn);
_.G(Rn,"ytd-message-renderer",function(){if(dq4!==void 0)return dq4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dq4=B},{mode:1});var eL=function(){return _.z.apply(this,arguments)||this};
_.w(eL,_.z);eL.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"}}}};
eL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
eL.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.AJ.Object.defineProperties(eL.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!(((B=this.data)==null?0:B.header)&&((c=this.data)==null?0:c.table))}}});
eL.prototype.onRequestError=eL.prototype.onRequestError;_.L([_.J(_.Hz),_.H("design:type",Object)],eL.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eL.prototype,"data",void 0);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],eL.prototype,"isUnifiedReportHistory",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eL.prototype,"onRequestError",null);_.L([_.y({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],eL);
_.G(eL,"ytd-report-history-section-renderer",function(){if(jQ5!==void 0)return jQ5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jQ5=B},{mode:1});var q75;var Bt=function(){var B=_.z.apply(this,arguments)||this;B.answerExpanded=!1;return B};
_.w(Bt,_.z);Bt.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Bt.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Bt.prototype,"answerExpanded",void 0);_.L([_.y({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Bt);
_.G(Bt,"ytd-handles-claiming-faq-renderer",function(){if(q75!==void 0)return q75;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return q75=B},{mode:1});var Cqd;var hK9=function(){return _.z.apply(this,arguments)||this};
_.w(hK9,_.z);_.L([_.F(),_.H("design:type",Object)],hK9.prototype,"data",void 0);_.L([_.y({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],hK9);
_.G(hK9,"ytd-handles-claiming-faq-section-renderer",function(){if(Cqd!==void 0)return Cqd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Cqd=B},{mode:1});var mqF;var ct=function(){var B=_.z.apply(this,arguments)||this;B.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";B.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";B.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";B.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";B.leftSquiggly=B.leftSquigglyLight;B.rightSquiggly=B.rightSquigglyLight;
B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return B};
_.w(ct,_.z);_.a=ct.prototype;_.a.updateLeftSquigglyStyle=function(){_.k9(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.a.updateRightSquigglyStyle=function(){_.k9(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.a.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),B?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ct.prototype.updateRightSquigglyStyle=ct.prototype.updateRightSquigglyStyle;ct.prototype.updateLeftSquigglyStyle=ct.prototype.updateLeftSquigglyStyle;_.L([_.F(),_.H("design:type",Object)],ct.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ct.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",String)],ct.prototype,"leftSquiggly",void 0);_.L([_.F(),_.H("design:type",String)],ct.prototype,"rightSquiggly",void 0);
_.L([_.bF("leftSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ct.prototype,"updateLeftSquigglyStyle",null);_.L([_.bF("rightSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ct.prototype,"updateRightSquigglyStyle",null);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ct.prototype,"actionButtonOverride",void 0);_.L([_.y({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ct);
_.G(ct,"ytd-handles-claiming-header-renderer",function(){if(mqF!==void 0)return mqF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mqF=B},{mode:1});var TO3;var xm=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";B.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";B.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";B.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
B.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";B.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";B.image0SquigglyBackground=B.image0LightSquigglyBackground;B.image1SquigglyBackground=B.image1LightSquigglyBackground;B.image3SquigglyBackground=B.image3LightSquigglyBackground;return B};
_.w(xm,_.z);_.a=xm.prototype;_.a.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.a.onDataChanged=function(){this.updateTitleAndImages()};
_.a.onThemeChanged=function(){this.updateTitleAndImages()};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
_.a.updateImage0SquigglyBackground=function(){_.k9(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.a.updateImage1SquigglyBackground=function(){_.k9(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.a.updateImage3SquigglyBackground=function(){_.k9(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.a.updateTitleAndImages=function(){var B,c;((B=this.data)==null?void 0:(c=B.titleImages)==null?void 0:c.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))};
xm.prototype.updateImage3SquigglyBackground=xm.prototype.updateImage3SquigglyBackground;xm.prototype.updateImage1SquigglyBackground=xm.prototype.updateImage1SquigglyBackground;xm.prototype.updateImage0SquigglyBackground=xm.prototype.updateImage0SquigglyBackground;xm.prototype.onThemeChanged=xm.prototype.onThemeChanged;xm.prototype.onDataChanged=xm.prototype.onDataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],xm.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],xm.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"title0",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"title1",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"title2",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"title3",void 0);
_.L([_.F(),_.H("design:type",Object)],xm.prototype,"title4",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"image0",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"image1",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"image2",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"image3",void 0);_.L([_.F(),_.H("design:type",Object)],xm.prototype,"image4",void 0);_.L([_.F(),_.H("design:type",String)],xm.prototype,"image0SquigglyBackground",void 0);
_.L([_.F(),_.H("design:type",String)],xm.prototype,"image1SquigglyBackground",void 0);_.L([_.F(),_.H("design:type",String)],xm.prototype,"image3SquigglyBackground",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xm.prototype,"onDataChanged",null);_.L([_.bF("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xm.prototype,"onThemeChanged",null);
_.L([_.bF("image0SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xm.prototype,"updateImage0SquigglyBackground",null);_.L([_.bF("image1SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xm.prototype,"updateImage1SquigglyBackground",null);
_.L([_.bF("image3SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xm.prototype,"updateImage3SquigglyBackground",null);_.L([_.y({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],xm);
_.G(xm,"ytd-handles-claiming-title-images-section-renderer",function(){if(TO3!==void 0)return TO3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return TO3=B},{mode:1});var VDI;var Pt=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(Pt,_.z);Pt.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
Pt.prototype.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B)};
Pt.prototype.onCopyButtonClick=function(){var B=this,c,x,P;return _.X(function(Y){return(c=B.data)!=null&&c.primaryChannelUrl?_.K(Y,navigator.clipboard.writeText(((x=B.data)==null?0:x.encodedChannelUrl)?B.data.encodedChannelUrl:"https://"+_.iG((P=B.data)==null?void 0:P.primaryChannelUrl)),0):Y.jumpTo(0)})};
_.L([_.F(),_.H("design:type",Object)],Pt.prototype,"data",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Pt.prototype,"ytComponentBehavior",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Pt.prototype,"isDarkTheme",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Pt.prototype,"ytActionHandlerBehavior",void 0);_.L([_.y({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Pt);
_.G(Pt,"ytd-handles-claiming-update-social-renderer",function(){if(VDI!==void 0)return VDI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return VDI=B},{mode:1});var tDI;var Ym=function(){var B=_.z.apply(this,arguments)||this;B.JSC$13977_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";B.JSC$13977_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.squigglyBackground=B.JSC$13977_squigglyBackgroundLight;return B};
_.w(Ym,_.z);Ym.prototype.updateSquigglyBackgroundStyle=function(){_.k9(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Ym.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.squigglyBackground=B?this.JSC$13977_squigglyBackgroundDark:this.JSC$13977_squigglyBackgroundLight};
Ym.prototype.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),this.squigglyBackground=B?this.JSC$13977_squigglyBackgroundDark:this.JSC$13977_squigglyBackgroundLight)};
Ym.prototype.updateSquigglyBackgroundStyle=Ym.prototype.updateSquigglyBackgroundStyle;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Ym.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ym.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ym.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",String)],Ym.prototype,"squigglyBackground",void 0);_.L([_.bF("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ym.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.y({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Ym);
_.G(Ym,"ytd-handles-claiming-vanity-info-renderer",function(){if(tDI!==void 0)return tDI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return tDI=B},{mode:1});var wQ9;var a5=function(){var B=_.z.apply(this,arguments)||this;B.JSC$13980_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";B.JSC$13980_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";B.squigglyBackground=B.JSC$13980_squigglyBackgroundLight;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(a5,_.z);_.a=a5.prototype;_.a.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),this.squigglyBackground=B?this.JSC$13980_squigglyBackgroundDark:this.JSC$13980_squigglyBackgroundLight)};
_.a.updateSquigglyBackgroundStyle=function(){_.k9(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.a.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.a.detached=function(){this.stop()};
_.a.stop=function(){this.playerElement.stop()};
_.a.setupVideoPlayer=function(){var B=this,c,x;return _.X(function(P){c=B.data.videoId;x="http://i1.ytimg.com/vi/"+c+"/maxresdefault.jpg";B.playerElement.loadVideoWithPlayerVars({video_id:c,iurlhq:x});_.Kq(P)})};
a5.prototype.onDataChanged=a5.prototype.onDataChanged;a5.prototype.updateSquigglyBackgroundStyle=a5.prototype.updateSquigglyBackgroundStyle;_.L([_.F({value:!1}),_.H("design:type",Boolean)],a5.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",String)],a5.prototype,"squigglyBackground",void 0);_.L([_.jr("#player"),_.H("design:type",Object)],a5.prototype,"playerElement",void 0);_.L([_.F(),_.H("design:type",Object)],a5.prototype,"data",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],a5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.bF("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"onDataChanged",null);
_.L([_.y({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],a5);
_.G(a5,"ytd-handles-claiming-video-item-renderer",function(){if(wQ9!==void 0)return wQ9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return wQ9=B},{mode:1});var NOF;var sC=function(){var B=_.dM.apply(this,arguments)||this;B.dragging=!1;B.dragMouseStart=0;B.dragOffsetStart=0;B.containerWidthDiff=0;B.boundPrevClick=function(){B.set("offset",g4(B,B.offset-(B.scrollDistance||320)))};
B.boundNextClick=function(){B.set("offset",g4(B,B.offset+(B.scrollDistance||320)))};
B.boundScrollContainerMouseDown=function(c){B.dragMouseStart=c.clientX;B.dragOffsetStart=B.offset;B.dragging=!0};
B.boundScrollContainerDrag=function(c){B.dragging&&B.set("offset",g4(B,B.dragOffsetStart-(c.clientX-B.dragMouseStart)))};
B.boundMouseUp=function(){B.onMouseUp()};
B.boundWheelScroll=function(c){var x=0;Math.abs(c.deltaX)>=Math.abs(c.deltaY)?x=c.deltaX:c.shiftKey&&(x=c.deltaY);x!==0&&(B.offset+=x,c.stopPropagation(),c.preventDefault())};
B.boundChipCloudChipScrollIntoView=function(c){(c=c.detail)&&B.scrollChipIntoView(c)};
return B};
_.w(sC,_.dM);sC.prototype.attached=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container");B.addEventListener("wheel",this.boundWheelScroll);B.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);B.style.touchAction="pan-y";B.addEventListener("pointerdown",this.boundScrollContainerMouseDown);B.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
sC.prototype.detached=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container");B.removeEventListener("wheel",this.boundWheelScroll);B.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);B.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);B.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
sC.prototype.reset=function(){this.set("offset",0);_.fl(this,this.setContainerWidthDiff);p7(this)};
var g4=function(B,c){return Math.min(Math.max(c,0),B.containerWidthDiff)};
sC.prototype.onMouseUp=function(){this.dragging=!1};
sC.prototype.transformContainer=function(){this.offset=g4(this,this.offset);var B=_.v5("HTML_DIR")==="rtl"?"":"-";_.Y9(this.hostElement).querySelector("#chips").style.transform="translateX("+B+this.offset+"px)";p7(this)};
var p7=function(B){_.fl(B,B.setButtonsState)};
sC.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=g4(this,this.offset));this.atStart=this.offset<=0};
sC.prototype.setContainerWidthDiff=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container"),c=_.Y9(this.hostElement).querySelector("#chips");B&&c&&(this.containerWidthDiff=c.clientWidth-B.clientWidth)};
sC.prototype.scrollChipIntoView=function(B){var c=_.Y9(this.hostElement).querySelector("#scroll-container");if(c){var x=this.atStart?0:106,P=this.atEnd?0:106;B.offsetLeft<this.offset+x?this.offset=g4(this,B.offsetLeft-x):B.offsetLeft+B.clientWidth>this.offset+c.clientWidth-P&&(this.offset=g4(this,B.offsetLeft+B.clientWidth+P-c.clientWidth))}};
sC.prototype.transformContainer=sC.prototype.transformContainer;_.L([_.F({value:0}),_.H("design:type",Number)],sC.prototype,"offset",void 0);_.L([_.F({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],sC.prototype,"atStart",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],sC.prototype,"atEnd",void 0);_.L([_.F(),_.H("design:type",Number)],sC.prototype,"scrollDistance",void 0);
_.L([_.bF("offset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sC.prototype,"transformContainer",null);_.L([_.qi()],sC);var IlW;var Jz0;var EA0=_.rM(function(B){var c=B.data;B=_.p(_.$D(!1,void 0,"icHmSe"));var x=B.next().value,P=B.next().value;B={};B=_.Kw("ytChipShapeChip",function(){a:switch(c==null?void 0:c().state){case 0:var g="ytChipShapeActive";break a;case 1:g="ytChipShapeDisabled";break a;default:g="ytChipShapeInactive"}return g},function(){var g=c().type===1||c().type===2,k=c();
return g||k!=null&&k.startIcon?k==null||!k.startIcon||k!=null&&k.text?g?"ytChipShapeEndIconPadding":(k==null?0:k.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(B.ytChipShapeFocused=function(){var g;
return x()&&((g=c())==null?void 0:g.state)!==1},B));
var Y=function(g){if((c==null?void 0:c().state)!==1){var k,n;(n=(k=c()).onTap)==null||n.call(k,g)}};
return _.U("chip-shape",{class:"ytChipShapeHost","on:focusin":_.qe(function(){var g=_.cp().resolve(_.Bp(_.Xr));if(g){P(g.isKeyBoardInUse());var k,n;(n=(k=c()).onFocusIn)==null||n.call(k)}return!1}),
"on:focusout":_.qe(function(){P(!1);return!1})},_.U(Wrd,{shouldWrapInButton:function(){return c().type!==2},
selected:function(){return c().state===0},
onClick:Y,isDropdown:function(){return c().type===1},
accessibilityLabel:function(){return c().accessibilityLabel}},_.U("div",{class:B},_.U(_.m,{cond:function(){return c().startIcon},
then:function(){return _.U(_.Vf,{icon:function(){var g;return(g=c())==null?void 0:g.startIcon},
className:function(){return c().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return c().text},_.U(ll9,{shape:c,
onClick:Y}))))},"zb");
EA0.idomCompat=!0;var Wrd=_.rM(function(B){var c=_.qe(function(x){B.onClick(x);return!1});
return _.U(_.m,{cond:B.shouldWrapInButton,then:function(){return _.U("button",{class:"ytChipShapeButtonReset","on:click":c,role:function(){return B.isDropdown()?"combobox":"tab"},
"aria-label":B.accessibilityLabel,"aria-selected":B.selected},B.children)},
else:function(){return B.children}})},"Ab"),ll9=_.rM(function(B){var c=B.shape;
var x=B.onClick;var P=_.qe(function(Y){x(Y);return!1});
return _.U(_.tR,null,_.U(_.Tu,{when:function(){return c().type===1}},function(){return _.U(_.Vf,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.U(_.Tu,{when:function(){return c().type===2}},function(){return _.U("button",{class:"ytChipShapeButtonReset",
"on:click":P},_.U(_.Vf,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.U(_.Tu,{when:function(){return c().type===0}},function(){return _.U(_.at,null)}))},"Bb");_.xU(EA0,"chip-shape",{props:{data:_.rk}});var km=function(){var B=_.z.apply(this,arguments)||this;B.disableDeselectEvent=!1;B.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return B};
_.w(km,_.z);_.a=km.prototype;_.a.onSelectChipCommand=function(B){if(!this.selected&&this.data&&(B=_.t(B,fZ5),B.targetId&&B.targetId===this.data.targetId))this.onTap()};
_.a.onFilterChipTransformCommand=function(B){if(!this.selected&&this.data){var c;(B=(c=_.t(B,AEQ))==null?void 0:c.chipUniqueId)&&B===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.a.dataChanged=function(){var B=this;_.fl(this,function(){B.data&&B.data.isSelected&&!B.selected&&(B.scrollChipIntoView(),B.onTap())})};
_.a.computeChipStyle=function(B){return B!=null?B:"STYLE_DEFAULT"};
_.a.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.gj(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.gj(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.a.onFocus=function(){var B=_.cp().resolve(_.Bp(_.Xr));B&&B.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.a.scrollChipIntoView=function(){_.aJ(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.AJ.Object.defineProperties(km.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return TIO({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
km.prototype.onFocus=km.prototype.onFocus;km.prototype.onTap=km.prototype.onTap;km.prototype.dataChanged=km.prototype.dataChanged;_.L([_.J(_.Nk),_.H("design:type",Object)],km.prototype,"ironButtonState",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],km.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.VT),_.H("design:type",Object)],km.prototype,"ironA11yKeysBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],km.prototype,"disableDeselectEvent",void 0);_.L([_.F(),_.H("design:type",Object)],km.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.icon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],km.prototype,"hasIcon",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.uniqueId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],km.prototype,"isGnomeChip",null);_.L([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.H("design:type",String)],km.prototype,"chipStyle",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],km.prototype,"selected",void 0);
_.L([_.Q("data","selected"),_.H("design:type",Object),_.H("design:paramtypes",[])],km.prototype,"chipShapeData",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],km.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],km.prototype,"onTap",null);
_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],km.prototype,"onFocus",null);_.L([_.Em({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],km);
_.G(km,"yt-chip-cloud-chip-renderer",function(){if(Jz0===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;IlW===void 0&&(IlW=document.createElement("template"));var P=IlW;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Jz0=B}B=Jz0;return B},{mode:2});var Xx=function(){var B=_.z.apply(this,arguments)||this;B.isDarkTheme=!1;B.notSticky=!1;B.transparentBackground=!1;B.shouldHide=!1;B.disableSticky=!1;B.fluidWidth=!1;B.isClipList=!1;B.defaultChipIndex=0;B.isPlaylist=!1;B.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");B.toolbarHeight=0;B.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return B};
_.w(Xx,_.z);_.a=Xx.prototype;
_.a.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}}}}}};
_.a.attached=function(){var B=this;document.addEventListener("scroll",_.$9(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var c;this.toolbarHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(x){B.handleIntersect(x)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){B.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.a.detached=function(){var B;(B=this.intersectionObserver)==null||B.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect();document.removeEventListener("scroll",_.$9(this,this.updateChipBarWidthAndTop))};
_.a.dataChanged=function(){var B=this,c,x,P;((P=_.t((c=this.data)==null?void 0:(x=c.contents)==null?void 0:x[0],K09))==null?void 0:P.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Y=this.findSelectedChipIndex();this.selectedIndex!==Y&&(this.selectedIndex=-1);_.fl(this,function(){B.selectedIndex=Y;B.updating=!1;B.ytScrollableChipCloudBehavior.reset()})};
_.a.findSelectedChipIndex=function(){var B;if((B=this.data)==null||!B.contents)return 0;B=this.data.contents;for(var c=0;c<B.length;c++){var x=void 0;if((x=_.t(B[c],K09))==null?0:x.isSelected)return c}return 0};
_.a.computeStyle=function(B){return B};
_.a.handleChipCloudChipSelectAction=function(B){B=this.JSC$13999_chipsSelector.indexOf(B);B>-1&&this.JSC$13999_chipsSelector.selectIndex(B)};
_.a.handleChipCloudChipDeselectAction=function(){if(_.T("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],K09))==null?void 0:x.navigationEndpoint;P&&_.gj(this.hostElement,"yt-browse-section-list-reload-endpoint",[P]);this.JSC$13999_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.a.onGuideIsExpandedChanged=function(){var B=this.ytScrollableChipCloudBehavior;_.fl(B,B.setContainerWidthDiff);p7(this.ytScrollableChipCloudBehavior)};
_.a.onResize=function(){var B=this.ytScrollableChipCloudBehavior;_.fl(B,B.setContainerWidthDiff);p7(this.ytScrollableChipCloudBehavior)};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.a.handleIntersect=function(B){this.notSticky=this.isChannelPageGrid||this.disableSticky||B[0].intersectionRatio===1};
_.a.updateDimensions=function(){var B=this.ytRendererBehavior.parentComponent;if(B){var c,x=(c=B.headerElement)!=null?c:B;_.k9(this.hostElement,{"--ytd-rich-grid-chips-bar-width":x.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.a.updateSelectedIndexFromBinding=function(B){this.selectedIndex=B.detail.value};
_.a.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var B;(B=this.sortFilterHeaderRendererElement)==null||B.setAttribute("is-playlist-page-with-filters","")}};
_.a.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(DzS(!this.notSticky))};
_.AJ.Object.defineProperties(Xx.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 B,c,x=(B=this.data)==null?void 0:(c=B.contents)==null?void 0:c.find(function(P){return _.t(P,C9t)});
return{sortFilterHeaderRenderer:_.t(x,C9t)}}}});
Xx.prototype.dispatchChipBarIsSticky=Xx.prototype.dispatchChipBarIsSticky;Xx.prototype.isPlaylistPageChanged=Xx.prototype.isPlaylistPageChanged;Xx.prototype.updateChipBarWidthAndTop=Xx.prototype.updateChipBarWidthAndTop;Xx.prototype.onResize=Xx.prototype.onResize;Xx.prototype.onGuideIsExpandedChanged=Xx.prototype.onGuideIsExpandedChanged;Xx.prototype.dataChanged=Xx.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Xx.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],Xx.prototype,"ironResizableBehavior",void 0);_.L([_.J(),_.H("design:type",sC)],Xx.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Xx.prototype,"ytdReduxBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Xx.prototype,"data",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],Xx.prototype,"selectedIndex",void 0);_.L([_.F({value:320}),_.H("design:type",Number)],Xx.prototype,"scrollDistance",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"notSticky",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"transparentBackground",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.H("design:type",String)],Xx.prototype,"componentStyle",void 0);_.L([_.F({selector:_.YPQ}),_.H("design:type",Boolean)],Xx.prototype,"guideIsExpanded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"shouldHide",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"disableSticky",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"fluidWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"isClipList",void 0);_.L([_.F(),_.H("design:type",Object)],Xx.prototype,"defaultChipIndex",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Xx.prototype,"isPlaylist",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Xx.prototype,"playlistVotingAnimationEnabled",void 0);_.L([_.jr("#chips"),_.H("design:type",Object)],Xx.prototype,"JSC$13999_chipsSelector",void 0);_.L([_.jr("ytd-sort-filter-header-renderer"),_.H("design:type",HTMLElement)],Xx.prototype,"sortFilterHeaderRendererElement",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Xx.prototype,"updating",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"dataChanged",null);_.L([_.bF("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"onGuideIsExpandedChanged",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"onResize",null);
_.L([_.CF("isChannelPageGrid","disableSticky","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"updateChipBarWidthAndTop",null);_.L([_.Q("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Xx.prototype,"isChannelPageGrid",null);_.L([_.Q("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Xx.prototype,"isHashtagLandingPage",null);
_.L([_.bF("isPlaylistPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"isPlaylistPageChanged",null);_.L([_.Q("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Xx.prototype,"isPlaylistPage",null);_.L([_.Q("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Xx.prototype,"isDisableDeselectEvent",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Xx.prototype,"sortFilterHeaderRendererData",null);_.L([_.F({reflectToAttribute:!0,selector:_.X7q}),_.H("design:type",String)],Xx.prototype,"frostedGlassMode",void 0);_.L([_.bF("notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xx.prototype,"dispatchChipBarIsSticky",null);_.L([_.y({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Xx);
_.G(Xx,"ytd-feed-filter-chip-bar-renderer",function(){if(NOF!==void 0)return NOF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return NOF=B},{mode:1});var OXF;var oA4=_.rM(function(B){var c=B.data;var x=B.buttonIndex;var P=B.selectedIndex;var Y=B.onSelect;var g=function(){return x()===P()},k=function(){var n,b;
return(b=(n=c().text)==null?void 0:n.content)!=null?b:""};
B=_.ep$();return _.U("yt-toggleable-image-button-view-model",{class:function(){var n={};n=(n["toggleable-image-button-view-model-wiz"]=!0,n[""]=!0,n["toggleable-image-button-view-model-wiz__semi-transparent"]=P()!==-1&&!g(),n);return _.U9(n)},
tabindex:0,"aria-label":k,"aria-pressed":g,role:"button","on:keydown":B,"on:click":_.qe(function(){Y(c().onSubmitCommand);return!1})},_.U(_.m,{cond:function(){return c().logo},
then:function(n){return _.U(_.D9,{data:n,className:function(){var b={};b=(b["toggleable-image-button-view-model-wiz__image"]=!0,b["toggleable-image-button-view-model-wiz__circular-radius"]=!(!c().backgroundColor||!c().backgroundColorDarkMode),b["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(g()&&c().backgroundColor&&c().backgroundColorDarkMode),b);return _.U9(b)},
alt:k,useWidth:!1,style:function(){if(g()&&c().backgroundColor&&c().backgroundColorDarkMode){var b=yy(Number(c().backgroundColorDarkMode),"1");var d=yy(Number(c().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+d+") border-box;"}else b="";return b}})}}),_.U(_.Ne,{model:{borderRadius:"16px"}}),_.U("p",{class:function(){var n={};
n=(n["toggleable-image-button-view-model-wiz__label"]=!0,n["toggleable-image-button-view-model-wiz__bold-text"]=g(),n);return _.U9(n)}},_.U(_.RF,{text:function(){return c().text}})))},"Cb");
oA4.idomCompat=!0;var FrI=_.rM(function(B){var c=B.data;B=_.p(_.$D({index:-1,command:{}},void 0,"Zcqtsb"));var x=B.next().value,P=B.next().value;return _.U("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.U("div",{class:"nudge-form-view-model-wiz__form-options"},_.U(_.IF,{data:function(){return c().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Y,g){return _.U(oA4,{data:Y.data,buttonIndex:g,selectedIndex:function(){return x().index},
onSelect:function(k){P({index:g(),command:k})}})}})),_.U(_.RF,{text:function(){return c().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.U("div",{class:"nudge-form-view-model-wiz__submit"},_.U(_.IF,{data:function(){return c().submitButton}},{buttonViewModel:function(Y){return _.U(QQn,{data:Y.data,
isDisabled:function(){return x().index===-1},
onClick:function(){_.Gl(x().command)}})}})))},"Db");
FrI.idomCompat=!0;var QQn=_.rM(function(B){var c=_.db(function(){return Object.assign({},B.data(),{state:B.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.U(_.Q7,{data:c,onClick:B.onClick})},"Eb");_.xU(FrI,"yt-nudge-form-view-model",{props:{data:_.rk}});var $m=function(){var B=_.z.apply(this,arguments)||this;B.roundedContainer=!0;B.buttonUpdate=_.T("web_modern_buttons");B.isDarkMode=!1;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return B};
_.w($m,_.z);_.a=$m.prototype;_.a.computeNudgeStyle=function(B){return B?"modernized-nudge":""};
_.a.handleDarkModeToggledAction=function(B){this.isDarkMode=B};
_.a.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.a.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"}}}};
_.a.computeIsHorizontalButtons=function(B){return B?!!B.applyModernizedStyle&&!!B.enableHorizontalButtons&&!!B.secondaryButton:!1};
_.AJ.Object.defineProperties($m.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.data)==null?void 0:B.backgroundStyle)!=null?c:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.data)==null?void 0:B.contentsLocation)!=null?c:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null?0:B.lightIconImage)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],$m.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],$m.prototype,"actionHandlerBehavior",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("isHideEnclosingAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$m.prototype,"isHidden",null);_.L([_.F(),_.H("design:type",Object)],$m.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$m.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$m.prototype,"buttonUpdate",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.H("design:type",String)],$m.prototype,"nudgeStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.trimStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],$m.prototype,"trimStyle",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.backgroundStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],$m.prototype,"backgroundStyle",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.contentsLocation"),_.H("design:type",String),_.H("design:paramtypes",[])],$m.prototype,"contentsLocation",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.disableDropShadow"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$m.prototype,"noShadow",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.lightIconImage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$m.prototype,"noIcon",null);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.H("design:type",Boolean)],$m.prototype,"isHorizontalButtons",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],$m.prototype,"isDarkMode",void 0);_.L([_.y({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],$m);
_.G($m,"ytd-feed-nudge-renderer",function(){if(OXF!==void 0)return OXF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return OXF=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var vAW;var zK5;var n7=function(){var B=_.z.apply(this,arguments)||this;B.collapsed=!1;B.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return B};
_.w(n7,_.z);n7.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"}}}};
n7.prototype.handleRatingSelect=function(){var B;((B=this.data)==null?0:B.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
n7.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],n7.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Qz),_.H("design:type",Object)],n7.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],n7.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n7.prototype,"collapsed",void 0);_.L([_.y({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],n7);
_.G(n7,"ytd-slimline-survey-renderer",function(){if(zK5!==void 0)return zK5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return zK5=B},{mode:1});var S7W;var bN=function(){return _.z.apply(this,arguments)||this};
_.w(bN,_.z);bN.prototype.maybeGetBackgroundColor=function(B){return this.isDarkMode?B.section2Color:B.section3Color};
bN.prototype.colorPaletteChanged=function(){var B=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;B&&(B==null?0:B.secondaryTitleColor)&&this.maybeGetBackgroundColor(B)?(this.hostElement.style.backgroundColor=_.zF(this.maybeGetBackgroundColor(B)),this.hostElement.style.color=_.zF(B.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
bN.prototype.colorPaletteChanged=bN.prototype.colorPaletteChanged;_.L([_.J(_.OU),_.H("design:type",Object)],bN.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bN.prototype,"data",void 0);_.L([_.F({selector:function(B){return B.ui.darkModeIsEnabled}}),
_.H("design:type",Boolean)],bN.prototype,"isDarkMode",void 0);_.L([_.F(),_.H("design:type",Object)],bN.prototype,"lightColorPalette",void 0);_.L([_.F(),_.H("design:type",Object)],bN.prototype,"darkColorPalette",void 0);_.L([_.bF("darkColorPalette","lightColorPalette","data","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bN.prototype,"colorPaletteChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],bN);
_.G(bN,"ytd-endorsement-header-renderer",function(){if(S7W!==void 0)return S7W;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return S7W=B},{mode:1});_.xU(_.Jf,"yt-decorated-avatar-view-model",{props:{data:_.rk,className:_.rk}});var K7=function(){var B=_.z.apply(this,arguments)||this;B.fullHeight=_.T("web_rich_grid_media_full_height");B.showChannelAvatar=!0;B.hasPlaylistThumbnail=!1;B.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};B.prepareThumbnailForPageTransition=function(){_.T("web_thumbnail_to_watch_transition")&&(B.thumbnail.style.viewTransitionName="thumbnail-to-watch",B.cleanupThumbnailAfterPageTransition(B.thumbnail))};
return B};
_.w(K7,_.z);_.a=K7.prototype;
_.a.configureRendererStamper=function(){return{lazyLoadMenu:bO,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"}}}};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.shouldLazyLoadMenu=function(){var B=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.T("kevlar_modern_downloads_page")||!B};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14025_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.JSC$14025_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.a.getVideoPreviewOpts=function(){var B={},c;if((c=this.data)==null?0:c.multipleInlinePlaybackEndpoint)B=OZW;this.isRadio&&(B=ELd);return _.T("web_thumbnail_to_watch_transition")?Object.assign({},B,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):B};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$14025_inlinePreviewHoverListener)==null||g2(B)};
_.a.getOwner=function(){var B,c,x;return((B=this.data)==null?void 0:(c=B.channelThumbnailSupportedRenderers)==null?void 0:c.channelThumbnailWithLinkRenderer)||_.t((x=this.data)==null?void 0:x.showProviderChannelThumbnail,aZt)};
_.a.updateLockupSize=function(){var B;((B=this.getOwner())==null?0:B.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.a.getFeedbackEndpoint=function(B){if(_.t(B,_.Fs))return B;var c,x;B=(x=(c=_.t(B,_.nW))==null?void 0:c.commands)!=null?x:[];c=_.p(B);for(x=c.next();!x.done;x=c.next())if(x=this.getFeedbackEndpoint(x.value))return x;return null};
_.a.computeNavigationEndpoint=function(B){return FE$(B==null?void 0:B.navigationEndpoint)};
_.a.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var B=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(B)!==JSON.stringify(this.data)&&this.set("data",B)}};
_.a.onDataChanged=function(){var B=this,c=this.getOwner();if(c){this.set("data.owner",c);var x,P,Y,g,k,n=((x=this.data)==null?void 0:(P=x.shortBylineText)==null?void 0:(Y=P.runs)==null?void 0:(g=Y[0])==null?void 0:g.text)||((k=c.name)==null?void 0:k.simpleText);this.set("data.owner.title",n)}var b,d,q,C,h,V;c=((b=this.data)==null?void 0:(d=b.thumbnailRenderer)==null?void 0:d.playlistVideoThumbnailRenderer)||((q=this.data)==null?void 0:(C=q.thumbnailRenderer)==null?void 0:C.playlistCustomThumbnailRenderer)||
((h=this.data)==null?void 0:(V=h.thumbnailRenderer)==null?void 0:V.showCustomThumbnailRenderer);var N;((N=this.data)==null?0:N.thumbnail)||!c||this.set("data.thumbnail",c.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){B.updateLockupSize()});
var l;if(b=((l=this.data)==null?void 0:l.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var E;((E=this.dismissActionToReplayEntity)==null?0:E.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.a.onHiddenChanged=function(){this.updateLockupSize()};
_.a.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.gj(this.hostElement,"yt-terminate-video-preview-action");else{var B;(B=this.videoTitleLink)==null||B.focus()}};
_.a.metadataColorChanged=function(){var B;if(this.metadataColor&&((B=this.videoTitle)==null?0:B.style))this.videoTitle.style.color=_.zF(this.metadataColor);else{var c,x;!this.metadataColor&&((c=this.videoTitle)==null?0:(x=c.style)==null?0:x.color)&&(this.videoTitle.style.color="")}};
_.a.onDetailsClick=function(B){var c=this.computedNavigationEndpoint;c&&(_.uv(_.AV(B),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.aJ(this.hostElement,"yt-navigate",{endpoint:c}))};
_.a.cleanupThumbnailAfterPageTransition=function(B){_.z6l(document,"yt-page-type-changed",function(){B.style.viewTransitionName=""})};
_.a.onRendererTap=function(){this.prepareThumbnailForPageTransition();var B,c,x=((B=this.data)==null?void 0:B.serviceEndpoint)||this.getFeedbackEndpoint((c=this.data)==null?void 0:c.navigationEndpoint);x&&_.t(x,_.Fs)&&this.ytComponentBehavior.resolveCommand(x)};
_.a.onMouseDown=function(B){var c=B.target,x=this.computedNavigationEndpoint,P;B=c.href||((P=_.t(x==null?void 0:x.commandMetadata,_.Br))==null?void 0:P.url);P=c.data||x;B&&P&&Q97(B,P)};
_.a.computeVideoTitleText=function(){var B;if((B=this.data)==null?0:B.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.a.computeHasPlaylistThumbnail=function(B){var c,x,P,Y,g;if((((c=B.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((x=B.thumbnailRenderer)==null?0:x.playlistCustomThumbnailRenderer)||((P=B.thumbnailRenderer)==null?0:P.showCustomThumbnailRenderer)||((Y=B.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((g=B.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&B.thumbnailOverlays)for(c=0;c<B.thumbnailOverlays.length;c++)if(x=void 0,(x=B.thumbnailOverlays[c])==
null?0:x.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.AJ.Object.defineProperties(K7.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var B;return(B=this.data)==null?void 0:B.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var B;return(B=this.data)==null?void 0:B.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$14025_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Kr(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.videoId)||((c=this.data)==null?void 0:c.playlistId)||""}}});
K7.prototype.onMouseDown=K7.prototype.onMouseDown;K7.prototype.metadataColorChanged=K7.prototype.metadataColorChanged;K7.prototype.onIsDismissedChanged=K7.prototype.onIsDismissedChanged;K7.prototype.onHiddenChanged=K7.prototype.onHiddenChanged;K7.prototype.onDataChanged=K7.prototype.onDataChanged;K7.prototype.handleReloadDownloadsInfo=K7.prototype.handleReloadDownloadsInfo;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],K7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],K7.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],K7.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],K7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],K7.prototype,"entitySelectorType",void 0);_.L([_.F(),_.H("design:type",Boolean)],K7.prototype,"noEndpoints",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],K7.prototype,"isRadio",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],K7.prototype,"miniMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],K7.prototype,"fullHeight",void 0);
_.L([_.F(),_.H("design:type",Boolean)],K7.prototype,"showDarkVideoMetadata",void 0);_.L([_.F(),_.H("design:type",Boolean)],K7.prototype,"showLightVideoMetadata",void 0);_.L([_.F(),_.H("design:type",Number)],K7.prototype,"metadataColor",void 0);_.L([_.F(),_.H("design:type",Object)],K7.prototype,"showChannelAvatar",void 0);_.L([_.F(),_.H("design:type",Boolean)],K7.prototype,"hidden",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],K7.prototype,"showYtInteraction",void 0);
_.L([_.F(),_.H("design:type",String)],K7.prototype,"dismissedContentId",void 0);_.L([_.F({selectorArgs:["dismissedContentId"],selector:TEI}),_.H("design:type",Object)],K7.prototype,"dismissActionToReplayEntity",void 0);
_.L([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(B,c,x){if(_.T("kevlar_modern_downloads_page")&&x&&c&&c!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var P=KQI(B,x);if(P){c=_.QI(B,x);var Y=v3(B,x),g=w7C(B,x);B=z$(B,x);var k=xmI(P,c,Y,g);Y=k.shortViewCountText;var n=k.publishedTimeText;k=k.badges;var b=B>0;g=Bdx(P,c,g,B);P=_.Ck(c)||c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qZ(P.policyEntity)?
void 0:obX(x,B,P.videoEntity.lengthSeconds);c==="TRANSFER_STATE_PAUSED_BY_USER"&&x&&!_.T("dl_resume_click_killswitch")&&(P={offlineVideoEndpoint:{videoId:x,action:"ACTION_RESUME"}});x={shortViewCountText:Y,publishedTimeText:n,badges:k,isWatched:b,navigationEndpoint:P,thumbnailOverlays:g}}else x=void 0;return x;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(c=jAq(B,x))if(P=_.F9(B,x),g=_.UV7(B,x),P!=="TRANSFER_STATE_UNKNOWN"){x=cvO(c,P,g,x,ow(B));break a}x=void 0}return x;default:_.Ob(new _.mc("Error: entitySelectorType defined but not matched in selector.",
B,c))}}}),
_.H("design:type",Object)],K7.prototype,"entityDrivenState",void 0);_.L([_.F({computed:"computeVideoTitleText(data)"}),_.H("design:type",Object)],K7.prototype,"videoTitleText",void 0);_.L([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],K7.prototype,"hasPlaylistThumbnail",void 0);_.L([_.F({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],K7.prototype,"computedNavigationEndpoint",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],K7.prototype,"typographyBump",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],K7.prototype,"typographyBumpV2",null);_.L([_.jr("#video-title"),_.H("design:type",HTMLElement)],K7.prototype,"videoTitle",void 0);_.L([_.jr("#video-title-link"),_.H("design:type",HTMLElement)],K7.prototype,"videoTitleLink",void 0);
_.L([_.jr("#thumbnail"),_.H("design:type",HTMLElement)],K7.prototype,"thumbnail",void 0);_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],K7.prototype,"JSC$14025_dismissibleMedia",void 0);_.L([_.Q("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],K7.prototype,"lazyLoadMenu",null);_.L([_.Q("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],K7.prototype,"immediateLoadMenu",null);
_.L([_.CF("entityDrivenState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"handleReloadDownloadsInfo",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"onDataChanged",null);_.L([_.CF("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"onHiddenChanged",null);
_.L([_.bF("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"onIsDismissedChanged",null);_.L([_.bF("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"metadataColorChanged",null);_.L([_.nF("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],K7.prototype,"onMouseDown",null);
_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],K7.prototype,"isHovered",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],K7.prototype,"useAvatar",null);_.L([_.Q("data","entitySelectorType"),_.H("design:type",String),_.H("design:paramtypes",[])],K7.prototype,"mediaId",null);_.L([_.y({is:"ytd-rich-grid-media",disableElementRegistration:!0})],K7);
var yz5=_.gX()(K7,"ytd-rich-grid-media",function(){if(vAW!==void 0)return vAW;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return vAW=B},{mode:_.sL("kevlar_poly_si_batch_j072")?1:2});var Gp5;var j9=function(){var B=_.z.apply(this,arguments)||this;B.removeMaxWidth=!0;B.insetMetadata=!1;return B};
_.w(j9,_.z);_.a=j9.prototype;_.a.configureRendererStamper=function(){return{innerMenu:bO,outerMenu:Object.assign({},bO,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.onDataChanged=function(){var B,c=((B=this.data)==null?void 0:B.trackingParams)||"";c&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c));var x;((x=this.dismissActionToReplayEntity)==null?0:x.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14030_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.JSC$14030_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:oL0})};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$14030_inlinePreviewHoverListener)==null||g2(B)};
_.a.onRendererTap=function(){var B,c,x=(B=this.data)==null?void 0:(c=B.serviceEndpoints)==null?void 0:c[0];_.t(x,_.Fs)&&this.componentBehavior.resolveCommand(x)};
_.a.onDetailsClick=function(B){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;x&&(_.uv(_.AV(B),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(x))};
_.a.onShow=function(){var B=this.data;B.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(B.onFirstVisibleCommand),delete B.onFirstVisibleCommand)};
_.AJ.Object.defineProperties(j9.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var B;return this.insetMetadata?void 0:(B=this.data)==null?void 0:B.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var B;return this.insetMetadata?(B=this.data)==null?void 0:B.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var B=this.data;if(B!=null&&B.badge&&(B=_.t(B.badge,s89))){var c,x,P;return[{metadataBadgeRenderer:{label:((c=B.label)==null?void 0:(x=c.runs)==null?void 0:x[0].text)||((P=B.label)==null?void 0:P.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var B=this.data;return Object.assign({},B.headline,{accessibility:B.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return this.isSlimShort?(B=this.computedTitle)==null?void 0:(c=B.accessibility)==null?void 0:(x=c.accessibilityData)==null?void 0:x.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.T("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$14030_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
j9.prototype.onDataChanged=j9.prototype.onDataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],j9.prototype,"componentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],j9.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Qz),_.H("design:type",Object)],j9.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],j9.prototype,"ytdReduxBehavior",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],j9.prototype,"thumbnail",void 0);_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],j9.prototype,"JSC$14030_dismissibleMedia",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],j9.prototype,"removeMaxWidth",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],j9.prototype,"insetMetadata",void 0);_.L([_.F(),_.H("design:type",String)],j9.prototype,"dismissedContentId",void 0);_.L([_.F({selectorArgs:["dismissedContentId"],selector:TEI}),_.H("design:type",Object)],j9.prototype,"dismissActionToReplayEntity",void 0);_.L([_.Q("insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"thumbnailObjectFit",null);
_.L([_.Q("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"innerMenu",null);_.L([_.Q("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"outerMenu",null);_.L([_.F(),_.H("design:type",Object)],j9.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],j9.prototype,"miniMode",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],j9.prototype,"onDataChanged",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"shortsBadges",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],j9.prototype,"isShort",null);
_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],j9.prototype,"isSlimShort",null);_.L([_.Q("data","isShort"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"computedTitle",null);_.L([_.Q("isSlimShort","computedTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],j9.prototype,"computedAccessibilityLabel",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],j9.prototype,"shouldForce2By3",null);_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],j9.prototype,"isHovered",null);_.L([_.y({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],j9);
_.G(j9,"ytd-rich-grid-slim-media",function(){if(Gp5!==void 0)return Gp5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Gp5=B},{mode:_.sL("kevlar_poly_si_batch_j063")?1:2});var MDW;var LrS;var UC=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(UC,_.z);UC.prototype.computeIcon=function(B){return B&&B.iconType?"yt-sys-icons:"+B.iconType.toLowerCase():""};
UC.prototype.onMouseEnter=function(){this.isHovered=!0};
UC.prototype.onMouseLeave=function(){this.isHovered=!1};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UC.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],UC.prototype,"isHovered",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],UC.prototype,"darkerDarkTheme",void 0);_.L([_.y({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],UC);
_.G(UC,"ytd-expand-on-hover-card-renderer",function(){if(LrS!==void 0)return LrS;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return LrS=B},{mode:1});var ZXd,HXF=function(){if(ZXd!==void 0)return ZXd;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ZXd=B};_.o2("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var d4=function(){var B=_.z.apply(this,arguments)||this;B.compactStyle=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(d4,_.z);_.a=d4.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.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"}}}};
_.a.computeHideDot=function(B){return!(B&&B.subscriberCountText&&B.videoCountText)||this.compactStyle};
_.a.hasDualButtons=function(B){return B&&B.purchaseButton&&B.subscribeButton};
_.a.backgroundColorChanged=function(){if(this.data!==void 0){var B=this.data.backgroundColor;this.isDarkTheme&&(B=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=B!=null?_.zF(B):"transparent"}};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.onTap=function(B){var c,x,P=((c=this.data)==null?void 0:c.navigationEndpoint)||((x=this.data)==null?void 0:x.serviceEndpoint);_.t(P,_.av)&&(P&&_.cp().resolve(_.xu).resolveCommand(P,{form:{element:this.hostElement}}),B.preventDefault())};
_.a.computeChannelEndpoint=function(B){return _.t(B,_.av)?null:B};
_.a.computeHrefEndpoint=function(B){return _.t(B,_.av)?null:this.componentBehavior.computeHref_(B)};
_.a.computeChannelRendererStyle=function(B){return B};
_.a.computeIconSize=function(B){return B?108:136};
_.AJ.Object.defineProperties(d4,{template:{configurable:!0,enumerable:!0,get:function(){return HXF()}}});
d4.prototype.backgroundColorChanged=d4.prototype.backgroundColorChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],d4.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],d4.prototype,"componentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],d4.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],d4.prototype,"isDarkTheme",void 0);_.L([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.H("design:type",String)],d4.prototype,"channelRendererStyle",void 0);_.L([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],d4.prototype,"dualButtons",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],d4.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],d4.prototype,"biggerThumbStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],d4.prototype,"compactStyle",void 0);_.L([_.bF("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d4.prototype,"backgroundColorChanged",null);_.L([_.y({is:"ytd-channel-renderer",disableElementRegistration:!0})],d4);_.G(d4,"ytd-channel-renderer",function(){return HXF()},{mode:1});var flW;var iXm;_.o2("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var q7=function(){var B=_.z.apply(this,arguments)||this;B.displayItemCount=2;B.collections=_.T("web_modern_collections_v2");B.hasPlaylistThumbnail=!1;B.stackThumbnailSize="large";return B};
_.w(q7,_.z);_.a=q7.prototype;_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.a.computeFirstVideos=function(B,c){return B&&c?B.slice(0,c):[]};
_.a.computeThumbnailWidth=function(B,c){return B?c==="BIG"?500:c==="MASSIVE"?600:c==="MEDIUM"?450:420:360};
_.a.computeThumbnailHeight=function(B,c){return B?c==="BIG"?280:c==="MASSIVE"?337:234:202};
_.a.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$14043_inlinePreviewHoverListener)==null||g2(B)};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14043_inlinePreviewHoverListener=Ab({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:OZW,thumbnailElement:this.thumbnail})};
_.a.computeHasPlaylistThumbnail=function(B){var c,x;if((((c=B.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((x=B.thumbnailRenderer)==null?0:x.playlistCustomThumbnailRenderer))&&B.thumbnailOverlays)for(c=0;c<B.thumbnailOverlays.length;c++)if(x=void 0,(x=B.thumbnailOverlays[c])==null?0:x.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.AJ.Object.defineProperties(q7.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$14043_inlinePreviewHoverListener)==null?0:OA(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
q7.prototype.dataChanged=q7.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],q7.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],q7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],q7.prototype,"displayItemCount",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],q7.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],q7.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],q7.prototype,"collections",void 0);_.L([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],q7.prototype,"hasPlaylistThumbnail",void 0);_.L([_.F(),_.H("design:type",String)],q7.prototype,"stackThumbnailSize",void 0);_.L([_.jr("ytd-thumbnail"),_.H("design:type",HTMLElement)],q7.prototype,"thumbnail",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q7.prototype,"dataChanged",null);_.L([_.Q("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],q7.prototype,"isHovered",null);_.L([_.y({is:"ytd-radio-renderer",disableElementRegistration:!0})],q7);
_.G(q7,"ytd-radio-renderer",function(){if(iXm!==void 0)return iXm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iXm=B},{mode:_.sL("kevlar_poly_si_batch_j058")?1:2});var Azm;_.o2("itemSectionRenderer","showRenderer","ytd-show-renderer");var C7=function(){return _.z.apply(this,arguments)||this};
_.w(C7,_.z);C7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
C7.prototype.computeThumbnailWidth=function(B){return B?360:246};
C7.prototype.computeUseProminentThumbs=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],C7.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],C7.prototype,"isSearch",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.H("design:type",Boolean)],C7.prototype,"useProminentThumbs",void 0);_.L([_.y({is:"ytd-show-renderer",disableElementRegistration:!0})],C7);
_.G(C7,"ytd-show-renderer",function(){if(Azm!==void 0)return Azm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Azm=B},{mode:1});_.o2("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var hw=function(){var B=_.z.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.w(hw,_.z);hw.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"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hw.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],hw.prototype,"isRichGrid",void 0);_.L([_.y({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],hw);
_.G(hw,"ytd-feed-entry-renderer",function(){if(flW!==void 0)return flW;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return flW=B},{mode:1});var uwI;var mI=function(){return _.z.apply(this,arguments)||this};
_.w(mI,_.z);mI.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.L([_.J(_.OU),_.H("design:type",Object)],mI.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],mI.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mI.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.lG,value:3}),_.H("design:type",Number)],mI.prototype,"itemsPerRow",void 0);
_.L([_.y({is:"ytd-link-card-renderer",disableElementRegistration:!0})],mI);
_.G(mI,"ytd-link-card-renderer",function(){if(uwI!==void 0)return uwI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uwI=B},{mode:1});var Dq0;var Tc=function(){return _.z.apply(this,arguments)||this};
_.w(Tc,_.z);_.a=Tc.prototype;_.a.configureRendererStamper=function(){return{"data.menu":bO,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.onRendererTap=function(B){if(!this.ytdDismissibleItemBehavior.isDismissed){var c,x=(c=this.data)==null?void 0:c.navigationEndpoint;x&&!_.uv(_.AV(B),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(x)?_.uv(_.AV(B),this.hostElement,["A"])||_.aJ(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x,{}))}};
_.a.maybeComputeHref=function(B){return this.ytComponentBehavior.computeHref_(B,!0)};
_.a.getNavigationCommand=function(B){return this.isNavigationCommand(B)?B:null};
_.a.isNavigationCommand=function(B){return B?_.t(B,_.qA)||_.t(B,_.fN)||_.t(B,_.yp)?!0:!1:!1};
Tc.prototype.onRendererTap=Tc.prototype.onRendererTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],Tc.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Tc.prototype,"data",void 0);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tc.prototype,"onRendererTap",null);_.L([_.y({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Tc);
_.G(Tc,"ytd-lumiere-promo-item-image-renderer",function(){if(Dq0!==void 0)return Dq0;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Dq0=B},{mode:1});var rz3;var VP=function(){return _.z.apply(this,arguments)||this};
_.w(VP,_.z);VP.prototype.computeLandscapeThumbnail=function(){var B;return((B=this.data)==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VP.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],VP.prototype,"miniMode",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.lG}),_.H("design:type",Number)],VP.prototype,"itemsPerRow",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.H("design:type",Boolean)],VP.prototype,"landscapeThumbnail",void 0);_.L([_.y({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],VP);
_.G(VP,"ytd-lumiere-shelf-details-renderer",function(){if(rz3!==void 0)return rz3;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return rz3=B},{mode:_.sL("kevlar_poly_si_batch_j076")?1:2});var RK3;var tw=function(){return _.z.apply(this,arguments)||this};
_.w(tw,_.z);tw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tw.prototype,"data",void 0);_.L([_.y({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],tw);
_.G(tw,"ytd-primetime-promo-details-renderer",function(){if(RK3!==void 0)return RK3;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RK3=B},{mode:1});var eKI;var w4=function(){return _.z.apply(this,arguments)||this};
_.w(w4,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],w4.prototype,"data",void 0);_.L([_.y({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],w4);
_.G(w4,"ytd-panel-show-style-metadata-renderer",function(){if(eKI!==void 0)return eKI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eKI=B},{mode:1});var BnF;var N7=function(){return _.z.apply(this,arguments)||this};
_.w(N7,_.z);_.a=N7.prototype;_.a.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.a.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.a.computeThumbnail=function(B){if(B)return B.smallFormFactorBackgroundThumbnail||B.largeFormFactorBackgroundThumbnail};
_.a.maybeComputeHref=function(B){return this.ytComponentBehavior.computeHref_(B,!0)};
_.a.isNavigationCommand=function(B){return B?_.t(B,_.qA)||_.t(B,_.fN)||_.t(B,_.yp)?!0:!1:!1};
_.a.getNavigationCommand=function(B){return this.isNavigationCommand(B)?B:null};
N7.prototype.onPanelTap=N7.prototype.onPanelTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],N7.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],N7.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.H("design:type",Boolean)],N7.prototype,"modernButtons",void 0);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N7.prototype,"onPanelTap",null);_.L([_.y({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],N7);
_.G(N7,"ytd-primetime-promo-panel-renderer",function(){if(BnF!==void 0)return BnF;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return BnF=B},{mode:1});_.xU(_.rM(function(B){B=_.uF(B,{data:{},useFullWidth:!1});var c=B.data,x=B.useFullWidth,P=function(){return c().caption},Y=function(){return c().image},g=function(){return _.vH(c().onTap)};
B={};B=_.Kw("ytTeaserCardViewModelHost",(B.ytTeaserCardViewModelUseFullWidth=function(){return x()},B));
return _.U("teaser-card-view-model",{class:B},_.U(_.m,{cond:function(){return g()},
then:function(){return _.U(C85,{className:"ytTeaserCardViewModelLink",command:g,forceNewState:!0,useATagConfig:!0},_.U("div",{class:"ytTeaserCardViewModelImageContainer"},_.U(_.m,{cond:Y,then:function(k){return _.U(_.D9,{data:k,className:"ytTeaserCardViewModelImage",alt:""})}})),_.U("p",{class:"ytTeaserCardViewModelCaption"},P))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.rk,
useFullWidth:_.rk}});var cSF=new _.BL("RICH_GRID_VIDEO_RENDERER_TOKEN");_.xU(_.rM(function(B){var c=B.data;var x=B.showYtInteractionInContent;var P=function(){return!!c().selectableFeedback};
B=_.p(_.$D(!1,void 0,"nblDw"));var Y=B.next().value,g=B.next().value;_.lk(function(){var h=_.t(c().primaryButton,_.V7);(h==null?0:h.isToggled)&&g(h.isToggled)});
B=_.qe(function(h){if(!P())return!1;if(Y()){var V;var N=(V=c().selectableFeedback)==null?void 0:V.onDeselect}else{var l;N=(l=c().selectableFeedback)==null?void 0:l.onSelect}N&&_.Gl(N,{form:{element:h.target}});g(!Y());if(h=_.t(c().primaryButton,_.V7))h.isToggled=Y();return!1});
var k=function(){if(!P()){var h,V=(h=c().loggingDirectives)==null?void 0:h.trackingParams;V&&_.bd(_.cp().resolve(_.N3),V)}},n=_.Bsx(),b=function(){var h;
return P()?(h=c().selectableFeedback)==null?void 0:h.a11yLabel:void 0},d=function(){return P()?{toggled:Y()}:{}},q=_.cp().resolve(_.Bp(cSF)),C={};
return _.U("yt-feedback-item-renderer",{class:_.Kw("ytFeedbackItemRendererHost",(C.ytFeedbackItemRendererSelectableFeedback=P,C)),"on:click":B,"on:keydown":n,title:b,"aria-label":b,"aria-pressed":function(){return P()?Y():void 0},
tabindex:function(){return P()?0:void 0},
role:function(){return P()?"button":void 0}},_.U("div",{class:"ytFeedbackItemRendererContentContainer"},_.U(_.IF,{data:function(){return c().content}},{videoRenderer:function(h){return _.U(q,{data:h.data,
showYtInteraction:x})},
lockupViewModel:function(h){return _.U(_.ap,{data:h.data,containerType:2})}})),_.U("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.U(_.IF,{data:function(){return c().primaryButton}},{toggleButtonViewModel:function(h){return _.U(_.Jb,{data:h.data,
buttonShapeOverrides:d,disableExplicitClickLogging:!0,onToggle:k})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.rk,
showYtInteractionInContent:_.rk}});var I5=function(){var B=_.z.apply(this,arguments)||this;B.isShortsGrid=!1;B.isCompactGrid=!1;B.isShortsPanelGrid=!1;B.renderedFromRichGrid=!1;B.isInFirstColumn=!1;B.noGutterMargins=!1;B.isInlineGroupItem=!1;B.insetMetadata=!1;B.noBottomMarginInAds=_.T("web_no_bottom_margin_for_home_ad_buttons");B.force16By9ThumbnailAspectRatio=!1;B.useCompactList=!1;B.containerType=2;B.thumbnailTargetWidth=9999;B.isResponsiveGrid=!1;B.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};B.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};B.hoverListener=B.hover.bind(B);B.leaveListener=B.leave.bind(B);B.highlighted=!1;B.JSC$14078_unsubscribeFromInlinePreviewIsActive=function(){};
return B};
_.w(I5,_.z);_.a=I5.prototype;_.a.computeContainerType=function(){return this.useCompactList?3:2};
_.a.computeThumbnailTargetWidth=function(){var B;return(B=this.itemWidth)!=null?B:9999};
_.a.updateIsInFirstColumn=function(){var B;this.isInFirstColumn=((B=this.data)==null?void 0:B.colIndex)===0};
_.a.observerContainerType=function(){if(this.lockup){var B=this.lockup;B.containerType=this.containerType;B.sizing=this.sizing;B.typographyBump=this.typographyBump;B.itemWidth=this.itemWidth}this.richGridMedia&&_.T("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.T("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.a.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]]"}}}}}};
_.a.leave=function(B){B=B.relatedTarget;var c=document.querySelector("ytd-video-preview");B&&c&&_.aB(c).contains(B)||this.removeAndCleanupHighlight()};
_.a.hover=function(){var B;if(!this.highlighted&&(!_.T("web_enable_rich_item_on_focus_effect")||(B=this.data)!=null&&B.onFocusEffect)){var c,x;((c=this.data)==null?void 0:(x=c.onFocusEffect)==null?void 0:x.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(B=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:B,boxShadow:"0 0 0 10px "+B}));var P,Y;((P=this.data)==null?void 0:(Y=P.onFocusEffect)==null?void 0:
Y.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.a.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};
_.a.registerHoverHighlightListeners=function(){var B=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14078_unsubscribeFromInlinePreviewIsActive=_.C0(_.uG(),_.sAA,function(c){B.highlighted&&!c&&B.removeAndCleanupHighlight()})};
_.a.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14078_unsubscribeFromInlinePreviewIsActive()};
_.a.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.a.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.a.getBackgroundColor=function(){var B,c,x=(B=this.data)==null?void 0:(c=B.onFocusEffect)==null?void 0:c.onFocusColor;if(x){if(document.documentElement.hasAttribute("dark")&&(x==null?0:x.darkTheme))return _.zF(x==null?void 0:x.darkTheme);if(x==null?0:x.lightTheme)return _.zF(x==null?void 0:x.lightTheme)}};
_.a.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var B=_.Wf(),c,x,P;B&&((c=this.data)==null?0:c.trackingParams)&&((x=this.data)==null?void 0:x.colIndex)!=null&&((P=this.data)==null?void 0:P.rowIndex)!=null&&_.Ai(B,_.VF(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.a.isSlimMediaRenderer=function(B){return!!_.t(B==null?void 0:B.content,_.zB4)||!!_.t(B==null?void 0:B.content,vf4)||!!_.t(B==null?void 0:B.content,_.v7)||!!_.t(B==null?void 0:B.content,Y5y)};
_.a.isPostRenderer=function(){var B,c;return!!_.t((B=this.data)==null?void 0:B.content,LH9)||!!_.t((c=this.data)==null?void 0:c.content,ZC3)};
_.a.computeIsGameCardShelf=function(){var B;return!!_.t((B=this.data)==null?void 0:B.content,H90)};
_.a.computeIsMiniGameCardShelf=function(){var B,c;return!!_.t((B=this.data)==null?void 0:B.content,gc4)||!!_.t((c=this.data)==null?void 0:c.content,sZt)};
_.a.computeIsTeaserCard=function(){var B;return!!_.t((B=this.data)==null?void 0:B.content,sZt)};
_.a.computeIsSelectableFeedbackItem=function(){var B,c;return!((c=_.t((B=this.data)==null?void 0:B.content,_.ki3))==null||!c.selectableFeedback)};
_.a.computeContainsLumierePosters=function(){var B,c;return((c=_.t((B=this.data)==null?void 0:B.content,BQ3))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.a.computeIsExpandOnHoverCardShelf=function(){var B;return!!_.t((B=this.data)==null?void 0:B.content,ev4)};
_.a.computeIsLinkCardShelf=function(){var B;return!!_.t((B=this.data)==null?void 0:B.content,$mS)};
_.a.computeIsReelItemStyleAvatarCircle=function(B){var c;return((c=_.t(B==null?void 0:B.content,_.v7))==null?void 0:c.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.a.computeIsLinkCardFullWidth=function(B,c){var x;return((x=_.t(B==null?void 0:B.content,$mS))==null?void 0:x.useFullWidth)||c<=2};
_.AJ.Object.defineProperties(I5.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&&_.T("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.T("web_enable_rich_item_on_focus_effect")||_.T("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}}});
I5.prototype.richGridHoverHighlightChanged=I5.prototype.richGridHoverHighlightChanged;I5.prototype.observerContainerType=I5.prototype.observerContainerType;I5.prototype.updateIsInFirstColumn=I5.prototype.updateIsInFirstColumn;_.L([_.J(_.OU),_.H("design:type",Object)],I5.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],I5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],I5.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],I5.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.H("design:type",Boolean)],I5.prototype,"isPost",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.H("design:type",Boolean)],I5.prototype,"containsLumierePosters",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.H("design:type",Boolean)],I5.prototype,"isSlimMedia",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.H("design:type",Boolean)],I5.prototype,"isGameCardShelf",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.H("design:type",Boolean)],I5.prototype,"isMiniGameCardShelf",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.H("design:type",Boolean)],I5.prototype,"isTeaserCard",void 0);_.L([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.H("design:type",Boolean)],I5.prototype,"isSelectableFeedbackItem",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isShortsGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],I5.prototype,"isSlimGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isCompactGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isShortsPanelGrid",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.H("design:type",Boolean)],I5.prototype,"isExpandOnHoverCardShelf",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.H("design:type",Boolean)],I5.prototype,"isLinkCardShelf",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.lG,value:3}),_.H("design:type",Number)],I5.prototype,"itemsPerRow",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"renderedFromRichGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isInFirstColumn",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"noGutterMargins",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isInlineGroupItem",void 0);_.L([_.F(),_.H("design:type",Object)],I5.prototype,"insetMetadata",void 0);
_.L([_.F(),_.H("design:type",Object)],I5.prototype,"noBottomMarginInAds",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],I5.prototype,"isShelfItem",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.H("design:type",Boolean)],I5.prototype,"isReelItemStyleAvatarCircle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.H("design:type",Boolean)],I5.prototype,"isLinkCardFullWidth",void 0);
_.L([_.F(),_.H("design:type",Object)],I5.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"useCompactList",void 0);_.L([_.F(),_.H("design:type",String)],I5.prototype,"sizing",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],I5.prototype,"typographyBump",void 0);_.L([_.F(),_.H("design:type",Number)],I5.prototype,"itemWidth",void 0);_.L([_.F(),_.H("design:type",Boolean)],I5.prototype,"isHomeShelf",void 0);
_.L([_.F(),_.H("design:type",Boolean)],I5.prototype,"isHomeGrid",void 0);_.L([_.jr("yt-lockup-view-model"),_.H("design:type",HTMLElement)],I5.prototype,"lockup",void 0);_.L([_.jr("ytd-rich-grid-media"),_.H("design:type",HTMLElement)],I5.prototype,"richGridMedia",void 0);_.L([_.jr("ytd-ad-slot-renderer"),_.H("design:type",HTMLElement)],I5.prototype,"adSlotRenderer",void 0);_.L([_.F({computed:"computeContainerType(useCompactList)"}),_.H("design:type",Object)],I5.prototype,"containerType",void 0);
_.L([_.F({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.H("design:type",Object)],I5.prototype,"thumbnailTargetWidth",void 0);_.L([_.Q("showYtInteractionOnRichItem"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I5.prototype,"showYtInteractionOnRichGridMedia",null);_.L([_.Q("isSelectableFeedbackItem","richGridHoverHighlight"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I5.prototype,"showYtInteractionOnRichItem",null);
_.L([_.Q("typographyBump","isHomeGrid"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I5.prototype,"richTypographyBump",null);_.L([_.F({reflectToAttribute:!0}),_.Q("isShortsGrid","isCompactGrid"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I5.prototype,"richGridHoverHighlight",null);_.L([_.Q("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],I5.prototype,"shortsLockupViewModelAspectRatio",null);
_.L([_.Q("isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],I5.prototype,"shortsLockupViewModelScrimStyle",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I5.prototype,"updateIsInFirstColumn",null);_.L([_.bF("containerType","sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I5.prototype,"observerContainerType",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],I5.prototype,"isResponsiveGrid",void 0);_.L([_.F(),_.H("design:type",Object)],I5.prototype,"lockupExperiments",void 0);_.L([_.bF("richGridHoverHighlight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I5.prototype,"richGridHoverHighlightChanged",null);_.L([_.y({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],I5);
_.xom=_.gX()(I5,"ytd-rich-item-renderer",function(){if(MDW===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);MDW=B}B=MDW;return B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var low={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var SWO=_.fk(_.Up("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var P73;var Jw=function(){var B=_.z.apply(this,arguments)||this;B.useResponsiveGrid=!1;B.hidden=!1;B.standardShelfMargins=_.T("web_rich_grid_standard_shelf_margins");B.isShowMoreHidden=!1;B.isExpanded=!1;B.isInnerShelf=!1;B.allVideosCount=0;B.allPlaylistCount=0;B.haveSmartDownloadsCompleted=!1;B.isShowLessHidden=!0;B.restrictContentsOverflow=!1;B.firstShownIndex=0;B.horizontalOffset=0;B.atEnd=!0;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};B.nextClick=function(){var c;(c=B.data)!=null&&c.contents&&(B.firstShownIndex+=B.currentElementsPerRow,B.updateHorizontalOffset(),B.updateHorizontalItemVisibility())};
B.previousClick=function(){var c;(c=B.data)!=null&&c.contents&&(B.firstShownIndex-=B.currentElementsPerRow,B.updateHorizontalOffset(),B.updateHorizontalItemVisibility())};
return B};
_.w(Jw,_.z);_.a=Jw.prototype;
_.a.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.v5("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.a.attached=function(){this.requestElementsPerRow()};
_.a.refreshGridLayoutNew=function(){var B;if((B=this.data)!=null&&B.contents&&this.containerWidth){var c;((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize)?(B=_.MyX(this.data.responsiveContainerConfiguration,this.containerWidth),B=_.D_(Object.assign({},B,{standardUnitMinWidth:this.standardUnitMinWidth}))):B=_.D_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=B.typographyBump;if(this.elementsPerRow!==
B.numItems||this.gutter!==B.gutter)this.elementsPerRow=B.numItems,this.gutter=B.gutter,this.itemWidth=B.itemWidth,_.k9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":B.gutter+"px"})}};
_.a.computeSizing=function(){if(!this.isLumiere){var B=_.aX7(this.data);if(B)return B;if(_.T("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.a.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.a.computeButton=function(B){var c=_.t(B,_.z3);B=Object.assign({},_.t(B,_.z3));return c?(B.text||(B.text={simpleText:B.tooltip}),B.style="STYLE_MONO_OUTLINE",B.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",B):c};
_.a.onRowIndexChange=function(){var B=_.Wf(),c,x;((c=this.data)==null?0:c.trackingParams)&&((x=this.data)==null?void 0:x.rowIndex)!=null&&B&&_.Ai(B,_.VF(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.a.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var B,c=((B=this.getRichItemRenderers()[0])==null?void 0:B.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*c;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
_.a.onUpdateElementsPerRowAction=function(B,c,x,P,Y,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&B&&c&&x&&P&&Y&&(this.elementsPerRow!==B||this.postsPerRow!==c||this.slimItemsPerRow!==x||this.gameCardsPerRow!==P||this.miniGameCardsPerRow!==Y)&&(this.elementsPerRow=B,this.postsPerRow=c,this.slimItemsPerRow=x,this.gameCardsPerRow=P,this.miniGameCardsPerRow=Y,this.updateItemVisibility())};
_.a.getRichItemRenderers=function(){return _.Y9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.a.updateItemVisibility=function(){var B=this;if(this.data&&this.data.contents){var c=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(P,Y){var g;((g=B.data)==null?0:g.isExpanded)?(P.hidden=Y>c-1,P.ytRendererBehavior.markDirty()):P.hidden=Y>B.currentElementsPerRow-1||Y>c-1});
var x=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||x||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||x||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.a.setHeightToSingleRow=function(){var B=this.getRichItemRenderers(),c=Number.parseInt(getComputedStyle(B[0]).marginBottom,10)||0;B=B.slice(0,this.currentElementsPerRow).reduce(function(x,P){return Math.max(x,P.getBoundingClientRect().height+c)},0);
this.contents.style.height=B+"px"};
_.a.focusNextExpandedItem=function(){var B;((B=this.data)==null?0:B.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.a.focusItem=function(B,c){var x=this.getRichItemRenderers();if(x[B]&&(B=x[B].querySelector(".focus-on-expand"))){if(c){var P;(P=x[this.currentElementsPerRow])==null||P.scrollIntoView({behavior:"smooth",block:"center"})}B.focus({preventScroll:!0})}};
_.a.onDataChange=function(){var B=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var c;if((c=this.data)==null?0:c.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.fl(this,function(){B.updateItemVisibility()});
var x;if((x=this.data)==null?0:x.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.k9(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),c=0;c<this.data.contents.length;c++)x=_.t(this.data.contents[c],_.la)||{},x.colIndex=c,x.rowIndex=this.data.rowIndex};
_.a.handleRerenderDownloadsData=function(){_.T("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())};
_.a.blockInlinePreview=function(B){var c=this,x;return _.X(function(P){(x=c.inlinePreviewIsEnabled)&&c.ytdReduxBehavior.dispatch(_.uhd(!1));return P.return(new Promise(function(Y){B(function(){x&&c.ytdReduxBehavior.dispatch(_.uhd(!0));Y()})}))})};
_.a.expandShelf=function(){var B=this;if(this.data){var c,x=(c=_.t(this.data.showMoreButton,_.z3))==null?void 0:c.trackingParams;x&&_.bd(_.q_(),x);this.data.isExpanded=!0;this.blockInlinePreview(function(P){B.setHeightToSingleRow();B.updateItemVisibility();B.contents.style.height=B.contents.scrollHeight+"px";_.EE.addJob(function(){B.contents.style.height="auto";B.focusNextExpandedItem();P()},2,200)})}};
_.a.collapseShelf=function(){var B=this;return _.X(function(c){if(c.nextAddress==1){if(!B.data)return c.return();B.data.isExpanded=!1;return _.K(c,B.blockInlinePreview(function(x){B.contents.style.height=B.contents.scrollHeight+"px";B.setHeightToSingleRow();_.EE.addJob(function(){B.updateItemVisibility();B.contents.style.height="auto";x()},2,200)}),2)}_.aJ(B.hostElement,"yt-rich-shelf-renderer-collapse",B.data.trackingParams);
B.focusItem(0,!1);_.Kq(c)})};
_.a.updateArrowButtonStatus=function(){var B=this.getRichItemRenderers().length;if(!_.T("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,x;B=((c=this.data)==null?void 0:(x=c.contents)==null?void 0:x.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=B};
_.a.onChildElementFocus=function(B){this.hasChevronButtons&&(B=B.target.closest("#contents > *"),this.contents.contains(B)&&(B.offsetLeft<this.horizontalOffset?this.previousClick():B.offsetLeft+B.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.a.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.v5("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.a.updateHorizontalOffset=function(){var B=this.getRichItemRenderers(),c=B.length;if(!_.T("web_rich_shelf_renderer_use_data_contents_killswitch")){var x,P;c=((x=this.data)==null?void 0:(P=x.contents)==null?void 0:P.length)||0}var Y;B=((Y=B[0])==null?void 0:Y.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>c?this.firstShownIndex=c-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*B};
_.a.isSlimMediaShelfRenderer=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!(_.t(P,_.zB4)||_.t(P,vf4)||_.t(P,_.v7)||_.t(P,Y5y))};
_.a.isGameCardShelf=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!_.t(P,H90)};
_.a.isGnomeShelf=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!_.t(P,_.ki3)};
_.a.isMiniGameCardShelf=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!_.t(P,gc4)||!!_.t(P,sZt)};
_.a.hasGameBoxArtAvatarStyle=function(){var B;return((B=this.data)==null?void 0:B.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.a.hasRoundedGameBoxArtAvatarStyle=function(){var B;return((B=this.data)==null?void 0:B.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.a.isShortsShelf=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!_.t(P,_.v7)||!!_.t(P,Y5y)};
_.a.isPostShelfRenderer=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!(!_.t(P,LH9)&&!_.t(P,ZC3))};
_.a.isLumiereShelf=function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la);return!!_.t(x==null?void 0:x.content,BQ3)};
_.a.isLumiereShelfWithPosters=function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la),P;return((P=_.t(x==null?void 0:x.content,BQ3))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.a.isExpandOnHoverCardShelf=function(){var B,c,x,P=(x=_.t((B=this.data)==null?void 0:(c=B.contents)==null?void 0:c[0],_.la))==null?void 0:x.content;return!!_.t(P,ev4)};
_.a.computeHasFeaturedBadge=function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.badges)==null?void 0:c[0],_.k1n);return x?x.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.a.computeHasPaygatedFeaturedBadge=function(){var B,c,x=_.t((B=this.data)==null?void 0:(c=B.badges)==null?void 0:c[0],_.k1n);return x?(x==null?void 0:x.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.a.computeHeaderHidden=function(){var B,c,x,P,Y,g;return!((B=this.data)==null?0:B.icon)&&!((c=this.data)==null?0:c.title)&&!((x=this.data)==null?0:x.subtitle)&&!((P=this.data)==null?0:P.thumbnail)&&!((Y=this.data)==null?0:Y.badges)&&!((g=this.data)==null?0:g.menu)};
_.a.showCtaButton=function(){var B;return!((B=this.data)==null||!B.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.a.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.a.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.a.computeForce16By9ThumbnailAspectRatio=function(){var B,c;return((B=this.data)==null?void 0:(c=B.responsiveContainerConfiguration)==null?void 0:c.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.a.onSectionReactiveDismissal=function(B,c,x){var P,Y;var g=(P=this.data)==null?void 0:(Y=P.targetingContext)==null?void 0:Y.targetGroupId;this&&g&&c.targetGroupId&&g.includes(c.targetGroupId)?(P=this.rowIndex,B=P===void 0?!1:!(c.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&P<=B)):B=!1;B&&(this.hidden=x)};
_.AJ.Object.defineProperties(Jw.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var B=this.elementsPerRow;this.isPostShelfRenderer()?B=this.postsPerRow:this.isSlimMediaShelfRenderer()?B=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?B=this.slimItemsPerRow-1:this.isGameCardShelf()?B=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(B=this.miniGameCardsPerRow);return B}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.T("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.previousButton)&&!((c=this.data)==null||!c.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 B;return((B=_.cp().resolve(_.rV).getCurrentPage())==null?void 0:B.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return!((B=this.data)==null?0:(c=B.thumbnail)==null?0:(x=c.accessibility)==null?0:(P=x.accessibilityData)==null?0:P.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Jw.prototype.onChildElementFocus=Jw.prototype.onChildElementFocus;Jw.prototype.handleRerenderDownloadsData=Jw.prototype.handleRerenderDownloadsData;Jw.prototype.onDataChange=Jw.prototype.onDataChange;Jw.prototype.onRowIndexChange=Jw.prototype.onRowIndexChange;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Qz),_.H("design:type",Object)],Jw.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Jw.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Jw.prototype,"ytdReduxBehavior",void 0);_.L([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.H("design:type",Object)],Jw.prototype,"useResponsiveGrid",void 0);_.L([_.F(),_.H("design:type",Object)],Jw.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Number)],Jw.prototype,"standardUnitMinWidth",void 0);_.L([_.F({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],Jw.prototype,"elementsPerRow",void 0);_.L([_.F({value:3}),_.H("design:type",Number)],Jw.prototype,"postsPerRow",void 0);_.L([_.F({value:6}),_.H("design:type",Number)],Jw.prototype,"slimItemsPerRow",void 0);_.L([_.F({value:6}),_.H("design:type",Number)],Jw.prototype,"gameCardsPerRow",void 0);
_.L([_.F({value:6}),_.H("design:type",Number)],Jw.prototype,"miniGameCardsPerRow",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"standardShelfMargins",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"isShowMoreHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"isExpanded",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"isInnerShelf",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.H("design:type",Boolean)],Jw.prototype,"isShorts",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.H("design:type",Boolean)],Jw.prototype,"isLumiere",void 0);_.L([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],Jw.prototype,"hasBoxArtThumbnailStyle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],Jw.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.H("design:type",Boolean)],Jw.prototype,"hasFeaturedBadge",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.H("design:type",Boolean)],Jw.prototype,"hasPaygatedFeaturedBadge",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.H("design:type",Boolean)],Jw.prototype,"isHeaderHidden",void 0);_.L([_.F({selector:_.bVY}),_.H("design:type",Object)],Jw.prototype,"allVideosCount",void 0);_.L([_.F({selector:G0w}),_.H("design:type",Object)],Jw.prototype,"allPlaylistCount",void 0);_.L([_.F({selector:VPd}),_.H("design:type",Object)],Jw.prototype,"haveSmartDownloadsCompleted",void 0);
_.L([_.F({selectorArgs:["entitySelectorType"],selector:function(B,c){if(_.T("kevlar_modern_downloads_page")&&c&&c!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var x=B.entities;switch(c){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":c=_.NZ(x);B=lj(c);var P=_.hm(c);x=_.Jm(x);x=_.c3(O5x(P,x,c.length));return{contents:B,subtitle:x};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return x=_.NZ(x),{contents:lj(x)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return x=
_.Iw(x),{contents:lj(x)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return x=_.idx(x),{contents:lj(x)};default:_.Ob(new _.mc("Error: entitySelectorType defined but not matched in selector.",B,c))}}}}),
_.H("design:type",Object)],Jw.prototype,"entityDrivenRichShelfData",void 0);_.L([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],Jw.prototype,"hasTopCtaButton",void 0);_.L([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],Jw.prototype,"hasBottomCtaButton",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.H("design:type",Boolean)],Jw.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"isShowLessHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Jw.prototype,"restrictContentsOverflow",void 0);_.L([_.F({selector:_.p7I}),_.H("design:type",Boolean)],Jw.prototype,"inlinePreviewIsEnabled",void 0);
_.L([_.F({computed:"computeSizing(data)"}),_.H("design:type",String)],Jw.prototype,"sizing",void 0);_.L([_.F(),_.H("design:type",Boolean)],Jw.prototype,"typographyBump",void 0);_.L([_.F(),_.H("design:type",Number)],Jw.prototype,"itemWidth",void 0);_.L([_.F(),_.H("design:type",Object)],Jw.prototype,"firstShownIndex",void 0);_.L([_.F(),_.H("design:type",Object)],Jw.prototype,"horizontalOffset",void 0);_.L([_.F(),_.H("design:type",Object)],Jw.prototype,"atEnd",void 0);
_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],Jw.prototype,"contents",void 0);_.L([_.bF("data.rowIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jw.prototype,"onRowIndexChange",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jw.prototype,"onDataChange",null);
_.L([_.bF("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jw.prototype,"handleRerenderDownloadsData",null);_.L([_.nF("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Jw.prototype,"onChildElementFocus",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data","isHomePage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jw.prototype,"isTruncated",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jw.prototype,"hideBottomDivider",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jw.prototype,"hasChevronButtons",null);_.L([_.Q("firstShownIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jw.prototype,"previousButtonOverride",null);
_.L([_.Q("atEnd"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jw.prototype,"nextButtonOverride",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jw.prototype,"isHomePage",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jw.prototype,"thumbnailAriaHidden",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jw.prototype,"initiallyIsExpanded",null);
_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Jw.prototype,"entitySelectorType",null);_.L([_.y({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Jw);
_.YXI=_.gX()(Jw,"ytd-rich-shelf-renderer",function(){if(P73===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);P73=B}B=P73;return B},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var avy;_.xU(zi0,"yt-slimline-survey-view-model",{props:{data:_.rk}});var Wt=function(){var B=_.z.apply(this,arguments)||this;B.tileLottieAnimationRef={};B.backgroundLottieAnimationRef={};B.isOnHoverBehaviorForLottieEnabled=!0;B.useBiggerShowcaseImage=_.T("enable_desktop_search_bigger_thumbs");B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return B};
_.w(Wt,_.z);_.a=Wt.prototype;_.a.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.a.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.a.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var B=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);B!==this.hasTile&&this.set("hasTile",B);B=this.hasLogo(this.data)||!!this.data.badgeText;B!==this.hasMetadata&&this.set("hasMetadata",B);B=this.data.overflowButton?!1:B;B!==this.showLogoImage&&this.set("showLogoImage",B);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.a.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.a.currentColorChanged=function(){this.updateButtonPalette()};
_.a.computeBackgroundStyle=function(B){if(B&&this.data){var c=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var x=_.YU((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);x&&c.push('background-image: url("'+x+'");')}var P;((P=B.basicColorData)==null?void 0:P.backgroundColor)!==void 0&&c.push("background-color: "+_.SF(B.basicColorData.backgroundColor)+";");return c.join("")}};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B)};
_.a.getCurrentLogo=function(B,c){if(B)return c?B.darkLogoImage:B.lightLogoImage};
_.a.getCurrentStaticTileImage=function(B,c){if(this.hasStaticTile(B))return B.darkTileImage?c?B.darkTileImage:B.tileImage:B.tileImage};
_.a.computeTitleStyle=function(B){if(this.data&&this.data.title&&B&&B.basicColorData&&B.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.zF(B.basicColorData.foregroundTitleColor)+";"};
_.a.computeSubtitleStyle=function(B){if(this.data&&this.data.subtitle&&B&&B.basicColorData&&B.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.zF(B.basicColorData.foregroundBodyColor)+";"};
_.a.computeSupplementalStyle=function(B){if(this.data&&this.data.supplementalText&&B&&B.supplementalTextColor!==void 0)return B=_.zF(B.supplementalTextColor),"color:"+B+";--yt-endpoint-color:"+B+";--yt-endpoint-hover-color:"+B+";--yt-endpoint-visited-color:"+B+";--yt-formatted-string-bold-font-weight:700;"};
_.a.computeBadgeStyle=function(B){if(this.data&&this.data.badgeText&&B&&B.basicColorData&&B.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.zF(B.basicColorData.foregroundActivatedColor)+";"};
_.a.computeDismissIconStyle=function(B){var c,x;if((B==null?0:(c=B.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(B==null?0:(x=B.dismissButtonColorData)==null?0:x.backgroundColor))return"--yt-button-color:"+_.SF(B.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.SF(B.dismissButtonColorData.backgroundColor)+";"};
_.a.computeOverflowIconStyle=function(B){var c,x;if((B==null?0:(c=B.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(B==null?0:(x=B.dismissButtonColorData)==null?0:x.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.SF(B.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.SF(B.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.SF(B.dismissButtonColorData.foregroundTitleColor)+";"};
_.a.computeBannerStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeLocation=function(B){switch(B==null?void 0:B.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.a.shouldShowTileSection=function(B,c,x){return!this.shouldExpandLogo(B,c,x)&&c};
_.a.shouldShowExpandedLogoSection=function(B,c,x){return this.shouldExpandLogo(B,c,x)&&B!==void 0&&this.hasLogo(B)};
_.a.shouldExpandLogo=function(B,c,x){return B&&c?!1:x>=2};
_.a.hasStaticTile=function(B){return!(B==null||!B.tileImage)};
_.a.hasTileLottie=function(B){var c;return!!(B==null?0:(c=B.tileLottie)==null?0:c.url)};
_.a.hasLogo=function(B){return this.getCurrentLogo(B,this.isDarkTheme)!==void 0};
_.a.getLogoHeight=function(B){return this.logoWithPadding(B)?"26":"20"};
_.a.getExpandedLogoHeight=function(B){return this.logoWithPadding(B)?"31":"24"};
_.a.getLogoImageId=function(B){return this.logoWithPadding(B)?"logo-image-with-padding":"logo-image"};
_.a.hasBackgroundLottie=function(B){var c;return!!(B==null?0:(c=B.backgroundLottie)==null?0:c.url)};
_.a.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var B,c;(B=this.tileLottieAnimationRef)==null||(c=B.lottieEl)==null||c.play();var x,P;(x=this.backgroundLottieAnimationRef)==null||(P=x.lottieEl)==null||P.play()}};
_.a.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var B,c;(B=this.tileLottieAnimationRef)==null||(c=B.lottieEl)==null||c.pause();var x,P;(x=this.backgroundLottieAnimationRef)==null||(P=x.lottieEl)==null||P.pause()}};
_.a.pauseLottie=function(){var B,c;(B=this.tileLottieAnimationRef)==null||(c=B.lottieEl)==null||c.pause();var x,P;(x=this.backgroundLottieAnimationRef)==null||(P=x.lottieEl)==null||P.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.a.performPrimaryButtonAction=function(){var B,c,x;((B=this.data)==null?0:(c=B.primaryButton)==null?0:(x=c.buttonRenderer)==null?0:x.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
_.a.updateButtonPalette=function(){if(this.data&&this.currentColorData){var B;((B=this.data.dismissButton)==null?0:B.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 c;if((c=this.data.primaryButton)==null?0:c.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 x;if((x=this.data.secondaryButton)==
null?0:x.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 Y;((Y=this.data.secondaryButton)==null?0:Y.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.a.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var B=this.getTileLottieDataBasedOnTheme(),c,x;if(B.url!==((c=this.tileLottiePlayerProps)==null?void 0:(x=c.animationConfig)==null?void 0:x.path)){var P,Y;(P=this.tileLottieAnimationRef)==null||(Y=P.lottieEl)==null||Y.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=B.settings)==null?0:g.autoplay);var k,n;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(n=(k=B.settings)==null?void 0:k.autoplay)!=null?n:!1,loop:this.getLottieLoopValue(B.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof B.url==="string"?this.tileLottiePlayerProps.animationConfig.path=B.url:this.tileLottiePlayerProps.animationConfig.animationData=B.url}}};
_.a.getOverflowButton=function(B){return _.t(B.overflowButton,kg5)};
_.a.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var B=this.getBackgroundLottieDataBasedOnTheme(),c,x;if(B.url!==((c=this.backgroundLottiePlayerProps)==null?void 0:(x=c.animationConfig)==null?void 0:x.path)){var P,Y;(P=this.backgroundLottieAnimationRef)==null||(Y=P.lottieEl)==null||Y.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=B.settings)==null?0:g.autoplay);var k,n;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(n=(k=B.settings)==null?void 0:k.autoplay)!=null?n:!1,loop:this.getLottieLoopValue(B.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof B.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=B.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
B.url}}};
_.a.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var B;((B=this.tileLottieAnimationRef)==null?void 0:B.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var c;((c=this.backgroundLottieAnimationRef)==null?void 0:c.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.a.getTileLottieDataBasedOnTheme=function(){var B;if(this.isDarkTheme&&((B=this.data)==null?0:B.darkThemeTileLottie))return this.data.darkThemeTileLottie;var c;return((c=this.data)==null?0:c.tileLottie)?this.data.tileLottie:{}};
_.a.getBackgroundLottieDataBasedOnTheme=function(){var B;if(this.isDarkTheme&&((B=this.data)==null?0:B.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var c;return((c=this.data)==null?0:c.backgroundLottie)?this.data.backgroundLottie:{}};
_.a.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
_.a.getLottieLoopValue=function(B){return B?B.loop!==void 0?B.loop:B.loopCount?B.loopCount-1:!0:!0};
_.a.logoWithPadding=function(B){var c,x,P;return(B=(c=this.getCurrentLogo(B,this.isDarkTheme))==null?void 0:(x=c.thumbnails)==null?void 0:(P=x[0])==null?void 0:P.height)&&B%31===0?!0:!1};
Wt.prototype.currentColorChanged=Wt.prototype.currentColorChanged;Wt.prototype.themeChanged=Wt.prototype.themeChanged;Wt.prototype.dataChanged=Wt.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],Wt.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Wt.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"primaryButton",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"secondaryButton",void 0);
_.L([_.F({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],Wt.prototype,"elementsPerRow",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Wt.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Wt.prototype,"hasTile",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Wt.prototype,"hasMetadata",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Wt.prototype,"showLogoImage",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"currentColorData",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.H("design:type",String)],Wt.prototype,"bannerStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.H("design:type",String)],Wt.prototype,"location",void 0);
_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"tileLottiePlayerProps",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"tileLottieAnimationRef",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"backgroundLottiePlayerProps",void 0);_.L([_.F(),_.H("design:type",Object)],Wt.prototype,"backgroundLottieAnimationRef",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Wt.prototype,"useBiggerShowcaseImage",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Wt.prototype,"isHideEnclosingAction",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wt.prototype,"dataChanged",null);_.L([_.CF("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wt.prototype,"themeChanged",null);
_.L([_.CF("currentColorData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wt.prototype,"currentColorChanged",null);_.L([_.y({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Wt);
_.G(Wt,"ytd-statement-banner-renderer",function(){if(avy!==void 0)return avy;var B=document.createElement("template");_.I(B,'\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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return avy=B},{mode:1});var gaF;var lN=function(){var B=_.z.apply(this,arguments)||this;B.isSearch=!1;B.hideShelfHeader=!1;B.engagementPanel=!1;B.disableMouseScroll=!0;B.useFloorScrolling=!0;B.modernTypography=_.T("web_modern_typography");return B};
_.w(lN,_.z);lN.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Up("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Up("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
lN.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
lN.prototype.onDataChanged=lN.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lN.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"hideShelfHeader",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Object)],lN.prototype,"disableMouseScroll",void 0);_.L([_.F(),_.H("design:type",Object)],lN.prototype,"useFloorScrolling",void 0);_.L([_.F(),_.H("design:type",Object)],lN.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"modernTypography",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lN.prototype,"onDataChanged",null);_.L([_.y({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],lN);
_.G(lN,"ytd-reel-shelf-renderer",function(){if(gaF!==void 0)return gaF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gaF=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var s_F;var p4n=_.rM(function(B){var c=B.data;B=B.useSmallFont;var x={},P={};return _.U("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.U(_.m,{cond:function(){return c().favicon},
then:function(Y){return _.U(_.D9,{data:Y,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.U("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.U(_.RF,{text:function(){return c().title},
className:_.Kw("yt-channel-external-link-view-model-wiz__title",(x["yt-channel-external-link-view-model-wiz__title--title-small-font"]=B,x)),ellipsisTruncate:!0,userInput:!0}),_.U(_.RF,{text:function(){return c().link},
className:_.Kw("yt-channel-external-link-view-model-wiz__link",(P["yt-channel-external-link-view-model-wiz__link--link-small-font"]=B,P)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
p4n.idomCompat=!0;_.xU(p4n,"yt-channel-external-link-view-model",{props:{data:_.rk,useSmallFont:_.rk}});_.o2("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var EC=function(){var B=_.z.apply(this,arguments)||this;B.revealButtonClass="button";B.businessEmailDisplayState="HIDE_SECTION";return B};
_.w(EC,_.z);_.a=EC.prototype;_.a.refit=function(){var B=this;_.Sr(function(){_.sp(B.hostElement,"yt-refit-popups-action")});
_.fl(this,function(){_.sp(B.hostElement,"yt-refit-popups-action")})};
_.a.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.vf("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.a.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"};
_.a.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.a.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"}}}};
_.a.computeEmailHref=function(B){return"mailto:"+B};
_.a.computeSafeUrl=function(B){if(B)return _.Tz(B)};
_.a.linkEndpoint=function(B){return _.t(B.onTap,_.Fo)};
_.a.linkEndpointToHref=function(B){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(B))};
_.a.onYtServiceRequestCompleted=function(B){var c;if((c=B.detail.data)==null?0:c.businessEmail)this.businessEmail=B.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var x;if((x=B.detail.data)==null?0:x.errorMessage)this.businessEmailErrorMessage=B.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.a.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var B=this.JSC$14184_captchaTextarea.value;if(B){B={recaptcha_response_token:B,channel_id:this.metadata.channelId};var c=_.t(this.metadata.onBusinessEmailRevealClickCommand,_.Fo);c&&this.ytComponentBehavior.resolveCommand(c,{form:B})}}};
_.a.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.AJ.Object.defineProperties(EC.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var B;return _.t((B=this.data)==null?void 0:B.metadata,YZS)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.t(this.metadata.businessEmailRevealButton,_.Tj)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var B=new URL(this.metadata.canonicalChannelUrl);return B.host+B.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 _.t(this.metadata.learnMoreOnTap,_.Fo)}}});
EC.prototype.onYtServiceRequestCompleted=EC.prototype.onYtServiceRequestCompleted;EC.prototype.businessEmailMetadataChanged=EC.prototype.businessEmailMetadataChanged;EC.prototype.refit=EC.prototype.refit;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],EC.prototype,"JSC$14184_captchaTextarea",void 0);_.L([_.F(),_.H("design:type",Object)],EC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],EC.prototype,"revealButtonClass",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],EC.prototype,"metadata",null);
_.L([_.Q("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],EC.prototype,"revealButton",null);_.L([_.Q("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],EC.prototype,"channelDisplayUrl",null);_.L([_.CF("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EC.prototype,"refit",null);_.L([_.Q("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],EC.prototype,"formattedDescription",null);
_.L([_.Q("metadata","learnMoreCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],EC.prototype,"shouldRendereVerifiedPhoneStatus",null);_.L([_.Q("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],EC.prototype,"learnMoreCommand",null);_.L([_.F(),_.H("design:type",String)],EC.prototype,"businessEmailDisplayState",void 0);_.L([_.F(),_.H("design:type",String)],EC.prototype,"businessEmail",void 0);
_.L([_.F(),_.H("design:type",String)],EC.prototype,"businessEmailErrorMessage",void 0);_.L([_.CF("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EC.prototype,"businessEmailMetadataChanged",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],EC.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],EC);
_.G(EC,"ytd-about-channel-renderer",function(){if(s_F!==void 0)return s_F;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return s_F=B},{mode:1});var kWS;var OC=function(){return _.z.apply(this,arguments)||this};
_.w(OC,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OC.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],OC);
_.G(OC,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(kWS!==void 0)return kWS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kWS=B},{mode:1});var X4y;var o5=function(){return _.z.apply(this,arguments)||this};
_.w(o5,_.z);o5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],o5.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],o5.prototype,"aligment",void 0);_.L([_.y({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],o5);
_.G(o5,"ytd-channel-list-sub-menu-renderer",function(){if(X4y!==void 0)return X4y;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return X4y=
B},{mode:1});var $o4;var QP=function(){return _.z.apply(this,arguments)||this};
_.w(QP,_.z);QP.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QP.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],QP);
_.G(QP,"ytd-channel-sub-menu-renderer",function(){if($o4!==void 0)return $o4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $o4=B},{mode:1});var naW;var bz4;var Fx=function(){var B=_.z.apply(this,arguments)||this;B.isCompact=!1;return B};
_.w(Fx,_.z);_.AJ.Object.defineProperties(Fx.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var B,c;return((c=_.t((B=this.data)==null?void 0:B.endpoint,_.yp))==null?void 0:c.target)==="TARGET_NEW_WINDOW"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Fx.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fx.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Fx.prototype,"isCompact",void 0);_.L([_.Q("isCompact"),_.H("design:type",Number),_.H("design:paramtypes",[])],Fx.prototype,"thumbnailWidth",null);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Fx.prototype,"openNewWindow",null);_.L([_.y({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Fx);
_.G(Fx,"ytd-media-lockup-renderer",function(){if(bz4!==void 0)return bz4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bz4=B},{mode:1});var KYt;var vt=function(){return _.z.apply(this,arguments)||this};
_.w(vt,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],vt.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vt.prototype,"data",void 0);_.L([_.y({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],vt);
_.G(vt,"ytd-structured-description-channel-lockup-renderer",function(){if(KYt!==void 0)return KYt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return KYt=B},{mode:1});var j_Z;var zc=function(){var B=_.z.apply(this,arguments)||this;B.isCompact=!1;B.collections=_.T("web_modern_collections_v2");B.collectionsStackColor=_.T("modernize_structured_description_playlist_lockups_v2");return B};
_.w(zc,_.z);zc.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:_.T("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.AJ.Object.defineProperties(zc.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(B=this.data)==null?void 0:(c=B.thumbnail)==null?void 0:c.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Y=this.data)==null?void 0:(g=Y.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],zc.prototype,"componentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zc.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],zc.prototype,"showSidePanelThumbnailOverlay",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zc.prototype,"isCompact",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],zc.prototype,"collections",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zc.prototype,"collectionsStackColor",void 0);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],zc.prototype,"twoLineTitle",null);
_.L([_.Q("data","collections","collectionsStackColor"),_.H("design:type",Object),_.H("design:paramtypes",[])],zc.prototype,"collectionStack",null);_.L([_.y({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],zc);
_.G(zc,"ytd-structured-description-playlist-lockup-renderer",function(){if(j_Z!==void 0)return j_Z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return j_Z=B},{mode:1});var UoQ;var S9=function(){return _.z.apply(this,arguments)||this};
_.w(S9,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],S9.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],S9.prototype,"data",void 0);_.L([_.y({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],S9);
_.G(S9,"ytd-structured-description-video-lockup-renderer",function(){if(UoQ!==void 0)return UoQ;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return UoQ=B},{mode:2});var yP=function(){return _.z.apply(this,arguments)||this};
_.w(yP,_.z);
yP.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yP.prototype,"data",void 0);_.L([_.y({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],yP);
_.G(yP,"ytd-compact-infocard-renderer",function(){if(naW!==void 0)return naW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return naW=B},{mode:1});var do5;var Gc=function(){var B=_.z.apply(this,arguments)||this;B.useModernCollectionsV2=_.T("web_modern_collections_v2");return B};
_.w(Gc,_.z);Gc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.AJ.Object.defineProperties(Gc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],Gc.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Gc.prototype,"ytdReduxBehavior",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],Gc.prototype,"isGridViewEnabled",void 0);
_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Gc.prototype,"watchFeedBigThumbs",null);_.L([_.Q("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.H("design:type",String),_.H("design:paramtypes",[])],Gc.prototype,"thumbnailWidth",null);_.L([_.Q("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.H("design:type",String),_.H("design:paramtypes",[])],Gc.prototype,"customThumbnailSize",null);
_.L([_.F(),_.H("design:type",Object)],Gc.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Gc.prototype,"useModernCollectionsV2",void 0);_.L([_.y({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Gc);
_.G(Gc,"ytd-compact-playlist-renderer",function(){if(do5!==void 0)return do5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return do5=B},{mode:1});var qXm;var M7=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.roundedContainer=!0;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return B};
_.w(M7,_.z);_.a=M7.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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"}}}};
_.a.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.a.computeViewStyle=function(B){return B.style?B.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.a.onUpdateElementsPerRowAction=function(B){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&B===1};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
M7.prototype.dataChanged=M7.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],M7.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],M7.prototype,"actionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],M7.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],M7.prototype,"hideThumbnail",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.H("design:type",String)],M7.prototype,"viewStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],M7.prototype,"darkerDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],M7.prototype,"roundedContainer",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M7.prototype,"dataChanged",null);_.L([_.y({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],M7);
_.G(M7,"ytd-compact-promoted-item-renderer",function(){if(qXm!==void 0)return qXm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qXm=B},{mode:1});var C7I;var L7=function(){var B=_.z.apply(this,arguments)||this;B.collections=_.T("web_modern_collections_v2");return B};
_.w(L7,_.z);L7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
L7.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
L7.prototype.onYtNavigate=function(B,c){var x=this;if(c.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",c)){var P=this.get("watchEndpoint.videoId",c.endpoint),Y=_.sp(this.hostElement,"yt-get-current-video-id-action")[0];_.T("kevlar_mix_handle_first_endpoint_different")&&P&&Y&&P!==Y||(B.stopPropagation(),_.Bv().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&x.data.secondaryNavigationEndpoint)var k=x.data.secondaryNavigationEndpoint;else{k=
Object.assign({},c.endpoint);var n=_.t(k.commandMetadata,_.Br);n&&(g=Math.floor(g.getCurrentTime()),n.url=_.AR(n.url,{t:g}),!_.T("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(n=_.t(k,_.fN)))&&(n.startTimeSeconds=g)}_.aJ(x.hostElement,"yt-navigate",{endpoint:k})}))}};
_.AJ.Object.defineProperties(L7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(c=B.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(g=Y.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
L7.prototype.onYtNavigate=L7.prototype.onYtNavigate;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],L7.prototype,"ytEndpointBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],L7.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.Mz),_.H("design:type",Object)],L7.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],L7.prototype,"ytdReduxBehavior",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],L7.prototype,"isGridViewEnabled",void 0);_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],L7.prototype,"watchFeedBigThumbs",null);
_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],L7.prototype,"thumbnailWidth",null);_.L([_.F(),_.H("design:type",Object)],L7.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],L7.prototype,"collections",void 0);_.L([_.Q("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],L7.prototype,"collectionStack",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],L7.prototype,"onYtNavigate",null);_.L([_.y({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],L7);
_.G(L7,"ytd-compact-radio-renderer",function(){if(C7I!==void 0)return C7I;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return C7I=B},{mode:1});var hJ4;var Zk=function(){return _.z.apply(this,arguments)||this};
_.w(Zk,_.z);Zk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Zk.prototype.computeRendererStyle=function(B){return B.style?B.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.L([_.F(),_.H("design:type",Object)],Zk.prototype,"data",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Zk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Zk.prototype,"rendererBehavior",void 0);_.L([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],Zk.prototype,"rendererStyle",void 0);_.L([_.y({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Zk);
_.G(Zk,"ytd-compact-text-promo-renderer",function(){if(hJ4!==void 0)return hJ4;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hJ4=B},{mode:1});var mo0;var Ht=function(){var B=_.z.apply(this,arguments)||this;B.isShortsStyle=!1;return B};
_.w(Ht,_.z);_.a=Ht.prototype;_.a.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"}}}};
_.a.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.aJ(this.hostElement,"yt-disable-lockup-interaction"):_.aJ(this.hostElement,"yt-enable-lockup-interaction"))};
_.a.isMetaBlockEmpty=function(B){return!B||!B.longBylineText&&!B.shortBylineText&&!B.shortViewCountText&&!B.viewCountText};
_.a.computeHasOneLineTitle=function(B){return this.forceOneLineTitle||!(B==null||!B.buttons)};
_.a.computeDisableInteraction=function(){var B;return!((B=this.data)==null?0:B.navigationEndpoint)};
_.a.hasSingularTopStandaloneBadge=function(){var B;return!((B=this.data)==null||!B.topStandaloneBadge)};
_.AJ.Object.defineProperties(Ht.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("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 B;return this.hasSingularTopStandaloneBadge()?[(B=this.data)==null?void 0:B.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var B;return this.shouldShowTopBadges?((B=this.data)==null?void 0:B.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Ht.prototype.disableInteractionChanged=Ht.prototype.disableInteractionChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],Ht.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],Ht.prototype,"ytdLockupBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],Ht.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.H("design:type",Boolean)],Ht.prototype,"metaBlockEmpty",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],Ht.prototype,"isGridViewEnabled",void 0);_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ht.prototype,"watchFeedBigThumbs",null);
_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],Ht.prototype,"thumbnailWidth",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ht.prototype,"isShortsStyle",void 0);_.L([_.F(),_.H("design:type",Object)],Ht.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.H("design:type",Boolean)],Ht.prototype,"hasOneLineTitle",void 0);
_.L([_.F(),_.H("design:type",Boolean)],Ht.prototype,"hideThumbnail",void 0);_.L([_.F(),_.H("design:type",Boolean)],Ht.prototype,"forceOneLineTitle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.H("design:type",Boolean)],Ht.prototype,"disableInteraction",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ht.prototype,"musicMetadataVideoLockup",void 0);
_.L([_.bF("disableInteraction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ht.prototype,"disableInteractionChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ht.prototype,"shouldShowTopBadges",null);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Ht.prototype,"topBadges",null);
_.L([_.Q("shouldShowTopBadges","data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Ht.prototype,"inlineMetadataBadges",null);_.L([_.Q("shouldShowTopBadges"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ht.prototype,"shouldShowBadgesBelowMetadata",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ht.prototype,"compactTitleClass",null);_.L([_.y({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Ht);
_.G(Ht,"ytd-compact-video-renderer",function(){if(mo0!==void 0)return mo0;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mo0=B},{mode:_.sL("kevlar_poly_si_batch_j067")?1:2});var TnQ;_.o2("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var f7=function(){return _.z.apply(this,arguments)||this};
_.w(f7,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],f7.prototype,"data",void 0);_.L([_.y({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],f7);
_.G(f7,"ytd-counterfactual-renderer",function(){if(TnQ!==void 0)return TnQ;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return TnQ=B},{mode:1});var Vzm;var iN=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;return B};
_.w(iN,_.z);iN.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.cp().resolve(_.xu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
iN.prototype.computeHidden=function(B){return!!B};
_.AJ.Object.defineProperties(iN.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}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iN.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.H("design:type",Object)],iN.prototype,"hidden",void 0);_.L([_.Q("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],iN.prototype,"label",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iN.prototype,"value",null);
_.L([_.y({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],iN);
_.G(iN,"ytd-dropdown-item-renderer",function(){if(Vzm!==void 0)return Vzm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Vzm=B},{mode:1});var tz4;var w49;var Aw=function(){return _.z.apply(this,arguments)||this};
_.w(Aw,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Aw.prototype,"data",void 0);_.L([_.F({computed:"getSimpleString(data.label)"}),_.H("design:type",String)],Aw.prototype,"label",void 0);_.L([_.y({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Aw);
_.G(Aw,"ytd-navigation-dropdown-item-renderer",function(){if(w49!==void 0)return w49;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return w49=B},{mode:1});var uN=function(){var B=_.z.apply(this,arguments)||this;B.disabled=!1;B.value="";B.noLabelFloat=!1;B.noUnderline=!1;B.usePrimaryColor=!1;B.hasBackground=!1;B.verticalAlign="top";B.autosize=!1;B.minAutosizeWidth=100;B.autosizeFont="14px Roboto";return B};
_.w(uN,_.z);_.a=uN.prototype;_.a.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"}}}};
_.a.open=function(){this.inputEl.open()};
_.a.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.a.dataChanged=function(){this.reset()};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("value-changed",this.value))};
_.a.stopPropagation=function(B){B.stopPropagation()};
_.a.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var B=this.canvas.getContext("2d");B&&(B.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(B.measureText(this.inputEl.value).width)+24)+"px")}};
_.a.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var B=0,c=this.data.entries.length;B<c;B++){var x=this.data.entries[B],P;for(P in x)if(x.hasOwnProperty(P)){var Y=x[P];if("isSelected"in Y&&Y.isSelected)return"stringValue"in Y?Y.stringValue||"":"int32Value"in Y?Y.int32Value||0:0}}return null};
_.a.updateValueFromBinding=function(B){this.value=B.detail.value};
_.AJ.Object.defineProperties(uN.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 B=0,c=this.data.entries.length;B<c;B++){var x=this.data.entries[B],P;for(P in x)if(x.hasOwnProperty(P)){var Y=x[P];if("isSelected"in Y&&Y.isSelected&&"label"in Y)return this.ytRendererBehavior.getSimpleString(Y.label)}}return null}}});
uN.prototype.autoSizeLabel=uN.prototype.autoSizeLabel;uN.prototype.stopPropagation=uN.prototype.stopPropagation;uN.prototype.valueChangedForBinding=uN.prototype.valueChangedForBinding;uN.prototype.dataChanged=uN.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uN.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],uN.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uN.prototype,"disabled",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"value",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"noLabelFloat",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uN.prototype,"noUnderline",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],uN.prototype,"theme",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uN.prototype,"usePrimaryColor",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uN.prototype,"hasBackground",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"verticalAlign",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"autosize",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"minAutosizeWidth",void 0);_.L([_.F(),_.H("design:type",Object)],uN.prototype,"autosizeFont",void 0);
_.L([_.jr("#entries"),_.H("design:type",Object)],uN.prototype,"entries",void 0);_.L([_.jr("#input"),_.H("design:type",Object)],uN.prototype,"inputEl",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"dataChanged",null);_.L([_.CF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"valueChangedForBinding",null);
_.L([_.nF("iron-overlay-opened"),_.nF("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uN.prototype,"stopPropagation",null);_.L([_.nF("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"autoSizeLabel",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],uN.prototype,"label",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],uN);
_.G(uN,"ytd-dropdown-renderer",function(){if(tz4!==void 0)return tz4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return tz4=B},{mode:1});var Nnn;var Dk=function(){var B=_.z.apply(this,arguments)||this;B.isConstrainedList=!1;return B};
_.w(Dk,_.z);Dk.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"}}}};
Dk.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Dk.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Dk.prototype.computeViewAllHidden=function(B,c){return B||!c.viewAllEndpoint};
Dk.prototype.fillRestIfNoShowMore=Dk.prototype.fillRestIfNoShowMore;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],Dk.prototype,"ytLazyListBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Dk.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Dk.prototype,"isConstrainedList",void 0);_.L([_.CF("data","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dk.prototype,"fillRestIfNoShowMore",null);_.L([_.y({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Dk);
_.G(Dk,"ytd-expanded-shelf-contents-renderer",function(){if(Nnn!==void 0)return Nnn;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Nnn=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var Ivd;var r4=function(){return _.z.apply(this,arguments)||this};
_.w(r4,_.z);r4.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],r4.prototype,"data",void 0);_.L([_.y({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],r4);
_.G(r4,"ytd-feed-channel-filter-header-renderer",function(){if(Ivd!==void 0)return Ivd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ivd=B},{mode:1});var JS9;var WYd;var lv3;var R5=function(){return _.z.apply(this,arguments)||this};
_.w(R5,_.z);_.a=R5.prototype;_.a.onClick=function(B){var c,x=(c=this.data)==null?void 0:c.sectionEndpoint;!_.uv(_.AV(B),this.hostElement,["A".toString()])&&x&&_.aJ(this.hostElement,"yt-navigate",{endpoint:x})};
_.a.computeHasSectionEndpoint=function(B){return(B==null?void 0:B.sectionEndpoint)!==void 0};
_.a.computeShowHeaderAsLink=function(B){return(B==null?void 0:B.header)!==void 0&&(B==null?void 0:B.sectionEndpoint)!==void 0};
_.a.computeShowSubheaderAsLink=function(B){return(B==null?void 0:B.subheader)!==void 0&&(B==null?void 0:B.sectionEndpoint)!==void 0&&(B==null?void 0:B.header)===void 0};
_.a.getHeaderAsLinkClass=function(B){var c=[],x;(B==null?0:(x=B.headerIcon)==null?0:x.iconType)&&c.push("header-link-active");return c.join(" ")};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],R5.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],R5.prototype,"data",void 0);
_.L([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],R5.prototype,"hasSectionEndpoint",void 0);_.L([_.F({computed:"computeShowHeaderAsLink(data)"}),_.H("design:type",Boolean)],R5.prototype,"showHeaderAsLink",void 0);_.L([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.H("design:type",Boolean)],R5.prototype,"showSubheaderAsLink",void 0);_.L([_.y({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],R5);
_.G(R5,"ytd-medical-panel-section-renderer",function(){if(lv3!==void 0)return lv3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lv3=B},{mode:1});var e9=function(){var B=_.z.apply(this,arguments)||this;B.isExpanded=!1;B.roundedContainer=!0;B.skipRoundingTop=!1;B.toggleExpandableSection=function(){B.isExpanded=!B.isExpanded};
return B};
_.w(e9,_.z);
e9.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]]"}}}}}};
e9.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
e9.prototype.dataChanged=e9.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],e9.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],e9.prototype,"isExpanded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e9.prototype,"roundedContainer",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e9.prototype,"skipRoundingTop",void 0);_.L([_.F(),_.H("design:type",Object)],e9.prototype,"toggleExpandableSection",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e9.prototype,"dataChanged",null);_.L([_.y({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],e9);
_.G(e9,"ytd-medical-panel-content-renderer",function(){if(WYd!==void 0)return WYd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return WYd=B},{mode:1});_.o2("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var B0=function(){var B=_.z.apply(this,arguments)||this;B.roundedContainer=!0;B.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");B.hasTitle=!1;B.linkIcon="OPEN_IN_NEW";B.isDismissed=!1;return B};
_.w(B0,_.z);
B0.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"}}}};
B0.prototype.computeHasTitle=function(B){return!(B==null||!B.title)};
B0.prototype.onClick=function(B){var c,x=(c=this.data)==null?void 0:c.headerEndpoint;!_.uv(_.AV(B),this.hostElement,["BUTTON".toString()])&&x&&this.ytComponentBehavior.resolveCommand(x)};
_.AJ.Object.defineProperties(B0.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 B;return((B=this.data)==null?void 0:B.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.disableBottomDivider)||!((c=this.data)==null?0:c.title)}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],B0.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],B0.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],B0.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],B0.prototype,"amsterdamEnabled",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Object)],B0.prototype,"hasTitle",void 0);
_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],B0.prototype,"background",null);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],B0.prototype,"titleStyle",null);
_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],B0.prototype,"showLinkIcon",null);_.L([_.F(),_.H("design:type",String)],B0.prototype,"linkIcon",void 0);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],B0.prototype,"hideDivider",null);
_.L([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(B,c){B=_.X9(B.entities,"dismissState",c);return(B==null?void 0:B.isDismissed)||(B==null?void 0:B.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(B==null?void 0:B.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.H("design:type",Object)],B0.prototype,"isDismissed",void 0);_.L([_.y({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],B0);
_.G(B0,"ytd-info-panel-container-renderer",function(){if(JS9!==void 0)return JS9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return JS9=B},{mode:1});var Ea4;_.o2("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var c0=function(){var B=_.z.apply(this,arguments)||this;B.modernTypography=_.T("web_modern_typography");return B};
_.w(c0,_.z);c0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
c0.prototype.computeStyle=function(B){return B?B:""};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],c0.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.H("design:type",String)],c0.prototype,"titleStyle",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],c0.prototype,"modernTypography",void 0);_.L([_.y({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],c0);
_.G(c0,"ytd-item-section-header-renderer",function(){if(Ea4!==void 0)return Ea4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ea4=B},{mode:1});var Ozn;var oa4,Q_S=function(){return oa4!==void 0?oa4:oa4=document.createElement("template")};
document.head.appendChild(Q_S().content);var FY0;_.xB=new _.BL("VOTING_ANIMATION_CONTROLLER_TOKEN");var zJ5=_.rM(function(B){var c=B.data;var x=_.Ho("div"),P=_.Ho("div");B=_.p(_.$D("VOTE_STATUS_NONE",void 0,"FVF7mc"));var Y=B.next().value,g=B.next().value,k=_.jA(LMl,function(){var h;return(h=c())==null?void 0:h.entityKey}),n=_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation");
_.lk(function(){var h;((h=c().initialState)==null?0:h.status)&&g(c().initialState.status)});
var b=function(){var h,V,N=(V=(h=c().initialState)==null?void 0:h.votes)!=null?V:0,l;h=(l=c().initialState)==null?void 0:l.status;return h==="VOTE_STATUS_UPVOTED"?N-1:h==="VOTE_STATUS_DOWNVOTED"?N+1:N},d=function(){return Y()==="VOTE_STATUS_UPVOTED"?b()+1:Y()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},q=function(h){var V=h?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(V);var N=d(),l=_.cp().resolve(_.Bp(_.xB)),E=k();E&&(h&&(E==null?0:E.upvoteDefaultButtonOnTap)?_.Gl(E.upvoteDefaultButtonOnTap,{form:{element:x.value},disableClickTracking:!0}):(E==null?0:E.upvoteToggledButtonOnTap)&&_.Gl(E.upvoteToggledButtonOnTap,{form:{element:x.value},disableClickTracking:!0}));var S;h=(S=E==null?void 0:E.enableOptimisticReordering)!=null?S:c().enableOptimisticReordering;n&&l&&c().itemId&&h&&vaF(l,c().itemId,N,V)},C=function(h){var V=h?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(V);var N=d(),l=_.cp().resolve(_.Bp(_.xB)),E=k();E&&(h&&(E==null?0:E.downvoteDefaultButtonOnTap)?_.Gl(E.downvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(E==null?0:E.downvoteToggledButtonOnTap)&&_.Gl(E.downvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var S;h=(S=E==null?void 0:E.enableOptimisticReordering)!=null?S:c().enableOptimisticReordering;n&&l&&c().itemId&&h&&vaF(l,c().itemId,N,V)};
B={};B=_.Kw("ytVotingViewModelVoteCount",(B.ytVotingViewModelVoteCountDisabled=function(){return c().isDisabled},B));
return _.U("voting-view-model",{class:"ytVotingViewModelHost"},_.U("div",{el:x},_.U(_.IF,{data:function(){var h=_.t(c().upvoteButton,_.V7);return{toggleButtonViewModel:Object.assign({},h,{isToggled:Y()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(h){return _.U(_.Jb,{data:h.data,
onToggle:q})}})),_.U("div",{class:B},function(){var h,V,N;
return Y()==="VOTE_STATUS_UPVOTED"?(h=c().initialState)==null?void 0:h.compactVotesUpvoted:Y()==="VOTE_STATUS_DOWNVOTED"?(V=c().initialState)==null?void 0:V.compactVotesDownvoted:(N=c().initialState)==null?void 0:N.compactVotes}),_.U("div",{el:P},_.U(_.IF,{data:function(){var h=_.t(c().downvoteButton,_.V7);
return{toggleButtonViewModel:Object.assign({},h,{isToggled:Y()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(h){return _.U(_.Jb,{data:h.data,
onToggle:C})}})))},"Ib");_.xU(_.rM(function(B){var c=B.data;return _.U("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.U("div",{class:_.Kw("ytEngagementBarViewModelEngagementBarWrapper",B.className)},_.U(_.IF,{data:function(){return c().actions}},{votingViewModel:zJ5})))},"Jb"),"engagement-bar-view-model",{props:{data:_.rk,
className:_.rk}});var P0=function(){var B=_.z.apply(this,arguments)||this;B.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.downloadState="DOWNLOAD_STATE_UNKNOWN";B.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";B.offlineVideoPolicyExpirationTimestamp=0;return B};
_.w(P0,_.z);_.a=P0.prototype;_.a.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"}}}};
_.a.canReorderChanged=function(){this.persistentDragHandle=_.T("kevlar_playlist_drag_handles")&&this.canReorder};
_.a.onDrag=function(){if(this.thumbnail){var B=_.Y9(this.thumbnail).querySelector("yt-image");B&&(B.shouldRenderLazy=!1)}};
_.a.onMenuOverlayChanged=function(B,c){this.menuOpened=c};
_.a.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.a.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.a.onContentsTap=function(B){var c,x=(c=this.data)==null?void 0:c.serviceEndpoints;if(x&&x.length===1&&_.t(x[0],goO)&&!_.uv(_.AV(B),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(x[0]);else{var P;(c=(P=this.data)==null?void 0:P.navigationEndpoint)&&_.T("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?SX3(_.cp().resolve(_.Ge),c):(_.dd().playlistSuggestionsShelfActivation=
!0,_.ySd(_.cp().resolve(_.Ge),c)):c&&!_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.T("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.aJ(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))}};
_.a.computeStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeThumbnailWidth=function(B){return B==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.a.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=xmI(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))}};
_.a.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.a.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.a.dataChanged=function(){if(this.data){var B,c,x,P=((B=this.downloadRenderData)==null?void 0:B.badges)&&((c=this.downloadRenderData)==null?void 0:c.badges)!==((x=this.data)==null?void 0:x.badges),Y,g,k;B=((Y=this.downloadRenderData)==null?void 0:Y.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((k=this.data)==null?void 0:k.thumbnailOverlays);(!this.downloadRenderData||P||B)&&this.downloadStateChanged()}};
_.a.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var B,c,x=(B=this.data.menu)==null?void 0:(c=B.menuRenderer)==null?void 0:c.items;if(x)for(B=_.p(x),c=B.next();!c.done;c=B.next())if(c=c.value,x=void 0,_.t((x=c.menuServiceItemRenderer)==null?void 0:x.serviceEndpoint,_.QR)){var P=x=void 0,Y=void 0;c=(x=c)==null?void 0:(P=x.menuServiceItemRenderer)==null?void 0:(Y=P.serviceEndpoint)==null?void 0:Y.playlistEditEndpoint;Y=P=void 0;if(x=(P=c)==null?void 0:(Y=P.actions)==null?void 0:
Y[0])P=void 0,x.setVideoId=(P=this.data)==null?void 0:P.setVideoId;Y=P=x=void 0;if(c=(x=c)==null?void 0:(P=x.clientActions)==null?void 0:(Y=P[0])==null?void 0:Y.playlistRemoveVideosAction)x=void 0,c.setVideoIds=[(x=this.data)==null?void 0:x.setVideoId]}}};
_.AJ.Object.defineProperties(P0.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
P0.prototype.setVideoIdChanged=P0.prototype.setVideoIdChanged;P0.prototype.dataChanged=P0.prototype.dataChanged;P0.prototype.downloadStateChanged=P0.prototype.downloadStateChanged;P0.prototype.onMenuOverlayChanged=P0.prototype.onMenuOverlayChanged;P0.prototype.canReorderChanged=P0.prototype.canReorderChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],P0.prototype,"ytdReduxBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],P0.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],P0.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],P0.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],P0.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"canReorder",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"menuOpened",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"handleIsHovered",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"persistentDragHandle",void 0);_.L([_.F(),_.H("design:type",Object)],P0.prototype,"downloadRenderData",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],P0.prototype,"styleType",void 0);_.L([_.F({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],P0.prototype,"thumbnailWidth",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"isDownloads",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],P0.prototype,"playlistVotingAnimationEnabled",void 0);
_.L([_.F({selector:v3,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"downloadProgress",void 0);_.L([_.F(),_.H("design:type",Number)],P0.prototype,"relativeDateReference",void 0);_.L([_.F({selector:_.QI,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"transferState",void 0);_.L([_.F({selector:w7C,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"downloadState",void 0);
_.L([_.F({selector:$VQ,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"offlinePolicyAction",void 0);_.L([_.F({selector:n5w,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.L([_.F({selector:KQI,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],P0.prototype,"entityInfo",void 0);_.L([_.F({selector:_.Ev}),_.H("design:type",Boolean)],P0.prototype,"miniplayerIsActive",void 0);
_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],P0.prototype,"playlistVideoId",null);_.L([_.jr("#thumbnail"),_.H("design:type",Object)],P0.prototype,"thumbnail",void 0);_.L([_.CF("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P0.prototype,"canReorderChanged",null);
_.L([_.nF("yt-menu-overlay-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Boolean]),_.H("design:returntype")],P0.prototype,"onMenuOverlayChanged",null);_.L([_.CF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P0.prototype,"downloadStateChanged",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P0.prototype,"dataChanged",null);_.L([_.CF("data.setVideoId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P0.prototype,"setVideoIdChanged",null);_.L([_.y({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],P0);
_.G(P0,"ytd-playlist-video-renderer",function(){if(FY0!==void 0)return FY0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);B.content.insertBefore(Q_S().content.cloneNode(!0),B.content.firstChild);return FY0=B},{mode:1});var GW5;var YB=function(){return _.z.apply(this,arguments)||this};
_.w(YB,_.z);_.L([_.F(),_.H("design:type",Object)],YB.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],YB.prototype,"rendererBehavior",void 0);_.L([_.y({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],YB);
_.G(YB,"ytd-premium-browse-footer-renderer",function(){if(GW5!==void 0)return GW5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return GW5=B},{mode:1});var Mzn;var ah=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return B};
_.w(ah,_.z);_.a=ah.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.handleDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.computeHeaderLogoThumbnail=function(B,c){if(B)return c?B.darkLogo:B.lightLogo};
_.a.computeHeaderLogoHeight=function(B,c){var x,P,Y;return(B=(x=this.computeHeaderLogoThumbnail(B,c))==null?void 0:(P=x.thumbnails)==null?void 0:(Y=P[0])==null?void 0:Y.height)&&B%31===0?"31":"24"};
_.a.computeHeaderLogoMarginBottom=function(B,c){return this.computeHeaderLogoHeight(B,c)==="24"?"0":"-7"};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ah.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ah.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],ah.prototype,"isDarkTheme",void 0);_.L([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.H("design:type",Object)],ah.prototype,"themeLogo",void 0);
_.L([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.H("design:type",String)],ah.prototype,"logoHeight",void 0);_.L([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.H("design:type",String)],ah.prototype,"logoMarginBottom",void 0);_.L([_.y({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],ah);
_.G(ah,"ytd-primetime-promo-header-renderer",function(){if(Mzn!==void 0)return Mzn;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Mzn=B},{mode:1});var LYF;var Hzn=_.rM(function(B){var c=_.qe(function(Y){var g;(g=B.onClick)==null||g.call(B,Y)}),x={},P={};
return _.U("yt-shelf-header-layout",{class:_.Kw("shelf-header-layout-wiz",(x["shelf-header-layout-wiz--disable-horizontal-padding"]=B.disableHorizontalPadding,x["shelf-header-layout-wiz--disable-vertical-padding"]=B.disableVerticalPadding,x["shelf-header-layout-wiz--responsive"]=B.useResponsiveLayout,x["shelf-header-layout-wiz--narrow"]=function(){var Y,g;return((Y=B.useResponsiveLayout)==null?void 0:Y.call(B))&&((g=B.forceSmallLayout)==null?void 0:g.call(B))},x["shelf-header-layout-wiz--is-overlay"]=
B.isOverlay,x["shelf-header-layout-wiz--tappable"]=!!B.onClick,x)),
"on:click":c,tabindex:B.onClick?0:void 0},_.U(_.m,{cond:B.leadingIcon,then:function(Y){return _.U("div",{class:"shelf-header-layout-wiz__leading-icon"},_.U(_.Vf,{icon:Y}))},
else:function(){return _.U(_.m,{cond:B.hasLeadingImage,then:function(){var Y,g={};return _.U("div",{class:_.Kw("shelf-header-layout-wiz__leading-image",(g["shelf-header-layout-wiz__leading-image--circular-image"]=B.circularImage,g))},(Y=B.leadingImage)==null?void 0:Y.call(B))}})}}),_.U("div",{class:"shelf-header-layout-wiz__label-container"},_.U(_.m,{cond:B.hasSuperlabel,
then:function(){var Y;return _.U("div",{class:"shelf-header-layout-wiz__superlabel"},(Y=B.superlabel)==null?void 0:Y.call(B))}}),_.U("div",{class:"shelf-header-layout-wiz__title-row"},_.U(ZzQ,{text:B.title,
className:_.Kw("shelf-header-layout-wiz__title",(P["shelf-header-layout-wiz__title--small-title"]=B.forceSmallLayout,P)),tagLevel:B.tagLevel}),_.U(_.m,{cond:B.hasDetail,then:function(){var Y;return _.U("div",{class:"shelf-header-layout-wiz__detail"},(Y=B.detail)==null?void 0:Y.call(B))}})),_.U(_.m,{cond:B.hasSublabel,
then:function(){var Y;return _.U("div",{class:"shelf-header-layout-wiz__sublabel"},(Y=B.sublabel)==null?void 0:Y.call(B))}})),_.U(_.m,{cond:B.hasTrailingActions,
then:function(){var Y;return _.U("div",{class:"shelf-header-layout-wiz__trailing-actions"},(Y=B.trailingActions)==null?void 0:Y.call(B))}}))},"Kb");
Hzn.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var ZzQ=_.rM(function(B){var c=B.text;var x=B.className;var P=B.tagLevel;return _.U(_.tR,null,_.U(_.Tu,{when:function(){return(P==null?void 0:P())===0}},function(){return _.U("h2",{class:x},c())}),_.U(_.Tu,{when:function(){return(P==null?void 0:P())===1}},function(){return _.U("h3",{class:x},c())}),_.U(_.Tu,{when:function(){return(P==null?void 0:P())===2}},function(){return _.U("h4",{class:x},c())}),_.U(_.Va,null,function(){return _.U("h2",{class:x},c())}))},"Lb");var ASt,fvn,izm;_.g1=_.rM(function(B){var c=B.data;return _.U("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.TU({"background-color":function(){return Z57(c().backgroundColor)?_.SF(Z57(c().backgroundColor)):void 0}})},_.U(Hzn,{hasDetail:!1,
title:function(){return _.U(_.RF,{text:function(){return c().headline}})},
hasTitle:!0,sublabel:function(){return _.U(fvn,{data:c})},
hasSublabel:function(){return!!c().sublabel||!!c().bottomBadge},
superlabel:function(){return _.U(izm,{data:c})},
hasSuperlabel:function(){return!!c().superlabel||!!c().topBadge},
leadingImage:function(){return _.U(ASt,{leadingAccessory:function(){return c().leadingAccessory}})},
hasLeadingImage:function(){return!!c().leadingAccessory},
trailingActions:function(){return _.U(_.IF,{data:function(){return c().trailingActions}},{flexibleActionsViewModel:IN})},
hasTrailingActions:function(){return!!c().trailingActions},
disableHorizontalPadding:B.disableHorizontalPadding,disableVerticalPadding:B.disableVerticalPadding,forceSmallLayout:B.forceSmallLayout,useResponsiveLayout:B.useResponsiveLayout,isOverlay:B.isOverlay,onClick:function(x){if(_.Z_(c().rendererContext)){var P=_.L3(c().rendererContext);P&&_.zl(P,{form:{element:x.target,event:x}})}}}))},"Mb");
ASt=_.rM(function(B){var c=B.leadingAccessory;return _.U(_.at,null,_.U(_.m,{cond:function(){var x;return(x=c().image)!=null?x:_.r$(c().themedImage)},
then:function(x){return _.U(_.D9,{data:x,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.U(_.m,{cond:function(){return _.t(c().avatar,_.f3)},
then:function(x){return _.U(_.IS,{data:x})}}))},"Nb");
fvn=_.rM(function(B){var c=B.data;return _.U(_.at,null,_.U(_.m,{cond:function(){return _.t(c().bottomBadge,bVQ)},
then:function(x){var P={};return _.U(_.Bz,{data:x,class:_.Kw((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!x()&&!!c().sublabel},P))})}}),_.U(_.m,{cond:function(){return c().sublabel},
then:function(x){return _.U(_.RF,{text:x})}}))},"Ob");
izm=_.rM(function(B){var c=B.data;return _.U(_.at,null,_.U(_.m,{cond:function(){return _.t(c().topBadge,bVQ)},
then:function(x){var P={};return _.U(_.Bz,{data:x,class:_.Kw((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!x()&&!!c().superlabel},P))})}}),_.U(_.m,{cond:function(){return c().superlabel},
then:function(x){return _.U(_.RF,{text:x})}}))},"Pb");_.xU(_.g1,"yt-section-header-view-model",{props:{data:_.rk,className:_.rk,disableHorizontalPadding:_.rk,disableVerticalPadding:_.rk,forceSmallLayout:_.rk,useResponsiveLayout:_.rk,isOverlay:_.rk}});_.o2("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var sz=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return B};
_.w(sz,_.z);_.a=sz.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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"}}}};
_.a.onDataChange=function(){var B=this;_.fl(this,function(){B.updateItemVisibility()})};
_.a.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B,this.updateItemVisibility())};
_.a.updateItemVisibility=function(){var B=this;this.data&&this.data.panels&&_.Y9(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(c,x){c.hidden=x>B.elementsPerRow-1})};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
sz.prototype.onDataChange=sz.prototype.onDataChange;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],sz.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],sz.prototype,"actionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],sz.prototype,"data",void 0);_.L([_.F({value:3}),_.H("design:type",Number)],sz.prototype,"elementsPerRow",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"onDataChange",null);_.L([_.y({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],sz);
_.G(sz,"ytd-primetime-promo-renderer",function(){if(LYF!==void 0)return LYF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return LYF=B},{mode:1});var uQd;var pi=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return B};
_.w(pi,_.z);pi.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
pi.prototype.handleButtonRefreshAction=function(B){if(B=_.t(B,N2m))this.set("data.button",B.membershipButton),this.notifyPath("data.button")};
_.AJ.Object.defineProperties(pi.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.avatars)==null?void 0:c.slice(0,8))||[]}}});
_.L([_.F(),_.H("design:type",Object)],pi.prototype,"data",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],pi.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pi.prototype,"rendererBehavior",void 0);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],pi.prototype,"avatars",null);
_.L([_.y({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],pi);
_.G(pi,"ytd-recognition-shelf-renderer",function(){if(uQd!==void 0)return uQd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uQd=B},{mode:1});var DoF;var rSd;var kB=function(){var B=_.z.apply(this,arguments)||this;B.modernButtons=_.T("web_modern_buttons");return B};
_.w(kB,_.z);_.a=kB.prototype;
_.a.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]]"}}}}}};
_.a.dataChanged=function(){this.collapsed=!0};
_.a.computeVisibleItems=function(B,c){return B!==void 0&&B.items?c?B.items.slice(0,this.data.collapsedItemCount):B.items:[]};
_.a.computeHideShowMore=function(B,c,x){return B>=c||!x};
_.a.computeHideShowAll=function(B,c,x){return!(B&&c)||x};
_.a.onMoreClick=function(){this.collapsed=!1};
_.AJ.Object.defineProperties(kB.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.T("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
kB.prototype.dataChanged=kB.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],kB.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],kB.prototype,"isSearch",void 0);
_.L([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.H("design:type",Array)],kB.prototype,"visibleItems",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],kB.prototype,"collapsed",void 0);_.L([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.H("design:type",Boolean)],kB.prototype,"hideShowMore",void 0);
_.L([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.H("design:type",Boolean)],kB.prototype,"hideShowAll",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kB.prototype,"modernButtons",void 0);_.L([_.Q("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kB.prototype,"typographyBump",null);
_.L([_.Q("isSearch"),_.H("design:type",Object),_.H("design:paramtypes",[])],kB.prototype,"lockupExperiments",null);_.L([_.Q("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],kB.prototype,"thumbnailWidth",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kB.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],kB);
_.G(kB,"ytd-vertical-list-renderer",function(){if(rSd!==void 0)return rSd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rSd=B},{mode:1});var RJ0=_.r2(["#"]);_.o2("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var $B=function(){var B=_.z.apply(this,arguments)||this;B.isConstrainedList=!1;B.modernTypography=_.T("web_modern_typography");return B};
_.w($B,_.z);_.a=$B.prototype;
_.a.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"}}}};
_.a.computeThumbnailStyle=function(B){return B||""};
_.a.computePlaceAnnotationUnderTitle=function(){var B;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((B=this.data)==null?void 0:B.thumbnailStyle)||"")};
_.a.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B)||_.w8(RJ0)};
_.a.computeIsPromoShelf=function(B){var c;return(B=B==null?void 0:(c=B[0])==null?void 0:c.metadataBadgeRenderer)?B.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.a.computePlaceBadgeBesideTitle=function(B){var c;return(B==null?0:(c=B[0])==null?0:c.metadataBadgeRenderer)?!this.computeIsPromoShelf(B):!1};
_.a.computeMenuIcon=function(B){return this.computeIsPromoShelf(B)?"yt-icons:more_vert":"yt-icons:more"};
_.a.onDataChange=function(){var B,c;((B=this.data)==null?0:(c=B.content)==null?0:c.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.a.onLockupRequested=function(B){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&B.detail&&B.detail.videoIds){for(var c=this.data.content.gridRenderer.items,x=new Set,P=_.p(B.detail.videoIds),Y=P.next();!Y.done;Y=P.next())x.add(Y.value);B.detail.returnValue=c.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&x.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.a.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
$B.prototype.onLockupRequested=$B.prototype.onLockupRequested;$B.prototype.onDataChange=$B.prototype.onDataChange;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],$B.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],$B.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],$B.prototype,"ironResizableBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$B.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],$B.prototype,"isSearch",void 0);_.L([_.F(),_.H("design:type",Object)],$B.prototype,"isConstrainedList",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("kevlar_fluid_dismiss")}}),
_.H("design:type",Boolean)],$B.prototype,"enableFluidDismiss",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.H("design:type",String)],$B.prototype,"thumbnailStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$B.prototype,"modernTypography",void 0);_.L([_.F({computed:"computeMenuIcon(data.badges)"}),_.H("design:type",String)],$B.prototype,"menuIcon",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$B.prototype,"onDataChange",null);_.L([_.nF("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$B.prototype,"onLockupRequested",null);_.L([_.y({is:"ytd-shelf-renderer",disableElementRegistration:!0})],$B);
_.G($B,"ytd-shelf-renderer",function(){if(DoF!==void 0)return DoF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return DoF=B},{mode:1});var eJd;var ni=function(){return _.z.apply(this,arguments)||this};
_.w(ni,_.z);ni.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.AJ.Object.defineProperties(ni.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ni.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ni.prototype,"isPlaylist",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ni.prototype,"isClipList",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ni.prototype,"isPlaylistPageWithFilters",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ni.prototype,"hasTitle",null);_.L([_.F(),_.Q("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.H("design:type",Object),_.H("design:paramtypes",[])],ni.prototype,"isRightAligned",null);
_.L([_.y({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ni);
_.G(ni,"ytd-sort-filter-header-renderer",function(){if(eJd!==void 0)return eJd;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eJd=B},{mode:1});var Bg9;var bQ=function(){var B=_.z.apply(this,arguments)||this;B.enableRightArrowHidden=_.T("channel_details_shelf_resize_observer");return B};
_.w(bQ,_.z);bQ.prototype.attached=function(){var B=this;this.enableRightArrowHidden&&(this.JSC$14315_throttledOnResize=new _.eA(function(){var c;(c=B.ytdHorizontalListBehavior)==null||c.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var c;
(c=B.JSC$14315_throttledOnResize)==null||c.fire()}),this.resizeObserver.observe(this.hostElement))};
bQ.prototype.detached=function(){if(this.enableRightArrowHidden){var B;(B=this.resizeObserver)==null||B.disconnect();var c;(c=this.JSC$14315_throttledOnResize)==null||c.dispose()}};
bQ.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]]"}}}}}};
bQ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.AJ.Object.defineProperties(bQ.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.T("enable_creator_details_shelf_m2")){var B=[],c;((c=this.data)==null?0:c.creatorVideosButton)&&B.push(this.data.creatorVideosButton);var x;((x=this.data)==null?0:x.creatorAboutButton)&&B.push(this.data.creatorAboutButton);c=_.p(this.data.creatorCustomUrlButtons||[]);for(x=c.next();!x.done;x=c.next())B.push(x.value);return B}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.T("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],bQ.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bQ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],bQ.prototype,"engagementPanel",void 0);
_.L([_.F(),_.H("design:type",Object)],bQ.prototype,"enableRightArrowHidden",void 0);_.L([_.Q("enableRightArrowHidden","atEnd"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bQ.prototype,"hideRightArrow",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bQ.prototype,"creatorCustomUrlButtons",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data","creatorCustomUrlButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bQ.prototype,"showCreatorCustomUrlButtons",null);_.L([_.Q("showCreatorCustomUrlButtons"),_.H("design:type",Number),_.H("design:paramtypes",[])],bQ.prototype,"channelAvatarSize",null);_.L([_.y({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],bQ);
_.G(bQ,"ytd-video-description-infocards-section-renderer",function(){if(Bg9!==void 0)return Bg9;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Bg9=B},{mode:_.sL("kevlar_poly_si_batch_j067")?1:2});var cD3;var Ki=function(){return _.z.apply(this,arguments)||this};
_.w(Ki,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ki.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],Ki.prototype,"infoIcon",void 0);_.L([_.y({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Ki);
_.G(Ki,"ytd-eom-settings-disclaimer-renderer",function(){if(cD3!==void 0)return cD3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return cD3=B},{mode:1});var xr4;var ju=function(){return _.z.apply(this,arguments)||this};
_.w(ju,_.z);_.AJ.Object.defineProperties(ju.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.suppressPaddingDisclaimer)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ju.prototype,"componentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ju.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ju.prototype,"suppressPaddingDisclaimer",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],ju);
_.G(ju,"ytd-product-list-header-renderer",function(){if(xr4!==void 0)return xr4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return xr4=B},{mode:1});var PHW;var Uz=function(){return _.z.apply(this,arguments)||this};
_.w(Uz,_.z);Uz.prototype.computeThumbnailStyle=function(B){if(B&&(B=_.zF(B)))return"background-color:"+B+";"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Uz.prototype,"rendererBehaviors",void 0);_.L([_.F(),_.H("design:type",Object)],Uz.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Uz);
_.G(Uz,"ytd-hashtag-tile-renderer",function(){if(PHW!==void 0)return PHW;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return PHW=B},{mode:1});var Yjy;var d1=function(){return _.z.apply(this,arguments)||this};
_.w(d1,_.z);d1.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],d1.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],d1);
_.G(d1,"ytd-sponsorships-alert-renderer",function(){if(Yjy!==void 0)return Yjy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Yjy=B},{mode:1});var aLm;var q5=function(){return _.z.apply(this,arguments)||this};
_.w(q5,_.z);q5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.AJ.Object.defineProperties(q5.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.L([_.J(_.Qz),_.H("design:type",Object)],q5.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],q5.prototype,"ytdLockupBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],q5.prototype,"isGridViewEnabled",void 0);
_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],q5.prototype,"watchFeedBigThumbs",null);_.L([_.Q("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],q5.prototype,"thumbnailWidth",null);_.L([_.F(),_.H("design:type",Object)],q5.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],q5);
_.G(q5,"ytd-compact-movie-renderer",function(){if(aLm!==void 0)return aLm;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return aLm=B},{mode:1});var gZ9;var sMF;var pc9=_.v5("HTML_DIR")==="rtl",Ci=function(){var B=_.z.apply(this,arguments)||this;B.engagementPanel=!1;B.maxLines=2;B.expandButtonOffset=0;B.showExpandButton=!1;B.isTruncated=!1;B.isExpanded=!1;B.currentSnippetType=2;B.alwaysShowExpandButton=!1;B.JSC$14332_lastWidth=NaN;B.observer=null;B.left=0;B.right=0;B.mid=0;B.longestSnippetLength=0;B.isFinalSnippet=!1;B.isFirstMutation=!1;B.isResetMutation=!1;B.OVERFLOW_THRESHOLD=5;return B};
_.w(Ci,_.z);_.a=Ci.prototype;_.a.onClick=function(B){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;if((c=window.getSelection())==null||!c.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.a.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.a.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.a.updateTextOnSnippetTypeChange=function(){_.T("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.a.setUpBinarySearch=function(B){B=B*this.maxLines/8;this.left=0;var c,x;this.right=Math.min(B*2,(x=(c=this.simpleText)==null?void 0:c.length)!=null?x:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.a.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.a.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Ob(new _.mc("AttributedSnippet is empty when the description is not empty",this.text))};
_.a.mutationCallback=function(){if(this.observer!=null){var B=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var c=Math.floor(B*this.maxLines/8);this.setSnippetText(this.text,c);c!==0||this.attributedTextIsEmpty()||_.Ob(new _.mc("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;B=B*this.maxLines/8;this.left=0;var x;this.right=Math.min(B*2,(x=(c=this.simpleText)==null?void 0:c.length)!=null?x: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)}}};
_.a.mutationObserve=function(B){var c=this;this.observer||(this.observer=new MutationObserver(function(){c.mutationCallback()}));
this.observer.observe(B,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.a.attached=function(){var B=this;_.fl(this,function(){B.resize()})};
_.a.isExpandedChanged=function(){_.aJ(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.a.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)};
_.a.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var B="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((pc9?"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",B);this.snippetContainer.style.setProperty("mask-image",
B)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(pc9?"right":"left",this.expandButtonOffset+"px")};
_.a.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.a.setSnippetText=function(B,c){B||(B={});if(_.iA(B)){var x=HH(B,c);x.attachmentRuns||x.commandRuns||x.decorationRuns||x.styleRuns||x.alignment||x.lineBreakMode?this.attributedSnippetTextEl?(_.T("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=HH(B,c),this.attributedSnippetTextEl.headerRuns=EmX(c,this.headerRuns)):this.attributedSnippetText={data:HH(B,c),headerRuns:EmX(c,this.headerRuns)},this.currentSnippetType=0):_.Ob(new _.mc("Tried to set snippet text when HTML element was null",
B)):(this.plainSnippetText.textContent=LL(B.content||"",c),this.currentSnippetType=2)}else{a:{x=H5X(B,c);if(x.runs){x=_.p(x.runs);for(var P=x.next();!P.done;P=x.next())if(P=P.value,P.bold||P.deemphasize||P.italics||P.strikethrough||P.textColor||P.navigationEndpoint||_.t(P,om)){x=!0;break a}}x=!1}x?this.formattedSnippetText?(this.formattedSnippetText.text=H5X(B,c),this.currentSnippetType=1):_.Ob(new _.mc("Tried to set snippet text when HTML element was null",B)):(this.plainSnippetText.textContent=
LL(_.iG(B),c),this.currentSnippetType=2)}};
_.a.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.a.attributedTextIsEmpty=function(){var B=this.text;if(!_.iA(B))return!0;var c;return((c=B.content)==null?void 0:c.length)===0?!0:!1};
_.a.resize=function(B){if(this.snippetText){if(B===void 0?0:B)this.JSC$14332_lastWidth=NaN;var c=this.hostElement.offsetWidth;if(c!==this.JSC$14332_lastWidth&&!this.isExpanded)if(this.JSC$14332_lastWidth=c,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;B=0;var x,P;c=Math.min(c*this.maxLines/8*2,(P=(x=this.simpleText)==null?void 0:x.length)!=null?P:0)-1;for(x=0;B<=c;)P=Math.floor(B+(c-B)/2),this.setSnippetText(this.text,P),this.isOverflowing()?c=P-1:(B=P+1,x=P);this.setSnippetText(this.text,x);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.a.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.a.onExpandClick=function(){var B=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.T("inline_expander_reset_focus_killswitch")||_.fl(this,function(){var c;((c=_.cp().resolve(_.Bp(_.Xr)))==null?0:c.isKeyBoardInUse())&&_.ir(B.hostElement)});
_.aJ(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.a.onCollapseClick=function(){this.collapse();_.aJ(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.a.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.a.computeExpandButtonOffset=function(){var B=this.expandSizer;return B?pc9?B.offsetParent?B.offsetParent.offsetWidth-B.offsetWidth-B.offsetLeft:0:B.offsetLeft:0};
_.AJ.Object.defineProperties(Ci.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.iA(this.text)?this.text.content||"":_.iG(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 _.iA(this.text)?!0:this.text&&_.T("web_replace_formatted_with_attributed_string")&&B4d(this.text)?(this.text=_.OL(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}}});
Ci.prototype.onTextChanged=Ci.prototype.onTextChanged;Ci.prototype.updateMaskAndExpandButtonOffset=Ci.prototype.updateMaskAndExpandButtonOffset;Ci.prototype.updateSnippetContainerMaxHeight=Ci.prototype.updateSnippetContainerMaxHeight;Ci.prototype.isExpandedChanged=Ci.prototype.isExpandedChanged;Ci.prototype.updateTextOnSnippetTypeChange=Ci.prototype.updateTextOnSnippetTypeChange;Ci.prototype.updateIsFormattedExpanded=Ci.prototype.updateIsFormattedExpanded;Ci.prototype.updateIsAttributedExpanded=Ci.prototype.updateIsAttributedExpanded;
Ci.prototype.onClick=Ci.prototype.onClick;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ci.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"text",void 0);_.L([_.F(),_.H("design:type",Array)],Ci.prototype,"headerRuns",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ci.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"maxLines",void 0);
_.L([_.F(),_.H("design:type",String)],Ci.prototype,"expandLabel",void 0);_.L([_.F(),_.H("design:type",String)],Ci.prototype,"collapseLabel",void 0);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"expandCommand",void 0);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"expandButtonOffset",void 0);_.L([_.Q("text"),_.H("design:type",String),_.H("design:paramtypes",[])],Ci.prototype,"simpleText",null);
_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ci.prototype,"onClick",null);_.L([_.Q("text","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"expandedText",null);_.L([_.Q("headerRuns","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"expandedHeaderRuns",null);
_.L([_.Q("text"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ci.prototype,"hasAttributedStringText",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ci.prototype,"showExpandButton",void 0);_.L([_.Q("collapseLabel","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"showCollapseButton",null);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"isTruncated",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ci.prototype,"isExpanded",void 0);_.L([_.F(),_.H("design:type",Boolean)],Ci.prototype,"isAttributedExpanded",void 0);_.L([_.bF("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"updateIsAttributedExpanded",null);_.L([_.F(),_.H("design:type",Boolean)],Ci.prototype,"isFormattedExpanded",void 0);
_.L([_.bF("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"updateIsFormattedExpanded",null);_.L([_.F(),_.H("design:type",Number)],Ci.prototype,"currentSnippetType",void 0);_.L([_.Q("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"useAttributedSnippet",null);
_.L([_.Q("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"useFormattedSnippet",null);_.L([_.Q("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ci.prototype,"usePlainSnippet",null);_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"alwaysShowExpandButton",void 0);_.L([_.bF("currentSnippetType"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"updateTextOnSnippetTypeChange",null);
_.L([_.F(),_.H("design:type",Object)],Ci.prototype,"attributedSnippetText",void 0);_.L([_.jr("#snippet"),_.H("design:type",HTMLElement)],Ci.prototype,"snippetContainer",void 0);_.L([_.jr("#snippet-text"),_.H("design:type",HTMLElement)],Ci.prototype,"snippetText",void 0);_.L([_.jr("#plain-snippet-text"),_.H("design:type",HTMLElement)],Ci.prototype,"plainSnippetText",void 0);_.L([_.jr("#formatted-snippet-text"),_.H("design:type",Object)],Ci.prototype,"formattedSnippetText",void 0);
_.L([_.jr("#attributed-snippet-text"),_.H("design:type",Object)],Ci.prototype,"attributedSnippetTextEl",void 0);_.L([_.jr("#expand"),_.H("design:type",HTMLElement)],Ci.prototype,"expandButton",void 0);_.L([_.jr("#expand-sizer"),_.H("design:type",HTMLElement)],Ci.prototype,"expandSizer",void 0);_.L([_.CF("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"isExpandedChanged",null);
_.L([_.bF("isExpanded","maxLines"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"updateSnippetContainerMaxHeight",null);_.L([_.bF("isTruncated","showExpandButton","expandButtonOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"updateMaskAndExpandButtonOffset",null);
_.L([_.CF("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ci.prototype,"onTextChanged",null);_.L([_.y({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Ci);
_.G(Ci,"ytd-text-inline-expander",function(){if(sMF===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);sMF=B}B=sMF;return B},{mode:2});var hN=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return B};
_.w(hN,_.z);hN.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
hN.prototype.handleUpdateDescriptionAction=function(B){if(B=_.t(B,_.v5Q))if(B.attributedDescription)this.set("data.attributedDescriptionBodyText",B.attributedDescription);else if(B.description){var c;((c=this.data)==null?0:c.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.OL(B.description)):this.set("data.descriptionBodyText",B.description)}};
_.AJ.Object.defineProperties(hN.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.attributedDescriptionBodyText)||!((c=this.data)==null||!c.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.collapsedLineCount){var c;return(c=this.data)==null?void 0:c.collapsedLineCount}B=_.Yu("web_watch_description_collapsed_default_lines",12);if(_.T("ww_desc_line_page_size_ks"))return B;c=Math.round(_.mz().height*_.Yu("web_watch_description_screen_height_percentage",.5)/20);return Math.max(c,B)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return(x=(B=this.data)==null?void 0:B.descriptionBodyText)!=null?x:(c=this.data)==null?void 0:c.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.sourceAttributions}}});
hN.prototype.panelContentVisibleChanged=hN.prototype.panelContentVisibleChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],hN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],hN.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hN.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Boolean)],hN.prototype,"panelContentVisible",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hN.prototype,"engagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hN.prototype,"shortsPanel",void 0);_.L([_.jr("#inline-expander"),_.H("design:type",Object)],hN.prototype,"inlineExpander",void 0);
_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hN.prototype,"panelContentVisibleChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],hN.prototype,"hasDescriptionText",null);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],hN.prototype,"collapsedLines",null);
_.L([_.Q("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.H("design:type",Object),_.H("design:paramtypes",[])],hN.prototype,"descriptionText",null);_.L([_.Q("data","data.headerRuns"),_.H("design:type",Object),_.H("design:paramtypes",[])],hN.prototype,"headerRuns",null);_.L([_.Q("data","data.sourceAttributions"),_.H("design:type",Object),_.H("design:paramtypes",[])],hN.prototype,"sourceAttributions",null);
_.L([_.y({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],hN);
_.G(hN,"ytd-expandable-video-description-body-renderer",function(){if(gZ9!==void 0)return gZ9;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gZ9=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var kXy;var XcI=_.rM(function(B){var c=B.data;return _.U("factoid-renderer",{class:"ytwFactoidRendererHost"},_.U("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return c().accessibilityText}},_.U("span",{class:"ytwFactoidRendererValue"},_.U(_.RF,{text:function(){return c().value}})),_.U("span",{class:"ytwFactoidRendererLabel"},_.U(_.RF,{text:function(){return c().label}}))))},"Qb");_.xU(XcI,"factoid-renderer",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;return _.U("upload-time-factoid-renderer",null,_.U(_.IF,{data:function(){return c().factoid}},{factoidRenderer:XcI}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.cw}});_.xU(_.rM(function(B){var c=B.data;return _.U("view-count-factoid-renderer",null,_.U(_.IF,{data:function(){return c().factoid}},{factoidRenderer:XcI}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.cw}});var m9=function(){var B=_.z.apply(this,arguments)||this;B.shortsPanel=!1;B.engagementPanel=!1;B.watchWhileSdp=_.T("shorts_desktop_watch_while_sdp");return B};
_.w(m9,_.z);m9.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"}}}}};
_.AJ.Object.defineProperties(m9.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var B;return(B=this.data)==null?void 0:B.channel}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],m9.prototype,"componentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],m9.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m9.prototype,"shortsPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m9.prototype,"engagementPanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m9.prototype,"watchWhileSdp",void 0);_.L([_.Q("shortsPanel","engagementPanel","data.channel"),_.H("design:type",Object),_.H("design:paramtypes",[])],m9.prototype,"showChannelInfo",null);_.L([_.y({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],m9);
_.G(m9,"ytd-video-description-header-renderer",function(){if(kXy!==void 0)return kXy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kXy=B},{mode:1});var $rI;var TJ=function(){return _.z.apply(this,arguments)||this};
_.w(TJ,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],TJ.prototype,"noPadding",void 0);_.L([_.F(),_.H("design:type",Object)],TJ.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],TJ);
_.G(TJ,"ytd-list-item-view-model",function(){if($rI!==void 0)return $rI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return $rI=B},{mode:1});var nZd;var bD0;var KCS;var jMd;var V3=function(){var B=_.z.apply(this,arguments)||this;B.adaptiveFullWidth=!1;B.modernButtons=_.T("web_modern_buttons");B.buttonOverrides={style:"call-to-action",type:"filled"};B.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return B};
_.w(V3,_.z);V3.prototype.handleSetTimestamp_=function(B){this.data&&this.data.shortUrl&&(_.Y9(this.hostElement).querySelector("#share-url").value=B.isSet?_.Mw(this.data.shortUrl,"t",B.timestamp):this.data.shortUrl)};
V3.prototype.handleSignalActionCopyShareUrl_=function(B,c){(_.T("killswitch_copy_link_target_check")||_.Y9(this.hostElement).querySelector("#copy-button")===c)&&this.copyUrlToClipboard()};
V3.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Y9(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
V3.prototype.computeStyle_=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],V3.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.H("design:type",String)],V3.prototype,"rendererStyle",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],V3.prototype,"adaptiveFullWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],V3.prototype,"modernButtons",void 0);_.L([_.F(),_.H("design:type",Object)],V3.prototype,"buttonOverrides",void 0);_.L([_.Em({is:"yt-copy-link-renderer",disableElementRegistration:!0})],V3);
_.G(V3,"yt-copy-link-renderer",function(){if(jMd===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;KCS===void 0&&(KCS=document.createElement("template"));var P=KCS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);jMd=B}B=jMd;return B},{mode:2});_.o2("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var tN=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return B};
_.w(tN,_.z);_.a=tN.prototype;_.a.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.a.attached=function(){this.keyboardFocused=!1};
_.a.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var B=_.cp().resolve(_.Bp(_.Xr));B&&(this.keyboardFocused=B.isKeyBoardInUse())}};
_.a.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.a.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}};
_.a.onChange_=function(){if(this.data){var B=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;B&&this.ytComponentBehavior.resolveCommand(B);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.a.handleUpdateToggleAction_=function(B){(B=_.t(B,M2m))&&this.data&&B.targetId==this.data.targetId&&this.set("data.toggled",B.toggled)};
_.a.toBoolean_=function(B){return!!B};
_.a.reset=function(){};
_.a.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("data-changed",this.data))};
_.a.updateDataToggledFromBinding=function(B){this.set("data.toggled",B.detail.value)};
tN.prototype.dataChangedForBinding=tN.prototype.dataChangedForBinding;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],tN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],tN.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],tN.prototype,"data",void 0);_.L([_.F({computed:"computeDescription_(data.*)"}),_.H("design:type",Object)],tN.prototype,"description_",void 0);_.L([_.F({value:function(){return!!_.cp().resolve(_.Bp(_.Xr))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],tN.prototype,"useKeyboardFocused",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],tN.prototype,"keyboardFocused",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tN.prototype,"dataChangedForBinding",null);_.L([_.Em({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],tN);
_.G(tN,"yt-toggle-form-field-renderer",function(){if(bD0===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;nZd===void 0&&(nZd=document.createElement("template"));var P=nZd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);bD0=B}B=bD0;return B},{mode:2});var Ur3;var drI;var w1=function(){var B=_.z.apply(this,arguments)||this;B.isDarkTheme=!1;B.isSearch=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.noTopMargin=_.T("kevlar_watch_no_top_margin");B.maskFade=_.T("web_watch_chips_mask_fade");B.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 B};
_.w(w1,_.z);_.a=w1.prototype;_.a.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}}}}}};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.a.dataChanged=function(){var B=this.getSelectedIndex();if(B>0)this.selected=B;else{this.selected=0;var c,x;(c=this.ytScrollableChipCloudBehavior)==null||(x=c.reset)==null||x.call(c)}};
_.a.getSelectedIndex=function(){var B;if((B=this.data)==null||!B.chips)return-1;B=-1;for(var c,x=0;x<((c=this.data)==null?void 0:c.chips.length);x++){var P=void 0,Y=void 0;if((P=this.data)==null?0:(Y=P.chips[x].chipCloudChipRenderer)==null?0:Y.isSelected){B=x;break}}return B};
_.a.onResize=function(){var B=this.ytScrollableChipCloudBehavior;_.fl(B,B.setContainerWidthDiff);p7(this.ytScrollableChipCloudBehavior)};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.handleRelatedChipCommand=function(B,c){B=this.JSC$14359_chipsSelector.indexOf(c);B!==-1&&this.JSC$14359_chipsSelector.selectIndex(B)};
_.a.handleChipCloudChipSelectAction=function(B){B=this.JSC$14359_chipsSelector.indexOf(B);B>-1&&this.JSC$14359_chipsSelector.selectIndex(B)};
_.a.handleChipCloudChipDeselectAction=function(){var B=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14359_chipsSelector&&((B==null?0:B.continuationCommand)?_.kC(this.hostElement,[B]):(B==null?0:B.searchEndpoint)?this.ytComponentBehavior.resolveCommand(B):B&&_.XX(this.hostElement,[B],this.hostElement),this.JSC$14359_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.a.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
w1.prototype.onResize=w1.prototype.onResize;w1.prototype.dataChanged=w1.prototype.dataChanged;w1.prototype.isSearchChanged=w1.prototype.isSearchChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],w1.prototype,"actionHandlerBehavior",void 0);
_.L([_.J(_.Oc),_.H("design:type",Object)],w1.prototype,"ironResizableBehavior",void 0);_.L([_.J(),_.H("design:type",sC)],w1.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],w1.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],w1.prototype,"data",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],w1.prototype,"selected",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w1.prototype,"isDarkTheme",void 0);_.L([_.F({value:160}),_.H("design:type",Number)],w1.prototype,"scrollDistance",void 0);_.L([_.F(),_.H("design:type",Object)],w1.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w1.prototype,"darkerDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w1.prototype,"noTopMargin",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],w1.prototype,"maskFade",void 0);_.L([_.jr("#chips"),_.H("design:type",Object)],w1.prototype,"JSC$14359_chipsSelector",void 0);_.L([_.bF("isSearch"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w1.prototype,"isSearchChanged",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w1.prototype,"dataChanged",null);
_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w1.prototype,"onResize",null);_.L([_.Em({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],w1);
_.G(w1,"yt-chip-cloud-renderer",function(){if(drI===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Ur3===void 0&&(Ur3=document.createElement("template"));var P=Ur3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);drI=B}B=drI;return B},{mode:2});var qjd,CHd=function(){return qjd!==void 0?qjd:qjd=document.createElement("template")};
document.head.appendChild(CHd().content);var hs3;var mrW=document.head,Tgn=mrW.appendChild,VhZ;if(hs3===void 0){var thI=document.createElement("template");_.I(thI,"");thI.content.insertBefore(CHd().content.cloneNode(!0),thI.content.firstChild);hs3=thI}VhZ=hs3;Tgn.call(mrW,VhZ.content);var wc0=_.rM(function(B){var c=B.data;return _.U("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.U("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.U("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.U(_.m,{cond:function(){return _.r$(c().image)},
then:function(x){return _.U("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.U(_.D9,{data:x,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.U("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.U(_.RF,{text:function(){return c().subtitle}})))),_.U(_.m,{cond:function(){var x;
return(x=c())==null?void 0:x.hasBottomDivider},
then:function(){return _.U("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var Ng3=_.rM(function(B){var c=B.data;return _.U("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.U(_.IF,{data:function(){var x;return(x=c().offerPlanDetailsItem)!=null?x:[]}},{offerPlanDetailsItemViewModel:function(x){return _.U("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.U(wc0,{data:x.data}))}})),_.U("div",null,_.U(_.m,{cond:function(){return c().hasBottomDivider},
then:function(){return _.U("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.U("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.U("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var ILQ=_.rM(function(B){var c=B.data;B=_.p(_.$D(!1,void 0,"SpEGQd"));var x=B.next().value,P=B.next().value,Y=_.qe(function(){P(!x());return!1}),g=function(){var k;
return(k=c().offerPlanDetailsContainer)!=null?k:[]};
return _.U("lp-complex-offer-card-details-view-model",null,_.U("div",null,_.U(_.m,{cond:function(){return x()},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.U("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Y,"aria-expanded":x},_.U(_.RF,{text:function(){return c().expandedTitle}})),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.U(_.IF,{data:g},{offerPlanDetailsContainerViewModel:function(k){return _.U("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.U(Ng3,{data:k.data}))}})),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.U(_.RF,{text:function(){return c().legalText}})))},
else:function(){return _.U("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Y,"aria-expanded":x},_.U(_.RF,{text:function(){return c().collapsedTitle}}),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.U(_.Vf,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var JDZ=_.rM(function(B){var c=B.data;return _.U("lp-complex-offer-card-option-view-model",null,_.U("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.U(_.m,{cond:function(){return c().topDividerText},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.U(_.RF,{text:function(){return c().topDividerText}}))))}}),_.U(_.m,{cond:function(){return c().planPricingPrimary},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.U(_.RF,{text:function(){return c().planPricingPrimary}}))}}),_.U(_.m,{cond:function(){return c().planPricingSecondary},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.U(_.RF,{text:function(){return c().planPricingSecondary}}))}}),_.U(_.m,{cond:function(){return c().primaryButton},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.U(_.IF,{data:function(){return c().primaryButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var WCS=_.rM(function(B){var c=B.data;var x=function(){var g;return((g=c())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
B={};var P={},Y={};return _.U("ytm-lp-complex-offer-card-view-model",null,_.U("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.U("div",{class:_.Kw((B.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=x,B),"ytmLpComplexOfferCardViewModelCardContainer")},_.U(_.m,{cond:function(){var g;return(g=c())==null?void 0:g.bannerText},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.U("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.U(_.RF,{text:function(){return c().bannerText}})))}}),_.U(_.m,{cond:function(){return _.r$(c().logo)},
then:function(g){var k={};return _.U("div",{class:_.Kw((k.ytmLpComplexOfferCardViewModelLogoAlignLeft=x,k),"ytmLpComplexOfferCardViewModelLogo")},_.U(_.D9,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.U("div",{class:_.Kw((P.ytmLpComplexOfferCardViewModelTitleAlignLeft=x,P),"ytmLpComplexOfferCardViewModelTitle")},_.U(_.RF,{text:function(){return c().title}})),_.U(_.m,{cond:function(){var g;
return(g=c())==null?void 0:g.subtitle},
then:function(){var g={};return _.U("div",{class:_.Kw((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=x,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.U(_.RF,{text:function(){return c().subtitle}}))}}),_.U(_.m,{cond:function(){return c().planPricingPrimary},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.U(_.RF,{text:function(){return c().planPricingPrimary}}))}}),_.U(_.m,{cond:function(){return c().planPricingSecondary},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.U(_.RF,{text:function(){return c().planPricingSecondary}}))}}),_.U(_.m,{cond:function(){return c().purchaseButton},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.U(_.IF,{data:function(){return c().purchaseButton}},{buttonViewModel:function(g){return _.U(_.Q7,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.U(_.m,{cond:function(){var g;
return(g=c())==null?void 0:g.offerOptions},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.U(_.IF,{data:function(){return c().offerOptions}},{lpComplexOfferCardOptionViewModel:JDZ}))}}),_.U("div",{class:_.Kw((Y.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=x,Y),"ytmLpComplexOfferCardViewModelLegalText")},_.U(_.RF,{text:function(){return c().legalText}})),_.U(_.m,{cond:function(){var g;
return(g=c())==null?void 0:g.offerCardDetails},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.U(_.IF,{data:function(){return c().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:ILQ}))}}))))},"Xb");var lLd=_.rM(function(B){var c=B.data;var x=function(){var k;return((k=c())==null?void 0:k.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
B={};var P={},Y={},g={};return _.U("ytm-lp-complex-offer-card-section-view-model",null,_.U("div",{class:_.Kw("ytmLpComplexOfferCardSectionViewModelHost")},_.U("div",{class:_.Kw((B.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=x,B),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.U("div",{class:_.Kw((P.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=x,P),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.U("h2",{class:_.Kw((Y.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
x,Y),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.U(_.RF,{text:function(){return c().title}}))),_.U(_.m,{cond:function(){var k;
return(k=c())==null?void 0:k.subtitle},
then:function(){var k={},n={};return _.U("div",{class:_.Kw((k.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=x,k),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.U("div",{class:_.Kw((n.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=x,n),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.U(_.RF,{text:function(){return c().subtitle}})))}}),_.U("div",{class:_.Kw((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=x,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.U(_.IF,{data:function(){var k;
return(k=c().offerPlans)!=null?k:[]}},{lpComplexOfferCardViewModel:function(k){return _.U("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.U(WCS,{data:k.data}))}})))))},"Yb");var EZW=_.rM(function(B){return _.U("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.U("div",{class:"ytLpCouponBannerViewModelIcon"},_.U(_.Vf,{icon:function(){return"price_tag"}})),_.U("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.U("div",{class:"ytLpCouponBannerViewModelContent"},_.U("div",{class:"ytLpCouponBannerViewModelHeading"},_.U(_.RF,{text:function(){var c;
return(c=B.data())==null?void 0:c.title}})),_.U("div",{class:"ytLpCouponBannerViewModelBody"},_.U(_.RF,{text:function(){var c;
return(c=B.data())==null?void 0:c.subtitle}})))))},"Zb");
EZW.idomCompat=!0;_.N5=ez3.getInstance();var ODt=_.rM(function(B){return _.U("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":B.shouldAriaHideContent},_.U("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:B.questionId},_.U(_.RF,{text:B.question})))},"$b"),oZd=_.rM(function(B){var c=B.data;
var x=B.themeOverride;B=_.p(_.$D(!1,void 0,"ljTVPd"));var P=B.next().value,Y=B.next().value;B=_.qe(function(){Y(!P());return!1});
var g=function(){return P()?"EXPAND_LESS":"EXPAND_MORE"},k=("faq-container"+_.oz(_.N5)).toString(),n="faq-question-and-answers-section-question"+_.oz(_.N5),b={},d={};
return _.U("faq-entry-view-model-c3",null,_.U("div",{class:_.Kw("yt-lp-faq-entry-view-model",(b["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return x==null?void 0:x().useDarkTheme},b))},_.U("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":B,role:"button","aria-expanded":P,"aria-labelledby":n.toString(),"tab-index":"0"},_.U(ODt,{question:function(){return c().question},
questionId:n,shouldAriaHideContent:!0}),_.U(_.m,{cond:function(){return P()!==void 0},
then:function(){return _.U("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.U(_.Vf,{icon:g,ariaHidden:!0}),_.U("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.U("div",{class:_.Kw("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(d["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!P()},d))},_.U("div",{id:k},_.U(_.mV,{each:function(){return c().answers||[]}},function(q){return _.U("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.U(_.RF,{text:q}))})))))},"ac");
oZd.idomCompat=!0;var QMZ=_.rM(function(B){var c=B.data;var x=B.themeOverride;B={};return _.U("lp-faq-section-view-model-c3",null,_.U("div",{class:_.Kw("yt-lp-faq-section-view-model",(B["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},B["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},B))},_.U("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.U(_.m,{cond:function(){return c().header},
then:function(P){return _.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.U(_.RF,{text:P}))}}),_.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.U(_.IF,{data:function(){return c().faqs}},{faqEntryViewModel:function(P){return _.U(oZd,{data:P.data,
themeOverride:x})}})),_.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.U(_.mV,{each:function(){return c().footers||[]}},function(P){return _.U(_.RF,{text:P})})),_.U(_.m,{cond:function(){return c().legal},
then:function(P){return _.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.U(_.RF,{text:P}))}}))))},"bc");
QMZ.idomCompat=!0;var FCQ=_.rM(function(B){var c=B.data;var x=B.themeOverride;_.lk(function(){var k=c().gtmId;k&&_.Wl(k,_.v5("GL",""))});
var P={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,n,b;return(b=(k=c().logo)==null?void 0:(n=k.accessibilityData)==null?void 0:n.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Y=_.cp().resolve(_.Bp(_.fL)),g=function(){return Y&&Y()||(x==null?void 0:x().useDarkTheme)};
return _.U("lp-header-section-view-model",null,_.U("div",{class:function(){var k=c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",n=c().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=x==null?void 0:x().useDarkTheme,d=["lp-header-section-view-model"];k&&d.push("lp-header-section-view-model--ptc-layout-type");n&&d.push("lp-header-section-view-model__lp-header-section-margin");b&&d.push("lp-header-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.U(_.m,{cond:function(){return c().logo},
then:function(){return _.U("div",null,_.U(_.m,{cond:g,then:function(){return _.U(_.m,{cond:function(){var k;return(k=c().logo)==null?void 0:k.imageDark},
then:function(k){return _.U(_.D9,Object.assign({},{data:k},P))}})},
else:function(){return _.U(_.m,{cond:function(){var k;return(k=c().logo)==null?void 0:k.imageLight},
then:function(k){return _.U(_.D9,Object.assign({},{data:k},P))}})}}))}}),_.U(_.m,{cond:function(){return c().title},
then:function(k){return _.U("div",{class:"lp-header-section-view-model__lp-header-title"},_.U(_.RF,{text:k}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.U(_.m,{cond:function(){return c().subtitles},
then:function(k){return _.U(_.mV,{each:k},function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.U(_.RF,{text:n}))})}})),_.U(_.m,{cond:function(){return c().additionalInfo},
then:function(k){return _.U("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.U(_.RF,{text:k}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.U(_.m,{cond:function(){return c().primaryButton},
then:function(k){return _.U("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.U(_.IF,{data:k},{buttonViewModel:_.Q7}))}}),_.U(_.m,{cond:function(){return c().secondaryButton},
then:function(k){return _.U("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.U(_.IF,{data:k},{buttonViewModel:_.Q7}))}})),_.U(_.m,{cond:function(){return c().otherOffersInfo},
then:function(k){return _.U("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.U(_.RF,{text:k}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.U(_.m,{cond:function(){return c().billingInfo},
then:function(k){return _.U(_.mV,{each:k},function(n){return _.U("div",null,_.U(_.RF,{text:n}))})}}))))},"cc");
FCQ.idomCompat=!0;var vZI=_.rM(function(B){var c=B.data;var x=_.A9(B.themeOverride,{useDarkTheme:!1});B={};B=_.Kw("ytm-lp-headline-section-view-model",(B["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return x().useDarkTheme},B));
return _.U("lp-headline-section-view-model",null,_.U("div",{class:B},_.U("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.U(_.RF,{text:function(){return c().title}})),_.U(_.m,{cond:function(){return c().subtitle},
then:function(P){return _.U("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.U(_.RF,{text:P}))}})))},"dc");var zsS=_.rM(function(B){var c=B.data;var x=B.themeOverride;var P=_.cp().resolve(_.Bp(_.fL)),Y=function(){return P&&P()||(x==null?void 0:x().useDarkTheme)},g=function(){var d,q;
var C=Y()?(d=c().textBackgroundImage)==null?void 0:d.imageDark:(q=c().textBackgroundImage)==null?void 0:q.imageLight;return B1I((C==null?void 0:C.sources)||[])},k=function(){var d,q;
return Y()?(d=c().featureImage)==null?void 0:d.imageDark:(q=c().featureImage)==null?void 0:q.imageLight},n=function(){return c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var d,q;
return Y()?(d=c().logo)==null?void 0:d.imageDark:(q=c().logo)==null?void 0:q.imageLight};
return _.U("ytm-lp-large-feature-section-view-model",null,_.U("div",{class:function(){var d=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",q=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",C=(c().index||0)%2===1,h=x==null?void 0:x().useDarkTheme,V=["yt-lp-large-feature-section-view-model"];d?V.push("yt-lp-large-feature-section-view-model--music-feature-type"):q?V.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):C||V.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
h&&V.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return V.join(" ")}},_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.U(_.m,{cond:k,
then:function(){return _.U(_.D9,{data:function(){return k()},
alt:function(){var d,q,C;return(C=(d=c().featureImage)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?C:""},
contentMode:n})}})),_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var d;return((d=g())==null?0:d.url)?"background-image: url("+_.Tz(g().url)+");":""}},_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.U(_.m,{cond:b,
then:function(){return _.U(_.D9,{data:function(){return b()},
alt:function(){var d,q,C;return(C=(d=c().logo)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?C:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.U(_.m,{cond:function(){return c().eyebrowText},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.U(_.RF,{text:function(){return c().eyebrowText}}))}}),_.U(_.m,{cond:function(){return c().title},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.U(_.RF,{text:function(){return c().title}}))}}),_.U(_.m,{cond:function(){return c().subtitles},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.U(_.mV,{each:function(){return c().subtitles||[]}},function(d){return _.U(_.RF,{text:d})}))}})))))},"ec");
zsS.idomCompat=!0;var SjZ=_.rM(function(B){return _.U("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.U("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.U(_.Vf,{icon:function(){var c;return(c=B.data())==null?void 0:c.iconType},
className:function(){var c;switch((c=B.data())==null?void 0:c.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 c;return((c=B.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.U("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.U(_.RF,{text:function(){var c;
return(c=B.data())==null?void 0:c.text},
className:function(){var c;return((c=B.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var yD4=_.rM(function(B){B=_.uF(B,{config:void 0,themeOverride:void 0});var c=B.data,x=B.config,P=B.themeOverride;B={};B=_.Kw("ytm-lp-offer-card-option-view-model",(B["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var n;return(n=P())==null?void 0:n.useDarkTheme},B));
var Y=_.qe(function(){var n,b;(n=x())==null||(b=n.handleRadioButtonClick)==null||b.call(n,c());return!1}),g=function(){var n;
return(n=x())==null?void 0:n.shouldDisplayRadioButton},k=function(){var n;
return(n=c().featureListItems)!=null?n:[]};
return _.U("ytm-lp-offer-card-option-view-model",null,_.U("div",{class:B,"on:click":_.qe(function(){if(g()){var n,b;(n=x())==null||(b=n.handleRadioButtonClick)==null||b.call(n,c())}return!1})},_.U(_.m,{cond:g,
then:function(){return _.U("div",null,_.U("input",{type:"radio","on:click":Y,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var n;return!((n=x())==null||!n.isOptionSelected)}}))}}),_.U("div",null,_.U("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.U(_.RF,{text:function(){return c().eyebrowText}})),_.U("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.U(_.RF,{text:function(){return c().subtitle}})),_.U(_.m,{cond:function(){return k().length>0},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.U(_.IF,{data:k},{lpFeatureListItemViewModel:SjZ}))}}),_.U("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.U(_.RF,{text:function(){return c().description}})))))},"gc");
yD4.idomCompat=!0;var GXZ=_.rM(function(B){var c=B.data;var x=B.themeOverride;B=_.p(_.mg(function(){var g,k=(g=c().offerOptions)==null?void 0:g[0];return _.t(k,R5W)||{}}));
var P=B.next().value,Y=B.next().value;B={};return _.U("ytm-lp-offer-card-view-model",null,_.U("div",{class:_.Kw("ytm-lp-offer-card-view-model",(B["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},B))},_.U("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.U(_.m,{cond:function(){return c().titleIconType},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.U(_.Vf,{icon:function(){var g;return((g=c().titleIconType)==null?void 0:g.toString())||""}}))}}),_.U("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.U(_.RF,{text:function(){return c().title}})),_.U(_.IF,{data:function(){return c().titleBadge}},{badgeViewModel:function(g){return _.U("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.U(_.Bz,{data:g.data}))}})),_.U("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.U(_.IF,{data:function(){return c().offerOptions}},{lpOfferCardOptionViewModel:function(g){var k=g.data;
return _.U(_.at,null,_.U("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.U(yD4,{data:k,config:function(){var n;return{shouldDisplayRadioButton:(c().offerOptions||[]).length>1,isOptionSelected:k().id===((n=P())==null?void 0:n.id),handleRadioButtonClick:function(b){return void Y(b)}}},
themeOverride:x}))}})),_.U("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.U(_.IF,{data:function(){var g;
return(g=P())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.Q7}))))},"hc");
GXZ.idomCompat=!0;var Mh0=_.rM(function(B){var c=B.data;var x=B.themeOverride;B={};B=_.Kw("ytm-lp-offer-card-section-view-model",(B["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var P;return x==null?void 0:(P=x())==null?void 0:P.useDarkTheme},B));
return _.U("ytm-lp-offer-card-section-view-model",null,_.U("div",{class:B},_.U(_.m,{cond:function(){return c().title!==void 0},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.U("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.U(_.RF,{text:function(){return c().title}})),_.U(_.m,{cond:function(){return c().subtitle},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.U(_.RF,{text:function(){return c().subtitle}}))}}))}}),_.U("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.U(_.IF,{data:function(){return c().offerCards}},{lpOfferCardViewModel:function(P){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.U(GXZ,{data:P.data,
themeOverride:x}))}})),_.U(_.m,{cond:function(){return c().footer},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.U(_.RF,{text:function(){return c().footer}}))}})))},"ic");var LC3=_.rM(function(B){var c=B.data;return _.U("lp-offer-table-cell-content-view-model",null,_.U("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.U(_.tR,null,_.U(_.Tu,{when:function(){return c().title}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return c().title}})}),_.U(_.Tu,{when:function(){return c().subTitle}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return c().subTitle}})}),_.U(_.Tu,{when:function(){return c().featureDescription}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return c().featureDescription}})}),_.U(_.Tu,{when:function(){return c().description}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return c().description}})}),_.U(_.Tu,{when:function(){return c().iconType}},function(){return _.U("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.U(_.Vf,{icon:function(){return c().iconType.toString()}}))}),_.U(_.Tu,{when:function(){return c().purchaseButton}},function(){return _.U(_.IF,{data:function(){return c().purchaseButton}},{buttonViewModel:function(x){return _.U("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.U(_.Q7,{data:x.data}))}})}),_.U(_.Tu,{when:function(){return c().note}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return c().note}})}),_.U(_.Tu,{when:function(){return c().featureDetail}},function(){return _.U(_.RF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return c().featureDetail}})}),_.U(_.Tu,{when:function(){return c().badge}},function(){return _.U(_.IF,{data:function(){return c().badge}},{badgeViewModel:_.Bz})}))))},"jc");
LC3.idomCompat=!0;var ZDI=_.rM(function(B){var c=B.data;return _.U("lp-offer-table-cell-view-model",null,_.U("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(c().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.U(_.IF,{data:function(){return c().contents}},{lpOfferTableCellContentViewModel:LC3})))},
"kc");
ZDI.idomCompat=!0;var HDd=_.rM(function(B){var c=B.data;var x=B.lpTableIsFirstRow;var P=B.lpTableIsLastRow;var Y=function(){return(x==null?0:x())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},g=function(){return(x==null?0:x())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(P==null?0:P())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.U("ytm-lp-offer-table-row-view-model",null,_.U("div",{class:"yt-lp-offer-table-row-view-model"},_.U(_.IF,{data:function(){return c().rowHeaderCell}},{lpOfferTableCellViewModel:function(k){return _.U("div",{class:Y},_.U(ZDI,{data:k.data}))}}),_.U(_.IF,{data:function(){return c().contentCells}},{lpOfferTableCellViewModel:function(k){return _.U("div",{class:g},_.U(ZDI,{data:k.data}))}})))},"lc");
HDd.idomCompat=!0;var fLI=_.rM(function(B){var c=B.data;var x=B.themeOverride;var P=_.cp().resolve(_.Bp(_.fL)),Y=function(){return _.t(c().logo,b0t)||{}};
B={};return _.U("ytm-lp-offer-table-section-view-model",null,_.U("div",{class:"yt-lp-offer-table-view-model"},_.U(_.m,{cond:function(){var g,k;return P&&P()||(x==null?0:x().useDarkTheme)?(g=Y())==null?void 0:g.imageDark:(k=Y())==null?void 0:k.imageLight},
then:function(g){return _.U(_.D9,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,n,b;return(b=(k=Y())==null?void 0:(n=k.accessibilityData)==null?void 0:n.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.U(_.RF,{text:function(){return c().subtitle}})),_.U(_.m,{cond:function(){return c().disclaimers},
then:function(g){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.U(_.mV,{each:g},function(k){return _.U("div",null,_.U(_.RF,{text:k}))}))}}),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.U(_.IF,{data:function(){return c().rows}},{lpOfferTableRowViewModel:function(g,k){return _.U(HDd,{data:g.data,
lpTableIsFirstRow:function(){return k()===0},
lpTableIsLastRow:function(){return k()===c().rows.length-1}})}})),_.U("div",{class:_.Kw((B["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return c().hasFooterBackground},B))},_.U(_.m,{cond:function(){return c().footer},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.U(_.RF,{text:function(){return c().footer}}))}}),_.U(_.m,{cond:function(){return c().footerTitle},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.U(_.RF,{text:function(){return c().footerTitle}}))}}),_.U(_.m,{cond:function(){return c().footerDescription},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.U(_.RF,{text:function(){return c().footerDescription}}))}}))))},"mc");
fLI.idomCompat=!0;var iDm=_.rM(function(B){var c=B.data;var x=B.themeOverride;var P=_.cp().resolve(_.Bp(_.fL)),Y=function(){var n;return x==null?void 0:(n=x())==null?void 0:n.useDarkTheme},g=function(){var n,b;
return P&&P()||Y()?(n=c().image)==null?void 0:n.imageDark:(b=c().image)==null?void 0:b.imageLight};
B={};B=_.Kw("ytm-lp-small-feature-section-view-model",(B["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=Y,B));var k=function(){var n,b,d;return(d=(n=c().image)==null?void 0:(b=n.accessibilityData)==null?void 0:b.label)!=null?d:""};
return _.U("ytm-lp-small-feature-section-view-model",{class:B},_.U(_.m,{cond:function(){return g()&&!GhY},
then:function(){return _.U("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.U(_.D9,{data:function(){return g()},
alt:k,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.U("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.U("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.U(_.m,{cond:function(){return c().title},
then:function(n){return _.U(_.RF,{text:n})}})),_.U("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.U(_.RF,{text:function(){return c().description}}))))},"nc");
iDm.idomCompat=!0;var AD0=_.rM(function(B){var c=B.data;var x=B.themeOverride;B={};return _.U("ytm-lp-small-feature-section-group-view-model",null,_.U("div",{class:_.Kw("ytm-lp-small-feature-section-group-view-model",(B["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},B))},_.U("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.U(_.IF,{data:function(){return c().smallFeatures}},{lpSmallFeatureSectionViewModel:function(P){return _.U("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.U(iDm,{data:P.data,
themeOverride:x}))}}))))},"oc");
AD0.idomCompat=!0;_.xU(_.rM(function(B){var c=B.data;var x=function(){return c().forcedTheme==="USER_INTERFACE_THEME_DARK"},P=function(){return c().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Y=function(){var k="",n,b;
var d=_.cp().resolve(_.Bp(_.fL));d=x()||(d==null?0:d())?(n=c().themedImageViewModel)==null?void 0:n.imageDark:(b=c().themedImageViewModel)==null?void 0:b.imageLight;(n=B1I((d==null?void 0:d.sources)||[]))&&n.url&&(k=P()?"background-image: linear-gradient(to bottom, transparent, "+(c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Tz(n.url)+");":"background-image: url("+_.Tz(n.url)+");");return k},g=function(){return{useDarkTheme:x()}};
B={};return _.U("yt-section-group-view-model",null,_.U("div",{class:_.Kw("yt-lp-section-group-view-model",(B["yt-lp-section-group-view-model--premium-force-dark-mode"]=x,B["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},B))},_.U(_.m,{cond:function(){return Y().length},
then:function(){var k={};return _.U("div",{class:_.Kw("yt-lp-section-group-view-model__bg-image",(k["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=P,k)),style:Y})}}),_.U("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.U(_.IF,{data:function(){return c().sections}},{lpFaqSectionViewModel:function(k){return _.U(QMZ,{data:k.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(k){return _.U(FCQ,{data:k.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(k){return _.U(vZI,{data:k.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(k){return _.U(zsS,{data:k.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(k){return _.U(Mh0,{data:k.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(k){return _.U(lLd,{data:k.data})},
lpOfferTableSectionViewModel:function(k){return _.U(fLI,{data:k.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(k){return _.U(AD0,{data:k.data,themeOverride:g})},
lpCouponBannerViewModel:function(k){return _.U(EZW,{data:k.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.rk}});var AQo=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.uu5=_.rM(function(B){function c(){if(AQo.has(B.data().displayType)){var d=!P(),q;if((q=B.disableDeselection)==null||!q.call(B)||d){B.data().selected=d;q=Object.assign({},k(),{selected:d});n(q);var C;(C=B.callback)==null||C.call(B,q,d)}}}
var x=_.Ho("chip-view-model"),P=function(){var d,q;return!!(((d=B.selected)==null?void 0:d.call(B))!==void 0?(q=B.selected)==null?0:q.call(B):k().selected)},Y=_.p(_.mg(B.data)),g=Y.next().value;
Y=Y.next().value;var k=g,n=Y,b=_.jA(i5O,function(){return B.data().chipEntityKey||""});
return _.U("chip-view-model",{class:"ytChipViewModelHost",el:x},_.U(EA0,{data:function(){var d,q=Object.assign({},k(),{selected:P()}),C=b(),h=(d=B.disableDeselection)==null?void 0:d.call(B);a:switch(q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":d=1;break a;default:d=0}return{text:(C==null?void 0:C.text)||q.text,state:q.disabled?1:q.selected?0:2,type:d,onTap:uEl(q,x,c,h),accessibilityLabel:q.accessibilityLabel||q.text}}}))},"qc");
_.uu5.idomCompat={callbacks:{callback:!0}};_.Dry=_.rM(function(B){var c=_.jA(foo,function(){var k;return(k=B.data())==null?void 0:k.chipBarStateEntityKey}),x=function(){return B.data().disableDeselection},P=_.p(_.mg(function(){var k;
if(((k=c())==null?void 0:k.selectedIndex)!=void 0)return c().selectedIndex;var n,b;k=_.p(((n=B.data())==null?void 0:(b=n.chips)==null?void 0:b.entries())||[]);for(n=k.next();!n.done;n=k.next()){n=_.p(n.value);b=n.next().value;n=n.next().value;var d=void 0;if((d=_.t(n,_.MV))==null?0:d.selected)return b}return-1})),Y=P.next().value,g=P.next().value;
return _.U("chip-bar-view-model",{class:_.Kw("ytChipBarViewModelHost",B.className),role:"tablist"},_.U(_.IF,{data:function(){return B.data().chips}},{chipViewModel:function(k,n){return _.U("div",{class:"ytChipBarViewModelChipWrapper"},_.U(_.uu5,{data:k.data,
selected:function(){return n()===Y()},
callback:function(b,d){b=!!d;d=n();g(b?d:-1);var q,C=(q=B.data())==null?void 0:q.chipBarStateEntityKey;C&&b&&_.iF(_.Uy("chipBarStateEntity",C,{key:C,selectedIndex:d}))},
disableDeselection:B.disableDeselection||x}))}}))},"rc");_.xU(_.Dry,"chip-bar-view-model",{props:{data:_.cw,className:_.cw,disableDeselection:_.cw}});_.rDy=_.rM(function(B){var c=B.data;B={};return _.U("divider-view-model",{class:_.Kw("divider-view-model-wiz",(B["divider-view-model-wiz__inset-thin-padding"]=function(){return c().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},B))},_.U("div",{class:_.Kw("divider-view-model-wiz__base-divider",function(){return Dt7(c().dividerStyle)}),
style:_.TU({"background-color":function(){return c().backgroundColor?_.zF(c().backgroundColor):void 0}})}))},"sc");
_.rDy.idomCompat=!0;_.xU(_.rDy,"divider-view-model",{props:{data:_.rk}});var Or=new Map,Er=new Map,ejl=0,ov;var gh$=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],ksY={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Rst,esW;Rst=function(B){return function(c){return function(){return String(c())+B}}};
_.Ih=Rst("px");esW=Rst("s");var cFy=_.rM(function(B){function c(u){return function(){var e=V().numItemsPerGridRow,px=u()*e;e=px+e;var kI,Ul;return(Ul=(kI=P().contents)==null?void 0:kI.slice(px,e))!=null?Ul:[]}}
var x=_.uF(B,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),P=x.data,Y=x.layoutContainerWidth,g=x.shouldUseOwnContainerSize,k=x.marginSettings;x=_.p(_.$D(!0,void 0,"qgr2Je"));var n=x.next().value,b=x.next().value,d=function(){var u,e=(u=_.t(P().showMoreButton,_.Tj))==null?void 0:u.trackingParams;e&&_.bd(_.q_(),e);b(!1)},q=function(){var u,e=(u=_.t(P().showLessButton,_.Tj))==null?void 0:u.trackingParams;
e&&_.bd(_.q_(),e);b(!0)};
x=_.Ho("grid-shelf-view-model");var C=_.$uO(x,{canHaveZeroSize:!1}),h=function(){var u;return(u=P().contentAspectRatio)!=null?u:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},V=_.db(function(){var u=_.D_({containerWidth:g()&&C.width()>0?C.width()||Y():Y(),
sizing:"EXTRA_COMPACT",marginSettings:k(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:u.maxContainerWidth,numItemsPerGridRow:u.numItems,contentPadding:g()?u.margin:u.contentMargin,itemWidth:u.itemWidth,itemMargin:u.gutter/2}},void 0,"pqVdjc"),N=function(){if(P().enableVerticalExpansion){if(n())return l();
var u,e,px=(e=(u=P().contents)==null?void 0:u.length)!=null?e:0;return Math.ceil(px/V().numItemsPerGridRow)}return V().numItemsPerGridRow<=2?2:1},l=function(){var u;
return Math.ceil(((u=P().minCollapsedItemCount)!=null?u:1)/V().numItemsPerGridRow)},E=function(){return P().enableVerticalExpansion&&P().showLessButton&&!n()&&N()>l()},S=function(){var u,e;
return P().enableVerticalExpansion&&P().showMoreButton&&n()&&((e=(u=P().contents)==null?void 0:u.length)!=null?e:0)>V().numItemsPerGridRow*l()},M=function(){return!E()},f=function(){return!S()},Z={};
return _.U("grid-shelf-view-model",{class:_.Kw("ytGridShelfViewModelHost",B.className,(Z.ytGridShelfViewModelHostHasBottomButton=function(){return E()||S()},Z)),
el:x,style:_.TU({"margin-left":(0,_.Ih)(function(){return V().contentPadding}),
"margin-right":(0,_.Ih)(function(){return V().contentPadding})})},_.U(_.m,{cond:function(){return _.t(P().header,w79)},
then:function(u){return _.U(_.g1,{data:u,disableHorizontalPadding:!0})}}),_.U("div",null,_.U(_.mV,{each:function(){return Array(N())}},function(u,e){return _.U(BF4,{className:B.className,
items:c(e),responsiveGridShelfLayout:V,contentAspectRatio:h})})),_.U("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.U(_.IF,{data:function(){return P().showMoreButton}},{buttonViewModel:function(u){return _.U("div",{hidden:f},_.U(_.Q7,{data:u.data,
onClick:d}))}}),_.U(_.IF,{data:function(){return P().showLessButton}},{buttonViewModel:function(u){return _.U("div",{hidden:M},_.U(_.Q7,{data:u.data,
onClick:q}))}})))},"tc");
cFy.idomCompat=!0;var BF4=_.rM(function(B){var c=B.items;var x=B.responsiveGridShelfLayout;var P=B.contentAspectRatio;B=B.className;var Y=_.Ho("div");Rjd(Y,function(){a:{var k=Y.value;for(var n=c(),b=[],d=0;d<n.length;d++){var q=_.t(n[d],Y5y);if(!q||q==null||!q.inlinePlayerData){k=null;break a}var C=k.children.item(d);if(!C){k=null;break a}b.push({thumbnailElement:C,videoData:q})}k={gridVideoPreviewData:{gridItems:b}}}return k});
var g=(0,_.Ih)(function(){return-x().itemMargin});
return _.U("div",{el:Y,class:_.Kw("ytGridShelfViewModelGridShelfRow",B),style:_.TU({"margin-left":g,"margin-right":g})},_.U(_.IF,{data:c,replacementWrapper:function(k){return _.U(xE3,{responsiveGridShelfLayout:x},k)}},{shortsLockupViewModel:function(k){return _.U(xE3,{responsiveGridShelfLayout:x},_.U(GhQ,{data:k.data,
aspectRatio:function(){return P()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),xE3=_.rM(function(B){return _.U("div",{style:_.TU({width:(0,_.Ih)(function(){return B.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+B.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},B.children)},"vc");
cFy.idomCompat=!0;_.xU(cFy,"grid-shelf-view-model",{props:{data:_.rk,layoutContainerWidth:_.rk,shouldUseOwnContainerSize:_.rk,marginSettings:_.rk,className:_.rk}});_.Pu0=_.rM(function(B){var c=_.p(_.$D(!1,void 0,"YYtxR")),x=c.next().value,P=c.next().value;c={};return _.U("yt-alert-banner-view-model",{class:_.Kw("ytAlertBannerViewModelHost",B.className,function(){var Y;a:switch((Y=B.data())==null?void 0:Y.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Y="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Y="ytAlertBannerViewModelWarning";break a;default:Y="ytAlertBannerViewModelInformational"}return Y},(c.ytAlertBannerViewModelDismissed=
x,c.ytAlertBannerViewModelFullbleed=B.fullbleed,c.ytAlertBannerViewModelNarrow=B.narrow,c.ytAlertBannerViewModelIsInRichGrid=B.isInRichGrid,c))},_.U(_.m,{cond:function(){var Y;
return!((Y=B.data())==null?0:Y.hideIcon)},
then:function(){return _.U("div",{class:"ytAlertBannerViewModelIcon"},_.U(_.Vf,{icon:function(){return"info_circle"}}))}}),_.U("div",{class:"ytAlertBannerViewModelOuterContainer"},_.U("div",{class:"ytAlertBannerViewModelContainer"},_.U("div",{class:"ytAlertBannerViewModelContent"},_.U("div",{class:"ytAlertBannerViewModelHeading"},_.U(_.RF,{text:function(){var Y;
return(Y=B.data())==null?void 0:Y.heading}})),_.U("div",{class:"ytAlertBannerViewModelBody"},_.U(_.RF,{text:function(){var Y;
return(Y=B.data())==null?void 0:Y.body}})))),_.U(_.IF,{data:function(){var Y;
return(Y=B.data())==null?void 0:Y.actionButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.U(_.IF,{data:function(){var Y;
return(Y=B.data())==null?void 0:Y.dismissButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=B.data())==null?0:g.disableLocalDismissBehavior)||P(!0)}})}}))},"wc");_.xU(_.Pu0,"yt-alert-banner-view-model",{props:{data:_.rk,fullbleed:_.rk,narrow:_.rk,isInRichGrid:_.rk,className:_.rk}});var nhd;nhd=_.mp({chipViewModel:_.uu5,buttonViewModel:_.Q7});_.Y_9=_.dV(beC,{callbacks:{callback:!0}});_.BX(beC);_.xU(_.Y_9,"chips-shelf-view-model",{props:{data:_.rk,callback:_.cw,enableSingleChipSelection:_.rk,disableChipsScrollAnimation:_.rk}});var aQm=_.rM(function(B){B=_.uF(B,{disabled:!1});var c=B.active,x=B.disabled;B={};B=_.Kw("ytSwitchShapeTrack",(B.ytSwitchShapeTrackActive=function(){return c()},B.ytSwitchShapeTrackDisabled=function(){return x()},B));
var P={};P=_.Kw("ytSwitchShapeKnob",(P.ytSwitchShapeKnobActive=function(){return c()},P));
return _.U("switch-shape",{class:"ytSwitchShapeHost"},_.U("div",{class:B}),_.U("div",{class:P}))},"xc");var g_d=_.rM(function(B){var c=_.uF(B,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),x=c.data;B=c.className;var P=c.handleOnTapEventInParent,Y=c.parentActive;c=_.p(_.mg(function(){var C;return(C=Y())!=null?C:x().switchedOnByDefault||!1}));
var g=c.next().value,k=c.next().value,n=function(){return x().isDisabled},b=_.Ho("button");
c=_.qe(function(C){return C.key==="Enter"?(C.preventDefault(),b.value.click(),!1):!0});
var d=_.qe(function(C){if(x().handleOnTapEventInParent||P())return!0;if(n())return!1;jKA(x(),g(),C);k(!g());return!1}),q={};
q=_.Kw("ytSwitchButtonViewModelButton",(q.ytSwitchButtonViewModelTappable=function(){return!n()},q));
return _.U("switch-button-view-model",{class:_.Kw("ytSwitchButtonViewModelHost",B)},_.U("button",{el:b,class:q,"on:click":d,"on:keydown":c,"aria-label":function(){return g()?x().a11yLabelSwitchedOn:x().a11yLabelSwitchedOff},
"aria-checked":g,"aria-disabled":n,role:"switch"},_.U(aQm,{active:g,disabled:n})))},"yc");var pjy=_.rM(function(B){var c=_.uF(B,{checked:!1});B=c.name;var x=c.onChange,P=c.onClick,Y=c.checked,g=c.labelRenderable,k=c.hasLeadingLabel,n=c.labelClass,b=c.isCompact,d=c.selectElementClass;c=c.disableHorizontalPadding;var q="checkbox"+_.oz(_.N5),C=_.qe(function(N){P==null||P(N);return!1}),h=_.qe(function(N){x==null||x(N);
return!1}),V={};
return _.U("checkbox-shape",null,_.U("label",{class:_.Kw("checkbox-shape-wiz",n,(V["checkbox-shape-wiz--compact"]=b,V["checkbox-shape-wiz--disable-horizontal-padding"]=c,V))},_.U("input",{class:"checkbox-shape-wiz__input",id:q,checked:Y,name:B,type:"checkbox","prop:checked":Y,"on:change":h,"on:click":C}),_.U(_.m,{cond:function(){return!(k==null?0:k())},
then:function(){return _.U(sRZ,{isLeading:!0,selectElementClass:d})}}),_.U(_.m,{cond:function(){return!!g},
then:function(){return _.U("div",{class:"checkbox-shape-wiz__label"},g==null?void 0:g())}}),_.U(_.m,{cond:k,
then:function(){return _.U(sRZ,{isLeading:!1,selectElementClass:d})}})))},"zc");
pjy.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sRZ=_.rM(function(B){var c=B.selectElementClass;B={};return _.U("div",{class:_.Kw("checkbox-shape-wiz__checkbox",c,(B["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(c==null?0:c())},B)),
"aria-hidden":"true"},_.U(_.Vf,{icon:_.T("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.U(_.Vf,{icon:_.T("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.JN=_.rM(function(B){var c=B.name;var x=B.onChange;var P=B.onClick;var Y=B.checked;var g=B.labelRenderable;var k=B.useCheckIcon;var n=B.hasLeadingLabel;var b=B.labelClass;var d=B.isCompact;var q=B.selectElementClass;var C=B.ariaLabel;B=B.className;var h="radio"+_.oz(_.N5),V=_.Ho("input"),N=_.qe(function(u){V.value.checked=!(Y==null||!Y());x==null||x(u);return!1}),l=_.qe(function(u){P==null||P(u);
return!1}),E=_.p(_.$D(!1,void 0,"v5AMrb")),S=E.next().value,M=E.next().value;
E=_.qe(function(){var u;((u=_.cp().resolve(_.Bp(_.Xr)))==null?0:u.isKeyBoardInUse())&&M(!0)});
var f=_.qe(function(){M(!1)}),Z={};
return _.U("radio-shape",{class:_.Kw("radio-shape-wiz",B)},_.U("input",{el:V,class:"radio-shape-wiz__input",id:h,"prop:checked":Y,name:c,type:"radio","on:change":N,"on:click":l,"aria-label":C,"on:focusin":E,"on:focusout":f}),_.U("label",{class:_.Kw("radio-shape-wiz__label-container",b,(Z["radio-shape-wiz--compact"]=d,Z["radio-shape-wiz__label-container--keyboard-focused"]=S,Z)),for:h},_.U(_.m,{cond:function(){return!(n==null?0:n())},
then:function(){return _.U(kb4,{checked:Y,useCheckIcon:k,isLeading:!0,selectElementClass:q})}}),_.U(_.m,{cond:function(){return!!g},
then:function(){return _.U("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(C==null?0:C())?"true":"false"}},g==null?void 0:g())}}),_.U(_.m,{cond:n,
then:function(){return _.U(kb4,{checked:Y,useCheckIcon:k,isLeading:!1,selectElementClass:q})}})))},"Bc");
_.JN.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var kb4=_.rM(function(B){var c=B.useCheckIcon;var x=B.selectElementClass;B=function(){return(c==null?0:c())?"CHECK":_.T("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var P={};return _.U("div",{class:_.Kw("radio-shape-wiz__radio",x,(P["radio-shape-wiz__radio--check-icon"]=c,P["radio-shape-wiz__radio--radio-default-style"]=function(){return!(x==null?0:x())},P)),
"aria-hidden":"true"},_.U(_.Vf,{icon:B}),_.U(_.Vf,{icon:B,active:function(){return!(c==null?0:c())}}))},"Cc");_.W0=_.rM(function(B){function c(){var cs;((cs=_.cp().resolve(_.Bp(_.Xr)))==null?0:cs.isKeyBoardInUse())&&r9(!0)}
function x(){r9(!1)}
var P=B.data;var Y=B.isMenuItem;var g=B.isCompact;var k=B.onTap;var n=B.trailingAccessory;var b=B.hideSelectionTextChevron;var d=B.disabled;var q=B.inPopup;var C=B.disableHorizontalPadding;var h=B.isOverlay;var V=B.isToggled;var N=_.T("apply_button_role_to_list_item"),l=_.FB(function(cs){a:{var NQ=P();if((NQ==null?0:NQ.entitySelectorType)&&(NQ==null?0:NQ.entityKey))switch(NQ.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":cs=_.if7(cs,NQ.entityKey);
cs=cs==null?void 0:cs.value;NQ=!1;cs==="CAPTIONS_UNAVAILABLE"&&(NQ=!0,cs="");cs=Object.assign({},!!cs&&{selectionText:{content:cs}},{isSelected:!!cs},!!cs&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:NQ});break a;default:cs={}}else cs={}}return cs}),E=function(){return _.T("enable_web_shorts_captions_language_command")?Object.assign({},P(),l()):P()},S=function(){return!(E().isSelected===void 0||!E().selectionStyle||E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
M=function(){return(_.Z_(E().rendererContext)||k)&&!S()},f=function(){return _.Z_(E().rendererContext)||S()};
B={};h=_.Kw("yt-list-item-view-model-wiz",(B["yt-list-item-view-model-wiz--is-overlay"]=h,B["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!N&&yw()},B));
B={};var Z=_.Kw("yt-list-item-view-model-wiz__label",(B["yt-list-item-view-model-wiz__container"]=function(){return!S()},B["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!E().isDisabled||!(d==null||!d())},B["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!E().subtitle},B["yt-list-item-view-model-wiz__container--compact"]=g,B["yt-list-item-view-model-wiz__container--tappable"]=M,B["yt-list-item-view-model-wiz__container--in-popup"]=q,B["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return N&&yw()},B["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(C==null?void 0:C())&&!S()},B));
B={};var u=_.Kw("yt-list-item-view-model-wiz__container",(B["yt-list-item-view-model-wiz__container--tappable"]=f,B["yt-list-item-view-model-wiz__container--compact"]=g,B["yt-list-item-view-model-wiz__container--in-popup"]=q,B["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(C==null?void 0:C())&&S()},B)),e=function(){return E().leadingImage||E().leadingAccessory},px=_.Kw("yt-list-item-view-model-wiz__image-container",function(){return e()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
q=_.Ho("yt-list-item-view-model");var kI=_.Ho("div"),Ul=N?kI:q,wC=_.rM(function(){return _.U(_.m,{cond:function(){return N},
then:function(){return _.U("div",{class:Z,el:kI,role:function(){return f()||M()?"button":void 0},
tabindex:function(){return k||M()?0:void 0},
"on:keydown":El,"on:click":W$},_.U(Xjt,{data:E,hideSelectionTextChevron:b,trailingAccessory:n,isToggled:V}))},
else:function(){return _.U("div",{class:Z,el:kI},_.U(Xjt,{data:E,hideSelectionTextChevron:b,trailingAccessory:n,isToggled:V}))}})},"Dc");
wC.idomCompat=!0;_.Hv(q,function(){return E().rendererContext});
var W$=_.qe(function(cs){return void(k==null?void 0:k(cs))}),El=_.ep$(),H$=_.p(_.$D(!1,void 0,"kFezJc"));
B=H$.next().value;H$=H$.next().value;var yw=B,r9=H$;_.lk(function(){M()&&(Ul.value.addEventListener("focusin",c),Ul.value.addEventListener("focusout",x));_.lP(function(){Ul.value&&M()&&(Ul.value.removeEventListener("focusin",c),Ul.value.removeEventListener("focusout",x))})});
B=_.qe(function(){return!0});
return _.U("yt-list-item-view-model",{el:q,class:h,role:function(){return(Y==null?0:Y())?"menuitem":"listitem"},
tabindex:function(){var cs=M();cs=N?void 0:k||cs?0:void 0;return cs},
"on:keydown":N?B:El,"on:click":N?B:W$},_.U(_.m,{cond:S,then:function(){return _.U(_.tR,null,_.U(_.Tu,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.U(pjy,{labelRenderable:function(){return _.U(wC,null)},
isCompact:g,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:u,selectElementClass:px,disableHorizontalPadding:C})}),_.U(_.Tu,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.U(_.JN,{labelRenderable:function(){return _.U(wC,null)},
isCompact:g,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:u,selectElementClass:px})}),_.U(_.Tu,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.U(_.JN,{labelRenderable:function(){return _.U(wC,null)},
isCompact:g,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:u,selectElementClass:px,useCheckIcon:!0})}),_.U(_.Va,null,function(){return _.U(wC,null)}))},
else:function(){return _.U(wC,null)}}))},"Ec");
_.W0.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Xjt=_.rM(function(B){var c=B.data;var x=B.hideSelectionTextChevron;var P=B.trailingAccessory;var Y=B.isToggled;return _.U(_.at,null,_.U($E4,{data:c,isLeading:!0,hideSelectionTextChevron:function(){return!(x==null||!x())},
isToggled:Y}),_.U(n_W,{data:c}),_.U(_.m,{cond:function(){return!!P},
then:function(){return _.U("div",{class:"yt-list-item-view-model-wiz__trailing"},P==null?void 0:P())},
else:function(){return _.U($E4,{data:c,isLeading:!1,hideSelectionTextChevron:function(){return!(x==null||!x())},
isToggled:Y})}}))},"Fc"),$E4=_.rM(function(B){var c=B.data;
var x=B.isLeading;var P=B.hideSelectionTextChevron;var Y=B.isToggled;var g=_.Kw("yt-list-item-view-model-wiz__button-container");B={};var k=_.Kw("yt-list-item-view-model-wiz__image-container",(B["yt-list-item-view-model-wiz__leading"]=x,B["yt-list-item-view-model-wiz__trailing"]=function(){return!x()},B)),n=function(){return x()?c().leadingImage:c().trailingImage},b=_.Kw("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
B={};var d=_.Kw("yt-list-item-view-model-wiz__accessory",(B["yt-list-item-view-model-wiz__leading"]=x,B["yt-list-item-view-model-wiz__trailing"]=function(){return!x()},B)),q=function(){a:switch(c().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var C="expand_more";
break a;default:C="chevron_right"}return C};
return _.U(_.m,{cond:function(){var C=c(),h=x();return!!(h&&(C.leadingImage||C.leadingAccessory)||!h&&(C.trailingImage||C.trailingButton||C.trailingButtons||C.selectionText))},
then:function(){return _.U(_.at,null,_.U(_.m,{cond:n,then:function(C){return _.U("div",{class:k,"aria-hidden":"true"},_.U(_.D9,{data:C,alt:"",preserveWidth:!0,preserveHeight:!0,className:b,isToggled:Y}))}}),_.U(_.m,{cond:function(){return x()&&c().leadingAccessory},
then:function(){return _.U("div",{class:k},_.U(_.IF,{data:function(){return c().leadingAccessory}},{avatarViewModel:function(C){return _.U(_.IS,{data:C.data,
avatarButtonCustomClassName:b})},
collectionThumbnailViewModel:o$Z}))}}),_.U(_.m,{cond:function(){return!x()&&c().trailingButton},
then:function(){return _.U("div",{class:g},_.U(_.IF,{data:function(){return c().trailingButton}},{buttonViewModel:function(C){return _.U(_.Q7,{data:C.data,
className:d})}}))}}),_.U(_.m,{cond:function(){var C;
return!x()&&((C=c().trailingButtons)==null?void 0:C.buttons)},
then:function(){return _.U("div",{class:g},_.U(_.IF,{data:function(){var C;return(C=c().trailingButtons)==null?void 0:C.buttons}},{buttonViewModel:function(C){return _.U(_.Q7,{data:C.data,
className:d})},
accountLinkButtonViewModel:function(C){return _.U(QrO,{data:C.data,className:d})},
switchButtonViewModel:function(C){return _.U(g_d,{data:C.data,className:d})},
subscribeButtonViewModel:function(C){return _.U(_.wA,{data:C.data,isOverlay:!1,animateWidth:!1,className:d})},
toggleButtonViewModel:function(C){return _.U(_.Jb,{data:C.data,className:d})}}))}}),_.U(_.m,{cond:function(){return!x()&&!!c().selectionText},
then:function(){return _.U(_.at,null,_.U(_.RF,{text:function(){return c().selectionText},
className:_.Kw("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.U(_.m,{cond:function(){return!P()},
then:function(){return _.U(_.Vf,{icon:q,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),n_W=_.rM(function(B){var c=B.data;
return _.U(_.m,{cond:function(){return c().title||c().subtitle},
then:function(){return _.U("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.U("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.U(_.m,{cond:function(){return c().title},
then:function(x){return _.U(_.RF,{text:x,className:"yt-list-item-view-model-wiz__title"})}})),_.U(_.m,{cond:function(){return c().subtitle},
then:function(x){return _.U(_.RF,{text:x,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.bIZ=_.rM(function(B){var c=B.data;var x=B.onTap;var P=B.onSwitch;var Y=B.overrideDisabled;B=B.disableHorizontalPadding;var g=_.p(_.mg(function(){var C;return((C=duX(q()))==null?void 0:C.switchedOnByDefault)||!1})),k=g.next().value,n=g.next().value;
g=_.p(_.$D(!1,void 0,"ZHBkbb"));var b=g.next().value,d=g.next().value,q=function(){var C;if(!(C=c().switchButton)){var h=c();C=Y==null?void 0:Y();h={switchOnCommand:h.switchOnCommand,switchOffCommand:h.switchOffCommand,switchedOnByDefault:h.switchedOnByDefault,isDisabled:h.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:h.a11yLabelSwitchedOn,a11yLabelSwitchedOff:h.a11yLabelSwitchedOff};C!==void 0&&(h.isDisabled=C);C={switchButtonViewModel:h}}return C};
return _.U("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.U(_.W0,{data:function(){return{title:c().title,subtitle:c().attributedSubtitle,leadingImage:c().leadingImage,leadingAccessory:c().leadingAccessory,isDisabled:c().isDisabled}},
onTap:function(C){var h=duX(q());!h||h.isDisabled||c().ignoreTapUntilCommandCompletes&&b()||(x==null||x(C),jKA(h,k(),C,c().ignoreTapUntilCommandCompletes,d),n(!k()),P==null||P(k()))},
trailingAccessory:function(){return _.U(_.IF,{data:q},{switchButtonViewModel:function(C){return _.U(g_d,{data:C.data,parentActive:k,handleOnTapEventInParent:!!x})}})},
disableHorizontalPadding:B}))},"Ic");var Kb3=_.rM(function(B){var c=_.Ho("toggleable-list-item-view-model"),x=_.p(_.mg(function(){var g,k;return!!((g=B.data())==null?0:(k=g.initialState)==null?0:k.isToggled)})),P=x.next().value,Y=x.next().value;
_.Hv(c,function(){return B.data().rendererContext});
x=_.qe(function(){Y(!P())});
return _.U("toggleable-list-item-view-model",{el:c,class:_.Kw("toggleableListItemViewModelHost",B.className),"on:click":x},_.U(_.m,{cond:P,then:function(){return _.U(_.IF,{data:function(){return B.data().toggledListItem}},{listItemViewModel:function(g){return _.U(_.W0,{data:g.data,
isToggled:P})}})},
else:function(){return _.U(_.IF,{data:function(){return B.data().defaultListItem}},{listItemViewModel:_.W0})}}))},"Jc");var jRy=_.Up("DOWNLOAD",{},"Download"),UE3=_.Up("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),dEF=_.Up("RETRY",{},"Retry"),q_F=_.Up("PAUSE_DOWNLOADING",{},"Pause downloading"),Cu3=_.Up("RESUME_DOWNLOAD",{},"Resume download"),q87={text:jRy,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Q0={text:UE3,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},mu7={text:dEF,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Cs7={text:q_F,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ho7={text:Cu3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var hu3=_.rM(function(B){var c=function(){var n=B.data();n=_.L3(n.rendererContext);var b;return(b=_.t(n,_.n3))==null?void 0:b.videoId},x=_.FB(function(n){var b=c(),d=tHO(B.data());
return b?_.QI(n,b):d?_.F9(n,d):"TRANSFER_STATE_UNKNOWN"}),P=_.jA(_.tPd,c),Y=_.FB(function(n){return _.qPY(n,c(),tHO(B.data()))}),g=function(){return VHX(x(),P(),_.L3(B.data().rendererContext),!!tHO(B.data()))},k=function(){return Y()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.U("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:k},_.U(_.m,{cond:function(){return!k()},
then:function(){return _.U(_.m,{cond:g,then:function(n){return _.U(_.mV,{each:n},function(b){return _.U(_.W0,{data:b,isCompact:B.isCompact,isMenuItem:B.isMenuItem,inPopup:B.inPopup,disableHorizontalPadding:B.disableHorizontalPadding})})}})}}))},"Kc");
hu3.idomCompat=!0;_.mE3=_.rM(function(B){var c=B.data;var x=B.isCompact;var P=B.hideSelectionTextChevron;var Y=B.inPopup;var g=B.isOverlay;var k=B.disableHorizontalPadding;var n=function(){return wgQ(c())&&(Y==null?void 0:Y())};
B={};return _.U("yt-list-view-model",{class:_.Kw("yt-list-view-model-wiz",(B["yt-list-view-model-wiz--kaios-spat-nav"]=GhY&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",B)),role:function(){return n()?"menu":"list"},
style:_.TU({"max-height":function(){var b,d=(b=c())==null?void 0:b.visibleElementCount;if(d)return IJd(c())?(d+.5)*48+"px":(d+.5)*40+"px"}})},_.U(_.IF,{data:function(){return c().listItems}},{listItemViewModel:function(b){return _.U(_.W0,{data:b.data,
isMenuItem:n,isCompact:x,hideSelectionTextChevron:P,inPopup:Y,isOverlay:g,disableHorizontalPadding:k})},
toggleableListItemViewModel:function(b){return _.U(Kb3,{data:b.data})},
downloadListItemViewModel:function(b){return _.U(hu3,{data:b.data,isMenuItem:n,isCompact:x,inPopup:Y,disableHorizontalPadding:k})},
switchListItemViewModel:function(b){return _.U(_.bIZ,{data:b.data,disableHorizontalPadding:k})}}))},"Lc");
_.mE3.idomCompat=!0;var TF9=_.rM(function(B){var c=B.data;var x=B.isOverlay;B={};return _.U("yt-course-perks-view-model",{class:_.Kw("ytwCoursePerksViewModelHost",(B.ytwCoursePerksViewModelHostOverlay=x,B))},_.U("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U("div",null,_.U(_.m,{cond:function(){return c().perks},
then:function(P){return _.U(_.mE3,{data:function(){return{listItems:P()}},
isCompact:!0,isOverlay:x})}})))},"Mc");_.xU(TF9,"yt-course-perks-view-model",{props:{data:_.cw,isOverlay:_.cw}});_.xU(_.rM(function(B){var c=B.data;return _.U("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.U("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.U(_.RF,{text:function(){return c().progressSummary}})),_.U("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.U("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.TU({width:function(){return c().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.rk}});var VCF=_.rM(function(B){var c={};return _.U("yt-progress-view-model",{class:_.Kw("ytwProgressViewModelHost",(c.ytwProgressViewModelHostOverlay=_.A9(B.isOverlay,!1),c))},_.U(_.m,{cond:function(){return B.data().progressSummary},
then:function(x){return _.U("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.U(_.RF,{text:x}))}}),_.U("div",{class:"ytwProgressViewModelHostProgressContainer"},_.U(_.m,{cond:function(){return B.data().leadingLabel},
then:function(x){return _.U("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.U(_.RF,{text:x}))}}),_.U("div",{class:"ytwProgressViewModelHostProgressBar"},_.U("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(B.data().progressPercentage||0)*100+"%"}}))))},"Oc");var lQ=_.rM(function(B){var c=B.starNumber;var x=B.data;var P=function(){var Y;return((Y=x())==null?void 0:Y.rating)||0};
return _.U(_.m,{cond:function(){return c()},
then:function(Y){return _.U(_.tR,null,_.U(_.Tu,{when:function(){return P()>=Y()-.25}},function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.Vf,{icon:"STAR_FILLED"}))}),_.U(_.Tu,{when:function(){return P()>=Y()-.75}},function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.Vf,{icon:"STAR_HALF"}))}),_.U(_.Va,null,function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.Vf,{icon:"STAR_BORDER"}))}))}})},"Pc"),tCd=_.rM(function(B){B=B.data;
return _.U("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.U(lQ,{starNumber:1,data:B}),_.U(lQ,{starNumber:2,data:B}),_.U(lQ,{starNumber:3,data:B}),_.U(lQ,{starNumber:4,data:B}),_.U(lQ,{starNumber:5,data:B}))},"Qc");_.xU(_.rM(function(B){var c=_.uF(B,{}).data;return _.U("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.U("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.U(_.RF,{text:function(){var x;return(x=c())==null?void 0:x.title}})),_.U("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.U(_.m,{cond:function(){return c().starProgressViewModels},
then:function(x){return _.U("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.U(_.IF,{data:x},{progressViewModel:VCF}))}}),_.U("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.U("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.U(_.RF,{text:function(){var x;
return(x=c())==null?void 0:x.averageRatingLabel}})),_.U(_.m,{cond:function(){return c().zeroStateText},
then:function(x){return _.U("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.U(_.RF,{text:x}))}}),_.U(_.m,{cond:function(){return c().starRatingViewModel},
then:function(x){return _.U("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.U(_.IF,{data:x},{starRatingViewModel:tCd}))}}),_.U("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.U(_.RF,{text:function(){var x;
return(x=c())==null?void 0:x.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.cw}});var wjI;wjI={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"}};_.NFZ=_.rM(function(B){var c=_.Ho("yt-learning-journey-loader-view-model"),x=_.X5();_.JR(function(){requestAnimationFrame(function(){var Y;(Y=x.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var g;(g=B.onLottieLoaded)==null||g.call(B)})});
var P=B.data().browseEndpoint;P&&_.Gl(P)});
return _.U("yt-learning-journey-loader-view-model",{class:_.Kw("learningJourneyLoaderViewModelHost",B.className),"data-target-id":function(){var P;return((P=B.data)==null?void 0:P.call(B).targetId)||""},
el:c},_.U(_.j5,{className:_.Kw("learningJourneyLoaderViewModelLoader",B.className),animationName:function(){return wjI.animationConfig.name},
data:wjI,animationRef:x}))},"Sc");_.xU(_.NFZ,"yt-learning-journey-loader-view-model",{props:{data:_.rk,className:_.cw,onLottieLoaded:_.cw}});var WZQ=new Set,Jk7=null;_.IQS=_.rM(function(B){var c=null,x=null,P=null,Y=function(){return B.data()},g=_.p(_.$D(-1,void 0,"H2gnQb")),k=g.next().value,n=g.next().value,b=function(l){return k()===l},d=function(l){return Y().correctAnswerIndex===l},q=function(){return k()!==-1},C=function(){return k()===Y().correctAnswerIndex},h=_.qe(function(){n(-1);
return!1}),V=function(){var l=q(),E=C();
return l?E?264685:264684:264683},N=function(l){return C()&&d(l)};
return _.U("learning-journey-quiz-view-model",{class:_.Kw("learningJourneyQuizViewModelHost",B.className),style:_.TU({background:function(){return Sn(v8(Y())).backgroundColor}})},_.U(_.m,{cond:function(){return!!Y().video},
then:function(){return _.U("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.TU({background:function(){return Sn(v8(Y())).videoBackgroundColor}})},_.U(_.IF,{data:function(){return Y().video}},{lockupViewModel:function(l){return _.U(_.ap,{data:l.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.U("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.U("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.U("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.TU({"align-items":function(){return Y().overflowMenu?"start":"center"}})},_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.TU({"min-height":function(){return Y().overflowMenu?"48px":"26px"}})},_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Rm(function(l){_.FF(V(),l,c,function(E){c=E})}),
style:_.TU({color:function(){return Sn(v8(Y())).primaryTextColor}}),
"client-ve-type":V},_.U(_.RF,{text:function(){var l=Y(),E=q(),S=C();return E?S?l.successTitle:l.failureTitle:l.questionHeaderText}}))),_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.U(_.m,{cond:q,
then:function(){return _.U("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Rm(function(l){_.FF(264687,l,x,function(E){x=E})}),
"on:click":h,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.U("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.TU({fill:function(){return Sn(v8(Y())).primaryTextColor}})},_.U("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.U(_.IF,{data:function(){return Y().overflowMenu}},{buttonViewModel:function(l){return _.U(_.Q7,{data:l.data})}}))),_.U("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Rm(function(l){_.FF(264688,l,P,function(E){P=E})}),
style:_.TU({color:function(){return Sn(v8(Y())).secondaryTextColor}}),
"client-ve-type":264688},_.U(_.RF,{text:function(){var l=Y();return q()?l.explanationText:l.questionSubheaderText}}))),_.U("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.U(_.mV,{each:function(){return Y().optionsData||[]}},function(l,E){var S={};
return _.U("div",{class:_.Kw("learningJourneyQuizViewModelHostQuizOptions",(S.learningJourneyQuizViewModelHostQuizHover=function(){return!q()},S.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return N(E())},S.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!C()&&b(E())},S.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return q()&&!b(E())},S)),
"on:click":_.qe(function(){if(q())return!1;n(E());return!1}),
style:_.TU({background:function(){return q()&&b(E())?"":Sn(v8(Y())).optionColor}}),
role:"button","aria-disabled":q,"tab-index":"0","client-ve-type":264686},_.U(_.m,{cond:q,then:function(){var M={};return _.U("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var f=E();return d(f)?"0 0 24 24":"0 -960 960 960"},
class:_.Kw("learningJourneyQuizViewModelHostQuizOptionIcon",(M.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return N(E())},M)),
style:_.TU({fill:function(){return Sn(v8(Y())).primaryTextColor}})},_.U("path",{d:function(){var f=E();
return d(f)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.U(_.RF,{text:l.optionText}))})))))},"Tc");
_.IQS.idomCompat=!0;_.xU(_.IQS,"learning-journey-quiz-view-model",{props:{data:_.rk,className:_.rk}});var JFy=_.rM(function(B){var c=_.Ho("yt-macro-marker-list-item-view-model");_.Hv(c,function(){return B.data().rendererContext});
var x=_.uF(B,{palette:void 0,isLastItem:!1}),P=x.palette,Y=x.isLastItem,g=function(){return B.data().isHighlighted},k=function(){var d;
return EhQ((d=P())==null?void 0:d.iconDisabledColor)},n=function(){var d;
return EhQ((d=P())==null?void 0:d.primaryTitleColor)},b=function(){var d;
return EhQ((d=P())==null?void 0:d.secondaryTitleColor)};
x={};return _.U("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:c},_.U(_.IF,{data:function(){return B.data().thumbnail}},{thumbnailViewModel:_.Df}),_.U("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.U("div",{class:_.Kw("ytMacroMarkerListItemViewModelTimeDescription",(x.ytMacroMarkerListItemViewModelHighlighted=g,x)),
style:_.TU({"background-color":function(){return g()?n():k()},
color:function(){return g()?"":b()}})},_.U(_.RF,{text:function(){return B.data().timestamp}})),_.U("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.TU({"background-color":function(){return Y()?"transparent":k()}})}),_.U("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(g()?n():b())}},_.U(_.RF,{text:function(){return B.data().title}}))))},"Uc");_.Ez=_.rM(function(B){function c(uX){S("transform:translateX("+(_.v5("HTML_DIR")==="rtl"?"":"-")+uX+"px)")}
function x(uX){return Math.min(Math.max(uX,0),E()-e())}
function P(){var uX=Z()+wC();return Y()?(Math.round(e()/uX)||1)*uX:0}
var Y=function(){return B.data().items||[]},g=function(){return B.data().previousButton},k=function(){return B.data().nextButton},n=function(){var uX,yr;
return(yr=(uX=B.disableArrows)==null?void 0:uX.call(B))!=null?yr:!1},b=function(){var uX;
return!((uX=B.forceNarrowLayout)==null||!uX.call(B))},d=_.Ho("horizontal-shelf-view-model"),q=_.Ho("div"),C=_.p(_.$D(0,void 0,"FK8fq")),h=C.next().value,V=C.next().value;
C=_.p(_.$D(0,void 0,"FXvjXe"));var N=C.next().value,l=C.next().value,E=N;N=_.p(_.$D("",void 0,"dmCnjc"));C=N.next().value;var S=N.next().value;N=_.p(_.$D(0,void 0,"LqBxue"));var M=N.next().value,f=N.next().value,Z=M;N=_.p(_.$D(0,void 0,"o2DdWe"));M=N.next().value;var u=N.next().value,e=M;N=_.p(_.$D(!1,void 0,"u9PZCd"));var px=N.next().value,kI=N.next().value;N=_.p(_.$D(0,void 0,"TYwGid"));M=N.next().value;var Ul=N.next().value,wC=M;N=_.p(_.$D(0,void 0,"cLGHg"));var W$=N.next().value,El=N.next().value;
N=_.p(_.$D("50%",void 0,"aKvnEe"));var H$=N.next().value,yw=N.next().value,r9=function(){var uX,yr=(uX=B.data())==null?void 0:uX.responsiveContainerConfiguration,uz,XO;return yr?Yeo(yr==null?void 0:yr.responsiveSize):(XO=(uz=B.sizing)==null?void 0:uz.call(B))!=null?XO:"STANDARD"};
N=_.db(function(){return!n()&&h()>0},void 0,"DIgCMb");
M=_.db(function(){return!n()&&h()<E()-e()},void 0,"F5ZeCd");
var cs=function(){V(x(h()-P()));c(h())},NQ=function(){V(x(h()+P()));
c(h())},n4=function(){d.value!==null&&UF()},L4;
_.lk(function(){UF();window.ResizeObserver?(L4=new ResizeObserver(_.he(n4,0)),L4.observe(d.value)):window.addEventListener("resize",n4)});
_.lP(function(){if(window.ResizeObserver){var uX;(uX=L4)==null||uX.disconnect()}else window.removeEventListener("resize",n4)});
var UF=function(){var uX=d.value.clientWidth,yr=B.includeMargin!==void 0?B.includeMargin():!1,uz;var XO=B.hasPeek!==void 0?B.hasPeek():!((uz=B.data())==null||!uz.hasPeek);uX=_.D_({containerWidth:uX,hasPeek:XO,sizing:r9(),marginSettings:yr?b()?4:1:0});Ul(uX.gutter);El(uX.margin);f(uX.itemWidth);kI(uX.maxContainerWidth<528||b());u(uX.maxContainerWidth);Y()&&l((uX.itemWidth+uX.gutter)*Y().length-uX.gutter);if(Y()){var qQ;if(((qQ=B.thumbnailAspectRatio)==null?void 0:qQ.call(B))!==void 0){var lt;yw(Z()/
te$((lt=B.thumbnailAspectRatio)==null?void 0:lt.call(B))/2+"px")}else yw("50%")}};
return _.U("horizontal-shelf-view-model",{class:_.Kw("ytwHorizontalShelfViewModelHost",B.className),el:d},_.U(_.m,{cond:function(){var uX;return B.data().header&&!((uX=B.horizontalShelfExperiments)==null?0:uX.call(B).hideHeader)},
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.TU({width:function(){return e()+"px"},
padding:function(){return"0 "+W$()+"px"}})},_.U(_.IF,{data:function(){return B.data().header}},{sectionHeaderViewModel:function(uX){return _.U(_.g1,{data:uX.data,
disableHorizontalPadding:!0,forceSmallLayout:px,useResponsiveLayout:!0})}}))}}),_.U("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.TU({"margin-top":function(){var uX,yr=B.data().header&&!((uX=B.horizontalShelfExperiments)==null?0:uX.call(B).hideHeader),uz;return(((uz=B.ensureMarginTop)==null?0:uz.call(B))&&!yr?12:0)+"px"}})},_.U("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.TU({width:function(){return e()+"px"},
padding:function(){return"0 "+W$()+"px"},
overflow:function(){return n()?"auto":"hidden"}})},_.U("div",{class:"ytwHorizontalShelfViewModelItems",
el:q,style:C},_.U(_.IF,{data:Y},{macroMarkerListItemViewModel:function(uX,yr){return _.U("div",{style:_.TU({width:function(){return Z()+"px"},
"margin-right":function(){return(yr()===Y().length-1?0:wC())+"px"}})},_.U(JFy,{data:uX.data,
palette:_.A9(B.palette),isLastItem:function(){return yr()===Y().length-1}}))},
lockupViewModel:function(uX,yr){var uz=uX.data;return _.U("div",{style:_.TU({width:function(){return Z()+"px"},
"margin-right":function(){return(yr()===Y().length-1?0:wC())+"px"}})},_.U(_.ap,{data:uz,
containerType:4,sizing:r9,protectBackground:B.protectBackground,thumbnailFixedWidth:function(){return OeY(uz())+"px"},
thumbnailTargetWidth:function(){return OeY(uz())}}))}}))),_.U(_.m,{cond:N,
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.TU({top:function(){return H$()}})},_.U(_.IF,{data:g},{buttonViewModel:function(uX){return _.U(_.Q7,{data:uX.data,
onClick:cs})}}))}}),_.U(_.m,{cond:M,
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.TU({top:function(){return H$()}})},_.U(_.IF,{data:k},{buttonViewModel:function(uX){return _.U(_.Q7,{data:uX.data,
onClick:NQ})}}))}})))},"Vc");
_.Ez.idomCompat=!0;var WbI=_.rM(function(B){var c=function(){return B.data().targetId||""},x=function(){var N;
return((N=B.data())==null?void 0:N.expansionEntityKey)||""},P=_.jA(_.if7,x),Y=!0,g=function(){var N;
return((N=P())==null?void 0:N.value)===c()},k=function(N){_.iF(_.Uy("stringEntity",x(),{key:x(),
value:N?c():""}))};
_.JR(function(){Y=!1;B.data().isExpanded&&k(!0)});
var n=function(){if(g()){var N=!0;B.onCollapse!==void 0&&(N=B.onCollapse());N&&k(!1)}else k(!0)},b=_.qe(n),d=function(){var N;
return(((N=B.accordionStyle)==null?void 0:N.call(B))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},q=_.Ho("div"),C=function(){var N,l;
return(l=(N=_.t(B.data().rendererContext,_.T3))==null?void 0:N.label)!=null?l:""},h={},V={};
return _.U("yt-accordion-item-view-model",{class:_.Kw("ytAccordionItemViewModelHost",B.className,(h.ytAccordionItemViewModelExpanded=function(){return g()},h.ytAccordionItemViewModelHidden=function(){var N;
return(N=B.hideIfNotExpanded)==null?void 0:N.call(B)},h.ytAccordionItemViewModelMini=d,h)),
"data-target-id":c},_.U("div",{class:"ytAccordionItemViewModelContainer"},_.U("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:C},_.U(_.RF,{text:function(){return B.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:C})),_.U("div",{class:"ytAccordionItemViewModelRightSection"},_.U(_.IF,{data:function(){return g()?B.data().expandButton:B.data().collapseButton}},{buttonViewModel:function(N){return _.U(_.Q7,{data:N.data,
className:"ytAccordionItemViewModelToggleButton",onClick:n})}}))),_.U("div",{class:"ytAccordionItemViewModelContainer"},_.U("div",{class:_.Kw("ytAccordionItemViewModelContent",(V.ytAccordionItemViewModelExpandedSubtitle=function(){return g()},V)),
el:q,style:_.TU({"max-height":function(){return Y?"auto":g()?q.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!g()}},_.U(_.m,{cond:function(){return!d()},
then:function(){return _.U(_.RF,{text:function(){return B.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.U(_.IF,{data:function(){return B.data().content}},{horizontalShelfViewModel:function(N){return _.U(_.Ez,{data:N.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.lQd=_.rM(function(B){var c=_.p((0,_.Yt9)(B.data)).next().value,x=function(){return B.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},P=function(){return x()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Y=_.p(_.$D(!0,void 0,"FVec2e")),g=Y.next().value,k=Y.next().value,n=function(){return P()&&g()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){k(!g())}}},d=_.qe(function(){c().onTitleTap&&_.Gl(c().onTitleTap||{})});
Y={};return _.U("yt-accordion-view-model",{class:_.Kw("ytAccordionViewModelHost",(Y.ytAccordionViewModelMinimized=function(){return n()},Y)),
"data-target-id":function(){return B.data().targetId||""}},_.U(_.m,{cond:function(){return P()||!!c().title},
then:function(){return _.U("div",{class:"ytAccordionViewModelHeader"},_.U("div",{class:"ytAccordionViewModelTitleSection"},_.U("div",{class:"ytAccordionViewModelTitleWrapper"},_.U(_.m,{cond:function(){return!!B.data().headerIcon},
then:function(){return _.U(_.Vf,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var q;return(q=B.data().headerIcon)==null?void 0:q.iconType}})}}),_.U("div",{class:"ytAccordionViewModelTitle",
"on:click":d},_.U(_.RF,{className:"ytAccordionViewModelTitleText",text:function(){return c().title}})))),_.U("div",{class:"ytAccordionViewModelButtonSection"},_.U(_.m,{cond:P,
then:function(){return _.U(B8,{data:b,iconName:function(){return n()?"chevron_down":"chevron_collapse"}})}})))}}),_.U("div",{class:"ytAccordionViewModelContent"},_.U(_.IF,{data:function(){return c().contents}},{accordionItemViewModel:function(q){return _.U(WbI,{data:q.data,
className:"ytAccordionViewModelRow",accordionStyle:x,hideIfNotExpanded:n,onCollapse:function(){return P()?(k(!0),!1):!0}})}})),_.U("div",null,_.U(_.m,{cond:function(){return!P()&&(!!c().disclaimerFooter||!!c().footer)},
then:function(){return _.U("div",{class:"ytAccordionViewModelFooter"},_.U(_.RF,{text:function(){return c().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.U(_.IF,{data:function(){return B.data().footer}},{flexibleActionsViewModel:function(q){return _.U(IN,{data:q.data,
layout:0})}}))}})))},"Xc");_.xU(_.lQd,"yt-accordion-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=null,x=null,P,Y=(P=_.cp().resolve(_.Bp(_.fL)))==null?void 0:P(),g=_.p(_.$D(!1,void 0,"EVXQGb"));P=g.next().value;var k=g.next().value;g=_.p(_.$D(!0,void 0,"W9FIJf"));var n=g.next().value,b=g.next().value,d=_.Ho("textarea",function(E){_.FF(264503,E,c,function(S){c=S})}),q=function(E){k(!0);
E={learningJourneyFormData:{query:E}};_.Gl(B.data().searchEndpoint||{},{form:{formData:E}});return!1},C=_.qe(function(E){E.target.closest("button-view-model")&&k(!0)});
g=_.qe(function(){b(d.value.value.length===0)});
var h=_.qe(function(E){if(E.key==="Enter"&&!E.shiftKey&&!n()){var S=E.target;E.preventDefault();q(S.value)}}),V={},N={},l={};
return _.U("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.U("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.U(_.D9,{data:function(){return B.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.U("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.U("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.U("div",{class:_.Kw("ytLearningJourneyZeroStateSearchBar",(V.ytLearningJourneyZeroStateSearchBarDark=Y,V))},_.U("textarea",{class:_.Kw("ytLearningJourneyZeroStateTextInput",(N.ytLearningJourneyZeroStateTextInputDark=Y,N)),el:d,"on:keyup":g,"on:keydown":h,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.U("div",{class:_.Kw("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=Y,l))},_.U(_.Q7,{data:function(){return _.t(B.data().searchButton,_.Tj)},
className:"search-button",onClick:function(){return q(d.value.value)},
buttonOverrides:function(){return{disabled:n(),style:Y?"mono-inverse":"mono",size:"XL"}}}))),_.U(_.m,{cond:function(){return!!B.data().errorBanner},
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Rm(function(E){_.FF(264617,E,x,function(S){x=S})})},_.U(_.IF,{data:function(){return B.data().errorBanner}},{alertBannerViewModel:function(E){return _.U(_.Pu0,{data:E.data,
"client-ve-type":264617})}}))}})),_.U(_.m,{cond:P,
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.U(_.IF,{data:function(){return B.data().loader}},{learningJourneyLoaderViewModel:function(E){return _.U(_.NFZ,{data:E.data})}}))},
else:function(){return _.U("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.U(_.m,{cond:function(){return!!B.data().learningJourneyShelf},
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.U("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return B.data().learningJourneySectionTitle}),_.U(_.IF,{data:function(){return B.data().learningJourneyShelf}},{horizontalShelfViewModel:_.Ez}))}}),_.U("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.U("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return B.data().suggestedJourneySectionTitle}),
_.U("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":C},_.U(_.IF,{data:function(){return B.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(E){return _.U(IN,{data:E.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.rk}});var E_Z=_.rM(function(B){var c=B.data;return _.U("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Kw("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.U(_.RF,{text:function(){var x;return(x=c())==null?void 0:x.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.U(_.IF,{data:function(){return c().actionButton}},{buttonViewModel:function(x){return _.U(_.Q7,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:x.data})}}))},"Zc");var OIW=_.rM(function(B){var c=B.data;return _.U("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Kw("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.U(_.RF,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var x;return(x=c())==null?void 0:x.displayName},
ellipsisTruncate:!0}),_.U(_.IF,{data:function(){return c().badge}},{buttonViewModel:function(x){return _.U(_.Q7,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:x.data})}}))},"$c");_.xU(_.rM(function(B){var c=B.data;return _.U("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.U("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.U(_.RF,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var x;return(x=c())==null?void 0:x.rank}})),_.U("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.U(_.IF,{data:function(){return c().avatar}},{avatarViewModel:_.IS})),_.U("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.U(_.IF,{data:function(){return c().content}},{liveLeaderboardItemChannelContentViewModel:OIW,
liveLeaderboardItemActionContentViewModel:E_Z})),_.U(_.RF,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var x;return(x=c())==null?void 0:x.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;return _.U("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.U(_.RF,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var x,P;return(x=c())==null?void 0:(P=x.ranking)==null?void 0:P.rank}}),_.U("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.U(_.IF,{data:function(){return c().avatar}},{avatarViewModel:_.IS})),_.U(_.RF,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var x,P;return(x=c())==null?void 0:(P=x.channelContent)==null?void 0:P.channelName}}),_.U(_.RF,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var x;return(x=c())==null?void 0:x.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.rk}});var o_d=_.rM(function(B){B=_.uF(B,{wrapper:!1}).wrapper;return _.U(_.m,{cond:B,then:function(){return _.U("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.U("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.U("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
o_d.idomCompat=!0;var QRI=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Fb5=_.rM(function(B){var c=B.data;var x=_.Ho("div"),P=_.db(function(){return c().command},void 0,"tJY20c");
_.IO(function(){P()&&_.zl(P(),{form:{element:x.value}})},"qs6Sof");
return _.U("div",{el:x,class:"YtQrCodeRendererHostContainer"},_.U(_.m,{cond:function(){return c().qrCodeImage},
then:function(Y){return _.U(_.D9,{data:Y,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.U(_.m,{cond:function(){return c().spinner},
then:function(){return _.U(o_d,null)}})}}),_.U(_.m,{cond:function(){return c().label},
then:function(Y){return _.U(_.RF,{text:Y,className:"YtQrCodeRendererHostLabel"})}}),_.U(_.m,{cond:function(){return c().labels},
then:function(Y){return _.U("div",{class:"YtQrCodeRendererHostLabels"},_.U(_.mV,{each:Y},function(g){return _.U(_.RF,{text:g})}))}}))},"ed");_.xU(_.rM(function(B){var c=B.data;var x=_.db(function(){return c().qrEntityKey},void 0,"joYCxd"),P=_.db(function(){return c().deleteEntityOnDismiss},void 0,"x3yAde"),Y=_.db(function(){return c().command},void 0,"dJe1Re"),g=_.jA(C1$,x);
B=_.db(function(){return c().qrCodeImage},void 0,"qM5dZe");
var k=_.db(function(){return c().style&&QRI.includes(c().style)},void 0,"CaNEkf"),n=_.Ho("yt-qr-code-renderer");
_.e3(n,{visibilityCallback:function(b){b&&Y()&&_.zl(Y())},
showOption:{calledOnce:!0,state:"visible"}});_.lk(function(){_.lP(function(){P()&&x()&&_.HW().dispatch(_.Uy("qrCodeEntity",x()))})});
return _.U("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:n},_.U(_.m,{cond:k,then:function(){return _.U(_.m,{cond:g,then:function(b){return _.U(Fb5,{data:b})}})}}),_.U(_.m,{cond:B,
then:function(b){return _.U(_.D9,{data:b,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.rk}});_.v_S=_.rM(function(B){var c=B.data;var x=B.topbarOffset;var P,Y=((P=_.cp().resolve(_.Bp(_.fL)))==null?void 0:P())||!1;return _.U("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=c();var k,n,b=Y?(k=g.config)==null?void 0:k.darkThemeBackgroundColor:(n=g.config)==null?void 0:n.lightThemeBackgroundColor;g=b?_.zF(b):void 0;g="background-color: "+g+";";x!==void 0&&(g+="top: -"+x()+"px;");return g},
"aria-hidden":!0},_.U(_.m,{cond:function(){var g,k,n;return!!((g=c().backgroundImageConfig)==null?0:(k=g.image)==null?0:(n=k.sources)==null?0:n.length)},
then:function(){return _.U(_.D9,{data:function(){var g;return(g=c().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.U("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+oh7(Y,c().gradientColorConfig)+";"}}))},"fd");
_.v_S.idomCompat=!0;var Oz=_.rM(function(B){var c=B.className;var x=B.data;var P=B.isOverlay;var Y=B.maxLinesOverride;var g=B.useMediumText;B=_.Ho("yt-description-preview-view-model");var k=function(){return x().alwaysShowTruncationText},n=function(){return x().truncationText},b=function(){return g!==void 0&&g()?"medium":"small"},d=function(){return P!==void 0&&P()?"overlay":"default"},q=function(){var l,E;
return(E=(l=_.t(x().rendererContext,_.T3))==null?void 0:l.label)!=null?E:""},C=_.p(_.$D(!1,void 0,"mkuWzb")),h=C.next().value,V=C.next().value;
_.Hv(B,function(){return x().rendererContext});
C=_.qe(function(){x().expandOnTap&&V(!h());return!1});
var N={};return _.U("yt-description-preview-view-model",{el:B,class:_.Kw("yt-description-preview-view-model-wiz",c,(N["yt-description-preview-view-model-wiz--clickable"]=function(){var l;return!((l=_.t(x().rendererContext,$KI))==null||!l.onTap)},N["yt-description-preview-view-model-wiz--is-overlay"]=P,N)),
"on:click":C},_.U(_.m,{cond:function(){return x().description},
then:function(l){return _.U(_.m,{cond:h,then:function(){var E={};return _.U("div",{class:_.Kw("yt-description-preview-view-model-wiz__description",(E["yt-description-preview-view-model-wiz__description--medium-text"]=g,E))},_.U(_.RF,{text:l}))},
else:function(){return _.U(gLy,{text:l,alwaysShowTruncationText:k,truncationText:n,maxLines:function(){var E;return(E=Y==null?void 0:Y())!=null?E:x().maxLines},
textStyle:d,accessibilityLabel:q,textSize:b})}})}}))},"gd");
Oz.idomCompat=!0;var zut=_.rM(function(B){var c=B.data;var x=B.isOverlay;return _.U("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.U("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.U(_.IF,{data:function(){return c().header}},{sectionHeaderViewModel:function(P){return _.U(_.g1,{data:P.data,
isOverlay:x})}})),_.U("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.U(_.IF,{data:function(){return c().channelInfoButtons}},{flexibleActionsViewModel:IN})),_.U("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.U(_.IF,{data:function(){return c().description}},{descriptionPreviewViewModel:function(P){return _.U(Oz,{data:P.data,
isOverlay:x})}})))},"hd");
zut.idomCompat=!0;var S_y=_.rM(function(B){var c=B.data;var x={};return _.U("factoid-view-model",{class:_.Kw("ytwFactoidViewModelHost",(x.ytwFactoidViewModelHostOverlay=B.isOverlay,x))},_.U(_.RF,{text:function(){return c().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.U(_.RF,{text:function(){return c().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
S_y.idomCompat=!0;var yFy=_.rM(function(B){var c=B.data;var x=B.isOverlay;return _.U("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.U(_.IF,{data:function(){return c().factoids}},{factoidViewModel:function(P){return _.U(S_y,{data:P.data,
isOverlay:x})}}))},"jd");
yFy.idomCompat=!0;_.Gbn=_.rM(function(B){var c=B.data;var x=B.isOverlay;return _.U("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.U(_.IF,{data:function(){return c().items}},{channelInfoViewModel:function(P){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(zut,{data:P.data,
isOverlay:x}))},
coursePerksViewModel:function(P){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(TF9,{data:P.data,isOverlay:x}))},
descriptionPreviewViewModel:function(P){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(Oz,{data:P.data,isOverlay:x}))},
factoidsRowViewModel:function(P){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(yFy,{data:P.data,isOverlay:x}))},
progressViewModel:function(P){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(VCF,{data:P.data,isOverlay:x}))}}))},"kd");var MC5=_.rM(function(B){return _.U("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.U(_.IF,{data:function(){return B.data().content}},{courseMetadataViewModel:function(c){return _.U(_.Gbn,{data:c.data,
isOverlay:B.isOverlay})},
progressViewModel:function(c){return _.U(VCF,{data:c.data})}}))},"ld");var Lb3=_.rM(function(B){var c=B.data;B=B.className;var x=_.Ho("yt-dynamic-text-view-model"),P=function(){var g;return _.Z_((g=c())==null?void 0:g.rendererContext)},Y={};
Y=(Y["dynamic-text-view-model-wiz"]=!0,Y["dynamic-text-view-model-wiz--tappable"]=function(){return P()},Y);
_.Hv(x,function(){var g;return(g=c())==null?void 0:g.rendererContext});
return _.U("yt-dynamic-text-view-model",{el:x,role:function(){return P()?"link":void 0},
tabindex:function(){return P()?0:void 0},
class:_.Kw(B,Y)},_.U("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var g,k,n;return(n=(k=_.t((g=c())==null?void 0:g.rendererContext,_.T3))==null?void 0:k.label)!=null?n:""}},_.U(_.RF,{text:function(){return c().text},
userInput:!0})))},"md");
Lb3.idomCompat=!0;_.ZIy=_.rM(function(B){var c=B.data;var x=B.isPositionRelative;var P=_.fE("yt-image-banner-view-model"),Y=_.FZA("(max-width: 527.9px)"),g=function(){var k,n;return(n=(k=c())==null?void 0:k.style)!=null?n:"IMAGE_BANNER_STYLE_FULL_BLEED"};
B={};B=(B["yt-image-banner-view-model-wiz"]=!0,B["yt-image-banner-view-model-wiz--inset"]=function(){return vh7(g())},B["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Ox(!0)&&!(x==null?0:x())},B["yt-image-banner-view-model-wiz--small-inset"]=function(){return vh7(g())&&Y()},B["yt-image-banner-view-model-wiz--tappable"]=function(){var k;
return _.Ox(P.value)&&_.Z_((k=c())==null?void 0:k.rendererContext)},B);
_.Hv(P,function(){var k;return(k=c())==null?void 0:k.rendererContext});
return _.U("yt-image-banner-view-model",{el:P,class:_.Kw(B)},_.U(_.m,{cond:function(){var k;return(k=c())==null?void 0:k.image},
then:function(){return _.U(_.D9,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.U(_.IF,{data:function(){var k;
return(k=c())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:NB}))},"nd");
_.ZIy.idomCompat=!0;var HIm;HIm=_.rM(function(B){var c=B.condition;var x=B.content;return _.U(_.m,{cond:c,then:function(){return _.U("div",{class:"page-header-view-model-wiz__scroll-container"},x())},
else:function(){return x()}})},"od");
_.fQd=_.rM(function(B){var c=B.data;var x=B.noPadding;var P=B.enableBanner;var Y=B.cinematicContainerTopbarOffset;var g=B.allowCinematicContainerOverflow;var k=B.displayAsSidebar;var n=B.displayAsPanel;var b=zod(),d=function(){return!!c().image||!!c().animatedImage},q=function(){return!!c().background},C=function(){return(k==null?0:k())||(n==null?0:n())?1:b()},h=function(){return C()===1},V=function(){return h()||C()===2},N=function(){return C()===4},l=function(){var W$=c();
var El=!!c().heroImage;var H$=C(),yw=S8Y(c()),r9=k==null?void 0:k(),cs=!W$.metadata,NQ;if(NQ=El?_.t(W$.heroImage,KQF):_.t(W$.animatedImage||W$.image,KQF)){W$=NQ.style;var n4=NQ.layoutMode;if(n4!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(NQ=qeY(dLo(NQ)),El)El=QKX(H$,W$,n4,NQ,r9);else b:if(cs)El=H$===1?{size:48}:{size:72};else switch(H$){case 1:El={size:72};break b;case 2:El={size:120};break b;default:El=yw<4?{size:120}:{size:160}}else El=void 0}else El={size:0};return El};
B={};B=_.Kw((B["page-header-view-model-wiz"]=!0,B["page-header-view-model-wiz--no-padding"]=function(){return!(x==null||!x())},B["page-header-view-model-wiz--small-top-padding"]=function(){return h()&&!c().actions&&!(n==null?0:n())||C()===2&&!(d()||c().heroImage)},B["page-header-view-model-wiz--small-bottom-padding"]=function(){return V()&&!c().actions&&!(n==null?0:n())},B["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(g==null?0:g())},B["page-header-view-model-wiz--display-as-sidebar"]=
k,B));
var E={},S=_.Kw((E["page-header-view-model-wiz__page-header-headline"]=!0,E["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var W$;return(W$=l())==null?void 0:W$.allowFullWidth},E)),M=function(){var W$;
return V()&&!((W$=l())==null?0:W$.allowFullWidth)},f=function(){return h()&&(!!c().heroImage||d())&&S8Y(c())>0},Z=function(){return f()&&(n==null?void 0:n())};
E={};var u=_.Kw((E["page-header-view-model-wiz__page-header-title"]=!0,E["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!f()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return f()&&!Z()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=Z,E["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=q,E));
E={};var e=_.Kw((E["page-header-view-model-wiz__page-header-headline-image"]=!0,E["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!c().heroImage&&V()},E));
E={};var px=_.Kw((E["page-header-view-model-wiz__page-header-banner-container"]=P,E["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var W$;return(P==null?void 0:P())&&((W$=_.t(c().banner,_.UV0))==null?void 0:W$.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},E));
E={};var kI=_.Kw((E["page-header-view-model-wiz__page-header-content-metadata"]=!0,E["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=q,E));E={};var Ul=_.Kw((E["page-header-view-model-wiz__page-header-flexible-actions"]=!0,E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!c().metadata||V()},E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!V()},E));
E={};var wC=_.Kw((E["page-header-view-model-wiz__page-header-attribution"]=!0,E["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=q,E));return _.U("yt-page-header-view-model",{class:B},_.U(_.m,{cond:q,then:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-background"},_.U(_.IF,{data:function(){return c().background}},{cinematicContainerViewModel:function(W$){return _.U(_.v_S,{data:W$.data,
topbarOffset:Y})}}))}}),_.U(HIm,{condition:function(){return!(k==null||!k())},
content:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-content"},_.U(_.m,{cond:function(){return(P==null?void 0:P())&&c().banner},
then:function(){return _.U("div",{class:px},_.U(_.IF,{data:function(){return c().banner}},{imageBannerViewModel:_.ZIy}))}}),_.U("div",{class:S},_.U(_.m,{cond:d,
then:function(){return _.U(_.IF,{data:function(){var W$;if(!(W$=c().animatedImage)){W$=c();if(d()){var El=W$=Object.assign({},W$),H$=C(),yw=S8Y(c()),r9=El.image,cs=_.t(r9,jAm),NQ=cs==null?void 0:cs.avatar,n4=_.t(NQ,_.f3);if(r9&&NQ&&n4){switch(H$){case 1:n4.avatarImageSize="AVATAR_SIZE_XL";break;case 2:n4.avatarImageSize="AVATAR_SIZE_XXL";break;default:yw<4?n4.avatarImageSize="AVATAR_SIZE_XXL":n4.avatarImageSize="AVATAR_SIZE_XXXL"}_.T("web_enable_sink_page_header_view_model")&&(_.EL(NQ,_.f3,Object.assign({},
n4)),cs.avatar=Object.assign({},NQ),_.EL(r9,jAm,Object.assign({},cs)),El.image=Object.assign({},r9))}}W$=W$.image}return W$}},{contentPreviewImageViewModel:function(W$){return _.U(_.cz,{data:W$.data,
className:e,imageSizeConfig:l})},
decoratedAvatarViewModel:function(W$){return _.U(_.Jf,{data:W$.data,className:e})}})}}),_.U(_.m,{cond:function(){return!!c().heroImage&&!M()},
then:function(){return _.U(_.IF,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(W$){return _.U(_.cz,{data:W$.data,
className:e,imageSizeConfig:l})}})}}),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.m,{cond:function(){return!!c().heroImage&&M()},
then:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.U(_.IF,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(W$){return _.U(_.cz,{data:W$.data,
className:e,imageSizeConfig:l})}}))}}),_.U(_.IF,{data:function(){return c().title}},{dynamicTextViewModel:function(W$){return _.U(Lb3,{data:W$.data,
className:u})}}),_.U(_.IF,{data:function(){return c().metadata}},{contentMetadataViewModel:function(W$){return _.U(_.ubn,{data:W$.data,
layout:function(){return h()?1:0},
className:kI,isOverlay:q,useMediumText:N})}}),_.U(_.m,{cond:function(){return c().description&&!h()},
then:function(){return _.U(_.IF,{data:function(){return c().description}},{descriptionPreviewViewModel:function(W$){return _.U(Oz,{data:W$.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:q,maxLinesOverride:function(){return h()?void 0:1},
useMediumText:N})}})}}),_.U(_.m,{cond:function(){return c().attribution&&!V()},
then:function(){return _.U(_.IF,{data:function(){return c().attribution}},{attributionViewModel:function(W$){return _.U(MGm,{data:W$.data,
className:wC,useMediumText:N})}})}}),_.U(_.m,{cond:function(){return c().actions&&!V()},
then:function(){return _.U(_.IF,{data:function(){return c().actions}},{flexibleActionsViewModel:function(W$){return _.U(IN,{data:W$.data,
layout:function(){return ykC(C())},
className:Ul})}})}}))),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.m,{cond:function(){return c().description&&h()},
then:function(){return _.U(_.IF,{data:function(){return c().description}},{descriptionPreviewViewModel:function(W$){return _.U(Oz,{data:W$.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:q,maxLinesOverride:function(){return h()?void 0:1},
useMediumText:N})}})}}),_.U(_.m,{cond:function(){return c().attribution&&V()},
then:function(){return _.U(_.IF,{data:function(){return c().attribution}},{attributionViewModel:function(W$){return _.U(MGm,{data:W$.data,
className:wC,useMediumText:N})}})}}),_.U(_.m,{cond:function(){return c().actions&&V()},
then:function(){return _.U(_.IF,{data:function(){return c().actions}},{flexibleActionsViewModel:function(W$){return _.U(IN,{data:W$.data,
layout:function(){return ykC(C())},
className:Ul})}})}})),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.IF,{data:function(){return c().bottomMetadataFlexibleContainer}},{flexibleContainer:function(W$){return _.U(MC5,{data:W$.data,
isOverlay:q})}})))}}))},"pd");
_.fQd.idomCompat=!0;_.xU(_.rM(function(B){var c=_.p(_.$D(!1,void 0,"j5qbkc")),x=c.next().value,P=c.next().value;return _.U("yt-official-card-view-model",{class:_.Kw("ytOfficialCardViewModelHost",B.className),style:_.TU({"background-color":function(){var Y,g=Z57((Y=B.data())==null?void 0:Y.backgroundColor);return g?_.SF(g):void 0}})},_.U(_.IF,{data:function(){return B.data().header}},{pageHeaderViewModel:function(Y){return _.U(_.fQd,{data:Y.data,
noPadding:!0})}}),_.U(_.IF,{data:function(){return B.data().contents}},{horizontalShelfViewModel:function(Y){return _.U(_.Ez,{data:Y.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.U(_.m,{cond:x,
then:function(){return _.U("div",{class:"ytOfficialCardViewModelExpandedContent"},_.U(_.IF,{data:function(){return B.data().expandedContents}},{horizontalShelfViewModel:function(Y){return _.U(_.Ez,{data:Y.data,
sizing:"MINI"})}}),_.U("div",{class:"ytOfficialCardViewModelCollapseButton"},_.U(_.IF,{data:function(){return B.data().collapseButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
onClick:function(){P(!x())}})}})))},
else:function(){return _.U("div",{class:"ytOfficialCardViewModelExpandButton"},_.U(_.IF,{data:function(){return B.data().expandButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
onClick:function(){P(!x())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.rk,
className:_.rk}});var Gsd=_.mp({buttonViewModel:_.Q7});_.BX(MH$);_.XB(MH$,"ytw-search-friction-view-model",{propNames:["data"]});_.oh=_.rM(function(B){var c=_.Ho("markdown-div"),x,P=(x=_.cp().resolve(_.Bp(_.fL)))==null?void 0:x();_.IO(function(){var Y=c.value;var g=new IAd,k=new Map(g.JSC$7347_sanitizerTable.globalAttributePolicies);k.set("style",{policyAction:4});g.JSC$7347_sanitizerTable=new mv(g.JSC$7347_sanitizerTable.allowedElements,g.JSC$7347_sanitizerTable.elementPolicies,g.JSC$7347_sanitizerTable.allowedGlobalAttributes,k,g.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes);var n=["data-time"];if(n===void 0)k=
new Set(g.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes),k.add("data-"),g.JSC$7347_sanitizerTable=new mv(g.JSC$7347_sanitizerTable.allowedElements,g.JSC$7347_sanitizerTable.elementPolicies,g.JSC$7347_sanitizerTable.allowedGlobalAttributes,g.JSC$7347_sanitizerTable.globalAttributePolicies,k);else{k=new Set(g.JSC$7347_sanitizerTable.allowedGlobalAttributes);n=_.p(n);for(var b=n.next();!b.done;b=n.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ra`"+b);k.add(b)}g.JSC$7347_sanitizerTable=
new mv(g.JSC$7347_sanitizerTable.allowedElements,g.JSC$7347_sanitizerTable.elementPolicies,k,g.JSC$7347_sanitizerTable.globalAttributePolicies,g.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes)}k=new Set(g.JSC$7347_sanitizerTable.allowedGlobalAttributes);k.add("class");g.JSC$7347_sanitizerTable=new mv(g.JSC$7347_sanitizerTable.allowedElements,g.JSC$7347_sanitizerTable.elementPolicies,k,g.JSC$7347_sanitizerTable.globalAttributePolicies,g.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes);
_.L6(Y,_.TC9(g.build(),Zel(B.text())));Hed(c.value)},"FI2gYe");
x={};return _.U("div",null,_.U("markdown-div",{class:_.Kw("ytwMarkdownDivHost",(x.ytwMarkdownDivDark=P,x.ytwMarkdownDivHostSmall=function(){var Y;return((Y=B.isSmallText)==null?void 0:Y.call(B))||!1},x)),
el:c}))},"rd");
_.oh.idomCompat=!0;var iI4=_.rM(function(B){var c=B.imageData;var x=_.A9(B.isInList,!1),P=function(){return x()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.U("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.U(_.m,{cond:function(){return c().image},
then:function(Y){return _.U(_.D9,{data:Y,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}})}}),_.U("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.U("div",{class:_.Kw("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.U(_.RF,{text:function(){return c().title}})),_.U(_.mV,{each:function(){var Y;
return(Y=c().description)!=null?Y:[]}},function(Y){return _.U("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.U(Q3,{content:Y}))})))},"sd"),AFy=_.rM(function(B){var c=B.list;
var x=function(){var P;return(P=c().items)!=null?P:[]};
return _.U("div",{class:"ytwGenAiRichTextViewModelListContent"},_.U(_.m,{cond:function(){return c().title},
then:function(P){return _.U("div",{class:_.Kw("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.U(_.RF,{text:P}))}}),_.U(_.m,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.U("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.U(_.mV,{each:x},function(P){return _.U("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.U(Q3,{content:P,isInList:!0}))}))}}),_.U(_.m,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.U("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.U(_.mV,{each:x},function(P){return _.U("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.U(Q3,{content:P,isInList:!0}))}))}}),_.U(_.m,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.U("div",{class:"ytwGenAiRichTextViewModelImageList"},_.U(_.mV,{each:x},function(P){return _.U("div",{class:"ytwGenAiRichTextViewModelListItem"},_.U(Q3,{content:P,isInList:!0}))}))}}))},"td"),uJ9=_.rM(function(B){var c=B.table;
return _.U("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.U("thead",null,_.U("tr",null,_.U(_.mV,{each:function(){var x,P;return(P=(x=c().header)==null?void 0:x.cells)!=null?P:[]}},function(x){return _.U("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.U(_.mV,{each:function(){return x.contents}},function(P){return _.U(Q3,{content:P})}))}))),_.U("tbody",null,_.U(_.mV,{each:function(){var x;
return(x=c().rows)!=null?x:[]}},function(x){return _.U("tr",null,_.U(_.mV,{each:function(){return x.cells}},function(P){return _.U("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.U(_.mV,{each:function(){return P.contents}},function(Y){return _.U(Q3,{content:Y})}))}))})))},"ud"),Q3=_.rM(function(B){var c=B.content;
var x=_.A9(B.isInList,!1),P=function(){var Y,g;return(g=(Y=c().contentBlock)==null?void 0:Y.contents)!=null?g:[]};
return _.U("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.U(_.m,{cond:function(){return c().text},
then:function(Y){return _.U(_.RF,{className:"ytwGenAiRichTextViewModelText",text:Y})}}),_.U(_.m,{cond:function(){return c().image},
then:function(Y){return _.U(iI4,{imageData:Y,isInList:x})}}),_.U(_.m,{cond:function(){return c().list},
then:function(Y){return _.U(AFy,{list:Y})}}),_.U(_.m,{cond:function(){return c().contentBlock},
then:function(){return _.U("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.U(_.mV,{each:P},function(Y){return _.U(Q3,{content:Y,isInList:!1})}))}}),_.U(_.m,{cond:function(){return c().table},
then:function(Y){return _.U(uJ9,{table:Y})}}))},"vd"),DEt=_.rM(function(B){var c={};
c=_.U9("ytwGenAiRichTextViewModelHost",(c.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.aH("search_overview_link_style")),c));return _.U("gen-ai-rich-text-view-model",{class:c},_.U(Q3,{content:function(){return B.data().content}}))},"wd");_.BX(fJd);_.BX(y0);_.rF4=_.rM(function(B){var c=B.data;var x=function(){var l;return((l=c().loadingUi)!=null?l:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},P=function(){return c().isLoading&&(x()==="UNSPECIFIED"||x()==="GHOST_CARD")},Y=function(){return!c().isLoading},g=function(){return!!c().content&&!c().contents},k=function(){return!!c().contents},n=function(){return!!c().nextQueryButtons},b=function(){return c().isLoading&&x()==="INVISIBLE"},d=function(){var l,E;
return(E=(l=c().headerIcon)==null?void 0:l.iconType)!=null?E:""},q=function(){var l;
return(l=c().content)!=null?l:""},C=function(){return!!c().sourcesSection},h,V=!((h=_.cp().resolve(_.Bp(_.fL)))==null||!h()),N=_.db(function(){var l=[],E=c().contents;
if(E)for(var S=0;S<E.length;S++){var M=_.t(E&&E[S],VEF);M&&l.push(M)}return l},void 0,"ycU97e");
_.lk(function(){c().isLoading||_.Op("so_re",void 0,"search_overview_answer")});
return _.U("ytd-overview-answer-view-model",{class:function(){var l={};l=(l.ytdOverviewAnswerViewModelHost=!0,l.ytdOverviewAnswerViewModelDarkBackground=V&&!b(),l.ytdOverviewAnswerViewModelLightBackground=!V&&!b(),l);return _.U9(l)}},_.U(_.m,{cond:function(){return!b()},
then:function(){return _.U(_.at,null,_.U("h2",null,_.U("div",{class:"ytdOverviewAnswerViewModelHeader"},_.U(_.m,{cond:d,then:function(l){return _.U("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.U(_.Vf,{icon:l}))}}),_.U("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.U("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return c().headerText}),_.U("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.U(_.RF,{text:function(){return c().headerSubtext}}))))),_.U(_.m,{cond:P,
then:function(){return fJd()}}),_.U(_.m,{cond:Y,
then:function(){return _.U(_.at,null,_.U(_.m,{cond:g,then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelText"},_.U(_.oh,{text:q,isSmallText:!0}))}}),_.U(_.m,{cond:k,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelRichText"},_.U(_.mV,{each:N},function(l){return _.U(DEt,{data:l})}))}}),_.U(_.m,{cond:n,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.U(_.IF,{data:function(){return c().nextQueryButtons}},{buttonViewModel:function(l){return _.U(_.Q7,{data:l.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Ez}))}}),_.U("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.U("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.U(_.m,{cond:function(){return!!_.t(c().likeButtonViewModel,_.lR)&&!!_.t(c().dislikeButtonViewModel,_.Ey)},
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.U(_.WC,{data:function(){return _.t(c().likeButtonViewModel,_.lR)},
disableIconAnimation:!0}),_.U(_.J7,{data:function(){return _.t(c().dislikeButtonViewModel,_.Ey)}}))}})),_.U(_.m,{cond:function(){var l;
return(l=c().sourcesSection)==null?void 0:l.headerText},
then:function(l){return _.U("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.U(_.RF,{text:l}))}})),_.U(_.m,{cond:C,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelSources"},_.U(_.IF,{data:function(){var l;return(l=c().sourcesSection)==null?void 0:l.sourcesShelf}},{buttonViewModel:_.Q7,
horizontalShelfViewModel:function(l){return _.U(_.Ez,{data:l.data,includeMargin:!0,hasPeek:!0})}}))}}),_.U(_.m,{cond:function(){return c().disclaimerText},
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.U(_.RF,{text:function(){return c().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var Ru4=_.rM(function(B){var c=B.data;var x=B.active;var P=_.Ho("transcript-segment-view-model");_.IO(function(){var Y,g,k,n=((Y=_.cp().resolve(_.Bp(_.fL)))==null?0:Y())?(g=c())==null?void 0:g.darkThemeColorPalette:(k=c())==null?void 0:k.lightThemeColorPalette;n&&(n.additiveBackground&&P.value.style.setProperty("--timestamp-active-background-color",_.SF(n.additiveBackground)),n.textSecondary&&P.value.style.setProperty("--timestamp-active-color",_.zF(n.textSecondary)))},"KHcbwb");
B={};return _.U("transcript-segment-view-model",{class:_.Kw("ytwTranscriptSegmentViewModelHost",(B.ytwTranscriptSegmentViewModelHostActive=x,B.ytwTranscriptSegmentViewModelHostModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),B)),el:P},_.U(_.m,{cond:function(){var Y;return(Y=c())==null?void 0:Y.timestamp},
then:function(Y){var g={};return _.U("div",{class:_.Kw("ytwTranscriptSegmentViewModelTimestamp",(g.ytwTranscriptSegmentViewModelTimestampActive=x,g))},Y)}}),_.U(_.RF,{text:function(){var Y,g,k;
return(k=(Y=c())==null?void 0:Y.attributedText)!=null?k:{content:(g=c())==null?void 0:g.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var euF=_.rM(function(B){var c=B.data;return _.U("div",{class:"yt-video-attributes-section-view-model__header"},_.U("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return c().headerTitle}),_.U(_.m,{cond:function(){return c().headerSubtitle},
then:function(){return _.U("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return c().headerSubtitle})}}))},"zd"),Bhd=_.rM(function(B){function c(l){return Math.max(Math.min(l,0),d()-n())}
var x=B.data;var P,Y=_.Ho("div",function(l){if(_.T("web_metadata_carousel_elref_bugfix")){var E=function(){q(l.clientWidth)};
E();window.ResizeObserver&&(P=new ResizeObserver(E),P.observe(l))}}),g=_.Ho("div",function(l){b(l.scrollWidth)}),k=_.p(_.$D(0,void 0,"I9GbH"));
B=k.next().value;k=k.next().value;var n=B,b=k;k=_.p(_.$D(0,void 0,"eQAn5b"));B=k.next().value;k=k.next().value;var d=B,q=k;B=_.p(_.$D(0,void 0,"VU3lg"));var C=B.next().value,h=B.next().value;_.lk(function(){if(!_.T("web_metadata_carousel_elref_bugfix")){var l=function(){b(g.value.scrollWidth);q(Y.value.clientWidth)};
l();if(window.ResizeObserver){var E=new ResizeObserver(l);E.observe(Y.value);_.lP(function(){E.disconnect()})}}});
_.lP(function(){if(_.T("web_metadata_carousel_elref_bugfix")){var l;(l=P)==null||l.disconnect()}});
var V=function(){h(c(C()+d()))},N=function(){h(c(C()-d()))};
return _.U("yt-video-attributes-section-view-model",null,_.U("div",{class:"yt-video-attributes-section-view-model"},_.U(_.m,{cond:function(){return x().headerTitle},
then:function(){return _.U(euF,{data:x})}}),_.U("div",{class:_.Kw("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:Y},_.U("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.TU({transform:function(){var l=C();_.v5("HTML_DIR")==="rtl"&&(l*=-1);return"translateX("+l+"px)"}}),
el:g},_.U(_.IF,{data:function(){return x().videoAttributeViewModels}},{videoAttributeViewModel:slF}))),_.U(_.IF,{data:function(){return x().footerButton}},{buttonViewModel:function(l){return _.U(_.Q7,{data:l.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.U(_.m,{cond:function(){return C()<0&&x().previousButton},
then:function(){return _.U("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.U(_.IF,{data:function(){return x().previousButton}},{buttonViewModel:function(l){return _.U(_.Q7,{data:l.data,
onClick:V})}}))}}),_.U(_.m,{cond:function(){return C()>d()-n()&&x().nextButton},
then:function(){return _.U("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.U(_.IF,{data:function(){return x().nextButton}},{buttonViewModel:function(l){return _.U(_.Q7,{data:l.data,
onClick:N})}}))}})))},"Ad");
Bhd.idomCompat=!0;var cYQ=_.rM(function(B){var c=B.data;var x=B.active;var P={},Y={};return _.U("timeline-item-view-model",{class:_.Kw("ytwTimelineItemViewModelHost",(P.ytwTimelineItemViewModelHostChapterChild=B.chapterChild,P.ytwTimelineItemViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),P))},_.U("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.U("div",{class:_.Kw("ytwTimelineItemViewModelTimestamp",(Y.ytwTimelineItemViewModelTimestampActive=
x,Y))},function(){return c().timestamp})),_.U("div",{class:"ytwTimelineItemViewModelContentItems"},_.U(_.IF,{data:function(){return c().contentItems}},{transcriptSegmentViewModel:function(g){return _.U(Ru4,{data:g.data,
active:x})},
videoAttributesSectionViewModel:Bhd})))},"Bd");var xxW=_.rM(function(B){var c=B.data;B={};return _.U("timeline-chapter-view-model",{class:_.Kw("ytwTimelineChapterViewModelHost")},_.U("div",{class:_.Kw("ytwTimelineChapterViewModelTitle",(B.ytwTimelineChapterViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),B))},function(){return c().title}),_.U(_.IF,{data:function(){return c().contents}},{timelineItemViewModel:function(x){return _.U(cYQ,{data:x.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(x){return _.U(Bhd,{data:x.data})}}))},"Cd");var PnS=_.rM(function(B){var c=B.data;var x=_.Ho("macro-markers-panel-item-view-model"),P=_.jA(_.K3d,function(){var g;return(g=c().markersEngagementPanelSyncEntityKey)!=null?g:""}),Y=function(){var g;
return((g=P())==null?void 0:g.activeItemIndex)===c().index};
B=_.qe(function(g){var k,n,b,d,q;return _.X(function(C){if(C.nextAddress==1)return g.stopPropagation(),_.Mv(_.Gj(g),x.value,["A".toString(),"BUTTON".toString()])?C.return():(k=_.vH(c().onTap))?_.K(C,_.p3(),2):C.return();n=C.yieldResult;d=(b=_.t(k,_.fN))==null?void 0:b.startTimeSeconds;d===void 0||(q=n)!=null&&q.seekTo(d,!0);_.Kq(C)})});
return _.U("macro-markers-panel-item-view-model",{class:_.Kw("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Y}),el:x,"on:click":B,tabindex:0},_.U(_.IF,{data:function(){var g;return(g=c())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.U(xxW,{data:g.data,
active:Y})},
timelineItemViewModel:function(g){return _.U(cYQ,{data:g.data,active:Y})},
videoAttributeViewModel:slF}))},"Dd");
PnS.idomCompat=!0;_.xU(PnS,"macro-markers-panel-item-view-model",{props:{data:_.rk}});_.xU(Bhd,"yt-video-attributes-section-view-model",{props:{data:_.rk}});var Yud=_.rM(function(B){var c=function(){var x,P,Y;return(Y=(x=B.data().leadingLogoAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?Y:""};
return _.U("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.U(_.m,{cond:function(){return B.data().leadingLogo},
then:function(x){return _.U(_.D9,{className:"ytwFantasySectionHeaderViewModelLogo",data:x,alt:c})}}),_.U("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.U(_.RF,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return B.data().title}}),_.U(_.RF,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return B.data().subtitle}})),_.U(_.IF,{data:function(){return B.data().trailingButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var aNy=_.rM(function(B){var c={};c=_.Kw("ytwFantasyTeamViewModelHost",(c.ytwFantasyTeamViewModelCompact=function(){var Y;return!((Y=B.compact)==null||!Y.call(B))},c.ytwFantasyTeamViewModelUser=function(){return B.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},c.ytwFantasyTeamViewModelOpponent=function(){return B.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},c));
var x=function(){var Y,g,k;return(k=(Y=B.data().teamLogoAccessibility)==null?void 0:(g=Y.accessibilityData)==null?void 0:g.label)!=null?k:""},P=_.jA(UWO,function(){return B.data().teamEntityKey});
return _.U("ytw-fantasy-team-view-model",{class:c},_.U(_.m,{cond:function(){return B.data().teamLogo},
then:function(Y){return _.U(_.D9,{className:"ytwFantasyTeamViewModelLogo",data:Y,alt:x})}}),_.U("div",{class:"ytwFantasyTeamViewModelMetadata"},_.U("div",{class:"ytwFantasyTeamViewModelHeader"},_.U(_.RF,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Y;return(Y=P())==null?void 0:Y.score}}),_.U(_.Vf,{icon:function(){var Y;
return(Y=P())==null?void 0:Y.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.U(_.RF,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Y;return(Y=P())==null?void 0:Y.projectedScore}})),_.U(_.RF,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return B.data().primaryText}}),_.U(_.RF,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return B.data().secondaryText}}),_.U(_.RF,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return B.data().tertiaryText}})),_.U(_.RF,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Y;return(Y=P())==null?void 0:Y.score}}))},"Fd");_.xU(_.rM(function(B){return _.U("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.U("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.U(_.IF,{data:function(){return B.data().summaryHeader}},{fantasySectionHeaderViewModel:Yud})),_.U(_.IF,{data:function(){return B.data().userTeam}},{fantasyTeamViewModel:aNy}),_.U(_.IF,{data:function(){return B.data().opponentTeam}},{fantasyTeamViewModel:aNy}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.rk}});var gny=_.rM(function(B){var c=_.uF(B,{shape:{},useCustomTabRenderable:!1}),x=c.shape;c=c.useCustomTabRenderable;var P=B.customTabRenderable,Y=function(){return x().disabled},g=function(){return x().selected},k=function(){return x().title},n=function(){return x().icon},b=_.Ho("yt-tab-shape");
B=_.qe(function(C){var h;if(!Y()&&((h=x().aTagConfig)==null?0:h.onclick))x().aTagConfig.onclick(C);return!1});
var d=_.qe(function(C){if(C.key==="Enter"||C.key==="ArrowUp"||C.key==="ArrowDown")C.preventDefault(),b.value.click();return!1}),q={};
return _.U("yt-tab-shape",{class:_.Kw("yt-tab-shape-wiz",function(){return x().className},(q["yt-tab-shape-wiz__tab--last-tab"]=function(){return x().isLastTab},q["yt-tab-shape-wiz--host-disabled"]=Y,q["yt-tab-shape-wiz--host-clickable"]=!P,q)),
role:P?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":Y,tabindex:P?void 0:0,"on:click":B,"on:keydown":d,el:b,"tab-identifier":function(){return x().identifier},
"tab-title":k},_.U(_.m,{cond:c,then:function(){return P()},
else:function(){var C={},h={};return _.U(_.at,null,_.U("div",{class:_.Kw("yt-tab-shape-wiz__tab",(C["yt-tab-shape-wiz__tab--tab-selected"]=g,C))},_.U(_.m,{cond:n,then:function(V){return _.U(_.Vf,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return V().iconType}})}}),k),_.U("div",{class:_.Kw("yt-tab-shape-wiz__tab-bar",(h["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=g,h))}))}}))},"Hd");
gny.idomCompat={callbacks:{customTabRenderable:!0}};_.pnt=_.rM(function(B){var c=B.shape;B=_.p(_.$D(48,void 0,"r9IBlb"));var x=B.next().value,P=B.next().value;B=_.p(_.$D(0,void 0,"Bd7rmd"));var Y=B.next().value,g=B.next().value,k=function(){return c().tabs},n=_.Ho("yt-tab-group-shape"),b=function(){var d,q;
return(q=(d=k())==null?void 0:d.findIndex(function(C){return C.selected}))!=null?q:-1};
_.lk(function(){var d=n.value.querySelectorAll("yt-tab-shape"),q=b()>-1?d[b()]:void 0;_.EE.addJob(function(){P((q==null?void 0:q.getBoundingClientRect().width)||0)},8,0)});
_.IO(function(){var d=b(),q=_.EE.addJob(function(){var C,h=((C=n.value)==null?void 0:C.querySelectorAll("yt-tab-shape"))||[],V;P(((V=d>-1?h[d]:void 0)==null?void 0:V.getBoundingClientRect().width)||0);for(V=C=0;V<d;V++)C+=h[V].offsetWidth+24;_.v5("HTML_DIR")==="rtl"&&(C=-C);g(C)},8,0);
_.lP(function(){_.EE.cancelJob(q)})},"EHixkc");
B={};return _.U("yt-tab-group-shape",{class:_.Kw("yt-tab-group-shape-wiz",(B["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return c().isOverflowHidden},B)),
el:n},_.U(_.m,{cond:k,then:function(d){return _.U(_.at,null,_.U("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.U(_.mV,{each:d},function(q,C){return _.U(gny,{shape:function(){return Object.assign({},q,{isLastTab:C()===d().length-1})},
customTabRenderable:q.customTabRenderable,useCustomTabRenderable:!!q.customTabRenderable})})),_.U(sVy,{width:x,
sliderOffset:Y}))}}))},"Id");
_.pnt.idomCompat=!0;var sVy=_.rM(function(B){var c=_.A9(B.sliderOffset,0),x=B.width;return _.U("div",{class:"yt-tab-group-shape-wiz__slider",style:_.TU({width:function(){return x()+"px"},
transform:function(){return"translateX("+c()+"px)"}})})},"Jd");var kyZ=_.rM(function(B){var c=function(){var g,k,n;return(n=(g=B.data().playerLogoAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)!=null?n:""},x=_.jA(dWQ,function(){return B.data().playerEntityKey}),P={};
P=_.Kw("ytwFantasyPlayerViewModelHost",(P.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=x())==null||!g.isPlayerPlaying)},P.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=x())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},P.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=x())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},P));
var Y=function(){var g,k,n,b=((g=_.cp().resolve(_.Bp(_.fL)))==null?0:g())?(k=B.data().playerLogoBackgroundColor)==null?void 0:k.darkTheme:(n=B.data().playerLogoBackgroundColor)==null?void 0:n.lightTheme;return b===void 0?"":_.SF(b)};
return _.U("ytw-fantasy-player-view-model",{class:P},_.U(_.m,{cond:function(){return B.data().playerLogo},
then:function(g){return _.U("div",{class:"ytwFantasyPlayerViewModelLogo"},_.U("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.U(_.D9,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.TU({"background-color":Y}),data:g,alt:c})),_.U("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.U(_.Vf,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.U("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.U("div",{class:"ytwFantasyPlayerViewModelHeader"},_.U(_.RF,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=B.data())==null?void 0:g.playerNameText}}),_.U(_.RF,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=B.data())==null?void 0:g.playerDescriptionText}})),_.U("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.U(_.RF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=x())==null?void 0:g.gamePeriodText}}),_.U(_.RF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=B.data())==null?void 0:g.opponentTeamText}}),_.U(_.RF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=x())==null?void 0:g.gameStatusText}}),_.U(_.RF,{className:_.Kw("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=x())==null?void 0:g.playerStatusText}})),_.U("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.U(_.RF,{text:function(){var g;
return(g=x())==null?void 0:g.playerStatsText}}))),_.U(_.RF,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=x())==null?void 0:g.fantasyScore}}))},"Kd");var Xn0=_.rM(function(B){return _.U("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.U(_.m,{cond:function(){return B.data().players},
then:function(c){return _.U(_.IF,{data:c},{fantasyPlayerViewModel:kyZ})}}))},"Ld");var $xd=_.rM(function(B){var c=_.p(_.mg(function(){var Y;return(Y=B.data().selectedTabIdentifierKey)!=null?Y:""})),x=c.next().value,P=c.next().value;
_.JR(function(){var Y;(Y=B.setSelectedTabSignal)==null||Y.call(B,x)});
return _.U("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.U("div",{class:"ytTabbedViewModelTabGroup"},_.U(_.pnt,{shape:function(){var Y=B.data(),g=[],k={tabs:g};if(!Y.tabs)return k;Y=_.p(Y.tabs);for(var n=Y.next(),b={};!n.done;b={tabViewModel:void 0},n=Y.next())if(b.tabViewModel=_.t(n.value,o53),b.tabViewModel){var d=n=void 0;g.push({aTagConfig:{onclick:function(q){return function(){var C;P((C=q.tabViewModel.tabIdentifier)!=null?C:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:x()===b.tabViewModel.tabIdentifier,title:(d=(n=b.tabViewModel.title)==null?void 0:n.content)!=null?d:""})}return k}})),_.U(_.IF,{data:function(){var Y,g=_.p((Y=B.data().tabs)!=null?Y:[]);
for(Y=g.next();!Y.done;Y=g.next())if((Y=_.t(Y.value,o53))&&Y.tabIdentifier===x())return Y.content}},{fantasyRosterViewModel:Xn0}))},"Md");_.xU(_.rM(function(B){var c=_.p(ieY()),x=c.next().value,P=c.next().value;return _.U("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.U(_.RF,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return B.data().title}}),_.U(_.m,{cond:function(){return B.data().tabbedViewModel},
then:function(Y){return _.U(_.IF,{data:Y},{tabbedViewModel:function(g){return _.U($xd,{data:g.data,setSelectedTabSignal:P})}})}}),_.U(_.m,{cond:function(){var Y,g=(Y=_.t(B.data().tabbedViewModel,QAZ))==null?void 0:Y.tabs;
Y=_.t(g==null?void 0:g[0],o53);g=_.t(g==null?void 0:g[1],o53);var k=Y==null?void 0:Y.tabIdentifier;if(x()===k){var n,b;if(!((n=_.t(Y==null?void 0:Y.content,O9W))==null?0:(b=n.players)==null?0:b.length))return B.data().noUserTeamPlayersText}else{var d,q;if(!((d=_.t(g==null?void 0:g.content,O9W))==null?0:(q=d.players)==null?0:q.length))return B.data().noOpponentTeamPlayersText}},
then:function(Y){return _.U(_.RF,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Y})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){return _.U("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.U(_.RF,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return B.data().title}}),_.U(_.m,{cond:function(){return B.data().matchupTeamPairs},
then:function(c){return _.U(_.mV,{each:c,keyBy:"INDEX"},function(x){return _.U("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.U(_.IF,{data:function(){return[x().firstTeam,x().secondTeam]}},{fantasyTeamViewModel:function(P){return _.U(aNy,{data:P.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=function(){var Y,g,k;return(k=(Y=B.data().userLogoAccessibility)==null?void 0:(g=Y.accessibilityData)==null?void 0:g.label)!=null?k:""},x=function(){var Y,g,k;
return(k=(Y=B.data().opponentLogoAccessibility)==null?void 0:(g=Y.accessibilityData)==null?void 0:g.label)!=null?k:""},P=_.jA(jTq,function(){return B.data().entityKey});
return _.U("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.U("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.U(_.m,{cond:function(){return B.data().userLogo},
then:function(Y){return _.U(_.D9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:c})}}),_.U("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.U(_.RF,{text:function(){return B.data().title}})),_.U(_.m,{cond:function(){return B.data().opponentLogo},
then:function(Y){return _.U(_.D9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:x})}})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.U("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.U(_.RF,{text:function(){var Y;
return(Y=P())==null?void 0:Y.userWinNumberLabel}})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.U("div",{class:_.Kw("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.TU({flex:function(){var Y,g;return(g=(Y=P())==null?void 0:Y.userWinNumber)!=null?g:50}})}),_.U("div",{class:_.Kw("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.TU({flex:function(){var Y,g;return(g=(Y=P())==null?void 0:Y.opponentWinNumber)!=null?g:50}})})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.U(_.RF,{text:function(){var Y;
return(Y=P())==null?void 0:Y.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.rk}});_.o2("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var FR=function(){var B=_.z.apply(this,arguments)||this;B.darkerPanels=_.T("web_watch_darker_panels");B.commentsHidePanelButton=!1;B.isWatchGrid=!1;B.continuationShowButton=!1;B.isSearch=!1;B.isConstrainedList=!1;B.isWatch=!1;B.eligibleToSwitchToGrid=!1;B.notSticky=!1;B.epRestyle=!1;B.isCarouselInFeed=!0;B.topSpacingZero=!1;B.continuationIsInitialLoad=!0;B.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");B.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");B.mastheadHeight=
0;B.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};B.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return B};
_.w(FR,_.z);_.a=FR.prototype;_.a.updateLockupContainerTypes=function(B){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||c.forEach(function(x){x.containerType=B})}};
_.a.getItemsPath=function(){return"data.contents"};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")}}};
_.a.created=function(){this.JSC$14569_cachedViewportHeight=_.v5("initialInnerHeight")||window.innerHeight};
_.a.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.a.handleIntersect=function(B){this.notSticky=B[0].intersectionRatio===1};
_.a.attached=function(){var B=this;document.addEventListener("scroll",_.$9(this,this.updateHeaderState));var c;this.mastheadHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(x){B.handleIntersect(x)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){B.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.a.detached=function(){document.removeEventListener("scroll",_.$9(this,this.updateHeaderState));var B;(B=this.intersectionObserver)==null||B.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect()};
_.a.updated=function(B){B.has("data")&&this.updateHeaderState()};
_.a.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(DzS(!this.notSticky))};
_.a.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var B=_.Y9(this.hostElement).querySelector("ytd-comments-header-renderer");B&&(B.hidePanelButton=this.commentsHidePanelButton)}};
_.a.onRetrieveLocation=function(B,c){this.containsComments()&&(this.firstCommentsLoaded=c.hasComments=!0)};
_.a.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.a.onLoadReloadContinuation=function(B,c){var x=this;B.stopPropagation();this.isReloading=!0;_.aJ(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(P){var Y=_.cp().resolve(_.Oi);P=c(P);Y.postData(P).then(function(g){x.onReloadContinuationData(g)})}})};
_.a.onReloadContinuationData=function(B){if(B=this.get("response.continuationContents.itemSectionContinuation",B)||this.get("response.contents.itemSectionRenderer",B)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",B)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",B))this.set("data.contents",B.contents||B.results),B.header&&this.set("data.header",B.header),this.set("data.continuations",
B.continuations||[]);this.isReloading=!1};
_.a.computeContentsClass=function(B){return B?"reloading":""};
_.a.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.a.computeSectionIdentifier=function(B){return B==null?void 0:B.sectionIdentifier};
_.a.computeFitContainer=function(B){return(B==null?void 0:B.sectionIdentifier)==="youchat-item-section"};
_.a.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.T("kevlar_disable_comments_auto_load")};
_.a.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.a.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.a.computeHasDestinationShelfRenderer=function(B){var c,x;return!!(B==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.destinationShelfRenderer)};
_.a.computeHasSectionGroupViewModel=function(B){var c,x;return!!(B==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.sectionGroupViewModel)};
_.a.computeHasQrCodeRenderer=function(B){var c,x;return!!(B==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.qrCodeRenderer)};
_.a.computeStaticCommentsHeader=function(B){return B&&this.containsComments()};
_.a.computeEpRestyle=function(B){return _.T("web_ep_restyling")&&B&&this.containsComments()};
_.a.computeIsContinuationCommentSection=function(B){return(B==null?void 0:B.targetId)==="shorts-engagement-panel-comments-section"||(B==null?void 0:B.targetId)==="comments-section"||(B==null?void 0:B.targetId)==="engagement-panel-comments-section"};
_.a.computeSuppressPaddingDisclaimer=function(){var B,c,x,P;return!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:(P=x.productListHeaderRenderer)==null?0:P.suppressPaddingDisclaimer)};
_.a.computeHeaderStyle=function(B){switch(B==null?void 0:B.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.a.dataChanged=function(){this.firstCommentsLoaded=!1};
_.a.observeDataContentsLength=function(){var B,c;((B=this.data)==null?0:(c=B.contents)==null?0:c.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.a.onYtDismissibleItemDismissedChange=function(B){this._setItemDismissed(B.type==="yt-dismissible-item-dismissed")};
_.a.triggerContinuations=function(){for(var B=_.Y9(this.hostElement).querySelector("#continuations").children,c=0;c<B.length;c++)B[c].trigger()};
_.a.triggerInitialContinuations=function(){for(var B=_.Y9(this.hostElement).querySelector("#continuations").children,c=0;c<B.length;c++)B[c].triggerIfNotPreviouslyTriggered()};
_.a.handleYtItemSectionContinuation=function(B,c){var x;c&&((x=this.data)==null?void 0:x.sectionIdentifier)!==c||(this.set("data.continuations",[B]),this.triggerContinuations())};
_.a.handleYtItemSectionReplace=function(B,c){var x;c&&((x=this.data)==null?void 0:x.sectionIdentifier)!==c||(this.set("data.contents",B),this.set("data.continuations",[]))};
_.a.computeUseHeightHack=function(B){return B&&!_.T("kevlar_disable_height_hack")};
_.a.computeTopSpacingZero=function(B){return B};
_.a.continuationShowButtonChanged=function(){var B=_.Y9(this.hostElement).querySelector("ytd-continuation-item-renderer");B&&(B.showButton=this.continuationShowButton)};
_.a.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("data-changed",this.data))};
_.AJ.Object.defineProperties(FR.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P,Y,g,k;return!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:(P=x.shelfRenderer)==null?0:(Y=P.content)==null?0:(g=Y.gridRenderer)==null?0:(k=g.targetId)==null?0:k.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c[0])==null?0:x.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.T("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14569_cachedViewportHeight-130)/150)},
set:function(){}}});
FR.prototype.dataChangedForBinding=FR.prototype.dataChangedForBinding;FR.prototype.continuationShowButtonChanged=FR.prototype.continuationShowButtonChanged;FR.prototype.onYtDismissibleItemDismissedChange=FR.prototype.onYtDismissibleItemDismissedChange;FR.prototype.observeDataContentsLength=FR.prototype.observeDataContentsLength;FR.prototype.dataChanged=FR.prototype.dataChanged;FR.prototype.onServiceRequestCompleted=FR.prototype.onServiceRequestCompleted;FR.prototype.onLoadReloadContinuation=FR.prototype.onLoadReloadContinuation;
FR.prototype.onRetrieveLocation=FR.prototype.onRetrieveLocation;FR.prototype.commentsHidePanelButtonChanged=FR.prototype.commentsHidePanelButtonChanged;FR.prototype.dispatchChipBarIsSticky=FR.prototype.dispatchChipBarIsSticky;FR.prototype.updateLockupContainerTypes=FR.prototype.updateLockupContainerTypes;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],FR.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],FR.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],FR.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.J(_.Hz),_.H("design:type",Object)],FR.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],FR.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FR.prototype,"darkerPanels",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Boolean)],FR.prototype,"engagementPanel",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"commentsHidePanelButton",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"isWatchGrid",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"continuationShowButton",void 0);_.L([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.H("design:type",Boolean)],FR.prototype,"continuationIsCommentsSection",void 0);
_.L([_.F({value:!0}),_.H("design:type",Boolean)],FR.prototype,"autoFill",void 0);_.L([_.F(),_.H("design:type",Boolean)],FR.prototype,"continuationDisablePrescanVisibility",void 0);_.L([_.F(),_.H("design:type",Boolean)],FR.prototype,"isReloading",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"isSearch",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"isConstrainedList",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"isWatch",void 0);
_.L([_.F(),_.H("design:type",Object)],FR.prototype,"eligibleToSwitchToGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FR.prototype,"notSticky",void 0);_.L([_.F({selector:_.SA}),_.H("design:type",Object)],FR.prototype,"isGridViewEnabled",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Object)],FR.prototype,"epRestyle",void 0);
_.L([_.Q("isWatch"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"hideShortsShelfHeader",null);_.L([_.Q("isSearch","isWatch"),_.H("design:type",String),_.H("design:paramtypes",[])],FR.prototype,"thumbnailWidth",null);_.L([_.Q("isSearch","isWatch"),_.H("design:type",String),_.H("design:paramtypes",[])],FR.prototype,"sizing",null);
_.L([_.Q("isWatch","isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],FR.prototype,"lockupContainerType",null);_.L([_.bF("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],FR.prototype,"updateLockupContainerTypes",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],FR.prototype,"pageSubtype",void 0);
_.L([_.F({computed:"computeContainerWidth()"}),_.H("design:type",Number)],FR.prototype,"containerWidth",void 0);_.L([_.F(),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"isPlaylist",null);_.L([_.F(),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"isClipList",null);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"isCarouselInFeed",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"isPlaylistVideoContainer",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"isSearchFrictionPage",null);_.L([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.H("design:type",Boolean)],FR.prototype,"useHeightHack",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.H("design:type",Object)],FR.prototype,"topSpacingZero",void 0);_.L([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.H("design:type",Boolean)],FR.prototype,"showButton",void 0);_.L([_.F(),_.H("design:type",Boolean)],FR.prototype,"firstCommentsLoaded",void 0);_.L([_.F(),_.H("design:type",Object)],FR.prototype,"continuationIsInitialLoad",void 0);
_.L([_.F(),_.H("design:type",Boolean)],FR.prototype,"isSearchDova",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],FR.prototype,"itemDismissed",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.H("design:type",String)],FR.prototype,"sectionIdentifier",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.H("design:type",String)],FR.prototype,"fitContainer",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.H("design:type",Boolean)],FR.prototype,"hasDestinationShelfRenderer",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Boolean)],FR.prototype,"staticCommentsHeader",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FR.prototype,"enableSqueezebackPanels",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FR.prototype,"enableAnchoredPanel",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.H("design:type",Boolean)],FR.prototype,"hasSectionGroupViewModel",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.H("design:type",Boolean)],FR.prototype,"hasQrCodeRenderer",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.H("design:type",Boolean)],FR.prototype,"suppressDisclaimerSeparator",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.H("design:type",String)],FR.prototype,"headerStyle",void 0);_.L([_.Q("isSearch"),_.H("design:type",Object),_.H("design:paramtypes",[])],FR.prototype,"lockupExperiments",null);
_.L([_.Q("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],FR.prototype,"typographyBump",null);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],FR.prototype,"header",void 0);_.L([_.bF("notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"dispatchChipBarIsSticky",null);
_.L([_.bF("commentsHidePanelButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"commentsHidePanelButtonChanged",null);_.L([_.nF("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],FR.prototype,"onRetrieveLocation",null);
_.L([_.nF("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Function]),_.H("design:returntype")],FR.prototype,"onLoadReloadContinuation",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"onServiceRequestCompleted",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"dataChanged",null);
_.L([_.CF("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"observeDataContentsLength",null);_.L([_.nF("yt-dismissible-item-dismissed"),_.nF("yt-dismissible-item-undismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],FR.prototype,"onYtDismissibleItemDismissedChange",null);
_.L([_.bF("continuationShowButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"continuationShowButtonChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FR.prototype,"dataChangedForBinding",null);_.L([_.y({is:"ytd-item-section-renderer",disableElementRegistration:!0})],FR);
_.G(FR,"ytd-item-section-renderer",function(){if(Ozn!==void 0)return Ozn;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ozn=B},{mode:1});var nnS;var eoA=_.fk(_.Up("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var AkQ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var bKy={},Roq=(bKy[0]={title:_.c3(_.Up("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:ec("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},bKy[1]={title:_.c3(_.Up("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:ec("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},bKy);_.o2("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var v0=function(){var B=_.z.apply(this,arguments)||this;B.allVideosCount=0;B.allPlaylistCount=0;B.isOnline=!1;B.shouldRenderDownloadsBanner=!1;B.shouldRenderDownloadsBannerUpsell=!1;B.hasOptedIntoSmartDownloads=!1;B.areAllSmartDownloadsDeleted=!1;B.smartDownloadsCompleted=!1;return B};
_.w(v0,_.z);v0.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
v0.prototype.attached=function(){this.downloadsToRenderChanged()};
v0.prototype.detached=function(){this.set("renderableData",{})};
v0.prototype.downloadsToRenderChanged=function(){var B=_.uG().getState().entities,c=_.NZ(B),x=_.T("kevlar_playlist_dl_page_killswitch")?c3O(B):_.Iw(B),P=_.Dk$(B),Y,g,k,n=(k=(g=((Y=B.downloadsPageViewConfigurationEntity)!=null?Y:{})[_.wL])==null?void 0:g.downloadsUpsellBannerVisibility)!=null?k:{},b;Y=(b=_.t(n,$XS))!=null?b:{};b=_.hm(c);B=_.Jm(B);this.set("renderableData",czX(x,c,P,Y,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,
this.isOnline,b,B))};
v0.prototype.downloadsToRenderChanged=v0.prototype.downloadsToRenderChanged;_.L([_.J(_.OU),_.H("design:type",Object)],v0.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],v0.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],v0.prototype,"renderableData",void 0);_.L([_.F({selector:_.bVY}),_.H("design:type",Object)],v0.prototype,"allVideosCount",void 0);_.L([_.F({selector:G0w}),_.H("design:type",Object)],v0.prototype,"allPlaylistCount",void 0);_.L([_.F({selector:ow}),_.H("design:type",Object)],v0.prototype,"isOnline",void 0);_.L([_.F({selector:_.he7}),_.H("design:type",Object)],v0.prototype,"shouldRenderDownloadsBanner",void 0);
_.L([_.F({selector:function(B){var c,x,P,Y=(P=(x=((c=B.entities.downloadsPageViewConfigurationEntity)!=null?c:{})[_.wL])==null?void 0:x.downloadsUpsellBannerVisibility)!=null?P:{};return ow(B)?!!Y.visibleWithConnection:!!Y.visibleWithoutConnection}}),
_.H("design:type",Object)],v0.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.L([_.F({selector:_.mVq}),_.H("design:type",Object)],v0.prototype,"hasOptedIntoSmartDownloads",void 0);_.L([_.F({selector:_.TJ7}),_.H("design:type",Object)],v0.prototype,"areAllSmartDownloadsDeleted",void 0);_.L([_.F({selector:VPd}),_.H("design:type",Object)],v0.prototype,"smartDownloadsCompleted",void 0);
_.L([_.CF("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v0.prototype,"downloadsToRenderChanged",null);_.L([_.y({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],v0);
_.G(v0,"ytd-offline-item-section-renderer",function(){if(nnS!==void 0)return nnS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return nnS=B},
{mode:1});var K2Z;var jVS;var zJ=function(){return _.z.apply(this,arguments)||this};
_.w(zJ,_.z);
zJ.prototype.onDataChanged=function(){if(this.JSC$14597_lastData){var B=this.getFilterClass(this.JSC$14597_lastData.status);B&&this.hostElement.classList.remove(B)}var c;(B=this.getFilterClass((c=this.data)==null?void 0:c.status))&&this.hostElement.classList.add(B);B==="selected"?_.Y9(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Y9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");B==="disabled"?_.Y9(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Y9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14597_lastData=this.data};
zJ.prototype.getFilterClass=function(B){switch(B){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
zJ.prototype.onDataChanged=zJ.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zJ.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zJ.prototype,"onDataChanged",null);_.L([_.y({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],zJ);
_.G(zJ,"ytd-search-filter-renderer",function(){if(jVS!==void 0)return jVS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jVS=B},{mode:_.sL("kevlar_poly_si_batch_j075")?1:2});var Su=function(){return _.z.apply(this,arguments)||this};
_.w(Su,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Su.prototype,"data",void 0);_.L([_.y({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Su);
_.G(Su,"ytd-search-filter-group-renderer",function(){if(K2Z!==void 0)return K2Z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return K2Z=B},{mode:_.sL("kevlar_poly_si_batch_j075")?1:2});var UxW;var y3=function(){return _.z.apply(this,arguments)||this};
_.w(y3,_.z);y3.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.b9());this.isCollapsed=!this.isCollapsed};
y3.prototype.navigateToAboutTheseResultsPage=function(){var B=C6("https://www.youtube.com/howyoutubeworks/product-features/search/");B?_.oW(window,B,"_blank"):_.SI(Error("Rh"))};
y3.prototype.dataChanged=function(){this.isCollapsed=!0};
y3.prototype.computeShowBottomBorder=function(){var B,c,x;return!!((B=this.data)==null?0:(c=B.button)==null?0:c.toggleButtonRenderer)||!((x=this.data)==null||!x.aboutTheseResultsButton)};
y3.prototype.dataChanged=y3.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],y3.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.H("design:type",Boolean)],y3.prototype,"showBottomBorder",void 0);_.L([_.F(),_.H("design:type",Boolean)],y3.prototype,"renderCollapsibleMenu",void 0);
_.L([_.F(),_.H("design:type",Boolean)],y3.prototype,"isCollapsed",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y3.prototype,"dataChanged",null);_.L([_.y({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],y3);
_.G(y3,"ytd-search-sub-menu-renderer",function(){if(UxW!==void 0)return UxW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return UxW=B},{mode:1});var dxQ;var quW=new _.BL("SECTION_LIST_RENDERER_TOKEN");var CnQ;var GJ=function(){return _.z.apply(this,arguments)||this};
_.w(GJ,_.z);GJ.prototype.computeStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GJ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],GJ.prototype,"headerStyle",void 0);_.L([_.y({is:"ytd-text-header-renderer",disableElementRegistration:!0})],GJ);
_.G(GJ,"ytd-text-header-renderer",function(){if(CnQ!==void 0)return CnQ;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return CnQ=B},{mode:1});var hgm;var M5=function(){return _.z.apply(this,arguments)||this};
_.w(M5,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],M5.prototype,"data",void 0);_.L([_.y({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],M5);
_.G(M5,"ytd-minor-moment-header-renderer",function(){if(hgm!==void 0)return hgm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return hgm=B},{mode:1});var mxW;var Li=function(){return _.z.apply(this,arguments)||this};
_.w(Li,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Li.prototype,"data",void 0);_.L([_.y({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Li);
_.G(Li,"ytd-minor-moment-setting-alert-renderer",function(){if(mxW!==void 0)return mxW;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return mxW=B},{mode:1});var Thn;var Vat;var Zh=function(){var B=_.z.apply(this,arguments)||this;B.booleanSettingById=!1;B.smartDownloadsEnabledVE=_.JW(128287);B.smartDownloadsDisabledVE=_.JW(128286);B.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return B};
_.w(Zh,_.z);_.a=Zh.prototype;_.a.attachSmartDownloadsSettingVes=function(){var B;this.activeVeForLogging||((B=this.data)==null?void 0:B.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Xa(_.q_(),this.smartDownloadsEnabledVE),_.Xa(_.q_(),this.smartDownloadsDisabledVE))};
_.a.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.aJ(this.hostElement,"yt-settings-switch-ready")};
_.a.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.a.onSwitchChange=function(B){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(B=_.uI(B).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.T("kevlar_settings_switch_resolve_command_killswitch")?_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(B)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.a.handleUpdateSettingsSwitch=function(B){(B=_.t(B,eFZ))&&this.data&&this.data.id===B.id&&this.set("data.enabled",!!B.enabled)};
_.a.onToggleSettingsSwitch=function(B,c){this.data&&this.data.id===B&&this.set("data.enabled",c!=null?c:!this.data.enabled)};
_.a.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.eP.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.a.maybeLogSmartDownloadsSettingVisibility=function(){var B=_.Wf(),c;B&&((c=this.data)==null?void 0:c.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Z1(B,[this.smartDownloadsEnabledVE]),_.Hr(B,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Z1(B,[this.smartDownloadsDisabledVE]),_.Hr(B,[this.smartDownloadsEnabledVE])))};
_.a.maybeLogSmartDownloadsSettingClick=function(){var B;((B=this.data)==null?void 0:B.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.n0(_.q_(),this.activeVeForLogging)};
_.a.updateDataEnabledFromBinding=function(B){this.set("data.enabled",B.detail.value)};
_.AJ.Object.defineProperties(Zh.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!B&&(B=this.ytRendererBehavior.getSimpleString(this.data.title));return B}}});
Zh.prototype.dataChanged=Zh.prototype.dataChanged;_.L([_.J(_.OU),_.H("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Zh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Zh.prototype,"data",void 0);_.L([_.F({selector:function(B,c){if(Object.keys(B==null?void 0:B.entities).length)switch(c){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return xVo(B.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.H("design:type",Object)],Zh.prototype,"booleanSettingById",void 0);_.L([_.F(),_.H("design:type",_.Is)],Zh.prototype,"activeVeForLogging",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zh.prototype,"toggleAriaLabel",null);_.L([_.CF("data"),_.CF("booleanSettingById"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zh.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Zh);
_.G(Zh,"ytd-settings-switch-renderer",function(){if(Vat!==void 0)return Vat;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Vat=B},{mode:1});var H0=function(){return _.z.apply(this,arguments)||this};
_.w(H0,_.z);H0.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}}}}};
_.AJ.Object.defineProperties(H0.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var B=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(B+=" remove-left-margin");this.data.extraBottomSpace&&(B+=" extra-bottom-space");return B}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],H0.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],H0.prototype,"contentsClassName",null);_.L([_.y({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],H0);
_.G(H0,"ytd-minor-moment-setting-section-renderer",function(){if(Thn!==void 0)return Thn;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Thn=B},{mode:1});var ta0;var fi=function(){return _.z.apply(this,arguments)||this};
_.w(fi,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fi.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fi.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],fi);
_.G(fi,"ytd-empty-product-details-renderer",function(){if(ta0!==void 0)return ta0;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ta0=B},{mode:1});var wnF;var NhS;var iQ=function(){var B=_.z.apply(this,arguments)||this;B.expanded=!0;return B};
_.w(iQ,_.z);iQ.prototype.getBadgeRowClass=function(B,c,x){for(var P=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),Y=P.next();!Y.done;Y=P.next())Y.value.onShow();B=B.selected;return x?B!==-1?B===c?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(B!==void 0?B:0)===c?"badge-line":"badge-hidden"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iQ.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],iQ.prototype,"expanded",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],iQ);
_.G(iQ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(NhS!==void 0)return NhS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return NhS=B},{mode:1});var INm;var AN=function(){var B=_.z.apply(this,arguments)||this;B.expanded=!0;return B};
_.w(AN,_.z);AN.prototype.getContainerClasses=function(B,c){B=B?"expanded":"collapsed";c&&(B+=" item");return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AN.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],AN.prototype,"expanded",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],AN);
_.G(AN,"ytd-sponsorships-perk-renderer",function(){if(INm!==void 0)return INm;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return INm=B},{mode:1});var JY5;var uQ=function(){var B=_.z.apply(this,arguments)||this;B.expanded=!0;return B};
_.w(uQ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uQ.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],uQ.prototype,"expanded",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],uQ);
_.G(uQ,"ytd-sponsorships-perks-renderer",function(){if(JY5!==void 0)return JY5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return JY5=B},{mode:1});var Dh=function(){var B=_.z.apply(this,arguments)||this;B.isCollapsed=!1;return B};
_.w(Dh,_.z);Dh.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Dh.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Dh.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var B;this.expandCollapseButton=_.t((B=this.data)==null?void 0:B.expandButton,_.z3)}else{var c;this.expandCollapseButton=_.t((c=this.data)==null?void 0:c.collapseButton,_.z3)}};
Dh.prototype.updateExpandCollapseButton=Dh.prototype.updateExpandCollapseButton;Dh.prototype.onDataChanged=Dh.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Dh.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Dh.prototype,"isCollapsed",void 0);_.L([_.F(),_.H("design:type",Object)],Dh.prototype,"expandCollapseButton",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"onDataChanged",null);_.L([_.CF("data","isCollapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"updateExpandCollapseButton",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Dh);
_.G(Dh,"ytd-sponsorships-expandable-perks-renderer",function(){if(wnF!==void 0)return wnF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return wnF=B},{mode:1});var W23;var r1=function(){return _.z.apply(this,arguments)||this};
_.w(r1,_.z);r1.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],r1.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],r1.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],r1);
_.G(r1,"ytd-sponsorships-actionable-message-renderer",function(){if(W23!==void 0)return W23;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return W23=B},{mode:1});var lNt;var Rh=function(){return _.z.apply(this,arguments)||this};
_.w(Rh,_.z);_.a=Rh.prototype;_.a.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.a.getExpansionIcon=function(B){return B?"COLLAPSE":"EXPAND"};
_.a.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.a.computeMessageContainerStyle=function(B){var c=B.expandableItems?" style-clickable":"";return B.messageContainerStyle?B.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+c:"style-unspecified"+c};
_.a.isSinglePerk=function(B){return!!B.messageContainerStyle&&(B.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||B.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.a.onExpandedChanged=function(){var B=this;if(this.expanded)for(var c=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),x=c.next();!x.done;x=c.next())x.value.onShow();_.fl(this,function(){_.aJ(B.hostElement,"yt-refit")})};
_.a.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Rh.prototype.onDataChanged=Rh.prototype.onDataChanged;Rh.prototype.onExpandedChanged=Rh.prototype.onExpandedChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Rh.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Rh.prototype,"expanded",void 0);
_.L([_.bF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rh.prototype,"onExpandedChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rh.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Rh);
_.G(Rh,"ytd-sponsorships-expandable-message-renderer",function(){if(lNt!==void 0)return lNt;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lNt=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var EnF;var eu=function(){return _.z.apply(this,arguments)||this};
_.w(eu,_.z);eu.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"}}}}};
eu.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.t(this.data.endButton,_.z3).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
eu.prototype.onDataChanged=eu.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eu.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eu.prototype,"onDataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],eu);
_.G(eu,"ytd-sponsorships-heading-renderer",function(){if(EnF!==void 0)return EnF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EnF=B},{mode:1});var OK4;var BU=function(){return _.z.apply(this,arguments)||this};
_.w(BU,_.z);_.L([_.F(),_.H("design:type",Object)],BU.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],BU);
_.G(BU,"ytd-sponsorships-links-renderer",function(){if(OK4!==void 0)return OK4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return OK4=B},{mode:1});var on9;var cU=function(){return _.z.apply(this,arguments)||this};
_.w(cU,_.z);_.a=cU.prototype;_.a.onDataChanged=function(){if(this.data&&this.data.expandableItems){var B;(B=_.Y9(this.hostElement).querySelector("tp-yt-paper-button"))==null||B.setAttribute("role","button")}else{var c;(c=_.Y9(this.hostElement).querySelector("tp-yt-paper-button"))==null||c.removeAttribute("role")}};
_.a.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.a.getExpansionIcon=function(B){return B?"COLLAPSE":"EXPAND"};
_.a.getTileClasses=function(B){return B?"tile expandable-tile":"tile"};
_.a.getButtonDisabled=function(B){return B?void 0:""};
cU.prototype.onDataChanged=cU.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cU.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],cU.prototype,"expanded",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cU.prototype,"onDataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],cU);
_.G(cU,"ytd-sponsorships-list-tile-renderer",function(){if(on9!==void 0)return on9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return on9=B},{mode:1});var QVd;var F2y;var x8=function(){return _.z.apply(this,arguments)||this};
_.w(x8,_.z);x8.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],x8.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],x8);
_.G(x8,"ytd-sponsorships-promotion-renderer",function(){if(F2y!==void 0)return F2y;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return F2y=B},{mode:1});var vnI;var PU=function(){return _.z.apply(this,arguments)||this};
_.w(PU,_.z);PU.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PU.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],PU);
_.G(PU,"ytd-sponsorships-purchase-option-renderer",function(){if(vnI!==void 0)return vnI;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return vnI=B},{mode:1});var zgF;var Sut;var yYS=function(){return _.z.apply(this,arguments)||this};
_.w(yYS,_.z);_.L([_.F(),_.H("design:type",Object)],yYS.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],yYS);
_.G(yYS,"ytd-ypc-offer-promo-renderer",function(){if(Sut!==void 0)return Sut;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Sut=B},{mode:1});var Y8=function(){return _.z.apply(this,arguments)||this};
_.w(Y8,_.z);_.a=Y8.prototype;
_.a.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"}}}}};
_.a.expansionCTA=function(B,c){return B&&(c?B.collapseCallToAction:B.expansionCallToAction)};
_.a.getExpansionIcon=function(B){return B?"COLLAPSE":"EXPAND"};
_.a.expansionCallToActionTap=function(){var B=this;this.expanded=!this.expanded;_.fl(this,function(){_.aJ(B.hostElement,"yt-refit")})};
_.a.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var B,c=(B=this.data)==null?void 0:B.onVisible;c&&this.ytComponentBehavior.resolveCommand(c)};
_.a.computeDisplayTitle=function(B){return!(!B||this.titledisplaystatus!=="show")};
_.a.computeDisplaySeparator=function(){return!1};
_.a.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Y8.prototype.onDataChanged=Y8.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Y8.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Y8.prototype,"data",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],Y8.prototype,"expanded",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Y8.prototype,"purchaseButtonClicked",void 0);_.L([_.F({reflectToAttribute:!0,value:"show"}),_.H("design:type",String)],Y8.prototype,"titledisplaystatus",void 0);_.L([_.F({computed:"computeDisplayTitle(data.title)"}),_.H("design:type",Boolean)],Y8.prototype,"displayTitle",void 0);
_.L([_.F({computed:"computeDisplaySeparator(data)"}),_.H("design:type",Boolean)],Y8.prototype,"displaySeparator",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Y8.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Y8);
_.G(Y8,"ytd-sponsorships-tier-renderer",function(){if(zgF!==void 0)return zgF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return zgF=B},{mode:2});var aT=function(){return _.z.apply(this,arguments)||this};
_.w(aT,_.z);
aT.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aT.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],aT);
_.G(aT,"ytd-sponsorships-management-renderer",function(){if(QVd!==void 0)return QVd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return QVd=B},{mode:1});var Gy4;var gm=function(){return _.z.apply(this,arguments)||this};
_.w(gm,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gm.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],gm);
_.G(gm,"ytd-open-in-native-app-view-model",function(){if(Gy4!==void 0)return Gy4;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Gy4=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var Ma3;var L2I;var ZKy=_.r2(["top-"]),HKn=_.r2(["bottom-"]),fNF=_.r2(["left-"]),iKZ=_.r2(["right-"]),AYt={},u3t=function(B,c,x){B.removeAttribute("top-"+x);B.removeAttribute("bottom-"+x);B.removeAttribute("left-"+x);B.removeAttribute("right-"+x);c&&(c.top&&_.Zz([_.cM(ZKy)],B,"top-"+x,c.top),c.bottom&&_.Zz([_.cM(HKn)],B,"bottom-"+x,c.bottom),c.left&&_.Zz([_.cM(fNF)],B,"left-"+x,c.left),c.right&&_.Zz([_.cM(iKZ)],B,"right-"+x,c.right))};
AYt.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(B){var c,x=_.Y9((c=this.hostElement)!=null?c:this),P;c=this.cardItemBoxBehaviorMarginTargetId&&x?x.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(P=this.hostElement)!=null?P:this;u3t(c,B,"margin")},
cardItemContainerPaddingChanged_:function(B){var c,x=_.Y9((c=this.hostElement)!=null?c:this),P;c=this.cardItemBoxBehaviorPaddingTargetId&&x?x.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(P=this.hostElement)!=null?P:this;u3t(c,B,"padding")}}];var sw={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 Dxm;var rY9;var pc=function(){return _.z.apply(this,arguments)||this};
_.w(pc,_.z);pc.prototype.textColorChanged_=function(){this.hostElement.style.color=sw[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
pc.prototype.textColorChanged_=pc.prototype.textColorChanged_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.L([_.J(AYt.YtCardItemBoxBehavior),_.H("design:type",Object)],pc.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pc.prototype,"data",void 0);_.L([_.bF("data.textColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pc.prototype,"textColorChanged_",null);
_.L([_.Em({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],pc);
_.G(pc,"yt-card-item-text-renderer",function(){if(rY9===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Dxm===void 0&&(Dxm=document.createElement("template"));var P=Dxm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);rY9=B}B=rY9;return B},{mode:2});var RgZ;var egS;var k8=function(){return _.z.apply(this,arguments)||this};
_.w(k8,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],k8.prototype,"data",void 0);_.L([_.Em({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],k8);
_.G(k8,"yt-card-item-badge-renderer",function(){if(egS===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;RgZ===void 0&&(RgZ=document.createElement("template"));var P=RgZ;x.call(c,P.content.cloneNode(!0),B.content.firstChild);egS=B}B=egS;return B},{mode:2});var BSS;var cLQ;var Xc=function(){return _.z.apply(this,arguments)||this};
_.w(Xc,_.z);Xc.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Xc.prototype,"data",void 0);_.L([_.Em({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Xc);
_.G(Xc,"yt-card-item-text-collection-renderer",function(){if(cLQ===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;BSS===void 0&&(BSS=document.createElement("template"));var P=BSS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);cLQ=B}B=cLQ;return B},{mode:2});var x1Z;var P04;var $8=function(){return _.z.apply(this,arguments)||this};
_.w($8,_.z);$8.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]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$8.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Number)],$8.prototype,"iconSize",void 0);_.L([_.Em({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],$8);
_.G($8,"yt-card-item-text-with-button-renderer",function(){if(P04===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;x1Z===void 0&&(x1Z=document.createElement("template"));var P=x1Z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);P04=B}B=P04;return B},{mode:2});var nc=function(){return _.z.apply(this,arguments)||this};
_.w(nc,_.z);nc.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],nc.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nc.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],nc);
_.G(nc,"ytd-commerce-cart-summary-line-item-renderer",function(){if(L2I!==void 0)return L2I;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return L2I=B},{mode:1});_.o2("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var b1=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;return B};
_.w(b1,_.z);_.a=b1.prototype;_.a.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"}}}}};
_.a.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.a.updateSummary=function(){var B=this.commerceCartCheckoutButtonEntity,c;if(((c=this.data)==null?0:c.cartButton)&&B.checkoutSummaryText){var x,P=G2((x=this.data)==null?void 0:x.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",Ms(B.checkoutSummaryText));if(B.checkoutDetailText){var Y;x=G2((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",Ms(B.checkoutDetailText))}if(B.checkoutAdditionalMetadataText){var g;
Y=G2((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",Ms(B.checkoutAdditionalMetadataText))}}else B.estimatedTotalPrice&&(g=G2((P=this.data)==null?void 0:P.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",Ms(B.estimatedTotalPrice)))};
_.a.updateIsHidden=function(){var B,c=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isHidden;c!==void 0&&(this.hidden=c)};
_.a.updateCheckoutButton=function(){var B,c=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isDisabled;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",c);var x;B=(x=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:x.innertubeCommand;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",B);var P;x=(P=this.commerceCartCheckoutButtonEntity)==null?void 0:P.checkoutButtonText;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:x})};
b1.prototype.entityChanged=b1.prototype.entityChanged;_.L([_.J(_.OU),_.H("design:type",Object)],b1.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],b1.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],b1.prototype,"fullWidth",void 0);_.L([_.F(),_.H("design:type",Object)],b1.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],b1.prototype,"compact",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],b1.prototype,"hidden",void 0);
_.L([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:hMY}),_.H("design:type",Object)],b1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.bF("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b1.prototype,"entityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],b1);
_.G(b1,"ytd-commerce-cart-checkout-button-renderer",function(){if(Ma3!==void 0)return Ma3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ma3=B},{mode:2});var YS5;_.aHZ={};
_.aHZ.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",_.$9(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.$9(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(B){!this.tappableItemBehaviorTapEnabled||B.keyCode!==13&&B.keyCode!==32||B.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var B=this.data.onTap;B.ypcGetCartEndpoint?(_.kC(this.hostElement,[B]),this.tappableItemBehaviorTapEnabled=!1):B.ypcOffersEndpoint?_.kC(this.hostElement,[B]):_.XX(this.hostElement,[B],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(B){this.tappableItemBehaviorTapEnabled=!!B},
tappableItemBehaviorOnTapEnabledChanged_:function(){var B=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(B.setAttribute("tabIndex",0),B.setAttribute("role","button")):(B.removeAttribute("tabIndex"),B.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(B){B.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var gQ3;var sPF;var Kc=function(){return _.z.apply(this,arguments)||this};
_.w(Kc,_.z);Kc.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Qf("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Qf("sharingToggleButtonAndDefaultButton")}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Kc.prototype,"data",void 0);_.L([_.Em({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Kc);
_.G(Kc,"yt-card-item-actions-renderer",function(){if(sPF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;gQ3===void 0&&(gQ3=document.createElement("template"));var P=gQ3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);sPF=B}B=sPF;return B},{mode:2});var p9t;var k9n;var X9Z;var $10;var nQ3;var bJW;var jU=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return B};
_.w(jU,_.z);jU.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
jU.prototype.handleDarkModeToggledAction_=function(B){this.isDarkTheme_=B};
jU.prototype.computeThemeImage_=function(B,c){if(!B||!B.imageLight)return!1;this.isCircular_=B.isCircular;B.imageWidth&&(this.hostElement.style.width=B.imageWidth+"px");B.imageHeight&&(this.hostElement.style.height=B.imageHeight+"px");B.borderWidth&&(this.image.style.borderWidth=B.borderWidth+"px",this.image.style.borderStyle="solid");B.borderColor&&(this.image.style.borderColor=_.SF(B.borderColor));return c&&B.imageDark?B.imageDark:B.imageLight};
jU.prototype.computeThemeIcon_=function(B){var c,x;if(!(B==null?0:(c=B.themedIcon)==null?0:(x=c.icon)==null?0:x.iconType))return!1;this.icon.style.color=sw[B.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(B.imageWidth||18)+"px";this.icon.style.height=(B.imageHeight||18)+"px";return _.$0(B.themedIcon.icon.iconType)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(AYt.YtCardItemBoxBehavior),_.H("design:type",Object)],jU.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],jU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jU.prototype,"data",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],jU.prototype,"fit",void 0);_.L([_.F(),_.H("design:type",Boolean)],jU.prototype,"isDarkTheme_",void 0);_.L([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.H("design:type",Object)],jU.prototype,"themeImage_",void 0);_.L([_.F({computed:"computeThemeIcon_(data)"}),_.H("design:type",Object)],jU.prototype,"themeIcon_",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],jU.prototype,"isCircular_",void 0);
_.L([_.jr("#image"),_.H("design:type",Object)],jU.prototype,"image",void 0);_.L([_.jr("#icon"),_.H("design:type",Object)],jU.prototype,"icon",void 0);_.L([_.Em({is:"yt-themed-image-renderer",disableElementRegistration:!0})],jU);
_.G(jU,"yt-themed-image-renderer",function(){if(bJW===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;nQ3===void 0&&(nQ3=document.createElement("template"));var P=nQ3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);bJW=B}B=bJW;return B},{mode:2});var Uw=function(){return _.z.apply(this,arguments)||this};
_.w(Uw,_.z);Uw.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"}}}}};
Uw.prototype.computeImagePlacement_=function(B){return B||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Uw.prototype,"data",void 0);_.L([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.H("design:type",String)],Uw.prototype,"imagePlacement",void 0);
_.L([_.Em({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Uw);
_.G(Uw,"yt-card-item-text-with-image-renderer",function(){if($10===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;X9Z===void 0&&(X9Z=document.createElement("template"));var P=X9Z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);$10=B}B=$10;return B},{mode:2});var dm=function(){return _.z.apply(this,arguments)||this};
_.w(dm,_.z);dm.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"}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dm.prototype,"data",void 0);_.L([_.Em({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],dm);
_.G(dm,"yt-card-item-error-renderer",function(){if(k9n===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;p9t===void 0&&(p9t=document.createElement("template"));var P=p9t;x.call(c,P.content.cloneNode(!0),B.content.firstChild);k9n=B}B=k9n;return B},{mode:2});var K6d;var jP0;_.o2("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var qW=function(){return _.z.apply(this,arguments)||this};
_.w(qW,_.z);_.a=qW.prototype;
_.a.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"}}}}};
_.a.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.a.backgroundColorChanged_=function(){var B,c=(B=this.data)==null?void 0:B.backgroundColor;B=sw[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Y9(this.hostElement).querySelector("#main-content").style.backgroundColor=B};
_.a.headerPromoBackgroundColorChanged_=function(){var B,c=(B=this.data)==null?void 0:B.headerPromoBackgroundColor;B=sw[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Y9(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=B};
_.a.errorRendererVisibilityChanged_=function(){var B=this.isExpanded_,c;this.isErrorRendererVisible_=!((c=this.data)==null||!c.errorRenderer)&&!B};
_.a.onYtToggleButton_=function(B,c){this.isExpanded_=c.toggled};
qW.prototype.onYtToggleButton_=qW.prototype.onYtToggleButton_;qW.prototype.errorRendererVisibilityChanged_=qW.prototype.errorRendererVisibilityChanged_;qW.prototype.headerPromoBackgroundColorChanged_=qW.prototype.headerPromoBackgroundColorChanged_;qW.prototype.backgroundColorChanged_=qW.prototype.backgroundColorChanged_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(AYt.YtCardItemBoxBehavior),_.H("design:type",Object)],qW.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.J(_.aHZ.YtTappableItemBehavior),_.H("design:type",Object)],qW.prototype,"ytTappableItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qW.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],qW.prototype,"isExpanded_",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],qW.prototype,"isErrorRendererVisible_",void 0);_.L([_.bF("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qW.prototype,"backgroundColorChanged_",null);_.L([_.bF("data.headerPromoBackgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qW.prototype,"headerPromoBackgroundColorChanged_",null);
_.L([_.bF("data.errorRenderer","isExpanded_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qW.prototype,"errorRendererVisibilityChanged_",null);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],qW.prototype,"onYtToggleButton_",null);_.L([_.Em({is:"yt-card-item-renderer",disableElementRegistration:!0})],qW);
_.G(qW,"yt-card-item-renderer",function(){if(jP0===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;K6d===void 0&&(K6d=document.createElement("template"));var P=K6d;x.call(c,P.content.cloneNode(!0),B.content.firstChild);jP0=B}B=jP0;return B},{mode:2});_.o2("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Cc=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;return B};
_.w(Cc,_.z);_.a=Cc.prototype;_.a.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.a.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.a.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var B,c=(B=this.commerceCartHeaderEntity)==null?void 0:B.isHidden;c!==void 0&&(this.hidden=c)}};
_.a.updateTitle=function(){var B=this.commerceCartHeaderEntity.isDisabled,c,x,P=(x=_.t((c=this.data)==null?void 0:c.item,pK9))==null?void 0:x.headingRenderer;P&&(c=G2(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".0.cardItemTextRenderer.textColor",B?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.a.updateSummaryText=function(){var B=this.commerceCartHeaderEntity;if(this.compact){var c,x,P=(x=_.t((c=this.data)==null?void 0:c.item,pK9))==null?void 0:x.headingRenderer;P&&(c=G2(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".1.cardItemTextRenderer.text",B.shortHeaderSummaryText?Ms(B.shortHeaderSummaryText):B.headerSummaryText?Ms(B.headerSummaryText):""))}else{var Y;if(c=(Y=_.t((P=this.data)==null?void 0:P.item,pK9))==null?void 0:Y.additionalInfoRenderer)c=G2(c,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".text",B.headerSummaryText?Ms(B.headerSummaryText):"")}};
_.a.updateCheckoutButton=function(){var B=this.commerceCartHeaderEntity,c,x,P=(x=_.t((c=this.data)==null?void 0:c.item,pK9))==null?void 0:x.additionalInfoRenderer;c=G2(P,"buttonRenderer");var Y;x=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isButtonDisabled;var g;Y=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.isDisabled",x);Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Y);var k;B=(k=B.checkoutButtonCommand)==null?void 0:k.innertubeCommand;B!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.command",B)};
Cc.prototype.entityChanged=Cc.prototype.entityChanged;_.L([_.J(_.OU),_.H("design:type",Object)],Cc.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cc.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Cc.prototype,"compact",void 0);_.L([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(B,c){return _.X9(B.entities,"commerceCartHeaderEntity",c)}}),
_.H("design:type",Object)],Cc.prototype,"commerceCartHeaderEntity",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Cc.prototype,"hidden",void 0);_.L([_.bF("commerceCartHeaderEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cc.prototype,"entityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Cc);
_.G(Cc,"ytd-commerce-cart-header-renderer",function(){if(YS5!==void 0)return YS5;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return YS5=B},{mode:1});var U1Q;var d1F=_.he(function(B,c){var x;return(x=B.onChangeCallback)==null?void 0:x.call(B,c)},1E3),qS3=_.rM(function(B){var c=B.data;
var x=B.iconMinus;B=B.iconPlus;var P=function(){return!!c().disabled},Y=_.p(_.$D(0,void 0,"r56zNb")),g=Y.next().value,k=Y.next().value;
Y={};Y=_.Kw("yt-spec-quantity-incrementer-shape__icon",(Y["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return P()||g()===(c().onRemoveCommand?0:1)},Y));
var n={};n=_.Kw("yt-spec-quantity-incrementer-shape__icon",(n["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return g()>=c().maxValue||P()},n));
var b={};b=_.Kw("yt-spec-quantity-incrementer-shape__text",(b["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return g()>c().maxValue},b["yt-spec-quantity-incrementer-shape__text--text-disabled"]=P,b));
var d=_.qe(function(){if(g()===1){var C,h;(h=(C=c()).onRemoveCommand)==null||h.call(C)}C=g()>c().maxValue?c().maxValue:g()-1;k(C);d1F(c(),C);return!1}),q=_.qe(function(){if(g()===c().maxValue)return!1;
var C=g()+1;k(C);d1F(c(),C);return!1});
_.JR(function(){k(c().value)});
return _.U("quantity-incrementer-shape",null,_.U("div",{class:"yt-spec-quantity-incrementer-shape"},_.U("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()===(c().onRemoveCommand?0:1)||P()},
"aria-label":function(){return g()!==1?c().minusLabel:c().minimumReachedLabel},
"on:click":d},_.U(_.Ne,{model:{circular:!0}}),_.U("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.U("div",{class:Y},x()))),_.U("div",{class:b},g),_.U("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()>=c().maxValue||P()},
"aria-label":function(){return g()!==c().maxValue?c().plusLabel:c().maximumReachedLabel},
"on:click":q},_.U(_.Ne,{model:{circular:!0}}),_.U("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.U("div",{class:n},B())))))},"Qd");_.xU(_.rM(function(B){function c(){x().onRemoveCommand&&_.Gl(x().onRemoveCommand)}
var x=B.data;var P=_.jA(WBw,function(){return x().quantityIncrementerEntityKey});
return _.U("yt-quantity-incrementer-view-model",null,_.U(qS3,{data:function(){var Y=x(),g;var k=P()?!((g=P())==null||!g.disabled):!1;var n;g=P()?(n=P())==null?void 0:n.quantity:x().quantity;return Y7Y(Y,k,c,g)},
iconMinus:function(){return _.U(_.Vf,{icon:"BAR_HORIZONTAL",className:_.U9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.U(_.Vf,{icon:"ADD",className:_.U9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.rk}});var hC=function(){var B=_.z.apply(this,arguments)||this;B.compact=!1;B.hasQuantityIncrementer=!1;return B};
_.w(hC,_.z);hC.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"}}}};
hC.prototype.computeHasQuantityIncrementer=function(){var B;return!!_.t((B=this.data)==null?void 0:B.picker,nk9)};
hC.prototype.onLabelClick=function(){var B;(B=this.dropdownEl)==null||B.open()};
_.L([_.jr("ytd-dropdown-renderer"),_.H("design:type",Object)],hC.prototype,"dropdownEl",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hC.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],hC.prototype,"quantityColor",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],hC.prototype,"compact",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.H("design:type",Object)],hC.prototype,"hasQuantityIncrementer",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],hC);
_.G(hC,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(U1Q!==void 0)return U1Q;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return U1Q=B},{mode:1});var C0t;var hx3;var m3=function(){return _.z.apply(this,arguments)||this};
_.w(m3,_.z);m3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m3.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
m3.prototype.updateTitle=function(){var B=this.disabledCartItemEntity;B.disableActionName&&this.set("data.title",Ms(B.disableActionName))};
m3.prototype.updateButton=function(){var B,c=(B=this.disabledCartItemEntity.undoCommand)==null?void 0:B.innertubeCommand;c!==void 0&&(this.set("data.actionButton.buttonRenderer.command",c),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
m3.prototype.entityChanged=m3.prototype.entityChanged;_.L([_.J(_.OU),_.H("design:type",Object)],m3.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(B,c){return _.X9(B.entities,"disabledCartItemEntity",c)}}),
_.H("design:type",Object)],m3.prototype,"disabledCartItemEntity",void 0);_.L([_.F(),_.H("design:type",Object)],m3.prototype,"data",void 0);_.L([_.bF("disabledCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m3.prototype,"entityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],m3);
_.G(m3,"ytd-disabled-cart-item-renderer",function(){if(hx3!==void 0)return hx3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hx3=B},{mode:1});_.o2("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Tv=function(){var B=_.z.apply(this,arguments)||this;B.compact=!1;B.hidden=!1;B.errorHidden=!1;B.noOnTap=!1;return B};
_.w(Tv,_.z);_.a=Tv.prototype;
_.a.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"}}}};
_.a.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.a.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var B=this.firstButtonElement;B.alignByText=!0;B.iconAlignByText=!0}};
_.a.computeNoOnTap=function(B){return!B};
_.a.updateQuantityColor=function(){if(this.pickerElement){var B,c=(B=this.commerceCartItemEntity)==null?void 0:B.quantityColor;this.pickerElement.quantityColor=c}};
_.a.updateTotalPriceColor=function(){var B,c=(B=this.commerceCartItemEntity)==null?void 0:B.totalPriceColor;if(c){var x;B=_.t((x=this.data)==null?void 0:x.quantityPicker,XKF);if(x=_.t(B==null?void 0:B.price,kQ3))x.textColor=c}};
_.a.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var B,c=(B=this.commerceCartItemEntity)==null?void 0:B.isHidden;c!==void 0&&(this.hidden=c)}};
_.a.updateHideErrorMessage=function(){var B,c=(B=this.commerceCartItemEntity)==null?void 0:B.hideErrorMessage;c!==void 0&&(this.errorHidden=c)};
_.a.updateQuantity=function(){var B=this,c,x=(c=this.commerceCartItemEntity)==null?void 0:c.quantity,P;c=(P=this.commerceCartItemEntity)==null?void 0:P.totalPrice;if(x){this.updateTotalPriceColor();this.updateQuantityColor();var Y;P=_.t((Y=this.data)==null?void 0:Y.quantityPicker,XKF);if(Y=_.t(P==null?void 0:P.price,kQ3))Y.text=c?{simpleText:c.content}:void 0;if(c=_.t(P==null?void 0:P.picker,nk9))c.quantity=x;var g;if(Y=(g=_.t(P==null?void 0:P.picker,j8F))==null?void 0:g.entries){g=!1;c=void 0;Y=
_.p(Y);for(P=Y.next();!P.done;P=Y.next())P=P.value,P.dropdownItemRenderer&&(c||(c=P.dropdownItemRenderer),P.dropdownItemRenderer.isSelected=!1,x===P.dropdownItemRenderer.int32Value&&(g=!0,P.dropdownItemRenderer.isSelected=!0));!g&&c&&(c.isSelected=!0)}_.fl(this,function(){var k;B.set("data.quantityPicker",_.wW.unsafeClone((k=B.data)==null?void 0:k.quantityPicker))})}};
Tv.prototype.onYtRendererstamperFinished=Tv.prototype.onYtRendererstamperFinished;Tv.prototype.entityChanged=Tv.prototype.entityChanged;_.L([_.F(),_.H("design:type",Object)],Tv.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Tv.prototype,"compact",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Tv.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(B,c){return _.X9(B.entities,"commerceCartItemEntity",c)}}),
_.H("design:type",Object)],Tv.prototype,"commerceCartItemEntity",void 0);_.L([_.F(),_.H("design:type",Object)],Tv.prototype,"quantityPicker",void 0);_.L([_.F(),_.H("design:type",Object)],Tv.prototype,"compactQuantityPicker",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Tv.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Tv.prototype,"errorHidden",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.H("design:type",Object)],Tv.prototype,"noOnTap",void 0);_.L([_.jr("ytd-commerce-cart-item-quantity-picker-renderer"),_.H("design:type",Object)],Tv.prototype,"pickerElement",void 0);_.L([_.jr("yt-button-renderer"),_.H("design:type",Element)],Tv.prototype,"firstButtonElement",void 0);
_.L([_.bF("commerceCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tv.prototype,"entityChanged",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tv.prototype,"onYtRendererstamperFinished",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Tv);
_.G(Tv,"ytd-commerce-cart-item-renderer",function(){if(C0t!==void 0)return C0t;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return C0t=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var m1Z;var TS3;var Vg=function(){return _.z.apply(this,arguments)||this};
_.w(Vg,_.z);Vg.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}}}}}};
Vg.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Vg.prototype.updateCheckoutLineItems=function(){var B,c=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.checkoutLineItems;c&&(B=c.map(function(x){a:{var P=x.price,Y=x.description;switch(x.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":x={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ms(Y),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:Ms(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:x={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ms(Y),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:Ms(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 x}),this.set("data.summaryLineItems",B))};
Vg.prototype.updateIsHidden=function(){var B,c=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isHidden;c!==void 0&&(this.hostElement.hidden=c)};
Vg.prototype.entityChanged=Vg.prototype.entityChanged;_.L([_.J(_.OU),_.H("design:type",Object)],Vg.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Vg.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Vg.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:hMY}),_.H("design:type",Object)],Vg.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.bF("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vg.prototype,"entityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Vg);
_.G(Vg,"ytd-commerce-cart-summary-renderer",function(){if(TS3!==void 0)return TS3;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return TS3=B},{mode:1});var VtQ={};VtQ.InjectBehavior=[HGx.InjectBehavior];var tt3;var w9W;var tC=function(){return _.z.apply(this,arguments)||this};
_.w(tC,_.z);
tC.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:_.Qf("menuRenderer")}}};
tC.prototype.onMenuTap=function(B){B.stopPropagation()};
_.AJ.Object.defineProperties(tC.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 B,c;return!(((B=this.data)==null||!B.sectionHeading)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var B,c;return!(((B=this.data)==null||!B.image)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var B,c;return!(((B=this.data)==null||!B.menu)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.aHZ.YtTappableItemBehavior),_.H("design:type",Object)],tC.prototype,"ytTappableItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tC.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.accessibilityData"),_.H("design:type",String),_.H("design:paramtypes",[])],tC.prototype,"ariaLabel",null);_.L([_.Q("data.sectionHeading","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tC.prototype,"sectionHeadingVisible",null);_.L([_.Q("data.image","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tC.prototype,"imageVisible",null);
_.L([_.Q("data.menu","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tC.prototype,"menuVisible",null);_.L([_.Em({is:"yt-activity-item-renderer",disableElementRegistration:!0})],tC);
_.G(tC,"yt-activity-item-renderer",function(){if(w9W===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;tt3===void 0&&(tt3=document.createElement("template"));var P=tt3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);w9W=B}B=w9W;return B},{mode:2});var NSI;var IHn;var JL3;var W64;var wm=function(){return _.z.apply(this,arguments)||this};
_.w(wm,_.z);
wm.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"}}}}};
wm.prototype.backgroundColorChanged_=function(){var B,c=(B=this.data)==null?void 0:B.backgroundColor;this.hostElement.style.backgroundColor=sw[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
wm.prototype.backgroundColorChanged_=wm.prototype.backgroundColorChanged_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wm.prototype,"data",void 0);
_.L([_.bF("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wm.prototype,"backgroundColorChanged_",null);_.L([_.Em({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],wm);
_.G(wm,"yt-offer-item-upsell-renderer",function(){if(W64===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;JL3===void 0&&(JL3=document.createElement("template"));var P=JL3;x.call(c,P.content.cloneNode(!0),B.content.firstChild);W64=B}B=W64;return B},{mode:2});_.o2("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var NW=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};B.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return B};
_.w(NW,_.z);_.a=NW.prototype;
_.a.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:_.Qf("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.a.computeContainerStyle_=function(B){return B};
_.a.computeContainerIsHidden_=function(B){return B&&!!B.isHidden};
_.a.computeShowSpinner_=function(B,c){return B&&c==="in-progress"};
_.a.computeShowMoreContentsButton_=function(B,c,x,P,Y){return!(!(P&&P.length||Y&&Y.length&&x)||!B||c)};
_.a.onToggleButton_=function(B){var c=this;B.stopPropagation();this.isExpanded_=B.detail&&B.detail.toggled;var x,P;this.isExpanded_&&!this.data.continuationSection.length&&((x=this.data)==null?0:(P=x.continuation)==null?0:P.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.aJ(this.hostElement,"yt-load-next-continuation",function(Y){return c.getContinuationUrl_(c.data.continuation.onClickContinuationData,Y)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.kC(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.a.onShowMoreContentsButtonClicked_=function(B){var c=this;B.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.aJ(this.hostElement,"yt-load-next-continuation",function(x){return c.getContinuationUrl_(c.data.continuations[0].nextContinuationData,x)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.kC(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.a.getContinuationUrl_=function(B,c){var x=B.continuation;B=B.clickTrackingParams;var P=_.Wf();B&&P&&_.fW(P,_.VF(B));return _.AR(c,{continuation:x})};
_.a.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var B=_.Y9(this.hostElement).querySelector("#continuation-section");B&&(B=B.querySelectorAll("ytmusic-item-section-renderer"))&&B.forEach(function(c){return c.classList.add("memberships-and-purchases")})};
_.a.dataChanged_=function(){var B;this.isExpanded_=!((B=this.data)==null||!B.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.a.updateCardOnClickCommand_=function(B){B=_.t(B,Bd4);var c,x;this.data&&((c=this.data)==null?0:c.targetId)&&B&&B.targetId===((x=this.data)==null?void 0:x.targetId)&&B.onClickCommand&&(this.data.onClickCommand=B.onClickCommand,this.isOnClickCommand_=!0)};
_.a.backgroundColorChanged_=function(){var B,c=(B=this.data)==null?void 0:B.backgroundColor;this.hostElement.style.backgroundColor=sw[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
NW.prototype.backgroundColorChanged_=NW.prototype.backgroundColorChanged_;NW.prototype.dataChanged_=NW.prototype.dataChanged_;NW.prototype.nextContinuationDataUpdated_=NW.prototype.nextContinuationDataUpdated_;NW.prototype.onToggleButton_=NW.prototype.onToggleButton_;_.L([_.J(_.Hz),_.H("design:type",Object)],NW.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],NW.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],NW.prototype,"ytNextContinuationBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.L([_.J(VtQ.InjectBehavior),_.H("design:type",Object)],NW.prototype,"injectBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],NW.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],NW.prototype,"compact",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],NW.prototype,"isExpanded_",void 0);_.L([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.H("design:type",String)],NW.prototype,"containerStyle_",void 0);_.L([_.F({value:"not-started"}),_.H("design:type",String)],NW.prototype,"continuationStatus_",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.H("design:type",Boolean)],NW.prototype,"showSpinner_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],NW.prototype,"isOnClickCommand_",void 0);_.L([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.H("design:type",Boolean)],NW.prototype,"showMoreContentsButton_",void 0);
_.L([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(B,c){return!c||B.entities?null:_.X9(B.entities,"cardItemContainerEntity",c)}}),
_.H("design:type",Object)],NW.prototype,"cardItemContainerEntity_",void 0);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],NW.prototype,"onToggleButton_",null);_.L([_.nF("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NW.prototype,"nextContinuationDataUpdated_",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NW.prototype,"dataChanged_",null);_.L([_.bF("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NW.prototype,"backgroundColorChanged_",null);_.L([_.Em({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],NW);
_.G(NW,"yt-card-item-container-renderer",function(){if(IHn===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;NSI===void 0&&(NSI=document.createElement("template"));var P=NSI;x.call(c,P.content.cloneNode(!0),B.content.firstChild);IHn=B}B=IHn;return B},{mode:2});var IT=function(){return _.z.apply(this,arguments)||this};
_.w(IT,_.z);IT.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"}}}};
IT.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
IT.prototype.computeLoadingHidden=function(){var B;return!((B=this.commerceCartPageStateEntity)==null?0:B.cartActionInProgress)};
IT.prototype.updateNotification=function(){var B,c=(B=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:B.summaryText;c&&this.set("data.cartNotification",Ms(c))};
IT.prototype.notificationEntityChanged=IT.prototype.notificationEntityChanged;_.L([_.J(_.OU),_.H("design:type",Object)],IT.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],IT.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],IT.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(B,c){return _.X9(B.entities,"commerceCartExpandableNotificationEntity",c)}}),
_.H("design:type",Object)],IT.prototype,"commerceCartExpandableNotificationEntity",void 0);_.L([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(B,c){return _.X9(B.entities,"commerceCartPageStateEntity",c)}}),
_.H("design:type",Object)],IT.prototype,"commerceCartPageStateEntity",void 0);_.L([_.jr("#spinner"),_.H("design:type",HTMLElement)],IT.prototype,"spinner",void 0);_.L([_.bF("commerceCartExpandableNotificationEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"notificationEntityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],IT);
_.G(IT,"ytd-commerce-cart-renderer",function(){if(m1Z!==void 0)return m1Z;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return m1Z=B},{mode:1});var lHd;var JC=function(){var B=_.z.apply(this,arguments)||this;B.bigImage=!1;return B};
_.w(JC,_.z);_.AJ.Object.defineProperties(JC.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.placeholderImageUrl}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JC.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],JC.prototype,"bigImage",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JC.prototype,"placeholderImageUrl",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],JC);
_.G(JC,"ytd-empty-product-shelf-renderer",function(){if(lHd!==void 0)return lHd;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lHd=B},{mode:1});var EQI;var WU=function(){var B=_.z.apply(this,arguments)||this;B.itemStyle="link-item";B.watchMetadataRefresh=!1;B.skinnyMode=!1;B.metaPanel=!1;B.inStructuredDescription=!1;B.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};B.updateOnResizeDebouncer=null;return B};
_.w(WU,_.z);_.a=WU.prototype;_.a.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.a.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"}}}}};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.a.attachVEs=function(B){B.trackingParams&&_.q_().graftServerVe(B.trackingParams)};
_.a.handleUpdateMerchShelfAction=function(B){var c=this,x=_.t(B.updateMerchandiseShelfAction.merchandiseShelf,_.Ftd);x&&(x.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){c.attachVEs(x);c.data=x},Number(x.renderDelayMs))):(this.attachVEs(x),this.data=x))};
_.a.updateOnResize=function(){if(this.JSC$14765_scrollContainer!==void 0&&this.JSC$14765_scrollContainer.clientWidth!==0&&this.items!==void 0){var B=this.JSC$14765_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-B));this.ytdHorizontalListBehavior.reposition_();var c;switch((c=this.data)==null?void 0:c.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var x,
P;((x=this.data)==null?void 0:(P=x.items)==null?void 0:P.length)===1?this.itemStyle="cta-item":this.itemStyle=B>=740?"large-item":"small-item"}}};
_.a.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.s5(this.updateOnResizeDebouncer,_.uY.after(100),this.updateOnResize)};
WU.prototype.debouncedUpdateOnResize=WU.prototype.debouncedUpdateOnResize;WU.prototype.dataChanged=WU.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],WU.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],WU.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],WU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],WU.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],WU.prototype,"itemStyle",void 0);_.L([_.F({value:6}),_.H("design:type",Number)],WU.prototype,"initialCount",void 0);
_.L([_.F({value:"data.items"}),_.H("design:type",String)],WU.prototype,"itemsPath",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],WU.prototype,"watchMetadataRefresh",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],WU.prototype,"skinnyMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],WU.prototype,"metaPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],WU.prototype,"inStructuredDescription",void 0);
_.L([_.jr("#items"),_.H("design:type",HTMLDivElement)],WU.prototype,"items",void 0);_.L([_.jr("#scroll-container"),_.H("design:type",HTMLDivElement)],WU.prototype,"JSC$14765_scrollContainer",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WU.prototype,"dataChanged",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WU.prototype,"debouncedUpdateOnResize",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],WU);
_.G(WU,"ytd-merch-shelf-renderer",function(){if(EQI!==void 0)return EQI;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EQI=B},{mode:2});var OJF;var l1=function(){var B=_.z.apply(this,arguments)||this;B.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 B};
_.w(l1,_.z);_.a=l1.prototype;
_.a.addBackstagePostAction=function(B){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(B=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",B))&&(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:B}):this.set("data.contents",[{backstagePostThreadRenderer:B}]))};
_.a.addBackstageCommentAction=function(B){var c=this.get("addBackstageCommentAction.parentId",B);B=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",B);if(c&&B){c=this.postIdToIndices(c);for(var x=0;x<c.length;x++){var P=c[x];if(P<0)break;P="data.contents."+P+".backstagePostThreadRenderer.comments";this.get(P)&&(this.get(P+".backstageCommentsRenderer.contents")&&this.push(P+".backstageCommentsRenderer.contents",{commentThreadRenderer:B}),this.get(P+".backstageCommentsRenderer.teaserContents")?
this.push(P+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:B}):this.set(P+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:B}]))}}};
_.a.addBackstageReplyAction=function(B){var c=this.get("addBackstageReplyAction.parentId",B);B=this.get("addBackstageReplyAction.renderer.commentRenderer",B);c&&B&&this.setCreatorReply(c,B)};
_.a.banAuthorAction=function(B){var c=this.get("banAuthorAction.commentId",B);c&&(B=this.get("banAuthorAction.parentCommentId",B)||this.getParentPostId(c),this.removeFromStream(c,B))};
_.a.hideReportedCommentAction=function(B){var c=this.get("hideReportedCommentAction.commentId",B);c&&((B=this.get("hideReportedCommentAction.parentCommentId",B))||(B=this.getParentPostId(c)),this.removeFromStream(c,B))};
_.a.replaceBackstageCommentAction=function(B){var c=this.get("replaceBackstageCommentAction.commentId",B),x=this.get("replaceBackstageCommentAction.parentId",B);B=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",B);if(c&&x&&B){x=this.postIdToIndices(x);for(var P=0;P<x.length;P++){var Y=x[P];if(Y<0)break;var g=this.commentIdToIndex(c,Y,!1);if(g>=0){var k=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
k&&(B.replies={commentRepliesRenderer:k});this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:B})}g=this.commentIdToIndex(c,Y,!0);if(g>=0){if(k=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))B.replies={commentRepliesRenderer:k};this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:B})}}}};
_.a.replaceBackstagePostAction=function(B){var c=this.get("replaceBackstagePostAction.itemId",B);if(c){c=this.postIdToIndices(c);for(var x=0;x<c.length;x++){var P=c[x];if(P<0)break;var Y=this.getPostRendererType(P),g=this.get("replaceBackstagePostAction.renderer."+Y,B);if(!g&&Y!=="sharedPostRenderer")break;var k=!1;g||(k=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",B));if(!g)break;var n={};k?(_.EL(n,MXm,g),this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
n)):(_.EL(n,new _.A(Y),g),this.set("data.contents."+P+".backstagePostThreadRenderer.post",n))}}};
_.a.replaceBackstageReplyAction=function(B){var c=this.get("replaceBackstageReplyAction.replyId",B),x=this.get("replaceBackstageReplyAction.parentId",B);B=this.get("replaceBackstageReplyAction.renderer.commentRenderer",B);c&&B&&x&&this.setCreatorReply(x,B)};
_.a.removeCommentAction=function(B){var c=this.get("removeCommentAction.commentId",B);if(c){var x=this.get("removeCommentAction.parentCommentId",B);x&&this.get("removeCommentAction.isCreatorReply",B)?this.setCreatorReply(x,void 0):(x||(x=this.getParentPostId(c)),this.removeFromStream(c,x))}};
_.a.setCreatorReply=function(B,c){var x=this.getParentPostId(B);if(x){x=this.postIdToIndices(x);for(var P=0;P<x.length;P++){var Y=x[P];if(Y<0)break;var g=this.commentIdToIndex(B,Y,!1);if(g>=0){var k="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=k+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";k+=".commentThreadRenderer.replies";c==void 0?(this.set(k,{}),this.set(g,!1)):(this.set(k,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),
this.set(k+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(B,Y,!0);g>=0&&(g="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,Y=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",c==void 0?(this.set(g,{}),this.set(Y,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),this.set(Y,!0)))}}};
_.a.removeFromStream=function(B,c){if(c){c=this.postIdToIndices(c);for(var x=0;x<c.length;x++){var P=c[x];if(P<0)break;var Y=this.commentIdToIndex(B,P,!1);Y>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Y,1);Y=this.commentIdToIndex(B,P,!0);Y>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Y,1);P="data.contents."+P+".backstagePostThreadRenderer.post.backstagePostRenderer";
Y=P+".backstageAttachment.pollRenderer.votedCommentId";this.get(Y)===B&&(this.set(Y,null),this.set(P+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(c=this.postIdToIndices(B).reverse(),x=0;x<c.length;x++){P=c[x];if(P<0)break;Y=this.getPostRendererType(P);var g=this.get("backstagePostThreadRenderer.post."+Y,this.data.contents[P]);g.postId===B?this.splice("data.contents",P,1):Y==="sharedPostRenderer"&&this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.gj(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.a.postIdToIndices=function(B){for(var c=[],x=0;x<this.data.contents.length;x++){var P=this.getPostRendererType(x);this.get("backstagePostThreadRenderer.post."+P+".postId",this.data.contents[x])===B&&c.push(x);if(P==="sharedPostRenderer"){var Y=this.get("backstagePostThreadRenderer.post."+P+".originalPost.backstagePostRenderer.postId",this.data.contents[x]);P=this.get("backstagePostThreadRenderer.post."+P+".originalPost.postRenderer.postId",this.data.contents[x]);Y!==B&&P!==B||c.push(x)}}return c};
_.a.commentIdToIndex=function(B,c,x){if(c<0)return-1;var P,Y,g,k,n=_.t((P=this.data)==null?void 0:(Y=P.contents)==null?void 0:(g=Y[c])==null?void 0:(k=g.backstagePostThreadRenderer)==null?void 0:k.comments,yEF);return(c=x?n==null?void 0:n.teaserContents:n==null?void 0:n.contents)&&c.length?c.findIndex(function(b){return _.t(b,KF9).comment.commentRenderer.commentId===B}):-1};
_.a.getParentPostId=function(B){B=B.split(".");if(B[1])return B[0]};
_.a.getPostRendererType=function(B){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[B])?"sharedPostRenderer":"backstagePostRenderer"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],l1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],l1.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-backstage-items"})],l1);
_.G(l1,"ytd-backstage-items",function(){if(OJF!==void 0)return OJF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return OJF=
B},{mode:1});var oQF;var QPm={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};
_.Ni({is:"ytd-comments",_template:function(){if(oQF!==void 0)return oQF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return oQF=B},
behaviors:[_.A7X.YtHostElementBehavior,_.Z4.YtPlayerListenerBehavior,_.R.YtRendererBehavior,_.s2.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.initCommentsCsi_()},
contentsChanged_:function(B){B&&B.value&&B.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(B){B&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Ep("wn_comments");var B=_.Wf();B&&_.lg({clientScreenNonce:B},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(B){B=_.wW.unsafeClone(B);var c,x,P;if(B=(c=B)==null?void 0:(x=c.createCommentAction)==null?void 0:(P=x.contents)==null?void 0:P.commentThreadRenderer){var Y,g,k,n,b,d;!this.isBackstage&&((Y=this.data)==null?0:(g=Y.header)==null?0:(k=g.commentsHeaderRenderer)==null?0:(n=k.createRenderer)==null?0:(b=n.commentSimpleboxRenderer)==null?0:(d=b.zeroStep)==null?0:d.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var q,C,h,V;this.isBackstage&&((q=this.data)==null?0:(C=q.header)==null?0:(h=C.commentsHeaderRenderer)==null?0:(V=h.zeroStateMessage)==null?0:V.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(B)}},
doReplyInsert_:function(B,c,x,P){P?this.splice(B,P,0,c):this.push(B,c)},
getRepliesPath_:function(B){return"data.contents."+B+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(B,c){B=this.getRepliesPath_(B);return c?B+".commentRepliesRenderer.teaserContents":B+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(B){B=_.wW.unsafeClone(B);var c,x,P=(c=B)==null?void 0:(x=c.createCommentReplyAction)==null?void 0:x.parentCommentId,Y,g;if(c=(Y=B)==null?void 0:(g=Y.createCommentReplyAction)==null?void 0:g.contents)if(P=this.commentIdToIndex_(P),!(P<0))if(Y=this.getRepliesPath_(P),this.get(Y)){var k,n;B=(k=B)==null?void 0:(n=k.createCommentReplyAction)==null?void 0:n.replyToCommentId;k=this.getRepliesContentsPath_(P,!1);this.get(k)&&(n=this.get(k).length,Y=k+"."+(n-1)+".continuationItemRenderer",
this.get(Y+".button")?(Y=this.replyIdToIndex_(B,P,!1),this.doReplyInsert_(k,c,Y,n-1)):this.get(Y)||(n=this.replyIdToIndex_(B,P,!1),this.doReplyInsert_(k,c,n,null)));k=this.getRepliesContentsPath_(P,!0);this.get(k)?(P=this.replyIdToIndex_(B,P,!0),(!B||P>=0)&&this.doReplyInsert_(k,c,P,null)):this.set(k,[c])}else this.set(Y,{commentRepliesRenderer:{teaserContents:[c]}})},
hideReportedCommentAction_:function(B){var c,x=B==null?void 0:(c=B.hideReportedCommentAction)==null?void 0:c.commentId;if(x){var P;B=B==null?void 0:(P=B.hideReportedCommentAction)==null?void 0:P.parentCommentId;x=x.replace("#",".");B||(B=this.getParentCommentId_(x));this.remove_(x,B)}},
getParentCommentId_:function(B){B=B.split(".");if(B[1])return B[0]},
removeCommentAction_:function(B){var c,x=B==null?void 0:(c=B.removeCommentAction)==null?void 0:c.commentId;if(x){var P;B=B==null?void 0:(P=B.removeCommentAction)==null?void 0:P.parentCommentId;x=x.replace("#",".");B||(B=this.getParentCommentId_(x));this.remove_(x,B)}},
pinCommentAction_:function(B){B=_.wW.unsafeClone(B);var c,x,P=(c=B)==null?void 0:(x=c.pinCommentAction)==null?void 0:x.commentId;P&&(B=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",B))&&(this.remove_(P),this.insert_(B,!0))},
unpinCommentAction_:function(B){B=_.wW.unsafeClone(B);var c,x,P=(c=B)==null?void 0:(x=c.unpinCommentAction)==null?void 0:x.commentId;if(P){var Y,g,k;if(B=(Y=B.unpinCommentAction)==null?void 0:(g=Y.actionResult)==null?void 0:(k=g.update)==null?void 0:k.commentThreadRenderer)this.remove_(P),this.insert_(B)}},
banAuthorAction_:function(B){var c,x=B==null?void 0:(c=B.banAuthorAction)==null?void 0:c.commentId;if(x){var P;B=B==null?void 0:(P=B.banAuthorAction)==null?void 0:P.parentCommentId;x=x.replace("#",".");B||(B=this.getParentCommentId_(x));this.remove_(x,B)}},
commentIdToIndex_:function(B){var c;return B&&(c=this.data)!=null&&c.contents?this.data.contents.findIndex(function(x){var P,Y;return B===((x==null?void 0:(P=x.commentThreadRenderer)==null?void 0:P.commentViewModel)&&((Y=_.t(x.commentThreadRenderer.commentViewModel,CJn))==null?void 0:Y.commentId))}):-1},
insert_:function(B,c){var x,P;if((x=this.data)==null?0:(P=x.contents)==null?0:P.some(function(g){return!(g==null||!g.commentThreadRenderer)}))for(x=0,P=this.data.contents.length;x<P;x++){var Y=this.data.contents[x].commentThreadRenderer;
if(QPm[B.renderingPriority]>=QPm[Y.renderingPriority]){c&&QPm[B.renderingPriority]==QPm[Y.renderingPriority]?this.splice("data.contents",x,1,{commentThreadRenderer:B}):this.splice("data.contents",x,0,{commentThreadRenderer:B});break}}else this.set("data.contents",[{commentThreadRenderer:B}])},
doReplyRemove_:function(B,c,x){B=this.replyIdToIndex_(B,c,x);B<0||(c=this.getRepliesContentsPath_(c,x),this.splice(c,B,1))},
remove_:function(B,c){c=this.commentIdToIndex_(c);c<0?(c=this.commentIdToIndex_(B),c<0||this.splice("data.contents",c,1)):(this.doReplyRemove_(B,c,!1),this.doReplyRemove_(B,c,!0))},
replyIdToIndex_:function(B,c,x){if(c<0)return-1;c=this.getRepliesContentsPath_(c,x);c=this.get(c);if(!c||!c.length)return-1;x=0;for(var P=c.length;x<P;x++){var Y=void 0,g=void 0;if(((Y=c[x])==null?void 0:(g=Y.commentViewModel)==null?void 0:g.commentId)===B)return x}return-1},
computeIsBackstage_:function(B){return!!B},
tickForCommentsTimer_:function(B){_.oJ(B,void 0,"wn_comments")},
reloadComments_:function(B){B=_.t(B,dyQ);var c;(B==null?0:(c=B.command)==null?0:c.continuationCommand)&&_.kC(this,[B.command])}});var Ew=function(){return _.dM.apply(this,arguments)||this};
_.w(Ew,_.dM);_.a=Ew.prototype;_.a.bindIf=function(B,c,x){return B?c:x};
_.a.bindIfDefined=function(B,c){return B!==void 0?B:c};
_.a.booleanString=function(B){return(!!B).toString()};
_.a.equals=function(){for(var B=_.ts.apply(0,arguments),c=B[0],x=1;x<B.length;x++)if(c!=B[x])return!1;return!0};
_.a.isGreaterThan=function(B,c){return B>c};
_.a.isLessThan=function(B,c){return B<c};
_.a.logicalAND=function(){for(var B=_.ts.apply(0,arguments),c=!!B[0],x=1;x<B.length;x++)c=c&&!!B[x];return c};
_.a.logicalOR=function(){for(var B=_.ts.apply(0,arguments),c=!!B[0],x=1;x<B.length;x++)c=c||!!B[x];return c};
_.a.toBool=function(B){return!!B};
Ew.prototype.toBool=Ew.prototype.toBool;Ew.prototype.logicalOR=Ew.prototype.logicalOR;Ew.prototype.logicalAND=Ew.prototype.logicalAND;Ew.prototype.isLessThan=Ew.prototype.isLessThan;Ew.prototype.isGreaterThan=Ew.prototype.isGreaterThan;Ew.prototype.equals=Ew.prototype.equals;Ew.prototype.booleanString=Ew.prototype.booleanString;Ew.prototype.bindIfDefined=Ew.prototype.bindIfDefined;Ew.prototype.bindIf=Ew.prototype.bindIf;_.L([_.qi()],Ew);_.F6d=[Ew.prototype];var vQ0;var zxm;var Ow=function(){return _.z.apply(this,arguments)||this};
_.w(Ow,_.z);Ow.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Ow.prototype.onBackIconTap_=function(){window.history.back()};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ow.prototype,"data",void 0);_.L([_.Em({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Ow);
_.G(Ow,"yt-header-with-back-renderer",function(){if(zxm===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;vQ0===void 0&&(vQ0=document.createElement("template"));var P=vQ0;x.call(c,P.content.cloneNode(!0),B.content.firstChild);zxm=B}B=zxm;return B},{mode:2});var SSd;var yLS;var oT=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(oT,_.z);_.a=oT.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B,this.setUrl())};
_.a.dataChanged=function(){var B=this;if(this.data){var c=this.setUrl();c&&_.BJ({destination:window,iframe:this.iframe,origin:_.O40(c.toString()),channelName:"yt-iframe",onMessage:function(x){(x=B.getCommunicationCommand(x.data))&&B.ytComponentBehavior.resolveCommand(x)},
onEstablished:function(){}})}};
_.a.setUrl=function(){if(this.data&&this.data.iframeUrl){var B=_.OE(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(B)return _.EG(this.iframe,B),B}};
_.a.getCommunicationCommand=function(B){var c;if((c=this.data)!=null&&c.onCommunicationCommandsMap){c=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===B});
if(c==null?0:c.value)return c==null?void 0:c.value;try{var x=HVt(_.kF(B)),P=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===(x==null?void 0:_.OZ(x,1))});
if(P==null?0:P.value)return P==null?void 0:P.value}catch(Y){}}};
oT.prototype.dataChanged=oT.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],oT.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oT.prototype,"data",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],oT.prototype,"isDarkTheme",void 0);_.L([_.jr("#iframe"),_.H("design:type",HTMLIFrameElement)],oT.prototype,"iframe",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oT.prototype,"dataChanged",null);_.L([_.Em({is:"yt-iframe-renderer",disableElementRegistration:!0})],oT);
_.G(oT,"yt-iframe-renderer",function(){if(yLS===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;SSd===void 0&&(SSd=document.createElement("template"));var P=SSd;x.call(c,P.content.cloneNode(!0),B.content.firstChild);yLS=B}B=yLS;return B},{mode:2});_.Qg=function(B){_.tG.call(this);this.callback=B;this.bezier=new mAm(0,0,.4,0,.2,1,1,1);this.delay=new _.rY(this.next,window,this);this.JSC$14796_animating=!1;_.bW(this,this.delay)};
_.w(_.Qg,_.tG);_.Qg.prototype.isAnimating=function(){return this.JSC$14796_animating};
_.Qg.prototype.start=function(B,c,x){this.config={from:B,to:c,duration:x,startTime:(0,_.BA)()};this.JSC$14796_animating=!0;this.next()};
_.Qg.prototype.stop=function(){this.delay.stop();this.JSC$14796_animating=!1;this.config=void 0};
_.Qg.prototype.next=function(){if(this.config){var B=this.config,c=B.from,x=B.to,P=B.duration;B=B.startTime;var Y=(0,_.BA)()-B;B=this.bezier;P=VFm(B,Y/P);if(P==0)B=B.y0;else if(P==1)B=B.y3;else{Y=T1(B.y0,B.y1,P);var g=T1(B.y1,B.y2,P);B=T1(B.y2,B.y3,P);Y=T1(Y,g,P);g=T1(g,B,P);B=T1(Y,g,P)}B=_.vi(B,0,1);this.callback(c+(x-c)*B);B<1?this.delay.start():this.JSC$14796_animating=!1}};_.Fc=new _.BL("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var G93={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},L6I=function(B,c,x,P){_.tG.call(this);this.JSC$14804_miniAppId=B;this.localReleaseId=c;this.derivedDeviceInterface=x;this.isForeground=P;this.JSC$14804_playNonceResolver=new _.kH;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Yu("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Yu("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.T("enable_displaying_ppn");this.JSC$14804_miniAppClientDataProvider=_.cp().resolve(_.Fc);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;MtS(this);var Y=setTimeout(function(){_.Ob(new _.mc("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14804_playNonceResolver.promise.then(function(){clearTimeout(Y)})};
_.w(L6I,_.tG);var HJy=function(B,c){B.JSC$14804_playNonceResolver.resolve(c!=null?c:Np(8));B.enableDisplayingPpn&&ZJQ(B).then(function(x){B.JSC$14804_miniAppClientDataProvider.clientData.set("post_play_nonce",x)})},ZJQ=function(B){return _.X(function(c){return c.nextAddress==1?_.K(c,B.JSC$14804_playNonceResolver.promise,2):c.return(c.yieldResult)})},MtS=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$14804_playNonceResolver.promise,2);c=P.yieldResult;x={miniAppInfo:{externalPostId:B.JSC$14804_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:c,derivedDeviceInterface:B.derivedDeviceInterface}};_.lg(x);_.Kq(P)})},iJ0=function(B){B.state!==0?_.Ob(new _.mc("[MiniAppPlayLogger] recordPlayStart failed with state "+G93[B.state])):(B.state=1,vU(B,"ma_cl"),zv(B,"PLAY_EVENT_TYPE_PLAY_START"),fH5(B))},AL0=function(B){B.isForeground=!1;
zv(B,"PLAY_EVENT_TYPE_PLAY_PAUSE")},uG5=function(B){B.state!==1&&B.state!==2?_.Ob(new _.mc("[MiniAppPlayLogger] recordPlayEnd failed with state "+G93[B.state])):(B.state=3,window.clearInterval(B.playPingTimerId),B.playPingTimerId=NaN,RB7(),zv(B,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},D14=function(B,c){B.state===2&&B.gameReady&&(B.firstClickRecorded?Date.now()-B.clickRecordedMs<B.playClickIntervalMs||(B.clickRecordedMs=Date.now(),zv(B,"PLAY_EVENT_TYPE_PLAY_CLICK")):c&&(vU(B,"ma_fua"),zv(B,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),B.firstClickRecorded=!0,B.clickRecordedMs=Date.now()))};
L6I.prototype.logError=function(B){var c=this,x;_.X(function(P){if(P.nextAddress==1)return B.metadata.externalPostId=c.JSC$14804_miniAppId,x=B.metadata,_.K(P,Promise.race([c.JSC$14804_playNonceResolver.promise,new Promise(function(Y){setTimeout(function(){Y("")},3E4)})]),2);
x.postPlayNonce=P.yieldResult;B.metadata.localReleaseId=c.localReleaseId;B.loggingError.level="WARNING";_.lb(B.loggingError,B.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:B.metadata});_.Kq(P)})};
var rL3=function(B,c,x,P){var Y,g,k,n,b,d;_.X(function(q){if(q.nextAddress==1)return _.K(q,B.JSC$14804_playNonceResolver.promise,2);Y=q.yieldResult;g={externalPostId:B.JSC$14804_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:Y,sdkVersion:x,api:c};P!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.Ph(P,1),cachedRequests:_.Ph(P,2),transferredBytes:_.Ph(P,3)},(k=P)==null?0:_.mF(k,eg,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((n=_.PA(P,
eg,6))==null?void 0:Ql(n,1))||"0",cacheHits:((b=_.PA(P,eg,6))==null?void 0:Ql(b,2))||"0",cachedBytes:((d=_.PA(P,eg,6))==null?void 0:Ql(d,3))||"0"});_.JP("miniAppSdkUsage",g);_.Kq(q)})},ext=function(B,c,x){var P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M;
_.X(function(f){if(f.nextAddress==1)return _.K(f,B.JSC$14804_playNonceResolver.promise,2);P=f.yieldResult;Y={externalPostId:B.JSC$14804_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:P,sdkVersion:x,measurementWindow:{startTimestampMs:String(lJ(c,1)),endTimestampMs:String(lJ(c,2))},frameRate:{averageFrameTimeDeltaMs:EZ(c,3),averageFrameIdleTimeMs:EZ(c,4)}};_.mF(c,B7,5)&&(Y.networkRequests={networkRequests:(g=sP(c))==null?void 0:_.Ph(g,1),cachedRequests:(k=sP(c))==null?void 0:_.Ph(k,2),transferredBytes:(n=
sP(c))==null?void 0:_.Ph(n,3),sameOriginStatusCodeToCounts:RxW((b=sP(c))==null?void 0:cc$(b,4)),crossOriginStatusCodeToCounts:RxW((d=sP(c))==null?void 0:cc$(d,5))},(q=sP(c))==null?0:_.mF(q,eg,6))&&(Y.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((C=sP(c))==null?void 0:(h=_.PA(C,eg,6))==null?void 0:Ql(h,1))||"0",cacheHits:((V=sP(c))==null?void 0:(N=_.PA(V,eg,6))==null?void 0:Ql(N,2))||"0",cachedBytes:((l=sP(c))==null?void 0:(E=_.PA(l,eg,6))==null?void 0:Ql(E,3))||"0"});_.mF(c,
vEd,7)&&(Y.gameCapture={averageFrameTimeDeltaMs:(S=_.PA(c,vEd,7))==null?void 0:EZ(S,1),averageFrameIdleTimeMs:(M=_.PA(c,vEd,7))==null?void 0:EZ(M,2)});_.JP("miniAppPerformanceMetrics",Y);_.Kq(f)})},BuW=function(B,c,x){var P,Y;
return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.JSC$14804_playNonceResolver.promise,2);P=g.yieldResult;Y={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:B.JSC$14804_miniAppId,postPlayNonce:P,miniAppReleaseId:B.localReleaseId},derivedDeviceInterface:B.derivedDeviceInterface,adTriggerType:c};Y.rejectedReason=x||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.JP("miniAppAdEvent",Y);_.Kq(g)})};
L6I.prototype.disposeInternal=function(){_.tG.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var zv=function(B,c,x,P){x=x===void 0?{}:x;P=P===void 0?!1:P;var Y,g,k,n;_.X(function(b){if(b.nextAddress==1)return Y=B.isForeground,g=B.beforeReady,_.K(b,B.JSC$14804_playNonceResolver.promise,2);k=b.yieldResult;n={externalPostId:B.JSC$14804_miniAppId,localReleaseId:B.localReleaseId,derivedDeviceInterface:B.derivedDeviceInterface,postPlayNonce:k,type:c};x.sequenceGroup=k;n.playState=g?"PLAY_STATE_NOT_READY":Y?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.JP("miniAppPlayEvent",n,x);
P&&_.Wo();_.Kq(b)})},vU=function(B,c){var x;
_.X(function(P){if(P.nextAddress==1)return x=(0,_.BA)(),_.K(P,B.JSC$14804_playNonceResolver.promise,2);_.Op(c,x);_.Kq(P)})},fH5=function(B){isNaN(B.playPingTimerId)&&(B.playPingTimerId=_.ku(function(){B.state!==1&&B.state!==2?_.Ob(new _.mc("[MiniAppPlayLogger] reportPlayPing failed with state "+G93[B.state])):zv(B,"PLAY_EVENT_TYPE_PLAY_PING")},B.playPingIntervalMs))},RxW=function(B){return Array.from(B.entries()).map(function(c){var x=_.p(c);
c=x.next().value;x=x.next().value;return{key:c,value:x}})};var cqt=_.Yu("show_mini_app_ad_frequency_cap_ms",0),xGW=function(){this.showAdIntervalMs=cqt;this.isRateLimited=!0},Pod=function(B,c){setTimeout(function(){return B.isRateLimited=!1},B.showAdIntervalMs);
B.showMiniAppAdCommand=c.showMiniAppAdCommand;B.isEmbeddedInWebview=c.isEmbeddedInWebview;B.playLogger=c.playLogger},a2F=function(B,c){var x;
return _.X(function(P){if(P.nextAddress==1){if(!B.showMiniAppAdCommand||!B.isEmbeddedInWebview)return P.return(YKW(B,c,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(B.isRateLimited)return P.return(YKW(B,c,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));B.adResolver=new _.kH;x=PKF(new OP,c);Zs(B.showMiniAppAdCommand,YVm(x));B.isRateLimited=!0;setTimeout(function(){return B.isRateLimited=!1},B.showAdIntervalMs);
return _.K(P,B.adResolver.promise,2)}return P.return(P.yieldResult)})};
xGW.prototype.onAdFinished=function(B){B=KTQ(B);var c;(c=this.adResolver)==null||c.resolve(B)};
var YKW=function(B,c,x){var P;return _.X(function(Y){if(Y.nextAddress==1)Y=_.K(Y,(P=B.playLogger)==null?void 0:BuW(P,XQX(c),x),2);else{var g=Y.return;var k=new b2n;k=_.Yr(k,1,2);Y=g.call(Y,k)}return Y})};var ged=new _.BL("INNERTUBE_MANAGER_TOKEN");var s44=function(){this.callbacks={}};
s44.prototype.initialize=function(B){var c=this;this.callbacks=B;window.youtubewebview?window.youtubewebview.onmessage=function(x){pOQ(c,x)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(x){pOQ(c,x)})};
var pOQ=function(B,c){if(c.data)try{var x=HVt(c.data);if(_.MN(_.hd(x,1))!=null){var P=rem(_.OZ(x,2));switch(_.OZ(x,1)){case "yt-mini-app-load-audio-state":var Y,g;(g=(Y=B.callbacks).onAudioStateLoaded)==null||g.call(Y,_.WG(P,CE(P,EP,1)));break;case "yt-mute-mini-app":var k,n;(n=(k=B.callbacks).onMuteMiniApp)==null||n.call(k);break;case "yt-unmute-mini-app":var b,d;(d=(b=B.callbacks).onUnmuteMiniApp)==null||d.call(b);break;case "yt-playable-exit":var q,C;(C=(q=B.callbacks).onExit)==null||C.call(q);
break;case "yt-post-play-nonce":var h,V;(V=(h=B.callbacks).onPostPlayNonceReceived)==null||V.call(h,F8(P,2,EP));break;case "yt-confirm-exit-mini-app":var N,l;(l=(N=B.callbacks).confirmExitMiniApp)==null||l.call(N);break;case "yt-confirm-exit-mini-app-edu":var E,S;(S=(E=B.callbacks).confirmExitMiniAppEdu)==null||S.call(E);break;case "yt-benchmarking-response":var M,f;(f=(M=B.callbacks).onNativeBenchmarkingMessageReceived)==null||f.call(M,F8(P,2,EP));break;case "yt-mini-app-load-3p-consent-state":var Z,
u;(u=(Z=B.callbacks).multiplayer3pAckStateLoaded)==null||u.call(Z,_.WG(P,CE(P,EP,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var e,px;(px=(e=B.callbacks).exitMiniAppSeenStateLoaded)==null||px.call(e,_.WG(P,CE(P,EP,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var kI,Ul;(Ul=(kI=B.callbacks).onNavigateToNewMiniApp)==null||Ul.call(kI);break;case "yt-game-data-available":var wC,W$;(W$=(wC=B.callbacks).onGameDataAvailable)==null||W$.call(wC,F8(P,2,EP));break;case "yt-pause-mini-app":var El,
H$;(H$=(El=B.callbacks).onPauseMiniApp)==null||H$.call(El);break;case "yt-resume-mini-app":var yw,r9;(r9=(yw=B.callbacks).onResumeMiniApp)==null||r9.call(yw);break;case "yt-playable-ad-finished":var cs,NQ;(NQ=(cs=B.callbacks).onAdFinished)==null||NQ.call(cs,F8(P,2,EP))}}else _.Ob(Error("Sh"))}catch(n4){_.lb(Error("Th"))}else _.Ob(Error("Uh"))};var nAX=function(B){this.rpcErrorCode=B};var SU=function(B,c,x){this.intervalMs=B;this.apiFunc=c;this.type=x;this.schedulerReady=!0};
SU.prototype.call=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1){if(c.type!==1&&B===c.cachedValue)return P.return();c.pendingApiRequestResolver||(c.pendingApiRequestResolver=new _.kH);x=c.pendingApiRequestResolver.promise;c.cachedValue=B;return _.K(P,kf3(c),2)}return P.return(x)})};
SU.prototype.flush=function(B){B=B===void 0?!1:B;var c=this;return _.X(function(x){return c.cachedValue===void 0?x.return():_.K(x,c.apiFunc(c.cachedValue,B),0)})};
var kf3=function(B){var c,x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:if(!B.schedulerReady||!B.pendingApiRequestResolver)return Y.return();B.schedulerReady=!1;c=B.pendingApiRequestResolver;B.pendingApiRequestResolver=void 0;_.kM(Y,2);if(B.cachedValue===void 0){Y.jumpTo(4);break}return _.K(Y,B.apiFunc(B.cachedValue),5);case 5:x=Y.yieldResult,c.resolve(x);case 4:_.Gw(Y,3);break;case 2:P=_.be(Y),c.reject(P);case 3:setTimeout(function(){return _.X(function(g){B.schedulerReady=!0;return _.K(g,
kf3(B),0)})},B.intervalMs),_.Kq(Y)}})};var jQ7=window.location.origin+"/miniapp_cloudsaves",bXx=[400,401],XO5=_.Yu("cloud_save_game_data_rate_limit_ms",3E3),bT3=function(B){var c=this;this.JSC$14848_miniAppId=B;this.loadAttempts=0;this.cloudSaveIntervalMs=XO5;this.initialDownloadDataSucceeded=!1;this.JSC$14848_playNonceResolver=new _.kH;this.scottyUploadRateLimiter=new SU(this.cloudSaveIntervalMs,function(x,P){return $GS(c,x,P)},2);
this.downloadDataPromise=nem(this);this.downloadDataPromise.then(function(){c.initialDownloadDataSucceeded=!0}).catch(function(){})},KdF=function(B,c){c.then(function(x){return B.JSC$14848_playNonceResolver.resolve(x)})},j4y=function(B){return _.X(function(c){return B.cachedData===void 0?c.return(B.downloadDataPromise):c.return(B.cachedData)})},UG0=function(B,c){return _.X(function(x){B.cachedData=c;
if(!B.initialDownloadDataSucceeded)throw Error("Vh");return _.K(x,B.scottyUploadRateLimiter.call(c),0)})},dG4=function(){return new Promise(function(B){setTimeout(B,1E3,"")})},qK3=function(B,c){var x,P;
return _.X(function(Y){if(Y.nextAddress==1)return x=B.JSC$14848_miniAppId,_.K(Y,Promise.race([B.JSC$14848_playNonceResolver.promise,dG4()]),2);P={"X-YouTube-MiniAppId":x,"X-YouTube-PostPlayNonce":Y.yieldResult};"DELEGATED_SESSION_ID"in _.Qa&&EW$(c,P);return Y.return(P)})},$GS=function(B,c,x){x=x===void 0?!1:x;
return _.X(function(P){return $qd()?_.T("enable_cloud_save_error_popup_after_retry")?P.return(new Promise(function(Y,g){var k,n,b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:k=0,n=!0,d=b=null;case 2:if(!(n&&k++<2)){C.jumpTo(4);break}_.kM(C,5);return _.K(C,Con(B,c,x),7);case 7:b=C.yieldResult;n=b.ok?!1:!bXx.includes(b.status);_.Gw(C,2);break;case 5:d=q=_.be(C);n=Kr7(d);C.jumpTo(2);break;case 4:b?b.ok?(yg(B,XO5),Y()):(yg(B,B.cloudSaveIntervalMs*2),g(Error("Wh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(yg(B,B.cloudSaveIntervalMs*2),g(d||Error("Xh"))),_.Kq(C)}})})):P.return(new Promise(function(Y,g){var k,n;
return _.X(function(b){if(b.nextAddress==1){if(B.JSC$14848_miniAppId==="")return g(Error("Yh")),b.return();_.kM(b,2);return _.K(b,Con(B,c,x),4)}if(b.nextAddress!=2)return k=b.yieldResult,k.ok?(yg(B,XO5),Y()):(yg(B,B.cloudSaveIntervalMs*2),g(Error("Wh`"+String(k.status),{cause:{rpcErrorCode:k.status}}))),_.Gw(b,0);n=_.be(b);yg(B,B.cloudSaveIntervalMs*2);g(n);_.Kq(b)})})):P.return()})},Con=function(B,c,x){x=x===void 0?!1:x;
var P,Y,g;return _.X(function(k){if(k.nextAddress==1)return P=_.PN((new TextEncoder).encode(c)),Y=Uqo(),_.K(k,qK3(B,Y),2);g=k.yieldResult;return k.return(fetch(Y,{method:"POST",body:new Blob([P]),headers:g,keepalive:x}))})},nem=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1){if(!$qd())return P.return("");if(B.JSC$14848_miniAppId==="")throw Error("Yh");if(B.loadAttempts>2)return P.return(B.downloadDataPromise);_.kM(P,2);return _.K(P,ha3(B),4)}if(P.nextAddress!=2)return c=P.yieldResult,P.return(c);x=_.be(P);if(Kr7(x)&&++B.loadAttempts<2)return P.return(nem(B));throw x;})},ha3=function(B){var c,x,P,Y,g;
return _.X(function(k){switch(k.nextAddress){case 1:return _.kM(k,2),c=Uqo(),_.K(k,qK3(B,c),4);case 4:return x=k.yieldResult,_.K(k,fetch(c,{method:"GET",headers:x}),5);case 5:return P=k.yieldResult,P.ok?_.K(k,P.text(),6):k.return(Promise.reject(Error("Zh`"+String(P.status),{cause:new nAX(P.status)})));case 6:return Y=k.yieldResult,k.return((new TextDecoder).decode(_.kF(Y)));case 2:return g=_.be(k),k.return(Promise.reject(g))}})},yg=function(B,c){B.cloudSaveIntervalMs=c;
B.scottyUploadRateLimiter.intervalMs=B.cloudSaveIntervalMs};
bT3.prototype.flush=function(){var B=this;return _.X(function(c){return B.initialDownloadDataSucceeded?_.K(c,B.scottyUploadRateLimiter.flush(!0),0):c.return()})};var mGy=aA(Y5(1),x5(1)),TuS=aA(Y5(1),x5(3)),Gv=function(B){this.callbacks=B};
_.a=Gv.prototype;_.a.onAudioToggled=function(B,c){(c===void 0||c)&&_.Xj("yt-mini-app-is-audio-enabled",B,2592E3)};
_.a.onPause=function(){this.onAudioToggled(!1,!1)};
_.a.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.a.returnNativeBenchmarkingMessage=function(){};
_.a.sendGameData=function(){};
_.a.sendStartGameFrameCapture=function(){};
var dqx=function(B,c,x){this.callbacks=B;var P=this;this.sdkVersion=new _.kH;this.channel=new vjl(_.BJ({destination:window,iframe:c,origin:(new URL(x.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Y=MW;var g=Y5(5);var k=new VnQ;k=_.zo(k,1,1E4);g=_.YX(g,4,EEy,k);Y(P,g);P.onAudioToggled(P.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){P.sdkVersion.resolve("")},1E4)};
_.w(dqx,Gv);_.a=dqx.prototype;_.a.onAudioToggled=function(B,c){Gv.prototype.onAudioToggled.call(this,B,c===void 0?!0:c);c=MW;var x=Y5(2),P=new msy;B=_.sq(P,1,B);B=_.YX(x,3,EEy,B);c(this,B)};
_.a.onPause=function(){Gv.prototype.onPause.call(this);MW(this,Y5(3))};
_.a.onResume=function(){Gv.prototype.onResume.call(this);MW(this,Y5(4))};
_.a.returnNativeBenchmarkingMessage=function(B){var c=MW,x=Y5(6);var P=x5(_.mF(B,iL,1)?1:2);B=_.mF(B,iL,1)?B:null;P=_.YX(P,5,P7,B);c(this,aA(x,P))};
_.a.sendGameData=function(B){var c=MW,x=Y5(7);B=_.YX(x,5,EEy,B);c(this,B)};
_.a.sendStartGameFrameCapture=function(){MW(this,Y5(9))};
var Lc=function(B,c,x){var P,Y,g;return _.X(function(k){if(k.nextAddress==1)return P=B.callbacks,Y=P.onSdkCalled,g=c,_.K(k,B.sdkVersion.promise,2);Y.call(P,g,k.yieldResult,x);_.Kq(k)})};
dqx.prototype.onMessage=function(){var B=this;return y$w(pV,function(c){var x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI,Ul,wC,W$,El,H$,yw,r9,cs,NQ,n4,L4,UF,uX,yr,uz,XO,qQ,lt,D8,VW,ut,M8,An;return _.X(function(g9){switch(g9.nextAddress){case 1:if(!G2S(c.data))return _.Ob(Error("$h")),g9.return();x=_.og(c.data,1);_.T("enable_iframe_message_get_type_via_fields")&&(P=c.data,x=Y=_.og(P,1));switch(x){case 8:if(c.data.hasMetadata()){var SZ=B.sdkVersion,hc=SZ.resolve;var C4=c.data.getMetadata();C4=_.OZ(C4,
1);hc.call(SZ,C4);clearTimeout(B.sdkVersionTimeoutId)}break;case 6:return g9.jumpTo(2);case 16:if(!_.To(c.data,Qvn,14,k5))return g9.return();g=_.vG(c.data,Qvn,14,k5);(n=(k=B.callbacks).onGameFrameReceived)==null||n.call(k,g);return g9.return();case 17:if(!_.To(c.data,oEn,15,k5))return g9.return();(d=(b=B.callbacks).onGameAudioReceived)==null||d.call(b,_.vG(c.data,oEn,15,k5));return g9.return();case 1:if(SZ=_.vG(c.data,NcI,2,k5))switch(_.og(SZ,1)){case 1:B.callbacks.onFirstFrameReady();if(_.T("enable_network_request_logging_on_game_events")&&
_.mF(SZ,B7,4)){Lc(B,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.PA(SZ,B7,4));break}Lc(B,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(C4=(hc=B.callbacks).onGameReady)==null||C4.call(hc);if(_.T("enable_network_request_logging_on_game_events")&&_.mF(SZ,B7,4)){Lc(B,"MINI_APP_SDK_API_GAME_READY",_.PA(SZ,B7,4));break}Lc(B,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.To(SZ,c7,3,Is9))B.callbacks.onResourceLoaded(_.vG(SZ,c7,3,Is9))}return g9.return();case 3:return g9.jumpTo(3);case 4:return g9.jumpTo(4);
case 2:return g9.jumpTo(5);case 9:return g9.jumpTo(6);case 10:return B.callbacks.onClick(),g9.return();case 5:return g9.jumpTo(7);case 11:if(!_.To(c.data,ry,9,k5))return g9.return();q=_.vG(c.data,ry,9,k5);(h=(C=B.callbacks).onBenchmarkingMessageReceived)==null||h.call(C,q);SZ=c.reply;hc=Y5(1);C4=x5(1);var I0=new ry;var bz=new Uint8Array(gtw(q,CE(q,Usm,6))|0);I0=KE(I0,5,Usm,_.Fd(bz,!1));C4=_.YX(C4,5,P7,I0);SZ.call(c,aA(hc,C4));return g9.return();case 12:return g9.jumpTo(8);case 13:return g9.jumpTo(9);
case 15:if(!_.T("enable_open_yt_content"))return c.reply(TuS),g9.return();if(!_.To(c.data,O24,12,k5))return c.reply(aA(Y5(1),x5(2))),g9.return();SZ=_.vG(c.data,O24,12,k5);V=_.OZ(SZ,1);B.callbacks.onOpenYTContent(V);c.reply(mGy);return g9.return();case 14:return g9.jumpTo(10);default:return g9.return()}g9.jumpTo(0);break;case 2:if(!_.To(c.data,gJ,5,k5))return g9.return();hc=c.data;SZ=CE(hc,k5,5);hc=hc.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(SZ=WN(hc,hc[_.mm]|0,gJ,SZ))||(SZ=gJ[Hs])||
(SZ=new gJ,w9(SZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),SZ=gJ[Hs]=SZ);N=SZ;SZ=_.ch(N,RI,1,_.xw());l=_.p(SZ);E=l.next();case 12:if(E.done){g9.jumpTo(14);break}S=E.value;M=new _.mc;M.level=_.og(S,2)===1?"WARNING":"ERROR";f=CqO(S.getSource());return _.K(g9,B.sdkVersion.promise,15);case 15:Z={source:f,sdkVersion:g9.yieldResult};_.Vr(_.hd(S,6))!=null?(M.message=S.getMessage(),M.stack=_.OZ(S,5),Z.sdkErrorType=hKC(_.og(S,6)),_.Vr(_.hd(S,7))!=null&&(Z.sdkApi=mqI(_.og(S,7)))):M.stack=void 0;
e=u=void 0;(e=(u=B.callbacks).onError)==null||e.call(u,{loggingError:M,metadata:Z});E=l.next();g9.jumpTo(12);break;case 14:return g9.return();case 3:return _.kM(g9,16),SZ=B.callbacks,hc=SZ.onSave,C4=_.vG(c.data,Tcn,4,k5),C4=_.OZ(C4,1),_.K(g9,hc.call(SZ,C4),18);case 18:c.reply(mGy);_.Gw(g9,17);break;case 16:return px=_.be(g9),kI=H8,Ul=px,wC=B.callbacks,W$="MINI_APP_SDK_API_SAVE_DATA",_.K(g9,B.sdkVersion.promise,19);case 19:kI(Ul,wC,W$,g9.yieldResult),c.reply(TuS);case 17:return _.K(g9,Lc(B,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return g9.return();case 4:return _.kM(g9,21),_.K(g9,B.callbacks.onLoad(),23);case 23:El=g9.yieldResult;SZ=c.reply;hc=Y5(1);C4=x5(1);I0=new Tcn;I0=_.dW(I0,1,El);C4=_.YX(C4,3,P7,I0);SZ.call(c,aA(hc,C4));_.Gw(g9,22);break;case 21:return H$=_.be(g9),yw=H8,r9=H$,cs=B.callbacks,NQ="MINI_APP_SDK_API_LOAD_DATA",_.K(g9,B.sdkVersion.promise,24);case 24:yw(r9,cs,NQ,g9.yieldResult),c.reply(TuS);case 22:return _.K(g9,Lc(B,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return g9.return();case 5:_.kM(g9,
26);B.callbacks.onSendHighScore(oD(_.vG(c.data,Srm,3,k5).getValue()));c.reply(aA(Y5(1),x5(1)));_.Gw(g9,27);break;case 26:return n4=_.be(g9),L4=H8,UF=n4,uX=B.callbacks,yr="MINI_APP_SDK_API_SEND_SCORE",_.K(g9,B.sdkVersion.promise,28);case 28:L4(UF,uX,yr,g9.yieldResult),c.reply(TuS);case 27:return _.K(g9,Lc(B,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return g9.return();case 6:if(!_.To(c.data,yaW,8,k5)){g9.jumpTo(30);break}SZ=_.vG(c.data,yaW,8,k5);SZ=_.og(SZ,1);return _.K(g9,Lc(B,mqI(SZ)),30);case 30:return g9.return();
case 7:return SZ=c.reply,hc=Y5(1),C4=x5(1),I0=B.callbacks.getLanguage(),C4=KE(C4,4,P7,Si(I0)),SZ.call(c,aA(hc,C4)),_.K(g9,Lc(B,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return g9.return();case 8:if(!_.To(c.data,zb9,10,k5))return g9.return();uz=_.vG(c.data,zb9,10,k5);XO=B.callbacks;qQ=XO.onSdkPerformanceUpdate;return _.K(g9,B.sdkVersion.promise,33);case 33:return qQ.call(XO,uz,g9.yieldResult),g9.return();case 9:SZ=c.data;hc=CE(SZ,k5,11);if(_.MN(_.hd(SZ,hc))==null)return c.reply(aA(Y5(1),x5(2))),
g9.return();lt=F8(c.data,11,k5);B.callbacks.onShareInviteCode(lt);c.reply(mGy);return _.K(g9,Lc(B,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return g9.return();case 10:if(_.To(c.data,hbW,13,k5)){g9.jumpTo(35);break}return _.K(g9,B.callbacks.onShowMiniAppAd(2),36);case 36:return D8=g9.yieldResult,c.reply(aA(Y5(1),WTd(D8))),_.K(g9,Lc(B,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return g9.return();case 35:SZ=_.vG(c.data,hbW,13,k5);a:switch(_.og(SZ,1)){case 1:SZ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:SZ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:SZ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}VW=SZ;ut=VW.adType;M8=VW.sdkApi;SZ=B.callbacks;hc=SZ.onShowMiniAppAd;C4=_.vG(c.data,hbW,13,k5);C4=_.OZ(C4,2);return _.K(g9,hc.call(SZ,ut,C4||void 0),38);case 38:return An=g9.yieldResult,c.reply(aA(Y5(1),WTd(An))),_.K(g9,Lc(B,M8),39);case 39:return g9.return()}})})};
var MW=function(B,c){_.X(function(x){B.channel.send(c);_.Kq(x)})},f2=function(B,c,x){this.callbacks=B;
var P=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;B=gPX(c,(new URL(x.toString())).origin);this.gameSnacks=new eHO(B);this.gameSnacks.page.onReady(function(){P.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){P.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Y,g;(g=(Y=P.callbacks).onGameReady)==null||g.call(Y)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Y,g){try{P.callbacks.onSendHighScore(g)}catch(k){H8(k,P.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Y,g){var k;return _.X(function(n){if(n.nextAddress==1)return _.kM(n,2),_.K(n,P.callbacks.onSave(P.decoder.decode(g)),4);if(n.nextAddress!=2)return _.Gw(n,0);k=_.be(n);H8(k,P.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return n.return()})});
this.gameSnacks.storage.onLoad(function(){var Y,g;return _.X(function(k){if(k.nextAddress==1)return _.kM(k,2),_.K(k,P.callbacks.onLoad(),4);if(k.nextAddress!=2)return Y=k.yieldResult,k.return(P.encoder.encode(Y));g=_.be(k);H8(g,P.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return k.return(P.encoder.encode(""))})});
this.gameSnacks.init()};
_.w(f2,Gv);f2.prototype.onAudioToggled=function(B,c){Gv.prototype.onAudioToggled.call(this,B,c===void 0?!0:c);var x;(x=this.gameSnacks)==null||x.audio.update(B)};
f2.prototype.onPause=function(){Gv.prototype.onPause.call(this);var B;(B=this.gameSnacks)==null||B.game.pause()};
f2.prototype.onResume=function(){Gv.prototype.onResume.call(this);var B;(B=this.gameSnacks)==null||B.game.resume()};var VNy=TOl,tNW=_.rM(function(B){var c=B.data;var x=B.loadingProgress;B=_.p(_.$D("",void 0,"LYYTdd"));var P=B.next().value,Y=B.next().value;B=_.p(_.$D(!1,void 0,"K0waae"));var g=B.next().value,k=B.next().value,n=[],b=function(){return"transform: scaleX("+(_.Ox(x)||0)+")"},d=null,q=function(){var N;
return(N=c()&&d)!=null?N:d=c().showAnniversaryAnimation?6:VNy()};
_.IO(function(){var N;if(c().timeOutMessages&&((N=c().timeOutMessages)==null?0:N.length)){d=null;N=_.p(n);for(var l=N.next();!l.done;l=N.next())clearTimeout(l.value);n.length=0;VDQ(c().timeOutMessages,n,Y,k)}},"hrKvCe");
var C=function(){return!!c().persistentErrorMessageTitle},h=function(){return x!==void 0},V=function(){return c().title};
return _.U("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var N,l=(N=c().backgroundImage)==null?void 0:N.sources,E;return(l==null?0:l.length)?"background-image: url("+((E=l[0])==null?void 0:E.url)+")":
""}}),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.U(_.m,{cond:function(){return!C()},
then:function(){var N={};return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.U(_.j5,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+q()},
data:function(){var l="loading_animation_"+q();return{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+l+".json",loop:!0,autoplay:!0}}}})),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.U(_.m,{cond:V,
then:function(){return _.U("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},V)}}),_.U("p",{class:_.Kw("mini-app-splash-screen-view-model-wiz__timeout-message",(N["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return g()},N)),
"aria-live":"polite"},P),_.U(_.m,{cond:h,then:function(){return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:b}))}})))}}),_.U(_.m,{cond:C,
then:function(){return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.U("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return c().persistentErrorMessageTitle}),_.U(_.m,{cond:function(){return!!c().persistentErrorMessageDescription},
then:function(){return _.U("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return c().persistentErrorMessageDescription})}}))}})))},"Sd");var wOy=new _.BL("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Nu0=rb;rb=function(B){function c(x){if(x){var P,Y;(P=x.__spec)==null||(Y=P.didUnmount)==null||Y.call(P);for(P=0;P<x.childNodes.length;P++)c(x.childNodes[P])}}
Nu0==null||Nu0(B);JX(function(){for(var x=0;x<B.length;x++)c(B[x])})};var I2y=_.rM(function(B){var c=B.data;var x=B.score;var P=B.formattedScore;var Y=B.onScoreChanged;var g=B.isEmbeddedInWebview;var k=_.fE("yt-mini-app-score-button-view-model"),n=function(){var V;return _.t(c==null?void 0:(V=c())==null?void 0:V.buttonViewModel,_.Tj)},b=function(){var V;
return(x==null?void 0:x())||Number(c==null?void 0:(V=c())==null?void 0:V.lastScore)||0},d=function(){var V;
return(P==null?void 0:P())||((V=n())==null?void 0:V.title)||""},q,C=1;
if(B=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))B=Number(B),C=isNaN(B)?1:B/100;_.IO(function(){Y==null||Y(b());var V;var N=_.vH((V=n())==null?void 0:V.onTap);if(N){V=_.t(N,k39);var l,E,S;V=_.t(V==null?void 0:(l=V.panelLoadingStrategy)==null?void 0:(E=l.inlineContent)==null?void 0:(S=E.dialogViewModel)==null?void 0:S.customContent,auZ)}else V=void 0;if(l=V)l.score=d()},"KZFi5e");
B=_.qe(function(){var V,N,l=c==null?void 0:(V=c())==null?void 0:(N=V.loggingDirectives)==null?void 0:N.trackingParams;l&&_.bd(_.cp().resolve(_.N3),l);return!1});
_.lk(function(){if(k.value){var V=k.value.querySelector("button"),N=n();V&&N&&tDQ(V,N);rU("yt-share-playable-with-high-score",function(){var l=b().toString(),E=c==null?void 0:c().onShareHighScoreCommand,S=c==null?void 0:c().highScoreShareClientParamIdentifier,M=g==null?void 0:g();E&&(M?(S=new r4F,l=_.dW(S,2,l),Zs(E,l.JSC$10329_serializeBinary())):S&&(_.cp().resolve(wOy).clientParams.set(S,{miniAppClientParams:{highScore:l}}),sQQ(E,!1)))})}});
var h=function(){var V=n();V&&(x==null?0:x())&&V.accessibilityText&&(V.accessibilityText=V.accessibilityText.replace(q,d()));q=d();return{numberValue:b(),numberText:d(),heightPx:36,fontSizeMultiplier:C,shouldAnimate:!(x==null||!x())&&!0}};
return _.U("yt-mini-app-score-button-view-model",{class:function(){var V={};return _.U9("mini-app-score-button-view-model-wiz",(V["mini-app-score-button-view-model-wiz--is-visible"]=b()!==0,V))},
el:k,"on:click":B},rf(!1,function(){return _.U("span",{style:"display:none;"},b)}),_.U(_.IF,{data:function(){var V;
return c==null?void 0:(V=c())==null?void 0:V.buttonViewModel}},{buttonViewModel:function(V){return _.U(_.Q7,{data:V.data,
animatedTextProps:h})}}))},"Td");var OT5=_.rM(function(B){var c,x=(c=_.$g("yt-mini-app-is-theater-mode-enabled"))!=null?c:!1,P=_.T("enable_playable_container_save_button"),Y=_.T("enable_play_next_destination_page_in_toolbar");c={};return _.U("ytm-mini-app-top-bar-view-model",null,_.U("div",{class:_.Kw("yt-mini-app-top-bar-view-model",(c["yt-mini-app-top-bar-view-model--mobile"]=!1,c["yt-mini-app-top-bar-view-model--desktop"]=!0,c))},_.U("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.U(_.m,{cond:function(){var g;
return!!B.data().backButtonEdu&&!((g=B.isExitMiniAppSeen)==null?0:g.call(B))},
then:function(){return _.U(_.IF,{data:function(){return B.data().backButtonEdu}},{buttonViewModel:_.Q7})},
else:function(){return _.U(_.IF,{data:function(){return B.data().backButton}},{buttonViewModel:_.Q7})}}),_.U(_.m,{cond:function(){return B.data().viewAllButton&&!0},
then:function(){return _.U(_.IF,{data:function(){return B.data().viewAllButton}},{buttonViewModel:_.Q7})}}),_.U(_.m,{cond:function(){return B.data().title&&!0},
then:function(){return _.U("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return B.data().title})}})),_.U("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.U(_.m,{cond:function(){var g;
return(g=B.isDesktopPlayPage)==null?void 0:g.call(B)},
then:function(){return _.U(_.at,null,_.U(Jqy,{highScoreButton:function(){return B.data().highScoreButton},
score:B.score,formattedScore:B.formattedScore,onScoreChanged:B.onScoreChanged,isEmbeddedInWebview:B.isEmbeddedInWebview}),_.U(Wdn,{enableSaveButton:function(){return _.Ox(P)},
saveButton:function(){return B.data().saveButton},
isSaved:B.isSaved,onSaveToggled:function(){return B.onSaveToggled}}),_.U(l2W,{menuButton:function(){return B.data().menuButton}}))},
else:function(){return _.U(_.m,{cond:function(){return!1},
then:function(){return _.U(_.IF,{data:function(){return B.data().playPageButton}},{buttonViewModel:function(g){return _.U(_.Q7,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.U(Jqy,{highScoreButton:function(){return B.data().highScoreButton},
score:B.score,formattedScore:B.formattedScore,onScoreChanged:B.onScoreChanged,isEmbeddedInWebview:B.isEmbeddedInWebview})}})}})),_.U("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.U(_.IF,{data:function(){return B.data().muteButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.U(_.Jb,{data:function(){var n,b;return Object.assign({},k(),{isToggled:(b=(n=B.isAudioEnabled)==null?void 0:n.call(B))!=null?b:!0})},
onToggle:B.onAudioToggled,useOutlinedIcon:!0})}}),_.U(_.IF,{data:function(){return B.data().theatreModeButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.U("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.U(_.Jb,{data:function(){return Object.assign({},k(),{isToggled:x})},
useOutlinedIcon:!0}))}}),_.U(Een,{fullscreenButton:function(){return B.data().fullscreenButton}}),_.U(_.m,{cond:function(){return _.Ox(Y)&&B.data().viewAllButton&&!1},
then:function(){return _.U(_.IF,{data:function(){return B.data().viewAllButton}},{buttonViewModel:_.Q7})}}),_.U(_.m,{cond:function(){var g;
return!((g=B.isDesktopPlayPage)==null?0:g.call(B))},
then:function(){return _.U(_.at,null,_.U(Wdn,{enableSaveButton:function(){return _.Ox(P)},
saveButton:function(){return B.data().saveButton},
isSaved:B.isSaved,onSaveToggled:function(){return B.onSaveToggled}}),_.U(l2W,{menuButton:function(){return B.data().menuButton}}))}}))))},"Ud");
OT5.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var l2W=_.rM(function(B){return _.U(_.IF,{data:B.menuButton},{buttonViewModel:_.Q7})},"Vd"),Wdn=_.rM(function(B){var c=B.enableSaveButton;
var x=B.saveButton;var P=B.isSaved;var Y=B.onSaveToggled;return _.U(_.m,{cond:function(){return c()&&!(x==null||!x())},
then:function(){return _.U(_.IF,{data:function(){var g=_.t(x==null?void 0:x(),_.V7),k;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(k=P==null?void 0:P())!=null?k:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.U(_.Jb,{data:g.data,
onToggle:Y})}})}})},"Wd"),Jqy=_.rM(function(B){var c=B.highScoreButton;
var x=B.score;var P=B.formattedScore;var Y=B.onScoreChanged;var g=B.isEmbeddedInWebview;return _.U(_.IF,{data:c},{miniAppScoreButtonViewModel:function(k){return _.U(I2y,{data:k.data,score:x,formattedScore:P,onScoreChanged:Y,isEmbeddedInWebview:g})}})},"Xd"),Een=_.rM(function(B){B=B.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.U(_.at,null):_.U(_.IF,{data:B},{buttonViewModel:_.Q7})},"Yd");_.oe4=new _.BL("DESKTOP_CURRENT_PAGE");var yqS=_.rM(function(B){var c=B.data;var x=_.T("force_active_time_logging_webview"),P=!1,Y=new s44,g=void 0,k=void 0,n=_.cp().resolve(ged),b=new xGW,d=void 0,q=void 0,C=[],h=void 0,V=void 0,N=!1,l=!1,E=!1,S=!1,M=new _.kH,f=_.cp().resolve(wOy),Z=_.cp().resolve(_.Fc),u=_.cp().resolve(_.Bp(KG)),e,px=(e=_.cp().resolve(_.Bp(_.oe4)))==null?void 0:e.getCurrentPage(),kI=!1,Ul=0,wC=function(ZA){ZA.preventDefault();return ZA.returnValue=""},W$;
B=_.p(_.$D(!((W$=_.$g("yt-mini-app-is-audio-enabled"))!=null&&!W$),void 0,"uFSsEd"));var El=B.next().value,H$=B.next().value,yw;W$=_.p(_.$D(!((yw=_.$g("exit-mini-app-seen-state"))==null||!yw),void 0,"CVZNXc"));var r9=W$.next().value,cs=W$.next().value;yw=_.p(_.$D(!1,void 0,"N46A8c"));var NQ=yw.next().value,n4=yw.next().value;yw=_.p(_.$D(void 0,void 0,"qhL0Nd"));var L4=yw.next().value,UF=yw.next().value;yw=_.p(_.$D(void 0,void 0,"oOXpte"));var uX=yw.next().value,yr=yw.next().value;yw=_.p(_.$D(!0,void 0,
"u4kGne"));var uz=yw.next().value,XO=yw.next().value;yw=_.p(_.$D(!1,void 0,"HoQxGc"));var qQ=yw.next().value,lt=yw.next().value;yw=_.p(_.$D(void 0,void 0,"lWcQie"));var D8=yw.next().value,VW=yw.next().value;yw=_.p(_.$D(0,void 0,"yw8Rmf"));var ut=yw.next().value,M8=yw.next().value,An=_.Ho("mini-app-container-view-model"),g9=function(){return c().isEmbeddedInWebview},SZ=function(){return c().hasPlayNextShelf};
rU("yt-page-type-changed",function(ZA){if(_.T("enable_is_mini_app_page_active_bugfix"))ZA.detail.newPageSubtype==="mini_app"&&ZA.detail.newPageType==="ytd-browse"||!uz()||I0();else if(ZA=_.scw()==="mini_app",ZA!==uz())if(XO(ZA),ZA){var pA;ZA=(pA=c().playableId)==null?void 0:pA.toString();ZA!==void 0&&window.location.href.includes(ZA)&&!l&&(S=!0,hc(),jJ(K4.value))}else ZA||I0()});
rU("yt-action",function(ZA){ZA.detail.actionName==="yt-engagement-panel-visible-changed"&&ZA.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&ZA.detail.args[2]==="PAmini_app_panel"&&I0();_.T("enable_is_mini_app_page_active_bugfix")?ZA.detail.actionName==="yt-history-load"&&!uz()&&(px==null?0:px.active)?(XO(!0),hc(),jJ(K4.value)):ZA.detail.actionName==="yt-history-load"&&uz()&&!c().isEmbeddedInWebview&&h0():uz()&&ZA.detail.actionName==="yt-history-load"&&(S?S=!1:c().isEmbeddedInWebview||h0())});
_.lP(function(){C4()});
_.IO(function(){hc()},"IGuu2e");
var hc=function(){var ZA=c().playableId,pA=c().localReleaseId,GB=c().derivedDeviceInterface;if(l)_.Ob(new _.mc("[MiniAppContainerViewModel] onEnter was called more than once"));else{l=!0;g=new L6I(ZA,pA,GB,document.visibilityState==="visible");iJ0(g);k=new bT3(ZA);Q49(n,ZA);Pod(b,{showMiniAppAdCommand:c().showMiniAppAdCommand,isEmbeddedInWebview:c().isEmbeddedInWebview,playLogger:g});dpw()&&(V=document.body.style.backgroundColor,_.F$(document.body,"background-color","black"));NR();d9();M=new _.kH;
if(c().isEmbeddedInWebview){if(ZA=(new URLSearchParams(window.location.search)).get("postPlayNonce"))HJy(g,ZA),kI=!0;Y.initialize({onAudioStateLoaded:function(rl){sF(rl)},
onMuteMiniApp:function(){sF(!1)},
onUnmuteMiniApp:function(){sF(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rl){kI||(HJy(g,rl),kI=!0)},
confirmExitMiniApp:function(){var rl,eT,BF;return _.X(function(U0){if(U0.nextAddress==1)return c().confirmExitMiniAppCommand?_.K(U0,Promise.race([M.promise,Promise.resolve(!1)]),2):U0.return();(rl=U0.yieldResult)?!c().confirmExitMiniAppCommandEdu||(BF=(eT=r9)==null?void 0:eT())!=null&&BF?mX(c().confirmExitMiniAppCommand):(mX(c().confirmExitMiniAppCommandEdu),_.Xj("exit-mini-app-seen-state","true",2592E6)):mX(c().closeMiniAppCommand);_.Kq(U0)})},
onNativeBenchmarkingMessageReceived:function(rl){rl=qr3(_.av$(rl));if(_.To(rl,_.L2,3,jvI)){var eT=_.vG(rl,_.L2,3,jvI),BF=pQw();var U0=oD(BF.getSeconds())-oD(eT.getSeconds());eT=_.Ph(BF,2)-_.Ph(eT,2);U0<0&&eT>0?(U0+=1,eT-=1E9):U0>0&&eT<0&&(--U0,eT+=1E9);U0=(new iL).setSeconds(U0);U0=_.N2(U0,2,_.tc(eT),0);_.Pa(rl,1,U0)}var JE;(JE=q)==null||JE.returnNativeBenchmarkingMessage(rl)},
multiplayer3pAckStateLoaded:function(rl){h0(rl)},
exitMiniAppSeenStateLoaded:function(rl){c().confirmExitMiniAppCommandEdu&&cs(rl)},
onNavigateToNewMiniApp:function(){mX(c().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rl){rl=new URLSearchParams(rl);var eT=void 0;rl.has("invite_code")&&(eT=new w80,rl=rl.get("invite_code"),eT=_.dW(eT,1,rl));if(rl=eT){var BF;(BF=q)==null||BF.sendGameData(rl)}},
onPauseMiniApp:function(){P=!0;bz()},
onResumeMiniApp:function(){P=!0;sG()},
onAdFinished:function(rl){b.onAdFinished(rl)}});
c().showMultiplayer3pConsentDialogCommand||M.resolve(!0);mX(c().onContainerReadyCommand)}else HJy(g),M.resolve(!0);KdF(k,ZJQ(g));ZJQ(g).then(function(rl){rl={miniAppPlayData:{postPlayNonce:rl}};var eT,BF=(eT=c().loggingDirectives)==null?void 0:eT.trackingParams;BF&&_.q_().stateChanged(BF,rl)});
ZA=c().showSignInDialogCommand;!$qd()&&ZA&&(_.Xj("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),mX(ZA));c().confirmExitMiniAppCommand&&u&&(ZA=alX(c().confirmExitMiniAppCommand))&&(u.customConfirmationCommand=ZA)}},C4=function(){V&&_.F$(document.body,"background-color",V);
N=!1;h&&h.release();k.flush().catch(function(ZA){_.Ob(ZA)});
n.flush().catch(function(ZA){_.Ob(ZA)});
uG5(g);Fe();q=void 0;Fdy(f)},I0=function(){XO(!1);
C4();n4(!1);VW(void 0);UF(void 0);yr(void 0);Ul=0;M8(0);l=!1},bz=function(){var ZA;
(ZA=q)==null||ZA.onPause();h&&h.release();k.flush().catch(function(pA){_.Ob(pA)});
n.flush().catch(function(pA){_.Ob(pA)});
AL0(g)},sG=function(){var ZA;
(ZA=q)==null||ZA.onResume();d9();ZA=g;ZA.isForeground=!0;zv(ZA,"PLAY_EVENT_TYPE_PLAY_RESUME")},sF=function(ZA){var pA;
(pA=q)==null||pA.onAudioToggled(ZA);H$(ZA)},h0=function(ZA){c().showMultiplayer3pConsentDialogCommand&&(c().isEmbeddedInWebview&&ZA!==void 0&&M.resolve(ZA),!ZA&&_.scw()==="mini_app"&&mX(c().showMultiplayer3pConsentDialogCommand))},yD=function(){var ZA,pA,GB,rl;
return _.X(function(eT){if(eT.nextAddress==1){!c().isLivestream||c().disableVideoCapture||(ZA=q)!=null&&ZA.sendStartGameFrameCapture();pA=(new URL(window.location.href)).searchParams;if(pA.has("invite_code")){var BF=new w80,U0=pA.get("invite_code");GB=_.dW(BF,1,U0);(rl=q)==null||rl.sendGameData(GB)}NQ()||(n4(!0),BF=g,BF.state!==1?_.Ob(new _.mc("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+G93[BF.state])):(_.gr("mini_app_ids_without_game_ready").includes(BF.JSC$14804_miniAppId)&&(BF.gameReady=
!0),BF.state=2,BF.beforeReady=!1,vU(BF,"ma_ffr"),zv(BF,"PLAY_EVENT_TYPE_PLAY_READY")));return _.K(eT,M.promise,2)}mX(c().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();c().isEmbeddedInWebview||h0();_.Kq(eT)})},G5=function(){var ZA=g;
ZA.gameReady=!0;vU(ZA,"ma_gr")},Jc=function(ZA){var pA;
return _.X(function(GB){if(GB.nextAddress==1)return _.kM(GB,2),_.K(GB,UG0(k,ZA),4);if(GB.nextAddress!=2)return _.Gw(GB,0);pA=_.be(GB);mX(c().showSavingErrorPopupCommand);throw pA;})},cN=function(){var ZA,pA;
return _.X(function(GB){if(GB.nextAddress==1)return _.kM(GB,2),_.K(GB,j4y(k),4);if(GB.nextAddress!=2)return ZA=GB.yieldResult,GB.return(ZA);pA=_.be(GB);mX(c().showLoadingErrorDialogCommand);throw pA;})},xP=function(ZA){g.logError(ZA)},CS=function(ZA,pA,GB){rL3(g,ZA,pA,GB)},Ft=function(ZA,pA){ext(g,ZA,pA)},JM=function(){!x&&c().isEmbeddedInWebview||_.Bo();
D14(g,!0);N||(window.addEventListener("beforeunload",wC,{capture:!0}),N=!0)},WR=function(ZA){var pA,GB,rl,eT,BF,U0,JE;
return _.X(function(Wi){if(Wi.nextAddress==1)return n&&(!d||d<ZA)&&ZA>0?_.K(Wi,veQ(n,ZA),3):Wi.jumpTo(0);pA=Wi.yieldResult;GB=_.p(pA);rl=GB.next().value;eT=GB.next().value;BF=rl;U0=eT;((JE=BF)==null?0:JE.displayString)&&U0&&(UF(U0),yr(BF.displayString));_.Kq(Wi)})},Qc=function(ZA){var pA=c().onBenchmarkingMessageReceivedCommand;
if(pA){var GB=pQw();_.YX(ZA,3,jvI,GB);Zs(pA,CjF(ZA))}},Gk=function(ZA){var pA=c().onGameFrameReceivedCommand;
if(pA){var GB=new OP;var rl=new eW3;var eT=lJ(ZA,1);rl=_.mD(rl,1,eT);ZA=_.OZ(ZA,2);ZA=_.dW(rl,2,ZA);GB=_.Pa(GB,2,ZA);Zs(pA,YVm(GB))}},T7=function(ZA){var pA=c().onGameAudioDataReceivedCommand;
if(pA){var GB=new OP;var rl=new cBQ;ZA=_.OZ(ZA,1);rl=_.dW(rl,1,ZA);GB=_.Pa(GB,4,rl);Zs(pA,YVm(GB))}},FO=function(){var ZA=new URLSearchParams(window.location.search);
if(c().isEmbeddedInWebview&&ZA&&ZA.get("override_hl")==="true"&&ZA.get("hl"))return ZA.get("hl");ZA=document.documentElement.lang;return ZA!==""?ZA:_.SB},MY=function(ZA){var pA=c().onShareInviteCodeCommand;
if(pA)if(c().isEmbeddedInWebview){var GB=new r4F;ZA=_.dW(GB,1,ZA);Zs(pA,e75(ZA))}else GB=c().inviteCodeShareClientParamIdentifier,f.clientParams.set(GB,{miniAppClientParams:{inviteCode:ZA}}),mX(pA)},jZ=function(ZA){var pA,GB,rl;
return _.X(function(eT){if(eT.nextAddress==1)return pA=c().onMiniAppOpenYtContentRequested,n&&_.T("enable_open_yt_content")&&pA?_.K(eT,zan(n,ZA),3):eT.jumpTo(0);GB=eT.yieldResult;if(GB==="OK")if(c().isEmbeddedInWebview){var BF=new u$9;rl=KE(BF,2,EP,Si(ZA));Zs(pA,RW9(rl))}else Z.clientData.set("video_id",ZA),mX(pA);_.Kq(eT)})},gl=function(ZA){Ul+=_.Ph(ZA,3);
ZA=Math.min(Math.log(1+Ul/15E6*9)/Math.log(10),.99);M8(ZA);lm(ZA)},lm=_.he(function(ZA){var pA=c().updateLoadingProgressCommand;
if(pA){var GB=new u$9;ZA=KE(GB,3,EP,_.X6(ZA));Zs(pA,RW9(ZA))}},100),KA=function(ZA){return a2F(b,ZA)},d9=function(){var ZA,pA;
((ZA=_.QMd())==null?void 0:(pA=ZA.wakeLock)==null?void 0:pA.request)!=null&&_.QMd().wakeLock.request("screen").then(function(GB){h=GB}).catch(function(){})},K4=_.Ho("iframe");
_.IO(function(){c().isSupportedCountry&&($qd()||_.T("enable_sign_in_promo")||!c().showSignInDialogCommand?jJ(K4.value):mX(c().onMiniAppReadyCommand))},"B7Lcnd");
var mo=function(){return _.U("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return NQ()?0:-1},
el:K4})},jJ=function(ZA,pA){pA=pA===void 0?!1:pA;
var GB=s3();GB&&(pA||GB.toString()!==ZA.getAttribute("src"))&&(q=q77(c().source,{isAudioEnabled:El,onFirstFrameReady:yD,onGameReady:G5,onSave:Jc,onLoad:cN,onError:xP,onSdkCalled:CS,onSdkPerformanceUpdate:Ft,onClick:JM,onSendHighScore:WR,onBenchmarkingMessageReceived:Qc,getLanguage:FO,onShareInviteCode:MY,onResourceLoaded:gl,onOpenYTContent:jZ,onShowMiniAppAd:KA,onGameFrameReceived:Gk,onGameAudioReceived:T7},ZA,GB),ml(ZA,"load",function(){vU(g,"ma_il");ml(ZA,"load",function(){jJ(ZA,!0)})}),_.EG(ZA,
GB))},s3=function(){var ZA=c().url;
if(ZA&&(ZA=_.OE(ZA),ZA!==null)){if(c().source&&c().source==="MINI_APP_SOURCE_GAMESNACKS")ZA=_.Y2(ZA,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.T("enable_origin_query_parameter_bugfix")){var pA=_.lU(_.BE7(ZA.toString()));pA=new URLSearchParams(pA||"");pA.set("origin",window.location.origin);pA=pA.toString();ZA=_.X_(ZA).toString();ZA=_.kX(JoS.exec(ZA)[0]+(pA.trim()?"#"+pA:""))}return ZA}},d8=function(){var ZA={};
ZA=_.Kw("yt-mini-app-container-view-model__loading-screen",(ZA["yt-mini-app-container-view-model__loading-screen--fade-out"]=NQ,ZA));var pA=function(){return NQ()?1:ut()};
return _.U("div",{class:ZA},_.U(_.IF,{data:function(){return c().splashScreen}},{miniAppSplashScreenViewModel:function(GB){return _.U(tNW,{data:GB.data,
loadingProgress:pA})}}))},NR=function(){C=[];
C.push(_.wX(window,"visibilitychange",function(){E||P&&g9()||(document.visibilityState==="visible"?sG():bz())}));
C.push(_.wX(window,"pagehide",function(){C4()}));
C.push(_.wX(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&An.value.dispatchEvent(new Event("tap"))},0)}));
C.push(_.wX(An.value,"pointerdown",function(){D14(g,!1)},!0));
C.push(_.wX(An.value,"pause",function(){E=!0;bz()}));
C.push(_.wX(An.value,"play",function(){E=!1;sG()}));
C.push(_.wX(An.value,"exit",function(){C4()}));
var ZA=navigator.keyboard,pA=ZA&&ZA.lock;C.push(_.wX(window,yi4,function(){lt(Mc0());Mc0()?(c().hasPlayNextShelf&&iR("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Zt("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),pA&&ZA.lock(["Escape"])):(c().hasPlayNextShelf&&Zt("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),iR("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),pA&&ZA.unlock())}));
c().showMultiplayer3pConsentDialogCommand&&C.push(_.wX(window,"yt-playables-ack-3p-data-usage",function(){SK0(n)}));
c().confirmExitMiniAppCommandEdu&&C.push(_.wX(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Xj("exit-mini-app-seen-state","true",2592E6)}));
c().onGameAudioDataReceivedCommand&&C.push(_.wX(window,"message",function(GB){GB=GB.event_;var rl=K4.value.src;if(rl&&GB.origin===(new URL(rl)).origin&&GB.data&&GB.data.type==="GAME_AUDIO"&&GB.data.audio&&GB.data.audio.length>0){var eT=new FileReader;eT.onload=function(){var BF=new OP;var U0=new cBQ;U0=_.dW(U0,1,eT.result);BF=_.Pa(BF,4,U0);Zs(c().onGameAudioDataReceivedCommand,YVm(BF))};
eT.readAsDataURL(new Blob([GB.data.audio]))}}))},Fe=function(){C.forEach(function(ZA){Tl(ZA)});
window.removeEventListener("beforeunload",wC,{capture:!0})},mX=function(ZA){ZA&&sQQ(ZA,c().isEmbeddedInWebview||!1)},Zt=function(ZA,pA){ZA=_.p(An.value.getElementsByClassName(ZA));
for(var GB=ZA.next();!GB.done;GB=ZA.next())GB.value.classList.add(pA)},iR=function(ZA,pA){ZA=_.p(An.value.getElementsByClassName(ZA));
for(var GB=ZA.next();!GB.done;GB=ZA.next())GB.value.classList.remove(pA)};
return function(){var ZA={};ZA=_.Kw("yt-mini-app-container-view-model",(ZA["yt-mini-app-container-view-model--desktop"]=!0,ZA["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ZA["yt-mini-app-container-view-model--ios-web-view"]=dpw(),ZA["yt-mini-app-container-view-model--no-top-bar"]=function(){return!c().topBar},ZA["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return c().hasPlayNextShelf},ZA["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return c().hasPlayNextShelf},ZA["yt-mini-app-container-view-model--show-peek-below"]=function(){return!qQ()&&c().hasPlayNextShelf},ZA));
var pA={};pA=_.Kw("yt-mini-app-container-view-model__content",(pA["yt-mini-app-container-view-model__content--desktop-content"]=!0,pA["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pA["yt-mini-app-container-view-model--desktop-play-page"]=function(){return c().hasPlayNextShelf},pA));
return _.U("mini-app-container-view-model",{el:An},_.U("div",{class:ZA},_.U(_.m,{cond:function(){return c().topBar&&!qQ()},
then:function(){return _.U(_.IF,{data:function(){return c().topBar}},{miniAppTopBarViewModel:function(GB){return _.U(OT5,{data:GB.data,
isAudioEnabled:El,onAudioToggled:function(rl){sF(rl)},
score:L4,formattedScore:uX,onScoreChanged:function(rl){d=rl},
isEmbeddedInWebview:g9,isSaved:D8,onSaveToggled:function(rl){VW(rl)},
isExitMiniAppSeen:r9,isDesktopPlayPage:SZ})}})}}),_.U("div",{class:pA},_.U(_.m,{cond:uz,
then:function(){return mo()}}),_.U(_.m,{cond:function(){return!c().isEmbeddedInWebview},
then:function(){return d8()}}))))}()},"Zd");
yqS.idomCompat=!0;_.xU(yqS,"mini-app-container-view-model",{props:{data:_.rk}});var GfZ=_.rM(function(B){var c=B.data;return _.U("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.U("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.qe(function(){var x=c().onTap;x&&_.Gl(x)})},_.U(_.m,{cond:function(){return c().icon},
then:function(x){return _.U(_.Vf,{icon:function(){return x().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.U("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return c().title})))},"$d");
GfZ.idomCompat=!0;var MNQ=_.rM(function(B){var c=_.Ho("div"),x=_.p(_.$D(void 0,void 0,"kFCJ0c")),P=x.next().value,Y=x.next().value;x=_.p(_.$D(void 0,void 0,"PIPgWd"));var g=x.next().value,k=x.next().value;x=_.p(_.$D(void 0,void 0,"rV66ob"));var n=x.next().value,b=x.next().value,d=function(){var S=P();return S!==void 0?Math.abs(S):void 0},q=function(){var S=d();
return S===void 0||S<=3},C=function(){var S=d();
var M=g(),f=n();S=S!==void 0&&M!==void 0&&f!==void 0?M-f-S:void 0;return S===void 0||S<=3},h=function(S){c.value&&c.value.scrollBy({top:0,
left:(_.v5("HTML_DIR")==="rtl"?-1:1)*S*c.value.clientWidth,behavior:"smooth"})},V=function(){var S;
Y((S=c.value)==null?void 0:S.scrollLeft);var M;k((M=c.value)==null?void 0:M.scrollWidth);var f;b((f=c.value)==null?void 0:f.clientWidth)},N=function(){h(-.5)},l=function(){h(.5)};
x=_.qe(function(){V()});
_.JR(function(){V();if(c.value){var S=new ResizeObserver(V);S.observe(c.value);_.lP(function(){S.disconnect()})}});
var E={};return _.U("yt-sponsorships-scrollable-shelf",{class:_.Kw("ytdSponsorshipsScrollableShelfHost",B.className)},_.U("div",{class:_.Kw("ytdSponsorshipsScrollableShelfContent",(E.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return B.data().previousButton&&B.data().nextButton&&!q()&&!C()},E.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return B.data().previousButton&&!q()&&C()},E.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return B.data().nextButton&&
q()&&!C()},E)),
el:c,"on:scroll":x},B.children),_.U(_.m,{cond:function(){return!q()},
then:function(){return _.U(_.IF,{data:function(){return B.data().previousButton}},{buttonViewModel:function(S){return _.U(_.Q7,{data:S.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:N})}})}}),_.U(_.m,{cond:function(){return!C()},
then:function(){return _.U(_.IF,{data:function(){return B.data().nextButton}},{buttonViewModel:function(S){return _.U(_.Q7,{data:S.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:l})}})}}))},"ae");
MNQ.idomCompat=!0;var ZTZ=_.rM(function(B){var c=B.data;B={};return _.U("yt-sponsorships-hub",{class:_.Kw("ytdSponsorshipsHubHost",(B.ytdSponsorshipsHubHostIndented=function(){return c().indented},B))},_.U("div",{class:"ytdSponsorshipsHubHeader"},_.U("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.U("div",{class:"ytdSponsorshipsHubAvatar"},_.U(_.IF,{data:function(){return c().avatar}},{avatarViewModel:_.IS})),_.U(_.m,{cond:function(){return c().badgeImage},
then:function(x){return _.U("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.U("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.U("div",{class:"ytdSponsorshipsHubBadge"},_.U(_.D9,{data:x,targetWidth:24,targetHeight:24,alt:""}))))}})),_.U("div",{class:"ytdSponsorshipsHubDetails"},_.U("div",{class:"ytdSponsorshipsHubTierName"},function(){return c().tierName}),_.U("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return c().membershipType}),_.U("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return c().membershipDurationOrExpiry})),_.U("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.U(_.IF,{data:function(){return c().manageButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.U(_.IF,{data:function(){return c().actionMenuButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.U("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return c().perksTitle}),_.U(MNQ,{data:function(){return{previousButton:c().previousPerkButton,
nextButton:c().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.U("div",{class:"ytdSponsorshipsHubPerkCards"},_.U(_.IF,{data:function(){return c().perkCards}},{sponsorshipsHubPerkCardViewModel:GfZ}),_.U(_.m,{cond:function(){return c().viewAllPerksButton},
then:function(x){return _.U(Ldt,{data:x})}}))))},"be");
ZTZ.idomCompat=!0;var Ldt=_.rM(function(B){var c=B.data;return _.U("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.U(_.IF,{data:function(){return c().button}},{buttonViewModel:_.Q7}),_.U("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.U("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return c().title}),_.U("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return c().subtitle})))},"ce");
Ldt.idomCompat=!0;_.xU(ZTZ,"yt-sponsorships-hub",{props:{data:_.rk}});_.HTy=_.rM(function(B){var c=B.data;return _.U("yt-dual-avatar-view-model",{class:_.Kw("ytDualAvatarViewModelHost",B.className),style:_.TU({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var x;return((x=c().badgeCutoutRadius)!=null?x:14)+"px"}})},_.U("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.U(_.IF,{data:function(){return c().startAvatar}},{avatarViewModel:_.IS}),_.U(_.IF,{data:function(){return c().endAvatar}},{avatarViewModel:_.IS})),_.U(_.IF,{data:function(){return c().badge}},
{contentPreviewImageViewModel:function(x){return _.U("div",{class:"ytDualAvatarViewModelBadge"},_.U(_.cz,{data:x.data}))}}))},"de");
_.HTy.idomCompat=!0;var iTt=_.rM(function(B){var c=B.data;var x,P=!((x=_.cp().resolve(_.Bp(_.fL)))==null||!x());B=_.db(function(){var q,C,h=P?(q=c().header)==null?void 0:q.backgroundColorDarkMode:(C=c().header)==null?void 0:C.backgroundColorLightMode;if(h!==void 0)return _.SF(h)},void 0,"UX2G6c");
x=_.db(function(){var q,C;return P?(q=c().header)==null?void 0:q.backgroundImagePart1Dark:(C=c().header)==null?void 0:C.backgroundImagePart1Light},void 0,"GPAi1d");
var Y=_.db(function(){var q,C;return P?(q=c().header)==null?void 0:q.backgroundImagePart2Dark:(C=c().header)==null?void 0:C.backgroundImagePart2Light},void 0,"nboJld"),g=_.db(function(){return _.v5("HTML_DIR")==="rtl"},void 0,"LGJceb"),k=_.Ho("yt-sponsorships-perks-list"),n=!1,b=function(){var q=k.value;
if(q&&!n){var C,h=(C=q.parentElement)==null?void 0:C.parentElement;if(h)for(q=q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),C=0;C<q.length;++C){var V=q[C];if(V instanceof HTMLElement){h.scrollTo({top:V.offsetTop+V.clientHeight/2-h.clientHeight/2,behavior:"smooth"});n=!0;break}}}};
_.lk(function(){var q=k.value;if(q){var C=new ResizeObserver(b);C.observe(q);_.lP(function(){C.disconnect()})}});
var d={};return _.U("yt-sponsorships-perks-list",{el:k,class:_.Kw("ytdSponsorshipsPerksListHost",(d.ytdSponsorshipsPerksListHorizontalPadding=function(){return c().horizontalPaddingEnabled},d))},_.U("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.U("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.TU({"background-color":B})},_.U("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.U(_.m,{cond:x,then:function(q){var C={};return _.U("div",{class:_.Kw((C.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,C.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,C.ytdSponsorshipsPerksListFlipped=g,C))},_.U(_.D9,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.U("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.U(_.m,{cond:Y,
then:function(q){var C={};return _.U("div",{class:_.Kw((C.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,C.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,C.ytdSponsorshipsPerksListFlipped=g,C))},_.U(_.D9,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.U("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.U(_.IF,{data:function(){var q;
return(q=c().header)==null?void 0:q.dualAvatar}},{dualAvatarViewModel:_.HTy})))),_.U("div",{class:"ytdSponsorshipsPerksListBody"},_.U("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return c().title}),_.U(_.m,{cond:function(){return c().perks},
then:function(q){return _.U(_.mV,{each:q},function(C,h){var V={};return _.U("div",{class:_.Kw("ytdSponsorshipsPerksListPerkContainer",(V.ytdSponsorshipsPerksListSelectedPerk=function(){var N=h(),l=c().selectedPerkIndex;return N===l},V))},_.U(_.m,{cond:function(){return h()>0},
then:function(){return _.U("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.U("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.U(_.m,{cond:function(){return C.icon},
then:function(N){return _.U(_.Vf,{icon:function(){return N().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.U("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.U("div",{class:"ytdSponsorshipsPerksListPerkTitle"},C.title),_.U("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.U(_.RF,{text:C.description})),_.U(_.m,{cond:function(){return C.instructions},
then:function(){var N,l;return _.U("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.U("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(N=C.instructions)==null?void 0:N.title),_.U("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.U(_.RF,{text:(l=C.instructions)==null?void 0:l.text})))}}))),_.U(_.m,{cond:function(){return C.emoji},
then:function(N){return _.U("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.U(_.mV,{each:function(){return N()}},function(l){return _.U(_.D9,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.U(f2W,{data:C}))})}})))},"ee");
iTt.idomCompat=!0;var f2W=_.rM(function(B){var c=B.data;var x=function(k,n){return k===n},P=function(){var k=c();
k=_.t(k==null?void 0:k.badgesShelf,Pat);return k!==void 0&&k!==null?k:{previousButton:{},nextButton:{}}},Y=_.fE("div"),g=function(){var k=Y.value;
if(k){var n=k.parentElement;if(n){k=k.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<k.length;++b){var d=k[b];if(d instanceof HTMLElement){n.scrollTo({left:d.offsetLeft+d.clientWidth/2-n.clientWidth/2,behavior:"instant"});break}}}}};
_.lk(function(){var k=Y.value;if(k){var n=new ResizeObserver(g);n.observe(k);_.lP(function(){n.disconnect()})}});
return _.U("div",null,_.U(_.m,{cond:function(){return c().badges},
then:function(k){return _.U(MNQ,{data:P},_.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Y},_.U(_.mV,{each:function(){return k()}},function(n,b){var d={},q={},C={};
return _.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.U(_.m,{cond:function(){return b()>0},
then:function(){return _.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.U("div",{class:_.Kw("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return x(b(),c().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!x(b(),c().currentBadgeIndex)},d))},_.U("div",{class:_.Kw("ytdSponsorshipsPerksListLoyaltyBadge",(q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return x(b(),
c().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!x(b(),c().currentBadgeIndex)},q))},_.U(_.m,{cond:function(){return n.image},
then:function(h){var V={};return _.U("div",{class:_.Kw((V.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return x(b(),c().currentBadgeIndex)},V.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!x(b(),c().currentBadgeIndex)},V))},_.U(_.D9,{data:h,
alt:""}))}})),_.U("div",{class:_.Kw("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(C.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return x(b(),c().currentBadgeIndex)},C))},n.title)))})))}}))},"fe");
f2W.idomCompat=!0;_.xU(iTt,"yt-sponsorships-perks-list",{props:{data:_.rk}});_.xU(_.rM(function(B){return _.U("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.U(_.m,{cond:function(){return B.data().image},
then:function(c){return _.U(_.D9,{className:"ytwFantasyEmptyStateViewModelImage",data:c,ariaHidden:!0,alt:""})}}),_.U(_.RF,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return B.data().title}}),_.U(_.RF,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return B.data().subtitle}}),_.U(_.IF,{data:function(){return B.data().primaryButton}},{buttonViewModel:function(c){return _.U(_.Q7,{data:c.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.rk}});var AqS;var wQC=_.mp({buttonRenderer:_.Zf});_.BX(NOI);_.XB(NOI,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Z7=function(){var B=_.z.apply(this,arguments)||this;B.hideJoinButtonBeforeSubscribed=_.T("hide_join_button_before_subscribed");B.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return B};
_.w(Z7,_.z);_.a=Z7.prototype;_.a.hasShowDialogCommand=function(B){return!!_.t(B,k39)};
_.a.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"}}}};
_.a.updateJoinButtonOverrides=function(){var B,c;(B=_.Y9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(c=B.polymerController)==null||c.set("overrides",this.joinButtonOverrides);if(B=_.Y9(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))B.overrides=this.joinButtonOverrides};
_.a.handleButtonRefreshAction=function(B){if(B=_.t(B,N2m))this.set("data.membershipButton",B.membershipButton),this.notifyPath("data.membershipButton")};
_.a.onYtServiceRequestError=function(B){_.xE(this.hostElement,B.detail.error.message)};
_.a.onTap=function(){var B;(B=this.data)!=null&&B.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.a.handleUnsubscribeAction=function(){var B,c,x;((B=this.data)==null?void 0:(c=B.membershipButton)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.style)==="STYLE_PRIMARY"&&_.Y9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.AJ.Object.defineProperties(Z7.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.subscriptionStateEntity)==null||!B.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.data)==null?void 0:B.membershipButton,x;B=(c==null?void 0:c.buttonRenderer)||_.t(c==null?void 0:(x=c.timedAnimationButtonRenderer)==null?void 0:x.buttonRenderer,_.z3);return(B==null?void 0:B.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(B==null?void 0:B.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(B==null?void 0:B.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var B;if(this.hasShowDialogCommand((B=this.data)==null?void 0:B.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var B;if(this.hasShowDialogCommand((B=this.data)==null?void 0:B.navigationEndpoint))return"button"}}});
Z7.prototype.onTap=Z7.prototype.onTap;Z7.prototype.onYtServiceRequestError=Z7.prototype.onYtServiceRequestError;Z7.prototype.updateJoinButtonOverrides=Z7.prototype.updateJoinButtonOverrides;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Z7.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Z7.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.QT),_.H("design:type",Object)],Z7.prototype,"ironButtonState",void 0);_.L([_.F(),_.H("design:type",Object)],Z7.prototype,"data",void 0);
_.L([_.Q("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z7.prototype,"hideJoin",null);_.L([_.F(),_.H("design:type",String)],Z7.prototype,"subscribeKey",void 0);_.L([_.F({selectorArgs:["subscribeKey"],selector:joo}),_.H("design:type",Object)],Z7.prototype,"subscriptionStateEntity",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Z7.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.L([_.Q("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],Z7.prototype,"subscribed",null);_.L([_.Q("subscribed","data.membershipButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z7.prototype,"joinButtonOverrides",null);_.L([_.Q("data.navigationEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z7.prototype,"channelNameTabIndex",null);
_.L([_.Q("data.navigationEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z7.prototype,"channelNameRole",null);_.L([_.bF("joinButtonOverrides"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Z7.prototype,"updateJoinButtonOverrides",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Z7.prototype,"onYtServiceRequestError",null);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Z7.prototype,"onTap",null);_.L([_.y({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Z7);
var unZ=_.gX()(Z7,"ytd-video-owner-renderer",function(){if(AqS===void 0){var B=document.createElement("template");_.I(B,'\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]]" 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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);AqS=B}B=AqS;return B},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.xU(_.rM(function(B){var c=B.data;var x;B=_.p(_.$D(!((x=_.$g("yt-mini-app-is-theater-mode-enabled"))==null||!x),void 0,"LUeOgf"));var P=B.next().value,Y=B.next().value,g;x=(g=_.cp().resolve(_.Bp(quW)))!=null?g:function(){return _.U("div",null)};
_.Z6("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Y(!0);_.Xj("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Z6("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Y(!1);_.Xj("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
g={};B={};var k={};return _.U("mini-app-play-page-renderer",{class:_.Kw("miniAppPlayPageRendererHost",(g.miniAppPlayPageRendererHostDetailsView=function(){return!P()},g))},_.U("div",{class:_.Kw("miniAppPlayPageRendererGameContainer",(B.miniAppPlayPageRendererGameContainerDetailsView=function(){return!P()},B))},_.U(_.IF,{data:function(){return c().containerViewModel}},{miniAppContainerViewModel:yqS}),_.U(_.m,{cond:function(){return c().channel&&c().subscribeButton},
then:function(){return _.U("div",{class:"miniAppPlayPageRendererChannelContainer"},_.U(_.IF,{data:function(){return c().channel}},{videoOwnerRenderer:function(n){return _.U(unZ,{data:n.data})}}),_.U(_.IF,{data:function(){return c().subscribeButton}},{subscribeButtonViewModel:function(n){return _.U(_.wA,{data:n.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.U(_.m,{cond:function(){return!P()&&c().description},
then:function(){return _.U("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.U("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return c().description}))}})),_.U("div",{class:_.Kw("miniAppPlayPageRendererPlayNextContainer",(k.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!P()},k))},_.U(_.IF,{data:function(){return c().sectionList}},{sectionListRenderer:x})))},"he"),"mini-app-play-page-renderer",{props:{data:_.rk}});var HU=function(){var B=_.z.apply(this,arguments)||this;B.isSearch=!1;B.isConstrainedList=!1;B.hasChipsBar=!1;B.inReplyPanel=!1;B.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"}};B.monitorScroll=!0;B.SCROLL_ANIMATION_DURATION_MS=300;B.nextContinuation={continuationType:"sectionListContinuation"};return B};
_.w(HU,_.z);_.a=HU.prototype;
_.a.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(B){switch(B.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.a.created=function(){var B=this;this.JSC$14942_scrollAnimation=new _.Qg(function(c){B.hostElement.scrollTop=c})};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.a.getItemsPath=function(){return"data.contents"};
_.a.replacePrimaryContent=function(B){this.set("data.contents",B)};
_.a.computeHasSortFilter=function(B){return!!B&&!!B.sortFilterSubMenuRenderer};
_.a.computeShouldScrollInPanel=function(B){var c;return!!(B==null?0:(c=B.scrollPaneStyle)==null?0:c.scrollable)};
_.a.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.gM(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.a.scrollToTop=function(){this.hostElement.scrollTop=0};
_.a.scrollToItemSection=function(B){if(B=this.getItemByIdentifier(B))B=this.getScrollPositionForItem(B),this.hostElement.scrollTop!==B&&this.JSC$14942_scrollAnimation.start(this.hostElement.scrollTop,B,this.SCROLL_ANIMATION_DURATION_MS)};
_.a.getItemByIdentifier=function(B){var c=this.contents.querySelectorAll("ytd-item-section-renderer");if(c&&c.length!==0){var x=Array.from(c).findIndex(function(P){return P.sectionIdentifier===B});
return c[x===-1?0:x]}};
_.a.getScrollPositionForItem=function(B){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===B)return 0;B=_.Od(B).y+this.hostElement.scrollTop-_.Od(this.hostElement).y;return Math.min(B,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.AJ.Object.defineProperties(HU.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.targetId)==="browse-feedFEclips"}}});
HU.prototype.onScroll=HU.prototype.onScroll;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],HU.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],HU.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.J(_.F6d),_.H("design:type",Object)],HU.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],HU.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],HU.prototype,"data",void 0);_.L([_.F({value:2}),_.H("design:type",Number)],HU.prototype,"initialCount",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],HU.prototype,"autoFill",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.H("design:type",Boolean)],HU.prototype,"hasSortFilter",void 0);_.L([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.H("design:type",Boolean)],HU.prototype,"hideBottomSeparator",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.H("design:type",Boolean)],HU.prototype,"shouldScrollInPanel",void 0);
_.L([_.F(),_.H("design:type",Object)],HU.prototype,"isSearch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HU.prototype,"isConstrainedList",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],HU.prototype,"responsiveSizing",void 0);_.L([_.F(),_.H("design:type",Object)],HU.prototype,"hasChipsBar",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],HU.prototype,"pageSubtype",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],HU.prototype,"engagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],HU.prototype,"liveChatEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HU.prototype,"inReplyPanel",void 0);_.L([_.jr("#action-button"),_.H("design:type",HTMLElement)],HU.prototype,"actionButton",void 0);_.L([_.F(),_.H("design:type",Object)],HU.prototype,"scrollUpButtonData",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],HU.prototype,"engagementPanelDropdown",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],HU.prototype,"engagementPanelDialog",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HU.prototype,"isClipList",null);_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],HU.prototype,"monitorScrollElement",void 0);_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],HU.prototype,"contents",void 0);
_.L([_.nF("scroll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HU.prototype,"onScroll",null);_.L([_.y({is:"ytd-section-list-renderer",disableElementRegistration:!0})],HU);
var DGm=_.gX()(HU,"ytd-section-list-renderer",function(){if(dxQ===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);dxQ=B}B=dxQ;return B},{mode:1});var rqy;var Ram;var eaZ;var Bi9;var fc=function(){return _.z.apply(this,arguments)||this};
_.w(fc,_.z);fc.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
fc.prototype.onLikeButtonClick=function(B){B.stopPropagation();B.preventDefault()};
_.AJ.Object.defineProperties(fc.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.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)})}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fc.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],fc.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fc.prototype,"ytRendererStamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fc.prototype,"data",void 0);
_.L([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:vw}),_.H("design:type",Object)],fc.prototype,"likeStatusEntity",void 0);_.L([_.Q("data","likeStatusEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],fc.prototype,"likeButtonRenderer",null);_.L([_.y({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],fc);
_.G(fc,"ytd-slim-metadata-toggle-button-renderer",function(){if(Bi9!==void 0)return Bi9;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return Bi9=B},{mode:1});var i1=function(){var B=_.z.apply(this,arguments)||this;B.minimizePipBreakages=_.T("web_pip_minimize_breakages");B.showEqualizer=_.T("web_enable_playlist_video_lockup_equalizer");B.watchColorUpdate=_.T("kevlar_watch_color_update");B.actionMap={};return B};
_.w(i1,_.z);_.a=i1.prototype;_.a.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"}}}};
_.a.computeEditableClass=function(B){return B&&B.menu?"editable":""};
_.a.computeSelected=function(B){return!(B==null||!B.selected)};
_.a.computeUseColorPalette=function(B){return!!((B==null?0:B.lightColorPalette)&&(B==null?0:B.darkColorPalette))};
_.a.computeLargerPlaylistThumbs=function(B,c){return _.T("web_enable_playlist_bigger_thumbnails")&&!c};
_.a.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.a.onYtServiceRequestSent=function(B,c){c.endpoint&&this.isHideEnclosingAction(c.endpoint)&&!this.selected&&J7Q(_.Mm(),this.data.videoId)};
_.a.isHideEnclosingAction=function(B){var c=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",B);B=this.get("likeEndpoint.status",B)==="INDIFFERENT";return c||B};
_.a.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.a.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.AJ.Object.defineProperties(i1.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("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 B;return!!(this.withinMiniplayer&&((B=this.data)==null?0:B.actionButtons))}}});
i1.prototype.onYtServiceRequestSent=i1.prototype.onYtServiceRequestSent;i1.prototype.canReorderChanged=i1.prototype.canReorderChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Mz),_.H("design:type",Object)],i1.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],i1.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"withinMiniplayer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],i1.prototype,"minimizePipBreakages",void 0);_.L([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"selected",void 0);
_.L([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"useColorPalette",void 0);_.L([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"largerPlaylistThumbs",void 0);_.L([_.F(),_.H("design:type",Object)],i1.prototype,"showEqualizer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"canReorder",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"touchPersistentDragHandle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],i1.prototype,"handleIsHovered",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],i1.prototype,"watchColorUpdate",void 0);_.L([_.F(),_.H("design:type",String),_.H("design:paramtypes",[])],i1.prototype,"reorderIcon",null);
_.L([_.Q("largerPlaylistThumbs"),_.H("design:type",Number),_.H("design:paramtypes",[])],i1.prototype,"thumbnailWidth",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],i1.prototype,"showActionButtons",null);_.L([_.CF("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i1.prototype,"canReorderChanged",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],i1.prototype,"onYtServiceRequestSent",null);_.L([_.y({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],i1);
_.G(i1,"ytd-playlist-panel-video-renderer",function(){if(eaZ!==void 0)return eaZ;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eaZ=B},{mode:2});var AC=function(){return _.z.apply(this,arguments)||this};
_.w(AC,_.z);AC.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AC.prototype,"data",void 0);_.L([_.y({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],AC);
_.G(AC,"ytd-playlist-panel-supported-items",function(){if(Ram!==void 0)return Ram;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ram=
B},{mode:1});G$W=!0;PvI("\\P{N}");var Ilw;var cp4=_.Up("END_OF_PLAYLIST",void 0,"End of playlist"),xFt=_.Up("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),u1=function(){var B=_.z.apply(this,arguments)||this;B.minimizePipBreakages=_.T("web_pip_minimize_breakages");B.updatedCoursePanel=_.T("move_three_dot_menu_to_playlist_panel_header_for_courses");B.hideHeaderText=!1;B.useColorPalette=!1;B.collapsed=!1;B.collapsedPreServerOverride="not_tracked";B.isHovered=!1;B.modernPanels=_.T("kevlar_watch_modern_panels");
B.expandLabel=_.Up("MINIPLAYER_EXPAND_LABEL");B.collapseLabel=_.Up("MINIPLAYER_COLLAPSE_LABEL");B.isFloating=!1;B.metaPanel=!1;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};B.currentIndex=void 0;return B};
_.w(u1,_.z);_.a=u1.prototype;
_.a.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"}}}};
_.a.created=function(){this.scrollThrottle=new _.eA(this.onThrottledScroll,1E3,this)};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
_.a.computeOverflowMenuData=function(B){return B&&B.menu?B.menu:null};
_.a.computeCollapsible=function(B){return!B};
_.a.computeHasPlaylistButtons=function(B){return!(!B||!B.playlistButtons)};
_.a.computeHasSeparateSaveButton=function(B){return!(!B||!B.saveButton)};
_.a.computeHasToolbarButton=function(B,c){return!(!B||!(c||B.saveButton||B.menu))};
_.a.computePlaylistType=function(B){if(B&&B.playlistId)return B.playlistId.substring(0,4)};
_.a.computeCanReorder=function(B){return B?B.playlistId&&B.playlistId.startsWith("TLPQ")?!0:!!B.isEditable&&!B.isInfinite:!1};
_.a.attached=function(){var B=this;try{_.cp().resolve(_.vK).setPlaylistComponent(this.hostElement)}catch(c){if(_.T("kevlar_park_on_playlist_token_killswitch"))throw c;_.So().parkOrScheduleJob(function(){_.cp().resolve(_.vK).setPlaylistComponent(B.hostElement)},2,"ci")}_.Pr(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.a.detached=function(){_.YC(this.hostElement)};
_.a.computeTrailingIcon=function(B,c,x){return x?c?"yt-icons:collapse":"yt-icons:close":c?"yt-icons:expand":_.T("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.a.computeIndexMessage=function(B,c){return llC(B+1)+" / "+llC(c)};
_.a.onRenderStamperFinished=function(){if(this.scrollForStampDom){var B=!0;this.isHovered&&(B=!1);if(this.collapsed||this.hidden)B=!1;B&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.a.collapseChanged=function(){var B=this;this.collapsed||(_.Nv(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.a.hiddenChanged=function(){var B=this;this.hidden||_.Nv(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.scrollToCurrentVideo()})};
_.a.setupReordering=function(){var B=_.Y9(this.hostElement).querySelector("#items");gT0?_.rtZ(this.ytReorderableBehavior,B,B,"playlist-drag-handle"):_.rtZ(this.ytReorderableBehavior,B,B)};
_.a.scrollToCurrentVideo=function(){var B=this;_.EE.addJob(function(){var c=_.Y9(B.hostElement).querySelector("#items");if(c){c.style.setProperty("padding-bottom","");var x=_.Y9(B.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(x){c=x.parentElement||_.wp(document);var P=c||_.wp(document);var Y=_.Od(x),g=_.Od(P),k=_.CtW(P);if(P==_.wp(document)){var n=Y.x-P.scrollLeft;Y=Y.y-P.scrollTop}else n=Y.x-g.x-k.left,Y=Y.y-g.y-k.top;x=j0t(x);g=P.clientHeight-
x.height;k=P.scrollLeft;var b=P.scrollTop;k+=n-(P.clientWidth-x.width)/2;P=new _.Jx(k,b+(Y-g/2));c.scrollLeft=P.x;c.scrollTop=P.y}}},8)};
_.a.dataChanged=function(){var B=this;_.DUn(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.fl(this,function(){_.Vp(B.ytTaskEmitterBehavior.getTaskManager(),function(){B.ytRendererBehavior.markDirty();B.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.a.onFullBleedPlayerChanged=function(){_.T("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.a.onFullscreenChanged=function(){_.T("web_watch_imax_theater_mode")||_.T("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.a.updateNowPlayingOverlay=function(){_.T("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.a.onPlaylistLockupNowPlaying=function(B,c){c&&(this.activeNowPlayingRenderer=c);this.updateNowPlayingOverlay()};
_.a.onScroll=function(){this.scrollThrottle.fire()};
_.a.onThrottledScroll=function(){var B=this;_.Vp(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.ytRendererBehavior.markDirty()})};
_.a.onToggleExpanded=function(B){!this.collapsible||B&&(_.uI(B).tagName==="A"||_.uv(_.AV(B),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.a.setCollapsed=function(B){this.collapsible&&(this.collapsed=B,_.sp(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.a.handleCollapsedFromData=function(B){if(B){var c=B.playlistPanelCollapseState;c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||c==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),c=c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==c&&this.setCollapsed(c)):this.currentPlaylistId!==B.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(c=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==c&&this.setCollapsed(c),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=B.playlistId}};
_.a.handleDrop=function(B){var c=B.currDragItem;B=c.data.playlistSetVideoId;var x=_.G7(c.parentNode.childNodes,c),P=void 0;x>0&&(P=c.parentNode.childNodes[x-1].data.playlistSetVideoId);c=_.Mm();if(c.responsePlaylistData&&c.responsePlaylistData.contents){var Y=MoQ(B,c.responsePlaylistData);c.responsePlaylistData=(0,_.wW.unsafeClone)(c.responsePlaylistData);Vdx(c.responsePlaylistData.contents,Y,x);c.queueProxy?Yfn(c.queueProxy,Y,x,B,P):c.playlistProxy&&Yfn(c.playlistProxy,Y,x,B,P);_.L0(c,_.Zp(c,c.response?
c.response.autoplayRenderer:void 0))}};
_.a.handleDarkModeChange=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
_.a.colorPaletteChanged=function(){var B,c=((B=this.data)==null?void 0:B.contents)||[],x;B=_.p(c);for(c=B.next();!c.done;c=B.next()){c=c.value;var P=void 0;if((P=c.playlistPanelVideoRenderer)==null?0:P.selected){B=c.playlistPanelVideoRenderer;P=c=void 0;(x=this.isDarkTheme?(c=B)==null?void 0:c.darkColorPalette:(P=B)==null?void 0:P.lightColorPalette)&&_.E9(this.hostElement,x);break}}this.useColorPalette=!!x};
_.AJ.Object.defineProperties(u1.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.playlistId)&&!((c=this.data)==null||!c.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var B=_.cp().resolve(_.Bp(_.vK)),c;if(((c=this.data)==null?0:c.contents)&&(B==null?0:B.hasAutoplayData())){var x;if(((x=this.playlistLoopStateEntity)==null?void 0:x.state)==="PLAYLIST_LOOP_STATE_ONE"){if(B=this.data.currentIndex,B!==void 0){var P,Y;var g=(P=this.data.contents[B])==null?void 0:(Y=P.playlistPanelVideoRenderer)==null?void 0:Y.title}}else{var k,n=(k=_.t(B.getAutoplayEndpoint(),_.fN))==null?void 0:k.videoId,b,d;g=(b=this.data.contents.find(function(q){var C;
return((C=q.playlistPanelVideoRenderer)==null?void 0:C.videoId)===n}))==null?void 0:(d=b.playlistPanelVideoRenderer)==null?void 0:d.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)!=null&&B.nextVideoLabel?this.nextVideoTitle?_.iG(this.data.nextVideoLabel)+":":cp4:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.data)==null?0:B.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.fk(xFt);var c;return(c=this.data)==null?void 0:c.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.playlistButtons)==null?void 0:(x=c.menuRenderer)==null?void 0:x.topLevelButtons;if(P)for(B=_.p(P),c=B.next();!c.done;c=B.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var B;return!!(this.collapsed&&((B=this.data)==null?0:B.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
u1.prototype.colorPaletteChanged=u1.prototype.colorPaletteChanged;u1.prototype.onPlaylistLockupNowPlaying=u1.prototype.onPlaylistLockupNowPlaying;u1.prototype.updateNowPlayingOverlay=u1.prototype.updateNowPlayingOverlay;u1.prototype.onFullscreenChanged=u1.prototype.onFullscreenChanged;u1.prototype.onFullBleedPlayerChanged=u1.prototype.onFullBleedPlayerChanged;u1.prototype.dataChanged=u1.prototype.dataChanged;u1.prototype.hiddenChanged=u1.prototype.hiddenChanged;u1.prototype.collapseChanged=u1.prototype.collapseChanged;
u1.prototype.onRenderStamperFinished=u1.prototype.onRenderStamperFinished;u1.prototype.onMouseLeave=u1.prototype.onMouseLeave;u1.prototype.onMouseEnter=u1.prototype.onMouseEnter;_.L([_.J(_.Oc),_.H("design:type",Object)],u1.prototype,"ironResizableBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(AtI.YtPlaylistPanelBehavior),_.H("design:type",Object)],u1.prototype,"ytPlaylistPanelBehavior",void 0);_.L([_.J(_.xJ.YtTaskEmitterBehavior),_.H("design:type",Object)],u1.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.J(_.RN5),_.H("design:type",Object)],u1.prototype,"ytReorderableBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],u1.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],u1.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"autoplayData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],u1.prototype,"withinMiniplayer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"minimizePipBreakages",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"updatedCoursePanel",void 0);_.L([_.F({computed:"setMenuData_(data)"}),_.H("design:type",Object)],u1.prototype,"menuRendererData",void 0);_.L([_.F({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],u1.prototype,"overflowMenuDataTopRow",void 0);_.L([_.F({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],u1.prototype,"overflowMenuData",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"hideHeaderText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"useColorPalette",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.H("design:type",Boolean)],u1.prototype,"collapsible",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"collapsed",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],u1.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.H("design:type",Boolean)],u1.prototype,"hasPlaylistButtons",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.H("design:type",Boolean)],u1.prototype,"hasSeparateSaveButton",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.H("design:type",Boolean)],u1.prototype,"hasToolbar",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.H("design:type",String)],u1.prototype,"playlistType",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"isHovered",void 0);_.L([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.m0Q}),_.H("design:type",Object)],u1.prototype,"playlistLoopStateEntity",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"modernPanels",void 0);_.L([_.F({value:56}),_.H("design:type",Number)],u1.prototype,"scrollMargin",void 0);_.L([_.F({computed:"computeCanReorder(data)"}),_.H("design:type",Boolean)],u1.prototype,"canReorder",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"expandLabel",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"collapseLabel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"isFloating",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],u1.prototype,"metaPanel",void 0);_.L([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.H("design:type",String)],u1.prototype,"trailingIcon",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],u1.prototype,"isDarkTheme",void 0);
_.L([_.F({selector:_.Ev}),_.H("design:type",Boolean)],u1.prototype,"miniplayerIsActive",void 0);_.L([_.F({selector:function(B){return B.watch.playerState}}),
_.H("design:type",Number)],u1.prototype,"playerState",void 0);_.L([_.F({selector:_.zj}),_.H("design:type",Boolean)],u1.prototype,"isFullscreen",void 0);_.L([_.F({selector:_.vv}),_.H("design:type",Boolean)],u1.prototype,"isTheaterMode",void 0);_.L([_.F(),_.H("design:type",Object)],u1.prototype,"activeNowPlayingRenderer",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u1.prototype,"moveThreeDotMenuToTopRow",null);
_.L([_.Q("data","autoplayData","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],u1.prototype,"nextVideoTitle",null);_.L([_.Q("data","nextVideoTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],u1.prototype,"nextVideoLabel",null);_.L([_.Q("collapsed"),_.H("design:type",String),_.H("design:paramtypes",[])],u1.prototype,"buttonAriaLabel",null);
_.L([_.Q("data","playlistId","longBylineText"),_.H("design:type",Object),_.H("design:paramtypes",[])],u1.prototype,"mixLongByLine",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],u1.prototype,"playlistLoopStateEntityKey",null);_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"onMouseEnter",null);
_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"onMouseLeave",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u1.prototype,"showNextVideoHeader",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"onRenderStamperFinished",null);
_.L([_.bF("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"collapseChanged",null);_.L([_.bF("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"hiddenChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"dataChanged",null);
_.L([_.Q("isTheaterMode","isFullscreen"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u1.prototype,"isFullBleedPlayer",null);_.L([_.bF("isTheaterMode","isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"onFullBleedPlayerChanged",null);_.L([_.bF("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"onFullscreenChanged",null);
_.L([_.bF("playerState","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"updateNowPlayingOverlay",null);_.L([_.nF("yt-playlist-lockup-now-playing-active"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],u1.prototype,"onPlaylistLockupNowPlaying",null);
_.L([_.bF("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u1.prototype,"colorPaletteChanged",null);_.L([_.y({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],u1);
_.Pxm=_.gX()(u1,"ytd-playlist-panel-renderer",function(){if(rqy===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);rqy=B}B=rqy;return B},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var YTZ;var D7=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework");return B};
_.w(D7,_.z);D7.prototype.computeShouldButtonBeVertical=function(B,c){return B||c};
D7.prototype.onYtServiceRequestSent=function(B,c){(B=_.t(c.endpoint,_.ij))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Uy("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:B.status})):this.handleLikeEndpoint(B))};
D7.prototype.computelikeStatusEntityKey=function(B){return B==null?void 0:B.likeStatusEntityKey};
D7.prototype.handleLikeEndpoint=function(B){B.status==="LIKE"?this.JSC$14967_ytdDislikeToggleButtonRenderer.toggle(!1):B.status==="DISLIKE"?this.JSC$14967_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14967_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14967_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.AJ.Object.defineProperties(D7.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var B;return QQo(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(B=this.likeStatusEntity)==null?void 0:B.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var B;if(this.data&&((B=this.data)==null||!B.hideDislikeButton)){var c;return QQo(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(c=this.likeStatusEntity)==null?void 0:c.likeStatus)}}}});
D7.prototype.onYtServiceRequestSent=D7.prototype.onYtServiceRequestSent;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],D7.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],D7.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],D7.prototype,"vertical",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],D7.prototype,"textTransform",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],D7.prototype,"useShortsIcon",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],D7.prototype,"underIconLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],D7.prototype,"modern",void 0);_.L([_.F({value:"left"}),_.H("design:type",String)],D7.prototype,"buttonTooltipPosition",void 0);
_.L([_.F(),_.H("design:type",Object)],D7.prototype,"overrides",void 0);_.L([_.jr("#like-button"),_.H("design:type",Object)],D7.prototype,"JSC$14967_ytdLikeToggleButtonRenderer",void 0);_.L([_.jr("#dislike-button"),_.H("design:type",Object)],D7.prototype,"JSC$14967_ytdDislikeToggleButtonRenderer",void 0);_.L([_.Q("data","likeStatusEntity.likeStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],D7.prototype,"likeButton",null);
_.L([_.Q("data","likeStatusEntity.likeStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],D7.prototype,"dislikeButton",null);_.L([_.F({computed:"computelikeStatusEntityKey(data)"}),_.H("design:type",String)],D7.prototype,"likeStatusEntityKey",void 0);_.L([_.F({selectorArgs:["likeStatusEntityKey"],selector:vw}),_.H("design:type",Object)],D7.prototype,"likeStatusEntity",void 0);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],D7.prototype,"onYtServiceRequestSent",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],D7);
var aiI=_.gX()(D7,"ytd-like-button-renderer",function(){if(YTZ===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);YTZ=B}B=YTZ;return B},{mode:1});_.gtW={};
_.gtW.YtConditionalRendererBehavior=[_.R.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(B,c){var x=this,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:if(!c)return x.hidden=!0,x.showSpinner=!1,g.return();if((P=B)==null?0:(Y=P.visibilityCondition)==null?0:Y.mode)switch(B.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}x.showSpinner=
!1;x.hidden=!0;return _.K(g,x.shouldShow_(B),4);case 4:x.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return _.K(g,x.shouldShow_(B),8);case 8:x.showSpinner=g.yieldResult;x.hidden=!1;g.jumpTo(0);break;case 6:return x.showSpinner=!1,_.K(g,x.shouldShow_(B),9);case 9:x.hidden=!g.yieldResult,_.Kq(g)}})},
shouldShow_:function(B){return B&&B.supportedDatas&&B.supportedDatas.rendererVisibilityConditionData&&B.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(B.supportedDatas.rendererVisibilityConditionData.showIf):B&&B.visibilityCondition&&B.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(B.visibilityCondition.showIf):B&&B.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(B.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(B){switch(B){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(B){switch(B){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var B=_.gj(this.hostElement,"yt-get-mdx-status");return B.length==1&&B[0].connected},
isLocationPermissionGranted_:function(){var B;return _.X(function(c){return c.nextAddress==1?navigator.permissions?_.K(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2):c.nextAddress!=2?(B=c.yieldResult,c.return(Promise.resolve(B.state==="granted"))):c.return(Promise.resolve(!1))})}}];var sCd=function(B,c){c=c===void 0?{}:c;return function(x){var P=document.createElement(B),Y;var g=(Y=P.polymerController)!=null?Y:P;Qj$(P,g,x,c);return P}}("yt-icon"),pYy=_.T("web_bypass_polymer_yt_icon")&&_.T("kevlar_use_wil_icons")?_.rM(function(B){var c=B.icon;
var x=B.active;var P=B.className;var Y=B.style;var g=B.dataSelected;var k=B.dataDisabled;var n=B.role;var b=B.themeOverride;var d=B.animateIcon;var q=B.ariaHidden;var C=B.ariaExpanded;var h=B.ariaLabel;var V=B.tabindex;var N=B.id;var l=B.iconFilter;var E=function(){var f=c==null?void 0:c(),Z=null,u=void 0;f&&(f=ak9(f),f=XdI(f),f.length&&(Z=f[1],u=f[0]));return{iconName:Z,iconSetName:u}},S=function(){return gmF(E().iconName,x==null?void 0:x(),void 0,void 0,E().iconSetName,_.cp().resolve(_.nL))},M=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:l==null?void 0:l()}};
return _.U(_.m,{cond:d,then:function(){return _.U(sCd,{icon:c,active:x,className:P,style:Y,dataSelected:g,dataDisabled:k,role:n,themeOverride:b,ariaHidden:q,ariaExpanded:C,ariaLabel:h,tabindex:V,id:N,iconFilter:l})},
else:function(){return _.U(_.m,{cond:S,then:function(f){return _.U("span",{class:P,role:n,"aria-label":h,"aria-hidden":q,tabindex:function(){return isNaN(Number(V==null?void 0:V()))?void 0:Number(V==null?void 0:V())},
id:N,style:function(){return(Y==null?void 0:Y())+";display: inline-flex;"}},_.U(Oc7,{data:f,
options:M}))}})}})},"ie"):sCd;var kdZ=function(B){var c=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];yVx();_.rr("ytglobal.ytUtilActivityCallback_",function(){_.sp(B,"yt-user-activity")});
new el(function(){return c.JSC$14982_onMouseMove});
document.addEventListener("scroll",function(){return c.onScroll});
window.addEventListener("resize",function(){return c.onResize})},XYd=function(B,c,x){c in B.eventJobIds||(x=_.EB().addLowPriorityJob(function(){_.Bo();
delete B.eventJobIds[c]},x),B.eventJobIds[c]=x)};
kdZ.prototype.onScroll=function(B){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):B.target===document&&XYd(this,"scroll",200)};
kdZ.prototype.onResize=function(){XYd(this,"resize",200)};
kdZ.prototype.JSC$14982_onMouseMove=function(){XYd(this,"mousemove",100)};
_.rZ=function(B){B.scrollEventsToIgnore+=1;B.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){B.scrollEventsToIgnore--},500))};var $FF=function(B){this.element=B;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
$FF.prototype.showFeedbackDialog=function(B,c,x,P){var Y=ntF();if(!Y)return!1;var g=flw();g.productId=Y;c&&(g.flow="submit",g.report={description:c});x&&(ntF()==="59"?g.callback=_.ya(function(){_.JP("userFeedbackEvent",{});x()}):g.callback=_.ya(x));
g.bucket=P||_.v5("GOOGLE_FEEDBACK_BUCKET","Other");bBt(g);B=KuW(this,"GFEEDBACK",B);try{_.jE4(g,B)}catch(k){return _.SI(k),!1}return!0};
$FF.prototype.showHelpDialog=function(B,c,x){var P=this,Y=ntF();if(!Y)return!1;var g={helpCenterPath:"/youtube",productData:KuW(this,"GUIDED_HELP",x)};bBt(g);var k=flw();k.context=B||g.productData.context||"default";k.defaultHelpArticleId=c;k.enableSendFeedback=!0;(_.Gu("gapi.load")||function(n,b){return b()})("client",function(){try{var n=r0F(Y,g);
if(_.T("web_always_load_chat_support")&&!P.chatSupportLoaded)try{n.JSC$8021_loadChatSupport(k),P.chatSupportLoaded=!0}catch(b){}n.startHelp(k)}catch(b){_.SI(b)}})};
var ntF=function(){var B=_.v5("GOOGLE_FEEDBACK_PRODUCT_ID");B||_.SI(Error("di"));return B},bBt=function(B){B&&(B.locale=_.T("kevlar_help_use_locale")?_.v5("INNERTUBE_CONTEXT_HL","en"):_.v5("HTML_LANG","en"))},KuW=function(B,c,x){var P=B.productData;
delete P.origin;P.device=_.dC();var Y;a:{if(Y=document.createElement("canvas")){var g=Y.getContext("experimental-webgl",{stencil:!0});if(g){var k=g.getExtension("WEBGL_debug_renderer_info");if(k){Y=g.getParameter(k.UNMASKED_RENDERER_WEBGL);break a}}if(g=Y.getContext("webgl")){Y=g.getParameter(g.RENDERER);break a}}Y=null}P.gpu=Y;P.isSDC=!!_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Y=_.v5("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.wW.extend(P,Y);_.ZXO(c,P);_.HXI(P);(B=_.sp(B.element,"yt-get-autonav-pause-debug-state"))&&
B.length&&(P.autonav_pause_state=B[0]);B=_.KH();P.browser_resolution=B.width+"\u00d7"+B.height+"@"+(window.devicePixelRatio||1)+"x";x&&_.wW.extend(P,x);return P};
$FF.prototype.resetProductData=function(){this.productData={}};var jCd=function(B){this.feedbackManager=new $FF(B)};
jCd.prototype.showFeedbackDialog=function(B,c,x,P){return this.feedbackManager.showFeedbackDialog(B,c,x,P)};
jCd.prototype.showHelpDialog=function(B,c,x){return this.feedbackManager.showHelpDialog(B,c,x)};var UFd=function(){this.baseUrl="";this.aTag=document.createElement("a")},cCm=function(B,c,x){x=x===void 0?{}:x;
x.pbj||(x.pbj=1);x=_.t_O(c,x);B.baseUrl&&x&&!_.uk(x)[1]&&!_.Dg(x)&&(c=B.baseUrl,gC(c,"/")&&(c=c.slice(0,-1)),_.YI(x,"/")&&(x=x.slice(1)),x=c+"/"+x);IW(B.aTag,C6(x||""));return B.aTag.href};
UFd.prototype.fetchData=function(B){return _.zK7(B)};
UFd.prototype.postData=function(B,c){var x={method:"POST"};if(c){for(var P=_.p(Object.keys(c)),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;var g=c[Y];_.xF(g)&&(c[Y]=JSON.stringify(g))}x.postParams=c}return _.zK7(B,x)};
_.xWQ=function(B,c,x,P,Y){B=cCm(B,c,x);if(!B)throw P=Error("ei"),Object.assign(P,{params:c}),P;return _.zK7(B,Y,P)};
UFd.prototype.requestDataForServiceEndpoint=function(B,c){if(_.t(B,_.kMQ))return this.fetchData("/getAccountSwitcherEndpoint");c=c||{};var x=_.t(B,IEI);x?c.se=x.base64EncodedServiceEndpoint:c.sej=JSON.stringify(B);(x=_.Wf())&&_.T("enable_service_ajax_csn")&&(c.csn=x);c.theme=_.Iu();_.t(B,sYd)&&_.v5("DELEGATION_CONTEXT")&&(c.delegation_context=JSON.stringify(_.v5("DELEGATION_CONTEXT")));x=null;for(var P in B)if(gC(P,"Endpoint")||gC(P,"Command")){x=P;break}if(!x){var Y=Error("fi");Object.assign(Y,{params:B});
_.m_o(Y,"WARNING");return new _.bb(function(k,n){n(Y)})}P={name:x};
var g;(x=(g=_.t(B,_.KW))==null?void 0:g.signal)&&(P.signal=x);(g=_.fa(window.location.href))&&g.internalcountrycode&&(P.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.T("debug_forward_web_query_parameters")&&(g=_.FeX(g,window.location.search));g=_.AR(g,P);B.clickTrackingParams&&_.Da(g,{itct:B.clickTrackingParams});return this.postData(g,c)};_.dFW=new _.BL("GFEEDBACK_TOKEN");var qTm;var CxI;var hrF;var mF9;var rm=function(){var B=_.z.apply(this,arguments)||this;B.compact=!1;return B};
_.w(rm,_.z);rm.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rm.prototype.computeHasIcon_=function(B){return!!B};
rm.prototype.isSignInIcon_=function(B){return B=="yt-icons:prompted_sign_in"};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gtW.YtConditionalRendererBehavior),_.H("design:type",Object)],rm.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rm.prototype,"data",void 0);
_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],rm.prototype,"icon_",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.H("design:type",Boolean)],rm.prototype,"hasIcon_",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.H("design:type",Boolean)],rm.prototype,"signInIcon_",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rm.prototype,"compact",void 0);
_.L([_.Em({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],rm);
_.G(rm,"yt-player-error-message-renderer",function(){if(mF9===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;hrF===void 0&&(hrF=document.createElement("template"));var P=hrF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);mF9=B}B=mF9;return B},{mode:2});var TiF;var Vj4;var RT=function(){return _.z.apply(this,arguments)||this};
_.w(RT,_.z);RT.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
RT.prototype.computeIcon_=function(B){return B?"yt-icons:"+B.iconType.toLowerCase():"error_outline"};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RT.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],RT.prototype,"icon_",void 0);_.L([_.Em({is:"yt-player-kav-renderer",disableElementRegistration:!0})],RT);
_.G(RT,"yt-player-kav-renderer",function(){if(Vj4===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;TiF===void 0&&(TiF=document.createElement("template"));var P=TiF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Vj4=B}B=Vj4;return B},{mode:2});_.xU(_.rM(function(B){var c=_.Ho("div"),x=_.p(_.$D(0,void 0,"gCmSbf")),P=x.next().value,Y=x.next().value;x=_.p(_.$D(null,void 0,"Rj9zMe"));var g=x.next().value,k=x.next().value;_.lk(function(){uwQ(c.value,Y,k);c.value.scrollIntoView()});
x=Dq7.bind(null,B.data,P);rU("resize",function(){var n=g();if(P()===1&&n!==null){var b;(b=window.grecaptcha)==null||b.reset(n)}});
return _.U("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.U("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.U("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var n,b;return(n=B.data().accessibility)==null?void 0:(b=n.accessibilityData)==null?void 0:b.label}),_.U(_.RF,{text:x,
className:_.Kw("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.U("div",{el:c,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.cw}});var rzl=!1;_.tjZ=_.rM(function(B){var c=B.data;return _.U("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.U(_.m,{cond:function(){return c().icon},
then:function(x){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.U(_.D9,{data:x,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.U(_.m,{cond:function(){return c().title},
then:function(x){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.U(_.RF,{text:x}))}}),_.U(_.m,{cond:function(){return c().description},
then:function(x){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.U(_.RF,{text:x}))}}),_.U(_.IF,{data:function(){return c().primaryButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.U(_.IF,{data:function(){return c().secondaryButton}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.tjZ.idomCompat=!0;var wYy=_.rM(function(B){var c=B.data;_.rc();return _.U("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.U("div",{class:"player-interstitial-renderer-wiz__scrim"},_.U(_.IF,{data:function(){return c().content}},{interstitialViewModel:_.tjZ})))},"le");
wYy.idomCompat=!0;_.xU(wYy,"yt-player-interstitial-renderer",{props:{data:_.rk}});var eU=function(){var B=_.z.apply(this,arguments)||this;B.noBackground=!1;B.compact=!1;B.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return B};
_.w(eU,_.z);eU.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"}}}};
eU.prototype.onUpdatePlayerErrorMessageCommand_=function(B){if(_.t(B,MVd)){var c;if(B=(c=_.t(B,MVd))==null?void 0:c.newPlayerErrorMessageRenderer)this.data=B}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eU.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],eU.prototype,"status",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eU.prototype,"noBackground",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eU.prototype,"compact",void 0);_.L([_.Em({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],eU);
var Nim=_.gX()(eU,"yt-playability-error-supported-renderers",function(){if(CxI===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;qTm===void 0&&(qTm=document.createElement("template"));var P=qTm;x.call(c,P.content.cloneNode(!0),B.content.firstChild);CxI=B}B=CxI;return B},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RKl=void 0,BnI=void 0;var P7l=new FXF;var Ii5=function(B){this.store=B;this.ubA=new _.SIy},jP7=function(B,c,x){var P,Y;
if(!(Y=((P=c.playabilityStatus)==null?void 0:P.status)!=="OK")){B=B.store;var g;Y=c.offlineState&&((g=c.videoDetails)==null?0:g.videoId)?_.T("enable_pl_r_c_cd")?h7I(B.getState().entities,c.videoDetails.videoId):!!A4X(B.getState().entities,c.videoDetails.videoId):!1}if(Y)return!0;Y=p4o(c);if(Y===1){if(_.T("ab_v_vid_sig")){var k,n=(k=c.videoDetails)==null?void 0:k.videoId;if(!n||!x||n!==x){var b;c=new _.mc("282054944_vid",{bnq:x,pxy:(b=c.videoDetails)==null?void 0:b.videoId});_.lb(c)}}return!0}VqQ=
0;var d,q;b=(n=c.auxiliaryUi)==null?void 0:(d=n.messageRenderers)==null?void 0:(q=d.bkaEnforcementMessageViewModel)==null?void 0:q.displayType;if(Y!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.c3(_.Up("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.T("ks_something_wrong_learn_more")?NIw("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.c3(_.Up("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:_.c3("282054944")};JpZ(c,{playerErrorMessageRenderer:b});return!1},U1Y=function(B,c){if(GCI(c)){_.bI(1,!0);
var x=(x=GCI(c))&&_.eKQ()?x:void 0;x?(JpZ(c,{enforcementMessageViewModel:x}),B.ubA.increment("IN_PLAYER"),_.bI(5)):(B.ubA.increment("SKIP_DISPLAY"),_.bI(2))}},JpZ=function(B,c){B.playabilityStatus=Object.assign({},B.playabilityStatus,{status:"ERROR",
errorScreen:c});B.videoDetails=void 0};
Ii5.prototype.handleResponse=function(B,c){if(B.playabilityStatus){var x,P,Y,g=(c==null?void 0:(x=c.innerTubeRequest)==null?void 0:x.videoId)||(c==null?void 0:(P=c.innerTubeRequest)==null?void 0:(Y=P.playerRequest)==null?void 0:Y.videoId);jP7(this,B,g)&&U1Y(this,B)}};
Ii5[em]=[nC];var bJw=new _.BL("ADBLOCK_DETECTION_SERVICE_TOKEN");var ci=function(B){this.fcf=B};
ci.prototype.bindInnertubeChallengeFetcher=function(B){this.fcf.bicf(B)};
ci.prototype.registerChallengeFetchedCallback=function(B){this.fcf.bcr(B)};
ci.prototype.getLatestChallengeResponse=function(){return this.fcf.blc()};var OBI;_.B2=function(B,c,x){var P=this;this.network=B;this.options=c;this.networkStatusManager=x;this.b2=null;if(c.useBotguardEverywhere){var Y=new _.kH;this.b2=Y.promise;_.xI.ytAtRC&&_.C3(_.EE,function(){var g,k;return _.X(function(n){if(n.nextAddress==1){if(!_.xI.ytAtRC)return n.return();g=Wuy(null);return _.K(n,P.k9(g),2)}k=n.yieldResult;_.xI.ytAtRC&&_.xI.ytAtRC(JSON.stringify(k));_.Kq(n)})});
bzx().then(function(g){var k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(C){return P.k9(Wuy(C))}),_.K(q,JGX(),2);
k=q.yieldResult;n=g.getLatestChallengeResponse();b=n.challenge;if(!b)throw Error("gi");d={challenge:b,uV:Bi(b),eO:k,bgChallenge:new Rv};Y.resolve(d);g.registerChallengeFetchedCallback(function(C){C=C.challenge;if(!C)throw Error("hi");C={challenge:C,uV:Bi(C),eO:k,bgChallenge:new Rv};P.b2=Promise.resolve(C)});
_.Kq(q)})})}else c.preload&&liy(this,new Promise(function(g){_.Vp(_.EE,function(){g(EtW(P))},0)}))};
OBI=function(B){var c={preload:!0,useBotguardEverywhere:!0},x=!1;if(typeof c==="boolean")var P={preload:c};else typeof c==="undefined"?P={preload:!0}:(P=c,x=!!c.mFv);c=x?void 0:new _.Z$;_.B2.instance=new _.B2(B,P,c);return _.B2.instance};
_.B2.prototype.hip=function(){var B=this;return _.X(function(c){return c.nextAddress==1?_.K(c,Promise.race([B.b2,null]),2):c.return(!!c.yieldResult)})};
_.B2.prototype.dji=function(B,c,x){var P=this,Y,g,k;return _.X(function(n){P.b2===null&&liy(P,EtW(P));Y=!1;g={};k=function(){var b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:return _.K(C,P.b2,2);case 2:b=C.yieldResult;g.challenge=b.challenge;if(!b.eO){"c1a"in b.uV&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");C.jumpTo(3);break}d=Object.assign({},{c:b.challenge,e:B},c);_.kM(C,4);Y=!0;return _.K(C,b.eO.snapshot({hY:d}),6);case 6:(q=C.yieldResult)?g.webResponse=q:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Gw(C,3);break;case 4:_.be(C),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(B==="ENGAGEMENT_TYPE_PLAYBACK"){var h=b.uV,V={};if(h.c6a){var N=Number(_.v5("DCLKSTAT",0));V.reportingStatus=String(Number(h.c)^(isNaN(N)?0:N))}h.c6b&&(V.broadSpectrumDetectionResult=String(Number(h.c)^Number(_.v5("CATSTAT",0))));g.adblockReporting=V}return C.return(g)}})};
return n.return(Promise.race([k(),ot4(x,function(){var b=Object.assign({},g);Y&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var Wuy=function(B){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};B&&(c.interpreterHash=B);return c},EtW=function(B,c){c=c===void 0?0:c;
var x,P,Y,g,k,n,b,d,q,C,h,V;return _.X(function(N){switch(N.nextAddress){case 1:x=Wuy(SGS().n6c);if(_.T("att_fet_ks"))return _.kM(N,7),_.K(N,B.k9(x),9);_.kM(N,4);return _.K(N,QCQ(B,x),6);case 6:k=N.yieldResult;Y=k.qsO;g=k.kWi;P=k;_.Gw(N,3);break;case 4:return _.be(N),_.Ob(Error("ii`"+c)),FuI(B,864E5),N.return({challenge:"",uV:{},eO:void 0,bgChallenge:void 0});case 9:P=N.yieldResult;if(!P)throw Error("ji");if(!P.challenge)throw Error("ki");Y=P.challenge;g=Bi(Y);if("c1a"in g&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("li");
_.Gw(N,3);break;case 7:n=_.be(N);_.Ob(n);c++;if(c>=5)return _.Ob(Error("ii`"+c)),FuI(B,864E5),N.return({challenge:"",uV:{},eO:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,c-1)+Math.random()*1E3;return N.return(new Promise(function(l){_.Vp(_.EE,function(){l(EtW(B,c))},b)}));
case 3:d=naw(g);FuI(B,d*1E3);q=void 0;if(!("c1a"in g&&P.bgChallenge)){N.jumpTo(10);break}C=$ox(P.bgChallenge);_.kM(N,11);return _.K(N,Gzd(SGS(),C),13);case 13:_.Gw(N,12);break;case 11:return h=_.be(N),_.Ob(h),N.return({challenge:Y,uV:g,eO:q,bgChallenge:C});case 12:return _.kM(N,14),q=new _.FL({challenge:C,ue:{qU:"aGIf"}}),_.K(N,q.tOC,16);case 16:_.Gw(N,10);break;case 14:V=_.be(N),_.Ob(V),q=void 0;case 10:return N.return({challenge:Y,uV:g,eO:q,bgChallenge:C})}})};
_.B2.prototype.k9=function(B){var c=this,x;return _.X(function(P){x=c.networkStatusManager;if(!x||x.isNetworkAvailable())return P.return(c.network.k9(B));_.Qj("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(Y){x.listenOnce("publicytnetworkstatus-online",function(){c.network.k9(B).then(Y)})}))})};
var vt0=function(B){if(!B)throw Error("ji");if(!B.challenge)throw Error("ki");var c=B.challenge,x=Bi(c);if("c1a"in x&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("li");return Object.assign({},B,{qsO:c,kWi:x})},QCQ=function(B,c){var x,P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:x=void 0,P=0,Y={};case 2:if(!(P<5)){n.jumpTo(4);break}if(!(P>0)){n.jumpTo(5);break}Y.beu=1E3*Math.pow(2,P-1)+Math.random()*1E3;return _.K(n,new Promise(function(b){return function(d){_.Vp(_.EE,function(){d(void 0)},b.beu)}}(Y)),5);
case 5:return _.kM(n,7),_.K(n,B.k9(c),9);case 9:return g=n.yieldResult,n.return(vt0(g));case 7:x=k=_.be(n),k instanceof Error&&_.Ob(k);case 8:P++;Y={beu:void 0};n.jumpTo(2);break;case 4:throw x;}})},liy=function(B,c){B.b2=c},zrd=function(B){var c,x,P;
return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,Promise.race([B.b2,null]),2);c=Y.yieldResult;var g=EtW(B);B.b2=g;(x=c)==null||(P=x.eO)==null||P.dispose();_.Kq(Y)})},FuI=function(B,c){var x=Date.now()+c,P=function(){var Y;
return _.X(function(g){Y=x-Date.now();return Y<1E3?_.K(g,zrd(B),0):(_.Vp(_.EE,P,Math.min(Y,6E4)),g.jumpTo(0))})};
P()},ot4=function(B,c){return new Promise(function(x){_.Vp(_.EE,function(){x(c())},B)})};var ST9=function(){};
ST9.prototype.processContext=function(B){var c=_.B2.instance;if(!c)return _.ia();var x=qXq(B);return x?new fV(c.dji(x,UoY(B),500).then(function(P){var Y;(B==null?0:(Y=B.innerTubeRequest)==null?0:Y.context)||(B.innerTubeRequest.context={});Y=B.innerTubeRequest.context;Y.request||(Y.request={});Y.request.attestationResponseData=P})):_.ia()};var yp5=function(B){this.innertubeTransportService=B};
yp5.prototype.k9=function(B){_.Qj("att_fsr",void 0,"attestation_challenge_fetch");return _.Fa(this.innertubeTransportService,B,_.Dj(_.MoI)).then(function(c){_.Qj("att_frr",void 0,"attestation_challenge_fetch");return c})};_.Gdy=function(B){this.innertubeTransportService=B};var Mjy=new _.BL("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var LuS=function(){},HB3=function(B,c,x,P,Y){var g=_.v5("YPC_MB_URL");
_.BgC(g).then(function(){ZBW(g,B,c,x,P,Y)})},ZBW=function(B,c,x,P,Y,g){try{var k=payments.business.integration,n=payments.business.integration.Style.create().withMaterialDesignStyle(),b=k.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.T("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));g&&(b=b.usingCloseCallback(g));var d=x?x:_.v5("YPC_GB_LANGUAGE"),q=_.v5("SESSION_INDEX");k.bootstrap.fromPaymentsUrl(B);k.bootstrap.asMashupMode(b).usingGaiaIndex(q).usingLocale(d).usingStyle(n).usingDefaultActivityStatusChangeHandler().inStandaloneContext(k.standaloneContextAuthId.forGaia()).purchaseManager(c,function(C){P&&P(C)}).load(void 0,Y)}catch(C){throw Y&&Y(C),_.lb(C),C;
}};var iBm=new _.BL("PURCHASE_MANAGER_TOKEN");var ApW=function(){var B=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return B.videos},
getContinuationsPresent:function(){return B.continuationsPresent},
setVideos:function(c){B.videos=c},
getRecommendedVideos:function(){return B.recommendedVideos},
setRecommendedVideos:function(c){B.recommendedVideos=c}}};
ApW.prototype.addVideos=function(B){B&&(this.videos=B.filter(function(c){return!!_.hJx(c)}).map(function(c){var x=_.hJx(c);
a:{var P;if(c.playlistVideoRenderer&&((P=c.playlistVideoRenderer)==null?0:P.voteSortTiebreaker))var Y=c.playlistVideoRenderer.voteSortTiebreaker;else{if(_.t(c,Pi)){var g;if(P=(Y=_.t(c,Pi))==null?void 0:(g=Y.playlistItemData)==null?void 0:g.voteSortTiebreaker){Y=P;break a}}Y=""}}return{itemId:x,videoId:_.Vzq(c),voteCount:_.tzx(c),voteSortTiebreaker:Y}}),this.continuationsPresent=!!_.t(B[B.length-1],_.sB))};
var uW9=function(B,c){return B.videos.findIndex(function(x){return x.itemId===c})},DFt=function(B,c){return B.recommendedVideos.findIndex(function(x){return x.itemId===c})},rp4=function(B){B={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:B}}}}};_.cp().resolve(_.xu).resolveCommand(B)};var Rrn=function(){ApW.apply(this,arguments)};
_.w(Rrn,ApW);
var vaF=function(B,c,x,P){if(!B.parentElem)throw Error("qi");var Y=uW9(B,c);Y===-1&&(Y=DFt(B,c),Y=Y!==-1?Y+B.videos.length:-1);if(Y===-1)throw Error("ri");var g=Y>=B.videos.length?B.recommendedVideos[Y-B.videos.length]:B.videos[Y];g.voteCount=x;g.voteSortTiebreaker=Date.now().toString();Y>=B.videos.length?B.recommendedVideos.splice(Y-B.videos.length,1):B.videos.splice(Y,1);var k=B.videos;for(var n=0,b=k.length-1;n<=b;){var d=Math.floor((n+b)/2);if(k[d].voteCount<g.voteCount)b=d-1;else if(k[d].voteCount>g.voteCount)n=
d+1;else{a:{var q=g.voteSortTiebreaker;var C=k[d].voteSortTiebreaker;if(q.length!==C.length)q=q.length>C.length;else{for(var h=0;h<q.length;h++){var V=q.charCodeAt(h),N=C.charCodeAt(h);if(V>N){q=!0;break a}if(V<N)break}q=!1}}q?b=d-1:n=d+1}}k=n;if(k===-1)throw Error("si");B.videos.splice(k,0,g);Y!==k&&erS(B,Y,k,c,x,P)},erS=function(B,c,x,P,Y,g){var k,n=(k=B.parentElem)==null?void 0:k.children,b=Math.min(c,x),d=Math.max(c,x);
if(n)for(k=b;k<=d;k++)n[k].style.viewTransitionName="item-"+String(k);document.startViewTransition(function(){if(B.parentElem){var q=B.parentElem.children;if(!(!q||c<0||c>=q.length||x<0||x>=q.length)){var C=q[c];if(C){C.remove();B.showRefreshPill=x>=B.videos.length-1&&B.continuationsPresent;if(!B.showRefreshPill){q=q[x]||null;var h;(h=B.parentElem)==null||h.insertBefore(C,q)}_.aJ(B.parentElem,"yt-update-video-data-voting-animation",{toIdx:x,itemId:P,newVoteCount:Y,voteStatus:g,hideItem:B.showRefreshPill})}}}}).finished.then(function(){if(n)for(var q=
b;q<=d;q++)n[q].style.viewTransitionName="";
if(B.showRefreshPill)rp4(_.Up("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var C;if(C=q=(C=B.parentElem)==null?void 0:C.children[x])C=q.getBoundingClientRect(),q=C.bottom,C=!(C.top>=0&&q<=B.clientHeight);C&&(C=_.dj(c>x?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(c-x)),rp4(C))}})};var xh5=function(B,c){var x=this;B?this.innertubeTransportServicePromise=Promise.resolve(B):c&&(this.innertubeTransportServicePromise=c(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new SU(3E3,function(P){return BPm(x,P)},0);
this.validateMiniAppVideoIdRateLimiter=new SU(3E3,function(P){return c$4(x,P)},1)},Q49=function(B,c){B.JSC$15094_miniAppId=c;
B.reportMiniAppValueRateLimiter=new SU(3E3,function(x){return BPm(B,x)},0);
B.validateMiniAppVideoIdRateLimiter=new SU(3E3,function(x){return c$4(B,x)},1)},veQ=function(B,c){var x;
return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.reportMiniAppValueRateLimiter.call(c),2);x=P.yieldResult;return P.return([x,c])})},BPm=function(B,c){var x,P,Y,g,k,n,b;
return _.X(function(d){switch(d.nextAddress){case 1:return _.K(d,B.innertubeTransportServicePromise,2);case 2:return x=d.yieldResult,P=_.Dj(ujt),Y=Date.now(),g={externalPostId:B.JSC$15094_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Y/1E3),nanos:Math.round(Y%1E3*1E6)},intValue:""+c}},_.kM(d,3),_.K(d,_.Fa(x,g,P),5);case 5:k=d.yieldResult;_.Gw(d,4);break;case 3:throw n=_.be(d),n;case 4:if(k){if("error"in k&&k.error)throw k.error;if(k.errorMetadata)throw Error("ti`"+
k.errorMetadata.status);if(b=k.userStatResult)return d.return(b);throw Error("ui");}throw Error("vi");}})},SK0=function(B){var c,x,P,Y,g;
_.X(function(k){switch(k.nextAddress){case 1:return _.K(k,B.innertubeTransportServicePromise,2);case 2:return c=k.yieldResult,x=_.Dj(ujt),P={externalPostId:B.JSC$15094_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.kM(k,3),_.K(k,_.Fa(c,P,x),5);case 5:Y=k.yieldResult;_.Gw(k,4);break;case 3:throw g=_.be(k),g;case 4:if(Y==null)throw Error("vi");if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("ti`"+Y.errorMetadata.status);_.Kq(k)}})};
xh5.prototype.flush=function(){var B=this;return _.X(function(c){return c.nextAddress==1?_.K(c,B.reportMiniAppValueRateLimiter.flush(),2):_.K(c,B.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var zan=function(B,c){return _.X(function(x){return x.nextAddress==1?_.K(x,B.validateMiniAppVideoIdRateLimiter.call(c),2):x.return(x.yieldResult)})},c$4=function(B,c){var x,P,Y,g,k,n;
return _.X(function(b){switch(b.nextAddress){case 1:return _.K(b,B.innertubeTransportServicePromise,2);case 2:return x=b.yieldResult,P=_.Dj(GCF),Y={videoId:c},_.kM(b,3),_.K(b,_.Fa(x,Y,P),5);case 5:g=b.yieldResult;_.Gw(b,4);break;case 3:throw k=_.be(b),k;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("ti`"+g.errorMetadata.status);if(n=g.playabilityStatus)return b.return(n.status);throw Error("wi");}throw Error("vi");}})};
xh5[em]=[_.Bp(_.ou),_.Bp(CSW)];var PE4=function(){this.clientData=new Map};
PE4.prototype.getData=function(B){return this.clientData.get(B)};var YR3=function(B){this.store=B};
YR3.prototype.handleResponse=function(B){(B=_.t(B.frameworkUpdates,iv))&&_.jB(B,this.store)};
YR3[em]=[_.GC];var aUI=new _.BL("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var gjS={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,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 sqZ=new _.BL("ICON_SET_TOKEN"),pPW=new _.BL("ICON_URL_PROVIDER_TOKEN"),kSW=new _.BL("PREFETCH_ICONS_TOKEN"),XPn=new _.BL("ICON_MAP_FN_TOKEN");var c2={},$hd=(c2.ACCESS_TIME="clock",c2.ACCOUNT_BOX="person_account",c2.ACCOUNT_BOX_CAIRO="person_account_cairo",c2.ACCOUNT_CIRCLE="person_circle",c2.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",c2.ACCOUNT_LINKED="account_link_success",c2.ACCOUNT_UNLINKED="account_link",c2.ADD_FRIEND="people",c2.ADD_MODERATOR="shield_add",c2.ADD_TO_LIBRARY=aE("add"),c2.ADD_TO_PLAYLIST="add",c2.ADD_TO_QUEUE_TAIL="list_queue",c2.ADD_TO_REMOTE_QUEUE="list_music",c2.ADD_TO_WATCH_LATER="clock",c2.ADD_VIDEO_LINK="film_strip_add",
c2.ALERT_WARN_RED="alert_triangle",c2.ARROW_BACK="arrow_left",c2.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",c2.ARROW_DROP_DOWN="chevron_down",c2.ARROW_DROP_UP="chevron_up",c2.ARROW_FORWARD="arrow_right",c2.AUDIOTRACK="audio",c2.AUTO_AWESOME="sparkle",c2.AVATAR_ANONYMOUS="person_circle",c2.AVATAR_LOGGED_OUT="person_circle",c2.BACK="arrow_left",c2.BAR_CHART="bar_graph",c2.BLOCK="slash_circle_left",c2.BLOCK_USER="slash_circle_left",c2.BOOKMARK_BORDER="bookmark",c2.BREAKING_NEWS_ALT_1="article_alert",
c2.BROADCAST_CAIRO="podcast_cairo",c2.BUG_REPORT="bug",c2.CAMERA_ALT="camera",c2.CAMPAIGN="megaphone",c2.CANCEL="x_circle",c2.CAPTIONS="closed_caption",c2.CAST_OUTLINE="chromecast",c2.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",c2.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",c2.CHAT="message_bubble_left",c2.CHAT_BUBBLE="message_bubble_empty",c2.CHAT_SPARK="spark_message_bubble_left",c2.CHECK_BOX_OUTLINE_BLANK="box_empty",c2.CHECK_CIRCLE_OUTLINE="check_circle",c2.CHECK_CIRCLE_THICK="check_circle",c2.CLARIFY=
"article_clarify",c2.CLOSED_CAPTION_SELECTED="closed_caption",c2.CLOSE="x_mark",c2.CLOUD_UPLOAD="cloud_arrow_up",c2.COLLAPSE="chevron_up",c2.COLLAPSE_CAIRO="chevron_up_cairo",c2.COLLECTION="layers",c2.COLOR_LENS="palette",c2.COMMENT="message_bubble_right",c2.CONSENT_SHIELD="person_shield",c2.CONTENT_CUT="scissors",c2.CONTENT_CUT_CAIRO="scissors_cairo",c2.COURSE=_.T("web_enable_course_icon_update")?"creator_academy":"lightbulb",c2.COURSE_CAIRO=_.T("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",c2.CREATION_LIVE="radar_live",c2.CREATION_POST="box_pencil",c2.CREATION_UPLOAD="my_videos",c2.CREATION_UPLOAD_RED="upload",c2.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",c2.CREATOR_STUDIO="youtube_studio",c2.DASHBOARD="grid_asymmetrical",c2.DELETE="trash_can",c2.DELETE_SWEEP="trash_can",c2.DESKTOP="laptop",c2.DISLIKE="thumb_down",c2.DISLIKE_SELECTED="thumb_down",c2.DISMISSAL="x_mark",c2.DISMISS_QUEUE="list_remove",c2.DONE_ALL="check_double",c2.DOWN_ARROW="arrow_down",c2.DO_NOT_DISTURB=
"slash_circle_left",c2.DRAFT="paper_corner_folded",c2.DRAG_HANDLE="bars_2",c2.EDIT="pencil",c2.EMOJI="face_very_happy",c2.EMOJI_FLAGS="flag",c2.EMOJI_OBJECTS="lightbulb",c2.EMOJI_PEOPLE="face_very_happy",c2.EMOJI_RECENT="clock",c2.EMPTY_HEART="heart",c2.EMPTY_LIKE="thumb_up",c2.ERROR_BLACK="alert_circle",c2.ERROR_OUTLINE="alert_circle",c2.EXIT_APP="arrow_in",c2.EXIT_TO_APP="arrow_in",c2.EXPAND="chevron_down",c2.EXPAND_ALL="chevron_expand",c2.EXPAND_CAIRO="chevron_down_cairo",c2.EXPAND_LESS="chevron_up",
c2.EXPAND_MORE="chevron_down",c2.EXPLORE="compass",c2.EXPLORE_DESTINATION="compass",c2.EXTERNAL_LINK="open_new",c2.FAB_UPLOAD="upload",c2.FACE_HAPPY_OUTLINE="face_happy",c2.FACT_CHECK="article_check",c2.FASHION_LOGO="fashion",c2.FASHION_LOGO_CAIRO="fashion_cairo",c2.FAVORITE="heart",c2.FEEDBACK="message_bubble_alert",c2.FEEDBACK_CAIRO="message_bubble_alert_cairo",c2.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",c2.FILL_ARROW_SOLID_UP_16="arrow_solid_up",c2.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
c2.FILTER="menu_filter",c2.FIRST_PAGE="chevron_first",c2.FLAG="flag",c2.FULL_HEART="heart",c2.GAME_CONSOLE_DPAD="game_console_dpad",c2.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",c2.GAMING_LOGO="gaming",c2.GAMING_LOGO_CAIRO="gaming_cairo",c2.GO_TO_PAGE="arrow_right",c2.GROUPS="people_group",c2.HAPPY="face_happy",c2.HEALTH_AND_SAFETY="shield_plus",c2.HELP="question_circle",c2.HELP_CAIRO="question_circle_cairo",c2.HELP_OUTLINE="question_circle",c2.HIDE="slash_circle_left",c2.IMAGE="image",
c2.INFINITY_ICON="infinity",c2.INFO="info_circle",c2.INFO_OUTLINE="info_circle",c2.INSERT_CHART_OUTLINED="bar_graph_box_vertical",c2.INSERT_PHOTO="image",c2.KEEP="pin",c2.KEEP_OFF="pin_off",c2.KEYBOARD="keyboard",c2.KEYBOARD_ARROW_DOWN="chevron_down",c2.KEYBOARD_ARROW_UP="chevron_up",c2.KIDS_BLOCK="slash_circle_left",c2.LANGUAGE="globe",c2.LAST_PAGE="chevron_last",c2.LAUNCH="open_new",c2.LEARNING="lightbulb",c2.LEARNING_CAIRO="lightbulb_cairo",c2.LIBRARY_ADD=aE("library_add"),c2.LIBRARY_OUTLINE="library",
c2.LIBRARY_REMOVE=aE(),c2.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",c2.LIKES_PLAYLIST="thumb_up",c2.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",c2.LIKE="thumb_up",c2.LIKE_SELECTED="thumb_up",c2.LIVE="radar_live",c2.LIVE_CAIRO="radar_live_cairo",c2.LIVE_UNLISTED="link",c2.LOCATION_ON="location_point",c2.LOCATION_PIN="location_point",c2.LOOP="arrow_repeat",c2.LOOP_ACTIVE="arrow_repeat",c2.LOOP_ONE="arrow_repeat_1",c2.LOOP_ONE_ACTIVE="arrow_repeat_1",c2.MEH="face_meh",c2.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
c2.MESSAGE="message_bubble_left",c2.MICROPHONE_ON="mic",c2.MIX="youtube_mix",c2.MONETIZATION_ON="dollar_sign_circle",c2.MONEY_FILL="dollar_sign_container",c2.MONEY_FILL_JPY="yen_sign_container",c2.MONEY_HEART="dollar_sign_heart",c2.MORE_HORIZ="overflow_horizontal",c2.MORE_VERT="overflow_vertical",c2.MUSIC="audio",c2.MUSIC_CAIRO="audio_cairo",c2.MUSIC_NOTE_SYMBOL="music",c2.MUSIC_SHUFFLE="arrow_shuffle",c2.MY_CHANNEL="person_circle",c2.MY_LOCATION="location_point",c2.NEWS_STORY="news",c2.NEXT="chevron_right",
c2.NOTIFICATIONS="bell",c2.NOTIFICATIONS_ACTIVE="bell_on",c2.NOTIFICATIONS_CAIRO="bell_cairo",c2.NOTIFICATIONS_DONE_CHECKMARK="check",c2.NOTIFICATIONS_INBOX="bell",c2.NOTIFICATIONS_NONE="bell",c2.NOTIFICATIONS_OFF="bell_off",c2.NOT_INTERESTED="slash_circle_left",c2.OFFICIAL_ARTIST_BADGE="audio",c2.OFFLINE_CLOUD="cloud_off",c2.OFFLINE_DOWNLOAD="download",c2.OFFLINE_DOWNLOAD_CAIRO="download_cairo",c2.OFFLINE_PAUSE="pause",c2.OPEN_IN_NEW="open_new",c2.OUTLINE_ADJUST="adjust",c2.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",c2.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",c2.OUTLINE_BAG="bag",c2.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",c2.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",c2.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",c2.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",c2.PAID="dollar_sign",c2.PAUSE_OUTLINED="pause",c2.PAYMENT="credit_card",c2.PERSON_RADAR_FILLED="person_radar",c2.PHONE_DOWNLOAD="mobile_download",c2.PLAYABLES_LOGO="tic_tac_toe",c2.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
c2.PLAYLISTS="list_play_arrow",c2.PLAYLISTS_CAIRO="list_play_arrow_cairo",c2.PLAYLIST_ADD=aE("list_add"),c2.PLAYLIST_ADD_CHECK=aE("list_check"),c2.PLAYLIST_PLAY="list_play_arrow",c2.PLAY_ALL="play_arrow",c2.PLAY_CIRCLE="play_arrow_circle",c2.PLAY_OUTLINED="play_arrow_circle",c2.PRIVACY_INFO="shield",c2.PRIVACY_PRIVATE="lock",c2.PRIVACY_PUBLIC="earth",c2.PRIVACY_UNLISTED="link",c2.PROMOTE="megaphone",c2.PURCHASES="price_tag",c2.PURCHASE_SUPER_CHAT="super_chat",c2.PURCHASE_SUPER_STICKER="super_sticker",
c2.QUESTION_ANSWER="message_bubble_question",c2.QUEUE_PLAY_LAST="list_queue_last",c2.QUEUE_PLAY_NEXT="list_play_arrow",c2.REMIX_FILLED="youtube_shorts_remix",c2.REMOVE="bar_circle",c2.REMOVE_CIRCLE="bar_circle",c2.REMOVE_CIRCLE_OUTLINE="bar_circle",c2.REMOVE_DONE="check_double_off",c2.REMOVE_FROM_HISTORY="bar_circle",c2.REMOVE_FROM_PLAYLIST="bar_circle",c2.REMOVE_MODERATOR="shield_off",c2.REPLAY="arrow_circle",c2.REPLAY_10="skip_back_10",c2.REPORT_PROBLEM="alert_triangle",c2.SAD="face_sad",c2.SAVE_PLAYLIST=
aE("library_add"),c2.SCHEDULE="clock",c2.SCHOOL="creator_academy",c2.SCREEN_FULLSCREEN="screen_full",c2.SEARCH_HISTORY="arrow_time",c2.SELL="price_tag",c2.SETTINGS="gear",c2.SETTINGS_CAIRO="gear_cairo",c2.SETTINGS_LIGHT="gear",c2.SETTINGS_MATERIAL="gear",c2.SHARE_ARROW="share",c2.SHIELD_WITH_AVATAR="person_shield",c2.SHOPPING_BAG="bag",c2.SHOPPING_BAG_CAIRO="bag_cairo",c2.SHOPPING_CART="cart",c2.SHORTS_COMMENT="youtube_shorts_message_bubble_right",c2.SHORTS_DISLIKE="youtube_shorts_thumb_down",c2.SHORTS_LIKE=
"youtube_shorts_thumb_up",c2.SHORTS_SHARE="youtube_shorts_share",c2.SHUFFLE="arrow_shuffle",c2.SLOW_MODE_OFF="message_bubble_left",c2.SOCIAL="people",c2.SORT="menu_sort",c2.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",c2.SPEED_1X="1x",c2.SPEED_1_POINT_2X="1_point_2x",c2.SPEED_1_POINT_5X="1_point_5x",c2.SPEED_1_POINT_8X="1_point_8x",c2.SPEED_2X="2x",c2.SPEED_POINT_2X="point_2x",c2.SPEED_POINT_8X="point_8x",c2.SPONSORSHIP_STAR=_.T("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",c2.STAFF_PICK=
"spotlight",c2.START_DVR="add",c2.STAR_BORDER="star",c2.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",c2.STICKER_EMOTICON="face_happy",c2.STOP_DVR="stop",c2.SUBSCRIBE="youtube_logo_icon",c2.SUBSCRIBE_PLUS="add_cairo",c2.SUBSCRIPTION_MANAGER="gear",c2.SUPERVISOR_ACCOUNT="people",c2.SUPER_CHAT_FOR_GOOD="hands_heart",c2.SWAP_HORIZ="arrow_swap_horizontal",c2.SWITCH_ACCOUNTS="person_account",c2.TAB_ACCOUNT="person",c2.TAB_ACTIVITY="bell",c2.TAB_BOOKMARK="bookmark",c2.TAB_EXPLORE="compass",c2.TAB_HOME=
"home",c2.TAB_HOME_CAIRO="home_cairo",c2.TAB_INBOX="mail",c2.TAB_LIKED="thumb_up",c2.TAB_MUSIC_PREMIUM="youtube_music",c2.TAB_SHORTS="youtube_shorts",c2.TAB_SHORTS_CAIRO="youtube_shorts_cairo",c2.TAB_SUBSCRIPTIONS="subscriptions",c2.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",c2.TAB_TRENDING="fire",c2.TIMER="stopwatch",c2.TRAILER="youtube_originals",c2.TRENDING="fire",c2.TRENDING_CAIRO="fire_cairo",c2.TRENDING_UP="rating_up",c2.TROPHY="trophy",c2.TROPHY_CELEBRATIONS="fireworks",c2.TUNE="adjust",
c2.UNBLOCK_USER="bar_circle",c2.UNLIMITED="youtube_logo_icon",c2.UNPLUGGED_LIVE_GUIDE="radar_live",c2.UNPLUGGED_SPORTS="eye_off",c2.UPLOADS="library",c2.UP_ARROW="arrow_up",c2.VERTICAL_ALIGN_BOTTOM="download",c2.VERY_HAPPY="face_very_happy",c2.VERY_SAD="face_very_sad",c2.VIDEOGAME_ASSET="gaming",c2.VIDEOS="play_arrow_circle",c2.VIDEO_CALL="video_camera_add",c2.VIDEO_LIBRARY_WHITE="library",c2.VIDEO_YOUTUBE="youtube_logo_icon",c2.VIEW_LIST="list_view",c2.VIEW_LIST_CAIRO="list_view_cairo",c2.VISIBILITY=
"eye",c2.VISIBILITY_OFF="eye_off",c2.VOLUME_MUTE="volume_off",c2.VOLUME_UP="volume_on",c2.WALLPAPER="image",c2.WARNING="alert_triangle",c2.WATCH_HISTORY="arrow_time",c2.WATCH_HISTORY_CAIRO="arrow_time_cairo",c2.WATCH_LATER="clock",c2.WATCH_LATER_CAIRO="clock_cairo",c2.WATCH_RELATED_MIX="youtube_mix",c2.WHAT_TO_WATCH="home",c2.YOUTUBE_MUSIC_MONOCHROME="youtube_music",c2.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",c2.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",c2.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",c2.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",c2.YT_OUTLINE_MUSIC_24="music",c2);var x3={},njS=(x3.ACCESS_TIME="clock",x3.ACCOUNT_BOX="person_square",x3.ACCOUNT_BOX_CAIRO="person_square",x3.ACCOUNT_CIRCLE="person_circle",x3.ACCOUNT_CIRCLE_CAIRO="person_circle",x3.ACCOUNT_LINKED="account_link",x3.ACCOUNT_UNLINKED="account_link",x3.ADD_CIRCLE="add_circle",x3.ADD_FRIEND="person_child",x3.ADD_TO_LIBRARY="bookmark",x3.ADD_TO_PLAYLIST="add",x3.ADD_TO_QUEUE_TAIL="queue",x3.ADD_TO_REMOTE_QUEUE="playlist_audio",x3.ADD_TO_WATCH_LATER="clock",x3.ADD_VIDEO_LINK="film_strip_add",x3.ADMIN_PANEL_SETTINGS=
"gear",x3.ALERT_WARN_RED="alert_triangle",x3.ALIGN_LEFT="text_align_left",x3.ARROWS_ALERT="arrow_split_alert",x3.ARROW_BACK="arrow_left",x3.ARROW_CIRCLE="arrow_counterclockwise",x3.ARROW_CIRCLE_PLAY="replay",x3.ARROW_CIRCLE_RIGHT="arrow_clockwise",x3.ARROW_DIAGONAL="arrow_up_left",x3.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",x3.ARROW_DROP_DOWN="triangle_down",x3.ARROW_DROP_UP="triangle_up",x3.ARROW_FORWARD="arrow_right",x3.ARROW_PAUSE="pause_history",x3.ARROW_UNDO="undo",x3.ARTICLE="text_page",x3.ARTICLE_ALERT=
"text_page_alert",x3.ARTICLE_CHECK="text_page_check",x3.ARTICLE_CLARIFY="text_page_info",x3.AUDIOTRACK="audio",x3.AUDIO_BADGE="audio_badge",x3.AUDIO_SURROUND="surround_sound",x3.AVATAR_ANONYMOUS="person_circle",x3.AVATAR_LOGGED_OUT="person_circle",x3.BACK="arrow_left",x3.BAR_CHART="chart_bar",x3.BAR_CIRCLE="minus_circle",x3.BAR_HORIZONTAL="minus",x3.BLOCK="circle_slash",x3.BLOCK_USER="circle_slash",x3.BOOKMARK_BORDER="bookmark",x3.BOX_OPEN_CHECK="quiz",x3.BOX_PENCIL="square_pencil",x3.BREAKING_NEWS_ALT_1=
"text_page_alert",x3.BROADCAST="podcast",x3.BROADCAST_CAIRO="podcast",x3.BUG_REPORT="bug",x3.CAMERA_ALT="camera",x3.CAMPAIGN="megaphone",x3.CANCEL="x_circle",x3.CAPTIONS="closed_captions",x3.CAST_ICON="chromecast",x3.CAST_OUTLINE="chromecast",x3.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",x3.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",x3.CHAT="text_bubble",x3.CHAT_BUBBLE="bubble",x3.CHECK_BOX="check_square",x3.CHECK_BOX_OUTLINE_BLANK="square",x3.CHECK_CIRCLE_FILLED="check_circle",x3.CHECK_CIRCLE_OUTLINE=
"check_circle",x3.CHECK_CIRCLE_THICK="check_circle",x3.CHECK_DOUBLE="check_done",x3.CHECK_DOUBLE_OFF="check_done_slash",x3.CHEVRON_LEFT="chevron_left",x3.CHEVRON_RIGHT="chevron_right",x3.CHEVRON_RIGHT_CAIRO="chevron_right",x3.CIRCLES_OVERLAP="account_link",x3.CLAPPERBOARD_CAIRO="clapperboard",x3.CLARIFY="text_page_info",x3.CLOCK_ARROWS="clock_split",x3.CLOCK_ARROWS_ALERT="clock_split_alert",x3.CLOSED_CAPTION="closed_captions",x3.CLOSED_CAPTION_SELECTED="closed_captions",x3.CLOSE="x",x3.CLOUD_UPLOAD=
"cloud_arrow_up",x3.COLLAPSE="chevron_up",x3.COLLAPSE_CAIRO="chevron_up",x3.COLLECTION="square3d_stack",x3.COLOR_LENS="paint_palette",x3.COMMENT="text_bubble",x3.CONSENT_SHIELD="person_shield",x3.CONTENT_CUT="scissors",x3.CONTENT_CUT_CAIRO="scissors",x3.COURSE="graduation_cap",x3.COURSE_CAIRO="graduation_cap",x3.CREATION_LIVE="live",x3.CREATION_POST="square_pencil",x3.CREATION_UPLOAD="video",x3.CREATION_UPLOAD_RED="upload",x3.CREATOR_ACADEMY="graduation_cap",x3.CREATOR_STUDIO="youtube_studio",x3.DARK_THEME=
"theme",x3.DELETE="trash_can",x3.DELETE_SWEEP="trash_can",x3.DESKTOP="laptop",x3.DISLIKE="thumb_down",x3.DISLIKE_SELECTED="thumb_down",x3.DISMISSAL="x",x3.DISMISS_QUEUE="playlist_x",x3.DOGFOOD="pawprint",x3.DOLLAR_SIGN="dollar_sign_circle",x3.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",x3.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",x3.DOWN_ARROW="arrow_down",x3.DO_NOT_DISTURB="circle_slash",x3.DRAFT="document",x3.EARTH="globe",x3.EDIT="pencil",x3.EMOJI="face_very_happy",x3.EMOJI_FLAGS="flag",x3.EMOJI_OBJECTS=
"lightbulb",x3.EMOJI_PEOPLE="face_very_happy",x3.EMOJI_RECENT="clock",x3.EMPTY_HEART="heart",x3.EMPTY_LIKE="thumb_up",x3.ERROR_BLACK="alert_circle",x3.ERROR_OUTLINE="alert_circle",x3.ERROR_WHITE="alert_circle",x3.EXIT_APP="arrow_in",x3.EXIT_TO_APP="arrow_in",x3.EXPAND="chevron_down",x3.EXPAND_ALL="chevron_expand",x3.EXPAND_CAIRO="chevron_down",x3.EXPAND_LESS="chevron_up",x3.EXPAND_MORE="chevron_down",x3.EXPLORE="compass",x3.EXPLORE_DESTINATION="compass",x3.EXTERNAL_LINK="arrow_up_right",x3.EYE_OFF=
"eye_slash",x3.FAB_UPLOAD="upload",x3.FACE_HAPPY_OUTLINE="face_happy",x3.FACE_MEH="face_neutral",x3.FACT_CHECK="text_page_check",x3.FASHION_LOGO="fashion",x3.FASHION_LOGO_CAIRO="fashion",x3.FAVORITE="thumb_up",x3.FEEDBACK="alert_bubble",x3.FEEDBACK_CAIRO="alert_bubble",x3.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",x3.FILL_ARROW_SOLID_UP_16="arrow_solid_up",x3.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",x3.FLAG_CAIRO="flag",x3.FLASH_OFF="flash_slash",x3.FLASH_ON="flash",x3.FULL_HEART="heart",x3.GAMING_LOGO=
"gaming",x3.GAMING_LOGO_CAIRO="gaming",x3.GO_TO_PAGE="arrow_right",x3.GROUPS="person3",x3.HAND_SWIPE_LEFT="gesture_swipe_left",x3.HAND_SWIPE_RIGHT="gesture_swipe_right",x3.HAPPY="face_happy",x3.HEALTH_AND_SAFETY="shield_health",x3.HEART_BOX="heart_cube",x3.HELP="help_circle",x3.HELP_CAIRO="help_circle",x3.HELP_OUTLINE="help_circle",x3.HIDE="circle_slash",x3.INCOGNITO_CAIRO="incognito",x3.INFINITY_ICON="infinity",x3.INFO="info_circle",x3.INFO_OUTLINE="info_circle",x3.INSERT_CHART_OUTLINED="chart_bar_square",
x3.INSERT_PHOTO="image",x3.KEEP="pin",x3.KEEP_OFF="pin_slash",x3.KEYBOARD="keyboard",x3.KEYBOARD_ARROW_DOWN="chevron_down",x3.KEYBOARD_ARROW_UP="chevron_up",x3.KIDS_BLOCK="circle_slash",x3.LANGUAGE="globe",x3.LAUNCH="arrow_up_right",x3.LEARNING="lightbulb",x3.LEARNING_CAIRO="lightbulb",x3.LIBRARY_ADD="bookmark",x3.LIBRARY_IMAGE="image_stack",x3.LIBRARY_MUSIC="audio_square_stack",x3.LIBRARY_OUTLINE="play_square_stack",x3.LIBRARY_REMOVE="bookmark",x3.LIBRARY_SAVED="check_square_stack",x3.LIKES_PLAYLIST=
"thumb_up",x3.LIKES_PLAYLIST_CAIRO="thumb_up",x3.LIKE="thumb_up",x3.LIKE_SELECTED="thumb_up",x3.LIST_QUEUE="queue",x3.LIVE_CAIRO="live",x3.LIVE_UNLISTED="link",x3.LOCATION_ON="location_pin",x3.LOCATION_PIN="location_pin",x3.LOCATION_POINT="location_pin",x3.LOOP="repeat",x3.LOOP_ACTIVE="repeat",x3.LOOP_ONE="repeat1",x3.LOOP_ONE_ACTIVE="repeat1",x3.MEET="google_meet",x3.MEH="face_neutral",x3.MEMBERSHIPS="memberships",x3.MEMBERS_ONLY_MODE_OFF="text_bubble",x3.MENU_FILTER="filter",x3.MESSAGE="text_bubble",
x3.MESSAGE_BUBBLE_GEAR="bubble_gear",x3.MESSAGE_BUBBLE_LEFT="text_bubble",x3.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",x3.MESSAGE_BUBBLE_OVERLAP="bubble_stack",x3.MESSAGE_BUBBLE_QUESTION="help_bubble",x3.MICROPHONE_ON="mic",x3.MONETIZATION_ON="dollar_sign_circle",x3.MONEY_FILL="dollar_sign_rectangle",x3.MONEY_FILL_JPY="yen_sign_rectangle",x3.MONEY_HAND="dollar_sign_circle_hand",x3.MONEY_HEART="dollar_sign_heart",x3.MOON_Z="sleep_timer",x3.MORE_HORIZ="overflow_horizontal",x3.MORE_VERT="overflow_vertical",
x3.MUSIC="audio",x3.MUSIC_CAIRO="audio",x3.MUSIC_EXPLICIT_BADGE="explicit",x3.MUSIC_NEW_RELEASE="audio_badge",x3.MUSIC_NOTE_SYMBOL="audio",x3.MUSIC_SCISSORS="audio_scissors",x3.MUSIC_SHUFFLE="shuffle",x3.MY_CHANNEL="person_circle",x3.MY_LOCATION="location_pin",x3.MY_VIDEOS="video",x3.MY_VIDEOS_CAIRO="video",x3.NEWS_CAIRO="news",x3.NEWS_STORY="news",x3.NEXT="chevron_right",x3.NOTE_ADD="bubble_pencil",x3.NOTIFICATIONS="bell",x3.NOTIFICATIONS_ACTIVE="bell_waves",x3.NOTIFICATIONS_CAIRO="bell",x3.NOTIFICATIONS_DONE_CHECKMARK=
"check",x3.NOTIFICATIONS_INBOX="bell",x3.NOTIFICATIONS_NONE="bell",x3.NOTIFICATIONS_OFF="bell_slash",x3.NOT_INTERESTED="circle_slash",x3.OFFICIAL_ARTIST_BADGE="audio",x3.OFFLINE_CLOUD="cloud_slash",x3.OFFLINE_DOWNLOAD="download",x3.OFFLINE_DOWNLOAD_CAIRO="download",x3.OFFLINE_PAUSE="pause",x3.OPEN_IN_NEW="arrow_up_right",x3.OUTLINE_ADJUST="adjust",x3.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",x3.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",x3.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",x3.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",x3.OUTLINE_BAG="bag",x3.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",x3.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",x3.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",x3.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",x3.PAID="dollar_sign_circle",x3.PAUSE_OUTLINED="pause",x3.PAYMENT="credit_card",x3.PEOPLE="person_child",x3.PEOPLE_2="person2_rectangle",x3.PEOPLE_GROUP="person3",x3.PEOPLE_NOTE="bubble_asterisk",x3.PERSON_2="person2",x3.PERSON_ACCOUNT="person_square_stack",x3.PERSON_MINUS=
"person_x",x3.PERSON_MUSIC="person_audio",x3.PERSON_RADAR="person_waves",x3.PERSON_RADAR_FILLED="person_waves",x3.PERSON_SETTING="person_gear",x3.PHONE="phone",x3.PHONE_DOWNLOAD="mobile_arrow_down",x3.PICTURE_IN_PICTURE="picture_in_picture",x3.PLAYABLES_LOGO="playables",x3.PLAYABLES_LOGO_CAIRO="playables",x3.PLAYLISTS="playlist",x3.PLAYLISTS_CAIRO="playlist",x3.PLAYLIST_ADD_CHECK="bookmark",x3.PLAY_ALL="play",x3.PLAY_ARROW="play",x3.PLAY_ARROW_CIRCLE="play_circle",x3.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
x3.PLAY_CIRCLE="play_circle",x3.PLAY_OUTLINED="play_circle",x3.PODCAST_ADD="podcast_add",x3.PODCAST_CHECK="podcast_check",x3.PRIVACY_INFO="shield_x",x3.PRIVACY_PRIVATE="lock",x3.PRIVACY_PUBLIC="globe",x3.PRIVACY_UNLISTED="link",x3.PROMOTE="megaphone",x3.PURCHASES="price_tag",x3.PURCHASE_SUPER_CHAT="super_chat",x3.PURCHASE_SUPER_STICKER="super_sticker",x3.QUESTION_ANSWER="help_bubble",x3.QUESTION_CIRCLE="help_circle",x3.QUEUE_PLAY_LAST="queue_last",x3.QUEUE_PLAY_NEXT="playlist",x3.QUOTATION_MARK="quote",
x3.RADAR_LIVE="live",x3.REMOVE="minus_circle",x3.REMOVE_CIRCLE="minus_circle",x3.REMOVE_CIRCLE_OUTLINE="minus_circle",x3.REMOVE_FROM_HISTORY="minus_circle",x3.REMOVE_FROM_PLAYLIST="minus_circle",x3.REPLAY="arrow_counterclockwise",x3.REPLAY_10="skip10_back",x3.REPLAY_ARROW="replay",x3.REPORT_PROBLEM="alert_triangle",x3.RSS_OFF="rss_slash",x3.SAD="face_sad",x3.SAVE_PLAYLIST="bookmark",x3.SCHEDULE="clock",x3.SCHOOL="graduation_cap",x3.SCREEN_DEFAULT="player_default",x3.SCREEN_FULLSCREEN="player_full_enter",
x3.SCREEN_LIGHT="ambient_mode",x3.SCREEN_ROTATION="rotate_portrait",x3.SCREEN_SWITCH="player_switch",x3.SEARCH_CAIRO="search",x3.SEARCH_HISTORY="history",x3.SELL="price_tag",x3.SETTINGS="gear",x3.SETTINGS_CAIRO="gear",x3.SETTINGS_LIGHT="gear",x3.SETTINGS_MATERIAL="gear",x3.SETTINGS_REMOTE="remote_waves",x3.SHARE="share",x3.SHARE_ARROW="share",x3.SHARE_CAIRO="share",x3.SHIELD="shield_x",x3.SHIELD_OFF="shield_slash",x3.SHIELD_WITH_AVATAR="person_shield",x3.SHOPPING_BAG="bag",x3.SHOPPING_BAG_CAIRO="bag",
x3.SHOPPING_CART="cart",x3.SHORTS_COMMENT="text_bubble",x3.SHORTS_DISLIKE="thumb_down",x3.SHORTS_LIKE="thumb_up",x3.SHORTS_SHARE="share",x3.SKIP_FORWARD_30="skip30_forward",x3.SLASH_CIRCLE_RIGHT="circle_slash",x3.SLOW_MODE_OFF="text_bubble",x3.SOCIAL="person_child",x3.SPARKLE="sparkles",x3.SPARK_IMAGE="image_spark",x3.SPARK_RADAR="spark_waves",x3.SPARK_VIDEO="video_spark",x3.SPEAKER_GROUP="speaker_stack",x3.SPEAKER_OFF="speaker_slash",x3.SPEED_1X="n1x",x3.SPEED_1_POINT_2X="n1point2x",x3.SPEED_1_POINT_5X=
"n1point5x",x3.SPEED_1_POINT_8X="n1point8x",x3.SPEED_2X="n2x",x3.SPONSORSHIP_STAR="memberships",x3.SPORTS="basketball",x3.SPOTLIGHT="spotlight",x3.STAFF_PICK="spotlight",x3.START_DVR="add",x3.STAR_BORDER="star",x3.STAR_HALF="star_half_filled",x3.STAR_SHOOTING="hype",x3.STICKER="sticker",x3.STICKER_EMOTICON="face_happy",x3.STOP_DVR="stop",x3.SUBSCRIBE="youtube",x3.SUBSCRIBE_PLUS="add",x3.SUBSCRIPTION_MANAGER="gear",x3.SUPERSTAR="super_star",x3.SUPERVISOR_ACCOUNT="person_child",x3.SWAP_HORIZ="arrow_swap_horizontal",
x3.SWITCH_ACCOUNTS="person_square_stack",x3.TAB_ACCOUNT="person",x3.TAB_ACTIVITY="bell",x3.TAB_BOOKMARK="bookmark",x3.TAB_EXPLORE="compass",x3.TAB_HOME="home",x3.TAB_HOME_CAIRO="home",x3.TAB_INBOX="mail",x3.TAB_LIKED="thumb_up",x3.TAB_MUSIC_PREMIUM="youtube_music",x3.TAB_SHORTS="shorts",x3.TAB_SHORTS_CAIRO="shorts",x3.TAB_SUBSCRIPTIONS="subscriptions",x3.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",x3.TAB_TRENDING="trending",x3.TARGET="target",x3.TARGET_ADD="target_add",x3.TEMPLATE_ADD="template_add",
x3.TEXT="font",x3.TIMER="stopwatch",x3.TRENDING_CAIRO="trending",x3.TRENDING_UP="arrow_trend_up",x3.TROPHY_CAIRO="trophy",x3.TROPHY_CELEBRATIONS="fireworks",x3.TROPHY_STAR="star_trophy",x3.TUNE="adjust",x3.TV_OFF="tv_slash",x3.UNBLOCK_USER="minus_circle",x3.UNFAVORITE="thumb_down",x3.UNLIMITED="youtube",x3.UNPLUGGED_LIVE_GUIDE="live",x3.UNPLUGGED_SPORTS="eye_slash",x3.UPLOADS="play_square_stack",x3.UP_ARROW="arrow_up",x3.VERTICAL_ALIGN_BOTTOM="chevron_down_end",x3.VERTICAL_ALIGN_TOP="chevron_up_end",
x3.VERY_HAPPY="face_very_happy",x3.VERY_SAD="face_very_sad",x3.VIDEOS="play_circle",x3.VIDEO_CALL="video_camera_add",x3.VIDEO_LIBRARY_WHITE="play_square_stack",x3.VIDEO_QUALITY_4K="n4k",x3.VIDEO_QUALITY_8K="n8k",x3.VIDEO_YOUTUBE="youtube",x3.VIEW_LIST_CAIRO="view_list",x3.VIEW_MODULE="view_column3_row2",x3.VISIBILITY="eye",x3.VISIBILITY_OFF="eye_slash",x3.VOLUME_DOWN="volume_min",x3.VOLUME_MUTE="volume_mute",x3.VOLUME_OFF="volume_mute",x3.VOLUME_STABLE="stable_volume",x3.VOLUME_UP="volume_max",x3.WALLPAPER=
"image",x3.WARNING="alert_triangle",x3.WATCH_HISTORY="history",x3.WATCH_HISTORY_CAIRO="history",x3.WATCH_LATER="clock",x3.WATCH_LATER_CAIRO="clock",x3.WATCH_RELATED_MIX="mix",x3.WHAT_TO_WATCH="home",x3.YOUTUBE_LINKED_TV="tv_mobile",x3.YOUTUBE_MUSIC_MONOCHROME="youtube_music",x3.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",x3.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",x3.YOUTUBE_SHORTS_ARROW_UP="arrow_up",x3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",x3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"shorts_empty",x3.YOUTUBE_SHORTS_OUTLINE_24="shorts",x3);var bnF={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,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,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,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,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,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,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,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,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,8,18],[1,8,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,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,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,8,24],[1,8,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,3,24],[1,3,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,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,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,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],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,17,13],[0,17,24],[1,17,16],[1,17,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,2,16],[1,2,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,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,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,7,18],[1,7,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]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,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,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,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,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,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,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,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,1,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,7,12],[0,7,24],
[1,7,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,11,24],[1,11,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,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,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,5,24]],skip_previous:[[0,5,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,8,12],[0,8,16],[0,8,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,3,12],[0,3,16],[0,3,18],[0,3,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,3,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,10,24],[1,10,18],[1,10,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,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,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,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,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,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,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,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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 KiW={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],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,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,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,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!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,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,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,1,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,1,24]],audio:[[0,9,24],[1,9,24]],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]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],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,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],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,8,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_right:[[1,6,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,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],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,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,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,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],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,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,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,2,24],[1,2,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_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]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,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,9,24]],info_circle_spark:[[1,1,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,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],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,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_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]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,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,1,24],[1,1,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,1,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,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,
3,24],[1,3,24]],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,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,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,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,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,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],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:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,
2,24],[1,2,24]],skip10_back:[[1,1,24]],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,1,24]],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,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,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,1,24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,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,3,24],[1,3,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,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],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,2,24],[1,2,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,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,3,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,
2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],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:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,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,2,24]],waveform_spark:[[1,2,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,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 jqy={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",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"},P2=function(B){this.iconUrlProvider=B};
P2.prototype.resolveIcon=function(B,c){var x=jqy[B.iconName.toUpperCase()];x&&(B.iconName=x);var P=B.iconName;P=P.replace(/-/g,"_");B=Object.assign({},B,{iconName:this.mapIconTypeToStandardName(P,!!x)||P.toLowerCase()});if(_.T("enable_web_delhi_icons")||x){var Y;return Nno(KiW,B,((Y=this.iconUrlProvider)==null?void 0:Y.getYtStandardUrl)||WYO,c)}var g;return Nno(bnF,B,((g=this.iconUrlProvider)==null?void 0:g.getYtStandardUrl)||JSC,c)};
P2.prototype.mapIconTypeToStandardName=function(B,c){return _.T("enable_web_delhi_icons")||c?njS[B.toUpperCase()]:$hd[B.toUpperCase()]};
P2[em]=[_.Bp(pPW)];var UhW=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),dhy=function(B){this.urlProvider=this.iconUrlProvider=B};
_.w(dhy,P2);
dhy.prototype.resolveIcon=function(B,c){B.iconName==="youtube_logo"&&(B.iconName="yt-logo-updated");if(B.iconName==="youtube_premium_logo"||B.iconName==="youtube_red_logo")B.iconName="yt-logo-red-updated";var x=Object.assign({},B);B.iconName==="menu"&&(_.T("enable_web_delhi_icons")||(x.iconName="bars_3"),x.iconStyle="youtube_outline");B.iconSetName==="socialNetworksRound"&&(B.iconName==="mail"&&(x.iconName="email"),B.iconName==="embed"&&(x.iconSize=60));B.iconName==="more"&&(x.iconName="overflow_horizontal");
B.iconName==="fullscreen"&&(x.iconName="screen_full");B.iconName==="premium_standalone"&&(x.iconName="premium_standalone_cairo");_.T("enable_connect_icon_update_web")&&B.iconName==="account_linked"&&(x.iconName="circles_overlap_check",x.iconStyle="youtube_fill");_.T("enable_connect_icon_update_web")&&B.iconName==="account_unlinked"&&(x.iconName="circles_overlap",x.iconStyle="youtube_outline");UhW.has(B.iconName)&&(x.iconStyle="youtube_fill");_.T("enable_web_delhi_icons")&&B.iconName==="playlist_add"&&
(x.iconName="bookmark");B=Object.assign({},x,{iconName:(P2.prototype.mapIconTypeToStandardName.call(this,x.iconName)||x.iconName).toLowerCase()});var P;return(B=Nno(gjS,B,((P=this.urlProvider)==null?void 0:P.getUrl)||lvl,c))?B:P2.prototype.resolveIcon.call(this,x,c)};
dhy[em]=[_.Bp(pPW)];_.qR9=1;var Y3=function(){};
_.w(Y3,GG);Y3.prototype.resolveCommand=function(B){var c,x;return _.X(function(P){c=_.t(B,IO3);if(!c)return P.return();x=Number(c.enableDelayedPacfLoggingTvMs);if(isNaN(x)){var Y=bB();LOZ(Y,c,0)}else LOZ(bB(),c,x);_.Kq(P)})};_.a9=function(){};
_.w(_.a9,GG);
_.a9.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d;return _.X(function(q){P=_.t(B,JE5);g=(Y=c.form)==null?void 0:Y.element;n=(k=g)==null?void 0:k.closest("ytd-enforcement-message-view-model");if(!P||!n)return q.return();x.allowAdsAction||(b=P.fundingChoiceInstructionPageUrl,x.allowAdsAction=new eO9(window,_.OE(b)));var C=x.allowAdsAction;C.wallElement=n;C.allowAdsPopup.style.setProperty("display","flex","important");var h=C.scrollManager;h.originalBodyOverflow=h.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow;h.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow=
"hidden";C.wallElement.style.setProperty("display","none","important");$jy(C.accessibilityManager,C.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((d=x.allowAdsAction.allowAdsPopup)&&d instanceof HTMLElement)for(C=_.p(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h=C.next();!h.done;h=C.next()){var V=_.p(h.value);h=V.next().value;V=V.next().value;d.style.setProperty(h,V)}_.Kq(q)})};
_.a9.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var gH=function(){};
_.w(gH,GG);gH.prototype.resolveCommand=function(B){var c;return _.X(function(x){c=_.t(B,GVQ);if(!c)return x.return();d7X(B);_.Kq(x)})};var sH=function(B){this.JSC$15134_commandHandler=B};
_.w(sH,GG);
sH.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1){x=_.t(B,nbt);if((P=x)==null||!P.text||!navigator.clipboard)return q.return();_.kM(q,2);return _.K(q,navigator.clipboard.writeText(x.text),4)}if(q.nextAddress!=2){if(!x.successActions||x.successActions.length===0)return q.return();Y=_.p(x.successActions);for(g=Y.next();!g.done;g=Y.next())k=g.value,c.JSC$15134_commandHandler.resolveCommand(k);return _.Gw(q,0)}_.be(q);if(!x.failureActions||x.failureActions.length===
0)return q.return();n=_.p(x.failureActions);for(b=n.next();!b.done;b=n.next())d=b.value,c.JSC$15134_commandHandler.resolveCommand(d);_.Kq(q)})};
sH[em]=[_.xu];var pf=function(B){this.JSC$15138_commandHandler=B};
_.w(pf,GG);
pf.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h;return _.X(function(V){switch(V.nextAddress){case 1:P=_.t(B,A4t);if(!P)return V.return();_.kM(V,2);if(!P.imageBytes&&!P.imageUrl)throw Error("xi");if(!P.imageUrl){if(P.imageBytes){g=P.imageBytes;k=g.replace(/-/g,"+").replace(/_/g,"/");var N=oax(k);Y=_.Vc(N)}V.jumpTo(4);break}return _.K(V,fetch(P.imageUrl),5);case 5:return n=V.yieldResult,_.K(V,n.blob(),6);case 6:b=V.yieldResult,Y=_.Vc(b);case 4:C=(d=c)==null?void 0:(q=d.form)==
null?void 0:q.element;h=document.createElement("a");IW(h,Y);C.appendChild(h);h.download="";h.click();C.removeChild(h);URL.revokeObjectURL(_.UG(Y));P.successCommand&&x.JSC$15138_commandHandler.resolveCommand(P.successCommand);_.Gw(V,0);break;case 2:_.be(V),P.errorCommand&&x.JSC$15138_commandHandler.resolveCommand(P.errorCommand),_.Kq(V)}})};
pf[em]=[_.xu];var k3=function(B){this.store=B};
_.w(k3,GG);k3.prototype.resolveCommand=function(B){var c=this,x,P,Y;return _.X(function(g){P=(x=_.t(B,_.wJt))==null?void 0:x.entityBatchUpdate;if(!P)return g.jumpTo(0);Y=Object.assign({},P,{mutations:[].concat(_.wq(P.mutations||[]))});return _.K(g,_.jB(Y,c.store),0)})};var CEI=function(B){this.JSC$15145_commandHandler=B;this.feedbackDialogMap=new Map};
CEI.prototype.openDialog=function(B,c){(B=this.feedbackDialogMap.get(B))&&this.JSC$15145_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:B}},c)};
CEI[em]=[_.xu];var Xz=new _.BL("FEEDBACK_CONTROLLER_TOKEN");var $3=new _.BL("APP_STORE_TOKEN");var nf=function(B,c){this.store=B;this.controller=c};
_.w(nf,GG);nf.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f;return _.X(function(Z){if(Z.nextAddress==1){P=_.t(B,_.Fs);if(g=(Y=P)==null?void 0:Y.contentId)for(n=_.p(((k=P)==null?void 0:k.actions)||[]),b=n.next();!b.done;b=n.next())d=b.value,hHm(x,d,g);h=(q=c)==null?void 0:(C=q.form)==null?void 0:C.element;return _.K(Z,_.kC(h,[B]).catch(function(){}),2)}V=Z.yieldResult;
((N=V)==null?0:(l=N.data)==null?0:(E=l.feedbackResponses)==null?0:E.length)&&(M=(S=V.data.feedbackResponses[0])==null?void 0:S.followUpDialog)&&g&&(f=x.controller)!=null&&f.feedbackDialogMap.set(g,M);_.Kq(Z)})};
var hHm=function(B,c,x){var P=_.t(c,_.nW);if(P){P=_.p(P.commands||[]);for(var Y=P.next();!Y.done;Y=P.next())hHm(B,Y.value,x)}_.t(c,_.t3)&&B.store.dispatch(_.Uy("commandEntity",OZw(x),{key:x,command:c}));_.t(c,wiF)&&B.store.dispatch(_.Uy("commandEntity",OZw(x),{key:x,command:c}))};
nf[em]=[$3,Xz];var bC=function(B){this.controller=B};
_.w(bC,GG);bC.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k;return _.X(function(n){P=_.t(B,_.zr);g=(Y=P)==null?void 0:Y.targetId;if(((k=P)==null?void 0:k.signal)!=="TELL_US_WHY"||!g)return n.return();x.controller.openDialog(g,c);_.Kq(n)})};
bC[em]=[Xz];var Kf=function(B){this.store=B};
_.w(Kf,GG);Kf.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d;return _.X(function(q){P=_.t(B,PnA);g=(Y=P)==null?void 0:Y.contentId;b=(k=c)==null?void 0:(n=k.form)==null?void 0:n.element;d=_.kC(b,[B]);g&&x.undo(g);return _.K(q,d,0)})};
Kf.prototype.undo=function(B){this.store.dispatch(_.Uy("commandEntity",OZw(B),{key:B,command:void 0}))};
Kf[em]=[$3];var jf=function(B){this.JSC$15160_commandHandler=B};
_.w(jf,GG);jf.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d;return _.X(function(q){x=_.t(B,M15);P=x.flowStateKey;Y=x.validationFailureCommand;g=x.submitValidFormCommand;k=fF(_.Yl,[P||""]);n=_.t(k,Z9m);((b=n)==null?0:b.isValid)&&g&&c.JSC$15160_commandHandler.resolveCommand(g);((d=n)==null?0:d.isValid)||!Y||c.JSC$15160_commandHandler.resolveCommand(Y);_.Kq(q)})};
jf[em]=[_.xu];var UH=function(B){this.innertubeTransportService=B};
_.w(UH,GG);UH.prototype.resolveCommand=function(B,c){var x=this,P;return _.X(function(Y){return _.K(Y,_.Zn(x.innertubeTransportService,B,(P=c)==null?void 0:P.form).then(function(g){var k,n;c==null||(k=c.commandController)==null||(n=k.onSuccess)==null||n.call(k,B,g)},function(g){var k,n;
c==null||(k=c.commandController)==null||(n=k.onServerError)==null||n.call(k,B,g)}),0)})};
UH[em]=[_.ou];var dH=function(){};
_.w(dH,GG);dH.prototype.resolveCommand=function(B){var c,x,P,Y;return _.X(function(g){if(c=_.t(B,_.ee0)){if(x=c.gtmId)P=_.v5("GL",""),_.Wl(x,P);(Y=c.gtmData)&&_.l3(Y)}_.Kq(g)})};var qJ=function(B,c){this.innertubeTransportService=B;this.JSC$15171_actionRouter=c};
_.w(qJ,GG);qJ.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){x=_.t(B,usm);if(!x)return Y.return();P=x.command;if(!P)return Y.return();c.JSC$15171_actionRouter.triggerAction("yt-insert-rich-section-action",x);return _.K(Y,_.Zn(c.innertubeTransportService,P,{disableCache:!0}),0)})};
qJ[em]=[_.ou,RA];FY7.bind(null,Mn);var mh3=FY7.bind(null,god);zJ7.bind(null,Mn);var TPZ=zJ7.bind(null,god);ySO.bind(null,Mn);var Vbd=ySO.bind(null,god);var Cf=function(){};
_.w(Cf,GG);
Cf.prototype.resolveCommand=function(B){var c,x,P,Y,g,k,n,b,d,q;return _.X(function(C){c=_.t(B,wGS);if(!c)return C.return();P=((x=c.operations)==null?void 0:x.operations)||[];Y=_.p(P);for(g=Y.next();!g.done;g=Y.next())if(k=g.value,k.insertItemSectionContent){var h=k.insertItemSectionContent,V=h.contents||[];h.insertByPositionInSection?mh3(h.insertByPositionInSection.sectionTargetId,V,h.insertByPositionInSection.position):h.insertByRelativePositionInSection&&h.insertByRelativePositionInSection.sectionTargetId&&h.insertByRelativePositionInSection.itemTargetId&&
TPZ(h.insertByRelativePositionInSection.sectionTargetId,h.insertByRelativePositionInSection.itemTargetId,V,h.insertByRelativePositionInSection.relativePosition)}else k.replaceSection?(h=k.replaceSection,V={},h.replaceByTargetId?V=h.replaceByTargetId:h.replaceByGroupId&&(V={targetId:h.replaceByGroupId.groupId,newContent:h.replaceByGroupId.newContent,undoKey:""}),V.newContent&&ktZ(V.targetId,{continuationItems:[V.newContent]})):k.removeItem?(h=k.removeItem,h.removeByTargetId&&h.sectionTargetId&&Vbd(h.sectionTargetId,
h.removeByTargetId.targetIds||[])):k.removeSection&&(k.removeSection.removeByTargetId?(n=void 0,tby(((n=k.removeSection)==null?void 0:n.removeByTargetId.targetIds)||[])):k.removeSection.removeByGroupId&&(b=void 0,tby(((b=k.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));q=((d=c.operations)==null?void 0:d.scrollConfig)||{};wPS(q);_.Kq(C)})};
var tby=function(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next())ktZ(c.value,{continuationItems:[]})},wPS=function(B){if(B.scrollToItem){var c=B.scrollToItem.item||{},x=c.itemTargetId;
c=c.sectionTargetId;if(x&&c){var P=document.querySelector("[data-target-id="+c+"]"),Y=P==null?void 0:P.querySelector("[data-target-id="+x+"]");P&&Y&&setTimeout(function(){var g=Y.offsetTop-P.offsetTop,k;if(((k=B.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_CENTER")g-=P.offsetHeight/2,g+=Y.offsetHeight/2;else{var n;((n=B.scrollToItem)==null?void 0:n.scrollPosition)==="SCROLL_POSITION_END"&&(g-=P.offsetHeight,g+=Y.offsetHeight)}P.scroll({top:g,behavior:"smooth"})},100)}}};var hA=new _.BL("CLIENT_NAME_TOKEN");var NPF=new _.BL("DEFAULT_STORE_EXPIRATION_TOKEN");var K6O=new _.BL("CLIENT_LOCATION_SERVICE_TOKEN");var mL=function(B,c,x){this.clientName=B||_.v5("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=c||_.lI.getInstance();this.JSC$15199_commandHandler=x||_.bA.instance};
_.w(mL,GG);mL.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){P=(x=_.t(B,ocZ))==null?void 0:x.onComplete;c.clientLocationService.clearLocationPlayabilityToken(c.clientName);P&&c.JSC$15199_commandHandler.resolveCommand(P);_.Kq(Y)})};
mL[em]=[hA,K6O,_.xu];var Ta=function(B){this.innertubeTransportService=B};
_.w(Ta,GG);Ta.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k;return _.X(function(n){g=(P=c)==null?void 0:(Y=P.form)==null?void 0:Y.element;return _.K(n,_.Zn(x.innertubeTransportService,B,(k=c)==null?void 0:k.form).then(function(b){w2I(g,new CustomEvent("yt-service-request-completed"),{data:b},_.v5("openPopupConfig"))}),0)})};
Ta[em]=[_.ou];var Vu=function(){};
_.w(Vu,GG);Vu.prototype.resolveCommand=function(B){var c,x;return _.X(function(P){c=_.t(B,Ae4);x=document.querySelector("mini-app-container-view-model");if(!c||!x)return P.return();c.isPlaying?x.dispatchEvent(new Event("play")):x.dispatchEvent(new Event("pause"));_.Kq(P)})};var tA=function(){};
_.w(tA,GG);tA.prototype.resolveCommand=function(B){var c,x,P,Y,g,k,n;return _.X(function(b){c=_.t(B,iVF);if((x=c)==null||!x.paramKeys)return b.return();P=c.paramKeys;Y=_.ZM(window.location.href);g=_.p(P);for(k=g.next();!k.done;k=g.next())n=k.value,Y.JSC$8077_queryData_.remove(n);window.history.replaceState(window.history.state,document.title,Y.toString());_.Kq(b)})};var IU3=function(){this.dropdownMap=new Map};_.J$Z=new _.BL("DROPDOWN_CONTROLLER_TOKEN");var wH=function(B){this.controller=B};
_.w(wH,GG);wH.prototype.resolveCommand=function(B){var c=this,x,P,Y,g;return _.X(function(k){x=_.t(B,NJn);if(!x)return k.return();P=x;Y=P.dropdownId;g=P.selectedOptionIndex;if(Y===void 0||g===void 0)return k.return();var n=c.controller.dropdownMap.get(Y);n&&n(g);_.Kq(k)})};
wH[em]=[_.J$Z];var NJ=function(B){this.controller=B};
_.w(NJ,GG);NJ.prototype.resolveCommand=function(B){var c=this,x;return _.X(function(P){return(x=_.t(B,MQ3))?_.K(P,c.controller.closeDialog(),0):P.return()})};
NJ[em]=[_.t7];var I9=function(B){this.controller=B};
_.w(I9,GG);I9.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){x=_.t(B,tmI);if(!x)return Y.return();var g,k=x.panelIdentifier||((g=x.identifier)==null?void 0:g.tag);if(!k)throw Error("yi");return(P=k)?_.K(Y,c.controller.hidePanel(P),0):Y.jumpTo(0)})};
I9[em]=[_.TA];var JA=function(B,c){this.innertubeTransportService=B;this.controller=c};
_.w(JA,GG);JA.prototype.resolveCommand=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return x=_.t(B,w_I),(P=x)!=null&&P.panelId?_.K(k,c.controller.getReloadContinuation(x.panelId),2):k.return();if(k.nextAddress!=3)return(Y=k.yieldResult)?_.K(k,_.Zn(c.innertubeTransportService,B,{continuation:Y}),3):k.return();g=k.yieldResult;return _.K(k,c.controller.updatePanel(x.panelId,g.content,!1),0)})};
JA[em]=[_.ou,_.TA];var W2=function(B,c,x){this.innertubeTransportService=B;this.JSC$15235_screenManager=c;this.JSC$15235_commandHandler=x};
_.w(W2,GG);
W2.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1){x=_.t(B,_.jX0);if(!x)return b.return();if(x.commands)for(P=_.p(x.commands),Y=P.next();!Y.done;Y=P.next())g=Y.value,c.JSC$15235_commandHandler.resolveCommand(g,{disableClickTracking:!0});k=_.VF(B.clickTrackingParams);_.kk(c.JSC$15235_screenManager,21760,k,{layer:7,parentLayer:0});return _.K(b,_.Zn(c.innertubeTransportService,B),2)}n=b.yieldResult;if(!n)return b.return();c.JSC$15235_screenManager.graftServerVe(n.trackingParams,k,
7);_.Kq(b)})};
W2[em]=[_.ou,_.N3,_.xu];var lC=new _.BL("PANEL_LOADING_STRATEGY_TOKEN");var EH=function(B,c){this.controller=B;this.panelLoadingStrategy=c};
_.w(EH,GG);
EH.prototype.resolveCommand=function(B,c){var x=this,P,Y,g;return _.X(function(k){P=_.t(B,k39);if((Y=P)==null||!Y.panelLoadingStrategy)return k.return();g=function(n){var b,d,q,C,h,V,N,l,E;return _.X(function(S){d=_.t((b=n.dialogViewModel)==null?void 0:b.header,IYn);q={viewModel:n.dialogViewModel};C={};if(N=_.T("web_enable_dialog_header_label")?(h=d)==null?void 0:(V=h.headline)==null?void 0:V.content:void 0)C.ariaLabel=N;P.dismissOnBackgroundTap===!1&&(C.isModal=!0);return n.dialogViewModel?_.K(S,
x.controller.openDialog(q,(l=c)==null?void 0:(E=l.form)==null?void 0:E.element,C),0):S.return()})};
return _.K(k,x.panelLoadingStrategy.execute({command:B,data:P.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
EH[em]=[_.t7,lC];var OH=function(B,c,x){this.innertubeTransportService=B;this.controller=c;this.JSC$15255_screenManager=x};
_.w(OH,GG);
OH.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N;return _.X(function(l){switch(l.nextAddress){case 1:P=_.t(B,_.QA);if(!P)return l.return();var E,S=P.panelIdentifier||((E=P.identifier)==null?void 0:E.tag);if(!S)throw Error("yi");Y=S;return _.K(l,x.controller.isVisible(Y,!0),2);case 2:if((g=l.yieldResult)&&P.blockIfPanelOpen)return l.return();b=(n=(k=x.controller).getPanelContent)==null?void 0:n.call(k,Y);if(!(E=b))if(P){var M;E=((M=P.globalConfiguration)==null?void 0:M.initialState)||
P.engagementPanel;if(M=!E)M=!!(P==null?0:(S=P.engagementPanelPresentationConfigs)==null?0:S.engagementPanelPopupPresentationConfig);M&&(E=_.GW7(P.panelIdentifier,P.identifier))}else E=void 0;d=E;q=P.engagementPanelPresentationConfigs;C=P.engagementPanelExtras;return _.K(l,x.controller.showPanel(Y,d,q,C,(h=c)==null?void 0:(V=h.form)==null?void 0:V.element),3);case 3:if(!P.globalConfiguration){l.jumpTo(0);break}_.kk(x.JSC$15255_screenManager,32633);return _.K(l,_.Zn(x.innertubeTransportService,B),5);
case 5:return N=l.yieldResult,x.JSC$15255_screenManager.graftServerVe(N.trackingParams),_.K(l,x.controller.updatePanel(Y,N.content,!0,C,void 0,N.updatePanelContinuationData),0)}})};
OH[em]=[_.ou,_.TA,_.N3];var o9=function(B,c){this.controller=B;this.panelLoadingStrategy=c};
_.w(o9,GG);o9.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b;return _.X(function(d){P=_.t(B,_.d$);if((Y=P)==null||!Y.panelLoadingStrategy)return d.return();n=Wiy(x.controller,(g=c)==null?void 0:(k=g.form)==null?void 0:k.element);b=function(q){return _.X(function(C){return q.sheetViewModel?_.K(C,x.controller.openSheet({viewModel:q.sheetViewModel},n),0):C.return()})};
return _.K(d,x.panelLoadingStrategy.execute({command:B,data:P.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:0}}),0)})};
o9[em]=[_.Vi,lC];var Qu=function(B,c){this.controller=B;this.JSC$15263_commandHandler=c};
_.w(Qu,GG);Qu.prototype.resolveCommand=function(B,c){var x=this,P,Y,g;return _.X(function(k){if(k.nextAddress==1){P=_.t(B,Wt9);var n=_.t(P.showCommand,_.QA),b,d,q=(d=n==null?void 0:n.panelIdentifier)!=null?d:n==null?void 0:(b=n.identifier)==null?void 0:b.tag;if(!q)throw Error("zi");Y=q;return _.K(k,x.controller.isVisible(Y),2)}return(g=k.yieldResult)?_.K(k,x.controller.hidePanel(Y),0):_.K(k,x.JSC$15263_commandHandler.resolveCommand(P.showCommand,c),0)})};
Qu[em]=[_.TA,_.xu];var Fz=function(B,c,x){this.innertubeTransportService=B;this.controller=c;this.JSC$15266_screenManager=x};
_.w(Fz,GG);
Fz.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px;return _.X(function(kI){switch(kI.nextAddress){case 1:return P=x=_.t(B,lW4),Y=P.targetPanelIdentifier,g=P.contentSourcePanelIdentifier,k=P.globalConfiguration,((n=Y)==null?0:n.tag)&&((b=g)==null?0:b.tag)?k?_.K(kI,c.controller.showPanel(Y.tag,_.GW7(Y.tag,Y),void 0,void 0,void 0),5):_.K(kI,(h=(C=c.controller).getPanel)==null?void 0:h.call(C,g.tag),4):kI.return();case 4:V=kI.yieldResult;d=(N=V)==null?void 0:
(E=(l=N).getPanelContent)==null?void 0:E.call(l);kI.jumpTo(3);break;case 5:return _.K(kI,_.Zn(c.innertubeTransportService,B),6);case 6:S=kI.yieldResult,((M=S)==null?0:M.trackingParams)&&c.JSC$15266_screenManager.graftServerVe(S.trackingParams),d=(f=S)==null?void 0:f.content,q=(Z=S)==null?void 0:Z.updatePanelContinuationData;case 3:if(e=(u=d)==null?void 0:u.engagementPanelSectionListRenderer)return _.K(kI,c.controller.showPanel(Y.tag,void 0,void 0,void 0,void 0,{content:e.content,secondaryHeaderContent:(px=
e.header)!=null?px:{},targetId:e.targetId},q),0);kI.jumpTo(0)}})};
Fz[em]=[_.ou,_.TA,_.N3];var v2=function(B){this.JSC$15273_commandHandler=B};
_.w(v2,GG);
v2.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return(x=_.t(B,yBW))?_.K(b,_.p3(),2):b.return();P=b.yieldResult;if(!P)return b.return();var d=P,q=(Y=x)==null?void 0:Y.languageCode,C=(g=x)==null?void 0:g.isAutoTranslated;d.getVideoData&&_.LYI(d).length&&((q=Hzo(d,q,C))?d.setOption("captions","track",q):(d.setOption("captions","stickyLoading",{}),d.setOption("captions","track",{})));k=P.isSubtitlesOn()?_.Up("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Up("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");n=_.Rw(k);c.JSC$15273_commandHandler.resolveCommand(n);_.Kq(b)})};
v2[em]=[_.xu];var za=function(B,c){this.shortsPlayerPromise=B;this.JSC$15277_commandHandler=c};
_.w(za,GG);
za.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return(x=_.t(B,PYZ))?_.K(q,c.shortsPlayerPromise,2):q.return();P=q.yieldResult;var C=fvo(P);C!=null&&C.length||(P.loadModule("captions"),C=fvo(P));Y=C;if((g=Y)==null||!g.length)return k=_.Up("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),n=_.Rw(k),c.JSC$15277_commandHandler.resolveCommand(n),q.return();P.toggleSubtitles();b=P.isSubtitlesOn()?_.Up("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Up("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.Rw(b);c.JSC$15277_commandHandler.resolveCommand(d);_.Kq(q)})};
za[em]=[_.LAy,_.xu];var Sf=function(B){this.JSC$15280_playerPromise=B};
_.w(Sf,GG);Sf.prototype.resolveCommand=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return(x=_.t(B,I0Z))?_.K(k,c.JSC$15280_playerPromise,2):k.return();P=k.yieldResult;Y=P.getVideoData().video_id;x.videoId===Y&&(g=Number(x.offsetFromVideoStartMilliseconds),g>=0&&P.seekTo(g/1E3));_.Kq(k)})};
Sf[em]=[_.Yx];var lU9=_.kN("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),yu=function(B){this.store=B};
_.w(yu,GG);
var Ejy=function(B){var c,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return c=_.v5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,x=_.v5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,P=c||x,B.mainAppPlayer=new fj(P),_.K(g,B.mainAppPlayer.api,2);Y=g.yieldResult;Y.addEventListener("onStateChange",B.JSC$15284_playerStateChangeListener.bind(B));document.addEventListener("yt-page-data-updated",B.pauseOnNavigation.bind(B));window.addEventListener("state-navigatestart",
B.pauseOnNavigation.bind(B));_.Kq(g)})};
yu.prototype.JSC$15284_playerStateChangeListener=function(B){switch(B){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"}On4(this)};
var On4=function(B){B.store.dispatch(_.Uy("sfvAudioItemCurrentlyPlayingEntity",lU9,{key:lU9,externalVideoId:B.externalVideoId,sfvAudioItemPlaybackState:B.playbackState,nowPlayingEntityValue:B.nowPlayingEntityValue}))};
yu.prototype.pauseOnNavigation=function(){var B=this,c,x,P,Y;return _.X(function(g){if(g.nextAddress==1){if(!B.mainAppPlayer){var k=new _.mc("Error: mainAppPlayer is unavailable",B.mainAppPlayer);_.lb(k);return g.return()}return _.K(g,B.mainAppPlayer.api,2)}c=g.yieldResult;P=(x=c)==null?void 0:x.getPlayerState();P!==1||(Y=c)!=null&&Y.pauseVideo();_.Kq(g)})};
yu.prototype.playVideo=function(B,c,x){var P=this,Y,g;return _.X(function(k){if(k.nextAddress==1)return _.K(k,(Y=P.mainAppPlayer)==null?void 0:Y.api,2);g=k.yieldResult;if(!P.mainAppPlayer||!g){var n=new _.mc("Error: mainAppPlayer is unavailable",P.mainAppPlayer);_.lb(n);return k.return()}return _.K(k,P.mainAppPlayer.loadVideoWithPlayerVars({videoId:P.externalVideoId,audio_only:"1",start:B/1E3,end:B/1E3+c,player_params:x}),0)})};
yu.prototype.pauseVideo=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1){if(!B.mainAppPlayer){var Y=new _.mc("Error: mainAppPlayer is unavailable",B.mainAppPlayer);_.lb(Y);return P.return()}return _.K(P,B.mainAppPlayer.api,2)}c=P.yieldResult;(x=c)==null||x.pauseVideo();_.Kq(P)})};
yu.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z;return _.X(function(u){if(u.nextAddress==1)return x=_.t(B,e50),Y=(P=x)==null?void 0:P.nowPlayingEntityValue,k=(g=x)==null?void 0:g.externalVideoId,C=Number((q=(n=x)==null?void 0:(b=n.defaultStartPoints)==null?void 0:(d=b[0])==null?void 0:d.offsetMs)!=null?q:"0"),S=Number((E=(h=x)==null?void 0:(V=h.defaultStartPoints)==null?void 0:(N=V[0])==null?void 0:(l=N.duration)==null?void 0:l.seconds)!=null?E:"15"),Z=(f=
(M=x)==null?void 0:M.playerParams)!=null?f:"",Y&&k?c.mainAppPlayer?u.jumpTo(2):_.K(u,Ejy(c),2):u.return();if(u.nextAddress!=6){if(c.nowPlayingEntityValue&&Y===c.nowPlayingEntityValue)return c.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.K(u,c.pauseVideo(),0):_.K(u,c.playVideo(C,S,Z),0);c.externalVideoId=k;c.nowPlayingEntityValue=Y;c.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.K(u,c.playVideo(C,S,Z),6)}On4(c);return u.jumpTo(0)})};
yu[em]=[nC];var Ga=function(B){this.JSC$15304_commandHandler=B};
_.w(Ga,GG);Ga.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return(P=_.t(B,GiI))?_.K(b,_.p3(),2):b.return();Y=b.yieldResult;if(!Y)return b.return();(g=rSO(Y))?x.JSC$15304_commandHandler.resolveCommand(g,c):(k=_.Up("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),n=_.Rw(k),x.JSC$15304_commandHandler.resolveCommand(n));_.Kq(b)})};
Ga[em]=[_.xu];var MJ=function(B){this.JSC$15307_playerPromise=B};
_.w(MJ,GG);MJ.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k;return _.X(function(n){if(n.nextAddress==1){x=_.t(B,Jr3);if(!x)return n.return();P=x.overlayRenderer;return P?(Y=_.t(P,MP3))?_.K(n,c.JSC$15307_playerPromise,3):n.jumpTo(0):n.return()}g=n.yieldResult;g.renderChapterSeekingAnimation(1,_.iG(Y.text),(k=Y.icon)==null?void 0:k.iconType);_.Kq(n)})};
MJ[em]=[_.Yx];var Lf=function(B){this.store=B};
_.w(Lf,GG);
Lf.prototype.resolveCommand=function(B){var c=this,x,P,Y;return _.X(function(g){if(g.nextAddress==1){x=_.t(B,ZY0);if(!x)return g.return();P="";(Y=c.store.getState().collabInviteLink)&&x.id===Y.playlistId?P=Y.inviteLinkURL:x.shortUrl&&(P=x.shortUrl);return P?_.K(g,navigator.clipboard.writeText(P),3):g.jumpTo(0)}var k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Up("COPY_LINK_SUCCESS_TOAST")}}}}};_.cp().resolve(_.xu).resolveCommand(k);_.Kq(g)})};
Lf[em]=[$3];var Zw=function(B,c){this.innertubeTransportService=B;this.JSC$15317_commandHandler=c};
_.w(Zw,GG);Zw.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h;return _.X(function(V){if(V.nextAddress==1)return(P=_.t(B,_.G3))?_.K(V,_.Zn(x.innertubeTransportService,B,(Y=c)==null?void 0:Y.form),2):V.return();(g=V.yieldResult)&&g.errorMetadata&&(k=g,n=_.Rw(k.error.message),x.JSC$15317_commandHandler.resolveCommand(n));b=g;if((d=b)==null?0:d.actions)for(q=_.p(b.actions),C=q.next();!C.done;C=q.next())h=C.value,x.JSC$15317_commandHandler.resolveCommand(h);_.Kq(V)})};
Zw[em]=[_.ou,_.xu];var H2=function(){};
_.w(H2,GG);H2.prototype.resolveCommand=function(B){var c;return _.X(function(x){c=_.t(B,QgQ);if(!c)return x.return();(new Z8S(c)).show();_.Kq(x)})};_.ff=new _.BL("PLAYLIST_EDIT_CONTROLLER_TOKEN");var iC=function(B,c,x,P){this.store=B;this.innertubeTransportService=c;this.controller=x;this.JSC$15325_commandHandler=P};
_.w(iC,GG);
iC.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI,Ul,wC,W$,El;return _.X(function(H$){if(H$.nextAddress==1){P=_.t(B,_.QR);if(!P)return H$.return();if(P.clientActions){Y=_.p(P.clientActions);for(g=Y.next();!g.done;g=Y.next())k=g.value,x.JSC$15325_commandHandler.resolveCommand(k);var yw,r9=c==null?void 0:(yw=c.form)==null?void 0:yw.element;r9&&_.aJ(r9,"yt-dismissible-item-action",P.clientActions)}return _.K(H$,_.Zn(x.innertubeTransportService,B,(n=c)==
null?void 0:n.form),2)}if(b=H$.yieldResult)b.errorMetadata?(d=b,q=_.Rw(d.error.message),x.JSC$15325_commandHandler.resolveCommand(q),"error"in b&&((C=c)==null?0:(h=C.commandController)==null?0:h.onServerError)&&((V=c)==null||(N=V.commandController)==null||N.onServerError(B,b))):(l=c)==null||(E=l.commandController)==null||(M=(S=E).onSuccess)==null||M.call(S,B,b);f=b;((Z=f)==null?0:Z.collaborationInviteLink)&&P.playlistId&&(_.T("web_enable_invite_collaborators_link")||_.T("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
x.store.dispatch(_.YN({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:P.playlistId,inviteLinkUrl:f.collaborationInviteLink}}));((u=f)==null?0:u.redirectEndpoint)&&x.JSC$15325_commandHandler.resolveCommand(f.redirectEndpoint);((e=f)==null?0:(px=e.newHeader)==null?0:px.playlistHeaderRenderer)?oj3(x.controller,f.newHeader.playlistHeaderRenderer):((kI=f)==null?0:(Ul=kI.newHeader)==null?0:Ul.musicEditablePlaylistDetailHeaderRenderer)&&oj3(x.controller,f.newHeader.musicEditablePlaylistDetailHeaderRenderer);
x.controller.playlistVideoListElement&&((wC=f)==null?0:(W$=wC.playlistEditResults)==null?0:(El=W$[0])==null?0:El.playlistEditVideoAddedResultData)&&((r9=x.controller.playlistVideoListElement)==null||r9.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:f.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Kq(H$)})};
iC[em]=[$3,_.ou,_.ff,_.xu];var AA=function(B,c){this.controller=B;this.JSC$15335_commandHandler=c};
_.w(AA,GG);AA.prototype.resolveCommand=function(B,c){var x=this,P,Y,g;return _.X(function(k){P=_.t(B,HYt);x.controller.showRefreshPill&&((Y=P)==null?0:Y.command)&&(x.JSC$15335_commandHandler.resolveCommand((g=P)==null?void 0:g.command,c),x.controller.showRefreshPill=!1);_.Kq(k)})};
AA[em]=[_.xB,_.xu];var uC=function(B,c){this.store=B;this.JSC$15339_commandHandler=c||_.bA.instance};
_.w(uC,GG);uC.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h;return _.X(function(V){P=_.t(B,YY9);Y=x.store.getState().radioButtonGroup;if((g=P)==null?0:g.command)x.JSC$15339_commandHandler.resolveCommand((k=P)==null?void 0:k.command,c);else if(Y&&((n=P)==null?void 0:n.formId)===Y.currentFormId)for(b=Object.values(Y.commandsMap),d=_.p(b),q=d.next();!q.done;q=d.next())C=q.value,(h=_.vH(C))&&x.JSC$15339_commandHandler.resolveCommand(h,c);_.Kq(V)})};
uC[em]=[_.GC];var Dw=new _.BL("USER_PREFS");var rH=function(B){this.JSC$15344_prefCookie=B};
_.w(rH,GG);rH.prototype.resolveCommand=function(B){var c=this,x;return _.X(function(P){(x=_.t(B,NQn))&&typeof x.useListView==="boolean"&&(_.hi(0,155,x.useListView),c.JSC$15344_prefCookie.save());_.Kq(P)})};
rH[em]=[Dw];var R9=function(B){this.JSC$15348_prefCookie=B};
_.w(R9,GG);R9.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k;return _.X(function(n){x=_.t(B,vVF);if((P=x)==null||!P.gl)return n.return();Y=x.gl;g={persist_gl:"1",gl:Y};c.JSC$15348_prefCookie.set("gl",Y);c.JSC$15348_prefCookie.save();k=yn9(g);_.Lr(k);_.Kq(n)})};
R9[em]=[Dw];var ef=function(B){this.JSC$15352_prefCookie=B};
_.w(ef,GG);ef.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){x=_.t(B,iYy);if(!x)return Y.return();P=!1;x.flagNum&&typeof x.value==="boolean"?(_.hi(0,x.flagNum,x.value),P=!0):x.key&&typeof x.stringValue==="string"&&(c.JSC$15352_prefCookie.set(x.key,x.stringValue),P=!0);P&&c.JSC$15352_prefCookie.save();_.Kq(Y)})};
ef[em]=[Dw];var BZ=new _.BL("PREF_STORAGE_PROMISE_TOKEN");var cZ=function(B){this.JSC$15356_prefStoragePromise=B};
_.w(cZ,GG);cZ.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return(x=_.t(B,u85))?_.K(Y,c.JSC$15356_prefStoragePromise,2):Y.return();P=Y.yieldResult;return P===void 0||x.key===void 0||x.value===void 0?Y.return():_.K(Y,P.set(x.key,x.value),0)})};
cZ[em]=[BZ];var QqI=function(B){this.innertubeTransportService=B};
_.w(QqI,GG);QqI.prototype.resolveCommand=function(B,c){var x=this,P,Y;return _.X(function(g){(P=_.t(B,_.T75))&&P&&P.isFirstRequest&&(_.Ep("search_overview_answer"),_.Op("so_rq",void 0,"search_overview_answer"));return _.K(g,_.Zn(x.innertubeTransportService,B,(Y=c)==null?void 0:Y.form),0)})};
QqI[em]=[_.ou];var FiW=function(){};
_.w(FiW,GG);
FiW.prototype.resolveCommand=function(B){var c,x,P,Y,g,k,n,b,d;return _.X(function(q){c=_.t(B,NBd);if((x=c)==null?0:x.sectionIdentifier){if(c.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Y=(P=document.getElementsByTagName(c.sectionIdentifier))==null?void 0:P.item(0))Y.scrollIntoView({behavior:"smooth"}),(g=EHO(Y))&&g.focus({preventScroll:!0});return q.return()}k=document.querySelector("[section-identifier="+c.sectionIdentifier+"]");n=document.querySelector("[section-identifier="+c.referenceSectionIdentifier+
"]");if(!k)return q.return();b=c.verticalScrollOffsetDp?c.verticalScrollOffsetDp:0;n&&(b-=n.offsetTop);window.scrollTo({top:k.offsetTop+b,behavior:"smooth"});(d=EHO(k))&&d.focus({preventScroll:!0})}_.Kq(q)})};var xO=function(){};
_.w(xO,GG);
xO.prototype.resolveCommand=function(B){var c,x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1){c=_.t(B,uV9);if(!c||!c.imageBytes||!navigator.clipboard)return b.return();if(c.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.lb(Error("Bi")),b.return();_.kM(b,2);P=(x=c)==null?void 0:x.imageBytes;Y=P.replace(/-/g,"+").replace(/_/g,"/");g=oax(Y);k={};n=[new ClipboardItem((k[g.type]=g,k))];return _.K(b,navigator.clipboard.write(n),4)}if(b.nextAddress!=2)return _.Gw(b,0);
_.be(b);_.Kq(b)})};var PZ=function(B,c){this.innertubeTransportService=B;this.JSC$15371_commandHandler=c};
_.w(PZ,GG);PZ.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return(P=_.t(B,Dky))?_.K(b,_.Zn(x.innertubeTransportService,B,(Y=c)==null?void 0:Y.form),2):b.return();(g=b.yieldResult)&&g.errorMetadata&&P.onFailureCommand&&x.JSC$15371_commandHandler.resolveCommand(P.onFailureCommand);k=g;((n=k)==null?0:n.shareCommand)&&x.JSC$15371_commandHandler.resolveCommand(k.shareCommand,c);_.Kq(b)})};
PZ[em]=[_.ou,_.xu];var YO=function(){};
_.w(YO,GG);YO.prototype.resolveCommand=function(B){var c,x;return _.X(function(P){c=_.t(B,LFQ);if(!c||!navigator.share)return P.return();x={url:c.url};try{return P.return(navigator.share(x))}catch(Y){}_.Kq(P)})};var aY=function(){};
_.w(aY,GG);aY.prototype.resolveCommand=function(){return _.X(function(B){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Kq(B)})};var g0=function(B){this.JSC$15381_navigationConfirmationService=B};
_.w(g0,GG);g0.prototype.resolveCommand=function(){var B=this;return _.X(function(c){B.JSC$15381_navigationConfirmationService.cancelPendingNavigation();_.Kq(c)})};
g0[em]=[KG];var sa=function(B){this.JSC$15384_screenManager=B};
_.w(sa,GG);sa.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d;return _.X(function(q){Y=(P=c.form)==null?void 0:P.event;k=(g=c.form)==null?void 0:g.element;if(!Y)throw new _.mc("Event not passed in when resolving command");n=_.p(Y.composedPath());for(b=n.next();!b.done;b=n.next())if(d=b.value,d.tagName==="YT-COPY-LINK-RENDERER")return d.copyUrlToClipboard(),k&&_.GU(x.JSC$15384_screenManager,k),q.return();_.Kq(q)})};
sa[em]=[_.N3];var p_=function(){this.JSC$15388_miniAppClientDataProvider=_.cp().resolve(_.Fc)};
_.w(p_,GG);p_.prototype.resolveCommand=function(){var B=this,c,x;return _.X(function(P){if(B.JSC$15388_miniAppClientDataProvider.clientData.has("video_id")){var Y=B.JSC$15388_miniAppClientDataProvider,g=Y.clientData.get("video_id");g&&Y.clientData.delete("video_id");c="https://youtube.com/watch?v="+g;x=C6(c);if(x===void 0)throw Error("Ci`"+c);_.oW(window,x)}_.Kq(P)})};var kO=function(){};
_.w(kO,GG);kO.prototype.resolveCommand=function(){return _.X(function(B){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Kq(B)})};var Xk=function(){};
_.w(Xk,GG);Xk.prototype.resolveCommand=function(){var B;return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.PMw(window.document.documentElement),2);(B=document.querySelector("mini-app-container-view-model iframe"))&&B.focus();_.Kq(c)})};var $O=function(B){this.JSC$15395_navigationConfirmationService=B};
_.w($O,GG);
$O.prototype.resolveCommand=function(){var B=this;return _.X(function(c){var x=B.JSC$15395_navigationConfirmationService,P=_.cp().resolve(_.t2),Y;if(((Y=x.navigateParams)==null?void 0:Y.data)!==void 0){var g;_.HP5(P,x.navigateParams.endpoint,x.navigateParams.data,(g=x.navigateParams.navigationType)!=null?g:1,x.navigateParams.tempData,x.navigateParams.isMiniplayer,void 0,!0);x.navigateParams=void 0;x.customConfirmationCommand=void 0}else x.navigateParams&&(P.navigate(x.navigateParams.endpoint,x.navigateParams.reload,
x.navigateParams.params,x.navigateParams.tempData,x.navigateParams.requestType,x.navigateParams.createScreenConfig,!0),x.navigateParams=void 0,x.customConfirmationCommand=void 0);_.Kq(c)})};
$O[em]=[KG];var n_=function(){};
_.w(n_,GG);n_.prototype.resolveCommand=function(){return _.X(function(B){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Kq(B)})};var b_=function(B){this.JSC$15400_prefStorage=B};
_.w(b_,GG);b_.prototype.resolveCommand=function(){var B=this,c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,B.JSC$15400_prefStorage,2);case 2:return(c=P.yieldResult)?_.K(P,c.set("sfvle",!1),3):P.return();case 3:return _.K(P,c.set("sfvles",!0),4);case 4:x=_.CW(),_.hi(0,203,!1),_.hi(0,204,!0),x.save(),_.Kq(P)}})};
b_[em]=[BZ];var K_=function(B){this.JSC$15403_prefStorage=B};
_.w(K_,GG);K_.prototype.resolveCommand=function(){var B=this,c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,B.JSC$15403_prefStorage,2);case 2:return(c=P.yieldResult)?_.K(P,c.set("sfvle",!0),3):P.return();case 3:return _.K(P,c.set("sfvles",!0),4);case 4:x=_.CW(),_.hi(0,203,!0),_.hi(0,204,!0),x.save(),_.Kq(P)}})};
K_[em]=[BZ];_.vj3=new _.BL("SNACKBAR_CONTROLLER_TOKEN");var je=function(B){this.controller=B};
_.w(je,GG);je.prototype.resolveCommand=function(B){var c=this,x;return _.X(function(P){x=_.t(B,p7F);if(!x)return P.return();var Y=c.controller;Y.closeSnackbarFn&&Y.closeSnackbarFn();_.Kq(P)})};
je[em]=[_.vj3];var Ua=function(B){this.controller=B};
_.w(Ua,GG);Ua.prototype.resolveCommand=function(B){var c=this,x,P,Y;return _.X(function(g){x=_.t(B,X7m);if(!x)return g.return();P=_.t(x.content,TJ5);if(!P)return g.return();var k=c.controller,n=P,b=(Y=x.animationStyle)!=null?Y:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(k.showSnackbarFn)k.showSnackbarFn({snackbarViewModel:n,animationStyle:b,durationMs:x.durationSeconds*1E3});else throw Error("lj");_.Kq(g)})};
Ua[em]=[_.vj3];var d0=function(){};
_.w(d0,GG);d0.prototype.resolveCommand=function(B){var c;return _.X(function(x){c=_.t(B,AdZ);if(!c||typeof c.key!=="string"||typeof c.value!=="string")return x.return();window.localStorage.setItem(c.key,c.value);_.Kq(x)})};var qU=function(B){this.store=B};
_.w(qU,GG);qU.prototype.resolveCommand=function(B){var c=this,x;return _.X(function(P){x=_.t(B,xxw);if(!x||!x.stepId||!x.token)return P.return();c.store.dispatch(Hjn({stepId:x.stepId,token:x.token,isSelected:!1}));_.Kq(P)})};
qU[em]=[$3];var C_=function(B,c,x){this.innertubeTransportService=B;this.store=c;this.JSC$15422_screenManager=x};
_.w(C_,GG);
C_.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u,e,px,kI;return _.X(function(Ul){x=_.t(B,DbW);if(!x||(P=x.stepIds)==null||!P.length)return Ul.return();Y=c.store.getState().talkToRecs;g=[];k=[];n=_.p(x.stepIds);for(b=n.next();!b.done;b=n.next())for(d=b.value,q=void 0,(C=(q=Y.stepStates[d])==null?void 0:q.userQuery)&&k.push({userQuery:C.userQuery,userQueryToken:C.token}),h=void 0,V=(h=Y.stepStates[d])==null?void 0:h.selectionStates,N=_.p(Object.entries(V)),l=
N.next();!l.done;l=N.next())E=l.value,S=_.p(E),M=S.next().value,f=S.next().value,Z=M,u=f,u.isSelected&&g.push(Z);e={selectedChipTokens:g,userQueries:k,submittedStepIds:x.stepIds};px={browseTalk2recsFormData:e};x.browseEndpoint?(kI=B,_.EL(kI,_.qA,x.browseEndpoint)):x.command&&(kI=x.command);return kI?_.K(Ul,_.Zn(c.innertubeTransportService,kI,{formData:px,disableCache:!0}).then(function(wC){(wC==null?0:wC.trackingParams)&&c.JSC$15422_screenManager.graftServerVe(wC==null?void 0:wC.trackingParams)}),
0):Ul.return()})};
C_[em]=[_.ou,$3,_.N3];var ht=function(B){this.store=B};
_.w(ht,GG);ht.prototype.resolveCommand=function(B){var c=this,x;return _.X(function(P){x=_.t(B,cYY);if(!x||!x.stepId||!x.token)return P.return();c.store.dispatch(Hjn({stepId:x.stepId,token:x.token,isSelected:!0}));_.Kq(P)})};
ht[em]=[$3];var mS=function(B){this.store=B};
_.w(mS,GG);mS.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n;return _.X(function(b){P=_.t(B,rEm);if(!P||!P.stepId||!P.userQueryToken)return b.return();n=(k=(Y=c)==null?void 0:(g=Y.form)==null?void 0:g.userQuery)!=null?k:"";x.store.dispatch(_.YN({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:P.stepId,userQueryToken:P.userQueryToken,userQuery:n}}));_.Kq(b)})};
mS[em]=[$3];_.zHn=new _.BL("TIMELY_ACTIONS_CONTROLLER_TOKEN");var TM=function(B){this.controller=B};
_.w(TM,GG);TM.prototype.resolveCommand=function(B){var c=this,x,P,Y,g;return _.X(function(k){x=_.t(B,Vm4);if(!x)return k.return();P=x;Y=P.id;g=P.isVisible;if(Y===void 0||g===void 0)return k.return();var n;(n=c.controller.timelyActionsMap.get(Y))==null||n(Y,g);_.Kq(k)})};
TM[em]=[_.zHn];var SR4=function(){this.timelyActionsMap=new Map};var Vh=function(B){this.JSC$15449_commandHandler=B};
_.w(Vh,GG);Vh.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k;return _.X(function(n){x=_.t(B,_.VR);if(!x)return n.return();g=(P=x.item)==null?void 0:(Y=P.notificationTextRenderer)==null?void 0:Y.successResponseText;if(!g)return n.return();k=_.rL(g);c.JSC$15449_commandHandler.resolveCommand(k);_.Kq(n)})};
Vh[em]=[_.xu];var tt=function(B,c){this.innertubeTransportService=B;this.JSC$15454_playerApiPromise=c};
_.w(tt,GG);
tt.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q;return _.X(function(C){if(C.nextAddress==1)return _.K(C,c.JSC$15454_playerApiPromise,2);x=C.yieldResult;P=x.getOption("captions","track");Y=Object.assign({},_.t(B,_.jf3));(k=(g=x.getVideoData())==null?void 0:g.video_id)?Y.externalVideoId=k:_.MR(Error("Di"));if((n=P)==null?0:n.languageCode)Y.languageCode=P.languageCode;if((b=P)==null?0:b.kind)Y.kind=P.kind;if((d=P)==null?0:d.name)Y.name=P.name;q=Object.assign({},B,{getTranscriptEndpoint:Y});return _.K(C,
_.Zn(c.innertubeTransportService,q),0)})};
tt[em]=[_.ou,_.Yx];var Oa=function(){};
_.w(Oa,GG);Oa.prototype.resolveCommand=function(B){var c,x,P,Y,g,k,n,b;return _.X(function(d){c=_.t(B,PL9);if((x=c)==null||!x.paramKeyValuePairs)return d.return();P=window.location.href;Y=_.p(c.paramKeyValuePairs);for(g=Y.next();!g.done;g=Y.next())k=g.value,k.key&&k.value&&(n={},P=_.ik(P,(n[k.key]=k.value,n)));b=_.cp().resolve(_.$S);_.XN(b,P);_.Kq(d)})};var oY=function(B,c){this.JSC$15461_commandHandler=B;this.innertubeTransportService=c};
_.w(oY,GG);
oY.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f;return _.X(function(Z){switch(Z.nextAddress){case 1:return(g=(P=c)==null?void 0:(Y=P.form)==null?void 0:Y.element)&&_.uj(g),k=_.CW().get("hl"),n="",_.kM(Z,2),_.K(Z,cDl(k),4);case 4:n=Z.yieldResult;_.Gw(Z,3);break;case 2:return _.be(Z),g&&_.Ds(g),_.lb(Error("Fi"),"ERROR"),Z.return();case 3:b=_.t(B,DVQ);if(!b)return g&&_.Ds(g),Z.return();(C=(d=b.commerceActionConfig)==null?void 0:(q=d.commandLifeCycleConfig)==null?
void 0:q.onStartCommand)&&x.JSC$15461_commandHandler.resolveCommand(C);return _.K(Z,_.Zn(x.innertubeTransportService,B,{client_data:{paymentsClientToken:{token:n}}}),5);case 5:(h=Z.yieldResult)?(g&&_.Ds(g),((E=h)==null?0:E.command)&&x.JSC$15461_commandHandler.resolveCommand(h.command),(f=(S=b.commerceActionConfig)==null?void 0:(M=S.commandLifeCycleConfig)==null?void 0:M.onSuccessCommand)&&x.JSC$15461_commandHandler.resolveCommand(f)):(g&&_.Ds(g),_.lb(Error("Gi")),(l=(V=b.commerceActionConfig)==null?
void 0:(N=V.commandLifeCycleConfig)==null?void 0:N.onFailureCommand)&&x.JSC$15461_commandHandler.resolveCommand(l)),_.Kq(Z)}})};
oY[em]=[_.xu,_.ou];var Qh=function(B,c,x){this.store=B;this.JSC$15477_commandHandler=c;this.innertubeTransportService=x};
_.w(Qh,GG);
Qh.prototype.resolveCommand=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C;return _.X(function(h){P=_.t(B,r3y);Y=P.googlePaymentPayload;P.onStartCommand&&x.JSC$15477_commandHandler.resolveCommand(P.onStartCommand);g=Y.encryptedPurchaseParams;k=Y.ypcLogWalletAnalyticDataEndpoint;n=P.serializedTransactionFlowLoggingParams;b=Y.serializedPaymentsClientParams;d=P.ypcCujContext;C=Yj$(x.innertubeTransportService,(q=c)==null?void 0:q.form,g,k,n,b,d);return h.return(C.then(function(V){xrx(c==null?void 0:c.form,
!1);var N=x.store,l=x.JSC$15477_commandHandler,E=V.integratorData;E==null||E===""||V.error!=null?(String(V.error)==="-1"&&P.onDismissCommand?l.resolveCommand(P.onDismissCommand):String(V.error)!=="-1"&&P.onFailureCommand&&l.resolveCommand(P.onFailureCommand),String(V.error)!=="-1"&&String(V.error)!=="132"&&_.lb(Error("Hi"),"ERROR")):(P.googlePaymentEntityKey&&N.dispatch(_.Uy("commerceAcquisitionClientPayloadEntity",P.googlePaymentEntityKey,{key:P.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:E,
fundsGuaranteeCallbackClientData:V.integratorClientCallbackData}}})),P.onSuccessCommand&&l.resolveCommand(P.onSuccessCommand));_.$C()},function(V){xrx(c==null?void 0:c.form,!1);
_.lb(V,"ERROR");P.onFailureCommand&&x.JSC$15477_commandHandler.resolveCommand(P.onFailureCommand)}))})};
Qh[em]=[nC,_.xu,_.ou];var Fk=function(B,c){this.JSC$15481_commandHandler=B;this.purchaseManager=c};
_.w(Fk,GG);
Fk.prototype.resolveCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q;return _.X(function(C){x=_.t(B,Red);((P=x)==null?0:(Y=P.commandLifeCycleConfig)==null?0:Y.onStartCommand)&&c.JSC$15481_commandHandler.resolveCommand(x.commandLifeCycleConfig.onStartCommand);if(!((g=x)==null?0:(k=g.googlePaymentPurchaseManagerPayload)==null?0:k.securePayloadBytes))return _.lb(Error("Ii"),"ERROR"),C.return();n=K5Z(_.kF(x.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.CW().get("hl");d=_.Hw();HB3(n.serialize(),
b,function(h){d.resolve(h)},function(h){d.reject(h)},d.resolve);
q=d.promise;return C.return(q.then(function(h){if(h)if(h==null?0:h.errorCode){_.lb(Error("Ji`"+h.errorCode),"ERROR");var V,N;((V=x)==null?0:(N=V.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&c.JSC$15481_commandHandler.resolveCommand(x.commandLifeCycleConfig.onFailureCommand)}else if(h==null?0:h.isCancelled){var l,E;((l=x)==null?0:(E=l.commandLifeCycleConfig)==null?0:E.onCancelCommand)&&c.JSC$15481_commandHandler.resolveCommand(x.commandLifeCycleConfig.onCancelCommand)}else{var S,M;((S=x)==
null?0:(M=S.commandLifeCycleConfig)==null?0:M.onSuccessCommand)&&c.JSC$15481_commandHandler.resolveCommand(x.commandLifeCycleConfig.onSuccessCommand)}},function(h){_.lb(h,"ERROR");
var V,N;((V=x)==null?0:(N=V.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&c.JSC$15481_commandHandler.resolveCommand(x.commandLifeCycleConfig.onFailureCommand)}))})};
Fk[em]=[_.xu,iBm];var y$W=function(B,c){this.JSC$15489_commandHandler=B;this.commandAllowlistOverride=c;var x;this.commandAllowlist=(x=this.commandAllowlistOverride)!=null?x:fw};
y$W.prototype.handleResponse=function(B,c,x){var P,Y=c==null?void 0:(P=c.config)==null?void 0:P.command;if(!Y||this.commandAllowlist.some(function(g){return!!_.t(Y,g)})){c=void 0;
x!==void 0&&(c={form:{element:x}});B.onResponseReceivedCommand&&this.JSC$15489_commandHandler.resolveCommand(B.onResponseReceivedCommand,c);B.onResponseReceivedAction&&this.JSC$15489_commandHandler.resolveCommand(B.onResponseReceivedAction,c);B.onResponseReceivedEndpoint&&this.JSC$15489_commandHandler.resolveCommand(B.onResponseReceivedEndpoint,c);B.command&&this.JSC$15489_commandHandler.resolveCommand(B.command,c);if(B.onResponseReceivedCommands)for(x=_.p(B.onResponseReceivedCommands),P=x.next();!P.done;P=
x.next())this.JSC$15489_commandHandler.resolveCommand(P.value,c);if(B.onResponseReceivedActions)for(x=_.p(B.onResponseReceivedActions),P=x.next();!P.done;P=x.next())this.JSC$15489_commandHandler.resolveCommand(P.value,c);if(B.onResponseReceivedEndpoints)for(x=_.p(B.onResponseReceivedEndpoints),P=x.next();!P.done;P=x.next())this.JSC$15489_commandHandler.resolveCommand(P.value,c);if(B.actions)for(B=_.p(B.actions),x=B.next();!x.done;x=B.next())this.JSC$15489_commandHandler.resolveCommand(x.value,c)}};
y$W[em]=[_.xu,_.Bp(b_7)];var GS3=new _.BL("INNERTUBE_TOKEN_SERVICE");var MbZ=new _.BL("SCHEDULER_TOKEN");var LiZ=function(B){this.scheduler=B;B={};this.tokenMap=(B.app={},B.user={},B)};
LiZ.prototype.handleResponse=function(B,c){if(!c)throw Error("Ki");var x;if(B=(x=B.responseContext)==null?void 0:x.innertubeTokenJar){if(B.appTokens){var P,Y,g;x=(P=c.innerTubeRequest.context)==null?void 0:(Y=P.request)==null?void 0:(g=Y.innertubeTokenJar)==null?void 0:g.appTokens;ZnQ(this,B.appTokens,this.tokenMap.app,x)}if(B.userTokens){var k,n,b;c=(k=c.innerTubeRequest.context)==null?void 0:(n=k.request)==null?void 0:(b=n.innertubeTokenJar)==null?void 0:b.userTokens;ZnQ(this,B.userTokens,this.tokenMap.user,
c)}}};
LiZ.prototype.processContext=function(B){B.request||(B.request={});var c=Object.keys(this.tokenMap.app).length,x=Object.keys(this.tokenMap.user).length;if(c||x)B.request.innertubeTokenJar={},c&&(B.request.innertubeTokenJar.appTokens=[].concat(_.wq(Object.values(this.tokenMap.app).flat()))),x&&(B.request.innertubeTokenJar.userTokens=[].concat(_.wq(Object.values(this.tokenMap.user).flat())))};
var ZnQ=function(B,c,x,P){c=_.p(c);for(var Y=c.next(),g={};!Y.done;g={token$jscomp$138:void 0},Y=c.next()){g.token$jscomp$138=Y.value;if(g.token$jscomp$138.type===void 0)throw new _.mc("InnerTube token has no type",g.token$jscomp$138);if(g.token$jscomp$138.clearTokens)x[g.token$jscomp$138.type]=[];else if(g.token$jscomp$138.value!==void 0){x[g.token$jscomp$138.type]||(x[g.token$jscomp$138.type]=[]);if(P!==void 0&&P.length){Y=_.p(P);for(var k=Y.next(),n={};!k.done;n={requestToken:void 0},k=Y.next())n.requestToken=
k.value,k=x[g.token$jscomp$138.type].findIndex(function(b){return function(d){return d===b.requestToken||(0,_.wW.equals)(d,b.requestToken)}}(n)),k>-1&&x[g.token$jscomp$138.type].splice(k,1)}x[g.token$jscomp$138.type].push(g.token$jscomp$138);
g.token$jscomp$138.maxAgeSeconds&&Number(g.token$jscomp$138.maxAgeSeconds)>0&&B.scheduler.addLowPriorityJob(function(b){return function(){var d=x[b.token$jscomp$138.type].indexOf(b.token$jscomp$138);d>-1&&x[b.token$jscomp$138.type].splice(d,1)}}(g),Number(g.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.mc("InnerTube token has no value",g.token$jscomp$138);
}};
LiZ[em]=[MbZ];var Hn9=new _.BL("LOCAL_INNERTUBE_ROUTER_TOKEN"),fU5=new _.BL("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var vZ=function(B){this.serviceMap=B};
vZ.prototype.shouldPreferLocalResponse=function(B,c){return(B=in3(this,B))?B.shouldPreferLocalResponse(c):!1};
vZ.prototype.localInnertubeResponse=function(B,c){var x=this,P;return _.X(function(Y){return(P=in3(x,B))?Y.return(P.localInnertubeResponse(c)):Y.return(Promise.reject(Error("Li")))})};
vZ.prototype.canProvideFallbackResponse=function(B,c){return(B=in3(this,B))?B.canProvideFallbackResponse(c):!1};
vZ.prototype.localFallbackInnertubeResponse=function(B,c){var x=this,P;return _.X(function(Y){return(P=in3(x,B))?Y.return(P.localFallbackInnertubeResponse(c)):Y.return(Promise.reject(Error("Li")))})};
var in3=function(B,c){c=_.$u(c);return c?(B=B.serviceMap[c])?B:null:null};
vZ[em]=[fU5];var tE=function(){};
tE.prototype.shouldPreferLocalResponse=function(){return!1};
tE.prototype.localInnertubeResponse=function(){return _.X(function(B){return B.return(Promise.reject(Error("Mi")))})};
tE.prototype.canProvideFallbackResponse=function(){return!0};
tE.prototype.localFallbackInnertubeResponse=function(){var B,c,x;return _.X(function(P){B=W8("CLOSE_POPUP");c={openPopupAction:gZC()};x={actions:[B,c]};return P.return(x)})};var fQO=function(B,c){this.JSC$15539_upliftPromise=B;this.store=c};
_.a=fQO.prototype;_.a.shouldPreferLocalResponse=function(B){var c=B.videoId,x;if(x=c)x=h7I(this.store.getState().entities,B.videoId);return x&&mkO(this.store.getState().entities,c)?pcC(this.store.getState().entities,B.playlistId):!1};
_.a.localInnertubeResponse=function(B){var c=this,x;return _.X(function(P){return(x=c.getPlayerResponse(B))?P.return(Promise.resolve(x)):P.return(Promise.reject(Error("Ni")))})};
_.a.canProvideFallbackResponse=function(B){return!!B.videoId};
_.a.localFallbackInnertubeResponse=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.JSC$15539_upliftPromise,2);x=c.getPlayerResponse(B);var Y;x?Y=P.return(Promise.resolve(x)):Y=T$(c.store.getState().entities,B.videoId)?P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.c3(_.Up("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Io7()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.c3(_.Up("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:NIw()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Y})};
_.a.getPlayerResponse=function(B){return A4X(this.store.getState().entities,B.videoId)};var VA=function(B,c){this.localPlayerService=B;this.localWatchNextService=c};
VA.prototype.shouldPreferLocalResponse=function(B){var c=B.playerRequest;B=B.watchNextRequest;return!!(c&&this.localPlayerService.shouldPreferLocalResponse(c)&&B&&this.localWatchNextService.shouldPreferLocalResponse(B))};
VA.prototype.localInnertubeResponse=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){x=B.playerRequest;P=B.watchNextRequest;if(!x||!P)throw new _.mc("Missing streaming request",B);return _.K(k,c.localPlayerService.localInnertubeResponse(x),2)}if(k.nextAddress!=3)return Y=k.yieldResult,_.K(k,c.localWatchNextService.localInnertubeResponse(P),3);g=k.yieldResult;return k.return({playerResponse:Y,watchNextResponse:g})})};
VA.prototype.canProvideFallbackResponse=function(B){var c=B.playerRequest;B=B.watchNextRequest;return!!(c&&this.localPlayerService.canProvideFallbackResponse(c)&&B&&this.localWatchNextService.canProvideFallbackResponse(B))};
VA.prototype.localFallbackInnertubeResponse=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return x=B.playerRequest,P=B.watchNextRequest,x&&P?_.K(k,c.localPlayerService.localFallbackInnertubeResponse(x),2):k.return(Promise.reject(new _.mc("Missing streaming request",B)));if(k.nextAddress!=3)return Y=k.yieldResult,_.K(k,c.localWatchNextService.localFallbackInnertubeResponse(P),3);g=k.yieldResult;return k.return({playerResponse:Y,watchNextResponse:g})})};var hE=function(B){this.JSC$15549_persistentStorePromiseAccessor=B};
hE.prototype.shouldPreferLocalResponse=function(){return!1};
hE.prototype.localInnertubeResponse=function(){return _.X(function(B){return B.return(Promise.reject(Error("Oi")))})};
hE.prototype.canProvideFallbackResponse=function(){return!0};
hE.prototype.localFallbackInnertubeResponse=function(){var B=this,c,x;return _.X(function(P){return P.nextAddress==1?_.K(P,B.JSC$15549_persistentStorePromiseAccessor(),2):P.nextAddress!=3?(c=P.yieldResult)?_.K(P,c.get("service:guide:fallback"),3):P.return(Promise.reject(Error("Pi"))):(x=P.yieldResult)&&_.Xs(x)?P.return(kX$(_.Xs(x))):P.return(Promise.reject(Error("Qi")))})};var w2=function(){};
w2.prototype.shouldPreferLocalResponse=function(){return!1};
w2.prototype.localInnertubeResponse=function(){return _.X(function(B){return B.return(Promise.reject(Error("Ri")))})};
w2.prototype.canProvideFallbackResponse=function(){return!0};
w2.prototype.localFallbackInnertubeResponse=function(){var B,c,x;return _.X(function(P){B=W8("CLOSE_POPUP");c={openPopupAction:gZC()};x={actions:[B,c]};return P.return(x)})};var CC=function(){this.urlMap=A$Q;this.fallbackCommand=_.qm};
CC.prototype.shouldPreferLocalResponse=function(B){return(B=B.url)?!!uMy(this,B):!1};
CC.prototype.localInnertubeResponse=function(B){var c=this,x;return _.X(function(P){return(x=B.url)?P.return(Dht(B,uMy(c,x))):P.return(Promise.reject(Error("Si")))})};
CC.prototype.canProvideFallbackResponse=function(){return!0};
CC.prototype.localFallbackInnertubeResponse=function(B){var c=this,x,P,Y,g,k,n,b;return _.X(function(d){x=B.url;if(!x)return d.return(Dht(B,c.fallbackCommand));if(P=uMy(c,x))return d.return(Dht(B,P));Y=void 0;g=_.$u(x);g==="/watch"&&(k=_.MH(x,"v"))&&(b=(n=_.MH(x,"list"))!=null?n:void 0,Y=_.B3(k,b));Y||(Y=c.fallbackCommand);return d.return(Dht(B,Y))})};
var uMy=function(B,c){if(c)return B.urlMap[_.SW(c)]},Dht=function(B,c){c&&B.parentTrackingParams&&(c.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:B.parentTrackingParams}},c.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:c})};var mH=function(B,c,x){this.JSC$15559_upliftPromise=B;this.store=c;this.JSC$15559_persistentStorePromiseAccessor=x};
mH.prototype.shouldPreferLocalResponse=function(){return!1};
mH.prototype.localInnertubeResponse=function(){return _.X(function(B){return B.return(Promise.reject(Error("Ti")))})};
mH.prototype.canProvideFallbackResponse=function(){return!0};
mH.prototype.localFallbackInnertubeResponse=function(){var B=this;return _.X(function(c){return c.return(r$t(B))})};
var r$t=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,kl(B.JSC$15559_upliftPromise,B.store),2);c=P.yieldResult;x={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[sMI(c)]}}}};return P.return(RHn(B,x))})},RHn=function(B,c){var x,P;
return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,B.JSC$15559_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return x=Y.yieldResult,_.K(Y,$l(x),3);P=Y.yieldResult;return Y.return({responseContext:{},contents:c,topbar:P})})};var d2=function(B,c,x){this.JSC$15566_upliftPromise=B;this.store=c;this.JSC$15566_persistentStorePromiseAccessor=x};
d2.prototype.shouldPreferLocalResponse=function(B){var c=B.videoId;return c&&h7I(this.store.getState().entities,c)&&mkO(this.store.getState().entities,c)?pcC(this.store.getState().entities,B.playlistId):!1};
d2.prototype.localInnertubeResponse=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return(x=B.videoId)?_.K(Y,c.JSC$15566_upliftPromise,2):Y.return(Promise.reject(Error("Ui")));if(Y.nextAddress!=3)return _.K(Y,eHd(c,B,x),3);P=Y.yieldResult;return Y.return(Bw0(c,P,x))})};
d2.prototype.canProvideFallbackResponse=function(B){return B.videoId?!0:!1};
d2.prototype.localFallbackInnertubeResponse=function(B){var c=this,x,P,Y,g;return _.X(function(k){switch(k.nextAddress){case 1:return(x=B.videoId)?_.K(k,c.JSC$15566_upliftPromise,2):k.return(Promise.reject(Error("Ui")));case 2:return _.K(k,eHd(c,B,x),3);case 3:P=k.yieldResult;if(T$(c.store.getState().entities,x)){k.jumpTo(4);break}return _.K(k,kl(c.JSC$15566_upliftPromise,c.store),5);case 5:return Y=k.yieldResult,k.return(c10(P,Y));case 4:return h7I(c.store.getState().entities,x)&&mkO(c.store.getState().entities,
x)?k.return(Bw0(c,P,x)):(g={title:_.c3(_.Up("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Io7()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},k.return(c10(P,g)))}})};
var eHd=function(B,c,x){var P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return P=c.playlistId,Y=_.B3(x,P),_.K(b,B.JSC$15566_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return g=b.yieldResult,_.K(b,$l(g),3);k=b.yieldResult;n={responseContext:{},currentVideoEndpoint:Y,topbar:k};return b.return(n)})},Bw0=function(B,c,x){if(B=T$(B.store.getState().entities,x)){var P;
x=B.videoEntity;var Y,g={title:xN(x.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.P3((P=x.localizedStrings)==null?void 0:P.viewCount),viewCount:_.P3((Y=x.localizedStrings)==null?void 0:Y.viewCount)}}};x.publishedTimestampMillis&&(g.dateText=_.P3(o5l(new Date(Number(x.publishedTimestampMillis)))));P={videoPrimaryInfoRenderer:g};Y=B.videoEntity;B=B.channelEntity;B={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:xN(_.Up("SHOW_MORE",void 0,"Show more")),
showLessText:xN(_.Up("SHOW_LESS",void 0,"Show less")),description:Y.formattedDescription,owner:{videoOwnerRenderer:{title:xN(B.title),thumbnail:B.avatar}}}};c.contents={twoColumnWatchNextResults:{results:{results:{contents:[P,B]}}}}}return c},c10=function(B,c){B.contents={singleColumnWatchNextResults:{results:{results:{contents:[sMI(c)]}}}};
return B};var Te=function(B,c,x){this.JSC$15571_upliftPromise=B;this.store=c;this.JSC$15571_persistentStorePromiseAccessor=x};
Te.prototype.shouldPreferLocalResponse=function(){return!1};
Te.prototype.localInnertubeResponse=function(){return _.X(function(B){return B.return(Promise.reject(Error("Vi")))})};
Te.prototype.canProvideFallbackResponse=function(){return!0};
Te.prototype.localFallbackInnertubeResponse=function(){var B=this,c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return _.K(g,B.JSC$15571_persistentStorePromiseAccessor(),2);case 2:return c=g.yieldResult,_.K(g,$l(c),3);case 3:return x=g.yieldResult,P={responseContext:{},topbar:x},_.K(g,B.JSC$15571_upliftPromise,4);case 4:return _.K(g,kl(B.JSC$15571_upliftPromise,B.store),5);case 5:return Y=g.yieldResult,P.watchStatus={backgroundPromoRenderer:Y},g.return(P)}})};var x$y=new _.BL("ENDPOINT_MAP");var PfF=function(){var B=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return B.sequenceMap}}},GJQ=function(B,c,x){var P,Y=(P=c.config)==null?void 0:P.sequenceStrategy;
if(!Y)return x();B.sequenceMap.has(Y.sequenceKey)||B.sequenceMap.set(Y.sequenceKey,[]);B=B.sequenceMap.get(Y.sequenceKey);switch(Y.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Y1Z(B,c,x);case "REQUEST_SEQUENCE_TYPE_REPLACE":return aqF(B,c,x);default:throw new _.mc("Request could not be sequenced",c);}},Y1Z=function(B,c,x){var P,Y,g;
return _.X(function(k){B.length>0?(Y=B[B.length-1],P=Y.responsePromise.then(function(){return x()})):P=x();
g={request:c,responsePromise:P};B.push(g);gqy(B,g);return k.return(g.responsePromise)})},aqF=function(B,c,x){x=x();
if(B.length>0)for(var P=_.p(B),Y=P.next();!Y.done;Y=P.next())Y.value.responsePromise=x;var g={request:c,responsePromise:x};B.push(g);gqy(B,g);return Promise.resolve().then(function(){return B.indexOf(g)>0?g.responsePromise.then(function(k){return Object.assign({},k,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},gqy=function(B,c){c.responsePromise.then(function(){var x=B.indexOf(c);
x>-1&&B.splice(x,1)})};var s6F=new _.BL("REQUEST_SEQUENCING");var zM=function(){};
_.w(zM,kg);zM.prototype.getApiPaths=function(){return[]};
zM.prototype.getExtension=function(B){return _.t(B,dbm)};
zM.prototype.JSC$11057_buildRequest=function(B,c){B.recaptchaToken=c.recaptchaToken};
zM.prototype.getApiUrl=function(){return"/das_captcha"};var Se=function(){};
_.w(Se,kg);Se.prototype.getApiPaths=function(){return uaZ};
Se.prototype.getExtension=function(B){return _.t(B,HCF)};
Se.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.createBackstagePostParams&&(B.createBackstagePostParams=c.createBackstagePostParams);x.comment_text&&(B.commentText=x.comment_text);if(x.attached_video_id)B.videoAttachment={videoId:x.attached_video_id};else if(x.image_poll_options)B.pollAttachmentData={options:x.image_poll_options};else if(x.poll_options)B.pollAttachment={choices:x.poll_options};else if(x.quiz_options)B.quizAttachmentData={options:x.quiz_options};else if(x.image_blob_id)B.imageAttachment=
{encryptedBlobId:x.image_blob_id},x.source_video_id&&(B.imageAttachment.sourceExternalVideoId=x.source_video_id),x.image_preview_coordinates&&(B.imageAttachment.previewCoordinates=JSON.parse(x.image_preview_coordinates));else if(x.images_data)B.imagesAttachment={imagesData:x.images_data};else if(x.clip_external_video_id!==void 0||x.clip_offset_ms!==void 0||x.clip_duration_ms!==void 0){var P,Y,g,k,n;B.clipAttachment={externalVideoId:(g=x.clip_external_video_id)!=null?g:"",offsetMs:(k=(P=x.clip_offset_ms)==
null?void 0:P.toString())!=null?k:"",durationMs:(n=(Y=x.clip_duration_ms)==null?void 0:Y.toString())!=null?n:""}}else x.shared_post_id&&(B.sharedPostAttachment={postId:x.shared_post_id});x.tagged_video_id&&(B.postCreationData={taggedVideoId:x.tagged_video_id});x.access_restrictions&&(typeof x.access_restrictions==="number"&&(c=x.access_restrictions,B.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof x.access_restrictions==="string"&&
(B.accessRestrictionsParams=x.access_restrictions));x.scheduled_publish_time_sec&&(B.scheduledPublishTimeSec=x.scheduled_publish_time_sec.toString())};var yh=function(){};
_.w(yh,kg);yh.prototype.getApiPaths=function(){return x4W};
yh.prototype.getExtension=function(B){return _.t(B,rZd)};
yh.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.decorateMessageParams&&(B.params=c.decorateMessageParams);x.text&&(B.text=x.text)};var GM=function(){};
_.w(GM,kg);GM.prototype.getApiPaths=function(){return Tk3};
GM.prototype.getExtension=function(B){return _.t(B,fOF)};
GM.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;x.video_id&&(B.videoId=x.video_id)};var MU=function(){};
_.w(MU,kg);MU.prototype.getApiPaths=function(){return J23};
MU.prototype.getExtension=function(B){return _.t(B,_.KW)};
MU.prototype.JSC$11057_buildRequest=function(B,c,x){x.suggestions_query&&(B.input=x.suggestions_query)};var L_=function(){};
_.w(L_,kg);L_.prototype.getApiPaths=function(){return si9};
L_.prototype.getExtension=function(B){return _.t(B,iC9)};
L_.prototype.JSC$11057_buildRequest=function(B,c,x){x.comment_text!==void 0&&(B.commentText=x.comment_text);x.scheduled_publish_time_sec&&(B.scheduledPublishTimeSec=x.scheduled_publish_time_sec.toString());B.updateBackstagePostParams=c.updateBackstagePostParams};var ZB=function(){};
_.w(ZB,kg);ZB.prototype.getApiPaths=function(){return xl};
ZB.prototype.getExtension=function(B){return _.t(B,_.zU)};
ZB.prototype.JSC$11057_buildRequest=function(B,c,x){x.formData&&(B.formData=x.formData);c.token?B.continuation=c.token:c.continuationTokenKey&&(x=_.uG().getState(),c=_.X9(x.entities,"continuationTokenEntity",c.continuationTokenKey))&&(B.continuation=String(c.continuationToken))};
var pmd=function(){};
_.w(pmd,kg);_.a=pmd.prototype;_.a.getApiPaths=function(){return xl};
_.a.getExtension=function(B){return _.t(B,_.qA)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11064_getStoreKey=function(B){if((B=this.getExtension(B))&&B.browseId){var c={browseId:B.browseId};B.browseEndpointContextSupportedConfigs&&(c.browseEndpointContextSupportedConfigs=JSON.stringify(B.browseEndpointContextSupportedConfigs));B.params&&(c.params=B.params);B.query&&(c.query=B.query);return _.Hf("browse",c)}};
_.a.JSC$11057_buildRequest=function(B,c,x){c.browseId&&(B.browseId=c.browseId);c.params&&(B.params=c.params);c.query&&(B.query=c.query);x.formData?B.formData=x.formData:c.formData&&(B.formData=c.formData);c.browseId==="FEsubscriptions"&&_.CW().getFlag(155)&&(B.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");c.browseId==="SPaccount_playback"&&(x=_.CW(),B.formData||(B.formData={}),B.formData.accountSettingsFormData={flagCaptionsDefaultOff:x.getFlag(65),flagAutoCaptionsDefaultOn:x.getFlag(66),
flagDisableInlinePreview:x.getFlag(186),flagAudioDescriptionDefaultOn:x.getFlag(198)});if(c.browseId==="FEwhat_to_watch"){x=_.CW();var P=x.getFlag(196);x.getFlag(197)&&(B.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:P}}})}c.browseId==="FEwhat_to_watch"&&(c=_.CW().getFlag(186),B.inlineSettingStatus=c?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.a.getRequestConfig=function(B,c){c=c===void 0?{}:c;var x={};if(B=this.JSC$11064_getStoreKey(B,c))x.storeStrategy={storeKey:B,disableCache:c.disableCache};_.T("web_log_browse_ticks_ks")||(x.requestTick="br_s",x.responseTick="br_r");return x};var HZ=function(){};
_.w(HZ,kg);HZ.prototype.getApiPaths=function(){return LjZ};
HZ.prototype.getExtension=function(B){return _.t(B,n7m)};
HZ.prototype.JSC$11057_buildRequest=function(B,c,x){B.legacyYoutubeChannelUsername=x.legacyYouTubeChannelUsername||"";B.legacyYoutubeChannelPassword=x.legacyYouTubeChannelPassword||""};var f_=function(){};
_.w(f_,kg);f_.prototype.getApiPaths=function(){return r2t};
f_.prototype.getExtension=function(B){return _.t(B,cdt)};
f_.prototype.JSC$11057_buildRequest=function(B,c,x){x.recaptcha_response_token&&(B.recaptchaResponseToken=x.recaptcha_response_token);x.channel_id&&(B.channelId=x.channel_id)};var i_=function(){};
_.w(i_,kg);i_.prototype.getApiPaths=function(){return pVI};
i_.prototype.getExtension=function(B){return _.t(B,sg3)};
i_.prototype.JSC$11057_buildRequest=function(B,c,x){c.externalChannelId&&(B.externalChannelId=c.externalChannelId);x.handle&&(B.handleUpdate={handle:x.handle},c.handleEditSource&&(B.handleUpdate.handleEditSource=c.handleEditSource))};var At=function(){};
_.w(At,kg);At.prototype.getApiPaths=function(){return nJn};
At.prototype.getExtension=function(B){return _.t(B,TQI)};
At.prototype.JSC$11057_buildRequest=function(B,c,x){c.request&&(B.channelId=c.request.channelId);var P;if(x==null?0:(P=x.uploadDefaults)==null?0:P.emojiReactionSet)B.uploadDefaultsRequest||(B.uploadDefaultsRequest={}),B.uploadDefaultsRequest.emojiReactionSet=x.uploadDefaults.emojiReactionSet};var u_=function(){};
_.w(u_,kg);u_.prototype.getApiPaths=function(){return jiZ};
u_.prototype.getExtension=function(B){return _.t(B,xy0)};
u_.prototype.JSC$11057_buildRequest=function(B,c,x){c.externalChannelId&&(B.externalChannelId=c.externalChannelId);c.channelHandleEntityKey&&(B.channelHandleEntityKey=c.channelHandleEntityKey);c.handleEditSource&&(B.handleEditSource=c.handleEditSource);x.handle?B.handle=x.handle:x.name&&(B.name=x.name)};var DB=function(){};
_.w(DB,kg);DB.prototype.getApiPaths=function(){return fpn};
DB.prototype.getExtension=function(B){return _.t(B,lE5)};
DB.prototype.JSC$11057_buildRequest=function(B,c){c.actions?B.actions=c.actions:c.action&&(B.actions=[c.action])};var r0=function(){};
_.w(r0,kg);r0.prototype.getApiPaths=function(){return i05};
r0.prototype.getExtension=function(B){return _.t(B,_.zU)};
r0.prototype.JSC$11057_buildRequest=function(B,c){c.token&&(B.continuation=c.token)};var RY=function(){};
_.w(RY,kg);RY.prototype.getApiPaths=function(){return hRW};
RY.prototype.getExtension=function(B){return _.t(B,_.zU)};
RY.prototype.JSC$11057_buildRequest=function(B,c){B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";c.token&&(B.fetchCommentsParams={continuation:c.token})};var ee=function(){};
_.w(ee,kg);ee.prototype.getApiPaths=function(){return RTd};
ee.prototype.getExtension=function(B){return _.t(B,W0S)};
ee.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.createReplyParams&&(B.createReplyParams=c.createReplyParams);c.commentText&&(B.commentText=_.iG(c.commentText));x.comment_text&&(B.commentText=x.comment_text);x.image_blob_id&&(B.imageAttachment={encryptedBlobId:x.image_blob_id});x.botguard_response&&(B.botguardResponse=x.botguard_response)};
_.AJ.Object.defineProperties(ee.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bx=function(){};
_.w(Bx,kg);Bx.prototype.getApiPaths=function(){return eTd};
Bx.prototype.getExtension=function(B){return _.t(B,_.JUI)};
Bx.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.createCommentParams&&(B.createCommentParams=c.createCommentParams);c.commentText&&(B.commentText=_.iG(c.commentText));c.videoPositionMention&&(B.videoPositionMention=c.videoPositionMention);c.sources&&(B.sources=c.sources);x.comment_text&&(B.commentText=x.comment_text);x.attached_video_id?B.videoAttachment={videoId:x.attached_video_id}:x.poll_options?B.pollAttachment={choices:x.poll_options}:x.image_blob_id?B.imageAttachment=
{encryptedBlobId:x.image_blob_id}:x.shared_post_id&&(B.sharedPostAttachment={postId:x.shared_post_id});x.access_restrictions&&typeof x.access_restrictions==="number"&&(c=x.access_restrictions,B.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});x.botguard_response&&(B.botguardResponse=x.botguard_response)};
_.AJ.Object.defineProperties(Bx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cx=function(){};
_.w(cx,kg);cx.prototype.getApiPaths=function(){return kOQ};
cx.prototype.getExtension=function(B){return _.t(B,vYW)};
cx.prototype.JSC$11057_buildRequest=function(B,c,x){c.commentText&&(B.replyText=_.iG(c.commentText));x.comment_text&&(B.replyText=x.comment_text);B.updateReplyParams=c.updateReplyParams};
_.AJ.Object.defineProperties(cx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xi=function(){};
_.w(xi,kg);xi.prototype.getApiPaths=function(){return XVS};
xi.prototype.getExtension=function(B){return _.t(B,FaI)};
xi.prototype.JSC$11057_buildRequest=function(B,c,x){c.commentText&&(B.commentText=_.iG(c.commentText));x.comment_text&&(B.commentText=x.comment_text);B.updateCommentParams=c.updateCommentParams};
_.AJ.Object.defineProperties(xi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Px=function(){};
_.w(Px,kg);Px.prototype.getApiPaths=function(){return $3t};
Px.prototype.getExtension=function(B){return _.t(B,qZ4)};
Px.prototype.JSC$11057_buildRequest=function(B,c){c.settings&&(B.settings=c.settings)};var Yi=function(){};
_.w(Yi,kg);Yi.prototype.getApiPaths=function(){return byy};
Yi.prototype.getExtension=function(B){return _.t(B,PJI)};
Yi.prototype.JSC$11057_buildRequest=function(B,c){c.channelCreationToken&&(B.channelCreationToken=c.channelCreationToken);c.source&&(B.source=c.source)};var ao=function(){};
_.w(ao,kg);ao.prototype.getApiPaths=function(){return rvd};
ao.prototype.getExtension=function(B){return _.t(B,gVd)};
ao.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;if(x.name&&(x.given_name||x.family_name))B=new _.mc("channel creation cannot set both GAIA and YouTube names",c),_.lb(B);else{if(c.zeroStepChannelCreationParams){if(!x.comment_text){B=new _.mc("zero_step_create_comment_params but no zero_step_texts",c);_.lb(B);return}B.zeroStepChannelCreationParams=c.zeroStepChannelCreationParams;B.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(B.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
x.comment_text,x.botguard_response&&(B.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=x.botguard_response))}B.channelCreationToken=c.channelCreationToken;x.given_name&&(B.givenName=x.given_name);x.family_name&&(B.familyName=x.family_name);c.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(B.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(x.name||x.handle||x.avatar_url||x.encryptedBlobId||x.isNameChanged!==void 0||x.isHandleChanged!==void 0||x.isDefaultProfilePhoto!==
void 0||x.obakeImageSource)B.overrideChannelCreationParams={},x.name&&(B.overrideChannelCreationParams.name=x.name),x.handle&&(B.overrideChannelCreationParams.handle=x.handle),x.avatar_url&&(B.overrideChannelCreationParams.avatarUrl=x.avatar_url),x.encryptedBlobId&&(B.overrideChannelCreationParams.blobEncryptionId=x.encryptedBlobId),x.enableIdentityForAllChannelCreationDialog&&(x.encryptedBlobId?B.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
x.isDefaultProfilePhoto!==void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=x.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),x.isNameChanged!==void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationNameTag=x.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),x.isHandleChanged!==
void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=x.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),x.obakeImageSource&&(B.overrideChannelCreationParams.obakeImageSourceType=x.obakeImageSource))}};var gE=function(){};
_.w(gE,kg);gE.prototype.getApiPaths=function(B){return(B=this.getExtension(B))&&B.status==="DISLIKE"?ggS:B&&B.status==="INDIFFERENT"?f5t:ogF};
gE.prototype.getExtension=function(B){return _.t(B,_.ij)};
gE.prototype.JSC$11057_buildRequest=function(B,c){c.target&&(B.target=c.target);if(c=this.getParams(c))B.params=c};
gE.prototype.getParams=function(B){switch(B==null?void 0:B.status){case "DISLIKE":return B.dislikeParams;case "INDIFFERENT":return B.removeLikeParams;default:return B==null?void 0:B.likeParams}};var s$=function(){};
_.w(s$,kg);s$.prototype.getApiPaths=function(){return x35};
s$.prototype.getExtension=function(B){return _.t(B,Lat)};
s$.prototype.JSC$11057_buildRequest=function(B,c){c.settingItemId&&(B.settingItemId=c.settingItemId);c.stringValue!=null&&c.stringValue!==void 0?B.newValue={stringValue:c.stringValue}:c.intValue?B.newValue={intValue:c.intValue}:c.boolValue!==null&&c.boolValue!==void 0?B.newValue={boolValue:c.boolValue}:(B=new _.mc("Unknown value type for SetSettingEndpoint.",c),_.lb(B))};var pP=function(){};
_.w(pP,kg);pP.prototype.getApiPaths=function(){return Y2m};
pP.prototype.getExtension=function(B){return _.t(B,g5d)||void 0};
pP.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.channelIds&&(B.channelIds=c.channelIds);c.siloName&&(B.siloName=c.siloName);c.params&&(B.params=c.params);x.botguardResponse&&(B.botguardResponse=x.botguardResponse);x.feature&&(B.clientFeature=x.feature)};
_.AJ.Object.defineProperties(pP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ki=function(){};
_.w(ki,kg);ki.prototype.getApiPaths=function(){return gJS};
ki.prototype.getExtension=function(B){return _.t(B,Zd9)||void 0};
ki.prototype.JSC$11057_buildRequest=function(B,c){c.channelIds&&(B.channelIds=c.channelIds);c.siloName&&(B.siloName=c.siloName);c.params&&(B.params=c.params)};
_.AJ.Object.defineProperties(ki.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xi=function(B){this.shareClientParamsProvider=B};
_.w(Xi,kg);Xi.prototype.getApiPaths=function(){return tq4};
Xi.prototype.getExtension=function(B){return _.t(B,KEd)||_.t(B,_.jX0)||_.t(B,bmd)};
Xi.prototype.JSC$11057_buildRequest=function(B,c){c.serializedShareEntity&&(B.serializedSharedEntity=c.serializedShareEntity);if(c.clientParamIdentifier){var x;if((x=this.shareClientParamsProvider)==null?0:x.clientParams.has(c.clientParamIdentifier)){x=this.shareClientParamsProvider;c=c.clientParamIdentifier;var P=x.clientParams.get(c);P&&x.clientParams.delete(c);B.clientParams=P}}};
Xi[em]=[wOy];var $i=function(){};
_.w($i,kg);$i.prototype.getApiPaths=function(){return yvm};
$i.prototype.getExtension=function(B){return _.t(B,Tp5)};
$i.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var nP=function(){};
_.w(nP,kg);nP.prototype.getApiPaths=function(){return s$F};
nP.prototype.getExtension=function(B){return _.t(B,CLQ)};
nP.prototype.JSC$11057_buildRequest=function(B,c){c.dismissal&&(B.items=[c.dismissal])};
_.AJ.Object.defineProperties(nP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b2=function(){};
_.w(b2,kg);b2.prototype.getApiPaths=function(){return Eg5};
b2.prototype.getExtension=function(B){return _.t(B,_.Fs)||void 0};
b2.prototype.JSC$11057_buildRequest=function(B,c,x){B.feedbackTokens=[];c.feedbackToken&&B.feedbackTokens.push(c.feedbackToken);if(c=c.cpn||x.cpn)B.feedbackContext={cpn:c};B.isFeedbackTokenUnencrypted=!!x.is_feedback_token_unencrypted;B.shouldMerge=!1;x.extra_feedback_tokens&&(B.shouldMerge=!0,B.feedbackTokens=B.feedbackTokens.concat(x.extra_feedback_tokens))};
_.AJ.Object.defineProperties(b2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KP=function(){};
_.w(KP,kg);KP.prototype.getApiPaths=function(){return Eg5};
KP.prototype.getExtension=function(B){return _.t(B,_.KW)};
KP.prototype.JSC$11057_buildRequest=function(B,c,x){x.feedback_tokens&&(B.feedbackTokens=x.feedback_tokens,B.shouldMerge=!0)};
_.AJ.Object.defineProperties(KP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jK=function(){};
_.w(jK,kg);jK.prototype.getApiPaths=function(){return Eg5};
jK.prototype.getExtension=function(B){return _.t(B,PnA)};
jK.prototype.JSC$11057_buildRequest=function(B,c){c.undoToken&&(B.feedbackTokens=[c.undoToken]);c.isUndoTokenUnencrypted&&(B.isFeedbackTokenUnencrypted=c.isUndoTokenUnencrypted)};
_.AJ.Object.defineProperties(jK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U$=function(){};
_.w(U$,kg);U$.prototype.getApiPaths=function(){return U34};
U$.prototype.getExtension=function(B){return _.t(B,Uw5)};
U$.prototype.JSC$11057_buildRequest=function(B,c){c.nextEndpoint&&_.t(c.nextEndpoint,_.yp)?B.nextEndpoint={urlEndpoint:_.t(c.nextEndpoint,_.yp)}:c.nextEndpoint&&_.t(c.nextEndpoint,_.fN)&&(B.nextEndpoint={watchEndpoint:_.t(c.nextEndpoint,_.fN)});c.setRacy&&(B.setRacy=c.setRacy);c.setControvercy&&(B.setControvercy=c.setControvercy)};var dE=function(B){this.JSC$15752_storeWithEntities=B};
_.w(dE,kg);dE.prototype.getApiPaths=function(){return kCt};
dE.prototype.getExtension=function(B){return _.t(B,G1m)};
dE.prototype.JSC$11057_buildRequest=function(B,c){c.flowId&&(B.flowId=c.flowId);c.targetId&&(B.targetId=c.targetId);c.continuation&&(B.continuation=c.continuation);var x=c.flowStateEntityKey;if(c.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&x&&this.JSC$15752_storeWithEntities){var P;if(c=(P=this.JSC$15752_storeWithEntities.getState())==null?void 0:P.entities)if(P=_.gL(x).entityType,P=_.X9(c,P,x))B.flowState=P,B.flowStateEntityKey=x}};
_.AJ.Object.defineProperties(dE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
dE[em]=[nC];var kRm=function(){};
_.w(kRm,kg);_.a=kRm.prototype;_.a.getApiPaths=function(){return l5Z};
_.a.JSC$11064_getStoreKey=function(){return _.Hf("guide")};
_.a.getRequestConfig=function(){var B=this.JSC$11064_getStoreKey(),c;B&&(c={storeStrategy:{storeKey:B}});return c};
_.a.isNavigationCommand=function(){return!0};
_.a.getExtension=function(B){return _.t(B,_.KW)};
_.a.JSC$11057_buildRequest=function(B){B.fetchLiveState=!0};var q0=function(){};
_.w(q0,kg);q0.prototype.getApiPaths=function(){return Z03};
q0.prototype.getExtension=function(B){return _.t(B,w64)};
q0.prototype.JSC$11057_buildRequest=function(){};var CP=function(){};
_.w(CP,kg);CP.prototype.getApiPaths=function(){return H0n};
CP.prototype.getExtension=function(B){return _.t(B,N7m)};
CP.prototype.JSC$11057_buildRequest=function(){};var hh=function(){};
_.w(hh,kg);hh.prototype.getApiPaths=function(){return SMm};
hh.prototype.getExtension=function(B){return _.t(B,_.zU)};
hh.prototype.JSC$11057_buildRequest=function(B,c){c.token&&(B.continuation=c.token);var x,P;B==null||(x=B.context)==null||(P=x.user)==null||delete P.onBehalfOfUser};
hh.prototype.getRequestConfig=function(B){var c={},x;if(((x=this.getExtension(B))==null?void 0:x.sessionIndex)!==void 0){var P;c={authStrategy:{sessionIndex:(P=this.getExtension(B))==null?void 0:P.sessionIndex}}}return c};var mn=function(){};
_.w(mn,kg);mn.prototype.JSC$11057_getRequest=function(B){var c=this.getExtension(B),x=B="";if(c==null?0:c.popup)B="true";if(c==null?0:c.disableSignout)x="true";c={};return{input:"/getAccountSwitcherEndpoint",requestShell:Za("/getAccountSwitcherEndpoint","GET",(c["X-YouTube-Delegation-Context"]=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),c["X-YouTube-Account-Switcher-Popup"]=B,c["X-YouTube-Account-Switcher-Disable-Signout"]=x,c)),innerTubeRequest:{}}};
mn.prototype.getApiPaths=function(){return[]};
mn.prototype.getExtension=function(B){return _.t(B,_.kMQ)};
mn.prototype.JSC$11057_buildRequest=function(){};var Tm=function(){};
_.w(Tm,kg);Tm.prototype.JSC$11057_getRequest=function(B){var c="/cross_account_channel_transfer";(B=this.getExtension(B))&&(c=bl$(c,{target_session:B.targetSessionIndex,source_rapt:B.sourceRapt,rapt:B.targetRapt}));return{input:c,requestShell:Za(c,"GET"),innerTubeRequest:{}}};
Tm.prototype.getApiPaths=function(){return[]};
Tm.prototype.getExtension=function(B){return _.t(B,VXF)};
Tm.prototype.JSC$11057_buildRequest=function(){};var V$=function(){};
_.w(V$,kg);V$.prototype.getApiPaths=function(){return Xl3};
V$.prototype.isNavigationCommand=function(){return!0};
V$.prototype.getExtension=function(B){return _.t(B,_.KW)};
V$.prototype.JSC$11057_buildRequest=function(B){var c=_.CW().get("gsml","");c&&(B.safetyModeLockerObfuscatedGaiaId=c);B.userInterfaceTheme=_.Iu(!0);_.JV()?B.deviceTheme="DEVICE_THEME_SELECTED":_.gJA()?B.deviceTheme="DEVICE_THEME_SUPPORTED":B.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var th=function(){};
_.w(th,kg);th.prototype.getApiPaths=function(){return SMm};
th.prototype.getExtension=function(B){return _.t(B,tXZ)};
th.prototype.JSC$11057_buildRequest=function(B,c){if(c&&c.requestType&&(B.requestType=c.requestType,c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var x=c.nextUrl;x&&(_.j1o(x)||Rt(x))&&(B.nextNavendpoint={urlEndpoint:{url:x}})}c&&c.channelSwitcherQuery&&(B.channelSwitcherQuery=c.channelSwitcherQuery);c&&c.triggerChannelCreation&&(B.triggerChannelCreation=c.triggerChannelCreation);var P;if(c==null?0:(P=c.contentOwnerConfig)==
null?0:P.externalContentOwnerId)B.contentOwnerConfig=c.contentOwnerConfig;B.callCircumstance=c&&c.requestType&&c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Y,g;c=B==null?void 0:(Y=B.context)==null?void 0:(g=Y.user)==null?void 0:g.onBehalfOfUser;if(c!==void 0){B.obfuscatedSelectedGaiaId=c;var k,n;B==null||(k=B.context)==null||(n=k.user)==null||delete n.onBehalfOfUser}var b,d;if(Y=B==null?void 0:(b=B.context)==null?void 0:(d=b.user)==null?
void 0:d.serializedDelegationContext)B.selectedSerializedDelegationContext=Y};var wE=function(){};
_.w(wE,kg);wE.prototype.getApiPaths=function(){return VqI};
wE.prototype.getExtension=function(B){return _.t(B,CUF)};
wE.prototype.JSC$11057_buildRequest=function(B,c){c.profileOwnerExternalChannelId&&(B.profileOwnerExternalChannelId=c.profileOwnerExternalChannelId);c.profileCardContext&&(B.profileCardContext=c.profileCardContext)};var N0=function(){};
_.w(N0,kg);N0.prototype.getApiPaths=function(){return GQ5};
N0.prototype.getExtension=function(B){return _.t(B,Ucn)};
N0.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var Io=function(){};
_.w(Io,kg);Io.prototype.getApiPaths=function(){return Dm0};
Io.prototype.getExtension=function(B){return _.t(B,_.l0d)};
Io.prototype.JSC$11057_buildRequest=function(B,c){if(c=c.createBroadcastRequest)B.useMasks=c.useMasks,B.broadcastType=c.broadcastType,B.broadcastSource=c.broadcastSource,B.broadcastMetadata=c.broadcastMetadata,B.broadcastMetadataMask=c.broadcastMetadataMask,B.videoMetadata=c.videoMetadata,B.videoMetadataMask=c.videoMetadataMask,B.liveChatSettingsUpdate=c.liveChatSettingsUpdate,B.liveChatSettingsUpdateMask=c.liveChatSettingsUpdateMask,B.cloneVideoId=c.cloneVideoId,B.cloneWithOverrides=c.cloneWithOverrides,
B.targetEntity=c.targetEntity,B.scheduledRedirectMetadata=c.scheduledRedirectMetadata};var Jh=function(){};
_.w(Jh,kg);Jh.prototype.getApiPaths=function(){return Bk3};
Jh.prototype.getExtension=function(B){return _.t(B,JB4)};
Jh.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.params&&(B.params=c.params);x.questionText&&(B.questionText=x.questionText);x.optionText&&x.optionText.length>0&&(B.optionText=x.optionText)};var Wx=function(){};
_.w(Wx,kg);Wx.prototype.getApiPaths=function(){return P3S};
Wx.prototype.getExtension=function(B){return _.t(B,Na5)};
Wx.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var l2=function(){};
_.w(l2,kg);l2.prototype.getApiPaths=function(){return j$t};
l2.prototype.getExtension=function(B){return _.t(B,Tat)};
l2.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var E$=function(){};
_.w(E$,kg);E$.prototype.getApiPaths=function(){return d4d};
E$.prototype.getExtension=function(B){return _.t(B,VQy)};
E$.prototype.JSC$11057_buildRequest=function(B,c,x){c.params&&(B.params=c.params);c.continuation&&(B.continuation=c.continuation);x.currentPlayerState&&x.currentPlayerState.playerOffsetMs&&(B.currentPlayerState={playerOffsetMs:x.currentPlayerState.playerOffsetMs.toString()})};var O$=function(){};
_.w(O$,kg);O$.prototype.getApiPaths=function(){return qQW};
O$.prototype.getExtension=function(B){return _.t(B,mfm)};
O$.prototype.JSC$11057_buildRequest=function(B,c,x){c.params&&(B.params=c.params);x.continuation&&(B.continuation=x.continuation);"hidden"in x&&(B.webClientInfo={isDocumentHidden:x.hidden});x.isInvalidationTimeoutRequest&&(B.isInvalidationTimeoutRequest=x.isInvalidationTimeoutRequest);x.invalidationPayload&&(c=hc5(_.kF(eI(x.invalidationPayload))),B.invalidationPayloadLastPublishAtUsec=Ql(c,2));x.reloadActionPanel&&(B.reloadActionPanel=x.reloadActionPanel);x.fullReload&&(B.fullReload=x.fullReload);
x.currentPlayerState&&(B.currentPlayerState=x.currentPlayerState)};var oo=function(){};
_.w(oo,kg);oo.prototype.getApiPaths=function(){return Q$F};
oo.prototype.getExtension=function(B){return _.t(B,Iu0)};
oo.prototype.JSC$11057_buildRequest=function(B,c){B.params=c.params};var Q$=function(){};
_.w(Q$,kg);Q$.prototype.getApiPaths=function(){return U4t};
Q$.prototype.getExtension=function(B){return _.t(B,OmF)};
Q$.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var Fi=function(){};
_.w(Fi,kg);Fi.prototype.getApiPaths=function(){return C39};
Fi.prototype.getExtension=function(B){return _.t(B,obt)};
Fi.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var vx=function(){};
_.w(vx,kg);vx.prototype.getApiPaths=function(){return F8Z};
vx.prototype.getExtension=function(B){return _.t(B,Wsm)};
vx.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var zm=function(){};
_.w(zm,kg);zm.prototype.getApiPaths=function(){return zRF};
zm.prototype.getExtension=function(B){return _.t(B,luS)};
zm.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var SK=function(){};
_.w(SK,kg);SK.prototype.getApiPaths=function(){return iyQ};
SK.prototype.getExtension=function(B){return _.t(B,CYn)};
SK.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var y$=function(){};
_.w(y$,kg);y$.prototype.getApiPaths=function(){return BGI};
y$.prototype.getExtension=function(B){return _.t(B,_.EcI)};
y$.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.params&&(B.params=c.params);x.client_message_id&&(B.clientMessageId=x.client_message_id);x.recaptcha_token&&(B.recaptchaToken=x.recaptcha_token);x.rich_message&&x.rich_message.text_segments?(c=x.rich_message.text_segments.map(function(P){var Y={};P.text&&(Y.text=P.text);P.emoji_id&&(Y.emojiId=P.emoji_id);return Y}),B.richMessage={textSegments:c}):x.message&&(B.message=x.message);
x.currentPlayerState&&(B.currentPlayerState=x.currentPlayerState)};var Gm=function(){};
_.w(Gm,kg);Gm.prototype.getApiPaths=function(){return c6y};
Gm.prototype.getExtension=function(B){return _.t(B,ORZ)};
Gm.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var M0=function(){};
_.w(M0,kg);M0.prototype.getApiPaths=function(){return aPn};
M0.prototype.getExtension=function(B){return _.t(B,QZd)};
M0.prototype.JSC$11057_buildRequest=function(B,c,x){c.isUserInitiated&&(B.isUserInitiated=c.isUserInitiated);c.initiationSource&&(B.initiationSource=c.initiationSource);x.locationInfo&&(B.context.client.locationInfo=x.locationInfo)};var LP=function(){};
_.w(LP,kg);LP.prototype.getApiPaths=function(){return vg3};
LP.prototype.getExtension=function(B){return _.t(B,Ef3)};
LP.prototype.JSC$11057_buildRequest=function(B,c,x){c.metadataUpdateRequest&&(c=c.metadataUpdateRequest,B.encryptedVideoId=c.encryptedVideoId,c.liveChat&&(c=c.liveChat,B.liveChat||(B.liveChat={}),c.performAsExternalChannelId&&(B.liveChat.performAsExternalChannelId=c.performAsExternalChannelId),c.source&&(B.liveChat.source=c.source)));var P;if(x==null?0:(P=x.liveChat)==null?0:P.liveChatSettings)B.liveChat||(B.liveChat={}),x=x.liveChat.liveChatSettings,B.liveChat.newLiveChatSettings=x,B.liveChat.newLiveChatSettingsMask||
(B.liveChat.newLiveChatSettingsMask={}),x.emojiReactionSet&&(B.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ZI=function(){};
_.w(ZI,kg);ZI.prototype.getApiPaths=function(){return KWZ};
ZI.prototype.getExtension=function(B){return _.t(B,_.Hdt)};
ZI.prototype.JSC$11057_buildRequest=function(B,c,x){x.continuation?B.continuation=x.continuation:c.videoId&&(B.videoId=c.videoId);x.clientParams&&(B.clientParams=x.clientParams)};var Hx=function(){};
_.w(Hx,kg);Hx.prototype.getApiPaths=function(){return hRW};
Hx.prototype.getExtension=function(B){return _.t(B,_.oA)};
Hx.prototype.JSC$11057_buildRequest=function(B,c){B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";B.fetchCommentsParams={};c.videoId&&(B.fetchCommentsParams.encryptedVideoId=c.videoId);c.postId&&(B.fetchCommentsParams.postId=c.postId);c.externalChannelId&&(B.fetchCommentsParams.externalChannelId=c.externalChannelId);c.linkedCommentId&&(B.fetchCommentsParams.linkedCommentId=c.linkedCommentId);(0,_.wW.isEmpty)(B.fetchCommentsParams)&&delete B.fetchCommentsParams};var fP=function(){};
_.w(fP,kg);fP.prototype.getApiPaths=function(){return xl};
fP.prototype.JSC$11057_buildRequest=function(B){B.browseId="FEnotifications_inbox"};
fP.prototype.getExtension=function(B){return _.t(B,_.KW)};var i2=function(){};
_.w(i2,kg);i2.prototype.getApiPaths=function(){return hRW};
i2.prototype.JSC$11057_buildRequest=function(B,c){c.signal==="GET_NOTIFICATIONS_MENU"&&(B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");c.ctoken&&(B.ctoken=c.ctoken)};
var Xm4=function(){};
_.w(Xm4,i2);Xm4.prototype.getExtension=function(B){return _.t(B,_.KW)};
var $$F=function(){};
_.w($$F,i2);$$F.prototype.getExtension=function(B){return _.t(B,b9F)};var Ah=function(){};
_.w(Ah,kg);Ah.prototype.getApiPaths=function(){return I5F};
Ah.prototype.getExtension=function(B){return _.t(B,_.KW)};
Ah.prototype.JSC$11057_buildRequest=function(){};var u2=function(){};
_.w(u2,kg);u2.prototype.getApiPaths=function(){return SQI};
u2.prototype.getExtension=function(B){return _.t(B,y4F)||void 0};
u2.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params);c.secondaryParams&&(B.secondaryParams=c.secondaryParams)};var DI=function(){};
_.w(DI,kg);DI.prototype.getApiPaths=function(){return y25};
DI.prototype.getExtension=function(B){return _.t(B,dc4)};
DI.prototype.JSC$11057_buildRequest=function(B,c){c.undo&&(B.undo=c.undo);c.serializedOptOut&&(B.serializedOptOut=c.serializedOptOut);c.serializedRecordInteractionsRequest&&(B.serializedRecordInteractionsRequest=c.serializedRecordInteractionsRequest)};var rE=function(){};
_.w(rE,kg);rE.prototype.getApiPaths=function(){return L8F};
rE.prototype.getExtension=function(B){return _.t(B,qhm)};
rE.prototype.JSC$11057_buildRequest=function(B,c){c.serializedInteractionsRequest&&(B.serializedRecordNotificationInteractionsRequest=c.serializedInteractionsRequest)};var Ro=function(){};
_.w(Ro,kg);Ro.prototype.getApiPaths=function(){return do7};
Ro.prototype.getExtension=function(B){return _.t(B,dUC)};
Ro.prototype.JSC$11057_buildRequest=function(B,c,x){c=c===void 0?{}:c;x=x===void 0?{}:x;c.videoId?B.videoId=c.videoId:c.playlistId&&(B.playlistId=c.playlistId);var P,Y=(P=c.offlineWebClientEligibility)!=null?P:x.offlineWebClientEligibility;Y&&(B.offlineWebClientEligibility=Y);var g;if(P=(g=c.preferredFormatType)!=null?g:x.preferredFormatType)B.preferredFormatType=P;var k;if(g=(k=c.lastOfflineQualitySettingsSavedMs)!=null?k:x.lastOfflineQualitySettingsSavedMs)B.lastOfflineQualitySettingsSavedMs=g;
c.params&&(B.params=c.params)};var eK=function(){};
_.w(eK,kg);eK.prototype.getApiPaths=function(){return rJ};
eK.prototype.getExtension=function(B){return _.t(B,_.zU)};
eK.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.token&&(B.continuation=c.token);x.formData&&(B.formData=x.formData)};var Bu=function(){};
_.w(Bu,kg);Bu.prototype.getApiPaths=function(){return rJ};
Bu.prototype.getExtension=function(B){return _.t(B,w_I)};
Bu.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;B.continuation=x.continuation};var cu=function(){};
_.w(cu,kg);cu.prototype.getApiPaths=function(){return rJ};
cu.prototype.getExtension=function(B){return _.t(B,_.QA)};
cu.prototype.JSC$11057_buildRequest=function(B,c){var x,P=c.panelIdentifier||((x=c.identifier)==null?void 0:x.tag);P&&(B.panelId=P);var Y;if((Y=c.globalConfiguration)==null?0:Y.params){var g;B.params=(g=c.globalConfiguration)==null?void 0:g.params}};
_.AJ.Object.defineProperties(cu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xp=function(){};
_.w(xp,kg);xp.prototype.getApiPaths=function(){return rJ};
xp.prototype.getExtension=function(B){return _.t(B,k39)};
xp.prototype.JSC$11057_buildRequest=function(B,c){c.panelLoadingStrategy&&bD7(B,c.panelLoadingStrategy)};var Pu=function(){};
_.w(Pu,kg);Pu.prototype.getApiPaths=function(){return rJ};
Pu.prototype.getExtension=function(B){return _.t(B,WEQ)};
Pu.prototype.JSC$11057_buildRequest=function(B,c){c.loadingStrategy&&bD7(B,c.loadingStrategy)};var Yp=function(){};
_.w(Yp,kg);Yp.prototype.getApiPaths=function(){return rJ};
Yp.prototype.getExtension=function(B){return _.t(B,_.d$)};
Yp.prototype.JSC$11057_buildRequest=function(B,c){c.panelLoadingStrategy&&bD7(B,c.panelLoadingStrategy)};var ab=function(){};
_.w(ab,kg);ab.prototype.getApiPaths=function(){return rJ};
ab.prototype.getExtension=function(B){return _.t(B,lW4)};
ab.prototype.JSC$11057_buildRequest=function(B,c){var x,P=(x=c.contentSourcePanelIdentifier)==null?void 0:x.tag;P&&(B.panelId=P);var Y;if((Y=c.globalConfiguration)==null?0:Y.params){var g;B.params=(g=c.globalConfiguration)==null?void 0:g.params}};var gz=function(){};
_.w(gz,kg);gz.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
gz.prototype.getExtension=function(B){return _.t(B,EbF)};
gz.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var s6=function(){};
_.w(s6,kg);s6.prototype.getApiPaths=function(){return bQQ};
s6.prototype.getExtension=function(B){return _.t(B,QXm)};
s6.prototype.JSC$11057_buildRequest=function(B,c){c.externalChannelId&&(B.externalChannelId=c.externalChannelId);c.superChatAction&&(B.superChatAction=c.superChatAction);c.superStickersAction&&(B.superStickersAction=c.superStickersAction)};var pu=function(){};
_.w(pu,kg);pu.prototype.getApiPaths=function(){return $4Q};
pu.prototype.getExtension=function(B){return _.t(B,tEt)||_.t(B,C_A)};
pu.prototype.JSC$11057_buildRequest=function(B,c){c.videoIds?B.videoIds=c.videoIds:c.videoId&&(B.videoIds=[c.videoId]);c.playlistId&&(B.playlistId=c.playlistId);c.params&&(B.params=c.params);B.excludeWatchLater=!1};var kp=function(){};
_.w(kp,kg);kp.prototype.getApiPaths=function(){return c2Z};
kp.prototype.getExtension=function(B){return _.t(B,_.G3)};
kp.prototype.JSC$11057_buildRequest=function(B,c,x){x.create_playlist_title?B.title=x.create_playlist_title:c.title&&(B.title=c.title);if(x.create_playlist_privacy_status&&typeof x.create_playlist_privacy_status==="number"){a:{var P=x.create_playlist_privacy_status;if(P!==0){if(P===1){P="PUBLIC";break a}if(P===2){P="UNLISTED";break a}}P="PRIVATE"}B.privacyStatus=P}else c.privacyStatus&&(B.privacyStatus=c.privacyStatus);x.create_playlist_description&&(B.description=x.create_playlist_description);c.videoIds&&
(B.videoIds=c.videoIds);c.params&&(B.params=c.params);c.sourcePlaylistId&&(B.sourcePlaylistId=c.sourcePlaylistId)};var Xv=function(){};
_.w(Xv,kg);Xv.prototype.getApiPaths=function(){return YQW};
Xv.prototype.getExtension=function(B){return _.t(B,z7Z)};
Xv.prototype.JSC$11057_buildRequest=function(B,c){B.playlistId=c.playlistId};var $p=function(){};
_.w($p,kg);$p.prototype.getApiPaths=function(){return m4y};
$p.prototype.getExtension=function(B){return _.t(B,$ct)};
$p.prototype.JSC$11057_buildRequest=function(B,c){c.playlistId&&(B.playlistId=c.playlistId);c.params&&(B.params=c.params)};var nu=function(){};
_.w(nu,kg);nu.prototype.getApiPaths=function(){return MqI};
nu.prototype.getExtension=function(B){return _.t(B,_.QR)||void 0};
nu.prototype.JSC$11057_buildRequest=function(B,c){c.actions&&(B.actions=c.actions);c.params&&(B.params=c.params);c.playlistId&&(B.playlistId=c.playlistId)};var b5=function(){};
_.w(b5,kg);_.a=b5.prototype;_.a.getApiPaths=function(){return Zym};
_.a.getExtension=function(B){return _.t(B,_.TF)};
_.a.JSC$11057_buildRequest=function(B,c){c.videoId&&(B.playerRequest={videoId:c.videoId},c.playerParams&&(B.playerRequest.params=c.playerParams),c.racyCheckOk&&(B.playerRequest.racyCheckOk=!!c.racyCheckOk),c.contentCheckOk&&(B.playerRequest.contentCheckOk=!!c.contentCheckOk));c.params&&(B.params=c.params);c.inputType&&(B.inputType=c.inputType);B.disablePlayerResponse=!0};
_.a.getRequestConfig=function(B){var c;(B=this.JSC$11064_getStoreKey(B))&&(c={storeStrategy:{storeKey:B}});_.T("web_log_reels_ticks")&&(c=c||{},c.requestTick="r_wrs",c.responseTick="r_wrr");return c};
_.a.JSC$11064_getStoreKey=function(B){B=this.getExtension(B);if(_.T("shorts_controller_retrieve_seedless_sequence_v2")){if((B==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Hf("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.T("web_prefetch_riw_for_next_video")||_.T("web_shorts_prefetch_service_enabled"))&&B!=null&&B.videoId){var c={videoId:B.videoId};B.params&&(c.params=B.params);return _.Hf("reel_item_watch",c)}};var Ku=function(){};
_.w(Ku,kg);_.a=Ku.prototype;_.a.getApiPaths=function(){return HyZ};
_.a.getExtension=function(B){return _.t(B,_.TF)};
_.a.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;B.sequenceParams=c.sequenceParams;var P;((P=x)==null?0:P.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(B.playbackContext={contentPlaybackContext:x.contentPlaybackContext})};
_.a.JSC$11064_getStoreKey=function(B){if(_.T("shorts_controller_retrieve_seedless_sequence_v2")&&(B=this.getExtension(B),B==null?0:B.sequenceParams))return _.Hf("reel_watch_sequence",{sequenceParams:B.sequenceParams})};
_.a.getRequestConfig=function(B){B=this.JSC$11064_getStoreKey(B);var c;B&&(c={storeStrategy:{storeKey:B}});_.T("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};
var jv=function(){};
_.w(jv,kg);jv.prototype.getApiPaths=function(){return HyZ};
jv.prototype.getExtension=function(B){return _.t(B,_.zU)};
jv.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.token&&(B.continuation=c.token);var P;((P=x)==null?0:P.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(B.playbackContext={contentPlaybackContext:x.contentPlaybackContext})};
jv.prototype.getRequestConfig=function(B){B=this.JSC$11064_getStoreKey(B);var c;B&&(c={storeStrategy:{storeKey:B}});_.T("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};var U6=function(){};
_.w(U6,kg);U6.prototype.getApiPaths=function(){return plQ};
U6.prototype.getExtension=function(B){return _.t(B,_.yen)};
U6.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.flagAction&&(B.action=c.flagAction);c.flagRequestType&&(B.flagRequestType=c.flagRequestType);c.additionalDetailCheckboxChecked&&(B.additionalDetailCheckboxChecked=c.additionalDetailCheckboxChecked);c.legalCheckboxChecked&&(B.legalCheckboxChecked=c.legalCheckboxChecked);c={};x.flag_issue_type!==void 0&&(c.issue=x.flag_issue_type);x.flag_affiliation!==void 0&&(c.affiliation=x.flag_affiliation);x.flag_full_name&&(c.fullName=x.flag_full_name);
Object.keys(c).length&&(B.legalReportDetails=c);if(x.flag_description||x.text)B.userComments=x.flag_description||x.text;c={};x.minutes!==void 0&&x.seconds!==void 0&&(c.minutes=x.minutes,c.seconds=x.seconds);x.vss_id&&(c.vssId=x.vss_id);Object.keys(c).length&&(B.videoReportDetails=c);c={};x.video_ids&&(c.videoIds=x.video_ids);x.impersonated_channel_url&&(c.impersonatedChannelUrl=x.impersonated_channel_url);Object.keys(c).length&&(B.channelAbuseReportDetails=c)};
_.AJ.Object.defineProperties(U6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dz=function(){};
_.w(dz,kg);dz.prototype.getApiPaths=function(){return K83};
dz.prototype.getExtension=function(B){return _.t(B,ncW)};
dz.prototype.JSC$11057_buildRequest=function(B,c){c.blockedForKidsContent&&(B.blockedForKidsContent=c.blockedForKidsContent)};var qC=function(){};
_.w(qC,kg);qC.prototype.getApiPaths=function(){return A29};
qC.prototype.getExtension=function(B){return _.t(B,qad)};
qC.prototype.JSC$11057_buildRequest=function(B,c,x){B.params=c.params;x.impersonated_channel_url&&(B.impersonatedChannelUrl=x.impersonated_channel_url)};var Cu=function(){};
_.w(Cu,kg);Cu.prototype.getApiPaths=function(){return Oyy};
Cu.prototype.getExtension=function(B){return _.t(B,_.bR3)};
Cu.prototype.JSC$11057_buildRequest=function(B,c){c.items&&(B.items=c.items);c.kidGaiaId&&(B.kidGaiaId=c.kidGaiaId)};var hT=function(){};
_.w(hT,kg);hT.prototype.getApiPaths=function(){return ngd};
hT.prototype.getExtension=function(B){return _.t(B,_.T75)};
hT.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params);c.targetId&&(B.targetId=c.targetId)};var mN=function(){};
_.w(mN,kg);mN.prototype.getApiPaths=function(){return RR9};
mN.prototype.getExtension=function(B){return _.t(B,Kvt)};
mN.prototype.JSC$11057_buildRequest=function(B,c){c.externalVideoId&&(B.externalVideoId=c.externalVideoId);c.query&&(B.query=c.query);c.sourceTimelines&&(B.sourceTimelines=c.sourceTimelines)};var TN=function(){};
_.w(TN,kg);TN.prototype.getApiPaths=function(){return eRy};
TN.prototype.getExtension=function(B){return _.t(B,_.zU)||void 0};
TN.prototype.JSC$11057_buildRequest=function(B,c){c.token&&(B.continuation=c.token)};
_.nqI=function(){};
_.w(_.nqI,kg);_.a=_.nqI.prototype;_.a.getApiPaths=function(){return eRy};
_.a.getExtension=function(B){return _.t(B,_.Cr)||void 0};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11064_getStoreKey=function(B,c){c=c===void 0?{}:c;if(!c.disableCache&&(B=this.getExtension(B))&&B.query)return c={query:B.query},B.params&&(c.params=B.params),_.Hf("search",c)};
_.a.JSC$11057_buildRequest=function(B,c,x){c.query&&(B.query=c.query);c.params&&(B.params=c.params);if(!_.T("web_forward_suggest_stats_killswitch")){var P=_.t(c,YhQ);P&&(B.suggestStats=P)}var Y;!_.T("kevlar_searchbox_stats_killswitch")&&((Y=x.tempData)==null?0:Y.gs_l)&&!_.t(c,YhQ)&&(B.webSearchboxStatsUrl="/search?oq="+(x.tempData.oq||"")+"&gs_l="+x.tempData.gs_l);var g;if((g=x.tempData)==null?0:g.entityMid)c=B.suggestionSearchParams||{},c.entityMid=x.tempData.entityMid,B.suggestionSearchParams=c};
_.a.getRequestConfig=function(B,c){c=c===void 0?{}:c;B=this.JSC$11064_getStoreKey(B,c);var x;B&&(x={storeStrategy:{storeKey:B}});_.T("web_log_search_ticks_ks")||(x=x||{},x.requestTick="sr_s",x.responseTick="sr_r");return x};var Vm=function(){};
_.w(Vm,kg);Vm.prototype.getApiPaths=function(){return wlI};
Vm.prototype.getExtension=function(B){return _.t(B,Dky)};
Vm.prototype.JSC$11057_buildRequest=function(B,c){c.serializedGetSharingProviderDataParams&&(B.serializedGetSharingProviderDataParams=c.serializedGetSharingProviderDataParams)};var tT=function(){};
_.w(tT,kg);tT.prototype.getApiPaths=function(){return Nkm};
tT.prototype.getExtension=function(B){return _.t(B,QfS)};
tT.prototype.JSC$11057_buildRequest=function(B,c){c.endpoint&&(B.endpoint=c.endpoint);c.action&&(B.action=c.action)};var wz=function(){};
_.w(wz,kg);wz.prototype.getApiPaths=function(){return a59};
wz.prototype.getExtension=function(B){return _.t(B,Sc4)};
wz.prototype.JSC$11057_buildRequest=function(B,c){B.videoId=c.videoId;c.scheduledRedirectMetadataSourceVideoId&&(B.scheduledRedirectMetadata={sourceVideoId:c.scheduledRedirectMetadataSourceVideoId})};var NC=function(){};
_.w(NC,kg);NC.prototype.getApiPaths=function(){return PDQ};
NC.prototype.getExtension=function(B){return _.t(B,_.E5Z)};
NC.prototype.JSC$11057_buildRequest=function(B,c){B.params=c.params;B.correctionText=c.correctionText};var Ib=function(){};
_.w(Ib,kg);Ib.prototype.getApiPaths=function(){return j_d};
Ib.prototype.getExtension=function(B){return _.t(B,_.jf3)};
Ib.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params);B.searchQuery=c.searchQuery;B.languageCode=c.languageCode;B.kind=c.kind;B.name=c.name;B.externalVideoId=c.externalVideoId};var JT=function(){};
_.w(JT,kg);JT.prototype.getApiPaths=function(){return q20};
JT.prototype.getExtension=function(B){return _.t(B,fYd)};
JT.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.params=c.params)};var Wu=function(B){this.JSC$16027_storeWithEntities=B};
_.w(Wu,kg);Wu.prototype.getApiPaths=function(){return AvW};
Wu.prototype.getExtension=function(B){return _.t(B,A3W)||_.t(B,DVQ)};
Wu.prototype.JSC$11057_buildRequest=function(B,c,x){x.client_data&&(B.clientData=x.client_data);if(c.commerceActionConfig){var P=c.commerceActionConfig;c=P.actionId;P=P.commerceActionParams;c&&(B.actionId=c);P&&(B.commerceActionParams=P)}else{var Y=c.actionId,g=c.commerceActionParams;x=c.entityKeys;Y&&(B.actionId=Y);g&&(B.commerceActionParams=g);var k;c=(P=this.JSC$16027_storeWithEntities)==null?void 0:(k=P.getState())==null?void 0:k.entities;if(x&&c){P=[];k=_.p(x);for(x=k.next();!x.done;x=k.next())if(Y=
x.value,x=_.gL(Y).entityType,Y=_.X9(c,x,Y))g={},P.push((g[x]=Y,g));B.entityMutationPayloads=P}}};
Wu.prototype.getRequestConfig=function(B){var c,x=(c=_.t(B,A3W))==null?void 0:c.requestSequenceType;if(x&&B.clickTrackingParams&&x!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:B.clickTrackingParams,sequenceType:x}}};
Wu[em]=[nC];var l5=function(){};
_.w(l5,kg);l5.prototype.getApiPaths=function(){return CD9};
l5.prototype.getExtension=function(B){return _.t(B,_.KjQ)};
l5.prototype.JSC$11057_buildRequest=function(B,c){c.feedbackData&&(B.feedbackData=c.feedbackData);c.params&&(B.itemParams=c.params)};
_.AJ.Object.defineProperties(l5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E6=function(){};
_.w(E6,kg);E6.prototype.getApiPaths=function(){return hV0};
E6.prototype.getExtension=function(B){return _.t(B,jkd)};
E6.prototype.JSC$11057_buildRequest=function(B,c,x){x.payments_payload&&(B.paymentsPayload=x.payments_payload);x.offer_params&&(B.offerParams=x.offer_params);c.transactionParams&&(B.transactionParams=c.transactionParams)};var O6=function(){};
_.w(O6,kg);O6.prototype.getApiPaths=function(){return m33};
O6.prototype.getExtension=function(B){return _.t(B,_.Umt)};
O6.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.buybucketParams&&(B.buybucketData={params:c.buybucketParams},c.stickerParams?B.buybucketData.stickerParams=c.stickerParams:(x.rich_chat_message?B.buybucketData.richChatMessage=x.rich_chat_message:x.chat_message_text&&(B.buybucketData.chatMessageText=x.chat_message_text),x.purchase_price_micros&&(B.buybucketData.purchasePriceMicros=x.purchase_price_micros.toString())));c.donationAmountMicros&&(B.tipAmountMicros=c.donationAmountMicros,
c.tipParams&&(B.tipParams=c.tipParams));c.offerParams&&(B.offerParams=c.offerParams);c.productData&&(B.productData=c.productData);c.transactionParams&&(B.transactionParams=c.transactionParams)};var ob=function(){};
_.w(ob,kg);ob.prototype.getApiPaths=function(){return TGd};
ob.prototype.getExtension=function(B){return _.t(B,CdW)};
ob.prototype.JSC$11057_buildRequest=function(B,c){c.updateFopParams&&(B.updateFopParams=c.updateFopParams)};var Qm=function(){};
_.w(Qm,kg);Qm.prototype.getApiPaths=function(){return Vp0};
Qm.prototype.getExtension=function(B){return _.t(B,_.av)};
Qm.prototype.JSC$11057_buildRequest=function(B,c){c.couponCode&&(B.couponCode=c.couponCode);c.params&&(B.itemParams=c.params)};var Fv=function(){};
_.w(Fv,kg);Fv.prototype.getApiPaths=function(){return tp5};
Fv.prototype.getExtension=function(B){return _.t(B,_.um4)};
Fv.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;c.params&&(B.params=c.params);x.ctk&&(B.clientToken=x.ctk)};var vu=function(B){this.JSC$16062_storeWithEntities=B};
_.w(vu,kg);vu.prototype.getApiPaths=function(){return wVy};
vu.prototype.getExtension=function(B){return _.t(B,_.LV)};
vu.prototype.JSC$11057_buildRequest=function(B,c,x){x.purchase_price_micros&&(B.productData={pdgData:{purchasePriceMicros:x.purchase_price_micros.toString()}},x.rich_chat_message&&(B.productData.pdgData.richChatMessage=x.rich_chat_message),x.currency_code&&(B.productData.pdgData.currencyCode=x.currency_code));c.transactionParams&&(B.transactionParams=c.transactionParams);c.clientLocationContext&&(B.clientLocationContext=c.clientLocationContext);x.payments_payload&&(B.paymentsPayload=x.payments_payload);
x.funds_guarantee_callback_client_data&&(B.fundsGuaranteeCallbackClientData=x.funds_guarantee_callback_client_data);var P,Y;x=(P=this.JSC$16062_storeWithEntities)==null?void 0:(Y=P.getState())==null?void 0:Y.entities;if(c.entityKeys&&x){P=[];c=_.p(c.entityKeys);for(Y=c.next();!Y.done;Y=c.next()){var g=Y.value;Y=_.gL(g).entityType;if(g=_.X9(x,Y,g)){var k={};P.push((k[Y]=g,k))}}B.entityMutationPayloads=P}};
vu[em]=[nC];var zN=function(){};
_.w(zN,kg);zN.prototype.getApiPaths=function(){return NG3};
zN.prototype.getExtension=function(B){return _.t(B,dmd)};
zN.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;x.backend_analytics&&(B.serializedBackendAnalyticsEvent=x.backend_analytics);c.offerParams&&(B.offerParams=c.offerParams)};var Sv=function(){};
_.w(Sv,kg);Sv.prototype.getApiPaths=function(){return Vp0};
Sv.prototype.getExtension=function(B){return _.t(B,goO)};
Sv.prototype.JSC$11057_buildRequest=function(B,c){c.params&&(B.itemParams=c.params)};var ym=function(){};
_.w(ym,kg);ym.prototype.getApiPaths=function(){return IPF};
ym.prototype.getExtension=function(B){return _.t(B,_.cvd)};
ym.prototype.JSC$11057_buildRequest=function(B,c,x){x.resume_time_ms&&(B.resumeTimeMs=x.resume_time_ms);c.pauseParams&&(B.pauseParams=c.pauseParams)};var GN=function(){};
_.w(GN,kg);GN.prototype.getApiPaths=function(){return J69};
GN.prototype.getExtension=function(B){return _.t(B,_.qMI)};
GN.prototype.JSC$11057_buildRequest=function(B,c,x){x=x===void 0?{}:x;x.c&&(B.redeemCode=x.c);x.rd&&(B.riskData=x.rd);x.ctk&&(B.clientToken=x.ctk)};var MC=function(){};
_.w(MC,kg);MC.prototype.getApiPaths=function(){return WW9};
MC.prototype.getExtension=function(B){return _.t(B,_.xmF)};
MC.prototype.JSC$11057_buildRequest=function(B,c){c.resumeParams&&(B.resumeParams=c.resumeParams)};var Lu=function(B,c){this.clientName=B;this.defaultExpirationDelayMs=c};
Lu.prototype.put=function(B,c){var x=this,P;return _.X(function(Y){P=Object.assign({},c.data);P.key=B;P.clientName=x.clientName;P.expireTimestampMs===void 0&&(P.expireTimestampMs=(Math.round((0,_.BA)())+x.defaultExpirationDelayMs).toString());return Y.return(x.putInternal(B,P))})};
Lu[em]=[hA,NPF];var b15=function(){Lu.apply(this,arguments);this.JSC$16092_responseStore=new Map};
_.w(b15,Lu);_.a=b15.prototype;_.a.get=function(B){var c=this;return _.X(function(x){return x.return(pG(c,B))})};
_.a.putInternal=function(B,c){var x=this,P,Y,g;return _.X(function(k){P=x.defaultExpirationDelayMs;c.expireTimestampMs&&(P=Number(c.expireTimestampMs)-Math.round((0,_.BA)()),Y=_.Yu("mweb_override_response_store_expiration_ms"),Y>0&&Y<P&&(P=Y));g=setTimeout(function(){x.remove(B)},P);
x.JSC$16092_responseStore.set(B,{entryData:c,timer:g});_.Kq(k)})};
_.a.remove=function(B){var c=this;return _.X(function(x){KhF(c,B);_.Kq(x)})};
_.a.removeAll=function(){var B=this;return _.X(function(c){B.JSC$16092_responseStore.forEach(function(x){clearTimeout(x.timer)});
B.JSC$16092_responseStore.clear();_.Kq(c)})};
_.a.has=function(B){return!!this.JSC$16092_responseStore.get(B)};
_.a.getKeys=function(){return this.JSC$16092_responseStore.keys()};
var pG=function(B,c){if(B=B.JSC$16092_responseStore.get(c))return new _.sf(B.entryData)},KhF=function(B,c){var x=B.JSC$16092_responseStore.get(c);
x&&(clearTimeout(x.timer),B.JSC$16092_responseStore.delete(c))};var KCA;var drQ=function(B,c,x){Lu.call(this,B,c);this.token=x};
_.w(drQ,Lu);_.a=drQ.prototype;_.a.get=function(B){var c=this,x,P;return _.X(function(Y){return Y.nextAddress==1?_.K(Y,Url(c.token),2):Y.nextAddress!=3?(x=Y.yieldResult,_.K(Y,x.get("ResponseStore",[B,c.clientName]),3)):(P=Y.yieldResult)?Y.return(new _.sf(P)):Y.return(void 0)})};
_.a.putInternal=function(B,c){var x=this,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,Url(x.token),2);P=Y.yieldResult;return _.K(Y,P.put("ResponseStore",c),0)})};
_.a.remove=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,Url(c.token),2);x=P.yieldResult;return P.return(x.delete("ResponseStore",[B,c.clientName]))})};
_.a.removeAll=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,Url(B.token),2);c=x.yieldResult;return _.K(x,K1Z(c,IDBKeyRange.only(B.clientName)),0)})};
_.a.has=function(){throw Error("Wi");};_.Zd=new _.BL("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var j6t=function(B){var c;this.stateTagsData=(c=B.responseContext)==null?void 0:c.stateTags},U$Z=function(B){var c;
return((c=B.stateTagsData)==null?void 0:c.stateTagsModified)||[]};var d$m;d$m=function(B){this.JSC$16105_responseStore=B};
_.Hi=function(B,c,x){if(!_.T("state_tags_killswitch")){var P=new j6t(c);if(U$Z(P).length>0){var Y=B.JSC$16105_responseStore.getKeys();Y=_.p(Y);for(var g=Y.next();!g.done;g=Y.next()){g=g.value;var k=pG(B.JSC$16105_responseStore,g);if(k){var n=_.Xs(k);a:{var b=void 0;k=U$Z(P);n=((b=(new j6t(n)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.p(n);for(n=b.next();!n.done;n=b.next())if(n=n.value,n.stateTag!=null&&k.includes(n.stateTag)&&n.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){k=
!0;break a}k=!1}k&&KhF(B.JSC$16105_responseStore,g)}}}}var d;P=(d=c.responseContext)==null?void 0:d.maxAgeSeconds;_.T("web_prefetch_riw_for_next_video")&&!P&&c.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(P=3600);x&&P&&Number(P)>0&&(c=g$(c,P),B.JSC$16105_responseStore.put(x,new _.sf(c)))};
d$m.prototype.handleResponse=function(B,c){if(!c)throw Error("Xi");var x,P;c=(x=c.config)==null?void 0:(P=x.storeStrategy)==null?void 0:P.storeKey;_.Hi(this,B,c)};
d$m[em]=[_.gA];_.X9d=new _.BL("STORE_RESPONSE_PROCESSOR_TOKEN");var q1Z=function(B){this.JSC$16108_responseStore=B};
q1Z.prototype.handleResponse=function(B,c){if(c.input.match(_.Dj(HyZ))){var x;if(B==null?0:(x=B.entries)==null?0:x.length)for(B=_.p(B.entries),c=B.next();!c.done;c=B.next()){x=c.value.command;var P=void 0;c=(P=_.t(x,_.TF))==null?void 0:P.unserializedPrefetchData;if(!x||!c)break;P=(new b5).JSC$11064_getStoreKey(x);var Y=_.t(c,gv3),g=void 0,k=void 0,n=void 0,b=_.Yu("web_shorts_prefetch_service_ttl_seconds")>0?_.Yu("web_shorts_prefetch_service_ttl_seconds"):Number((n=(g=Y)==null?void 0:(k=g.responseContext)==
null?void 0:k.maxAgeSeconds)!=null?n:3600);P&&b>0&&(Y=g$(Y,b),this.JSC$16108_responseStore.put(P,new _.sf(Y)));x=(new UQ).JSC$11064_getStoreKey(x);c=_.t(c,Zmd);g=Y=P=void 0;k=_.Yu("web_shorts_prefetch_service_ttl_seconds")>0?_.Yu("web_shorts_prefetch_service_ttl_seconds"):Number((g=(P=c)==null?void 0:(Y=P.responseContext)==null?void 0:Y.maxAgeSeconds)!=null?g:3600);x&&k>0&&(c=g$(c,k),this.JSC$16108_responseStore.put(x,new _.sf(c)))}}};
q1Z[em]=[_.gA];var CfS=function(B){this.innertubeTransportService=B};
CfS[em]=[_.ou];var hnZ=new _.BL("SUBMIT_API_SERVICE_TOKEN");var Hu=function(){this.scheduler=_.EB()},m$m;
Hu.prototype.pause=function(){throw Error("Yi");};
Hu.prototype.resume=function(){throw Error("Yi");};
Hu.prototype.queue=function(B){var c=this,x=_.Hw(),P=_.Vp(this.scheduler,function(){try{var Y;if(_.bA.instance)var g=_.bA.instance;else{var k=new _.mc("Error: Unexpected uninitialized CommandHandler.");_.lb(k);g=void 0}(Y=g)==null||Y.resolveCommand(B.command);x.resolve()}catch(n){x.reject(n)}});
x.promise.thenCatch(function(Y){Y instanceof _.Aa&&c.scheduler.cancelJob(P)});
return x.promise};
Hu.prototype.queueAll=function(B){var c=new Map;B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,c.set(x.id,this.queue(x));return c};var V7m=function(B,c){var x=this;this.taskModel=B;this.onTaskCancelledCallback=c;this.resolver=_.Hw();B=B.proto.prefetchConfig;if(!B)throw Error("Zi");if(!B.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(P){P instanceof _.Aa&&(TwQ(x,x.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),x.onTaskCancelledCallback(x.taskModel.id,x.jobId),x.tick("pcc"));
throw P;});
this.timerName=this.taskModel.id;_.Ep(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},t7m=function(B){switch(B.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},TwQ=function(B,c){_.lg({prefetchInfo:{cancellationReason:c}},B.timerName)};
V7m.prototype.tick=function(B){_.Op(B,void 0,this.timerName)};var i5=function(){var B=this;this.scheduler=_.EB();this.maxInflightTasks=_.Yu("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Yu("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new z63;this.onTaskCancelled=function(c,x){x&&B.scheduler.cancelJob(x);wm9(B,c);fu(B,3)}},NwW=function(){i5.instance||(i5.instance=new i5);
return i5.instance};
i5.prototype.pause=function(){this.prefetchCoordinatorState=0};
i5.prototype.resume=function(){fu(this,0)};
i5.prototype.queue=function(B){B=IqW(this,B);fu(this,1);return B};
i5.prototype.queueAll=function(B){var c=new Map;B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,c.set(x.id,IqW(this,x));fu(this,1);return c};
var IqW=function(B,c){var x=B.allPrefetchTasks.get(c.id);if(x)return x.cancellablePromise;try{var P=new V7m(c,B.onTaskCancelled)}catch(g){return _.Im(g)}x=P;x.tick("pcq");var Y={prefetchInfo:{taskId:x.taskModel.id,isPrefetch:!0,fetchAction:x.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:x.taskModel.command.clickTrackingParams}};x.taskModel.csn&&(Y.clientScreenNonce=x.taskModel.csn);_.lg(Y,x.timerName);B.allPrefetchTasks.set(c.id,P);B.drainingHeap.insert(-t7m(P),P);return P.cancellablePromise},
fu=function(B,c){B.prefetchCoordinatorState===c&&(B.prefetchCoordinatorState=2,J1y(B))},J1y=function(B){for(var c={};B.prefetchCoordinatorState!==0;c={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(B.inflightPrefetchTasks.size>=B.maxInflightTasks){B.prefetchCoordinatorState=3;break}c.prefetchTask$jscomp$1=B.drainingHeap.remove();if(!c.prefetchTask$jscomp$1){B.prefetchCoordinatorState=1;break}c.taskId$jscomp$3=c.prefetchTask$jscomp$1.taskModel.id;if(B.allPrefetchTasks.has(c.taskId$jscomp$3)){var x=-1;B.coordinatorTimeoutMs>0&&(x=_.Vp(B.scheduler,function(P){return function(){AT(B,P.taskId$jscomp$3,Error("aj"))}}(c),B.coordinatorTimeoutMs));
B.inflightPrefetchTasks.set(c.taskId$jscomp$3,x);if(!B.JSC$16126_commandHandler){if(!_.bA.instance){AT(B,c.taskId$jscomp$3,Error("bj"));continue}B.JSC$16126_commandHandler=_.bA.instance}a:switch(c.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":x=1;break a;default:x=0}c.prefetchTask$jscomp$1.jobId=B.scheduler.addJob(function(P){return function(){P.prefetchTask$jscomp$1.tick("pcr");try{B.JSC$16126_commandHandler.resolveCommand(P.prefetchTask$jscomp$1.taskModel.command)||
AT(B,P.taskId$jscomp$3,Error("cj"))}catch(Y){AT(B,P.taskId$jscomp$3,Y)}}}(c),x,0)}}},Why=function(B,c){(c=wm9(B,c))!=null&&(c.resolver.resolve(),c.tick("pce"));
fu(B,3)},AT=function(B,c,x){(c=wm9(B,c,x))!=null&&(c.resolver.reject(x),c.tick("pcc"),TwQ(c,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Yu("prefetch_coordinator_error_logging_sampling_rate")&&(x=new _.mc("Prefetch Command failed.",c.taskModel.id,x.message),_.lb(x)));
fu(B,3)},wm9=function(B,c,x){var P=B.allPrefetchTasks.get(c);
P?((x=B.inflightPrefetchTasks.get(c))&&x!==-1&&B.scheduler.cancelJob(x),B.inflightPrefetchTasks.delete(c),B.allPrefetchTasks.delete(c)):_.Ob(new _.mc("Unexpected missing prefetch task when deleting task.",c,x==null?void 0:x.message));return P};var lq4=function(B,c,x,P,Y){this.id=B;this.triggerOn=c;this.cancelOn=x;this.command=P;this.proto=Y};
_.AJ.Object.defineProperties(lq4.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Eqd=function(){this.JSC$16131_prefetchCoordinator=NwW();m$m||(m$m=new Hu);this.defaultCoordinator=m$m},O1n;
Eqd.getInstance=function(){O1n||(O1n=new Eqd);return O1n};
Eqd.prototype.get=function(B){switch(B){case 0:return this.JSC$16131_prefetchCoordinator;default:return this.defaultCoordinator}};var u5=function(){this.coordinatorSupplier=Eqd.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},FhQ=function(B){var c=_.Wf()||void 0,x=Object.keys(oqS)[0];
if(x){var P=B.taskIdByTriggerId.get(x);if(P!=null){B.taskIdByTriggerId.delete(x);x=[];P=_.p(P);for(var Y=P.next();!Y.done;Y=P.next())if(Y=B.tasks.get(Y.value))c!=="UNDEFINED_CSN"&&(Y.csn=c),x.push(Y);x=hsl(x);c=[];x=_.p(x);for(P=x.next();!P.done;P=x.next()){Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;P=B.coordinatorSupplier.get(P).queueAll(Y);P=_.p(P);var g=P.next();for(Y={};!g.done;Y={taskId$jscomp$9:void 0},g=P.next()){var k=_.p(g.value);g=k.next().value;k=k.next().value;Y.taskId$jscomp$9=
g;g=k;c.push(Y.taskId$jscomp$9);B.queuedPromisesByTask.set(Y.taskId$jscomp$9,_.IZ(g,function(n){return function(){Q6m(B,n.taskId$jscomp$9)}}(Y)))}}}}else _.Ob(new _.mc("Unexpected malformed TriggerEvent."))};
u5.prototype.trigger=function(B,c){var x=this,P=this.tasks.get(B);if(!P||this.queuedPromisesByTask.has(B))return!1;vq4(this,B,P.triggerOn);c!=="UNDEFINED_CSN"&&(P.csn=c);c=this.coordinatorSupplier.get(P.taskType).queue(P);this.queuedPromisesByTask.set(B,_.IZ(c,function(){Q6m(x,B)}));
return!0};
u5.prototype.cancel=function(B){var c=this.queuedPromisesByTask.get(B);if(c)c.cancel();else return Q6m(this,B)};
var Q6m=function(B,c){B.queuedPromisesByTask.delete(c);var x=B.tasks.get(c);if(!x)return!1;B.tasks.delete(c);vq4(B,c,x.triggerOn);(x=CHO(x.cancelOn))&&(B=B.taskIdByCancelId.get(x))&&B.delete(c);return!0},vq4=function(B,c,x){(x=Object.keys(x)[0])&&(B=B.taskIdByTriggerId.get(x))&&B.delete(c)};var oqS={taskRegistered:{}},Dd=function(){u5.instance||(u5.instance=new u5);this.JSC$16140_taskManager=u5.instance};
_.w(Dd,GG);
Dd.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){x=_.t(B,sAS);if((P=x)==null||!P.tasks){var g=new _.mc("RegisterTasksCommand is missing tasks.");_.lb(g);return Y.return()}g=c.JSC$16140_taskManager;for(var k=_.p(x.tasks),n=k.next();!n.done;n=k.next())if(n=n.value,n=n.id&&n.triggerOn&&n.cancelOn&&n.command?new lq4(n.id,n.triggerOn,n.cancelOn,n.command,n):void 0,n){var b=Object.keys(n.triggerOn)[0];if(b){var d=CHO(n.cancelOn);d?(g.tasks.set(n.id,n),g.taskIdByTriggerId.has(b)||g.taskIdByTriggerId.set(b,
new Set),g.taskIdByTriggerId.get(b).add(n.id),g.taskIdByCancelId.has(d)||g.taskIdByCancelId.set(d,new Set),g.taskIdByCancelId.get(d).add(n.id)):_.Ob(new _.mc("Unexpected malformed cancelOn field."))}else _.Ob(new _.mc("Unexpected malformed triggerOn field."))}else _.Ob(new _.mc("Unexpected malformed Task proto."));FhQ(c.JSC$16140_taskManager);_.Kq(Y)})};var zn4={},S1I=(zn4.rendered={priority:0,callback:function(){var B={};B.numCpu=navigator.hardwareConcurrency;var c={};c.ramGb=_.xI.navigator.deviceMemory;var x={staticContext:{}};c.ramGb&&mrw(c.ramGb)&&(x.staticContext.memoryTotalKbytes=(c.ramGb*1048576).toString());B.numCpu&&mrw(B.numCpu)&&(x.staticContext.cpuCores=B.numCpu);if(_.T("web_enable_adaptive_appl_signal")){B={};c=_.FX("rses_dpj");var P=_.FX("rsef_dpj");c&&c>0&&P&&P>0&&(c=Math.ceil(P-c),c>0&&(B.loadLatency=c));B.loadLatency&&mrw(B.loadLatency)&&
(x.appL=B.loadLatency.toString())}_.JP("applicationStarted",x)}},zn4);var y1d=new _.BL("WINDOW_ON_ERROR"),GR0=new _.BL("ERROR_WEIGHT_MAPS"),M74=new _.BL("INIT_ERROR");var Lh4={},Z1W=(Lh4.initialized={priority:10,callback:function(B){B.injector.resolve(M74)()}},Lh4);var H10=function(){},fq3=function(){var B=_.Gu("meta_logger_impl");
B||(B=new H10,_.rr("meta_logger_impl",B));return B},i1n=function(){fq3().csiSubscriptionKey=p3Q("meta_logging_csi_event",function(B){var c=B.timerName;
if(B=B.timelineData){_.Ep(c,{startTime:B.startTime},c);B.infos&&_.lg(B.infos,c);for(var x=_.p(Object.keys(B.ticks)),P=x.next();!P.done;P=x.next())P=P.value,_.Op(P,B.ticks[P],c)}})};
H10.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&$ZQ(this.csiSubscriptionKey)};var A1S={},u74=(A1S.initialized={priority:10,callback:function(){i1n()}},A1S);var D$9=function(B,c){this.innertubeClientName=B;this.JSC$16156_prefCookie=c};
D$9.prototype.record=function(){if(_.T("web_li_record_binary_eval_tick")){var B=_.FX("rsef_dpj");var c=_.FX("rses_dpj");B=B!==void 0&&c!==void 0?Math.round(B-c):void 0;if(B!==void 0&&B>0){c=_.$g(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var x=this.poolSize;if(!(c.valuesSeen>=1E9)){if(c.valuesSample.length<x)c.valuesSample.push(B);else{var P=Math.floor(Math.random()*(c.valuesSeen+1));P<x&&(c.valuesSample[P]=B)}c.valuesSeen+=1}_.Xj(this.storagePrefix+"-"+this.innertubeClientName,
c,2592E3);B=c.valuesSample;c=Tgo(B);B=B.length<5?void 0:c<400?1:c<1700?2:3;B!==void 0&&(this.JSC$16156_prefCookie.set(this.cookiePrefix+this.innertubeClientName,B),this.JSC$16156_prefCookie.save())}}else _.ny(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16156_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16156_prefCookie.save()};
D$9[em]=[hA,Dw];var r19=function(){D$9.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.w(r19,D$9);var Rnn=new _.BL("PAGE_LOAD_TIME_TOKEN");var enn=function(B){this.signal=B;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;B.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Vp(_.EE,this.disableLoggingAndSendPayload,1E4)};
enn.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.EE.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),BC8(this))};
var BC8=function(B){var c=_.Jg();if(c){var x={webClientComponentsData:{components:Array.from(B.ids,function(P){return{id:P}})}};
B.ids.clear();_.q_().visualElementStateChanged(c,x)}};var cos=new _.BL("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var rz=function(B,c){this.JSC$16185_storeWithEntities=B;this.JSC$16185_commandHandler=c;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
rz.prototype.start=function(){this.JSC$16185_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
rz.prototype.observeDownloadingEntities=function(){var B=_.S5I(this.JSC$16185_storeWithEntities.getState().entities).map(function(P){return yU7(P)});
if(B.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var c={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:JQA()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.c3(_.Up("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16185_commandHandler.resolveCommand(c)}this.downloadingEntities=B}else if(this.downloadingEntities.length){var x=z3x(this.JSC$16185_storeWithEntities.getState().entities).map(function(P){return yU7(P)});
this.downloadingEntities.filter(function(P){return x.includes(P)}).length&&(B={openPopupAction:aLq()},this.JSC$16185_commandHandler.resolveCommand(B));
this.downloadingEntities=[]}};
rz[em]=[nC,_.xu];var xYB;_.Rb=function(B,c,x,P,Y,g,k,n){this.JSC$16188_playerApiPromise=B;this.JSC$16188_commandHandler=c;this.JSC$16188_screenManager=x;this.offlineWebClientEligibility=P;this.JSC$16188_prefStorage=Y;this.JSC$16188_actionRouter=g;this.entityTypeMap=k;this.JSC$16188_persistentStorePromiseAccessor=n;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
xYB=function(){var B=_.cp().resolve(_.Rb),c;_.X(function(x){if(x.nextAddress==1)return B.downloadFailureListenerBound?x.return():_.K(x,B.JSC$16188_playerApiPromise,2);c=x.yieldResult;c.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 Y=_.gL(P.entityKey).entityId;Y&&B.JSC$16188_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Y)}else if(_.T("kevlar_woffle")){Y=B.JSC$16188_commandHandler;var g=Y.resolveCommand;P=P.failureReason;var k=_.Up("TRANSFER_FAILED",void 0,"Download failed");P==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(k=_.Up("STORAGE_FULL",void 0,"Storage full"));g.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.c3(k),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
B.downloadFailureListenerBound=!0;_.Kq(x)})};
_.Rb.prototype.deleteVideo=function(B,c){var x=this,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return _.K(k,x.JSC$16188_playerApiPromise,2);P=k.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(Y=c)!=null?Y:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.K(k,P.queueOfflineAction(B,x.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.Rb.prototype.pauseVideoDownload=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.JSC$16188_playerApiPromise,2);x=P.yieldResult;x.pauseVideoDownload(B);_.Kq(P)})};
_.Rb.prototype.resumeVideoDownload=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.JSC$16188_playerApiPromise,2);x=P.yieldResult;return _.K(P,x.resumeVideoDownload(B),0)})};
_.Rb[em]=[_.Yx,_.xu,_.N3,cos,BZ,RA,oG3,b3];var PXF=new _.BL("DOWNLOAD_STATE_STORE_TOKEN");var YlF=function(B,c){this.JSC$16208_persistentStorePromiseAccessor=B;this.store=c;this.upliftCompletionResolver=new _.kH},s7l=function(){var B=_.cp().resolve(aAF),c;
_.X(function(x){switch(x.nextAddress){case 1:if(B.upliftImplPromise)return x.return(B.upliftImplPromise);_.kM(x,2);B.upliftImplPromise=gIz(B);return _.K(x,B.upliftImplPromise,4);case 4:B.upliftCompletionResolver.resolve();_.Gw(x,3);break;case 2:throw c=_.be(x),B.upliftCompletionResolver.reject(c),c;case 3:return x.return(B.upliftImplPromise)}})},gIz=function(B){var c,x,P;
return _.X(function(Y){switch(Y.nextAddress){case 1:return _.zu("LOGGED_IN")?_.K(Y,B.JSC$16208_persistentStorePromiseAccessor(),2):Y.return();case 2:c=Y.yieldResult;if(!c)return _.Op("vdeur"),Y.return();_.Op("vdeus");_.kM(Y,3);return _.K(Y,p$i(c),5);case 5:x=Y.yieldResult;B.store.dispatch(VEI(x));c.observe(function(g){tEX(B.store,g)});
_.Gw(Y,4);break;case 3:throw P=_.be(Y),_.Op("vdeur"),P;case 4:_.Op("vdeuc"),_.Kq(Y)}})},p$i=function(B){var c;
return _.X(function(x){if(x.nextAddress==1)return _.K(x,WCA(B),2);c=x.yieldResult;return x.return(c.reduce(function(P,Y){if(!Y.data||!Y.key||!Y.entityType)return P;P[Y.entityType]||(P[Y.entityType]={});P[Y.entityType][Y.key]=Y.data;return P},{}))})};
YlF[em]=[b3,_.GC];var aAF;aAF=new _.BL("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.ev=new _.BL("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var BS=function(B,c){this.JSC$16211_persistentStorePromiseAccessor=B;this.transportService=c};
BS.prototype.refresh=function(){var B=this,c,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.zu("LOGGED_IN")?_.K(g,B.JSC$16211_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(c=g.yieldResult)?_.K(g,$rQ(c),3):g.return();if((x=g.yieldResult)&&!(Number(x.data.refreshTimestampMs||0)<(0,_.BA)()))return g.return();P={browseId:"SPaccount_downloads"};Y=_.Dj(xl);_.Fa(B.transportService,P,Y).then(function(k){var n;if(c&&(k==null?void 0:(n=k.responseContext)==null?void 0:
n.maxAgeSeconds)!==0){var b;n=(k==null?void 0:(b=k.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.BA)())+n*1E3);c.put("service:downloads_settings:fallback",new _.sf({innertubeResponse:k,refreshTimestampMs:b}))}});
_.Kq(g)})};
BS[em]=[_.Zd,_.ou];var cS=function(B,c){this.JSC$16215_playerPromise=B;this.store=c;this.started=!1};
cS.prototype.start=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return B.started?x.return():_.K(x,B.JSC$16215_playerPromise,2);c=x.yieldResult;c.addEventListener("onOrchestrationBecameLeader",B.updateIsLeader.bind(B,!0));c.addEventListener("onOrchestrationLostLeader",B.updateIsLeader.bind(B,!1));if(c.isOrchestrationLeader)B.updateIsLeader(c.isOrchestrationLeader());else{var P=new _.mc("Function isOrchestrationLeader is undefined",{"player.isReady":c.isReady(),"player.playVideo":c.playVideo?
"defined":"undefined"});_.lb(P);B.updateIsLeader(!1)}B.started=!0;_.Kq(x)})};
cS.prototype.updateIsLeader=function(B){this.store.dispatch(_.YN({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:B}}))};
cS[em]=[_.Yx,_.GC];var k7l=function(B,c){this.networkStatusManager=B;this.JSC$16218_prefStoragePromise=c;this.redirectsToPreload=["https://youtube.com"]},X$z=function(){var B=_.cp().resolve(k7l),c,x,P,Y,g,k;
_.X(function(n){switch(n.nextAddress){case 1:return _.K(n,B.JSC$16218_prefStoragePromise,2);case 2:c=n.yieldResult;if(!(x=c)){n.jumpTo(3);break}return _.K(n,c.get("yt-redirect-prefetch-id"),4);case 4:x=n.yieldResult;case 3:if(x||!B.networkStatusManager.isNetworkAvailable())return n.return();P={cache:"reload",redirect:"manual"};Y=_.p(B.redirectsToPreload);g=Y.next();case 5:if(g.done){if(!c){n.jumpTo(0);break}return _.K(n,c.set("yt-redirect-prefetch-id",!0,86400),0)}k=g.value;_.kM(n,8);return _.K(n,
_.xI.fetch(k,P),10);case 10:_.Gw(n,6);break;case 8:_.be(n);case 6:g=Y.next(),n.jumpTo(5)}})};var x1=function(B){B?(this.container=B,this.containerWasInjected=!0):this.containerWasInjected=!1};
x1.prototype.openDialog=function(B,c,x){var P=this,Y;return _.X(function(g){(Y=P.container)==null||Y.openDialog(B,c,x);_.Kq(g)})};
x1.prototype.closeDialog=function(){var B=this,c;return _.X(function(x){(c=B.container)==null||c.closeDialog();_.Kq(x)})};
x1.prototype.isDialogOpen=function(){var B=this,c,x;return _.X(function(P){return P.return((x=(c=B.container)==null?void 0:c.isDialogOpen())!=null?x:!1)})};
x1[em]=[_.Bp(buW)];_.$Yr=new _.BL("POPUP_CONTROLLER_TOKEN");var nIi=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
nIi.prototype.registerPanel=function(B,c){if(B){this.panelMap.set(B,c);var x=this.pendingPanelResolvers.get(B);x&&(x.resolve(c),this.pendingPanelResolvers.delete(B))}};
nIi.prototype.getPanel=function(B){var c=this,x;return _.X(function(P){return(x=c.panelMap.get(B))?P.return(x):P.return(bxo(c,B))})};
var bxo=function(B,c){var x,P;return _.X(function(Y){if(x=B.pendingPanelResolvers.get(c))return Y.return(x.promise);P=new _.kH;B.pendingPanelResolvers.set(c,P);return Y.return(P.promise)})},Kql=function(B){nIi.call(this);
var c=this;this.popupController=B;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return c.panelMap.size}}};
_.w(Kql,nIi);_.a=Kql.prototype;_.a.getReloadContinuation=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.getPanel(B),2);x=P.yieldResult;return P.return(x.getReloadContinuation())})};
_.a.showPanel=function(B,c,x,P,Y,g,k){var n=this,b,d,q,C;return _.X(function(h){if(h.nextAddress==1){k&&n.updatePanelContinuationDatas.set(B,k);if((b=x)==null?0:(d=b.engagementPanelPopupPresentationConfig)==null?0:d.popupType){q=x.engagementPanelPopupPresentationConfig.popupType;Y===void 0&&(Y=document.body);var V=h.return,N=n.popupController,l=N.openPopup;a:switch(q){case "PANEL_POPUP_TYPE_DIALOG":var E="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":E="DROPDOWN";break a;default:throw Error("ej`"+
q);}return V.call(h,l.call(N,B,c,E,Y))}return _.K(h,n.getPanel(B),2)}C=h.yieldResult;(c||g)&&C.updatePanel(c,!1,P,g);C.showPanel(P);_.Kq(h)})};
_.a.hidePanel=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,c.getPanel(B),2);x=P.yieldResult;x.hidePanel();c.popupController.closePopup(B);_.Kq(P)})};
_.a.isVisible=function(B,c){var x=this,P;return _.X(function(Y){if(Y.nextAddress==1)return c&&!x.panelMap.has(B)?Y.return(!1):_.K(Y,x.getPanel(B),2);P=Y.yieldResult;return Y.return(P.isVisible())})};
_.a.updatePanel=function(B,c,x,P,Y,g){x=x===void 0?!1:x;var k=this,n;return _.X(function(b){if(b.nextAddress==1){if(!c&&!Y)return b.return();g&&k.updatePanelContinuationDatas.set(B,g);return _.K(b,k.getPanel(B),2)}n=b.yieldResult;n.updatePanel(c,x,P,Y);_.Kq(b)})};
_.a.registerPanelContent=function(B,c){B&&this.panelContentMap.set(B,c)};
_.a.getPanelContent=function(B){return this.panelContentMap.get(B)};
_.a.getUpdatePanelContinuationData=function(B){return this.updatePanelContinuationDatas.get(B)};
Kql[em]=[_.$Yr];var PS=function(B,c){this.innertubeTransportService=B;this.JSC$16234_screenManager=c},j7r=function(B){var c;
return!((c=B.panelLoadingStrategy)==null||!c.requestTemplate)};
PS.prototype.makeRequest=function(B){var c=this,x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:if(!j7r(c)){Y.jumpTo(2);break}_.kM(Y,3);return _.K(Y,_.Zn(c.innertubeTransportService,B),5);case 5:return x=Y.yieldResult,x?Y.return(x.content):(_.lb(Error("fj")),Y.return(void 0));case 3:P=_.be(Y),_.lb(P);case 2:return Y.return(void 0)}})};
PS.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
PS.prototype.execute=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C;return _.X(function(h){if(h.nextAddress==1){x=B;P=x.data;Y=x.fallbackVe;g=x.parentVe;k=x.createScreenConfig;n=x.renderFn;b=x.command;c.panelLoadingStrategy=P;var V,N,l=((V=c.panelLoadingStrategy)==null?0:V.screenVe)?(N=c.panelLoadingStrategy)==null?void 0:N.screenVe:Y;l&&_.kk(c.JSC$16234_screenManager,l,g,k);return(d=c.getContent())?_.K(h,n(d),2):h.jumpTo(2)}return h.nextAddress!=4?j7r(c)?_.K(h,c.makeRequest(b),4):h.return():(C=q=h.yieldResult)?
_.K(h,n(C),0):h.return()})};
PS[em]=[_.ou,_.N3];var Y1=function(){};
Y1.prototype.getContainer=function(){return _.cr()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Y1.prototype.openSheet=function(B,c){var x=this,P,Y,g,k,n,b;return _.X(function(d){switch(d.nextAddress){case 1:return P={stack:[],error:void 0,hasError:!1},_.kM(d,2,3),Y=RD,_.K(d,x.isSheetOpen(),5);case 5:g=d.yieldResult;AL7(P,mRC(Y));if(g){if(c&&x.currentTarget===c)return(k=x.getContainer())==null||k.closeSheet(),d.return();x.pendingData={data:B,target:Wiy(x,c)};return d.return()}B.viewModel&&(B={viewModel:B.viewModel});(n=x.getContainer())==null||n.openSheet(B,c);x.currentTarget=c;case 3:_.Xt(d);
uG7(P);_.nq(d,0);break;case 2:b=_.be(d),P.error=b,P.hasError=!0,d.jumpTo(3)}})};
Y1.prototype.closeSheet=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,(c=B.getContainer())==null?void 0:c.closeSheet(),2);if(x.nextAddress!=4)return B.currentTarget=void 0,B.pendingData?_.K(x,B.openSheet(B.pendingData.data,B.pendingData.target),4):x.jumpTo(0);B.pendingData=void 0;_.Kq(x)})};
Y1.prototype.isSheetOpen=function(){var B=this,c,x;return _.X(function(P){return P.return((x=(c=B.getContainer())==null?void 0:c.isSheetOpen())!=null?x:!1)})};
var Wiy=function(B,c){if(!_.T("web_parent_target_for_sheets"))return c;var x,P;return(P=(x=B.getContainer())==null?void 0:x.getParentTarget(c))!=null?P:c};var bU=window.documentPictureInPicture;var Mh7=_.r2(["dark"]),LCl=_.r2(["system-icons"]),ZDQ=_.r2(["typography"]),HDO=_.r2(["lang"]),fLQ=_.r2(["style"]),zsA=_.r2(["dir"]),Sjd=_.r2(["rounded-container"]),yDx=_.r2(["style"]),AD7=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ar=function(B){this.JSC$16246_clientRoot=B;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ar.prototype.openWindow=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return window.documentPictureInPicture&&_.lX()&&!c.currentPipWindow?_.K(Y,(x=bU?bU:null)==null?void 0:x.requestWindow(B),2):Y.return(!1);if(Y.nextAddress!=3){P=Y.yieldResult;if(!P)return Y.return(!1);P.addEventListener("pagehide",function(){UY6(c)});
P.addEventListener("resize",c.handlePipWindowResize);c.pipWindowResizeDelay=new _.rY(function(){c.currentPipWindow&&_.gj(c.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.nH(c.currentPipWindow.innerWidth,c.currentPipWindow.innerHeight)])},P);
iDq(P);Dr$(P);return _.K(Y,vZQ(P),3)}if(!oZO())return Y.return(!1);c.currentPipWindow=P;c.JSC$16246_eventForwarder=uu7(P,c.JSC$16246_clientRoot);c.pipWindowResizeDelay.start();return Y.return(!0)})};
ar.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var UY6=function(B){if(B.currentPipWindow){var c,x;(c=bU?bU:null)==null||(x=c.window)==null||x.close();B.currentPipWindow.removeEventListener("resize",B.handlePipWindowResize);var P;(P=B.pipWindowResizeDelay)==null||P.dispose();B.pipWindowResizeDelay=void 0;var Y;(Y=B.JSC$16246_eventForwarder)==null||Y.stop();B.JSC$16246_eventForwarder=void 0;c=_.p(B.onCloseCallbacks);for(x=c.next();!x.done;x=c.next())x=x.value,x();B.onCloseCallbacks=[];B.currentPipWindow=null}};
ar.prototype.getWindow=function(){return this.currentPipWindow};
var dYS=function(B,c){var x;(x=B.onCloseCallbacks)==null||x.push(c)};
ar.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.lX()};
_.AJ.Object.defineProperties(ar.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ar[em]=[oit];var ql6=new _.BL("PICTURE_IN_PICTURE_CONTROLLER");var rD$=function(B,c){this.lengthY=this.lengthX=0;this.lengthX=c.x-B.x;this.lengthY=c.y-B.y};var CX6=function(){},oj3=function(B,c){var x;
(x=B.headerElement)==null||x.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:c}))};var hQz=function(){};
hQz.prototype.openPopup=function(B,c,x,P){var Y=this,g;return _.X(function(k){if(!Y.container)return k.return();g={openPopupAction:{popup:c,popupType:x,uniqueId:B}};return k.return(Y.container.handleOpenPopupAction(g,P))})};
hQz.prototype.closePopup=function(B){this.container&&this.container.closePopup(B)};var mYF=function(){this.openTunnels=new Map},gix=function(B,c,x){if(Pu7(x)){var P=_.MH(x,"gclid");
x={handleEvent:function(n){c&&!c.closed&&typeof c.postMessage==="function"&&n&&n.origin&&n.source===c&&n.data&&n.data.action==="gcl_setup"&&c.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),n.origin)}};
for(var Y=_.p(B.openTunnels),g=Y.next();!g.done;g=Y.next()){var k=_.p(g.value);g=k.next().value;k=k.next().value;if(g.closed)try{window.removeEventListener("message",k),B.openTunnels.delete(g)}catch(n){_.lb(n)}}c&&B.openTunnels.size<15&&(B.openTunnels.set(c,x),window.addEventListener("message",x))}};var TCl=function(){this.clientParams=new Map},Fdy=function(B){for(var c=_.p(B.clientParams.keys()),x=c.next();!x.done;x=c.next())x=x.value,x.startsWith("yt-mini-app-share")&&B.clientParams.delete(x)};var VdA=function(B,c){_.tG.call(this);var x=this;this.shortsController=B;this.storeWithShorts=c;B=_.C0(this.storeWithShorts,_.Ibx,function(P){if(P){var Y,g=(Y=x.shortsController.getRoot())==null?void 0:Y.getPlayer(),k;(Y=(k=x.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer())&&(g==null||g.appendTo(Y))}else{var n;k=(n=x.shortsController.alternativePlayerContainerElement)==null?void 0:n.getPlayerContainer().querySelector("#player");Y=x.shortsController.activeIndex;
(n=(g=x.shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+Y+'"] #player-container'))&&(k==null||k.appendTo(n,void 0,!0))}});
this.addOnDisposeCallback(B)};
_.w(VdA,_.tG);var g3=function(B,c,x,P,Y){var g=this;this.storeWithShorts=B;this.ephemeralResponseStore=c;this.store=x;this.innertubeTransportService=P;this.innertubeTransportLoader=Y;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.FB(_.qs);this.isShortsPipActive=_.FB(_.C2);this.nextReelVe=_.JW(56921);this.prevReelVe=_.JW(56922);this.backButtonVe=_.JW(22156);this.TEST_ONLY={getActiveModules:function(){return g.activeModules}}},yf4,G8d,tdr;
g3.prototype.initOrDisposeActiveModules=function(B){B?this.activeModules.push(new VdA(this,this.storeWithShorts)):(_.ek(this.activeModules),this.activeModules.length=0)};
g3.prototype.getRoot=function(){return this.rootElement};
g3.prototype.setActiveIndex=function(B){this.activeIndex=B};
_.oR4=function(B,c){var x,P,Y,g,k,n,b;return _.X(function(d){switch(d.nextAddress){case 1:return x=new b5,(P=x.JSC$11064_getStoreKey(c))&&B.ephemeralResponseStore.has(P)?_.K(d,B.ephemeralResponseStore.get(P),7):_.K(d,tdr(B,c),4);case 4:Y=d.yieldResult;if(!P){d.jumpTo(3);break}g=g$(Y,3600);return _.K(d,B.ephemeralResponseStore.put(P,new _.sf(g)),3);case 7:Y=(k=d.yieldResult)==null?void 0:_.Xs(k);case 3:return((n=Y)==null?0:n.replacementEndpoint)&&(b=_.t(Y.replacementEndpoint,_.TF))&&Y.sequenceContinuation&&
(b.sequenceParams=Y.sequenceContinuation),d.return(Y)}})};
yf4=function(B,c){c=(new Ku).JSC$11064_getStoreKey(c);return!!c&&B.ephemeralResponseStore.has(c)};
G8d=function(B,c,x){var P,Y,g,k,n;_.X(function(b){if(b.nextAddress==1){P=new Ku;Y=P.JSC$11064_getStoreKey(c);if(!Y)return b.return();if(x.reelWatchSequenceResponse)return g=g$(x.reelWatchSequenceResponse,3600),B.ephemeralResponseStore.put(Y,new _.sf(g)),b.jumpTo(0);if(!B.ephemeralResponseStore.has(Y))return b.jumpTo(0);n=x;return _.K(b,B.ephemeralResponseStore.get(Y),4)}n.reelWatchSequenceResponse=(k=b.yieldResult)==null?void 0:_.Xs(k);_.Kq(b)})};
tdr=function(B,c){var x=x===void 0?{}:x;var P,Y,g;return _.X(function(k){switch(k.nextAddress){case 1:if(B.innertubeTransportService){P=B.innertubeTransportService;k.jumpTo(2);break}if(!B.innertubeTransportLoader){_.SI(Error("hj"));k.jumpTo(2);break}return _.K(k,B.innertubeTransportLoader(),4);case 4:P=k.yieldResult;case 2:return _.K(k,(Y=P)==null?void 0:_.Zn(Y,c,x),5);case 5:return g=k.yieldResult,k.return(g)}})};
_.AJ.Object.defineProperties(g3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
g3[em]=[tSF,_.gA,nC,_.Bp(_.ou),_.Bp(CSW)];_.w$B=new _.BL("STORAGE_MANAGER_TOKEN");var sRd=["touchmove","scroll"];var $Ex={onSpanEnd:function(B){if(B.parent==null){var c=B.name;_.Ep(c);XjX(B,c)}}};var NCA=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},IA6;
NCA.prototype.enqueue=function(B,c){c===1?this.currentPersistentToast=B:this.queue.push(B);this.openToast()};
NCA.prototype.openToast=function(){var B;(B=this.currentToast)!=null&&B.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.sO=new _.BL("TOAST_MANAGER_TOKEN");var Jo8=new _.BL("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.po=new _.BL("VIEW_TRANSITION_COORDINATOR_TOKEN");var Wqz=function(B){this.config=B;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;B=_.p(B.transitionConfigs);for(var c=B.next();!c.done;c=B.next())c=_.p(c.value).next().value,this.transitionTasksMap.set(c,[])};
Wqz.prototype.registerElement=function(B,c,x){x=x===void 0?!1:x;for(var P=_.p(Object.keys(c)),Y=P.next(),g={};!Y.done;g={viewTransitionName:void 0},Y=P.next()){Y=Y.value;g.viewTransitionName=c[Y];var k=this.elementTasksMap.get(B),n=void 0;if((n=k)==null?0:n.has(Y)){_.Eb(new _.mc("Element already registered for transition",B,Y));break}k=k||new Map;k.set(Y,{beforeTransition:function(b){return function(){B.style.viewTransitionName=b.viewTransitionName}}(g),
afterTransition:function(){B.style.viewTransitionName&&(B.style.viewTransitionName="")},
runOnce:x});this.elementTasksMap.set(B,k)}};
var HvA=function(B,c){var x=B.elementTasksMap.get(c);x&&(x.clear(),x.size===0&&B.elementTasksMap.delete(c))};
Wqz[em]=[Jo8];var lAA;_.EIF=_.rM(function(B){return _.U("basic-content-view-model",{class:_.Kw("ytBasicContentViewModelHost",_.A9(B.className))},_.U(_.m,{cond:function(){return B.data().headline},
then:function(c){return _.U("div",{class:"ytBasicContentViewModelHeadline"},_.U(_.RF,{text:c}))}}),_.U(_.mV,{each:function(){return B.data().paragraphs||[]},
keyBy:"INDEX"},function(c){return _.U("div",{class:"ytBasicContentViewModelParagraph"},_.U(_.m,{cond:function(){var x=c();return!!(x.header||x.customHeader||x.headline)},
then:function(){return _.U(lAA,{paragraph:c})}}),_.U(_.m,{cond:function(){return c().asset||c().text},
then:function(){return _.U("div",{class:"ytBasicContentViewModelParagraphContent"},_.U(_.m,{cond:function(){return c().asset},
then:function(x){return _.U("div",{class:"ytBasicContentViewModelParagraphAsset"},_.U(_.IF,{data:x},{contentPreviewImageViewModel:_.cz}))}}),_.U(_.m,{cond:function(){return c().text},
then:function(x){return _.U("div",{class:"ytBasicContentViewModelParagraphText"},_.U(_.RF,{text:x}))}}))}}))}))},"me");
lAA=_.rM(function(B){var c=B.paragraph;return _.U(_.at,null,_.U(_.m,{cond:function(){return c().headline},
then:function(x){return _.U(_.RF,{text:x,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.U(_.IF,{data:function(){return c().header||c().customHeader}},{sectionHeaderViewModel:function(x){return _.U(_.g1,{data:x.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var oIz=_.rM(function(B){var c=_.Ho("yt-expandable-metadata-header-view-model"),x=_.qe(function(P){if(!_.Mv(_.Gj(P),c.value,["A".toString(),"BUTTON".toString()])){var Y;(Y=B.expandedCallback)==null||Y.call(B,!1)}});
return _.U("yt-expandable-metadata-header-view-model",{el:c,class:"ytExpandableMetadataHeaderViewModelHost"},_.U(_.m,{cond:function(){return B.expanded()},
then:function(){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":x},_.U("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.U(_.m,{cond:function(){return B.data().expandedTitleImage},
then:function(P){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.U(_.D9,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.U(_.RF,{text:function(){return B.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.U(_.RF,{text:function(){return B.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.U(_.RF,{text:function(){return B.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.U("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.U(_.IF,{data:function(){return B.data().infoButton}},{buttonViewModel:_.Q7}),_.U(_.IF,{data:function(){return B.data().collapseButton}},{buttonViewModel:function(P){return _.U(_.Q7,{data:P.data,
onClick:function(){var Y;(Y=B.expandedCallback)==null||Y.call(B,!1)}})}})))},
else:function(){return _.U(OxB,Object.assign({},B))}}))},"oe"),Q7z=_.rM(function(B){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.U(_.m,{cond:function(){return B.data().collapsedLabelImage},
then:function(c){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.U(_.D9,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c,alt:""}))}}),_.U(_.RF,{text:function(){return B.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),OxB=_.rM(function(B){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.qe(function(){var c;return void((c=B.expandedCallback)==null?void 0:c.call(B,!0))})},_.U("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.U(_.m,{cond:function(){return B.data().collapsedImage},
then:function(c){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.U(_.D9,{width:16,height:16,data:c,alt:""}))}}),_.U(_.m,{cond:function(){return B.data().showLeadingCollapsedLabel},
then:function(){return _.U(Q7z,Object.assign({},B))}}),_.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.U(_.RF,{text:function(){return B.data().collapsedTitle}}))),_.U("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.U(_.m,{cond:function(){return!B.data().showLeadingCollapsedLabel},
then:function(){return _.U(Q7z,Object.assign({},B))}}),_.U(_.IF,{data:function(){return B.data().infoButton}},{buttonViewModel:_.Q7}),_.U(_.IF,{data:function(){return B.data().expandButton}},{buttonViewModel:function(c){return _.U(_.Q7,{data:c.data,
onClick:function(){var x;(x=B.expandedCallback)==null||x.call(B,!0)}})}})))},"qe");_.FqS=_.rM(function(B){var c=_.p(_.mg(function(){return B.data().initiallyExpanded})),x=c.next().value,P=c.next().value,Y,g=(Y=_.cp().resolve(_.Bp(_.fL)))==null?void 0:Y(),k=function(){var n=B.data().colorData;
if(n)return g?n==null?void 0:n.darkColorPalette:n==null?void 0:n.lightColorPalette};
return _.U("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.TU({"background-color":function(){var n=k();return(n==null?0:n.section2Color)?_.SF(n.section2Color):""}})},_.U(_.IF,{data:function(){return B.data().header}},{expandableMetadataHeaderViewModel:function(n){return _.U(oIz,{data:n.data,
expanded:function(){return!!x()},
expandedCallback:function(b){P(b)}})}}),_.U(_.m,{cond:function(){return x()},
then:function(){return _.U("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.U(_.IF,{data:function(){return B.data().expandedContent}},{horizontalShelfViewModel:function(n){return _.U(_.Ez,{data:n.data,
includeMargin:!0,forceNarrowLayout:!0,palette:k})},
videoSummaryContentViewModel:function(n){return _.U(peZ,{data:n.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(n){return _.U(_.ap,{data:n.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(n){return _.U(_.EIF,{data:n.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.U(_.IF,{data:function(){return B.data().expandedBottomButtons}},{buttonViewModel:function(n){return _.U("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.U(_.Q7,{data:n.data}))}}))}}))},"re");var vIB=_.rM(function(B){var c=B.text;var x=B.marqueeSpacing;var P=B.scrollDelay;var Y=B.scrollDuration;var g=B.enableMarqueeScroll;B=B.large;var k=_.p(_.$D(!1,void 0,"kfNqfd")),n=k.next().value,b=k.next().value,d=_.p(_.$D(0,void 0,"bYgZbf"));k=d.next().value;var q=d.next().value,C=_.Ho("marquee-scroll");d=_.Ho("div");var h=_.Ho("span"),V=_.cp().resolve(_.AX);_.IO(function(){if(g()){var E=h.value.getBoundingClientRect().width,S=C.value.getBoundingClientRect().width;if(E>S){var M=(V==="ltr"?-1:1)*
(E+(x?x():16));Promise.resolve().then(function(){b(!0);q(M)})}}},"giRlme");
var N={},l={};return _.U("marquee-scroll",{class:_.Kw("ytMarqueeScrollHost",(N.ytMarqueeScrollHostLarge=B,N)),el:C},_.U("div",{id:"marquee-scroll-inner-container",class:_.Kw("ytMarqueeScrollInnerContainer",(l.ytMarqueeScrollAnimationEnabled=function(){return n()},l)),
el:d,style:_.TU({gap:x?(0,_.Ih)(x):"16px","animation-duration":Y?esW(Y):"16s","animation-delay":P?esW(P):"3s","--marquee-translate":(0,_.Ih)(k)})},_.U("span",{el:h,dir:"auto"},_.U(_.RF,{text:c,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.U(_.m,{cond:n,then:function(){return _.U("span",{"aria-hidden":"true",dir:"auto"},_.U(_.RF,{text:c,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.zQo=_.rM(function(B){var c=B.data;var x=B.overlayDensity;B=_.qe(function(){c().onTapCommand&&_.Gl(c().onTapCommand);return!1});
var P=_.ep$(),Y=function(){return(x==null?void 0:x())===1?22:16},g={};
return _.U("reel-sound-metadata-view-model",{class:_.Kw("ytReelSoundMetadataViewModelHost",(g.ytReelSoundMetadataViewModelHostLarge=function(){return(x==null?void 0:x())===1},g)),
"on:click":B,tabindex:0,role:"button","on:keydown":P},_.U("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.U(_.m,{cond:function(){return c().musicIcon},
then:function(k){return _.U(_.D9,{data:k,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Y})}}),_.U("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.U(vIB,{text:function(){return c().soundMetadata},
enableMarqueeScroll:function(){return!!c().enableMarqueeScroll},
large:function(){return(x==null?void 0:x())===1}}))))},"te");var SlS,yoA,k1,Zxr,fAA,Lqy,uOz,AoA;SlS=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];yoA=_.Yu("wil_icon_max_concurrent_fetches",Infinity);
k1=function(B,c,x){var P=this;this.iconSet=B;this.appDirection=c;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.xI.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.T("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.T("wil_icon_network_first");this.renderWhenIdle=_.T("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.T("wil_icon_load_immediately");this.isPurging=!1;B=function(){P.cacheStorageAvailable&&(P.cacheStorageAsync=_.xI.caches.open("yt-icons").then(function(g){return P.cacheStorageSync=g}).catch(function(){P.cacheStorageAvailable=!1}))};
x=(x==null?void 0:x())||{};x=_.p(Object.entries(x));for(c=x.next();!c.done;c=x.next()){var Y=_.p(c.value);c=Y.next().value;Y=Y.next().value;Y=jI(Y);G7i(Y);this.iconCache[c]=Y.cloneNode(!0)}this.isPurging=Mdr(this);this.isPurging instanceof Promise?this.isPurging.then(B):B()};
_.l7C=function(B,c){var x=B.resolveIcon(c);return x?B.renderingMode===1?Lqy(B,x,B.renderingMode):(c=B.iconCache[x.url])?(c=c.cloneNode(!0),Zxr(B,c),Lqy(B,x,B.renderingMode,c)):_.Hxl(B,x).then(function(P){var Y=P?0:1;Zxr(B,P);return Lqy(B,x,Y,P)}):(_.Eb(new _.mc("Icon not found",{iconShape:c})),function(){})};
Zxr=function(B,c){if(c){B.counter+=1;B="_yt"+B.counter;c=[c].concat(_.wq(c.getElementsByTagName("*")));c=_.p(c);for(var x=c.next();!x.done;x=c.next())if(x=x.value,x.tagName==="style"&&x.textContent)x.textContent=fAA(x.textContent,B,!0);else for(var P=_.p(x.attributes),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;Y.name==="id"&&(Y.value+=B);["mask","fill","clip-path"].includes(Y.name)&&(Y.value=fAA(Y.value,B));if(Y.name==="style"){var g=x.style;try{g.cssText=fAA(g.cssText,B,!0)}catch(q){var k=void 0,n=
void 0,b=void 0,d=void 0;XD({error:((k=q)==null?void 0:(b=(n=k).toString)==null?void 0:b.call(n))||"",el:x.outerHTML,style:!!g,cssText:(d=g)==null?void 0:d.cssText})}}Y.name==="xlink:href"&&(Y.value=Y.value.replace(/#(.*)/,"#$1"+B))}}};
fAA=function(B,c,x){var P=/url\(["']?#(.*?)["']?\)/;(x===void 0?0:x)&&(P=/url\(["']?#(.*?)["']?\)/g);return B.replace(P,"url(#$1"+c+")")};
Lqy=function(B,c,x,P){return function(Y,g){var k=Object.assign({},{iconColor:"currentcolor",iconWidth:c.size+"px",iconHeight:c.size+"px",iconDisplay:"block"},g);g=_.df("DIV");var n=k.iconColor,b=k.iconFilter;k="width: "+k.iconWidth+"; height: "+k.iconHeight+"; display: "+k.iconDisplay+";";b&&(k+=" filter: "+b+";");x===0&&(k+=" fill: "+n+";");x===1&&(b=c.url,k+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+n);c.allowMirroring&&
B.appDirection==="rtl"&&(k+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",k);x===0&&P&&g.appendChild(P);Y.appendChild(g)}};
_.Hxl=function(B,c){var x,P,Y;return _.X(function(g){x=function(k){return Wa(k)};
P=c.url;if(!ixl(P))throw Error("jj");Y=AoA(B,P);return g.return(Y.then(function(k){return k.clone().text()}).then(function(k){var n=x(k);
k=c.size;var b=_.df("DIV");_.L6(b,n);n=_.qH(b.firstElementChild!==void 0?b.firstElementChild:_.uOF(b.firstChild,!0));k=G7i(n,k);B.iconCache[P]=k.cloneNode(!0);delete B.responsePromises[P];return k}).catch(function(){}))})};
uOz=function(B){var c,x=(c=B.requestAninmationFrameResolver)==null?void 0:c.promise;x||(B.requestAninmationFrameResolver=new _.kH,x=B.requestAninmationFrameResolver.promise,_.xI.requestAnimationFrame(function(){var P;(P=B.requestAninmationFrameResolver)==null||P.resolve();B.requestAninmationFrameResolver=null}));
return x};
AoA=function(B,c){var x,P;return _.X(function(Y){if(Y.nextAddress==1)return B.waitForAnimationFrame?_.K(Y,uOz(B),2):Y.jumpTo(2);x=B.responsePromises[c];x||(P=function(){var g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:if(!B.cacheStorageAvailable){g=void 0;b.jumpTo(2);break}if(k=B.cacheStorageSync){b.jumpTo(3);break}return _.K(b,B.cacheStorageAsync,4);case 4:k=b.yieldResult;case 3:g=k;case 2:return n=g,B.isNetworkFirstStrategy?b.return(B.fetchAndUpdateCache(c,n).catch(B.getCacheStorageResponse.bind(B,
c,n))):b.return(B.getCacheStorageResponse(c,n).catch(B.fetchAndUpdateCache.bind(B,c,n)))}})},x=B.renderWhenIdle?new Promise(function(g,k){_.Vp(_.EE,function(){P().then(g).catch(k)},10)}):P(),B.responsePromises[c]=x);
return Y.return(x.catch(function(g){delete B.responsePromises[c];XD({error:(g==null?0:g.toString)?g.toString():"",url:c});throw g;}))})};
k1.prototype.fetchAndUpdateCache=function(B,c){var x=this;return _.X(function(P){return P.return(DYl(x,B).then(function(Y){rol(x,B,Y,c);return Y}))})};
var DYl=function(B,c){var x;return _.X(function(P){if(B.numFetches<yoA)return B.numFetches+=1,P.return(RQi(B,c).finally(function(){--B.numFetches;if(Object.keys(B.queuedResponseResolvers).length){var Y=Object.keys(B.queuedResponseResolvers)[0],g=B.queuedResponseResolvers[Y];delete B.queuedResponseResolvers[Y];g.resolve(DYl(B,Y))}}));
x=new _.kH;B.queuedResponseResolvers[c]=x;return P.return(x.promise)})},RQi=function(B,c,x){x=x===void 0?2:x;
var P;return _.X(function(Y){P={credentials:"same-origin",priority:"low"};return Y.return(_.xI.fetch(c,P).then(function(g){return g.ok?g:Promise.reject(Error("kj`"+g.status+"`"+g.statusText))}).catch(function(g){if(x>0)return RQi(B,c,x-1);
throw g;}))})},rol=function(B,c,x,P){_.X(function(Y){return P?Y.return(new Promise(function(g){_.Vp(_.EE,function(){var k,n;
return _.X(function(b){switch(b.nextAddress){case 1:if(!B.isNetworkFirstStrategy){k=void 0;b.jumpTo(2);break}return _.K(b,P.match(c).catch(function(){}),3);
case 3:k=b.yieldResult;case 2:if(n=k){b.jumpTo(4);break}return _.K(b,P.put(c,x.clone()).catch(function(d){XD({error:(d==null?0:d.toString)?d.toString():"",url:c})}),4);
case 4:g(),_.Kq(b)}})},50)})):Y.return()})};
k1.prototype.getCacheStorageResponse=function(B,c){return _.X(function(x){return c?x.return(c.match(B).then(function(P){return P&&P.ok?P:Promise.reject()})):x.return(Promise.reject())})};
var G7i=function(B,c){c===void 0||B.getAttribute("viewBox")||B.setAttribute("viewBox","0 0 "+c+" "+c);B.setAttribute("focusable","false");B.setAttribute("aria-hidden","true");try{B.style.pointerEvents="none",B.style.display="inherit",B.style.width="100%",B.style.height="100%"}catch(Y){var x;XD({error:((x=Y)==null?0:x.toString)?Y.toString():""});try{B.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var P;XD({error:((P=g)==null?0:P.toString)?g.toString():
""})}}return B},ixl=function(B){for(var c=_.p(SlS),x=c.next();!x.done;x=c.next())if(B.startsWith(x.value)&&B.endsWith(".svg"))return!0;
return!1};
k1.prototype.resolveIcon=function(B){return this.iconSet.resolveIcon(B)};
var XD=function(B){_.Ob(new _.mc("Error in IconManager",B))},Mdr=function(B){if(_.T("wil_icons_cache_purge_killswitch"))return!1;
try{var c=_.xI.localStorage}catch(g){return!1}if(!c||!B.cacheStorageAvailable)return!1;var x=function(g){try{var k;(k=c)==null||k.setItem("yt-icons-last-purged",g.toString())}catch(b){var n;XD({error:((n=b)==null?0:n.toString)?b.toString():""})}},P=Number(c.getItem("yt-icons-last-purged"));
if(!P)return P=new Date,P=P.setDate(P.getDate()-Math.floor(Math.random()*90+1)),x(P),!1;if(function(g,k){g=new Date(g);k=new Date(k);return k.getMonth()-g.getMonth()+12*(k.getFullYear()-g.getFullYear())}(P,Date.now())<3)return!1;
try{return _.xI.caches.delete("yt-icons").then(function(g){g&&x(Date.now());return g}).catch(function(){return!1}).finally(function(){B.isPurging=!1})}catch(g){var Y;
XD({error:((Y=g)==null?0:Y.toString)?g.toString():""});return!1}};
k1[em]=[sqZ,_.AX,_.Bp(XPn)];_.$1=function(B,c){this.iconManager=B;this.iconsToFetch=c};
_.$1[em]=[_.nL,_.Bp(kSW)];var eQr=function(){};var B9B=function(B,c,x){this.requestKey=B;this.nWl=c;this.bYu=x;this.lDx=function(){return new XMLHttpRequest};
this.vqr=void 0;this.iJS=[]};
B9B.prototype.getLatestChallengeResponse=function(){return this.bYu};
var Bq9=function(B,c,x){var P,Y,g,k;return _.X(function(n){if(n.nextAddress==1){_.Ep("attestation_challenge_fetch");_.Op("att_fs",void 0,"attestation_challenge_fetch");if(!B.vqr)throw new _.WB(9,"Missing fetcher");return _.K(n,B.vqr(c,x),2)}P=n.yieldResult;g=(Y=P)==null?void 0:Y.bgChallenge;if(!g)throw new _.WB(15,"Missing field");B.bYu=P;B.iJS.forEach(function(b){b(P)});
k=$ox(g);_.Op("att_fc",void 0,"attestation_challenge_fetch");rr$("attestation_challenge_fetch");return n.return(k)})},Vx5=function(B,c){var x,P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:x=new kw(100,3E5,.25,2),P=void 0;case 2:if(!(x.currBackoffCount_<10)){n.jumpTo(4);break}_.kM(n,5);if(!(x.currBackoffCount_>0)){n.jumpTo(7);break}return _.K(n,bId(x.getValue()),7);case 7:return _.K(n,cnz(B,c),9);case 9:return Y=n.yieldResult,n.return(Y);case 5:g=_.be(n);g instanceof _.WB?P=g:(k=g instanceof Error?g.message:"Unknown",P=new _.WB(9,k));XNn(x);n.jumpTo(2);break;case 4:if(P)throw P;throw new _.WB(9,"Unknown error");}})},cnz=function(B,
c){c=L7n(Z6W(new MTt,c),B.requestKey);
var x=new _.kH,P=B.lDx();P.open("POST",B.nWl);P.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");P.setRequestHeader("Content-Type","application/json+protobuf");P.onload=function(){if(_.IFl(P)){var Y=eD5(P.responseText);x.resolve(Y)}else x.reject(new _.WB(_.$w(_.s4(P)),P.statusText))};
P.onerror=function(){x.reject(new _.WB(_.$w(_.s4(P)),P.statusText))};
P.send(c.serialize());return x.promise};var Pto=function(B){this.networkStatusManager=B;this.isDownloaded=nZO===void 0?function(){return!1}:nZO;
this.isReady=!1;this.u66=xQF(this)},xQF=function(B){var c;
return _.X(function(x){if(x.nextAddress==1)return _.K(x,JGX(),2);if(x.nextAddress!=3)return c=x.yieldResult,_.K(x,nz5(c),3);B.ww=x.yieldResult;jR$(B.ww).then(function(){B.isReady=!0});
return x.return(B.ww)})},Y3y=function(B,c,x){B.ww?(B=B.ww.dQ({hY:x,
fVU:!0,teb:!0}),c.serviceIntegrityDimensions={poToken:B}):_.lb(Error("mj"))};
Pto.prototype.processContext=function(B){var c=this;if(!B.input.match(_.Dj(GCF)))return _.ia();var x=B.innerTubeRequest,P=x.videoId;return!P||this.isDownloaded(x)||this.networkStatusManager&&!this.ww&&!this.networkStatusManager.isNetworkAvailable()?_.ia():this.ww?this.isReady?(Y3y(this,x,P),_.ia()):new fV(jR$(this.ww).then(function(){Y3y(c,x,P)})):new fV(this.u66.then(function(Y){return _.X(function(g){if(g.nextAddress==1)return _.K(g,jR$(Y),2);
Y3y(c,x,P);_.Kq(g)})}))};var aSS=new _.BL("WEB_PO_CONTEXT_PROCESSOR");var gF8=function(B,c){var x=this;this.jpA=0;var P;this.mQj=(P=c==null?void 0:c.mQj)!=null?P:window;this.networkStatusManagerPromise=c==null?void 0:c.networkStatusManagerPromise;var Y;this.requestKey=(Y=c==null?void 0:c.requestKey)!=null?Y:_.aH("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.qtX=(g=c==null?void 0:c.qtX)!=null?g:function(b){return new vB(b)};
var k;P=(k=c==null?void 0:c.aPN)!=null?k:function(b,d,q){return new B9B(b,d,q)};
this.bgChallenge=$ox(B.bgChallenge);this.ttlSeconds=naw(Bi(B.challenge||""));this.eC=P(this.requestKey,_.T("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.xI.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",B);Kbl(this.eC);var n;this.anV=(n=c==null?void 0:c.anV)!=null?n:function(b){_.wX(x.mQj.document,"visibilitychange",function(){x.mQj.document.visibilityState===
"visible"&&b()})}},pyA=function(B){if(!B.eO){var c={maxAttempts:5,
hYF:B.ttlSeconds*1E3};UEl(B.mQj);B.eO=B.qtX({eC:B.eC,ue:{disable:_.T("html5_web_po_disable_remote_logging"),qU:"aGIf",yha:TYo("html5_web_po_experiment_ids"),jXj:_.T("wpo_dis_lfdms")?0:1E3,dVj:_.T("wpo_gel_strz")?function(P){var Y=y7n.get(P);Y||(Y=new SfW(P),Y=new KS(Y),y7n.set(P,Y));return Y}:void 0},
kQw:c,sxp:B.bgChallenge,qOV:dEI});B.jpA=Date.now();u_4(B.eO,function(){B.jpA=Date.now()});
OSl(B.eO,function(){return _.X(function(P){return P.return(s0l(B))})});
var x=B.tNh.bind(B);B.networkStatusManagerPromise&&B.ttlSeconds>0&&B.networkStatusManagerPromise.then(function(P){P.listen("publicytnetworkstatus-online",x)});
B.anV(x)}};
gF8.prototype.tNh=function(){if(Date.now()>this.jpA+this.ttlSeconds*1E3){var B;(B=this.eO)==null||AsZ(B)}};
var s0l=function(B){if(B.i07)return B.i07;if(!B.eO)throw Error("nj");B.i07=new Gi({eO:B.eO,eC:B.eC,wM7:!0,onError:dEI});return B.i07},Cul=function(B,c){B=new gF8(B,c);
pyA(B);s0l(B)};var no=function(B,c){this.store=B;this.queue=[];c==null||c.addEventListener("yt-navigate-start",this.reset.bind(this))};
no.prototype.enqueue=function(B){var c=B.command,x=B.durationMs,P=B.elementToFocus;var Y=B.label;var g=B.elementToFocus;B.command?Y=_.Up("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Y,shortcut:_.Up("SHIFT_PLUS_ENTER")}):g&&(B=Y+". "+_.Up("SHIFT_PLUS_ENTER")+" for more information.",Y=_.Up("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Y,shortcut:_.Up("SHIFT_PLUS_ENTER")},B));x={announcement:Y,durationMs:x!=null?x:8E3};c?x.command=c:P&&(P.classList.add("ephemeral-action-focusable-element"),x.selector=P.tagName+
".ephemeral-action-focusable-element");this.queue.push(x);k5s(this)};
no.prototype.activate=function(B){var c=_.Ngl(this.store.getState());if(c){if(c==null?0:c.command)_.zl(c.command),this.store.dispatch(FA3(null));if(c==null?0:c.selector)c=document.querySelector(c.selector),_.fcx(c);B.preventDefault()}};
var k5s=function(B){if(!_.Ngl(B.store.getState())&&B.queue.length){var c=B.queue.shift();c&&(B.previousAnnouncement===c.announcement&&(c.announcement+="\u00a0"),B.store.dispatch(FA3(c)),B.previousAnnouncement=c.announcement,B.timeoutId=setTimeout(function(){if(c.selector){var x;(x=document.querySelector(c.selector))==null||x.classList.remove("ephemeral-action-focusable-element")}B.store.dispatch(FA3(null));k5s(B)},c.durationMs))}};
no.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(FA3(null));this.queue.length=0;this.timeoutId=void 0};
no[em]=[_.GC,_.t2];_.bT=new _.BL("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Xyi=window.AbortController||$9W;var $Qz=new _.BL("AUTH_SERVICE_TOKEN");var TFC=_.r2(["about:blank"]),mEl;var nFo=new _.BL("API_IFRAME_TOKEN"),b4A=new _.BL("FETCH_FN_TOKEN"),Km8=new _.BL("PARSE_FN_TOKEN"),j0z=new _.BL("WINDOW_REQUEST_TOKEN");var cxI;cxI=new _.BL("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.UQN=new _.BL("MISC_UI_SHARED_FLAGS_TOKEN");var dQs=function(){};
dQs.prototype.getFlag=function(B){if(B.configType!==2)throw Error("oj");return q3s(B)};
var q3s=function(B){switch(B.flagType){case "bool":return _.T(B.flagName);case "int":return _.f4(_.Yu(B.flagName));case "double":return _.Yu(B.flagName);case "string":return _.aH(B.flagName);case "int32_list":return TYo(B.flagName);case "int64_list":return TYo(B.flagName).map(function(c){return _.f4(c)});
case "string_list":return _.gr(B.flagName);default:throw Error("pj");}};var Ko=function(B,c,x){c=c===void 0?{}:c;Oh.call(this,x===void 0?"uninitialized":x);this.env=B;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}];c.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=c.shouldWaitOnAsyncImmediate)};
_.w(Ko,Oh);Ko.prototype.init=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(P,B(c.env),2):(B(c.env),P.jumpTo(2));if(P.nextAddress!=4)return c.jobSet?_.K(P,c.jobSet.completedResolver.promise,4):P.jumpTo(4);x=_.So();x.parkOrScheduleJob(function(){c.transition("rendering")},10,"ci");
_.Kq(P)})};
Ko.prototype.initialRender=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(P,B(c.env),2):(B(c.env),P.jumpTo(2));if(P.nextAddress!=4)return c.jobSet?_.K(P,c.jobSet.completedResolver.promise,4):P.jumpTo(4);x=_.So();x.parkOrScheduleJob(function(){c.transition("rendered")},10,"cr");
_.Kq(P)})};
Ko.prototype.afterRenderImmediate=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(P,B(c.env),2):(B(c.env),P.jumpTo(2));if(P.nextAddress!=4)return c.jobSet?_.K(P,c.jobSet.completedResolver.promise,4):P.jumpTo(4);x=_.So();x.parkOrScheduleJob(function(){c.transition("after-render-deferred")},10,"carml");
_.Kq(P)})};
Ko.prototype.afterRenderDeferred=function(B){var c=this;return _.X(function(x){B(c.env);_.Kq(x)})};var Ctr={},hIz=(Ctr.rendered={priority:0,callback:function(B){QxI(B.injector.resolve(tP))}},Ctr);var mQo=!1,E_d=0,IQA=null,lQO=null;var T9F=new _.BL("NETWORK_SLI_TOKEN");var VZc=function(B,c,x,P){this.networkSli=B;this.fetchFn=c;this.parseFn=x;this.requestFn=P};
VZc.prototype.fetch=function(B,c,x){var P=this,Y,g,k;return _.X(function(n){Y=tZS(P,B,c);k=(g=P.fetchFn)!=null?g:fetch;return n.return(k(Y).then(function(b){return P.handleResponse(b,x)}).catch(function(b){_.Ob(b);
if((x==null?0:x.expectJsonStrict)&&b instanceof m8&&b.errorType===1)return Promise.reject(b)}))})};
var yNZ=function(B,c,x,P){var Y,g,k,n,b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:return Y=tZS(B,c,x),_.kM(C,2),_.K(C,fetch(Y),4);case 4:g=C.yieldResult;_.Gw(C,3);break;case 2:throw _.be(C),new m8(2,"Failed to parse streaming response",Y.url);case 3:if(!g.redirected&&!g.ok)throw(k=B.networkSli)==null||k.failure(),new _.mc("Streaming fetch request not ok",Y.url);if(!g.body)throw new _.mc("No response body in streaming response",Y.url);n={};if(_.T("web_streaming_fast"))return b=g.body.getReader(),
C.return(wy6(B,b,n,P));d=g.body.pipeThrough(new TextDecoderStream).getReader();q=new _.sc;return C.return(N9y(B,d,q,RZO,n,P))}})},tZS=function(B,c,x){if(B.networkSli){var P=_.$u(_.rx(c,"key"))||"/UNKNOWN_PATH";
B.networkSli.start(P)}P=x;_.T("wug_networking_gzip_request")&&(P=Fkw(x));var Y;return new ((Y=B.requestFn)!=null?Y:window.Request)(c,P)},wy6=function(B,c,x,P){var Y,g,k,n,b,d,q,C,h,V,N;
return _.X(function(l){switch(l.nextAddress){case 1:Y=new TextDecoder("utf-8"),g="",k=function(E){E=E.trim();E.length!==0&&E!=="]"&&E!=="["?(E.startsWith("[")&&(E=E.substring(1)),E.endsWith("]")&&(E=E.slice(0,-1)),E.endsWith(",")&&(E=E.slice(0,-1)),E=E.trim()):E=void 0;if(E)try{var S=JSON.parse(E);RZO(x,S);P==null||P(x,S)}catch(M){throw new m8(1,"Failed to parse streaming response",E);}},_.kM(l,2,3);
case 5:return _.K(l,c.read(),8);case 8:n=l.yieldResult;b=n.value;if(d=n.done)return g.length>0&&k(g),q=void 0,(q=B.networkSli)==null||q.success(),l.return(x);g+=Y.decode(b,{stream:!0});C=g.split("\n");g=C.pop()||"";h=_.p(C);for(V=h.next();!V.done;V=h.next())N=V.value,k(N);l.jumpTo(5);break;case 3:_.Xt(l);c.releaseLock();_.nq(l,0);break;case 2:throw _.be(l),new m8(1,"Failed to parse streaming response");}})},N9y=function(B,c,x,P,Y,g){var k,n,b,d,q,C,h,V,N;
return _.X(function(l){if(l.nextAddress==1)return _.K(l,c.read(),2);k=l.yieldResult;n=k.value;if(b=k.done)return(d=B.networkSli)==null||d.success(),l.return(Y);try{q=x.parse(n)}catch(E){throw new m8(1,"Failed to parse streaming response",n);}if(q!=null)for(C=_.p(q),h=C.next();!h.done;h=C.next())V=h.value,P(Y,V),N=void 0,(N=g)==null||N(Y,V);return l.return(N9y(B,c,x,P,Y,g))})};
VZc.prototype.handleResponse=function(B,c){var x,P=(x=this.parseFn)!=null?x:JSON.parse;x=B.text().then(function(Y){if((c==null?0:c.jspbResponseCtor)&&B.ok)return x2l(c.jspbResponseCtor,Y);Y=Y.replace(")]}'","");if((c==null?0:c.expectJsonStrict)&&Y)try{var g=P(Y)}catch(n){throw new m8(1,"JSON parsing failed after fetch");}var k;return(k=g)!=null?k:P(Y)});
B.redirected||B.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),x=x.then(function(Y){_.Ob(new _.mc("Error: API fetch failed",B.status,B.url,Y));return Object.assign({},Y,{errorMetadata:{status:B.status}})}));
return x};
VZc[em]=[_.Bp(T9F),_.Bp(b4A),_.Bp(Km8),_.Bp(j0z)];var ISz=new _.BL("NETWORK_MANAGER_TOKEN");var Jno=[1,2,4,8,16,30],lSc=function(B){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=B.maxTimeMs;this.maxFrameCount=B.maxFrameCount===void 0?Math.ceil(60*B.maxTimeMs/1E3):B.maxFrameCount;B=_.p(Jno);for(var c=B.next();!c.done;c=B.next())this.brokenFrameSummarizers.push(new Wmo(c.value/60*1E3))},EFB=function(B){var c=B.frameCountInternal>=B.maxFrameCount;
return B.elapsedTimeMs>=B.maxTimeMs||c},O4y=function(B){for(var c=[],x=_.p(B.brokenFrameSummarizers),P=x.next();!P.done;P=x.next())P=P.value,P=P.brokenFrameCount!==0?{severityMs:Math.round(P.targetFrameTimeMs),
eventCount:P.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(P.averageDurationBetweenEventsMs)}:void 0,P&&c.push(P);return{summaries:c,monitoringDurationMs:Math.round(B.elapsedTimeMs)}};
_.AJ.Object.defineProperties(lSc.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 Wmo=function(B){this.targetFrameTimeMs=B;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.AJ.Object.defineProperties(Wmo.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var oFs=function(){};
oFs.prototype.start=function(B,c){var x=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var P=new lSc({maxTimeMs:B});this.monitor=P;this.lastSummaryInternal=void 0;this.metadataToLog=c;return new Promise(function(Y){var g=function(k){if(k===void 0)x.stop(),Y(void 0);else if(x.monitor!==P)k=Object.assign({},O4y(P),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Y(k);else{var n=x.monitor;if(!EFB(n)){n.frameCountInternal++;if(n.prevTime===void 0)n.startTime=
k;else for(var b=k-n.prevTime,d=_.p(n.brokenFrameSummarizers),q=d.next();!q.done;q=d.next()){q=q.value;var C=q.currTimeMs;q.currTimeMs+=b;b>q.targetFrameTimeMs+2&&(q.brokenFrameCount++,q.timeOfFirstBrokenFrameMs===void 0&&(q.timeOfFirstBrokenFrameMs=C),q.timeOfLastBrokenFrameMs=C)}n.prevTime=k}EFB(x.monitor)?Y(x.stop()):_.EE.addJob(g,5,0)}};
_.EE.addJob(g,5,0)})};
oFs.prototype.stop=function(B){if(!this.monitor)return this.lastSummaryInternal;var c=Object.assign({},O4y(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(c.monitoringDurationMs){B=B!=null?B:this.metadataToLog;var x={droppedFramesSummary:c,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};B&&(x[B.type]=B.data);_.JP("manualSmoothnessMeasurement",x)}this.monitor=void 0;this.lastSummaryInternal=c;this.metadataToLog=void 0;return c};_.Q0o=new _.BL("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Fmo;Fmo=function(B){this.JSC$16388_expiringStorage=new VY(B)};
_.vFS=function(B){if(_.OIw()&&(B=_.$pX(_.CU()+"::"+B)))return new Fmo(B)};
Fmo.prototype.set=function(B,c,x){x=x!==void 0?Date.now()+x:void 0;this.JSC$16388_expiringStorage.set(B,c,x)};
Fmo.prototype.get=function(B){return this.JSC$16388_expiringStorage.get(B)};
Fmo.prototype.remove=function(B){this.JSC$16388_expiringStorage.remove(B)};var zIN=new _.BL("SESSION_STORAGE");_.j8=function(){};
_.j8.getInstance=function(){var B=_.Gu("ytglobal.storage_");B||(B=new _.j8,_.rr("ytglobal.storage_",B));return B};
_.j8.prototype.estimate=function(){var B,c,x;return _.X(function(P){B=navigator;return((c=B.storage)==null?0:c.estimate)?P.return(B.storage.estimate()):((x=B.webkitTemporaryStorage)==null?0:x.queryUsageAndQuota)?P.return(o_O()):P.return()})};
_.rr("ytglobal.storageClass_",_.j8);var zuX=!!(PG[1]&8192);var v_A=!1;var S38=_.r2(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),ynl=_.r2(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var A$Q={"/":_.qm,"/?feature=ytca":_.qm,"/feed/downloads":_.tyI};var qb=function(B,c,x){this.JSC$16400_upliftPromise=B;this.store=c;this.JSC$16400_persistentStorePromiseAccessor=x};
qb.prototype.shouldPreferLocalResponse=function(B){return B.browseId==="FEdownloads"||B.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?!0:!1};
qb.prototype.localInnertubeResponse=function(B){var c=this;return _.X(function(x){return B.browseId==="FEdownloads"?_.T("kevlar_modern_downloads_page")?x.return(G56(c)):x.return(MZ8(c)):B.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?x.return(LmS(c)):x.return(Promise.reject(Error("rj")))})};
qb.prototype.canProvideFallbackResponse=function(){return!0};
qb.prototype.localFallbackInnertubeResponse=function(B){var c=this,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return _.K(g,c.JSC$16400_persistentStorePromiseAccessor(),2);case 2:x=g.yieldResult;if(B.browseId!=="SPaccount_downloads"||!x){g.jumpTo(3);break}return _.K(g,$rQ(x),4);case 4:if(P=g.yieldResult)return g.return(_.Xs(P));case 3:return B.browseId==="FEwhat_to_watch"?g.return(Z4z(c)):(Y=_.T("web_offline_continuation_automatic_retry")||_.T("web_offline_continuation_retry_button"))&&
B.continuation?g.return(H4A(c)):g.return(fS8(c))}})};
var Z4z=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$16400_upliftPromise,2);c=_.idx(B.store.getState().entities);return c.length?x.return(i4i(B,c)):x.return(fS8(B))})},MZ8=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$16400_upliftPromise,2);if(P.nextAddress!=3)return c=Anr([{offlineItemSectionRenderer:{}}]),_.K(P,uds(B,c),3);x=P.yieldResult;x.onResponseReceivedActions=[W8("REFRESH_DOWNLOADS")];return P.return(x)})},G56=function(B){var c,x,P,Y,g,k,n,b,d,q,C,h,V;
return _.X(function(N){if(N.nextAddress==1)return _.K(N,B.JSC$16400_upliftPromise,2);if(N.nextAddress!=3)return c=B.store.getState(),x=c.entities,P=_.NZ(x),Y=_.Iw(x),g=_.mVq(c),k=_.he7(c),n=_.TJ7(c),b=_.Dk$(x),d=_.hm(P),q=_.Jm(x),C={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.QaX(P,Y,b,g,k,d,q,n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},h=_.Up("DOWNLOADS",void 0,"Downloads"),_.K(N,DQS(B,C,h),3);V=N.yieldResult;
V.onResponseReceivedActions=[W8("REFRESH_DOWNLOADS")];return N.return(V)})},LmS=function(B){var c,x,P,Y,g,k,n,b,d;
return _.X(function(q){if(q.nextAddress==1)return _.K(q,B.JSC$16400_upliftPromise,2);if(q.nextAddress!=3)return c=B.store.getState(),x=c.entities,P=_.NZ(x),Y=_.hm(P),g=_.Jm(x),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.vK7(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},n=_.Up("SMART_DOWNLOADS",void 0,"Smart downloads"),b=O5x(Y,g),_.K(q,DQS(B,k,n,b),3);d=q.yieldResult;d.onResponseReceivedActions=[W8("REFRESH_DOWNLOADS")];
return q.return(d)})},fS8=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1)return _.K(P,kl(B.JSC$16400_upliftPromise,B.store),2);c=P.yieldResult;x=Anr([sMI(c)]);return P.return(uds(B,x))})},H4A=function(B){var c,x,P,Y;
return _.X(function(g){if(g.nextAddress==1)return c={},x=B.store.getState().continuation.continuationCommand,_.EL(c,_.zU,x),_.K(g,kl(B.JSC$16400_upliftPromise,B.store,c,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);P=g.yieldResult;Y={};_.EL(Y,_.V2t,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:P}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[Y]})})},Anr=function(B){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:B}}}}]}}},i4i=function(B,c){var x,P;
return _.X(function(Y){var g={contents:lj(c)};x=g&&g.contents?g:{};_.T("kevlar_modern_downloads_page")&&(x=Object.assign({},_.zjA(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:x}}}]}};return Y.return(uds(B,P))})},uds=function(B,c){var x,P;
return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,B.JSC$16400_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return x=Y.yieldResult,_.K(Y,$l(x),3);P=Y.yieldResult;return Y.return({responseContext:{},contents:c,topbar:P})})},DQS=function(B,c,x,P){var Y,g;
return _.X(function(k){if(k.nextAddress==1)return _.K(k,B.JSC$16400_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return Y=k.yieldResult,_.K(k,$l(Y),3);g=k.yieldResult;var n=k.return;var b=P;b=b===void 0?"":b;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:x}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Up("SETTINGS",void 0,"Settings"),accessibilityText:_.Up("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:ec("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:b}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:x};
return n.call(k,{responseContext:{},contents:c,topbar:g,header:{pageHeaderRenderer:b}})})};var rnF=function(){this.moduleRegistry={};this.fetchCount=0};
rnF.prototype.isFetching=function(){return this.fetchCount>0};
var Mb=function(B,c){B.moduleRegistry[c.toString()]={asyncId:c,isFetching:!1};return B};
rnF.prototype.JSC$16411_loadModules=function(){for(var B=this,c=new Map,x=[],P=_.p(_.ts.apply(0,arguments)),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;var g=this.moduleRegistry[Y];g?g.resolver?c.set(Y,g.resolver):(g.resolver=new _.kH,c.set(Y,g.resolver),x.push(g.asyncId),g.isFetching=!0):(g=new _.kH,c.set(Y,g),g.resolve(void 0))}x.length&&(this.fetchCount+=1,_.IZ(_.gk.getMultipleAsync.apply(_.gk,_.wq(x)).then(function(k){for(var n=0;n<x.length;n++){var b=k[n],d=B.moduleRegistry[x[n].toString()];d.isFetching=
!1;d.resolver.resolve(b)}}).catch(function(k){for(var n=_.p(x),b=n.next();!b.done;b=n.next()){b=b.value;
var d=B.moduleRegistry[b.toString()];d.resolver=void 0;d.isFetching=!1;c.get(b.toString()).reject(k)}}),function(){--B.fetchCount}));
return Promise.all([].concat(_.wq(c.values())).map(function(k){return k.promise}))};_.LC=new _.BL("MODULE_REGISTRY_TOKEN");var RIS={},eIA=(RIS.rendered={priority:0,callback:function(B){a:{var c=void 0;try{var x;b:{if(_.iQI()){var P=_.Xfq(_.CU()+"::pom");if(P){var Y=new I$(P);break b}}Y=void 0}var g=(x=Y)==null?void 0:x.get("role_text");if(!g)break a;c={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:g}]}}}}}}catch(b){}c&&B.injector.resolve(_.xu).resolveCommand(c)}try{var k=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(k){var n=JSON.parse(k);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
n&&B.injector.resolve(_.xu).resolveCommand(n)}}catch(b){}}},RIS);var Bl8,ccs={},xNA=(ccs.initialized={priority:10,callback:function(){Bl8=IE()}},ccs.rendering={callback:function(B){var c;
return _.X(function(x){if(x.nextAddress==1)return _.K(x,Bl8,2);c=x.yieldResult;if(!c.endpoint)throw Error("tj`"+_.xI.location.href);oE(B,c);_.Kq(x)})}},ccs);var Pzo={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(_.wq(_.T("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(B){var c=B.stack;if(c.includes("chrome://")||c.includes("chrome-extension://")||B.message.includes("chrome-extension://")||c.includes("moz-extension://")||c.includes("local.adguard.org")||c.includes("auctioneer3.50million.club")||c.includes("youtubedownloader")||c.includes("youtube_home_page")||c.includes("is_youtube_video_no_longer_available")||
c.includes("switchScreenSizeHack")||c.includes("yt_main_big_banner.js")||c.includes("YouTubeCenter.js")||c.includes("/mytube.js")||c.includes("JSON.parseWrapper")||c.includes("/inj_js/common.js")||c.includes("firebug-lite")||c.includes(".repl.co/")||c.includes("linkfix")||c.includes("playAfterAd")||B.message.includes("Access is denied for this document")&&c.includes("<anonymous>")||B.fileName==="user-script"||B.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
c.includes("<anonymous>"))return!0;if(c.includes("https://www.youtube.com"))return!1;B=c.split("\n");if(!B.length)return!1;if(B.length<=3&&c.includes("s.onloadeddata"))return!0;c=0;for(var x=_.p(B),P=x.next();!P.done;P=x.next())P=P.value,(P.includes("https://")||P.includes("http://"))&&c++;return c/B.length>.95},
weight:0},{callback:function(B){return B.message==="Unknown Error"&&B.name.indexOf("NS_")===0},
weight:100},{callback:function(B){if(!_.$V)return!1;var c=B.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||B.message.includes("available to complete this operation"),x=B.stack.includes("webcomponents")&&B.message==="Object doesn't support this action";B=B.message.includes("object that does not implement interface Element");return c||x||B},
weight:0},{callback:function(B){return B.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(B){return B.message==="Operation is not supported"&&(B.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(B){return B.stack.includes("eval code (eval (code:1:1)")||B.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(B){return B.message.includes("Permission denied")&&B.stack.includes("this.domHandler")?!0:B.name.includes("TypeError")&&B.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(B){if(!B.stack)return!1;var c=B.stack.trim().split("\n");c.length&&c[0].endsWith("Error: "+B.message)&&c.shift();c.length&&c[c.length-1].includes("at window.onerror (")&&c.pop();if(!c.length)return!0;if(B.message==="Script error.")return c[0].includes("www.youtube.com")||c.length>=2&&c[0].startsWith("at new")&&c[1].startsWith("at window.onerror");if(B.message==="Unexpected token")return!0;B=_.p(c);for(c=B.next();!c.done;c=B.next())if(c=c.value,!(c.includes("<anonymous>")||
c.startsWith("load@")||c.startsWith("global code@")||c.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(B){return B.message==="Cannot read property 'experiments'"&&B.stack.includes("/s/player/")},
weight:500},{callback:function(B){return B.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(B){return B.stack.includes("/embed.js")?(B.params&&B.params&&(B.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.T("use_error_suppression"))var B=_.v5("SUPPRESS_CLIENT_ERRORS",!1);else{if(B=_.UZ)B=/Chrome\/(\d+)/.exec(_.dC()),B=(B?parseFloat(B[1]):NaN)>=66;B=!(B||_.j2&&_.KY(65)||_.QY&&_.KY(12.1)||up&&_.KY(79))}return B},
weight:500}]};var YFi={},a8z=(YFi.initialized={priority:10,callback:function(B){B.injector.addProvider({provide:oit,useValue:B.root});B.injector.addProvider({provide:y1d,useValue:smX});B.injector.addProvider({provide:GR0,useValue:Pzo});var c={};B.injector.addProvider((c.provide=M74,c.useFactory=function(x,P){return function(){wc7(x,P)}},c[em]=[y1d,
GR0],c));B.injector.addProvider({provide:nG,useClass:nG})}},YFi);var gzS={},syl=(gzS.initialized={priority:3,callback:function(){var B;if(B=Phw()){B=B.replace("/",".");var c=_.CW();c.set("tz",B);c.save();B=!0}else B=!1;B||(B=_.CW(),B.set("utco",-Math.floor((new Date).getTimezoneOffset())),B.save())}},gzS);var psl={},kB6=(psl.initialized={priority:10,callback:function(B){B.injector.resolve(nG).start();B=_.Z3();var c=_.zu("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.zu("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.zu("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.zu("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.jX(_.JBx(),{mainAppWeb:Object.assign({},B,{pageType:c})});_.jX(luA(),{mainAppWeb:Object.assign({},B,{pageType:c})});
_.jX(EcQ(),{mainAppWeb:B});_.jX(ORd(),{mainAppWeb:B});iU4(function(){_.UB(EcQ(),"FAILURE");_.UB(ORd(),"FAILURE")});
euI();BhO();vJ7()}},psl);var XsN={},$Nr=(XsN.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Op("dl"),_.So().processSignal("pcl");else{var B=function(){_.Op("dl");_.So().processSignal("pcl");window.removeEventListener("load",B)};
window.addEventListener("load",B)}}},XsN);var nzB={},bAy=(nzB.rendering={priority:0,callback:function(){var B=_.So();B.parkOrScheduleJob(function(){B.processSignal("eocs")},10,"eor",5E3)}},nzB);var Koi=function(){};
_.w(Koi,GG);
Koi.prototype.resolveCommand=function(B,c){var x,P,Y,g,k,n,b,d;return _.X(function(q){Y=(x=_.t(B,_.sX3))==null?void 0:(P=x.dialog)==null?void 0:P.commentReplyDialogRenderer;if(!Y)throw new _.mc("No dialog in createCommentReplyDialogEndpoint");k=(g=c.form)==null?void 0:g.event;if(!k)throw new _.mc("Event not passed in when resolving command");n=_.p(k.composedPath());for(b=n.next();!b.done;b=n.next())if(d=b.value,d.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||d.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return d.showReplyDialog(Y),q.return();
_.Kq(q)})};var UO=function(B){this.pageRequestService=B;this.JSC$16426_prefetchCoordinator=NwW()};
_.w(UO,GG);UO.prototype.resolveCommand=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){x=_.t(B,Gx4);if((P=x)==null||!P.taskId)throw Error("uj");Y=x.taskId;_.kM(k,2);return _.K(k,_.zAF(c.pageRequestService,B,{},"").then(function(n){if(!n)throw Error("vj");},function(n){throw Error("wj`"+n);
}),4)}if(k.nextAddress!=2)return Why(c.JSC$16426_prefetchCoordinator,Y),_.Gw(k,0);
g=_.be(k);AT(c.JSC$16426_prefetchCoordinator,Y,g);_.Kq(k)})};
UO[em]=[Nb];var d3=function(B){this.innertubeTransportService=B};
_.w(d3,GG);d3.prototype.resolveCommand=function(B){var c=this,x,P;return _.X(function(Y){x=_.t(B,Lat);if(x.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||x.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")P=x.boolValue?2:1,_.eP.getInstance().setState(P,!0,!0);return _.K(Y,_.Zn(c.innertubeTransportService,B),0)})};
d3[em]=[_.ou];var qd={},jyB=(qd.addToPlaylistEndpoint=RJ(Ta),qd.addToToastAction=RJ(Vh),qd.adsControlFlowOpportunityReceivedCommand=RJ(Y3),qd.captionLanguageSelectActionCommand=RJ(v2),qd.captionPickerEndpoint=RJ(za),qd.changeMiniAppPlayStateCommand=RJ(Vu),qd.changeTimelyActionVisibilityCommand=RJ(TM),qd.channelCreationFormEndpoint=RJ(UH),qd.clearLocationCommand=RJ(mL),qd.clearUrlParamCommand=RJ(tA),qd.copyLinkCommand=RJ(Lf),qd.copyTextEndpoint=RJ(sH),qd.createCommentReplyDialogEndpoint=EbI(Koi),qd.createPlaylistServiceEndpoint=
RJ(Zw),qd.dismissDialogEndpoint=RJ(NJ),qd.entityUpdateCommand=RJ(k3),qd.feedbackEndpoint=RJ(nf),qd.getAnswerCommand=RJ(QqI),qd.getPaymentsClientTokenCommand=RJ(oY),qd.getTranscriptEndpoint=RJ(tt),qd.googlePaymentBillingCommand=RJ(Qh),qd.googlePaymentPurchaseManagerCommand=RJ(Fk),qd.hideEngagementPanelEndpoint=RJ(I9),qd.hideSnackbarCommand=RJ(je),qd.insertRichSectionCommand=RJ(qJ),qd.listMutationCommand=RJ(Cf),qd.logGtmCommand=RJ(dH),qd.notifyDropdownOptionSelectedCommand=RJ(wH),qd.openAdAllowlistInstructionCommand=
RJ(_.a9),qd.openOnePickAddVideoModalCommand=RJ(H2),qd.persistSubscriptionsDisplayPreferencesCommand=RJ(rH),qd.pingingEndpoint=RJ(gH),qd.playlistEditEndpoint=RJ(iC),qd.playlistVotingRefreshPopupCommand=RJ(AA),qd.refreshPanelEndpoint=RJ(JA),qd.saveImageToDeviceEndpoint=RJ(pf),qd.scrollToSectionEndpoint=EbI(FiW),qd.seekToVideoTimestampCommand=RJ(Sf),qd.selectCountryCommand=RJ(R9),qd.setCookieCommand=RJ(ef),qd.setLocalStorageCommand=RJ(d0),qd.setPrefStorageEntryCommand=RJ(cZ),qd.setSettingEndpoint=RJ(d3),
qd.sfvAudioItemPlaybackCommand=RJ(yu),qd.shareImageCommand=RJ(xO),qd.sharingProviderDataCommand=RJ(PZ),qd.showCaptionLanguageSelectActionCommand=RJ(Ga),qd.showDialogCommand=RJ(EH),qd.showEngagementPanelEndpoint=RJ(OH),qd.showSheetCommand=RJ(o9),qd.showSnackbarCommand=RJ(Ua),qd.showTransientPlayerScrimOverlayCommand=RJ(MJ),qd.submitFormWithValidationFlowCommand=RJ(jf),qd.talkToRecsDeselectCommand=RJ(qU),qd.talkToRecsNextCommand=RJ(C_),qd.talkToRecsSelectCommand=RJ(ht),qd.talkToRecsUpdateTextCommand=
RJ(mS),qd.toggleEngagementPanelCommand=RJ(Qu),qd.undoFeedbackEndpoint=RJ(Kf),qd.updateEngagementPanelContentCommand=RJ(Fz),qd.updateUrlParamCommand=RJ(Oa),qd.verifyCommand=RJ(UH),qd.webNativeShareCommand=RJ(YO),qd.webSubmitFormCommand=RJ(uC),qd.ACK_PLAYABLES_3P_DATA_CONSENT=RJ(aY),qd.CANCEL_NAVIGATION=RJ(g0),qd.COPY_SHARE_URL=RJ(sa),qd.MINI_APP_EXIT_DIALOG_SEEN=RJ(kO),qd.MINI_APP_OPEN_URL=RJ(p_),qd.REQUEST_MINI_APP_FULLSCREEN=RJ(Xk),qd.RESUME_NAVIGATION=RJ($O),qd.SHARE_PLAYABLE_WITH_HIGH_SCORE=RJ(n_),
qd.TELL_US_WHY=RJ(bC),qd);_.T("web_enable_prefetching_videos_on_home")&&(jyB.prefetchWatchCommand=RJ(UO),jyB.registerTasksCommand=RJ(Dd));_.T("enable_share_panel_navigation_logging_fix_on_web")&&(jyB.shareEntityServiceEndpoint=RJ(W2));var HQ3=Object.assign({},jyB);var UN6={},dN6=(UN6.initialized={priority:10,callback:aN$},UN6);var qFN={},Czs=(qFN.initialized={callback:function(B){var c={},x={};fBd().install((c.document_disposed={callback:function(){_.T("finalize_all_timelines")?RB7():Wr();JF$("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.P2x();var P=B.injector.resolve(nG);P.intervalId!==void 0&&(P.intervalId&&_.EE.cancelJob(P.intervalId),P.intervalId=void 0,--P.currentPartitionIndex,P=m0I(P),P>0&&lpF({mainAppWeb:_.Z3(),survivalSli:{partitionMinute:P,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));mmZ(ZY);H7!=null&&
H7.flush();YH&&YH.snapshotAndFlush();P=_.p(y7n.values());for(var Y=P.next();!Y.done;Y=P.next())Y.value.snapshotAndFlush()}},c),(x.flush_logs={callback:function(){_.Wo()}},x))}},qFN);var hS8={},mNl=(hS8.rendered={priority:0,callback:function(){var B=new oMd;B.increment("STARTED");if(_.v5("LOGGED_IN")&&_.v5("SERVER_VERSION")!=="test"&&_.v5("SERVER_VERSION")!=="dev"&&!$YW()&&!X$F()){B.increment("EXECUTING");var c=document.createElement("iframe");c.style.display="none";_.q07(c,2,_.Tz("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.v5("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(c);B.increment("DONE")}}},hS8);var Tlc={},ViB=(Tlc.rendered={callback:function(){NwW().resume()}},Tlc);var tio={acknowledgeChannelTouStrikeCommand:Vy($i),addToPlaylistServiceEndpoint:Vy(pu),addToPlaylistEndpoint:Vy(pu),addUpcomingEventReminderEndpoint:Vy(N0),browseEndpoint:Vy(pmd),channelCreationFormEndpoint:Vy(Yi),channelCreationServiceEndpoint:Vy(ao),claimLegacyYoutubeChannelEndpoint:Vy(HZ),clearSearchHistoryEndpoint:Vy(q0),clearWatchHistoryEndpoint:Vy(CP),commerceActionCommand:tV(Wu),createBackstagePostEndpoint:Vy(Se),createBroadcastCommand:Vy(Io),createCommentEndpoint:Vy(Bx),createCommentReplyEndpoint:Vy(ee),
createLiveChatPollEndpoint:Vy(Jh),createPlaylistServiceEndpoint:Vy(kp),crossAccountChannelTransferEndpoint:Vy(Tm),deleteLiveChatMessageCommand:Vy(Wx),deletePlaylistEndpoint:Vy(Xv),deleteVideoEndpoint:Vy(wz),dismissalEndpoint:Vy(nP),feedbackEndpoint:Vy(b2),flagEndpoint:Vy(U6),getAccountSwitcherEndpoint:Vy(mn),verifyCommand:Vy(zM),getAccountsListInnertubeEndpoint:Vy(th),getCommentsFromInboxCommand:Vy(Hx),getDownloadActionCommand:Vy(Ro),getFlowCommand:tV(dE),getKidsBlocklistPickerCommand:Vy(dz),getNotificationMenuEndpoint:Vy($$F),
getPaymentInstrumentsParamsCommand:Vy(Fv),getPaymentsClientTokenCommand:tV(Wu),getPdgBuyFlowCommand:Vy(gz),getReportFormEndpoint:Vy(qC),getSearchInVideoCommand:Vy(mN),getAnswerCommand:Vy(hT),getSurveyCommand:Vy(tT),getTranscriptEndpoint:Vy(Ib),getPostVideoPreviewEndpoint:Vy(GM),decorateMessageEndpoint:Vy(yh),likeEndpoint:Vy(gE),liveChatActionEndpoint:Vy(oo),liveChatEndpoint:Vy(O$),liveChatItemContextMenuEndpoint:Vy(l2),liveChatPurchaseMessageEndpoint:Vy(Q$),liveChatReplayEndpoint:Vy(E$),manageLiveChatUserEndpoint:Vy(vx),
metadataUpdateCommand:Vy(LP),moderateLiveChatEndpoint:Vy(zm),modifyChannelNotificationPreferenceEndpoint:Vy(u2),notificationOptOutEndpoint:Vy(DI),openSuperStickerBuyFlowCommand:Vy(Fi),performCommentActionEndpoint:Vy(DB),playlistEditEndpoint:Vy(nu),playlistEditorEndpoint:Vy($p),profileCardCommand:Vy(wE),recordNotificationInteractionsEndpoint:Vy(rE),reelWatchEndpoint:Vy(b5),refreshPanelEndpoint:Vy(Bu),removeUpcomingEventReminderEndpoint:Vy(SK),resolveLocationCommand:Vy(M0),revealBusinessEmailCommand:Vy(f_),
searchEndpoint:Vy(_.nqI),sendLiveChatMessageEndpoint:Vy(y$),sendLiveChatVoteEndpoint:Vy(Gm),setSettingEndpoint:Vy(s$),shareEntityServiceEndpoint:tV(Xi),sharingProviderDataCommand:Vy(Vm),showEngagementPanelEndpoint:Vy(cu),showMoreDrawerCommand:Vy(Pu),showSheetCommand:Vy(Yp),showDialogCommand:Vy(xp),subscribeEndpoint:Vy(pP),transcriptSubmitCaptionCorrectionCommand:Vy(NC),undoFeedbackEndpoint:Vy(jK),unsubscribeEndpoint:Vy(ki),updateBackstagePostEndpoint:Vy(L_),updateCommentEndpoint:Vy(xi),updateCommentReplyEndpoint:Vy(cx),
updateCommentsSettingsEndpoint:Vy(Px),updateCreatorChannelInnertubeCommand:Vy(At),updateKidsBlacklistEndpoint:Vy(Cu),updateEngagementPanelContentCommand:Vy(ab),updatePdgFeatureEnablementCommand:Vy(s6),updatedMetadataEndpoint:Vy(ZI),validateChannelHandleCommand:Vy(u_),updateChannelPageSettingsEndpoint:Vy(i_),verifyAgeEndpoint:Vy(U$),watchEndpoint:tV(UQ),whitelistEditEndpoint:Vy(JT),ypcCancelRecurrenceEndpoint:Vy(l5),ypcCompleteTransactionEndpoint:Vy(E6),ypcFixInstrumentEndpoint:Vy(ob),ypcGetCartEndpoint:Vy(O6),
ypcGetOffersEndpoint:Vy(Qm),ypcHandleTransactionEndpoint:tV(vu),ypcLogWalletAnalyticDataEndpoint:Vy(zN),ypcOffersEndpoint:Vy(Sv),ypcPauseSubscriptionCommand:Vy(ym),ypcRedeemCodeEndpoint:Vy(GN),ypcResumeSubscriptionCommand:Vy(MC),ypcUpdateFopEndpoint:Vy(ob)},Co={},wsc=(Co.GET_ACCOUNT_MENU=Vy(V$),Co.GET_NOTIFICATIONS_MENU=Vy(Xm4),Co.GET_NOTIFICATIONS_INBOX=Vy(fP),Co.GET_UNSEEN_NOTIFICATION_COUNT=Vy(Ah),Co.GET_USER_MENTION_SUGGESTIONS=Vy(MU),Co.LOAD_GUIDE=Vy(kRm),Co.SUBMIT_FEEDBACK=Vy(KP),Co),h5={},
Nl6=(h5.CONTINUATION_REQUEST_TYPE_BROWSE=Vy(ZB),h5.CONTINUATION_REQUEST_TYPE_SEARCH=Vy(TN),h5.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Vy(q4),h5.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Vy(hh),h5.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Vy(RY),h5.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Vy(r0),h5.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Vy(jv),h5.CONTINUATION_REQUEST_TYPE_GET_PANEL=Vy(eK),h5),I8r={player:tV(UQ),watchNext:Vy(dk)},JcB={player:tV(UQ),reelItemWatch:Vy(b5),reelWatchSequence:Vy(Ku)},
Wo6={watchEndpoint:tV(Cy)},l8A={commandEndpointMap:tio,signalEndpointMap:wsc,continuationEndpointMap:Nl6,watchEndpointMap:I8r,reelWatchEndpointMap:JcB,streamingEndpointMap:Wo6};var Ezc,OAr,ozS,Qyi={disableAllTransitions:(OAr=(Ezc=window).matchMedia)==null?void 0:(ozS=OAr.call(Ezc,"(prefers-reduced-motion: reduce)"))==null?void 0:ozS.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var gn$={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 pnX=["videoPrimaryInfoRenderer","title"],kyd=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Foz;Foz=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.vzz=_.rM(function(B){B=_.uF(B,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var c=B.data,x=B.playlistData,P=B.expanded,Y=B.onExpandClick,g=B.isReadyToResume,k=function(){var q;return!((q=x())==null||!q.contents)},n=function(){var q=x();
return q&&q.totalVideos&&q.currentIndex!==void 0?q.currentIndex+1+" / "+q.totalVideos:""};
B=_.qe(function(){_.mB(_.cp().resolve(_.Ge));return!1});
var b=_.qe(function(){k()&&Y&&Y()}),d={};
return _.U("ytd-miniplayer-info-bar",{class:_.Kw("ytdMiniplayerInfoBarHost",(d.ytdMiniplayerInfoBarHasPlaylistData=k,d)),"on:click":b},_.U("div",{class:"ytdMiniplayerInfoBarContent"},_.U("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":B},_.U(_.RF,{text:function(){var q=c();var C=x();if(C==null?0:C.contents){var h;q=(h=_.H0o(C))==null?void 0:h.title}else q=q==null?void 0:q.miniplayerTitle;return $xO(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.U("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.U(_.m,{cond:g,then:function(){return _.U(opZ,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Foz})}}),_.U("h1",null,_.U(_.RF,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var q=c();var C=x();q=g()?{simpleText:_.Up("CONTINUE_WATCHING",void 0,"Continue watching")}:(C==null?0:C.contents)?C.titleText:q==null?void 0:q.miniplayerSubtitle;return $xO(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.U(_.m,{cond:function(){return!!n()&&!g()},
then:function(){return _.U("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.U("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.U("span",null,n))}}))),_.U(_.m,{cond:k,
then:function(){return _.U("div",{class:"ytdMiniplayerInfoBarExpand"},_.U(B8,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(q){Y&&(Y(),q.stopPropagation())}}},
iconName:function(){return P()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var zSz;zSz=_.rM(function(B){return _.U("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.U(B8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:B.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.SF8=_.rM(function(B){B=_.uF(B,{playabilityStatus:void 0,isDisabled:!1});var c=B.size,x=B.playabilityStatus,P=B.isDisabled,Y=_.Ho("div");B=_.p(_.$D(void 0,void 0,"bJr0Se"));var g=B.next().value,k=B.next().value;B=_.FB(_.C2);var n=!1,b=function(){return c().height<=0};
_.IO(function(){var h=c(),V=b(),N=g();N&&!V&&N.setInternalSize(h.width,h.height)},"OUOyKb");
_.JR(function(){var h,V,N;return _.X(function(l){if(l.nextAddress==1){h=_.cp().resolve(_.Ge);V=h.getPlayerElement();if(!h.isMiniplayerActive()||!V||!Y.value)return l.return();V.appendTo(Y.value);return _.K(l,V.getPlayerPromise(),2)}N=l.yieldResult;N.setSizeStyle(!1,!0);k(N);_.Kq(l)})});
_.lP(function(){d()});
_.IO(function(){var h=g();if(h)if(P()){var V=h.getPlayerState();(n=V===-1||V===1||V===3)&&h.pauseVideo()}else d()},"KKHe5");
var d=function(){if(n){n=!1;var h;(h=g())==null||h.playVideo()}},q=_.qe(function(){_.mB(_.cp().resolve(_.Ge))}),C={};
return _.U("ytd-miniplayer-player-container",{class:_.Kw("ytdMiniplayerPlayerContainerHost",(C.ytdMiniplayerPlayerContainerHidden=b,C.ytdMiniplayerPlayerContainerHostShortsPip=B,C)),style:_.TU({width:function(){return c().width+"px"},
height:function(){return c().height+"px"}})},_.U("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Y}),_.U(_.m,{cond:function(){return!!x()&&!_.BFx(x())},
then:function(){return _.U(Nim,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var h;return((h=x())==null?void 0:h.errorScreen)||null},
status:function(){var h;return((h=x())==null?void 0:h.status)||null}})}}),_.U(_.m,{cond:P,
then:function(){return _.U("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":q},_.U(zSz,{onTap:function(){_.cp().resolve(_.Ge).close()}}))}}))},"we");_.ycz=_.rM(function(B){var c=B.toastData;var x=_.Ho("ytd-miniplayer-toast");B=_.p(_.mg(function(){return!!c()}));
var P=B.next().value,Y=B.next().value;B=_.p(_.$D(!1,void 0,"xkrBze"));var g=B.next().value,k=B.next().value,n=function(){var q;return _.iG((q=c())==null?void 0:q.data.title)};
_.lk(function(){_.Mk.requestAvailability();c()&&Y(!1)});
var b,d;_.IO(function(){P()&&(_.aJ(x.value,"iron-announce",{text:c().label+" "+n()}),b&&_.EE.cancelJob(b),b=_.EE.addLowPriorityJob(function(){k(!0)},2500))},"OTdL1e");
_.IO(function(){g()&&(d&&_.EE.cancelJob(d),d=_.EE.addLowPriorityJob(function(){Y(!1);k(!1)},300))},"yybqib");
B={};return _.U("ytd-miniplayer-toast",{el:x,class:_.Kw("ytdMiniplayerToastHost",(B.ytdMiniplayerToastOpening=function(){return P()},B.ytdMiniplayerToastClosing=function(){return g()},B))},_.U(_.m,{cond:function(){var q;
return(q=c())==null?void 0:q.data},
then:function(q){return _.U(GTm,{className:"ytdMiniplayerToastThumbnail",data:q,width:78})}}),_.U("div",{class:"ytdMiniplayerToastInfo"},_.U("div",{class:"ytdMiniplayerToastLabel"},function(){var q;
return(q=c())==null?void 0:q.label}),_.U("div",{class:"ytdMiniplayerToastTitle"},n)))},"xe");var mxw;var ta7=null;var MiN=_.rM(function(B){var c=B.progressState;var x=B.multiMarkersPlayerBarRenderer;var P=B.progressBarWidth;var Y=function(){return JY7(x())},g=function(){return EnI(c())},k=function(){return P()*(c().playedTime/c().videoDuration)};
return _.U("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.U(_.mV,{each:Y},function(n,b){return _.U(GBB,{modifiedProps:g,chapters:Y,index:b,playedProgressWidth:k,backgroundGradientPosition:function(){var d=g(),q=Y(),C=b(),h=k();return(d.playedTime-SX(_.t(q[C],ze)))/d.playedTime*h}})}))},"ye"),GBB=_.rM(function(B){var c=B.modifiedProps;
var x=B.chapters;var P=B.index;var Y=B.playedProgressWidth;var g=B.backgroundGradientPosition;B={};B=_.Kw("ytChapteredProgressBarChapteredPlayerBarChapter",(B.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return k().isScrubbing},B.ytChapteredProgressBarHoveredMacroMarker=function(){return k().scrubberHovering},B.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return k().videoPosition==="seen"},B));
var k=function(){return OKx(c(),x(),P())},n=function(){var b=c();
var d=x(),q=P();if(OKx(b,d,q).videoPosition!=="active")b=0;else{var C=SX(_.t(d[q],ze));b=(b.playedTime-C)/((SX(_.t(d[q+1],ze))||b.videoDuration)-C)}return b};
return _.U("div",{class:B,style:_.TU({width:function(){var b=c(),d=x(),q=P(),C=_.t(d[q],ze);d=_.t(d[q+1],ze);return(d?SX(d)-SX(C):b.videoDuration-SX(C))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=k();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(onC(k())?Y():"")+"px"},
"background-position-x":function(){return(onC(k())?g():"")+"px"}})},_.U("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=c(),d=x(),q=P();if(OKx(b,d,q).videoPosition==="seen")var C=0;else C=SX(_.t(d[q],ze)),d=SX(_.t(d[q+1],ze))||b.videoDuration,b=b.videoDuration*b.percentLoaded,C=d<=b?1:C>=b?0:(b-C)/(d-C);return"width: "+C*100+"%"}}),_.U("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.TU({width:function(){return n()*100+"%"},
"background-size":function(){return(onC(k(),n())?Y():"")+"px"},
"background-position-x":function(){return(onC(k(),n())?g():"")+"px"}})}))},"ze");var Loo=function(B,c){c=c===void 0?x_0:c;var x,P=[],Y,g=!1;return function(){var k=_.ts.apply(0,arguments);if(g&&x===this&&c(k,P))return Y;Y=B.apply(this,k);g=!0;x=this;P=k;return Y}}(function(B){var c=B.heatMarkers,x=B.minHeightDp===void 0?0:B.minHeightDp,P=B.maxHeightDp===void 0?60:B.maxHeightDp;
var Y=Y===void 0?!1:Y;var g=1E3/c.length;B=[];B.push({x:0,y:100});for(var k=0;k<c.length;k++){var n=void 0,b=((n=_.t(c[k],G30))==null?void 0:n.heatMarkerIntensityScoreNormalized)||0;n=(k+.5)*g;b=100-_.vi(b*100,x/321*100,P/321*100);k!==0||Y||B.push({x:0,y:b});B.push({x:n,y:b});k===c.length-1&&B.push({x:1E3,y:b})}B.push({x:1E3,y:100});c="";for(x=0;x<B.length;x++)Y=B[x],x===0?Y="M "+Y.x.toFixed(1)+","+Y.y.toFixed(1):(P=RsX(B[x-1],B[x-2],Y),g=RsX(Y,B[x-1],B[x+1],!0),Y=" C "+(P.x.toFixed(1)+","+P.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+Y.x.toFixed(1)+","+Y.y.toFixed(1))),c+=Y;return c});var ZA6=_.rM(function(B){var c=B.progressBarProps;var x=B.config;var P={};B=_.Kw("ytHeatSeekerHost",(P.ytHeatSeekerHighContrast=B.highContrast,P));var Y=function(){return Uxw(x().chapterData)};
return _.U("yt-progress-bar-heatseeker",{class:B,style:function(){var g;return"height: 320px; display: "+(c().isDragging&&((g=Y())==null?0:g.heatMarkers)?"block":"none")}},_.U(_.m,{cond:Y,
then:function(g){return _.U(_.m,{cond:function(){return g().heatMarkers},
then:function(){return _.U("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.U("path",{d:function(){return Loo(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var HAA=_.rM(function(B){var c=B.progressBarProps;var x=B.config;B={};B=_.Kw("ytProgressBarLineProgressBarLine",(B.ytProgressBarLineProgressBarLineRounded=function(){return x().rounded},B.ytProgressBarLineProgressBarLineBottomInset=function(){return x().position===2},B));
return _.U("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.U("div",{class:B},_.U("div",{class:"ytProgressBarLineProgressBarBackground"}),_.U("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+c().percentLoaded*100+"%"}}),_.U("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var P=c();return"width: "+(P.videoDuration?_.vi(P.hoveredTime/P.videoDuration,0,1):0)*100+"%"}}),_.U("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+bK$(c())*100+"%"}})))},"Be");
HAA.idomCompat=!0;var f8y=_.rM(function(B){var c=B.progressBarProps;var x=B.playheadData;var P=B.interpolateDotPosition;var Y=B.hidePlayhead;B={};var g=_.Kw("ytProgressBarPlayheadProgressBarPlayheadDot",(B.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return c().isDragging},B.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!c().isDragging&&Y()},B));
return _.U("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.TU({"margin-left":function(){return K2d(c())*100+"%"},
transform:function(){return"translateX(-"+(P()?K2d(c())*12:6)+"px)"}})},_.U(_.m,{cond:function(){var k;
return(k=_.A9(x)())==null?void 0:k.playheadImage},
then:function(k){var n={};return _.U("div",{class:_.Kw("ytProgressBarPlayheadProgressBarPlayheadCustom",(n.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return c().isDragging},n.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!c().isDragging&&Y()},n)),
style:_.TU({"transform-origin":function(){return(P()?K2d(c())*20:10)+"px center"}})},_.U(_.D9,{data:k,
alt:"","aria-hidden":"true"}))},
else:function(){return _.U("div",{class:g,style:_.TU({"transform-origin":function(){return(P()?K2d(c())*12:6)+"px center"}})})}}))},"Ce");
f8y.idomCompat=!0;var TT=function(B,c,x,P,Y,g){this.getProgressBarRect=B;this.updateProgressBarRect=c;this.getFilmstripYPosition=x;this.setFineScrubbingDraggedTime=P;this.updateFilmStripDraggedYDistance=Y;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.eA(this.onThrottledSeek,100,this)},iAF=function(B,c,x){return function(P){B.handleClick(P,c(),x())}},DN8=function(B,c){return function(x){Acs(B,
x,u6o(x),c())}},rcz=function(B,c){return function(x){Acs(B,x,{x:x.clientX,
y:x.clientY},c())}},eSr=function(B,c,x){return function(P){var Y=c(),g=x();
RSy(B,P,u6o(P),Y,g,!0);if(g.onTouchMove)g.onTouchMove(Y)}},cOF=function(B,c,x){return function(P){BtN(B,P,c(),x())}},x2F=function(B,c){return function(){B.handleMouseLeave(c())}},Pmi=function(B,c,x){return function(){var P=c(),Y=x();
VM(B,P,Y);if(Y.onTouchEnd)Y.onTouchEnd(P)}},Y0i=function(B,c,x){return function(){var P=c(),Y=x();
VM(B,P,Y);if(Y.onTouchEnd)Y.onTouchEnd(P)}},aml=function(B,c,x){return function(){VM(B,c(),x())}},gPz=function(B){return function(c){if(c.keyCode===39||c.keyCode===38){var x,P;
(x=B())==null||(P=x.playerApi)==null||P.seekBy(5,void 0,void 0,72)}else if(c.keyCode===37||c.keyCode===40){var Y,g;(Y=B())==null||(g=Y.playerApi)==null||g.seekBy(-5,void 0,void 0,71)}}},sUo=function(B,c,x){return function(P){!x().disableScrubbing&&B.startPosition&&BtN(B,P,c(),x())}},pNA=function(B,c,x){return function(){if(!x().disableScrubbing)if(B.startPosition){var P=c(),Y=x();
VM(B,c(),x());if(Y.onTouchEnd)Y.onTouchEnd(P)}else c().setState({isDragging:!1})}},u6o=function(B){B=B.touches[0];
return{x:B.clientX,y:B.clientY}},BtN=function(B,c,x,P){if(c.buttons!==1){if(c.movementX||c.movementY)c.preventDefault(),c.stopPropagation(),B=kLy(B,x,c.clientX),x.setState({isHovering:!0,
hoveredTime:B*x.videoDuration})}else XNc(x),RSy(B,c,{x:c.clientX,y:c.clientY},x,P,!1)};
TT.prototype.handleMouseLeave=function(B){XNc(B)};
var XNc=function(B){B.isHovering&&B.setState({isHovering:!1,hoveredTime:0})},Acs=function(B,c,x,P){B.startPosition||(B.startPosition=x,B.updateProgressBarRect(),B.controlsWereVisibleBeforeDragging=P.controlsVisible,c.stopPropagation(),_.T("medium_progress_bar_modification")||c.preventDefault())},RSy=function(B,c,x,P,Y,g){if(B.startPosition)if(g&&Y.isInlinePlayback&&B.startPosition&&!B.hasDraggedTheMinimumDistance&&Math.abs(x.y-B.startPosition.y)>Math.abs(x.x-B.startPosition.x))VM(B,P,Y);
else if(c.preventDefault(),c.stopPropagation(),P.videoDuration&&(B.startPosition&&!B.hasDraggedTheMinimumDistance&&(B.hasDraggedTheMinimumDistance=Math.abs(x.x-B.startPosition.x)>=1),Y.enableFineScrubbing&&(B.startPosition&&(B.isDraggedForFineScrubbing=-(x.y-B.startPosition.y)>=60),!B.startPosition||x.y>=B.startPosition.y||(P.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:QVO(P.draggedTime,P,Y.chapterData)}),B.setFineScrubbingDraggedTime(P.draggedTime),B.updateFilmStripDraggedYDistance(B.startPosition.y,
x.y,P))),B.hasDraggedTheMinimumDistance)){c=kLy(B,P,x.x);if(B.isDraggedForFineScrubbing){var k;(k=P.playerApi)==null||k.pauseVideo();P.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:P.draggedTime,filmStripXDistance:QVO(c*P.videoDuration,P,Y.chapterData)})}Y.enableFineScrubbing&&(!Y.enableFineScrubbing||B.getFilmstripYPosition(P)<68)||P.setState({draggedTime:c*P.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:B.controlsWereVisibleBeforeDragging});var n;(n=
Y.cancelAutohideControlsFn)==null||n.call(Y)}},VM=function(B,c,x){var P=x.enableFineScrubbing&&c.fineScrubbingActiveState!=="off";
if(c.isDragging||P){P={isDragging:!1,playedTime:c.draggedTime,controlsVisible:B.controlsWereVisibleBeforeDragging};x.enableFineScrubbing&&c.fineScrubbingActiveState!=="on"&&(B.resetFilmStripYOffset(),P.fineScrubbingActiveState="off");var Y=Y===void 0?ta7:Y;var g=_.Wf(0);g&&Y&&_.ig(g,Y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(c.playedTime*1E3),endMediaTimeMs:Math.round(c.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});c.setState(P);
B.seekThrottle.fire(c.draggedTime,c,7);_.T("mweb_new_progress_bar_play_on_seek")&&B.resumeVideo(c);x.unmuteOnSeek&&(x=c.playerApi,c.volumeMuted&&(x==null||x.unMute()))}else c.setState({controlsVisible:!c.controlsVisible}),(g=x.triggerAutohideControlsAfterDelayFn)==null||g.call(x);B.startPosition=null;B.hasDraggedTheMinimumDistance=!1;B.isDraggedForFineScrubbing=!1;B.controlsWereVisibleBeforeDragging=!1};
TT.prototype.handleClick=function(B,c,x){this.updateProgressBarRect();B.stopPropagation();B=kLy(this,c,B.clientX)*c.videoDuration;c.setState({playedTime:B});if(c.playerState!==2){var P;(P=x.triggerAutohideControlsAfterDelayFn)==null||P.call(x)}this.seekThrottle.fire(B,c,7)};
var kLy=function(B,c,x){B=B.getProgressBarRect(c);return _.vi(0,(x-B.left)/B.width,1)};
TT.prototype.resumeVideo=function(B){if(B.draggedTime<B.videoDuration){var c;(c=B.playerApi)==null||c.playVideo()}};
TT.prototype.onThrottledSeek=function(B,c,x){if(c=c.playerApi){var P;if((P=c.getVideoData())==null?0:P.isLive)P=this.getProgressState(c),B+=(P==null?void 0:P.seekableStart)||0;c.seekTo(B,void 0,void 0,void 0,x)}};
TT.prototype.getProgressState=function(B){var c=B==null?void 0:B.getPresentingPlayerType();return B==null?void 0:B.getProgressState(c)};var b$y,nPi,KGA,U2N,$2c,d26,q0B,CmN,h9z;b$y=_.rM(function(B){var c=B.progressBarProps;var x=B.config;var P=B.progressBarWidthPx;var Y=B.chapterData;var g=yYA(c,function(){return x().isShortsPage}),k=function(){return!c().isHovering&&!x().isShortsPage};
B={};var n=_.Kw("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(B.ytPlayerStoryboardHostMwebShorts=function(){return x().isShortsPage&&!1},B));
return _.U("yt-player-storyboard",null,_.U(_.m,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.U(_.m,{cond:g,then:function(b){return _.U(_.m,{cond:k,then:function(){return _.U("div",{class:n,"aria-hidden":"true"},_.U($2c,{props:c,config:x,isBigboard:!0,chapterData:Y}))},
else:function(){return _.U(nPi,{props:c,frame:b,config:x,progressBarWidthPx:P,chapterData:Y})}})}})}}))},"De");
_.jUi=_.rM(function(B){var c=B.progressBarProps;var x=yYA(c,B.isShortsPage);return _.U("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.U(_.m,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.U(_.m,{cond:x,then:function(P){return _.U(KGA,{frame:P,props:c,isBigboard:!0})}})}}))},"Ee");
nPi=_.rM(function(B){var c=B.props;var x=B.frame;var P=B.config;var Y=B.progressBarWidthPx;B=B.chapterData;var g={};g=_.Kw("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return P().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return P().useFadeInAnimation},g));
return _.U("div",{class:g,"aria-hidden":"true",style:function(){var k=c(),n=F2$(x()),b=Y();k=vnQ(k)/k.videoDuration;var d=b*k,q=n/2+6;n=b-(n/2+6);return"left: "+(d<=q?q/b*100:d>=n?n/b*100:k*100)+"%"}},_.U(_.m,{cond:function(){var k=c();
return!(P().isShortsPage&&k.videoDuration<15)},
then:function(){return _.U(KGA,{frame:x,props:c,isBigboard:!1})}}),_.U($2c,{props:c,
config:P,isBigboard:!1,chapterData:B}))},"Fe");
KGA=_.rM(function(B){var c=B.frame;var x=B.props;var P=B.isBigboard;var Y=function(){var n,b;return(b=(n=x().playerApi)==null?void 0:n.getVideoContentRect())!=null?b:{width:0,height:0}},g=function(){return F2$(c())},k=function(){var n=c();
return n?n.height/n.rows:0};
B={};B=_.Kw((B.ytPlayerStoryboardBigboardImageWrapper=P,B.ytPlayerStoryboardStoryboardImageWrapper=function(){return!P()},B));
return _.U("div",{class:B,style:function(){return"width: "+(P()?Y().width:g())+"px; height: "+(P()?Y().height:k())+"px;"}},_.U(U2N,{frame:c,
storyboardWidth:g,storyboardHeight:k,storyboardScale:function(){return(P()?Y().width:g())/g()}}))},"Ge");
U2N=_.rM(function(B){var c=B.frame;var x=B.storyboardWidth;var P=B.storyboardHeight;var Y=B.storyboardScale;var g=function(){var k=c().row,n=c().column,b=x(),d=P(),q=Y();return{left:-n*b*q,top:-k*d*q}};
return _.U("img",{src:function(){return c().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+c().width*Y()+"px; height: "+c().height*Y()+"px;"}})},"He");
$2c=_.rM(function(B){var c=B.props;var x=B.config;var P=B.isBigboard;var Y=B.chapterData;B={};B=_.Kw("ytPlayerStoryboardMetadata",(B.ytPlayerStoryboardMetadataBigboard=P,B));return _.U("div",{class:B},_.U(_.m,{cond:P,then:function(){return _.U(_.at,null,_.U(d26,{props:c,config:x}),_.U(_.m,{cond:function(){a:{var g=c();var k=x(),n=Y(),b;if((k==null?0:k.activeChapter)&&((b=_.t(k==null?void 0:k.activeChapter,ze))==null?0:b.title))g=!0;else{k=_.p(dxY(n));for(k=k.next();!k.done;k=k.next()){g=(k=_.t(k.value,
LQF))&&zgI(g,k);break a}g=!1}}return g},
then:function(){return _.U(q0B,{props:c,config:x,isBigboard:!0,chapterData:Y})}}))},
else:function(){return _.U(_.at,null,_.U(q0B,{props:c,config:x,isBigboard:!0,chapterData:Y}),_.U(d26,{props:c,config:x}))}}))},"Ie");
d26=_.rM(function(B){var c=B.props;var x=B.config;B={};B=_.Kw("ytPlayerStoryboardTimestamp",(B.ytPlayerStoryboardTimestampShorts=function(){return x().isShortsPage},B.ytPlayerStoryboardTimestampIsHovering=function(){return c().isHovering||x().isShortsPage&&!0},B));
return _.U("div",{class:B},_.U(_.at,null,function(){return _.SuX(vnQ(c()))}))},"Je");
q0B=_.rM(function(B){var c=B.props;var x=B.config;var P=B.isBigboard;var Y=B.chapterData;B={};P=_.Kw("ytPlayerStoryboardTitle",(B.ytPlayerStoryboardTitleBigboard=P,B));return _.U("div",{class:P},_.U(_.m,{cond:function(){return!x().isShortsPage},
then:function(){return _.U(CmN,{props:c,activeChapter:function(){return x().activeChapter},
chapterData:Y})}}))},"Ke");
CmN=_.rM(function(B){var c=B.props;var x=B.activeChapter;var P=B.chapterData;return _.U(_.at,null,_.U(_.mV,{each:function(){return dxY(P())},
keyBy:"INDEX"},function(Y){return _.U(_.at,null,_.U(_.m,{cond:function(){return _.t(Y(),LQF)&&zgI(c(),_.t(Y(),LQF))},
then:function(){return _.U(h9z,{timedMarker:function(){return _.t(Y(),LQF)}})}}))}),_.U(_.m,{cond:function(){var Y;
return x()&&((Y=_.t(x(),ze))==null?void 0:Y.title)},
then:function(Y){return _.U(_.RF,{text:Y,noPreWrap:!0})}}))},"Le");
h9z=_.rM(function(B){var c=B.timedMarker;return _.U(_.at,null,_.U("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.U(_.Vf,{icon:function(){return c().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.U(_.RF,{text:function(){return c().label},
noPreWrap:!0}))},"Me");_.m2N=_.rM(function(B){var c=B.progressBarProps;var x=B.playheadData;var P=B.config;B=_.Ho("yt-progress-bar");var Y=_.Ho("div"),g=_.Ho("div"),k=_.p(_.$D({width:0,left:0},void 0,"NcXsUb")),n=k.next().value,b=k.next().value,d=function(){g.value&&b(g.value.getBoundingClientRect())},q=function(){n().width<=0&&d();
return n()};
rU("resize",d);var C=new TT(q,function(){},function(){return 0},function(){},function(){},function(){}),h=function(){return c()};
k=_.p(_.$D(!1,void 0,"ZsF6Xc"));var V=k.next().value,N=k.next().value;k=_.qe(function(){N(!0);P().position===2?setTimeout(function(){d()},100):d()});
var l=_.qe(function(){N(!1);x2F(C,h)()}),E=_.qe(function(yw){P().doSeekOnClick&&iAF(C,h,P)(yw);
return!1}),S=_.qe(function(yw){DN8(C,h)(yw);
return!1}),M=_.qe(function(yw){rcz(C,h)(yw);
return!1}),f=_.qe(function(yw){eSr(C,h,P)(yw);
return!1}),Z=_.qe(function(yw){cOF(C,h,P)(yw);
return!1}),u=_.qe(function(){Pmi(C,h,P)();
return!1}),e=_.qe(function(){Y0i(C,h,P)();
return!1}),px=_.qe(function(){aml(C,h,P)();
return!1}),kI=_.qe(function(yw){gPz(h)(yw);
return!1});
rU("mousemove",sUo(C,h,P));rU("mouseup",pNA(C,h,P));_.lk(function(){wnI(Y.value);N(!1);d();pNA(C,h,P)()});
var Ul={};Ul=_.Kw("ytPlayerProgressBarHost",function(){return P().className},(Ul.ytPlayerProgressBarHostReadOnly=function(){return P().disableScrubbing},Ul.ytPlayerProgressBarHostHidden=function(){return P().hideProgressBar&&!V()},Ul.ytPlayerProgressBarHostLowerPlayer=function(){return P().position===0},Ul.ytPlayerProgressBarHostBottomEdge=function(){return P().position===1},Ul.ytPlayerProgressBarHostBottomInset=function(){return P().position===2},Ul.ytPlayerProgressBarHostCustom=function(){return P().position===
3},Ul));
var wC={},W$=_.Kw("ytPlayerProgressBarBackground",(wC.ytPlayerProgressBarBackgroundHide=function(){return P().position===2&&!V()&&!c().isDragging},wC));
wC={};wC=_.Kw("ytPlayerProgressBarDragContainer",(wC.ytPlayerProgressBarDragContainerBottomEdge=function(){return P().position===1},wC));
var El={};El=_.Kw("ytPlayerProgressBarProgressBar",(El.ytPlayerProgressBarProgressBarInset=function(){return P().position===2},El.ytPlayerProgressBarProgressBarInsetMinimized=function(){return P().position===2&&!V()&&!c().isDragging},El));
var H$=function(){return Math.floor(bK$(c())*100)};
return _.U("yt-progress-bar",{el:B,class:Ul},_.U(_.m,{cond:function(){return P().position===2},
then:function(){return _.U("div",{class:W$})}}),_.U("div",{el:Y,
"on:click":E,"on:touchstart":S,"on:touchmove":f,"on:mouseenter":k,"on:mousedown":M,"on:mouseleave":l,"on:mousemove":Z,"on:mouseup":e,"on:touchend":u,"on:touchcancel":px,"on:keydown":kI,class:wC,role:"slider","aria-valuenow":H$,"aria-valuetext":function(){return H$()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return c().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Up("SEEK_SLIDER")},_.U("div",{el:g,class:El},_.U(ZA6,{progressBarProps:c,config:P,highContrast:function(){return!!P().isInlinePlayback}}),_.U(_.m,{cond:function(){return P().chapterData&&quw(P().chapterData)},
then:function(){return _.U(MiN,{progressState:c,multiMarkersPlayerBarRenderer:function(){return P().chapterData},
progressBarWidth:function(){return n().width}})},
else:function(){return _.U(HAA,{progressBarProps:c,config:P})}}),_.U(f8y,{progressBarProps:c,
playheadData:x,interpolateDotPosition:function(){return P().position!==2},
hidePlayhead:function(){return P().playheadDotBehavior===1&&!V()}}))),_.U(b$y,{progressBarProps:c,
config:function(){return{activeChapter:lNX(c(),P().chapterData),getProgressBarWidthPx:function(){return q().width},
isShortsPage:!!P().isShortsPage,isInlinePlayer:!!P().isInlinePlayback,useFadeInAnimation:!!P().isInlinePlayback}},
progressBarWidthPx:function(){return n().width},
chapterData:function(){return P().chapterData}}))},"Ne");
_.m2N.idomCompat=!0;Object.assign({},_.CnY(),{setState:function(){},
domMeasurements:{},appApi:_.nnA(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Ttc;
_.VJN=_.rM(function(){var B,c=(B=_.yA(Gyx().playerApi))!=null?B:void 0;B=_.p(_.$D(!1,void 0,"HLFBmb"));var x=B.next().value,P=B.next().value;B=_.p(_.$D(!1,void 0,"lHH9bc"));var Y=B.next().value,g=B.next().value;B=_.p(_.$D(!1,void 0,"zsY7yd"));var k=B.next().value,n=B.next().value;B=_.p(_.$D(!1,void 0,"KeHQgc"));var b=B.next().value,d=B.next().value;B=_.p(_.$D(0,void 0,"gLLCj"));var q=B.next().value,C=B.next().value;B=_.p(_.$D(0,void 0,"s3RYkf"));var h=B.next().value,V=B.next().value;B=_.p(_.$D(!1,void 0,
"Dn608e"));var N=B.next().value,l=B.next().value;B=_.p(_.$D(0,void 0,"AnkH1b"));var E=B.next().value,S=B.next().value;B=_.p(_.$D(0,void 0,"QYNL0b"));var M=B.next().value,f=B.next().value;B=_.p(_.$D("",void 0,"Yzw45d"));var Z=B.next().value,u=B.next().value;B=_.p(_.$D(-1,void 0,"iiVI0c"));var e=B.next().value,px=B.next().value,kI=_.db(function(){var Ul={controlsVisible:x(),isOverlayHidden:Y(),shouldWaitToHideControls:k(),isDragging:b(),isHovering:N(),videoDuration:E(),playedTime:M(),videoId:Z(),draggedTime:h(),
hoveredTime:q(),playerState:e()};return Object.assign({},_.CnY(),Ul,{domMeasurements:{},setState:function(wC){wC.controlsVisible!==void 0&&P(wC.controlsVisible);wC.isOverlayHidden!==void 0&&g(wC.isOverlayHidden);wC.shouldWaitToHideControls!==void 0&&n(wC.shouldWaitToHideControls);wC.isDragging!==void 0&&d(wC.isDragging);wC.isHovering!==void 0&&l(wC.isHovering);wC.draggedTime!==void 0&&V(wC.draggedTime);wC.hoveredTime!==void 0&&C(wC.hoveredTime);wC.videoDuration!==void 0&&S(wC.videoDuration);wC.playedTime!==
void 0&&f(wC.playedTime);wC.videoId!==void 0&&u(wC.videoId);wC.playerState!==void 0&&px(wC.playerState)},
appApi:_.nnA(),playerApi:c})},void 0,"ZW7y9");
_.JR(function(){c==null||c.addEventListener("onVideoProgress",VaX(kI));c==null||c.addEventListener("onVideoDataChange",Tho(kI));c==null||c.addEventListener("onStateChange",hgq(kI))});
_.lP(function(){if(c==null?0:c.isReady())c==null||c.removeEventListener("onVideoProgress",VaX(kI)),c==null||c.removeEventListener("onVideoDataChange",Tho(kI)),c==null||c.removeEventListener("onStateChange",hgq(kI))});
return _.U("desktop-shorts-player-controls",null,_.U(Ttc,{playerControlsProps:kI}))},"Oe");
Ttc=_.rM(function(B){var c=B.playerControlsProps;return _.U("div",{class:"desktopShortsPlayerControlsWizHost"},_.U(_.m2N,{progressBarProps:c,config:function(){return{isShortsPage:!0,hideProgressBar:c().videoDuration<30&&c().playerState!==2&&!c().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.tJo=_.rM(function(B){function c(Ul){Ul!==0||C()?Ul>50&&(C()||!V())?(h(!1),N(!0)):Ul<=50&&(C()||V())&&(h(!1),N(!1)):h(!0)}
function x(Ul,wC){var W$;return _.X(function(El){if(El.nextAddress==1)return _.K(El,_.p3(),2);W$=El.yieldResult;wC&&W$?(W$.unMute(!0),Ul&&(L2Q(Ul,W$.getVolume()),E(W$.getVolume()))):W$&&(W$.mute(!0),Ul&&L2Q(Ul,0));_.Kq(El)})}
function P(Ul){var wC,W$;return _.X(function(El){if(El.nextAddress==1)return _.K(El,_.p3(),2);wC=El.yieldResult;W$=50;wC&&(W$=wC.getVolume(),wC.isMuted()?L2Q(Ul,0):L2Q(Ul,W$));E(W$);_.Kq(El)})}
var Y=B.orientation;B=_.Ho("desktop-shorts-volume-controls");var g=_.Ho("button"),k=_.fE("input"),n=_.p(_.$D(!1,void 0,"F6vt0d")),b=n.next().value,d=n.next().value,q=_.p(_.$D(!1,void 0,"S5PCqb"));n=q.next().value;q=q.next().value;var C=n,h=q;q=_.p(_.$D(!0,void 0,"Tgy4e"));n=q.next().value;q=q.next().value;var V=n,N=q;n=_.p(_.$D(50,void 0,"Dq3efd"));var l=n.next().value,E=n.next().value;n=_.db(function(){var Ul=C();return _.T("web_shorts_keyboard_enable_mute_shortcut")?Ul?_.Up("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Up("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Ul?_.Up("UNMUTE_VOLUME",void 0,"Unmute"):_.Up("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
q=_.db(function(){var Ul=C(),wC=V();return{sources:[{clientResource:{imageName:Ul?_.T("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":wC?_.T("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.T("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var S=_.db(function(){var Ul=l();return C()?Ul+"% volume muted":Ul+"% volume"},void 0,"kvkmyc"),M=_.db(function(){return Y()==="vertical_down"},void 0,"zaNsZ");
_.lk(function(){function Ul(){d(!0)}
function wC(){d(!1)}
k&&k.value&&(k.value.addEventListener("focus",Ul),k.value.addEventListener("focusout",wC),P(k.value).then(function(){c(Number(ZK$(k.value)))}));
g&&g.value&&(g.value.addEventListener("focus",Ul),g.value.addEventListener("focusout",wC));_.lP(function(){var W$;k==null||(W$=k.value)==null||W$.removeEventListener("focus",Ul);var El;k==null||(El=k.value)==null||El.removeEventListener("focusout",wC);var H$;g==null||(H$=g.value)==null||H$.removeEventListener("focus",Ul);var yw;g==null||(yw=g.value)==null||yw.removeEventListener("focusout",wC)})});
var f=_.qe(function(){if(k&&k.value){var Ul=Number(ZK$(k.value));Mal(Ul);E(Ul);k.value.style.setProperty("--gradient-percent",Ul+"%");c(Ul)}return!1}),Z=_.qe(function(){d(!0)}),u=_.qe(function(){k&&k.value&&(x(k.value,C()),h(!C()));
return!1}),e={},px={},kI={};
return _.U("desktop-shorts-volume-controls",{"on:pointerleave":_.qe(function(){d(!1)}),
class:_.Kw("ytdDesktopShortsVolumeControlsHost",(e.ytdDesktopShortsVolumeControlsHostVertical=M,e.ytdDesktopShortsVolumeControlsHostExpanded=b,e)),el:B},_.U(_.m,{cond:function(){return!M()},
then:function(){var Ul={};return _.U("div",{class:_.Kw("ytdDesktopShortsVolumeControlsBackgroundScrim",(Ul.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,Ul))})}}),_.U("div",{class:_.Kw((px.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=M,px))},_.U("button",{"aria-label":n,
title:n,el:g,"on:click":u,"on:pointerenter":Z,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},q?_.U(_.D9,{data:q,alt:n,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.U("div",{class:_.Kw("ytdDesktopShortsVolumeControlsSliderContainer",(kI.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,kI.ytdDesktopShortsVolumeControlsSliderContainerVertical=M,kI.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=M,kI.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return b()&&M()},kI))},_.U("input",{"aria-label":_.Up("VOLUME"),
title:_.Up("VOLUME"),el:k,"on:input":f,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":S,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.wNz=_.rM(function(B){var c=B.data;return _.U("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.U(_.$J,{command:function(){return c().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.U(_.m,{cond:function(){return c().iconName},
then:function(x){return _.U(_.Vf,{icon:x})}}),_.U("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return c().text}),_.U(_.m,{cond:function(){return c().showEndChevron},
then:function(){return _.U(_.Vf,{icon:"CHEVRON_RIGHT"})}})))},"Re");var NtS=_.rM(function(B){var c=B.data;var x=B.overlayDensity;B={};return _.U("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.U(_.IF,{data:function(){return c().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(P){var Y=P.data;
return _.U(_.Jf,{data:function(){return(x==null?void 0:x())===1?Object.assign({},Y(),{avatar:{avatarViewModel:Object.assign({},_.t(Y().avatar,_.f3),{avatarImageSize:"AVATAR_SIZE_48"})}}):Y()}})}}),_.U(_.IF,{data:function(){return c().avatarStackViewModel}},{avatarStackViewModel:function(P){return _.U(_.WT,{data:P.data})}}),_.U(_.RF,{className:_.Kw("ytReelChannelBarViewModelChannelName",(B.ytReelChannelBarViewModelChannelNameLarge=function(){return(x==null?void 0:x())===1},B)),
text:function(){return c().channelName},
linkInheritColor:!0,userInput:!0}),_.U("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.U(_.IF,{data:function(){return c().subscribeButtonViewModel}},{subscribeButtonViewModel:function(P){var Y=P.data;
return _.U(_.wA,{data:function(){return(x==null?void 0:x())===1?Object.assign({},Y(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Y().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Y()},
isOverlay:!1})},
buttonViewModel:_.Q7})),_.U("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.U(_.IF,{data:function(){var P,Y;return(Y=_.t((P=c())==null?void 0:P.sponsorButtonViewModel,aE3))==null?void 0:Y.sponsorButton}},{buttonViewModel:function(P){return _.U(_.Q7,{data:P.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var ImN=_.rM(function(B){var c=function(){var P;return(B==null?void 0:(P=B.overlayDensity)==null?void 0:P.call(B))===1?22:16},x={};
return _.U("yt-reel-multi-format-link-view-model",{class:_.Kw("ytReelMultiFormatLinkViewModelHost",(x.ytReelMultiFormatLinkViewModelHostTall=!0,x.ytReelMultiFormatLinkViewModelHostLarge=function(){var P;return((P=B.overlayDensity)==null?void 0:P.call(B))===1},x))},_.U(_.$J,{ariaLabel:function(){return B.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.vH(B.data().command)},
dangerousStopPropagation:!1},_.U("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.U(_.m,{cond:function(){return B.data().icon},
then:function(P){return _.U(_.D9,{data:P,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:c})}}),_.U(_.RF,{text:function(){return B.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
ImN.idomCompat=!0;var JOF=_.rM(function(B){var c=B.data;var x=B.overlayDensity;var P=_.Ho("yt-shorts-suggested-action-view-model");B=_.p(_.$D(!1,void 0,"xDqzhe"));var Y=B.next().value,g=B.next().value;B=_.p(_.$D(!1,void 0,"LI9CFd"));var k=B.next().value,n=B.next().value,b=function(){return c().isMultiLineSa},d=_.jA(qwx,function(){var f,Z;
return(Z=(f=c().toggleableContent)==null?void 0:f.entityKey)!=null?Z:""}),q=function(){var f,Z,u;
return(u=c().toggleableContent)!=null&&u.entityKey?(Z=(f=d())==null?void 0:f.value)!=null?Z:!1:!1},C=function(){var f,Z,u,e,px,kI,Ul,wC,W$,El,H$;
return c().toggleableContent?q()?(f=c().toggleableContent)==null?void 0:f.toggledData:(Z=c().toggleableContent)==null?void 0:Z.untoggledData:{primaryText:(wC=(u=c().defaultContent)==null?void 0:u.primaryText)!=null?wC:c().text,secondaryText:(e=c().defaultContent)==null?void 0:e.secondaryText,onTapCommand:(W$=(px=c().defaultContent)==null?void 0:px.onTapCommand)!=null?W$:c().onTapCommand,icon:(El=(kI=c().defaultContent)==null?void 0:kI.icon)!=null?El:c().icon,image:(H$=(Ul=c().defaultContent)==null?
void 0:Ul.image)!=null?H$:c().image}},h=function(){return b()?c().trailingTapTarget:void 0};
B=function(f,Z){return function(){return Y()?Z:f}};
var V={leadingSection:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};B={};B=_.Kw((B.ytShortsSuggestedActionViewModelStaticHost=function(){return!b()},B.ytShortsSuggestedActionViewModelDynamicHost=b,B.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return b()&&k()},B.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return b()&&!k()},B));
_.lk(function(){if(b()){var f=0,Z;if((Z=c().animationParams)==null?0:Z.shouldExpand){var u,e;f=((e=(u=c().animationParams)==null?void 0:u.expansionDelaySecs)!=null?e:0)*1E3}var px,kI=((px=c().animationParams)==null?0:px.shouldExpand)?setTimeout(function(){g(!0)},f):void 0,Ul,wC;
f=((Ul=c().animationParams)==null?0:Ul.visibilityDelaySecs)?((wC=c().animationParams)==null?NaN:wC.visibilityDelaySecs)*1E3:0;var W$=setTimeout(function(){n(!0)},f);
_.lP(function(){kI&&clearTimeout(kI);clearTimeout(W$)})}});
var N=function(f){_.Gl(f,Object.assign({},{form:{element:P.value}}))},l=_.qe(function(){var f,Z=(f=C())==null?void 0:f.onTapCommand;
Z&&N(Z)}),E=_.qe(function(){var f,Z;
if(f=(Z=h())==null?void 0:Z.onTapCommand)return N(f),!1}),S=_.TU({"vertical-align":"bottom",
"border-radius":function(){var f;return b()?((f=c().defaultContent)==null?0:f.isCircleImage)?"50%":"4px":"0px"},
width:function(){var f,Z,u;return b()&&((f=c().defaultContent)==null?0:f.imageSize)?((u=(Z=c().defaultContent)==null?void 0:Z.imageSize)!=null?u:24)+"px":null},
height:function(){var f,Z,u;return b()&&((f=c().defaultContent)==null?0:f.imageSize)?((u=(Z=c().defaultContent)==null?void 0:Z.imageSize)!=null?u:24)+"px":null}}),M={};
return _.U("yt-shorts-suggested-action-view-model",{class:B,el:P},_.U("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.U("button",{class:_.Kw(function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var f;
return(f=c().useFullRoundedBorder)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!h()&&b()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":b()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var f;
return(f=c().disableFixedHeight)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(M.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(x==null?void 0:x())===1},M)),
"on:click":l},_.U(_.Ne,{model:{color:4}}),_.U("div",{class:_.Kw(function(){return b()?V.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.U(_.m,{cond:function(){var f;
return(f=C())==null?void 0:f.image},
then:function(f){return _.U(_.D9,{data:f,alt:"",className:function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:S})}}),_.U(_.m,{cond:function(){var f,Z;
return(f=C())==null?void 0:(Z=f.icon)==null?void 0:Z.iconType},
then:function(f){return _.U(_.Vf,{icon:f,active:q,className:function(){return b()?Y()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.U("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.U(_.m,{cond:function(){var f;
return(f=C())==null?void 0:f.primaryText},
then:function(f){return _.U("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.U(_.RF,{text:f}))}}),_.U(_.m,{cond:function(){var f;
return(f=C())==null?void 0:f.secondaryText},
then:function(f){return _.U("div",{class:V.secondaryText},_.U(_.RF,{text:f}))}}))),_.U(_.m,{cond:h,
then:function(f){return _.U("div",{class:V.trailingSection,"aria-label":function(){var Z;return(Z=f().a11yLabel)!=null?Z:""},
"on:click":E,role:"button",tabindex:0},_.U(_.Ne,{model:{color:4}}),_.U(_.Vf,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var WGc=_.rM(function(B){var c=B.data;var x=B.overlayDensity;var P=_.Ho("yt-shorts-video-title-view-model");B=_.qe(function(k){if(_.Mv(_.Gj(k),P.value,["A".toString()]))return!1;(k=c().truncatedTextOnTapCommand)&&_.Gl(k);return!1});
var Y={},g={};return _.U("yt-shorts-video-title-view-model",{el:P,class:_.Kw("ytShortsVideoTitleViewModelHost",(Y.ytShortsVideoTitleViewModelHostClickable=function(){return!!c().truncatedTextOnTapCommand},Y)),
"on:click":B},_.U("h2",{class:_.Kw("ytShortsVideoTitleViewModelShortsVideoTitle",(g.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(x==null?void 0:x())===1},g))},_.U(_.RF,{text:function(){return c().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.lmi=_.rM(function(B){var c=B.data;var x=B.overlayDensity;return _.U("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.U(_.IF,{data:function(){return c().metadataItems}},{badgeViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.Bz,{data:P.data}))},
playerDisclosureViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.wNz,{data:P.data}))},
shortsSuggestedActionViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(JOF,{data:P.data,overlayDensity:x}))},
reelChannelBarViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(NtS,{data:P.data,overlayDensity:x}))},
reelMultiFormatLinkViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(ImN,{data:P.data,overlayDensity:x}))},
shortsVideoTitleViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(WGc,{data:P.data,overlayDensity:x}))},
reelSoundMetadataViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.zQo,{data:P.data,overlayDensity:x}))},
toggleButtonViewModel:function(P){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.Jb,{data:P.data}))}}))},"We");var EPy=_.rM(function(B){var c=_.uF(B,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),x=c.size,P=c.onTap,Y=c.disabled,g=c.tooltipText;return _.U("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.U(B8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:x(),disabled:Y(),tooltipText:g(),onTap:P}},
iconName:B.iconType}))},"Xe"),O$N=_.rM(function(B){function c(q){q.stopPropagation();
q.code==="ArrowUp"?(q.preventDefault(),iKd(n.value)):q.code==="ArrowDown"?(q.preventDefault(),AYX(n.value)):q.code==="KeyM"?HKo():(q.code==="KeyK"||q.code==="Space")&&fNI(b())}
var x=_.uF(B,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});B=x.previousButtonDisabled;var P=x.nextButtonDisabled,Y=x.data,g=x.playabilityStatus,k=x.previewThumbnail,n=_.Ho("ytd-shorts-miniplayer-overlay"),b=_.FB(_.k3C),d;_.JR(function(){(d=_.ly(n.value))&&d.addEventListener("keydown",c)});
_.lP(function(){var q;(q=d)==null||q.removeEventListener("keydown",c)});
x=function(){var q,C,h;return(q=Y())==null?void 0:(C=q.reelPlayerOverlayRenderer)==null?void 0:(h=C.likeButton)==null?void 0:h.likeButtonRenderer};
return _.U("ytd-shorts-miniplayer-overlay",{el:n,class:"ytdShortsMiniplayerOverlayHost"},_.U("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.TU({"background-image":function(){var q=k();return q?'url("'+_.YU(q.thumbnails)+'")':""}})}),_.U("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.U("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.U(EPy,{iconType:function(){var q=b();
return q===2||q===-1||q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){fNI(b())},
tooltipText:function(){var q=b();return q===1||q===3?_.Up("PLAYER_LABEL_PAUSE"):_.Up("PLAYER_LABEL_PLAY")}}),_.U(_.tJo,{orientation:"horizontal_right"})),_.U("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.U(EPy,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:B,onTap:function(){iKd(n.value)},
tooltipText:_.Up("PREVIOUS_VIDEO_LABEL")}),_.U(EPy,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:P,onTap:function(){AYX(n.value)},
tooltipText:_.Up("NEXT_VIDEO_LABEL")}),_.T("web_shorts_pip_like_button")?_.U("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.U(aiI,{buttonTooltipPosition:"left",data:x,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.U("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.U(_.m,{cond:function(){var q,C;return _.t((q=Y())==null?void 0:(C=q.reelPlayerOverlayRenderer)==null?void 0:C.metapanel,
_.cU5)},
then:function(q){return _.U("div",{class:_.Kw("ytdShortsMiniplayerOverlayInteractive")},_.U(_.lmi,{data:q}))}})),_.U("div",{class:_.Kw("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var q;return!((q=Y())==null||!q.adsOverlay)||g()&&!esw(g())}},_.U("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.U(_.VJN,null)))),_.U(_.m,{cond:function(){var q=Y(),C,h;
q=_.t(q==null?void 0:(C=q.adsOverlay)==null?void 0:(h=C.fulfillmentContent)==null?void 0:h.fulfilledLayout,OCI);return _.t(q==null?void 0:q.renderingContent,zvF)},
then:function(q){return _.U("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.U(aoZ,{data:q}))}}))},"Ye");var u3X=_.rM(function(){var B=_.p(_.$D(new _.nH(NaN,NaN),void 0,"HSMFk")),c=B.next().value,x=B.next().value;B=_.p(_.$D(!1,void 0,"uaAxwf"));var P=B.next().value,Y=B.next().value,g=_.p(_.$D(!1,void 0,"nVSwef"));B=g.next().value;var k=g.next().value,n=_.cp().resolve(_.Ge).miniplayerPropSignalMap[0],b=n.data,d=n.shortsData,q=n.nextButtonDisabled,C=n.shortsPreviewThumbnail,h=n.previousButtonDisabled,V=n.externalPlaylistData;g=n.toastData;var N=n.playabilityStatus,l=n.isDisabled,E=n.playerVe,S=n.closeVe;
n=_.FB(_.C2);_.Z6("yt-pip-window-resized",function(u){x(u)});
_.Z6("yt-activate-pip-miniplayer",function(){return _.X(function(u){k(!0);_.Kq(u)})});
var M=function(){var u;return!((u=V())==null||!u.contents)&&P()},f=function(){var u=c(),e=!!b(),px=M();
u=u.clone();e&&(u.height-=76);px&&(u.height-=285);return u},Z=function(){Y(!P())};
_.IO(function(){var u=E(),e=_.Wf(11),px=_.Jg(11);e&&px&&u&&(_.Gq(e,px,u),px=S())&&(_.M9(e,u,[px]),_.Z1(e,[px]))},"HPkp0c");
return _.U("ytd-pip-container",{class:"ytdPipContainerHost"},_.U(_.m,{cond:B,then:function(){return _.U(_.SF8,{isDisabled:l,playabilityStatus:N,size:f})}}),_.U(_.m,{cond:b,
then:function(){return _.U(_.vzz,{data:b,expanded:P,onExpandClick:Z,playlistData:V})}}),_.U(_.m,{cond:M,
then:function(){return _.U("div",{class:"ytdPipContainerPlaylistPanel"},_.U(_.Pxm,{data:V,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.U(_.m,{cond:n,
then:function(){return _.U(O$N,{data:d,nextButtonDisabled:q,previousButtonDisabled:h,playabilityStatus:N,previewThumbnail:C})}}),_.U("div",{class:"ytdPipContainerToast"},_.U(_.ycz,{toastData:g})))},"Ze");var t5=function(B,c){var x=this;this.pipController=B;this.JSC$16558_clientRoot=c;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=sV$();this.watchPipEnabled=_.T("web_watch_pip");this.shortsPipEnabled=_.T("web_shorts_pip");this.JSC$16558_watchWhileEnabled=_.T("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;_.C0(_.uG(),_.aYX,function(P){x.isSingleOptionSurveyActive=P});
this.JSC$16558_onPlayerPlayVideo=this.JSC$16558_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);_.Ma(_.Gr.getInstance(),this.miniplayerServiceActionMap,this.JSC$16558_clientRoot);B.pictureInPictureSupported()&&_.JP("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},vi9,LG8,S0F,Z$c,H$6,SX3;
t5.prototype.handleMediaSessionPipActivation=function(){var B=this,c;return _.X(function(x){_.dd().mediaSessionPipActivation=!0;c=_.cp().resolve(_.rV);return c.isOnWatch()&&B.watchPipEnabled?(_.dd().watchPipActivation=!0,_.oPr(B,c.data),x.jumpTo(0)):c.isOnShorts()&&B.shortsPipEnabled?(_.dd().shortsPipActivation=!0,_.QUs(B),x.jumpTo(0)):B.isMiniplayerActive()&&B.watchPipEnabled&&!B.watchWhileMode?_.K(x,FGz(B),0):x.jumpTo(0)})};
var FGz=function(B){var c,x,P,Y;return _.X(function(g){if(g.nextAddress==1)return c=!B.miniplayerToPipMode,x=B.playerElement,P=B.miniplayerData,Y=B.watchResponse,_.K(g,B.deactivate(),2);if(g.nextAddress!=3)return c?(_.dd().mediaSessionPipActivation=!0,_.dd().watchPipActivation=!0):_.dd().miniplayerButtonActivation=!0,_.K(g,B.activate(x,P,Y),3);B.miniplayerToPipMode=c;_.Kq(g)})};
t5.prototype.onDownloadedVideoDeleted=function(B){var c,x=_.t((c=this.miniplayerData)==null?void 0:c.watchEndpoint,_.fN),P,Y;x&&((P=this.watchResponse)==null?void 0:(Y=P.playerResponse)==null?void 0:Y.offlineState)!==void 0&&(c=x.videoId)&&B&&c===B&&this.close()};
t5.prototype.onShowMiniplayerCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C,h,V,N;return _.X(function(l){switch(l.nextAddress){case 1:return x=_.t(B,ZRt),Y=(P=x)==null?void 0:P.miniplayerCommand,g=_.t(Y,_.fN),Y&&g&&!c.active?_.K(l,_.Nm.getInstance(),2):l.return();case 2:return k=l.yieldResult,_.K(l,(n=k)==null?void 0:n.get("yt-miniplayer-shown-video-id"),3);case 3:b=l.yieldResult;d=g.videoId;if(!d||b===d)return l.return();q=_.cp().resolve(_.rV);if(q.isOnWatch())return _.Ob(Error("Fj")),l.return();
C={channelItem:{externalId:btoa(d)}};c.readyToResumeVe=_.JW(121253,void 0,void 0,C);_.dd().showMiniplayerCommandActivation=!0;return _.K(l,_.ySd(c,Y,!0),4);case 4:return c.active?(_.w3(c,{readyToResumeVe:c.readyToResumeVe,continueWatching:!0,premiumBranding:!((h=x)==null||!h.showPremiumBranding)}),_.T("ytd_miniplayer_to_wiz")&&_.w3(c,{isReadyToResume:!0}),c.isReadyToResume=!0):_.w3(c,{continueWatching:!0,premiumBranding:!((V=x)==null||!V.showPremiumBranding)}),_.K(l,(N=k)==null?void 0:N.set("yt-miniplayer-shown-video-id",
g.videoId),5);case 5:c.readyToResumeVe=void 0,_.Kq(l)}})};
t5.prototype.init=function(B){this.miniplayerEl?_.Ob(new _.mc("MiniplayerService already initialized.")):this.miniplayerEl=B};
t5.prototype.isInitialized=function(){var B=!!this.miniplayerEl;B||_.Ob(new _.mc("MiniplayerService used before initialized."));return B};
_.oPr=function(B,c){if(B.isInitialized()){var x=_.Xn7(c.response,c.playerResponse),P=_.cp().resolve(_.rV).getPlayerFromWatch();_.dd().currentEndpoint=x.watchEndpoint||null;B.activate(P,x,c)}};
_.QUs=function(B){if(B.isInitialized()){var c=_.cp().resolve(_.rV).getPlayerFromShorts();B.activate(c)}};
vi9=function(B,c){var x;(x=!B.isInitialized())||(x=_.cp().resolve(_.rV).isOnWatch()&&B.watchPipMode,x=!(B.isMiniplayerActive()&&(_.dd().userActivation||_.dd().lockupActivation||x)));if(x)return!1;vPr(B,c)?_.mB(B):SX3(B,c);return B.watchPipMode?!_.cp().resolve(_.rV).isOnWatch():!0};
t5.prototype.isMiniplayerActive=function(){return this.active};
var vPr=function(B,c){var x;c=(x=_.t(c,_.fN))==null?void 0:x.videoId;var P,Y;B=(Y=_.t((P=B.miniplayerData)==null?void 0:P.watchEndpoint,_.fN))==null?void 0:Y.videoId;return c!=null&&c===B};
t5.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.aJ(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.gj(this.miniplayerEl,"yt-navigate-home-action"))};
_.ySd=function(B,c,x,P){x=x===void 0?!1:x;var Y,g,k;return _.X(function(n){switch(n.nextAddress){case 1:if(B.active){n.jumpTo(2);break}Y=_.cp().resolve(_.rV);if(k=(g=B.playerElement)!=null?g:Y.getPlayerFromWatch()){n.jumpTo(3);break}return _.K(n,_.cp().resolve(_.Yx),4);case 4:k=Y.getPlayerFromWatch();case 3:if(!k){_.Ob(Error("Hj"));n.jumpTo(2);break}return _.K(n,B.activate(k,P),2);case 2:return B.active?_.K(n,SX3(B,c,x),0):n.return()}})};
t5.prototype.activate=function(B,c,x){var P=this,Y,g,k,n,b,d,q,C,h;return _.X(function(V){switch(V.nextAddress){case 1:if(!P.isInitialized())return V.return();if(!B)return _.Ob(Error("Hj")),V.return();if(_.BZd()||P.isMiniplayerActive())var N=!0;else N=_.dd().watchPipActivation||_.dd().watchWhileActivation,_.cp().resolve(_.rV).isOnWatch()&&!N?(_.Ob(new _.mc("miniplayer activated on watch page")),N=!0):N=_.dd().watchWhileActivation?P.userDeactivatedWatchWhile||!!document.pictureInPictureElement||oZO():
!1;if(N)return eVZ(),V.return();Y=_.dd().mediaSessionPipActivation;g=_.dd().shortsPipActivation;k=_.dd().watchPipActivation;b=(n=_.dd().watchWhileActivation)||k;d=k||g;if(!P.pictureInPictureEnabled()||!d){V.jumpTo(2);break}return _.K(V,z96(P,Y),3);case 3:if(!V.yieldResult)return _.Ob(Error("Gj")),eVZ(),V.return();case 2:return P.setActive(!0),P.watchResponse=x,P.playerElement=B,P.updateMiniplayerData(c),_.K(V,S0F(P,B),4);case 4:if(!P.active)return _.Ob(new _.mc("miniplayer deactivated during activation")),
P.removePlayerListeners(),V.return();N=_.cp().resolve(_.vK);N.addEventListener("yt-navigate",_.$9(P,P.onPlaylistNavigate));N.addEventListener("yt-playlist-data-updated",_.$9(P,P.JSC$16558_onPlaylistDataUpdated));P.JSC$16558_onPlaylistDataUpdated();eVZ();P.JSC$16558_watchWhileEnabled&&_.yOs(P,n);P.pictureInPictureEnabled()&&P.shortsPipEnabled&&(P.shortsPipMode=g,_.uG().dispatch(yun(P.shortsPipMode)));P.pictureInPictureEnabled()&&P.watchPipEnabled&&(P.watchPipMode=k,_.FCY(P.handleMediaSessionPipActivation));
P.player&&(q=P.player.getPlayerState(),C=q===1,_.uG().dispatch(Aum(q)),_.sp(P.miniplayerEl,"yt-miniplayer-play-state-changed",[C]),_.dd().isVideoPlaying=C);_.sp(P.miniplayerEl,"yt-miniplayer-endpoint-changed");GLA(P);_.MJN(P);return P.shortsPipMode||P.watchPipMode?_.K(V,_.pW(P.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.T("ytd_miniplayer_to_wiz")?_.K(V,_.pW(P.miniplayerEl,"yt-activate-miniplayer",[b]),6):_.K(V,_.pW(P.miniplayerEl,"yt-activate-miniplayer-action",[B,b]),6);case 6:if(P.watchResponse&&
!_.T("miniplayer_copy_screen_on_activation_killswitch")){N=P.getScreenLayer();var l=_.Wf(0),E=Ks7(0);l&&E&&(_.En(l,E,N),N===0&&ncw(void 0,0))}LG8(P);Z$c(P,!0);(h=P.getPlayerElement())==null||h.focusOnPlayer();_.Kq(V)}})};
t5.prototype.updateMiniplayerData=function(B){this.miniplayerData=B;_.w3(this,{data:B})};
_.MJN=function(B){var c,x,P=((c=B.miniplayerData)==null?void 0:(x=c.miniplayerRenderer)==null?void 0:x.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";c=B.watchWhileMode||B.watchPipMode?P&&!_.cp().resolve(_.rV).isOnWatch():P;_.w3(B,{isDisabled:c});var Y,g;x=_.t((Y=B.miniplayerData)==null?void 0:(g=Y.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.J3);c&&x&&_.cp().resolve(_.Vi).openSheet({openPopupActionCommand:{openPopupAction:x}},B.miniplayerEl)};
LG8=function(B){if(B.watchResponse&&!H$6(B)){var c,x=(c=B.watchResponse.playerResponse)==null?void 0:c.trackingParams;x&&(_.w3(B,{expandVe:_.JW(35989),closeVe:_.JW(34699),readyToResumeCloseVe:_.JW(131070),repositionVe:_.JW(226204),resizeVe:_.JW(226205)}),_.w3(B,{playerVe:_.VF(x)}))}};
S0F=function(B,c){return _.X(function(x){if(x.nextAddress==1)return c.preparePlayer(),_.K(x,c.getPlayerPromise(),2);B.player=x.yieldResult;B.player&&(B.player.addEventListener("onPlayVideo",B.JSC$16558_onPlayerPlayVideo),B.player.addEventListener("onCloseMiniplayer",B.onPlayerCloseMiniplayer),B.player.addEventListener("onExpandMiniplayer",B.onPlayerExpandMiniplayer),B.player.addEventListener("onStateChange",B.onPlayerStateChange));_.Kq(x)})};
_.a=t5.prototype;_.a.JSC$16558_onPlayerPlayVideo=function(B){var c=B.sessionData&&"autonav"in B.sessionData,x;B.sessionData&&B.sessionData.itct&&(x=B.sessionData.itct);var P=B.watchEndpoint;c=P&&c?_.WS7(P,x):_.B3(B.videoId,B.listId||void 0,x);B.sessionData&&_.Da(_.t(c.commandMetadata,_.Br).url,B.sessionData);SX3(this,c)};
_.a.onPlayerExpandMiniplayer=function(){_.mB(this)};
_.a.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.a.onPlayerStateChange=function(){if(this.player){var B=this.player.getPlayerState(),c=B===1;_.uG().dispatch(Aum(B));_.uG().dispatch(_.ruQ(B));_.sp(this.miniplayerEl,"yt-miniplayer-play-state-changed",[c]);_.dd().isVideoPlaying=c;if(B===0){c=!_.eP.getInstance().isAutoplaySetExplicitly();var x,P,Y,g,k,n,b=(x=this.watchResponse.response)==null?void 0:(P=x.contents)==null?void 0:(Y=P.twoColumnWatchNextResults)==null?void 0:(g=Y.autoplay)==null?void 0:(k=g.autoplay)==null?void 0:(n=k.autoplayExplicitChoiceDialogRenderer)==
null?void 0:n.confirmDialogRenderer;c&&b&&this.player.setAutonavState(1)}B===0&&this.watchWhileMode&&this.deactivate()}};
_.a.onPlaylistNavigate=function(B,c){var x=this,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1){if(!_.t(c.endpoint,_.fN))return q.return();_.dd().currentEndpoint=c.endpoint;_.sp(x.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.cp().resolve(_.rV).isOnWatch()&&(x.watchWhileMode||x.watchPipMode))return q.return();B.stopPropagation();(g=(Y=_.t((P=c.endpoint)==null?void 0:P.commandMetadata,_.Br))==null?void 0:Y.url)&&c.tempData&&!_.wW.isEmpty(c.tempData)&&_.Da(g,c.tempData);k={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};n=new e83(function(){return x.getPlayerElement()},k,{layer:x.getScreenLayer()});
b=function(C){n.processChunk({endpoint:c.endpoint,data:C})};
fmz(x);x.miniplayerFetchRequest=i$o(x,c.endpoint,b);_.kM(q,2);return _.K(q,x.miniplayerFetchRequest,4)}if(q.nextAddress!=2)return d=q.yieldResult,AOS(x,d),_.Gw(q,0);_.be(q);_.Kq(q)})};
_.a.JSC$16558_onPlaylistDataUpdated=function(){var B=_.cp().resolve(_.vK).getPlaylistData();this.hasPlaylistData=!!B;_.w3(this,{externalPlaylistData:B||{}})};
_.a.close=function(B){if(this.isInitialized())if(B){if(!((this.watchWhileMode||this.watchPipMode)&&_.cp().resolve(_.rV).isOnWatch()||this.shortsPipMode)){var c;(c=this.getPlayerElement())==null||c.stop()}this.deactivate()}else _.Mm().closeMiniplayer(this.miniplayerEl)};
_.a.deactivate=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){if(!c.isInitialized()||!c.active)return k.return();c.setActive(!1);fmz(c);(x=!!B&&vPr(c,B))&&c.isSingleOptionSurveyActive&&_.gj(c.miniplayerEl,"yt-show-watch-page-survey",[c.isSingleOptionSurveyActive]);return _.K(k,uey(c),2)}if(k.nextAddress!=3){Z$c(c,!1);c.isReadyToResume=!1;c.watchResponse=void 0;c.updateMiniplayerData(void 0);c.shortsPipMode&&(c.shortsPipMode=!1,_.uG().dispatch(yun(c.shortsPipMode)),UY6(c.pipController),
(P=c.player)==null||P.setInternalSize(NaN,NaN));c.watchPipMode&&(c.watchPipMode=!1,UY6(c.pipController));(Y=c.watchWhileMode)&&_.yOs(c,!1);c.removePlayerListeners();var n=_.cp().resolve(_.vK);n.removeEventListener("yt-navigate",_.$9(c,c.onPlaylistNavigate));n.removeEventListener("yt-playlist-data-updated",_.$9(c,c.JSC$16558_onPlaylistDataUpdated));_.dd().currentEndpoint=null;_.sp(c.miniplayerEl,"yt-miniplayer-endpoint-changed");c.playerElement=null;eVZ();return c.shortsPipMode||c.watchPipMode?k.jumpTo(3):
_.K(k,_.pW(c.miniplayerEl,_.T("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[x,Y]),3)}(g=c.player)==null||g.setInternalSize(NaN,NaN);c.player=null;_.Kq(k)})};
var uey=function(B){var c;return _.X(function(x){c=_.cp().resolve(_.rV);return B.shortsPipMode?_.K(x,c.movePlayerToShorts(B.playerElement),0):_.K(x,c.movePlayerToWatch(B.playerElement),0)})};
t5.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16558_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
t5.prototype.setActive=function(B){this.active=B;this.isSingleOptionSurveyActive?_.gj(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.gj(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.uG().dispatch(_.YN({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.yOs=function(B,c){B.watchWhileMode=c;_.w3(B,{watchWhile:c})};
Z$c=function(B,c){if(!H$6(B))if(B.shortsPipMode||B.watchPipMode){var x;(x=B.player)==null||x.setDocumentPictureInPicture(c)}else{var P;(P=B.player)==null||P.setMinimized(c)}};
H$6=function(B){return B.watchWhileMode&&_.T("kevlar_watch_while_counterfactual")};
_.mB=function(B){var c;return _.X(function(x){switch(x.nextAddress){case 1:if(!B.isInitialized())return x.return();_.kM(x,2);return _.K(x,B.miniplayerFetchRequest,4);case 4:_.Gw(x,3);break;case 2:_.be(x);case 3:B.watchResponse&&B.miniplayerData&&B.miniplayerData.watchEndpoint?(c={url:B.watchResponse.url,endpoint:B.miniplayerData.watchEndpoint,data:B.watchResponse,miniplayer:!0},_.aJ(B.miniplayerEl,"yt-navigate-cache",c)):B.miniplayerData&&B.miniplayerData.watchEndpoint&&_.aJ(B.miniplayerEl,"yt-navigate",
{endpoint:B.miniplayerData.watchEndpoint}),_.Kq(x)}})};
SX3=function(B,c,x){var P,Y,g,k;return _.X(function(n){if(n.nextAddress==1){if(vPr(B,c))return n.return();_.dd().currentEndpoint=c;_.sp(B.miniplayerEl,"yt-miniplayer-endpoint-changed");_.sp(B.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.dd().isVideoPlaying=!1;P={clientParams:{miniplayer:!0,autoSaveToQueue:!x}};Y=new e83(function(){return B.getPlayerElement()},P,{layer:B.getScreenLayer(),
parentLayer:0},void 0,B.readyToResumeVe);g=function(b){var d,q,C=Object.assign({},(d=b.playerResponse)==null?void 0:(q=d.playerConfig)==null?void 0:q.playbackStartConfig,{startPaused:!0}),h;x&&((h=b.playerResponse)==null?0:h.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=C);Y.processChunk({endpoint:c,data:b})};
fmz(B);B.miniplayerFetchRequest=i$o(B,c,g);_.kM(n,2);return _.K(n,B.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return k=n.yieldResult,AOS(B,k),_.Gw(n,0);_.be(n);_.Kq(n)})};
t5.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var fmz=function(B){B.miniplayerFetchRequest&&(B.miniplayerFetchRequest.cancel&&B.miniplayerFetchRequest.cancel("Active request obsolete"),B.miniplayerFetchRequest=null)},i$o=function(B,c,x){var P=_.TC.instance,Y,g=(Y=_.t(c.commandMetadata,_.Br))==null?void 0:Y.url,k;
Y=!g||_.T("disable_miniplayer_tempdata")?{}:(k=BBx(g))!=null?k:{};return ZO(P,c,Y,window.location.href,"watch",function(n,b){x(b)},function(n){return n!==B.miniplayerFetchRequest})},AOS=function(B,c){var x;
_.X(function(P){if(!c)return P.return();B.watchResponse=c;LG8(B);GLA(B);x=_.Xn7(c.response,c.playerResponse);if(B.isMiniplayerActive()){c.response&&(B.playerElement.watchNextData=c.response);var Y=_.wW.getValueByKeys.apply(_.wW,[c].concat(_.wq(kA9)));_.wW.getValueByKeys.apply(_.wW,[c].concat(_.wq(KP3)))&&Y&&_.cp().resolve(_.vK).setAutoplayRenderer(Y);if(Y)if(_.T("kevlar_is_pupi_enabled")){var g,k,n,b,d,q=((g=c.response)==null?0:(k=g.playerOverlays)==null?0:(n=k.playerOverlayRenderer)==null?0:(b=n.autonavToggle)==
null?0:(d=b.autoplaySwitchButtonRenderer)==null?0:d.enabled)?2:1;_.eP.getInstance().setState(q,!1,!1)}else g=bO7()?2:1,(q=B.player)==null||q.setAutonavState(g);B.updateMiniplayerData(x);_.MJN(B)}_.Kq(P)})},GLA=function(B){var c,x,P=(c=B.watchResponse)==null?void 0:(x=c.playerResponse)==null?void 0:x.playabilityStatus,Y;
c=P==null?void 0:(Y=P.miniplayer)==null?void 0:Y.miniplayerRenderer;(c==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&c.minimizedEndpoint&&_.kC(B.miniplayerEl,[c.minimizedEndpoint]);_.w3(B,{miniplayerRenderer:c,playabilityStatus:P})};
t5.prototype.openToast=function(B,c){_.w3(this,{toastData:{data:B,label:c}})};
_.w3=function(B,c){var x=B.miniplayerEl,P;for(P in c)x[P]=c[P];(0,B.miniplayerPropSignalMap[1])(c)};
t5.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var B;return this.playerElement?this.playerElement:(B=_.Y9(this.miniplayerEl).querySelector("#player-container"))==null?void 0:B.firstElementChild};
t5.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var z96=function(B,c){c=c===void 0?!1:c;var x,P,Y,g,k,n,b;return _.X(function(d){if(d.nextAddress==1){x=navigator.userActivation.isActive||c;if(!x||!B.pictureInPictureSupported())return d.return(!1);P=D2s(B);Y=P.width;g=P.height;return _.K(d,B.pipController.openWindow({width:Y,height:g}),2)}k=d.yieldResult;n=B.pipController.getWindow();if(!n||!k)return d.return(!1);n.document.body.style.overflow="hidden";b=Dxq(n);dYS(B.pipController,function(){rO6(B);b()});
return d.return(!0)})},D2s=function(B){var c=_.dd().shortsPipActivation,x,P;
B=c?.5625:(P=(x=B.player)==null?void 0:x.getVideoAspectRatio())!=null?P:16/9;x=Math.min(window.innerWidth,window.innerHeight)/2;c=c?0:76;return B>1?new _.nH(x,c+x/B):new _.nH(x*B,c+x)},rO6=function(B){var c;
_.X(function(x){c=_.cp().resolve(_.rV);return c.isOnWatch()&&B.watchPipMode||c.isOnShorts()&&B.shortsPipMode?_.K(x,B.deactivate(),0):B.miniplayerToPipMode?_.K(x,FGz(B),0):B.watchPipMode?_.K(x,_.mB(B),0):x.jumpTo(0)})};
t5.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.AJ.Object.defineProperties(t5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
t5[em]=[ql6,oit];var R9A="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(" "),
e9A="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(" "),B8N="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
csl="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var xgs=null;var PVF={},YGz=(PVF.initialized={priority:10,callback:function(B){var c=_.cp();c.addProvider({provide:cxI,useClass:dQs});c.addProvider({provide:_.UQN,useFactory:function(){return new xjW}});
c.addProvider({provide:hA,useValue:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});c.addProvider({provide:NPF,useValue:5184E6});c.addProvider({provide:MbZ,useValue:_.EB()});c.addProvider({provide:Rnn,useClass:vsW});c.addProvider({provide:Lb,useClass:Lb});c.addProvider({provide:_.Yx,useFactory:function(){return GH4.promise}});
c.addProvider({provide:_.LAy,useFactory:function(){return _.MM9.promise}});
c.addProvider({provide:NEC,useValue:function(){var b;return((b=_.e5())==null?void 0:b.getPlayer())||null}});
var x={};c.addProvider((x.provide=_.Zd,x.useFactory=function(b,d){return function(){return qjO(b,d)}},x[em]=[hA,
NPF],x));x={};c.addProvider((x.provide=_.gA,x.useClass=b15,x[em]=[hA,NPF],x));x={};c.addProvider((x.provide=_.X9d,x.useClass=d$m,x[em]=[_.gA],x));c.addProvider({provide:$3,useFactory:_.uG});c.addProvider({provide:nC,useFactory:_.uG});c.addProvider({provide:PXF,useFactory:_.uG});c.addProvider({provide:tSF,useFactory:_.uG});c.addProvider({provide:_.GC,useFactory:_.uG});c.addProvider({provide:b3,useValue:_.bG});c.addProvider({provide:$Qz,useClass:jJ$});c.addProvider({provide:aUI,useClass:YR3});c.addProvider({provide:Wu,
useClass:Wu});c.addProvider({provide:UQ,useClass:UQ});c.addProvider({provide:dk,useClass:dk});c.addProvider({provide:Cy,useClass:Cy});c.addProvider({provide:vu,useClass:vu});c.addProvider({provide:dE,useClass:dE});c.addProvider({provide:Xi,useClass:Xi});c.addProvider({provide:x$y,useValue:l8A});c.addProvider({provide:_.N3,useFactory:_.q_});c.addProvider({provide:Dw,useFactory:_.CW});x={};c.addProvider((x.provide=DEX,x.useFactory=function(b){return function(d){var q=q===void 0?{}:q;var C,h,V=(h=_.t((C=
d.endpoint)==null?void 0:C.commandMetadata,_.Br))==null?void 0:h.rootVe;if(V){var N,l;if(C=d.previousCsn||((l=_.t((N=d.endpoint)==null?void 0:N.commandMetadata,h3W))==null?void 0:l.parentCsn)){var E=E===void 0?{}:E;if(C!==_.Wf(E.layer)||V!==Ks7(E.layer))CKd(C,E.cttAuthInfo,E.layer||0),ncw(C,E.layer||0),N=E.layer||0,_.FP(bRl(N===void 0?0:N),V);q.parentCsn=C}d.endpoint&&C?zVQ(b,d.endpoint,q):_.kk(b,V,void 0,q);var S;((S=d.response)==null?0:S.trackingParams)&&b.graftServerVe(d.response.trackingParams);
var M;((M=d.playerResponse)==null?0:M.trackingParams)&&b.graftServerVe(d.playerResponse.trackingParams);var f;((f=d.reelWatchSequenceResponse)==null?0:f.trackingParams)&&b.graftServerVe(d.reelWatchSequenceResponse.trackingParams)}}},x[em]=[_.N3],x));
x={};c.addProvider((x.provide=aAF,x.useClass=YlF,x[em]=[b3,_.GC],x));x={};c.addProvider((x.provide=cS,x.useClass=cS,x[em]=[_.Yx,_.GC],x));x={};c.addProvider((x.provide=rz,x.useClass=rz,x[em]=[nC,_.xu],x));c.addProvider({provide:_.$Yr,useClass:hQz});x={};c.addProvider((x.provide=_.TA,x.useClass=Kql,x[em]=[_.$Yr],x));c.addProvider({provide:_.Vi,useClass:Y1});c.addProvider({provide:_.vj3,useClass:eQr});c.addProvider({provide:_.t7,useClass:x1});x={};c.addProvider((x.provide=_.ff,x.useClass=CX6,x[em]=
[_.ff],x));c.addProvider({provide:_.xB,useClass:Rrn});c.addProvider({provide:UH,useClass:UH});c.addProvider({provide:Ta,useClass:Ta});c.addProvider({provide:lC,useClass:PS});x={};c.addProvider((x.provide=o9,x.useClass=o9,x[em]=[_.Vi,lC],x));_.T("web_enable_feedback_endpoint_resolver")&&(x={},c.addProvider((x.provide=nf,x.useClass=nf,x[em]=[$3,Xz],x)),c.addProvider({provide:Xz,useClass:CEI}));_.T("web_enable_feedback_endpoint_resolver_batch_2")&&(x={},c.addProvider((x.provide=Kf,x.useClass=Kf,x[em]=
[$3],x)),x={},c.addProvider((x.provide=bC,x.useClass=bC,x[em]=[Xz],x)));x={};c.addProvider((x.provide=EH,x.useClass=EH,x[em]=[_.t7,lC],x));x={};c.addProvider((x.provide=NJ,x.useClass=NJ,x[em]=[_.t7],x));x={};c.addProvider((x.provide=OH,x.useClass=OH,x[em]=[_.ou,_.TA],x));x={};c.addProvider((x.provide=W2,x.useClass=W2,x[em]=[_.ou,_.N3],x));c.addProvider({provide:xO,useClass:xO});x={};c.addProvider((x.provide=uC,x.useClass=uC,x[em]=[$3],x));c.addProvider({provide:Ua,useClass:Ua});c.addProvider({provide:je,
useClass:je});x={};c.addProvider((x.provide=qU,x.useClass=qU,x[em]=[$3],x));x={};c.addProvider((x.provide=C_,x.useClass=C_,x[em]=[_.ou,$3],x));x={};c.addProvider((x.provide=ht,x.useClass=ht,x[em]=[$3],x));x={};c.addProvider((x.provide=mS,x.useClass=mS,x[em]=[$3],x));x={};c.addProvider((x.provide=I9,x.useClass=I9,x[em]=[_.TA],x));x={};c.addProvider((x.provide=sa,x.useClass=sa,x[em]=[_.N3],x));x={};c.addProvider((x.provide=b_,x.useClass=b_,x[em]=[BZ],x));x={};c.addProvider((x.provide=K_,x.useClass=
K_,x[em]=[BZ],x));c.addProvider({provide:Xk,useClass:Xk});c.addProvider({provide:$O,useClass:$O});c.addProvider({provide:g0,useClass:g0});x={};c.addProvider((x.provide=Qu,x.useClass=Qu,x[em]=[_.TA,_.xu],x));c.addProvider({provide:Cf,useClass:Cf});x={};c.addProvider((x.provide=JA,x.useClass=JA,x[em]=[_.ou,_.TA],x));c.addProvider({provide:Vu,useClass:Vu});x={};c.addProvider((x.provide=iC,x.useClass=iC,x[em]=[$3,_.ou,_.ff],x));x={};c.addProvider((x.provide=Zw,x.useClass=Zw,x[em]=[_.ou,_.xu],x));c.addProvider({provide:mKI,
useValue:Ozo});c.addProvider({provide:Ns5,useValue:AN7});c.addProvider({provide:H2,useClass:H2});x={};c.addProvider((x.provide=Lf,x.useClass=Lf,x[em]=[$3],x));x={};c.addProvider((x.provide=AA,x.useClass=AA,x[em]=[_.xB,_.xu],x));x={};c.addProvider((x.provide=jf,x.useClass=jf,x[em]=[_.xu],x));c.addProvider({provide:k3,useFactory:function(){return new k3(_.uG())}});
c.addProvider({provide:K6O,useFactory:_.lI.getInstance});x={};c.addProvider((x.provide=mL,x.useClass=mL,x[em]=[hA,K6O,_.xu],x));c.addProvider({provide:dH,useClass:dH});c.addProvider({provide:Y3,useClass:Y3});c.addProvider({provide:gH,useClass:gH});c.addProvider({provide:_.a9,useClass:_.a9});c.addProvider({provide:tt,useClass:tt});x={};c.addProvider((x.provide=yu,x.useClass=yu,x[em]=[nC],x));x={};c.addProvider((x.provide=Ga,x.useClass=Ga,x[em]=[_.xu],x));_.T("web_enable_prefetching_videos_on_home")&&
(c.addProvider({provide:Dd,useClass:Dd}),c.addProvider({provide:UO,useClass:UO}));x={};c.addProvider((x.provide=Vh,x.useClass=Vh,x[em]=[_.xu],x));c.addProvider({provide:sH,useClass:sH});x={};c.addProvider((x.provide=PZ,x.useClass=PZ,x[em]=[_.ou,_.xu],x));x={};c.addProvider((x.provide=pf,x.useClass=pf,x[em]=[_.xu],x));c.addProvider({provide:d3,useClass:d3});c.addProvider({provide:za,useClass:za});x={};c.addProvider((x.provide=v2,x.useClass=v2,x[em]=[nC,_.xu],x));x={};c.addProvider((x.provide=Qh,x.useClass=
Qh,x[em]=[nC,_.xu,_.ou],x));x={};c.addProvider((x.provide=Fk,x.useClass=Fk,x[em]=[_.xu],x));x={};c.addProvider((x.provide=oY,x.useClass=oY,x[em]=[_.xu,_.ou],x));x={};c.addProvider((x.provide=MJ,x.useClass=MJ,x[em]=[_.Yx],x));x={};c.addProvider((x.provide=Sf,x.useClass=Sf,x[em]=[_.Yx],x));c.addProvider({provide:ef,useClass:ef});c.addProvider({provide:cZ,useClass:cZ});c.addProvider({provide:d0,useClass:d0});c.addProvider({provide:YO,useClass:YO});c.addProvider({provide:R9,useClass:R9});c.addProvider({provide:tA,
useClass:tA});c.addProvider({provide:rH,useClass:rH});_.T("kevlar_enable_mss_lazy_load")&&c.addProvider({provide:_.LC,useClass:rnF});c.addProvider({provide:_.h2,useClass:g3});c.addProvider({provide:RA,useFactory:function(){return _.Gr.getInstance()}});
c.addProvider({provide:cos,useFactory:ODX});c.addProvider({provide:BZ,useFactory:function(){return _.Nm.getInstance()}});
c.addProvider({provide:oG3,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});x={};c.addProvider((x.provide=_.Rb,x.useClass=_.Rb,x[em]=[_.Yx,_.xu,_.N3,cos,BZ,RA,oG3,b3],x));c.addProvider({provide:_.$S,useClass:d05});c.addProvider({provide:_.J$Z,useClass:IU3});x={};c.addProvider((x.provide=wH,x.useClass=wH,x[em]=[_.J$Z],x));x={};c.addProvider((x.provide=_.ev,x.useFactory=function(b){return b.upliftCompletionResolver.promise},x[em]=[aAF],x));
x=_.zu("IS_SHELL_LOAD")?"aa":"eocs";var P=_.zu("IS_SHELL_LOAD")?3:2;_.So().parkOrScheduleJob(function(){s7l()},P,x);
_.So().parkOrScheduleJob(function(){_.cp().resolve(cS).start()},2,"eocs");
_.So().parkOrScheduleJob(function(){xYB()},2,"eocs");
_.So().parkOrScheduleJob(function(){_.cp().resolve(rz).start()},2,"eocs");
_.T("kevlar_debug_data_app_registration_ks")||RN7();c.addProvider({provide:_.lv,useValue:new kdZ(B.root)});c.addProvider({provide:S3,useValue:new o0o});c.addProvider({provide:_.dFW,useValue:new jCd(B.root)});c.addProvider({provide:_.Oi,useValue:new UFd});c.addProvider({provide:_.t2,useClass:j6});c.addProvider({provide:ql6,useClass:ar});_.T("kevlar_network_sli_killswitch")||c.addProvider({provide:T9F,useValue:V4Q});c.addProvider({provide:nFo,useFactory:VCI});_.T("web_bind_fetch")&&(x={},c.addProvider((x.provide=
b4A,x.useFactory=tCO,x[em]=[_.Bp(nFo)],x)));_.T("web_bind_parse")&&(x={},c.addProvider((x.provide=Km8,x.useFactory=wjQ,x[em]=[_.Bp(nFo)],x)));_.T("web_bind_window_request")&&(x={},c.addProvider((x.provide=j0z,x.useFactory=NFd,x[em]=[_.Bp(nFo)],x)));x={};c.addProvider((x.provide=fU5,x.useFactory=iIx,x[em]=[_.ev,$3,_.Zd],x));x={};c.addProvider((x.provide=Hn9,x.useClass=vZ,x[em]=[fU5],x));c.addProvider({provide:s6F,useClass:PfF});c.addProvider({provide:GS3,useClass:LiZ});x=[].concat(_.wq(fw));_.T("web_continuation_response_processing")&&
x.push(_.zU);x.push(A3W);_.T("enable_share_panel_navigation_logging_fix_on_web")&&x.push(_.jX0);c.addProvider({provide:b_7,useValue:x});c.addProvider({provide:d1I,useClass:y$W});c.addProvider({provide:ISz,useClass:VZc});x={};c.addProvider((x.provide=bJw,x.useClass=Ii5,x[em]=[nC],x));_.EE.addLowPriorityJob(function(){xoq()});
x={};c.addProvider((x.provide=IfZ,x.useFactory=function(b){return function(d){var q,C=(q=_.t(d.commandMetadata,_.Br))==null?void 0:q.url;if(!C)throw new _.mc("No URL for PBJ Command",d);C=bl$(C,{pbj:"1"});q=EW$(C,{})||{};q=Object.assign({},q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.v5("STS").toString()});d=_.bp({command:JSON.stringify(d),session_token:_.v5("XSRF_TOKEN")});return b.fetch(C,{method:"POST",headers:q,body:d})}},x[em]=[ISz],x));
x=[];x.push(c.resolve(GS3));P={};P=(P.client_location=_.lI.getInstance(),P.consistency=_.XVA(),P.entities=c.resolve(aUI),P.response_received_commands=c.resolve(d1I),P.store=c.resolve(_.X9d),P.tokens=c.resolve(GS3),P);if(_.T("web_shorts_prefetch_service_enabled")){var Y=new q1Z(c.resolve(_.gA));P.shorts_prefetch=Y}P.adblock_detection=c.resolve(bJw);c.addProvider({provide:_.Z$,useClass:_.Z$});Y=c.resolve(x$y);var g=[];_.T("PremiumClientSharedConfig__enable_att_context_processor")&&(c.addProvider({provide:Mjy,
useClass:ST9}),g.push(c.resolve(Mjy)));if(_.T("owl_pl_await")){var k={};c.addProvider((k.provide=aSS,k.useFactory=function(b){return new Pto(b)},k[em]=[_.Z$],k));
g.push(c.resolve(aSS))}F9Z(Y,c.resolve(ISz),c.resolve($Qz),P,c.resolve(_.gA),x,g,c.resolve(Hn9),c.resolve(s6F));c.addProvider({provide:_.ou,useValue:_.Me.instance});_.T("start_client_gcf")&&c.addProvider({provide:tP,useValue:Ern()});c.addProvider({provide:k7l,useFactory:function(){return new k7l(_.cp().resolve(_.Z$),_.Nm.getInstance())}});
_.So().parkOrScheduleJob(function(){X$z()},1,"eocs");
x={};c.addProvider((x.provide=BS,x.useClass=BS,x[em]=[_.Zd,_.ou],x));c.addProvider({provide:_.w$B,useFactory:_.j8.getInstance});_.So().parkOrScheduleJob(function(){_.cp().resolve(BS).refresh()},0,"eocs");
Jf5(l8A.watchEndpointMap||{},Y.reelWatchEndpointMap||{},B.injector.resolve(_.ou));c.addProvider({provide:Nb,useValue:_.TC.instance});_.T("kevlar_signal_collection_killswitch")||(x={},c.addProvider((x.provide=r19,x.useClass=r19,x[em]=[hA,Dw],x)),_.So().parkOrScheduleJob(function(){_.cp().resolve(r19).record()},1,"eocs"));
_.T("web_debug_handler_registration_killswitch")||_.So().parkOrScheduleJob(function(){DUo("DOWNLOAD_PES",EZw);_.T("offline_client_state_export_ks")||DUo("OFFLINE_CLIENT_STATE",JDd)},0,"eocs");
_.T("kevlar_prevent_polymer_dynamic_font_load")&&_.So().parkOrScheduleJob(function(){var b=[_.PM(S38),_.PM(ynl)];b=_.p(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var q=document.createElement("link");_.Ha(q,d,"stylesheet");document.head.appendChild(q)}},1,"eocs");
x=B.injector.resolve(_.ou);_.Gdy.instance=new _.Gdy(x);KYX(OBI(new yp5(x)));x={};B.injector.addProvider((x.provide=RG,x.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(xgs||(xgs=U3x()),b=xgs);return b},x[em]=[_.Bp(_.rV)],x.skipCache=!0,x));
c.addProvider({provide:_.Ge,useClass:t5});c.addProvider({provide:KG,useClass:tKI});B.injector.addProvider({provide:Te5,useValue:pYy});c.addProvider({provide:g$m,useValue:EA7});c.addProvider({provide:_.fL,useValue:LrA});B=c.addProvider;IA6||(IA6=new NCA);B.call(c,{provide:_.sO,useValue:IA6});c.addProvider({provide:_.AX,useValue:_.v5("HTML_DIR")==="rtl"?"rtl":"ltr"});c.addProvider({provide:sqZ,useClass:dhy});c.addProvider({provide:_.nL,useClass:k1});_.cp().addProvider({provide:kSW,useValue:_.T("enable_web_delhi_icons")?
e9A.concat(csl):R9A.concat(B8N)});c.addProvider({provide:_.$1,useClass:_.$1});c.addProvider({provide:_.Q0o,useValue:new oFs});c.addProvider({provide:ged,useClass:xh5});c.addProvider({provide:aY,useClass:aY});c.addProvider({provide:p_,useClass:p_});B={};c.addProvider((B.provide=Fz,B.useClass=Fz,B[em]=[_.ou,_.TA],B));c.addProvider({provide:Oa,useClass:Oa});c.addProvider({provide:wOy,useClass:TCl});c.addProvider({provide:n_,useClass:n_});c.addProvider({provide:cSF,useValue:yz5});c.addProvider({provide:_.Fc,
useClass:PE4});_.T("enable_payments_purchase_manager")&&c.addProvider({provide:iBm,useClass:LuS});c.addProvider({provide:zIN,useFactory:function(){return function(b){return _.vFS(b)}}});
c.addProvider({provide:_.zHn,useClass:SR4});B={};c.addProvider((B.provide=TM,B.useClass=TM,B[em]=[_.zHn],B));c.addProvider({provide:kO,useClass:kO});c.addProvider({provide:quW,useValue:DGm});c.addProvider({provide:QLn,useValue:_.FqS});c.addProvider({provide:so7,useClass:mYF});c.addProvider({provide:Jo8,useValue:Qyi});B={};c.addProvider((B.provide=_.po,B.useClass=Wqz,B[em]=[Jo8],B));_.T("web_ephemeral_actions")&&(B={},c.addProvider((B.provide=_.bT,B.useClass=no,B[em]=[_.GC,_.t2],B)));if(_.T("web_explore_hub_on_hover")||
_.T("web_client_explore_hub_on_hover"))B={},c.addProvider((B.provide=qJ,B.useClass=qJ,B[em]=[_.ou,RA],B));if(_.T("web_enable_renderer_logger")){var n=new Xyi;window.addEventListener("yt-navigate-start",function(){n.abort()},{once:!0});
c.addProvider({provide:YOX,useValue:new enn(n.signal)})}c.addProvider({provide:W3$,useValue:TmC});B={};c.addProvider((B.provide=hnZ,B.useClass=CfS,B[em]=[_.ou],B))}},PVF);var azy={},gXi=(azy.initialized={priority:10,callback:function(){if(!mQo){yVx();JF$("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ku(_.q9(JF$,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.T("log_heartbeat_with_lifecycles")){var B={};u6.instance||(u6.instance=new u6);u6.instance.install((B.document_visible={callback:WbQ,priority:10},B.document_hidden={callback:WbQ,priority:10},B))}else _.Rx(document,"visibilitychange",WbQ);mQo=!0}(B=_.Wf())&&B!=="UNDEFINED_CSN"&&XBl(B)}},azy);var sWB={},paS=(sWB.initialized={callback:function(B){var c=_.JW(232091),x=B.injector.resolve(_.N3);_.Xa(x,c);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?rYC()&&_.n0(x,c):(B=B.injector.resolve(zIN)("refresh_detector"))&&(B.get("first_tab_load")?_.n0(x,c):B.set("first_tab_load","1"))}},sWB);var kzc={},Xao=(kzc.initialized={priority:10,callback:aHd},kzc);var $gy={},nXy=($gy.initialized={priority:0,callback:function(){var B=new Oqt,c="other";_.UZ?c="chrome":_.j2?c="firefox":_.QY?c="safari":up&&(c="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(x){B.increment(_.qD(),x,c)}).catch(function(){B.increment(_.qD(),!1,c)}):B.increment(_.qD(),!1,c)}},$gy);var b6s={},K7N=(b6s.rendering={priority:8,callback:gQl},b6s);var jWo={},Ugz=(jWo.rendering={priority:10,callback:C0X},jWo.rendered={callback:qSl},jWo),dgF={},qGi=(dgF.rendering={callback:C0X},dgF.rendered={callback:qSl},dgF);var CVs=!1,hPr={},mg6=(hPr.initialized={priority:10,callback:function(){CVs||(bEA({didPatch:function(B){B.el&&ddq(B.el,B.props)},
didUnmount:function(B){jrI(B.el)}}),CVs=!0)}},hPr);var T86=/^\/shorts\/?$/;_.FP("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.T("kevlar_enable_mss")){_.uSx(new j1n);var VTy=!0,tTF,Nd;VTy=VTy===void 0?!1:VTy;tTF=tTF===void 0?!1:tTF;Nd=Nd===void 0?{}:Nd;var wao=Nd.cssRowKey||"",N8s=Nd.combinedSignature||"";!wao&&window&&window._F_cssRowKey&&(wao=window._F_cssRowKey,!N8s&&window._F_combinedSignature&&(N8s=window._F_combinedSignature));if(wao&&typeof window._F_installCss!=="function")throw Error("vd");var IzB=Nd.loaderClass||_.yb,Ir=FVd("base-js"),Jsr,W7i=z2Q("",Ir);Jsr=_.kX(W7i);var J5=new IzB(Jsr,wao,N8s,VTy,tTF),lzB=
Nd.useCors||Ir&&Ir.hasAttribute("crossorigin"),EX6=Nd.corsMode||Ir&&Ir.getAttribute("crossorigin");lzB&&(J5.useCors_=lzB);EX6&&(J5.corsMode_=EX6);Nd.urlMaxLength&&(J5.urlMaxLength=Nd.urlMaxLength);Nd.fetchPriority&&(J5.fetchPriority=Nd.fetchPriority);var O6z=lW();O6z.JSC$8099_loader_=J5;O6z.setBatchModeEnabled(!0)}
(function(){var B=document.querySelector("ytd-app");if(!B)throw Error("Ij");B=new Ko({root:B,injector:_.cp()});B.install(gXi);var c={};B.install((c.initialized={priority:10,callback:seA},c));_.T("wp_lat_b")&&(c={},B.install((c.initialized={priority:10,callback:function(){hul()}},c)));
c={};B.install((c.rendered={priority:0,callback:YUw},c));c={};B.install((c.rendered={priority:0,callback:function(){_.EE.addLowPriorityJob(function(){_.qR9>1&&(r6l(),xzC())},4E4)}},c));
B.install($Nr);B.install(paS);B.install(mg6);MC7();B.install(Czs);B.install(a8z);B.install(kB6);B.install(Z1W);B.install(u74);B.install(dN6);B.install(YGz);_.T("kevlar_enable_mss_lazy_load")&&B.install(Xao);B.install(syl);B.install(nXy);if(!_.zu("IS_SHELL_LOAD")||_.T("kevlar_fetch_initial_data_promise_client")||_.T("sw_nav_preload_pbj")){var x=_.$u(window.location.href);c=x&&x==="/watch";x=x&&x.match(T86);c?B.install(qGi):x?B.install(K7N):B.install(Ugz)}else B.install(xNA);B.install(bAy);_.T("web_enable_prefetching_videos_on_home")&&
B.install(ViB);_.T("start_client_gcf")&&B.install(hIz);B.install(S1I);(new oMd).increment("INSTALLED");B.install(mNl);B.install(eIA);B.transition("initialized");n_w()})();
_.pr=[[["aW5kIzVxZTA2OGkzYXo5NWs=","ZSNlZzBnczNldDJxMjZ2YWx1"],"MHVBRF9QTEFDRU1FTlRfS0lORF9MQVlPVVRfSURfRU5URVJFRCNibXF2cWFhNnNs"]];_.si=["Q2FsbGJhY2tzIzQ2dWFqMHhldmhodmdsb2JhbA==","dGVkI3QzcDZvZjY4bGx1cG9uQWJub3JtYWxpdHlEZXRlYw==","NGc2ZmxmZWJvbkFkU2tpcCN1bzUz","cG9uc2UjMmt2eHNoc2xkaXhzcmF3X3BsYXllcl9yZXM=","YWwwMnJyYm04b2hhZHNFbmdhZ2VtZW50UGFuZWxSZW5kZXJlciNu"];_.HK="Q2FsbGJhY2tzIzQ2dWFqMHhldmhodmdsb2JhbA== dGVkI3QzcDZvZjY4bGx1cG9uQWJub3JtYWxpdHlEZXRlYw== NGc2ZmxmZWJvbkFkU2tpcCN1bzUz cG9uc2UjMmt2eHNoc2xkaXhzcmF3X3BsYXllcl9yZXM= MHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNycHdreXpmeXh4Mg== eHV2Z2toYWphYl9zYV9lZiN5OG9y YWwwMnJyYm04b2hhZHNFbmdhZ2VtZW50UGFuZWxSZW5kZXJlciNu".split(" ");
_._ModuleManager_initialize=function(B,c){if(!_.JG){if(!_.Wh)return;_.uSx(_.Wh())}_.JG.setAllModuleInfoString(B,c)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy6','syi','syh','sye','syc','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.OO=function(B,c,x,P,Y){var g={};c&&(g[c]=x);P?g.errorType=P:Y&&(g.errorReason=Y);_.JP(B,g);_.Wo()};
_.or=function(B){var c=_.So();return _.mT0(c,B,1)};
_.Ni({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 B=this.query;B&&(this.full||B[0]==="("||(B="("+B+")"),this._mq=window.matchMedia(B),this._add(),this.queryHandler(this._mq))},
queryHandler:function(B){this._setQueryMatches(B.matches)}});var L7c;var Z6r;var H6A=function(){};
_.a=H6A.prototype;_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._focusedChanged=function(){};
_.a._createRipple=function(){};
_.a.registered=function(){};
_.a._invalidChanged=function(){};
_.a.hasValidator=function(){};
_.a.validate=function(){};
_.a._getValidity=function(){};
_.a._requiredChanged=function(){};
_.a._valueChanged=function(){};
_.a._checkedChanged=function(){};
_.a._buttonStateChanged=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
H6A=_.Ni({is:"tp-yt-paper-radio-button",_template:function(){if(Z6r!==void 0)return Z6r;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;L7c===void 0&&(L7c=document.createElement("template"));var P=L7c;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Z6r=B},
behaviors:[_.PR5],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(){_.fl(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var B=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),c=Math.floor(3*B);c%2!==B%2&&c++;this.updateStyles({"--paper-radio-button-ink-size":c+"px"})}})}});var fzy;var i66;_.Ni({_template:function(){if(i66!==void 0)return i66;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;fzy===void 0&&(fzy=document.createElement("template"));var P=fzy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return i66=B},
is:"tp-yt-paper-radio-group",behaviors:[_.U_t],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(B){var c=this._valueToItem(B);if(!c||!c.hasAttribute("disabled")){if(this.selected){c=this._valueToItem(this.selected);if(this.selected==B)if(this.allowEmptySelection)B="";else{c&&(c.checked=!0);return}c&&
(c.checked=!1)}_.Mi.select.apply(this,[B]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(B){this._focusPrevious();B.preventDefault();this._activateFocusedItem()},
_onDownKey:function(B){this._focusNext();B.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(B){_.jmd._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(B){_.jmd._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Mi._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ec._resetTabindices.apply(this,arguments);this.items.forEach(function(B){B.removeAttribute("aria-selected")},this)}});var Asi;_.o2("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var QM=function(){return _.z.apply(this,arguments)||this};
_.w(QM,_.z);_.a=QM.prototype;_.a.computeHasPrimaryIcon=function(B){return!(!B.icon&&!B.thumbnail)};
_.a.computeHasSecondary=function(B){return!(!B.secondaryIcon&&!B.secondaryNotificationText)};
_.a.computeHideSecondaryString=function(B){return!_.T("disable_hide_empty_secondary_string")&&!B.secondaryNotificationText};
_.a.computeCompactLinkStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeHasFitHeight=function(B){return B==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.a.isActiveEndpoint=function(B){return(B=this.get("commandMetadata.webCommandMetadata.url",B))?_.$u(window.location.href)!=="/account_transfer_channel"&&_.$u(window.location.href)!=="/gaia_link"&&_.$u(window.location.href)!=="/channel_switcher"||B!=="/account"?_.$u(window.location.href)===B:!0:!1};
_.a.onTap=function(){var B;((B=this.data)==null?0:B.serviceEndpoint)&&_.kC(this.hostElement,[this.data.serviceEndpoint])};
QM.prototype.onTap=QM.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QM.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.H("design:type",Boolean)],QM.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.H("design:type",String)],QM.prototype,"compactLinkStyle",void 0);
_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],QM.prototype,"icon",void 0);_.L([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",Object)],QM.prototype,"secondaryIcon",void 0);_.L([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QM.prototype,"hasSecondary",void 0);_.L([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QM.prototype,"hideSecondaryString",void 0);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QM.prototype,"onTap",null);_.L([_.y({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],QM);
_.G(QM,"ytd-compact-link-renderer",function(){if(Asi!==void 0)return Asi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Asi=B},{mode:1});var u_A;_.o2("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var FD=function(){var B=_.z.apply(this,arguments)||this;B.role="link";B.tabindex="0";B.actionMap=_.T("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 B};
_.w(FD,_.z);_.a=FD.prototype;_.a.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Iu()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.a.getCurrentTheme=function(){return _.JV()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Iu()};
_.a.onThemeSelected=function(B,c){var x=B||c?B:_.NA(),P=(x&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!x&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.siC(_.$u(window.location.href));_.hi(0,165,B);_.hi(0,174,c);this.prefs.save();P&&_.gj(this.hostElement,"yt-dark-mode-toggled-action",[x]);_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.a.onTap=function(){this.data.serviceEndpoint&&_.kC(this.hostElement,[this.data.serviceEndpoint])};
_.a.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.a.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.a.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
FD.prototype.onTap=FD.prototype.onTap;FD.prototype.dataChanged=FD.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],FD.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Dy),_.H("design:type",Object)],FD.prototype,"paperItemBehaviors",void 0);_.L([_.F(),_.H("design:type",Object)],FD.prototype,"data",void 0);_.L([_.F({value:function(){return _.CW()}}),
_.H("design:type",_.xb)],FD.prototype,"prefs",void 0);_.L([_.F(),_.H("design:type",Object)],FD.prototype,"label",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FD.prototype,"role",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FD.prototype,"tabindex",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FD.prototype,"dataChanged",null);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FD.prototype,"onTap",null);_.L([_.y({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],FD);
_.G(FD,"ytd-toggle-theme-compact-link-renderer",function(){if(u_A!==void 0)return u_A;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return u_A=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
var rsF,RPc;_.vS=function(B){return!!B.getOptions("captions")};
_.Dgy=function(B){return(B=B.getOption("captions","track"))?!!B.displayName:!1};
_.zT=function(B,c){_.FF(c,B,function(){return rsF[c]},function(x){rsF[c]=x;
if(!_.T("mweb_player_ve_show_ks")){var P=_.Wf(0);P&&x&&_.LW(P,x)}})};
_.S8=function(B){(B=rsF[B])&&_.n0(_.q_(),B)};
rsF={};var ePN;/*

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
*/
_.Ni({_template:function(){if(ePN!==void 0)return ePN;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;RPc===void 0&&(RPc=document.createElement("template"));var P=RPc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return ePN=B},
is:"tp-yt-paper-checkbox",behaviors:[_.PR5],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.fl(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var B=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),c="px",x=B.match(/[A-Za-z]+$/);x!==null&&(c=x[0]);B=parseFloat(B);x=8/3*B;c==="px"&&(x=Math.floor(x),x%2!==B%2&&x++);this.updateStyles({"--paper-checkbox-ink-size":x+
c})}})},
_computeCheckboxClass:function(B,c){var x="";B&&(x+="checked ");c&&(x+="invalid");return x},
_computeCheckmarkClass:function(B){return B?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.cby._createRipple.call(this)}});var Bql=new _.A("radioButtonSurveyOptionRenderer"),c0B=new _.A("checkboxSurveyOptionRenderer");var x8r;var PeS;var YI8=0,yM=function(){var B=_.z.call(this)||this;B.selected=!1;B.isOverlay=!1;B.inputId="toggle-option-"+YI8;YI8++;return B};
_.w(yM,_.z);yM.prototype.onTap=function(){_.aJ(this.hostElement,"ytd-toggle-option-clicked")};
_.L([_.F(),_.H("design:type",String)],yM.prototype,"label",void 0);_.L([_.F(),_.H("design:type",String)],yM.prototype,"inputId",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yM.prototype,"selected",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yM.prototype,"isOverlay",void 0);_.L([_.y({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.H("design:paramtypes",[])],yM);
_.G(yM,"ytd-toggle-option-renderer",function(){if(PeS!==void 0)return PeS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return PeS=B},{mode:1});var GT=function(){var B=_.z.apply(this,arguments)||this;B.isToggleOption=!1;B.isOverlay=!1;return B};
_.w(GT,_.z);GT.prototype.onTap=function(B){B.preventDefault();this.data&&(B=!this.data.checked,this.set("data.checked",B),_.aJ(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:B,value:this.data.value}))};
_.AJ.Object.defineProperties(GT.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
GT.prototype.onTap=GT.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GT.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],GT.prototype,"isToggleOption",void 0);_.L([_.F(),_.H("design:type",Object)],GT.prototype,"isOverlay",void 0);_.L([_.Q("data.responseText"),_.H("design:type",String),_.H("design:paramtypes",[])],GT.prototype,"label",null);
_.L([_.nF("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],GT.prototype,"onTap",null);_.L([_.y({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],GT);
_.G(GT,"ytd-checkbox-survey-option-renderer",function(){if(x8r!==void 0)return x8r;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return x8r=B},{mode:1});var aKi;var gMz;var Md=function(){var B=_.z.apply(this,arguments)||this;B.checked=!1;B.isToggleOption=!1;return B};
_.w(Md,_.z);Md.prototype.onTap=function(){this.data&&(this.checked?_.gj(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.gj(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Md.prototype.onTap=Md.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Md.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Md.prototype,"checked",void 0);_.L([_.F(),_.H("design:type",Object)],Md.prototype,"isToggleOption",void 0);_.L([_.nF("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Md.prototype,"onTap",null);
_.L([_.y({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Md);
_.G(Md,"ytd-radio-button-survey-option-renderer",function(){if(gMz!==void 0)return gMz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gMz=B},{mode:1});var Lo=function(){var B=_.z.apply(this,arguments)||this;B.disableAnimation=!1;B.isToggleOption=!0;B.followUpSurveyCommand=null;B.selectedRatingEndpoint=null;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;B.styleOverrideAttribute=!0;B.isDarkMode=!1;B.isSubmitted=!1;B.roundedContainer=!0;B.improveShortsResponseRate=_.T("web_improve_shorts_response_rate");B.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 B};
_.w(Lo,_.z);_.a=Lo.prototype;
_.a.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"}}}}};
_.a.attached=function(){var B=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(x){var P;if((P=x[0])!=null&&P.isIntersecting){_.UL().reportShown(B.hostElement);var Y;(Y=B.intersectionObserver)==null||Y.unobserve(B.hostElement)}},{rootMargin:"0px",
threshold:.6});var c;(c=this.intersectionObserver)==null||c.observe(this.hostElement)};
_.a.onDarkModeToggledAction=function(B){this.isDarkMode=B};
_.a.dataChanged=function(){var B;if(((B=this.data)==null?void 0:B.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var c;((c=this.data)==null?void 0:c.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var x,P,Y,g;this.darkColorPalette=(x=this.data)==null?void 0:(P=x.inlineContent)==null?void 0:(Y=P.compactVideoRenderer)==null?void 0:(g=Y.thumbnail)==null?
void 0:g.darkColorPalette;var k,n,b,d;this.lightColorPalette=(k=this.data)==null?void 0:(n=k.inlineContent)==null?void 0:(b=n.compactVideoRenderer)==null?void 0:(d=b.thumbnail)==null?void 0:d.lightColorPalette;var q,C;if(((q=this.data)==null?0:(C=q.inlineContent)==null?0:C.compactVideoRenderer)&&this.isShortsStyle){var h,V,N,l;B=_.YU((h=this.data)==null?void 0:(V=h.inlineContent)==null?void 0:(N=V.compactVideoRenderer)==null?void 0:(l=N.thumbnail)==null?void 0:l.thumbnails);_.k9(this.hostElement,
{"--yt-background-url":"url("+B+")"})}};
_.a.handleRequestCompletion=function(){this.hostElement.hidden&&_.aJ(this.hostElement,"yt-dismissible-item-dismissed")};
_.a.onPopupClosed=function(B){var c;((c=B.detail)==null?void 0:c.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.gj(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.a.handleInlineSurveyRatingSelect=function(B,c){var x=this;this.selectedRatingEndpoint=B;this.followUpSurveyCommand=c;this.expanded=!!B;this.getOptionRenderers().forEach(function(P,Y){x.notifyPath("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked");x.set("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),B=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.gj(this.hostElement,"yt-reel-non-video-content-dismissal-command",[B]))};
_.a.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.gj(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var B,c=(B=this.data)==null?void 0:B.dismissalEndpoint;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.a.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.gj(this.hostElement,"yt-close-popup-action"))};
_.a.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var B=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{B=this.getOptionRenderers().filter(function(P){return P.checked});
if(B.length===0)return;B=B.map(function(P){return P.responseEndpoint})}var c=[];
B.forEach(function(P,Y){Y!==0&&(P=_.t(P,_.Fs))&&P.feedbackToken&&c.push(P.feedbackToken)});
if(B=B[0]){var x={};c.length>0&&(x.extra_feedback_tokens=c);this.ytComponentBehavior.resolveCommand(B,{form:x})}}};
_.a.getOptionRenderers=function(){var B=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(c){B.isSingleSelect=!!_.t(c,Bql);return B.isSingleSelect?_.t(c,Bql):_.t(c,c0B)}):[]};
_.a.handleInlineSurveyOptionSelect=function(B){B=this.optionSelector.indexOf(B);B!==-1&&this.optionSelector.selectIndex(B)};
_.a.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.a.maybeGetBackgroundColor=function(B){return this.isDarkMode?B.section2Color:B.section3Color};
_.a.colorPaletteChanged=function(){var B=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;B=B&&this.maybeGetBackgroundColor(B);this.dismissibleEl.style.backgroundColor=!B||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.zF(B)};
_.AJ.Object.defineProperties(Lo.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Lo.prototype.colorPaletteChanged=Lo.prototype.colorPaletteChanged;Lo.prototype.onPopupClosed=Lo.prototype.onPopupClosed;Lo.prototype.handleRequestCompletion=Lo.prototype.handleRequestCompletion;Lo.prototype.dataChanged=Lo.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Lo.prototype,"actionHandlerBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],Lo.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.jr("#follow-up-survey-options"),_.H("design:type",Object)],Lo.prototype,"optionSelector",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"disableAnimation",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"isToggleOption",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"followUpSurveyCommand",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"selectedRatingEndpoint",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Lo.prototype,"expanded",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lo.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lo.prototype,"isShortsStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lo.prototype,"styleOverrideAttribute",void 0);_.L([_.F(),_.H("design:type",Boolean)],Lo.prototype,"isSingleSelect",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"isDarkMode",void 0);
_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"lightColorPalette",void 0);_.L([_.F(),_.H("design:type",Object)],Lo.prototype,"darkColorPalette",void 0);_.L([_.Q("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lo.prototype,"isOptionSelected",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lo.prototype,"roundedContainer",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lo.prototype,"improveShortsResponseRate",void 0);_.L([_.jr("#dismissible"),_.H("design:type",HTMLElement)],Lo.prototype,"dismissibleEl",void 0);_.L([_.jr("#dismiss-button yt-icon-button"),_.H("design:type",HTMLElement)],Lo.prototype,"dismissButtonEl",void 0);_.L([_.jr("#inline-survey-header yt-icon-button"),_.H("design:type",HTMLElement)],Lo.prototype,"inlineHeaderDismissButtonEl",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lo.prototype,"dataChanged",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lo.prototype,"handleRequestCompletion",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Lo.prototype,"onPopupClosed",null);
_.L([_.bF("darkColorPalette","lightColorPalette","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lo.prototype,"colorPaletteChanged",null);_.L([_.y({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Lo);
_.G(Lo,"ytd-inline-survey-renderer",function(){if(aKi!==void 0)return aKi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return aKi=B},{mode:1});var sdc=["en-CA","en","es-MX","fr-CA"];_.pFc=_.rM(function(B){var c=_.uF(B,{isOverlay:!1,isModern:!1}),x=c.captionIconType,P=c.onClick;B=c.ariaLabel;var Y=c.ariaPressed,g=c.isOverlay,k=c.isModern;c=_.Ho("button",function(d){_.zT(d,127299)});
var n=_.qe(function(d){_.S8(127299);P==null||P(d);return!1}),b={};
return _.U("ytm-closed-captioning-button",{class:_.Kw("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return x()===-1&&g()},b.ytmClosedCaptioningButtonIconDisabled=function(){return x()===-1&&!g()},b))},_.U("button",{el:c,
class:"ytmClosedCaptioningButtonButton",title:B,"aria-label":B,"aria-pressed":Y,"on:click":n},_.U(_.Vf,{icon:function(){var d="";var q=k()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var C=_.CW().get("hl");q=!C||sdc.includes(C)?q:"SUBTITLES";C=x();switch(C){case -1:case 0:d=q;break;case 1:d=q+"_FILLED";break;default:_.kz(C)}return d}})))},"$e");
_.pFc.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.DR=function(B){return function(c,x){var P=B||x.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(c,x,{get:function(){var Y;return this.$?this.$[P]:(Y=_.KF(this))==null?void 0:Y.querySelector("#"+P)},
enumerable:!0,configurable:!0})}};_.rs=function(B){B=B===void 0?!1:B;_.tG.call(this);this.pubSub_=new _.KU(B);_.bW(this,this.pubSub_)};
_.sZ(_.rs,_.tG);_.rs.prototype.subscribe=function(B,c,x){return this.isDisposed()?0:this.pubSub_.subscribe(B,c,x)};
_.rs.prototype.unsubscribe=function(B,c,x){return this.isDisposed()?!1:this.pubSub_.unsubscribe(B,c,x)};
_.rs.prototype.unsubscribeByKey=function(B){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(B)};
_.rs.prototype.publish=function(B,c){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var vil=function(){_.OO("ypcRedeemFlowStarted")},nK=function(B){_.OO("ypcRedeemFlowFailed",void 0,void 0,void 0,B)},zMz=function(B,c,x){c&&x&&(B.videos.forEach(function(P){P.videoId===c&&(P.itemId=x)}),B.recommendedVideos.forEach(function(P){P.videoId===c&&(P.itemId=x)}))};var S$6;var yhc;/*

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
*/
_.Ni({_template:function(){if(yhc!==void 0)return yhc;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;S$6===void 0&&(S$6=document.createElement("template"));var P=S$6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return yhc=B},
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(B,c){var x=this._resolveSrc(B);x!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",B===""||c?this._setLoading(!1):(this._resolvedSrc=x,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 B=this.$.sizedImgDiv.style,c=this.$.placeholder.style;B.backgroundSize=c.backgroundSize=this.sizing;B.backgroundPosition=c.backgroundPosition=this.sizing?this.position:"";B.backgroundRepeat=c.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(B){B=_.PX(B,this.$.baseURIAnchor.href);B.length>=2&&B[0]==="/"&&B[1]!=="/"&&(B=(location.origin||location.protocol+"//"+location.host)+B);return B}});var Gmr;var MKr;_.Ni({_template:function(){if(MKr!==void 0)return MKr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Gmr===void 0&&(Gmr=document.createElement("template"));var P=Gmr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return MKr=B},
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(B){return B?"false":"true"},
_headingChanged:function(B){var c=this.getAttribute("heading"),x=this.getAttribute("aria-label");typeof x==="string"&&x!==c||this.setAttribute("aria-label",B)},
_computeHeadingClass:function(B){return B?" over-image":""},
_computeAnimated:function(B){return B}});var LnN=new _.A("addRendererToItemSectionAction");var ZPr;var bn=function(){return _.z.apply(this,arguments)||this};
_.w(bn,_.z);bn.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bn.prototype,"rendererBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],bn.prototype,"dismissibleItemBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bn.prototype,"rendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bn.prototype,"data",void 0);_.L([_.y({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],bn);
_.G(bn,"ytd-comment-history-entry-renderer",function(){if(ZPr!==void 0)return ZPr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ZPr=B},{mode:1});var HPB;_.o2("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.o2("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var KK=function(){return _.z.apply(this,arguments)||this};
_.w(KK,_.z);_.a=KK.prototype;_.a.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.onKeyUp=function(B){if(B.keyCode===13)this.onTap()};
_.a.onTap=function(){this.data.recordClickEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var B=this.data.navigationEndpoint;B&&_.t(B,_.oA)&&_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})};
_.a.readChanged=function(){var B;_.gM(this.hostElement,"unread",!((B=this.data)==null?0:B.read))};
_.a.dataChanged=function(){this.data&&_.gM(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.a.computeThumbnailSize=function(){var B;return((B=this.data)==null?0:B.highPriorityNotification)?32:48};
_.a.getEndpointURL=function(B){return B&&!_.t(B,_.oA)?this.componentBehavior.computeHref_(B):null};
_.a.getEndpointData=function(B){return B&&!_.t(B,_.oA)?B:null};
KK.prototype.computeThumbnailSize=KK.prototype.computeThumbnailSize;KK.prototype.dataChanged=KK.prototype.dataChanged;KK.prototype.readChanged=KK.prototype.readChanged;KK.prototype.onKeyUp=KK.prototype.onKeyUp;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],KK.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],KK.prototype,"data",void 0);_.L([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.H("design:type",Number)],KK.prototype,"thumbnailSize",void 0);_.L([_.nF("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],KK.prototype,"onKeyUp",null);
_.L([_.bF("data.read"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KK.prototype,"readChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KK.prototype,"dataChanged",null);_.L([_.bF("data.highPriorityNotification"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KK.prototype,"computeThumbnailSize",null);
_.L([_.y({is:"ytd-notification-renderer",disableElementRegistration:!0})],KK);
_.G(KK,"ytd-notification-renderer",function(){if(HPB!==void 0)return HPB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HPB=B},{mode:1});var fIA;var ja=function(){return _.z.apply(this,arguments)||this};
_.w(ja,_.z);ja.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"}}}};
ja.prototype.computeActionButtonClass=function(B){return!B.actionButtons||B.actionButtons.length<=1?"single-button":B.description?"vertical-buttons":"horizontal-buttons"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ja.prototype,"data",void 0);_.L([_.y({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],ja);
_.G(ja,"ytd-playlist-show-metadata-renderer",function(){if(fIA!==void 0)return fIA;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return fIA=B},{mode:1});var iPo;_.o2("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Uu=function(){return _.z.apply(this,arguments)||this};
_.w(Uu,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Uu.prototype,"data",void 0);_.L([_.y({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Uu);
_.G(Uu,"ytd-purchase-item-renderer",function(){if(iPo!==void 0)return iPo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iPo=B},{mode:1});var Ahr;var uir={};uir.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(B){if(B)return B.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(B){if(B==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.o2("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var dh=function(){return _.z.apply(this,arguments)||this};
_.w(dh,_.z);dh.prototype.onYtNavigate=function(B){var c=this.openPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);c&&(B.stopPropagation(),this.openPopupBehavior.openPopup(c))};
dh.prototype.onYtNavigate=dh.prototype.onYtNavigate;_.L([_.J(uir.YtSimpleTextSectionBehavior),_.H("design:type",Object)],dh.prototype,"ytSimpleTextSectionBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],dh.prototype,"openPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dh.prototype,"data",void 0);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onYtNavigate",null);_.L([_.y({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],dh);
_.G(dh,"ytd-simple-text-section-renderer",function(){if(Ahr!==void 0)return Ahr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ahr=B},{mode:1});var D0l;_.o2("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var qx=function(){return _.z.apply(this,arguments)||this};
_.w(qx,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qx.prototype,"data",void 0);_.L([_.y({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],qx);
_.G(qx,"ytd-unlimited-page-feature-info-renderer",function(){if(D0l!==void 0)return D0l;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return D0l=B},{mode:1});var rhS;var RMB;var CK=function(){return _.z.apply(this,arguments)||this};
_.w(CK,_.z);CK.prototype.dataChanged=function(){if(this.data){var B=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);B&&(B=_.Pw(B,screen.width),this.hostElement.style.backgroundImage="url("+B+")")}};
CK.prototype.dataChanged=CK.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CK.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CK.prototype,"dataChanged",null);_.L([_.y({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],CK);
_.G(CK,"ytd-post-redemption-section-renderer",function(){if(RMB!==void 0)return RMB;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RMB=B},{mode:1});var eMl;var hY=function(){return _.z.apply(this,arguments)||this};
_.w(hY,_.z);hY.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hY.prototype,"data",void 0);_.L([_.y({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],hY);
_.G(hY,"ytd-ypc-post-redemption-renderer",function(){if(eMl!==void 0)return eMl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return eMl=B},{mode:1});_.o2("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var m2=function(){var B=_.z.apply(this,arguments)||this;B.MIN_CODE_LENGTH=12;B.MAX_CODE_LENGTH=24;return B};
_.w(m2,_.z);_.a=m2.prototype;_.a.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.a.created=function(){this.riskService=new _.RJ7;this.loadPaymentThenable=_.BgC(_.v5("YPC_MB_URL"))};
_.a.ready=function(){var B=this;this.code.addEventListener("keypress",function(c){B.onCodeInputKeypress(c)})};
_.a.dataChanged=function(){var B=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(c){c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,x.type==="attributes"&&x.attributeName==="dark"&&B.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.a.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var B=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+B+")")}};
_.a.computeRedeemButton=function(B){(B=this.get("redeemButton.buttonRenderer",B))&&(B=Object.assign({},B,{serviceEndpoint:void 0}));return B};
_.a.onRedeemButtonTap=function(B){B.stopPropagation();vil();this.redeemCode()};
_.a.redeemCode=function(){var B=this;this.isLoading=!0;var c=this.riskService.init();_.Nf([c,this.loadPaymentThenable]).then(function(){var x=B.data.redeemButton.buttonRenderer.serviceEndpoint,P=_.eJO(),Y=payments.business.integration.ClientTokenFactory.createClientToken(_.t(x,_.qMI).countryCode,P);P={c:B.code.value.trim(),rd:window.btoa(P),ctk:Y};x&&_.cp().resolve(_.xu).resolveCommand(x,{form:Object.assign({},P,{element:B.hostElement})})},function(){B.showGenericError();
nK("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.SI(Error("Vl"))})};
_.a.onYtServiceRequestCompleted=function(B){B.stopPropagation();this.isLoading=!1;var c,x;this.errorMessage=(c=B.detail)==null?void 0:(x=c.data)==null?void 0:x.errorMessage;var P,Y;this.postRedemptionRenderer=(P=B.detail)==null?void 0:(Y=P.data)==null?void 0:Y.renderer;var g,k;if(B=(g=B.detail)==null?void 0:(k=g.data)==null?void 0:k.redirectEndpoint)this.isLoading=!0,_.aJ(this.hostElement,"yt-navigate",{endpoint:B});this.errorMessage?nK("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
B)&&_.OO("ypcRedeemFlowSucceeded")};
_.a.onYtServiceRequestError=function(B){B.stopPropagation();this.isLoading=!1;if(B=this.get("detail.error.message",B))this.errorMessage=_.fk(B);nK("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.a.onInvokeInstrumentManagerActionCompleted=function(B){B.stopPropagation();this.redeemCode()};
_.a.onInvokeInstrumentManagerActionError=function(B){B.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",B)){case "instrumentManagerLoadError":this.showGenericError();nK("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();nK("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.OO("ypcRedeemFlowCancelled")}};
_.a.onInput=function(){var B=this;_.yo(this,"onInput",function(){var c=B.code.value.trim();B.redeemButtonDisabled=c.length<B.MIN_CODE_LENGTH||c.length>B.MAX_CODE_LENGTH},200)};
_.a.onCodeInputKeypress=function(B){B.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(vil(),this.redeemCode())};
_.a.computeImageUrl=function(B){return B?_.Pw(B.thumbnails,600):null};
_.a.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
m2.prototype.onInvokeInstrumentManagerActionError=m2.prototype.onInvokeInstrumentManagerActionError;m2.prototype.onInvokeInstrumentManagerActionCompleted=m2.prototype.onInvokeInstrumentManagerActionCompleted;m2.prototype.onYtServiceRequestError=m2.prototype.onYtServiceRequestError;m2.prototype.onYtServiceRequestCompleted=m2.prototype.onYtServiceRequestCompleted;m2.prototype.dataChanged=m2.prototype.dataChanged;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],m2.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],m2.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Boolean)],m2.prototype,"redeemButtonDisabled",void 0);
_.L([_.F(),_.H("design:type",Object)],m2.prototype,"errorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],m2.prototype,"postRedemptionRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],m2.prototype,"observer",void 0);_.L([_.jr("#code"),_.H("design:type",HTMLInputElement)],m2.prototype,"code",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m2.prototype,"dataChanged",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m2.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m2.prototype,"onYtServiceRequestError",null);
_.L([_.nF("yt-invoke-instrument-manager-action-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m2.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.L([_.nF("yt-invoke-instrument-manager-action-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m2.prototype,"onInvokeInstrumentManagerActionError",null);_.L([_.y({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],m2);
_.G(m2,"ytd-redeem-code-renderer",function(){if(rhS!==void 0)return rhS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rhS=B},{mode:1});var Bzc;_.o2("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Ty=function(){var B=_.z.apply(this,arguments)||this;B.businessEmailDisplayState="HIDE_SECTION";return B};
_.w(Ty,_.z);_.a=Ty.prototype;_.a.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}}}}}};
_.a.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"};
_.a.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.a.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.vf("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.a.onYtServiceRequestCompleted=function(B){var c;if((c=B.detail.data)==null?0:c.businessEmail)this.businessEmail=B.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var x;if((x=B.detail.data)==null?0:x.errorMessage)this.businessEmailErrorMessage=B.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.a.computeEmailHref=function(B){return"mailto:"+B};
_.a.computeSafeUrl=function(B){if(B)return _.Tz(B)};
_.a.onBusinessEmailCaptchaSubmit=function(){var B;(B=this.data)!=null&&B.onBusinessEmailRevealClickCommand&&(B=this.JSC$19160_captchaTextarea.value)&&(B={recaptcha_response_token:B,channel_id:this.data.channelId},_.cp().resolve(_.xu).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},B,{element:this.hostElement})}))};
_.a.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.AJ.Object.defineProperties(Ty.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 B,c;return!((B=this.data)==null||!B.primaryLinks)&&!((c=this.data)==null?0:c.links)&&this.data.primaryLinks.every(function(x){return x.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.primaryLinks)&&!((c=this.data)==null?0:c.links)&&!this.shouldShowNewLinks}}});
Ty.prototype.onYtServiceRequestCompleted=Ty.prototype.onYtServiceRequestCompleted;Ty.prototype.dataChanged=Ty.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.jr("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],Ty.prototype,"JSC$19160_captchaTextarea",void 0);_.L([_.F(),_.H("design:type",Object)],Ty.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],Ty.prototype,"businessEmailDisplayState",void 0);_.L([_.F(),_.H("design:type",String)],Ty.prototype,"businessEmail",void 0);_.L([_.F(),_.H("design:type",String)],Ty.prototype,"businessEmailErrorMessage",void 0);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ty.prototype,"hideDetailsSection",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ty.prototype,"dataChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ty.prototype,"shouldShowNewLinks",null);_.L([_.Q("data","shouldShowLinks"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ty.prototype,"shouldShowLegacyLinks",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ty.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Ty);
_.G(Ty,"ytd-channel-about-metadata-renderer",function(){if(Bzc!==void 0)return Bzc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Bzc=B},{mode:1});var cTz;_.o2("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var V6=function(){return _.z.apply(this,arguments)||this};
_.w(V6,_.z);V6.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],V6.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],V6);
_.G(V6,"ytd-channel-featured-content-renderer",function(){if(cTz!==void 0)return cTz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return cTz=B},{mode:1});var xCz;_.o2("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var tY=function(){var B=_.z.apply(this,arguments)||this;B.roundContainer=!0;B.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return B};
_.w(tY,_.z);_.a=tY.prototype;_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a.dataChanged=function(){this.imageWidth=this.imageHeight=24;var B=this.data;B.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!B.style&&B.image&&B.image.thumbnails.length&&(B=B.image.thumbnails[0],this.imageWidth=B.width||0,this.imageHeight=B.height||0)};
_.a.computeSource=function(B){return B.secondarySource?_.iG(B.secondarySource):_.iG(B.source)};
_.a.computeClarifyStyle=function(B){return B?B.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.a.isLargeStyle=function(B){return B==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.a.computeBackgroundStyle=function(B){return B?B.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.a.computeHasActionButton=function(B){return!!B.actionButton};
_.a.computeHasBottomSection=function(B){return!!B.ctaHasBottomSection};
_.a.computeIsSourceMissing=function(B){return B.ctaHasBottomSection===!1?!0:B&&this.computeSource(B)?!1:!0};
_.a.computeSecondaryEndpoint=function(B){return B.secondaryEndpoint||B.endpoint};
tY.prototype.dataChanged=tY.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tY.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],tY.prototype,"imageWidth",void 0);_.L([_.F(),_.H("design:type",Number)],tY.prototype,"imageHeight",void 0);
_.L([_.F({computed:"computeSecondaryEndpoint(data)"}),_.H("design:type",Object)],tY.prototype,"secondaryEndpoint",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.H("design:type",Boolean)],tY.prototype,"hasActionButton",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.H("design:type",Boolean)],tY.prototype,"hasBottomSection",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.H("design:type",Boolean)],tY.prototype,"missingSource",void 0);_.L([_.F({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],tY.prototype,"icon",void 0);_.L([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",String)],tY.prototype,"secondaryIcon",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.H("design:type",String)],tY.prototype,"clarifyStyle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.H("design:type",String)],tY.prototype,"backgroundStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tY.prototype,"roundContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],tY.prototype,"amsterdamEnabled",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tY.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-clarification-renderer",disableElementRegistration:!0})],tY);
_.G(tY,"ytd-clarification-renderer",function(){if(xCz!==void 0)return xCz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return xCz=B},{mode:1});var P5z;var Y6z;var wh=function(){var B=_.z.apply(this,arguments)||this;B.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return B};
_.w(wh,_.z);_.a=wh.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.a.computeIcon=function(B){return B?"yt-icons:"+B.toLowerCase():null};
_.a.computeUseContacts=function(B){return!!B.contacts&&B.contacts.length>0};
_.a.computePhoneContact=function(B){var c,x;return(c=B.contacts)==null?void 0:(x=c.find(function(P){var Y;return(P==null?void 0:(Y=P.icon)==null?void 0:Y.iconType)==="PHONE"}))==null?void 0:x.actionText};
_.a.computeSmsContact=function(B){var c,x;return(c=B.contacts)==null?void 0:(x=c.find(function(P){var Y;return(P==null?void 0:(Y=P.icon)==null?void 0:Y.iconType)==="SMS"}))==null?void 0:x.actionText};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wh.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wh.prototype,"amsterdamEnabled",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.H("design:type",Boolean)],wh.prototype,"useContacts",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.H("design:type",String)],wh.prototype,"phoneContact",void 0);_.L([_.y({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],wh);
_.G(wh,"ytd-single-action-emergency-support-renderer",function(){if(Y6z!==void 0)return Y6z;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Y6z=B},{mode:1});_.o2("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Nx=function(){var B=_.z.apply(this,arguments)||this;B.roundedContainer=!0;B.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return B};
_.w(Nx,_.z);Nx.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Nx.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Nx.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Nx.prototype,"amsterdamEnabled",void 0);
_.L([_.y({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Nx);
_.G(Nx,"ytd-emergency-onebox-renderer",function(){if(P5z!==void 0)return P5z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return P5z=B},{mode:1});var ad8;_.o2("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var IV=function(){return _.z.apply(this,arguments)||this};
_.w(IV,_.z);IV.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],IV.prototype,"data",void 0);_.L([_.y({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],IV);
_.G(IV,"ytd-exploratory-results-renderer",function(){if(ad8!==void 0)return ad8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ad8=B},{mode:1});var gpF;_.o2("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var JY=function(){var B=_.z.apply(this,arguments)||this;B.messageData=null;return B};
_.w(JY,_.z);_.a=JY.prototype;_.a.onServiceRequestCompleted=function(B,c){B=c.actions||[];c=0;for(var x=B.length;c<x;c++){var P=B[c],Y=void 0,g=void 0;if((Y=_.t(P,_.t3))==null?0:(g=Y.item)==null?0:g.messageRenderer)this.messageData=_.t(P,_.t3).item.messageRenderer}};
_.a.dataChanged=function(){var B=this.data;this.hostElement.hidden=!1;_.gM(this.hostElement,"is-channel",B&&!B.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.a.computeThumbnailWidth=function(B){return B?126:56};
_.a.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.a.onSubmitTap=function(){var B=this.data,c=this.selectedResponseIndex;B!==void 0&&c!==void 0&&(B=B.responses[c],B.responseData&&_.cp().resolve(_.xu).resolveCommand(B.responseData,{form:{element:this.hostElement}}))};
_.a.onDismissTap=function(){this.hostElement.hidden=!0;var B=this.data;B!==void 0&&B.dismissalEndpoint&&_.cp().resolve(_.xu).resolveCommand(B.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.updateSelectedResponseIndexFromBinding=function(B){this.selectedResponseIndex=B.detail.value};
JY.prototype.onSelectedResponseIndexChange=JY.prototype.onSelectedResponseIndexChange;JY.prototype.dataChanged=JY.prototype.dataChanged;JY.prototype.onServiceRequestCompleted=JY.prototype.onServiceRequestCompleted;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JY.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],JY.prototype,"messageData",void 0);
_.L([_.F(),_.H("design:type",Number)],JY.prototype,"selectedResponseIndex",void 0);_.L([_.jr("#submit-button"),_.H("design:type",HTMLButtonElement)],JY.prototype,"submitButton",void 0);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],JY.prototype,"onServiceRequestCompleted",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JY.prototype,"dataChanged",null);
_.L([_.bF("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JY.prototype,"onSelectedResponseIndexChange",null);_.L([_.y({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],JY);
_.G(JY,"ytd-feedback-elicitation-single-question-renderer",function(){if(gpF!==void 0)return gpF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gpF=B},{mode:1});var sbl;var Wn=function(){return _.z.apply(this,arguments)||this};
_.w(Wn,_.z);Wn.prototype.computeThumbnailWidth=function(B){return B?602:428};
Wn.prototype.updateWideFromBinding=function(B){this.wide=B.detail.value};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wn.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],Wn.prototype,"wide",void 0);_.L([_.y({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Wn);
_.G(Wn,"ytd-newspaper-hero-video-renderer",function(){if(sbl!==void 0)return sbl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return sbl=B},{mode:1});var pur;var ln=function(){return _.z.apply(this,arguments)||this};
_.w(ln,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ln.prototype,"rendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ln.prototype,"data",void 0);_.L([_.y({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],ln);
_.G(ln,"ytd-newspaper-mini-video-renderer",function(){if(pur!==void 0)return pur;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pur=B},{mode:1});var kNr;_.o2("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Eu=function(){return _.z.apply(this,arguments)||this};
_.w(Eu,_.z);Eu.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"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Eu.prototype,"data",void 0);_.L([_.y({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Eu);
_.G(Eu,"ytd-newspaper-renderer",function(){if(kNr!==void 0)return kNr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kNr=B},{mode:1});var Xur;_.o2("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Ou=function(){var B=_.z.apply(this,arguments)||this;B.isSegment=!1;B.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};B.nextContinuation={continuationType:"playlistVideoListContinuation"};return B};
_.w(Ou,_.z);_.a=Ou.prototype;_.a.attached=function(){_.cp();var B;(B=_.cp().resolve(_.Bp(_.ff)))!=null&&(B.playlistVideoListElement=this.hostElement)};
_.a.detached=function(){var B;(B=_.cp().resolve(_.Bp(_.ff)))!=null&&(B.playlistVideoListElement=void 0);B=_.cp().resolve(_.Bp(_.xB));_.T("web_enable_voting_animation")&&B&&(B.parentElem=void 0,B.videos=[],B.continuationsPresent=!1,B.showRefreshPill=!1)};
_.a.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"}}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.a.dataChanged=function(){var B=_.cp().resolve(_.Bp(_.xB));if(_.T("web_enable_voting_animation")&&this.data&&B){var c=_.Y9(this.hostElement).querySelector("#contents");c&&(B.parentElem=c);B.addVideos(this.data.contents)}_.DUn(this.ytReorderableBehavior)};
_.a.onRendererstamperFinished=function(){this.canReorder&&_.rtZ(this.ytReorderableBehavior,_.Y9(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.a.onPlaylistReloading=function(){this.isReloading=!0};
_.a.onUpdateSetVideoId=function(B){if(B.detail&&this.data&&this.data.contents){var c=B.detail;B=this.data.contents.findIndex(function(Y){var g;return((g=Y.playlistVideoRenderer)==null?void 0:g.videoId)===c.videoId});
if(!(B<0)&&c.setVideoId&&(this.set("data.contents."+B+".playlistVideoRenderer.setVideoId",c.setVideoId),_.T("web_enable_voting_animation"))){var x;if(B=_.t((x=this.data.contents[B].playlistVideoRenderer)==null?void 0:x.engagementBar,_.mo7)){var P;(P=B.actions)==null||P.forEach(function(Y){if(Y=_.t(Y,_.TnY))Y.itemId=c.setVideoId})}(x=_.cp().resolve(_.Bp(_.xB)))&&zMz(x,c.videoId,c.setVideoId)}}};
_.a.computeContentsClass=function(B){return B?"reloading":""};
_.a.computeIsSortable=function(B,c){return B&&c>0&&!this.isSegment&&!_.T("shorts_in_playlists_web")};
_.a.computeIsEditable=function(B){return B};
_.a.computeCanReorder=function(B){return B};
_.a.handlePlaylistRemoveVideosAction=function(B){if(this.get("playlistRemoveVideosAction.setVideoIds",B)&&this.data&&this.data.contents){B=_.t(B,_.IZ5).setVideoIds;for(var c=this.data.contents.length-1;c>=0;){var x=this.data.contents[c].playlistVideoRenderer;x&&x.setVideoId&&B.includes(x.setVideoId)&&this.splice("data.contents",c,1);c--}_.gj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.a.updateIndices=function(){if(this.data&&this.data.contents)for(var B=0;B<this.data.contents.length;B++)this.set("data.contents."+B+".playlistVideoRenderer.index",_.fk(String(B+1)))};
_.a.handleDrop=function(B){B=B.currDragItem;var c=_.G7(B.parentNode.childNodes,B),x=this.data.contents.splice(Number(_.iG(B.data.index))-1,1)[0];this.data.contents.splice(c,0,x);c=c?this.get("contents."+(c-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();B=this.buildReorderServiceEndpoint(B.data.setVideoId,c);this.ytComponentBehavior.resolveCommand(B)};
_.a.buildReorderServiceEndpoint=function(B,c){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",B),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",c),this.data.onReorderEndpoint):null};
_.a.handleUpdatePlaylistAction=function(B){var c;(B=_.t((c=_.t(B,_.Jd5))==null?void 0:c.updatedRenderer,_.fWI))&&this.canReorder!==B.canReorder&&this.set("data.canReorder",B.canReorder);B&&B.contents&&(this.set("data.contents",B.contents),this.isReloading=!1);B&&B.continuations&&this.set("data.continuations",B.continuations)};
_.a.handleAddRendererToItemSectionAction=function(B){var c,x=(c=_.t(B,LnN))==null?void 0:c.renderer,P;x&&((P=_.t(B,LnN))==null?void 0:P.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,x),B=_.cp().resolve(_.Bp(_.xB)),_.T("web_enable_voting_animation")&&B&&(x&&(c=_.hJx(x))&&B.recommendedVideos.push({itemId:c,videoId:_.Vzq(x),voteCount:_.tzx(x),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.a.isVotingEnabledOnPlaylist=function(B){if(!B)return!1;B=_.p(B);for(B=B.next();!B.done;B=B.next()){var c=void 0;return!!_.t((c=B.value.playlistVideoRenderer)==null?void 0:c.engagementBar,_.mo7)}return!1};
_.a.onAppendContinuationItemsActionFinished=function(){var B;this.isVotingEnabledOnPlaylist((B=this.data)==null?void 0:B.contents)&&(this.updateIndices(),B=_.cp().resolve(_.Bp(_.xB)),_.T("web_enable_voting_animation")&&B&&this.data&&B.addVideos(this.data.contents))};
_.a.updateVideoData=function(B){if(B.detail&&this.data&&this.data.contents){var c=B.detail;B=c.toIdx;var x=c.itemId,P=c.newVoteCount,Y=c.voteStatus;c=c.hideItem;var g,k,n=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:k.findIndex(function(C){return _.hJx(C)===x});
if(!(n<0)){g=this.data.contents[n];var b;if((b=g.playlistVideoRenderer)==null?0:b.voteCount)g.playlistVideoRenderer.voteCount=P;var d;if(b=_.t((d=g.playlistVideoRenderer)==null?void 0:d.engagementBar,_.mo7)){var q;(q=b.actions)==null||q.forEach(function(C){(C=_.t(C,_.TnY))&&C.initialState&&(C.initialState.votes=P,C.initialState.status=Y)})}this.data.contents.splice(n,1);
c||this.data.contents.splice(B,0,g);this.updateIndices()}}};
Ou.prototype.updateVideoData=Ou.prototype.updateVideoData;Ou.prototype.onAppendContinuationItemsActionFinished=Ou.prototype.onAppendContinuationItemsActionFinished;Ou.prototype.onUpdateSetVideoId=Ou.prototype.onUpdateSetVideoId;Ou.prototype.onPlaylistReloading=Ou.prototype.onPlaylistReloading;Ou.prototype.onRendererstamperFinished=Ou.prototype.onRendererstamperFinished;Ou.prototype.dataChanged=Ou.prototype.dataChanged;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],Ou.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.J(_.RN5),_.H("design:type",Object)],Ou.prototype,"ytReorderableBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],Ou.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ou.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ou.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],Ou.prototype,"isReloading",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ou.prototype,"isSegment",void 0);_.L([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.H("design:type",Boolean)],Ou.prototype,"isSortable",void 0);_.L([_.F({computed:"computeIsEditable(data.isEditable)"}),_.H("design:type",Boolean)],Ou.prototype,"isEditable",void 0);_.L([_.F({computed:"computeCanReorder(data.canReorder)"}),_.H("design:type",Boolean)],Ou.prototype,"canReorder",void 0);
_.L([_.F({value:101}),_.H("design:type",Number)],Ou.prototype,"scrollMargin",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ou.prototype,"dataChanged",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ou.prototype,"onRendererstamperFinished",null);
_.L([_.nF("yt-playlist-reloading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ou.prototype,"onPlaylistReloading",null);_.L([_.nF("yt-update-set-video-id"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ou.prototype,"onUpdateSetVideoId",null);
_.L([_.nF("yt-append-continuation-items-action-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ou.prototype,"onAppendContinuationItemsActionFinished",null);_.L([_.nF("yt-update-video-data-voting-animation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ou.prototype,"updateVideoData",null);_.L([_.y({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Ou);
_.G(Ou,"ytd-playlist-video-list-renderer",function(){if(Xur!==void 0)return Xur;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Xur=B},{mode:_.sL("kevlar_poly_si_batch_j047")?1:2});var $Cc;var oV=function(){return _.z.apply(this,arguments)||this};
_.w(oV,_.z);oV.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"}}}}};
oV.prototype.onTextWrapperTap=function(B){var c=this.data&&this.data.navigationEndpoint;c&&!_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:c})};
oV.prototype.dataChanged=function(){var B=this.get("data.offerButton.buttonRenderer.serviceEndpoint");B&&B.commandMetadata&&_.t(B.commandMetadata,_.W7)&&_.t(B.commandMetadata,_.W7).fireAutomatically&&_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})};
oV.prototype.dataChanged=oV.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Mz),_.H("design:type",Object)],oV.prototype,"ytdLockupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oV.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],oV.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],oV.prototype,"biggerThumbsStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],oV.prototype,"leftAligned",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oV.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-movie-renderer"})],oV);
_.G(oV,"ytd-movie-renderer",function(){if($Cc!==void 0)return $Cc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $Cc=B},{mode:1});var npz;var Q6=function(){var B=_.z.apply(this,arguments)||this;B.rounded=!0;B.pageAttachedTo=void 0;B.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return B};
_.w(Q6,_.z);Q6.prototype.attached=function(){this.pageAttachedTo=_.cp().resolve(_.rV).getCurrentPage();_.aJ(this.hostElement,"yt-player-attached",this.player)};
Q6.prototype.detached=function(){var B;if((B=this.pageAttachedTo)==null?0:B.hostElement)_.aJ(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Q6.prototype.dataChanged=function(){var B;if((B=this.data)==null?0:B.videoId)B={video_id:this.data.videoId,autoplay:!0},!_.T("miniplayer_stop_channel_video_autoplay_killswitch")&&_.cp().resolve(_.Ge).isMiniplayerActive()&&(B.pause_at_start=!0,B.autoplay=!1),this.player.loadVideoWithPlayerVars(B)};
Q6.prototype.handleSignalActionPausePlayer=function(){_.Bv().pause()};
Q6.prototype.dataChanged=Q6.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],Q6.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q6.prototype,"rounded",void 0);_.L([_.jr("#player"),_.H("design:type",Object)],Q6.prototype,"player",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q6.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Q6);
_.G(Q6,"ytd-channel-video-player-renderer",function(){if(npz!==void 0)return npz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return npz=B},{mode:1});var bur;var KNA;var jbz;var F3=function(){var B=_.z.apply(this,arguments)||this;B.playing=!1;B.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Py(B);B.active=!1;return B};
_.w(F3,_.z);_.a=F3.prototype;_.a.detached=function(){this.stop()};
_.a.play=function(){var B=this,c,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return B.active=!0,c=B.get("data.inlinePlaybackEndpoint.watchEndpoint"),x=c.videoId||B.data.videoId,P=c.startTimeSeconds||0,Y=c.playerParams||null,_.T("kevlar_player_update_killswitch")?_.K(k,B.playerEl.update({args:{video_id:x,startSeconds:P,player_params:Y}}),2):(B.playerEl.loadVideoWithPlayerVars({video_id:x,startSeconds:P,player_params:Y,autoplay:!0}),k.jumpTo(2));if(k.nextAddress!=4)return _.K(k,B.playerEl.getPlayerPromise(),
4);g=k.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(n){B.onPlayerStateChange(n)});
_.Kq(k)})};
_.a.onPlayerStateChange=function(B){if(this.active)switch(this.playing=B===1,B){case 1:_.aJ(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.aJ(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.a.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.a.resize=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.playerEl.getPlayerPromise(),2);c=x.yieldResult;c.setSize(NaN,NaN);_.Kq(x)})};
_.L([_.F(),_.H("design:type",Object)],F3.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],F3.prototype,"playing",void 0);_.L([_.F(),_.H("design:type",Object)],F3.prototype,"playerId",void 0);_.L([_.jr("#player"),_.H("design:type",Object)],F3.prototype,"playerEl",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],F3);
_.G(F3,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(jbz!==void 0)return jbz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jbz=B},{mode:1});var UCA;var dCy;var vn=function(){var B=_.z.apply(this,arguments)||this;B.width=0;return B};
_.w(vn,_.z);_.a=vn.prototype;_.a.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.$9(this,this.onEnded));this.mp4El.addEventListener("error",_.$9(this,this.onError))};
_.a.detached=function(){this.videoEl.removeEventListener("ended",_.$9(this,this.onEnded));this.mp4El.removeEventListener("error",_.$9(this,this.onError))};
_.a.play=function(){var B=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var c=this.videoEl.play();c?c.then(function(){B.handleVideoStartPlaying()}).catch(function(){_.aJ(B.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.aJ(this.hostElement,"yt-video-thumbnail-not-playing")};
_.a.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.a.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.a.dataChanged=function(){var B;if((B=this.data)==null?0:B.thumbnailPlaceholder)B=_.Pw(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+B+")";this.stop();this.autoplay&&this.play()};
_.a.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.a.onEnded=function(){this.stop();_.aJ(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.a.onError=function(){_.aJ(this.hostElement,"yt-video-thumbnail-error")};
_.a.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.a.getVideoThumbnail=function(B){if(B&&B.length)return B[0]};
vn.prototype.dataChanged=vn.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],vn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],vn.prototype,"animatePlaceholderOnEntrance",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],vn.prototype,"autoplay",void 0);_.L([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.H("design:type",Object)],vn.prototype,"videoThumbnail",void 0);
_.L([_.F(),_.H("design:type",Boolean)],vn.prototype,"loop",void 0);_.L([_.F(),_.H("design:type",Boolean)],vn.prototype,"isVideoPlaying",void 0);_.L([_.F(),_.H("design:type",Object)],vn.prototype,"width",void 0);_.L([_.jr("#mp4"),_.H("design:type",HTMLElement)],vn.prototype,"mp4El",void 0);_.L([_.jr("#placeholder"),_.H("design:type",HTMLElement)],vn.prototype,"placeholderEl",void 0);_.L([_.jr("#video"),_.H("design:type",HTMLVideoElement)],vn.prototype,"videoEl",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vn.prototype,"dataChanged",null);_.L([_.Em({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],vn);
_.G(vn,"yt-video-as-thumbnail-details",function(){if(dCy===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;UCA===void 0&&(UCA=document.createElement("template"));var P=UCA;x.call(c,P.content.cloneNode(!0),B.content.firstChild);dCy=B}B=dCy;return B},{mode:2});var zy=function(){var B=_.z.apply(this,arguments)||this;B.disableGridStateAware=!1;B.animationEnabled=_.T("enable_web_ketchup_hero_animation");B.transitioningOut=!1;B.narrow=!1;B.narrower=!1;B.isCarouselInFeed=!1;B.videoTimeoutJobId=0;B.panelTimeoutJobId=0;B.panelTimeoutJobStartMs=0;B.actionMap={"yt-window-resized":"onWindowResized"};return B};
_.w(zy,_.z);_.a=zy.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.a.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.a.attached=function(){this.onWindowResized()};
_.a.detached=function(){this.clearTimeouts()};
_.a.onWindowResized=function(){this.updateSize()};
_.a.computePanelLayout=function(B){return B&&B.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.a.playVideo=function(){var B;this.video&&((B=this.data)==null?0:B.videoThumbnail)&&this.video.play();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.play()};
_.a.stopVideo=function(){var B;this.video&&((B=this.data)==null?0:B.videoThumbnail)&&this.video.stop();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.stop()};
_.a.transitionOut=function(){var B=this;this.transitioningOut=!0;return new Promise(function(c){var x=function(){_.Y9(B.hostElement).querySelector("#action-button").removeEventListener("animationend",x);_.EE.cancelJob(P);c();B.transitioningOut=!1};
var P=_.Vp(_.EE,x,1E3);_.Y9(B.hostElement).querySelector("#action-button").addEventListener("animationend",x);B.player&&(B.player.playing=!1)})};
_.a.computeMetadataOrder=function(B){return B&&B.metadataOrder&&B.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?B.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.a.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.a.computeAvatarSize=function(B){return B&&B.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.a.onContentClick=function(B){if(!_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString()])){var c;if((c=this.data)==null?0:c.navigationEndpoint){var x;this.componentBehavior.resolveCommand((x=this.data)==null?void 0:x.navigationEndpoint)}}};
_.a.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.a.setBackgroundImage=function(B){if(B=this.getBackgroundImageUrl(B))_.Y9(this.hostElement).querySelector("#hero").style.backgroundImage="url("+B+")"};
_.a.setScrimLayer=function(B){var c=this.getScrimLayerColorStops(B);B=((B==null?void 0:B.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(B=180);_.v5("HTML_DIR")==="rtl"&&(B=-B);c&&(_.Y9(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+B+"deg, "+c+")")};
_.a.isNarrower=function(){return this.hostElement.clientWidth<zy.NARROW_VERSION_SIZE};
_.a.getScrimLayerColorStops=function(){var B,c=(B=this.data)==null?void 0:B.scrimColorValues;if(!c)return null;if(c.length===1)return B=_.SF(c[0]),B+" 0%, "+B+" 100%";if(c.length===3){var x=[0,72,98];return c.map(function(P,Y){return _.SF(P)+" "+x[Y]+"%"}).join(",")}return null};
_.a.getBackgroundImageUrl=function(B){return B&&B.largeFormFactorBackgroundThumbnail?_.Pw((B.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||B.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.a.onPlaying=function(){this.startVideoTimeout()};
_.a.onEnded=function(){this.rotate()};
_.a.startPanelTimeout=function(){var B=this;if(!this.panelTimeoutJobId){var c=this.get("data.minPanelDisplayDurationMs");c&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Vp(_.EE,function(){B.rotate()},c))}};
_.a.startVideoTimeout=function(){var B=this;if(!this.videoTimeoutJobId){_.EE.cancelJob(this.panelTimeoutJobId);var c=Date.now()-this.panelTimeoutJobStartMs;c=Math.max(0,this.get("data.minPanelDisplayDurationMs")-c);c=Math.max(this.get("data.minVideoPlayDurationMs")||0,c);this.videoTimeoutJobId=_.Vp(_.EE,function(){B.rotate()},c)}};
_.a.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.EE.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.EE.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.a.rotate=function(){this.clearTimeouts();_.aJ(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.AJ.Object.defineProperties(zy.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Y9(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Y9(this.hostElement).querySelector("#video")}}});
_.AJ.Object.defineProperties(zy,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
zy.prototype.onEnded=zy.prototype.onEnded;zy.prototype.onPlaying=zy.prototype.onPlaying;zy.prototype.dataChanged=zy.prototype.dataChanged;_.L([_.J(_.vD),_.H("design:type",Object)],zy.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],zy.prototype,"componentBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],zy.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.J(_.F6d),_.H("design:type",Object)],zy.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"disableGridStateAware",void 0);_.L([_.F(),_.H("design:type",Object)],zy.prototype,"data",void 0);_.L([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.H("design:type",String)],zy.prototype,"panelLayout",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"animationEnabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"transitioningOut",void 0);
_.L([_.F({computed:"computeMetadataOrder(data)"}),_.H("design:type",Boolean)],zy.prototype,"metadataOrder",void 0);_.L([_.F({computed:"computeByline(data)"}),_.H("design:type",Object)],zy.prototype,"byline",void 0);_.L([_.F({computed:"computeAvatarSize(data)"}),_.H("design:type",Number)],zy.prototype,"avatarSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"narrow",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"narrower",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"layoutStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"isCarouselInFeed",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zy.prototype,"dataChanged",null);_.L([_.nF("yt-default-promo-panel-renderer-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zy.prototype,"onPlaying",null);
_.L([_.nF("yt-default-promo-panel-renderer-ended"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zy.prototype,"onEnded",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],zy);
_.G(zy,"ytd-default-promo-panel-renderer",function(){if(KNA!==void 0)return KNA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KNA=B},{mode:1});_.o2("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Sa=function(){var B=_.z.apply(this,arguments)||this;B.narrower=!1;B.dotMenuVisible=!1;B.paginationThumbnailsVisible=!1;B.active=!0;B.disableGridStateAware=!1;B.actionMap={"yt-window-resized":"onWindowResized"};return B};
_.w(Sa,_.z);_.a=Sa.prototype;_.a.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]]"}}}}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.$9(this,this.onPageTypeChange));this.currentPageSubtype=_.Kr(location.pathname);this.onWindowResized()};
_.a.detached=function(){this.jobId&&_.EE.cancelJob(this.jobId);this.updateSizeJobId&&_.EE.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.$9(this,this.onPageTypeChange))};
_.a.onPageTypeChange=function(B){this.active=B.detail.newPageSubtype===this.currentPageSubtype};
_.a.onWindowResized=function(){this.updateSize()};
_.a.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.a.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.a.setCarouselItem=function(B){B>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.EE.cancelJob(this.jobId);var c=this.getCurrentPanelElement();c&&c.stopVideo();this.currentItemIndex=B%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(c||(c=this.getCurrentPanelElement()),c.playVideo()):this.startRotationJob()};
_.a.scrollThumbnails=function(B){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var c=this.getCurrentPaginationElement();if(c){var x=_.Y9(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?x.style.transform="translateX(0)":(c=c.offsetWidth+8,x.style.transform="translateX(-"+c*(B-Math.ceil(Math.floor(this.overlay.offsetWidth/c)/2)+1)+"px)")}}};
_.a.onDataChanged=function(){var B=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Nv(_.EE,function(){B.getCurrentPanelElement().updateSize();B.updateSize()}))};
_.a.getCurrentPanelElement=function(){return _.Y9(_.Y9(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.a.getCurrentPaginationElement=function(){return _.Y9(_.Y9(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.a.getNavigationClass=function(B,c){return B===c?"selected":""};
_.a.getNavigationDurationStyle=function(B){return"animation-duration:"+(this.get("data.carouselItems."+B+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.a.onNavigationTap=function(B){var c=this,x=B.model.index;x!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){c.setCarouselItem(x)}),this.autorotateActive=!1)};
_.a.onVideoThumbnailEnded=function(){var B=this;if(this.shouldRotate()){var c=this.getCurrentPaginationElement();c&&(c.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){c.classList.remove("finished");B.setNextCarouselItem()}))}};
_.a.onVideoThumbnailError=function(){this.startRotationJob()};
_.a.onVideoNotPlaying=function(){this.startRotationJob()};
_.a.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.a.startRotationJob=function(){var B=this;_.EE.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.EE.addLowPriorityJob(function(){B.getCurrentPanelElement().transitionOut().then(function(){B.setNextCarouselItem()})},this.rotationTimeout))};
_.a.computeDotMenuVisible=function(B,c){return!!B&&!!B.carouselItems&&B.carouselItems.length>1&&!B.paginationThumbnails||!!c};
_.a.computePaginationThumbnailsVisible=function(B,c){var x,P;return((P=B==null?void 0:(x=B.paginationThumbnails)==null?void 0:x.length)!=null?P:0)>1&&!c};
_.a.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.a.computePaginatorAlignment=function(B){return(B==null?void 0:B.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.a.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.a.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.a.isNarrower=function(B){return(B!=null?B:0)<zy.NARROW_VERSION_SIZE};
Sa.prototype.activeChanged=Sa.prototype.activeChanged;Sa.prototype.onVideoNotPlaying=Sa.prototype.onVideoNotPlaying;Sa.prototype.onVideoThumbnailError=Sa.prototype.onVideoThumbnailError;Sa.prototype.onVideoThumbnailEnded=Sa.prototype.onVideoThumbnailEnded;Sa.prototype.onDataChanged=Sa.prototype.onDataChanged;_.L([_.J(_.vD),_.H("design:type",Object)],Sa.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Sa.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Sa.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Sa.prototype,"currentItem",void 0);
_.L([_.F(),_.H("design:type",Number)],Sa.prototype,"currentItemIndex",void 0);_.L([_.F(),_.H("design:type",Number)],Sa.prototype,"rotationTimeout",void 0);_.L([_.F(),_.H("design:type",Number)],Sa.prototype,"loopCount",void 0);_.L([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.H("design:type",String)],Sa.prototype,"paginatorAlignment",void 0);_.L([_.F(),_.H("design:type",Number)],Sa.prototype,"jobId",void 0);
_.L([_.F(),_.H("design:type",Number)],Sa.prototype,"updateSizeJobId",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Sa.prototype,"isCarouselInFeed",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Sa.prototype,"narrower",void 0);_.L([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.H("design:type",Object)],Sa.prototype,"dotMenuVisible",void 0);
_.L([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.H("design:type",Object)],Sa.prototype,"paginationThumbnailsVisible",void 0);_.L([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.H("design:type",String)],Sa.prototype,"layoutType",void 0);_.L([_.F({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],Sa.prototype,"autorotateActive",void 0);_.L([_.F(),_.H("design:type",Object)],Sa.prototype,"active",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Sa.prototype,"disableGridStateAware",void 0);_.L([_.jr("#overlay"),_.H("design:type",HTMLElement)],Sa.prototype,"overlay",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sa.prototype,"onDataChanged",null);
_.L([_.nF("yt-video-thumbnail-ended"),_.nF("yt-default-promo-panel-renderer-rotate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sa.prototype,"onVideoThumbnailEnded",null);_.L([_.nF("yt-video-thumbnail-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sa.prototype,"onVideoThumbnailError",null);
_.L([_.nF("yt-video-thumbnail-not-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sa.prototype,"onVideoNotPlaying",null);_.L([_.CF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sa.prototype,"activeChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Sa);
_.G(Sa,"ytd-carousel-item-renderer",function(){if(bur!==void 0)return bur;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return bur=B},{mode:2});var q6z;var C5l;var htc;var mCN;var y6=function(){var B=_.z.apply(this,arguments)||this;B.originalQuery=null;B.originalEndpoint=null;return B};
_.w(y6,_.z);y6.prototype.computeShowOriginalQueryWithoutEndpoint_=function(B,c){return!(!B||c)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],y6.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],y6.prototype,"correctedText",void 0);_.L([_.F(),_.H("design:type",Object)],y6.prototype,"correctedQuery",void 0);_.L([_.F(),_.H("design:type",Object)],y6.prototype,"correctedEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],y6.prototype,"originalText",void 0);_.L([_.F(),_.H("design:type",Object)],y6.prototype,"originalQuery",void 0);
_.L([_.F(),_.H("design:type",Object)],y6.prototype,"originalEndpoint",void 0);_.L([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.H("design:type",Boolean)],y6.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.L([_.Em({is:"yt-search-query-correction",disableElementRegistration:!0})],y6);
_.G(y6,"yt-search-query-correction",function(){if(mCN===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;htc===void 0&&(htc=document.createElement("template"));var P=htc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);mCN=B}B=mCN;return B},{mode:2});_.o2("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Gy=function(){return _.z.apply(this,arguments)||this};
_.w(Gy,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Gy.prototype,"data",void 0);_.L([_.Em({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Gy);
_.G(Gy,"yt-did-you-mean-renderer",function(){if(C5l===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;q6z===void 0&&(q6z=document.createElement("template"));var P=q6z;x.call(c,P.content.cloneNode(!0),B.content.firstChild);C5l=B}B=C5l;return B},{mode:2});var Tzl;var VvA;_.o2("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Mx=function(){return _.z.apply(this,arguments)||this};
_.w(Mx,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Mx.prototype,"data",void 0);_.L([_.Em({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Mx);
_.G(Mx,"yt-including-results-for-renderer",function(){if(VvA===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Tzl===void 0&&(Tzl=document.createElement("template"));var P=Tzl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);VvA=B}B=VvA;return B},{mode:2});var tvc;var wuz;_.o2("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var LK=function(){return _.z.apply(this,arguments)||this};
_.w(LK,_.z);LK.prototype.computeExtraClasses_=function(B,c){var x="";B&&(x+=" "+B.toLowerCase().replace(/_/g,"-"));c&&(x+=" "+c.toLowerCase().replace(/_/g,"-"));return x};
LK.prototype.computeUrlImg_=function(){var B=this.data;B.image&&(_.Y9(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Pw(B.image.thumbnails,Number.MAX_VALUE)+")")};
LK.prototype.computeUrlImg_=LK.prototype.computeUrlImg_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LK.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LK.prototype,"computeUrlImg_",null);_.L([_.Em({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],LK);
_.G(LK,"yt-music-pass-feature-info-renderer",function(){if(wuz===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;tvc===void 0&&(tvc=document.createElement("template"));var P=tvc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);wuz=B}B=wuz;return B},{mode:2});var Nzl;var Idz;_.o2("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var ZN=function(){return _.z.apply(this,arguments)||this};
_.w(ZN,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZN.prototype,"data",void 0);_.L([_.Em({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ZN);
_.G(ZN,"yt-no-results-found-showing-results-for-renderer",function(){if(Idz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Nzl===void 0&&(Nzl=document.createElement("template"));var P=Nzl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Idz=B}B=Idz;return B},{mode:2});var JTz;var WNi;_.o2("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Hn=function(){return _.z.apply(this,arguments)||this};
_.w(Hn,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Hn.prototype,"data",void 0);_.L([_.Em({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Hn);
_.G(Hn,"yt-results-without-quotes-renderer",function(){if(WNi===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;JTz===void 0&&(JTz=document.createElement("template"));var P=JTz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);WNi=B}B=WNi;return B},{mode:2});var ldB;var EpS;_.o2("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var fK=function(){return _.z.apply(this,arguments)||this};
_.w(fK,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fK.prototype,"data",void 0);_.L([_.Em({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],fK);
_.G(fK,"yt-search-no-results-renderer",function(){if(EpS===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;ldB===void 0&&(ldB=document.createElement("template"));var P=ldB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);EpS=B}B=EpS;return B},{mode:2});var Oul;var opi;_.o2("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var AY=function(){return _.z.apply(this,arguments)||this};
_.w(AY,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AY.prototype,"data",void 0);_.L([_.Em({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],AY);
_.G(AY,"yt-showing-results-for-renderer",function(){if(opi===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Oul===void 0&&(Oul=document.createElement("template"));var P=Oul;x.call(c,P.content.cloneNode(!0),B.content.firstChild);opi=B}B=opi;return B},{mode:2});var QbF;var FNz;var vpr;var ztz;var un=function(){var B=_.z.apply(this,arguments)||this;B.answerExpanded=!1;return B};
_.w(un,_.z);un.prototype.toggleAnswer_=function(B){var c=_.uI(B);c&&c.classList.contains("yt-simple-endpoint")||(B.preventDefault(),B.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
un.prototype.toggleAnswer_=un.prototype.toggleAnswer_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],un.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],un.prototype,"answerExpanded",void 0);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],un.prototype,"toggleAnswer_",null);
_.L([_.Em({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],un);
_.G(un,"yt-generic-faq-question-renderer",function(){if(ztz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;vpr===void 0&&(vpr=document.createElement("template"));var P=vpr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ztz=B}B=ztz;return B},{mode:2});_.o2("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var DN=function(){return _.z.apply(this,arguments)||this};
_.w(DN,_.z);DN.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DN.prototype,"data",void 0);_.L([_.Em({is:"yt-faq-section-renderer",disableElementRegistration:!0})],DN);
_.G(DN,"yt-faq-section-renderer",function(){if(FNz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;QbF===void 0&&(QbF=document.createElement("template"));var P=QbF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);FNz=B}B=FNz;return B},{mode:2});var S6i;var yTz;_.o2("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var rh=function(){return _.z.apply(this,arguments)||this};
_.w(rh,_.z);
rh.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rh.prototype,"data",void 0);_.L([_.Em({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],rh);
_.G(rh,"yt-offer-item-expanded-renderer",function(){if(yTz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;S6i===void 0&&(S6i=document.createElement("template"));var P=S6i;x.call(c,P.content.cloneNode(!0),B.content.firstChild);yTz=B}B=yTz;return B},{mode:2});var GN6;var Mvo;_.o2("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var RV=function(){return _.z.apply(this,arguments)||this};
_.w(RV,_.z);
RV.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"}}}}};
RV.prototype.computeFullWidthMode=function(B){return!(!B||!B.fullWidthMode)};
RV.prototype.computeBorderlessMode=function(B){return!(!B||!B.borderlessMode)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RV.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.H("design:type",Boolean)],RV.prototype,"fullWidthMode",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.H("design:type",Boolean)],RV.prototype,"borderlessMode",void 0);_.L([_.Em({is:"yt-offer-item-renderer",disableElementRegistration:!0})],RV);
_.G(RV,"yt-offer-item-renderer",function(){if(Mvo===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;GN6===void 0&&(GN6=document.createElement("template"));var P=GN6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Mvo=B}B=Mvo;return B},{mode:2});var LNy;var ZuA;_.o2("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var ea=function(){return _.z.apply(this,arguments)||this};
_.w(ea,_.z);ea.prototype.computeAriaLevel_=function(B){return this.getLevelID_(B)};
ea.prototype.getLevelID_=function(B){return(B=B.match(/[0-9]+$/))&&B.length==1?B[0]:"1"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ea.prototype,"data",void 0);_.L([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.H("design:type",String)],ea.prototype,"ariaLevel",void 0);_.L([_.F({value:"heading",reflectToAttribute:!0}),_.H("design:type",String)],ea.prototype,"role",void 0);
_.L([_.F({value:-1,reflectToAttribute:!0}),_.H("design:type",Number)],ea.prototype,"tabindex",void 0);_.L([_.Em({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],ea);
_.G(ea,"yt-subscription-product-header-renderer",function(){if(ZuA===void 0){var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;LNy===void 0&&(LNy=document.createElement("template"));var P=LNy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ZuA=B}B=ZuA;return B},{mode:2});var HuB;var fdB;_.o2("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var B9=function(){return _.z.apply(this,arguments)||this};
_.w(B9,_.z);B9.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:_.Qf("menuRenderer"),events:!0}}};
B9.prototype.onStampFinished_=function(){_.Y9(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
B9.prototype.onStampFinished_=B9.prototype.onStampFinished_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],B9.prototype,"data",void 0);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],B9.prototype,"onStampFinished_",null);
_.L([_.Em({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],B9);
_.G(B9,"yt-subscription-product-renderer",function(){if(fdB===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;HuB===void 0&&(HuB=document.createElement("template"));var P=HuB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);fdB=B}B=fdB;return B},{mode:2});var iuB;var ATs;_.o2("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var c9=function(){return _.z.apply(this,arguments)||this};
_.w(c9,_.z);c9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
c9.prototype.imageScrimColorValuesChanged_=function(){var B,c=(B=this.data)==null?void 0:B.imageScrimColorValues;_.Y9(this.hostElement).querySelector("#scrim").style.backgroundColor=c?_.SF(c[0]):"transparent"};
c9.prototype.imageScrimColorValuesChanged_=c9.prototype.imageScrimColorValuesChanged_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],c9.prototype,"data",void 0);
_.L([_.bF("data.imageScrimColorValues"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c9.prototype,"imageScrimColorValuesChanged_",null);_.L([_.Em({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],c9);
_.G(c9,"yt-subscription-product-upsell-offer-renderer",function(){if(ATs===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;iuB===void 0&&(iuB=document.createElement("template"));var P=iuB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ATs=B}B=ATs;return B},{mode:2});var uvS;var DC6;var rTr;var Rt6;var etz;var B3z;var xQ=function(){return _.z.apply(this,arguments)||this};
_.w(xQ,_.z);xQ.prototype.onYtServiceRequestError_=function(B){_.xE(this.hostElement,B.detail.error.message)};
xQ.prototype.onYtServiceRequestError_=xQ.prototype.onYtServiceRequestError_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xQ.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xQ.prototype,"collapsible",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],xQ.prototype,"isManageRed",void 0);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],xQ.prototype,"onYtServiceRequestError_",null);_.L([_.Em({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],xQ);
_.G(xQ,"yt-single-ypc-offer-renderer",function(){if(B3z===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;etz===void 0&&(etz=document.createElement("template"));var P=etz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);B3z=B}B=B3z;return B},{mode:2});var P9=function(){return _.z.apply(this,arguments)||this};
_.w(P9,_.z);P9.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],P9.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],P9.prototype,"isManageRed",void 0);_.L([_.Em({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],P9);
_.G(P9,"yt-single-ypc-offer-list-renderer",function(){if(Rt6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;rTr===void 0&&(rTr=document.createElement("template"));var P=rTr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Rt6=B}B=Rt6;return B},{mode:2});var c5s;var xd6;_.o2("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var YQ=function(){return _.z.apply(this,arguments)||this};
_.w(YQ,_.z);YQ.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],YQ.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],YQ.prototype,"isManageRed",void 0);_.L([_.Em({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],YQ);
_.G(YQ,"yt-ypc-offers-list-renderer",function(){if(xd6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;c5s===void 0&&(c5s=document.createElement("template"));var P=c5s;x.call(c,P.content.cloneNode(!0),B.content.firstChild);xd6=B}B=xd6;return B},{mode:2});_.o2("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var aP=function(){return _.z.apply(this,arguments)||this};
_.w(aP,_.z);
aP.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aP.prototype,"data",void 0);_.L([_.Em({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],aP);
_.G(aP,"yt-unlimited-manage-subscription-page-renderer",function(){if(DC6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;uvS===void 0&&(uvS=document.createElement("template"));var P=uvS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);DC6=B}B=DC6;return B},{mode:2});var PTz;var YOz;var gS=function(){return _.z.apply(this,arguments)||this};
_.w(gS,_.z);_.a=gS.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.a.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.onKeypress_=function(B){B.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.a.handleHeaderTap_=function(B){B.preventDefault();B.stopPropagation();this.expandOffers_()};
_.a.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.a.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
gS.prototype.dataChanged_=gS.prototype.dataChanged_;_.L([_.J(_.VT),_.H("design:type",Object)],gS.prototype,"ironA11yKeysBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gS.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],gS.prototype,"offersVisible_",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gS.prototype,"dataChanged_",null);_.L([_.Em({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],gS);
_.G(gS,"yt-collapsible-ypc-offer-renderer",function(){if(YOz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;PTz===void 0&&(PTz=document.createElement("template"));var P=PTz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);YOz=B}B=YOz;return B},{mode:2});var aVS;var g18;_.o2("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var sS=function(){return _.z.apply(this,arguments)||this};
_.w(sS,_.z);_.a=sS.prototype;_.a.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.a.dataChanged_=function(){if(this.data.backgroundImage){var B=_.Pw(this.data.backgroundImage.thumbnails,screen.width),c=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=c?"linear-gradient(180deg, "+c+"), url("+B+")":"url("+B+")";this.data.gtmId&&_.Wl(this.data.gtmId,_.v5("GL",""))}};
_.a.onYtServiceRequestError_=function(B){_.xE(this.hostElement,B.detail.error.message)};
_.a.getScrimLayerColorStops_=function(){var B,c,x=(B=this.data.unlimitedHeaderV2Data)==null?void 0:(c=B.unlimitedHeaderV2Data)==null?void 0:c.scrimLayerColors;if(!x)return null;var P=100/x.length;return x.map(function(Y,g){g*=P;return _.SF(Y)+" "+g+"%"}).join(",")};
_.a.computeLogoWithPadding=function(B){var c,x,P;return(B=(c=B.unlimitedLogoImage)==null?void 0:(x=c.thumbnails)==null?void 0:(P=x[0])==null?void 0:P.height)&&B%31===0?!0:!1};
sS.prototype.onYtServiceRequestError_=sS.prototype.onYtServiceRequestError_;sS.prototype.dataChanged_=sS.prototype.dataChanged_;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.L([_.F({computed:"computeLogoWithPadding(data)"}),_.H("design:type",Boolean)],sS.prototype,"logoWithPadding",void 0);
_.L([_.F(),_.H("design:type",Object)],sS.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sS.prototype,"dataChanged_",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sS.prototype,"onYtServiceRequestError_",null);_.L([_.Em({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],sS);
_.G(sS,"yt-unlimited-page-header-renderer",function(){if(g18===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;aVS===void 0&&(aVS=document.createElement("template"));var P=aVS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);g18=B}B=g18;return B},{mode:2});var srz;var pSo;_.o2("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var pJ=function(){return _.z.apply(this,arguments)||this};
_.w(pJ,_.z);pJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pJ.prototype,"data",void 0);_.L([_.Em({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],pJ);
_.G(pJ,"yt-unlimited-user-notification-renderer",function(){if(pSo===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;srz===void 0&&(srz=document.createElement("template"));var P=srz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);pSo=B}B=pSo;return B},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.CpS=_.rM(function(B){var c=_.uF(B,{numberOfChips:5}).numberOfChips;return _.U("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.U(_.mV,{each:function(){return Array(c==null?void 0:c())}},function(){return _.U("div",{class:"ytGhostChipShelfChip"})}))},"mg");_.h1z=_.rM(function(B){var c=_.X5(),x=_.cp().resolve(_.AX);_.JR(function(){requestAnimationFrame(function(){var Y;(Y=c.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var g;(g=B.onLottieLoaded)==null||g.call(B)})})});
var P={};return _.U("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var Y;return((Y=B.data)==null?void 0:Y.call(B).targetId)||""}},_.U(_.j5,{className:_.Kw((P.ytChatLoadingViewModelRtl=x==="rtl",P)),
animationName:"YOUCHAT_LOADER",data:function(){var Y;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((Y=B.data)==null?void 0:Y.call(B).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:c}))},"ng");
}catch(e){_._DumpException(e)}
try{
var y06,GEz,Mxo,LXl,Zqo,Hq6,fKN,A0r,xjr,x$,cxS,r0z,BWr,eDB,RDr,D8z,Pyy,YdF,ae6,g2r,PE,s3A,pMz,$js,gs,k_c,sD,Y$,pv,XMc,aL,n2F,bHc,KKA,j3l,UjF,djl,Cys,VkF,NW6,IeF,JxB,leo,OHF,Q38,FKy,v2y,zOF,yx6,G_l,MkS,LKi,ZHB,HHB,feB,Axi,RO8,rxz,ugS,eOl,Djz,Bfz,Yqr,PW8,cGS,xHS,Xb,aMi,gwi,phA,Kyl,jDz,UHS,dHr,qqs,CWc,hEo,mH8,Tfy,V$r,whi,Nfc,IMz,$HA;
_.BE=function(B){var c=new _.mc("Error accessing DB");return _.m3l().then(function(x){return new Promise(function(P,Y){try{var g=x.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(B);g.onsuccess=function(){var k=g.result;P(k?k.value:null)};
g.onerror=function(){c.params={key:B,source:"onerror"};Y(c)}}catch(k){c.params={key:B,
thrownError:String(k)},Y(c)}})},function(){return null})};
_.SIs=function(B,c){var x=_.jUd(c);x!=="javascript:"&&x!=="data:"&&B.setAttribute("href",c)};
y06=function(B,c){return _.X9(B.entities,"flowStateEntity",c)};
GEz=function(B){return _.z7(B,function(c){return c.languageCode==="en"})};
Mxo=function(B){var c=cE;if(_.Dgy(B))B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{});else{var x=_.z7(_.LYI(B),function(P){return P.displayName===c});
B.setOption("captions","track",x)}};
LXl=function(B){if(!B)return 0;var c=B.getPresentingPlayerType(),x=B.getVideoData();return x&&x.isLive?(B=B.getProgressState(c),B.seekableEnd-B.seekableStart):B.getDuration(c)};
Zqo=function(B,c){for(var x=_.p(Object.keys(B)),P=x.next();!P.done;P=x.next())if(P=P.value,B[P]!==c[P])return!1;return!0};
Hq6=function(){return document.getElementById("player-control-overlay")};
fKN=function(B){B!==-1&&!_.T("player_controls_log_creation_killswitch")&&Hq6()&&(_.Op("pcu_cs",B),_.Op("pcu_ce"))};
A0r=function(B){return _.U("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(B.subscribeButton?[B.subscribeButton,B.channelAccess]:[B.channelAccess]).map(function(c){return _.U("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz--button"},iqA(c)))}))};
_.utz=function(B){var c=B.data;B=B.hideDivider;var x={};x=(x["yt-profile-identity-info-view-model-wiz__frame"]=!0,x["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!c.channelBanner,x);x={class:_.U9(x)};var P,Y={imageBannerViewModel:{image:(P=c.channelBanner)==null?void 0:P.image,style:"IMAGE_BANNER_STYLE_INSET"}};P=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},c.channelBanner?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
iqA(Y,{imageBannerViewModel:{isPositionRelative:!0}})):null);Y=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},iqA(c.avatar));var g;var k=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},c.channelDisplayName),c.verifiedOrOacBadge?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.U(_.D9,{data:{thumbnails:[{url:(g=c.verifiedOrOacBadge)==null?void 0:g.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);g=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},k,iqA(c.threeDotMenu));k=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.U("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},c.channelHandle),c.channelPronouns&&c.channelHandle?_.U("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.U("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},c.channelPronouns)),_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.leftOfBulletInfo),c.leftOfBulletInfo&&c.rightOfBulletInfo?_.U("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.rightOfBulletInfo)));g=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},g,k);return _.U("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.U("div",x,P,_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},Y,g),c.channelDescription?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},c.channelDescription):
null,A0r(c),B?null:_.U("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
xjr=function(B,c){var x=_.A9(B,{}),P=D8z("top",c),Y=D8z("bottom",c),g=D8z("left",c),k=D8z("right",c);return _.TU({top:function(){return x$(x().position,P)},
bottom:function(){return x$(x().position,Y)},
left:function(){return x$(x().position,g)},
right:function(){return x$(x().position,k)},
position:function(){return x$(x().positionType,r0z)},
height:function(){return x$(x().height,PE)},
width:function(){return x$(x().width,PE)},
"min-width":function(){return x$(x().minWidth,PE)},
"min-height":function(){return x$(x().minHeight,PE)},
"max-width":function(){return x$(x().maxWidth,PE)},
"max-height":function(){return x$(x().maxHeight,PE)},
"aspect-ratio":function(){return x$(x().aspectRatio,String)},
"margin-top":function(){return x$(x().margin,P)},
"margin-bottom":function(){return x$(x().margin,Y)},
"margin-left":function(){return x$(x().margin,g)},
"margin-right":function(){return x$(x().margin,k)},
"padding-top":function(){return x$(x().padding,P)},
"padding-bottom":function(){return x$(x().padding,Y)},
"padding-left":function(){return x$(x().padding,g)},
"padding-right":function(){return x$(x().padding,k)},
"flex-direction":function(){return x$(x().flexDirection,RDr)},
"justify-content":function(){return x$(x().justifyContent,eDB)},
"align-items":function(){return x$(x().alignItems,BWr)},
"flex-grow":function(){return x$(x().flexGrow,String)},
"flex-shrink":function(){return x$(x().flexShrink,String)},
"flex-basis":function(){return x$(x().flexBasis,PE)},
"align-self":function(){return x$(x().alignSelf,BWr)},
"flex-wrap":function(){return x$(x().flexWrap,cxS)},
"align-content":function(){return x$(x().alignContent,BWr)}})};
x$=function(B,c){return B!==void 0?c(B):void 0};
cxS=function(B){switch(B){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
r0z=function(B){switch(B){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
BWr=function(B){switch(B){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"}};
eDB=function(B){switch(B){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"}};
RDr=function(B){switch(B){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"}};
D8z=function(B,c){var x=c==="rtl";switch(B){case "top":var P=Pyy;break;case "bottom":P=YdF;break;case "left":P=ae6;break;default:P=g2r}return function(Y){return x$(P(Y,x),PE)}};
Pyy=function(B){var c=B.top;var x=B.vertical;B=B.all;var P;return(P=c!=null?c:x)!=null?P:B};
YdF=function(B){var c=B.bottom;var x=B.vertical;B=B.all;var P;return(P=c!=null?c:x)!=null?P:B};
ae6=function(B,c){var x=B.left;var P=B.end;var Y=B.start;var g=B.horizontal;B=B.all;var k,n;return(n=(k=x!=null?x:c?P:Y)!=null?k:g)!=null?n:B};
g2r=function(B,c){var x=B.right;var P=B.end;var Y=B.start;var g=B.horizontal;B=B.all;var k,n;return(n=(k=x!=null?x:c?Y:P)!=null?k:g)!=null?n:B};
PE=function(B){var c=B.value;switch(B.unit){case "YPC_DIMENSION_UNIT_POINT":return c+"px";case "YPC_DIMENSION_UNIT_FRACTION":return c+"%";default:return""+c}};
s3A=function(B){switch(B){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"}};
pMz=function(B){var c=B!=null?B:{};B=c.fontRole;var x=c.fontSize;c=c.fontWeight;if(B!==null&&x!==null)switch(B){case "YPC_FONT_ROLE_DISPLAY":switch(x){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(x){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return c===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(x){case "YPC_FONT_SIZE_XL":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
$js=function(B,c,x){function P(q){return Object.values(q).map(function(C){var h=C.productId;C=C.pricingOptionIndex;return Y$(Y(h).pricingOptions,C).pricingOptionId})}
function Y(q){return n().get(q)}
function g(q){q=P(q);x(q)}
var k=aL([B,c],function(q,C){var h=q==null?void 0:q.selectedPricingOptions;q={};var V=!0;if(h&&C.length)for(var N=_.p(C),l=N.next();!l.done;l=N.next()){l=l.value;var E=k_c(l.pricingOptions,function(f){a:{f=f.pricingOptionId;for(var Z=_.p(h),u=Z.next();!u.done;u=Z.next())if(u.value===f){f=!0;break a}f=!1}return f});
if(E>=0){V=!1;var S=Y$(l.pricingOptions,E),M=void 0;q[l.groupId]={productId:l.productId,pricingOptionIndex:E,pricingGroupAttributes:(M=S)==null?void 0:M.pricingGroupAttributes}}}V&&C.length&&(V=Y$(C[0].pricingOptions,0),q[C[0].groupId]={productId:C[0].productId,pricingOptionIndex:0,pricingGroupAttributes:V==null?void 0:V.pricingGroupAttributes});return q}),n=aL([c],function(q){return new Map(q.map(function(C){return[C.productId,
C]}))}),b=aL([c],function(q){var C=new Map;
q=_.p(q);for(var h=q.next();!h.done;h=q.next()){var V=h.value;h=V.groupId;var N=V.productId;V=_.p(gs(V.pricingOptions));for(var l=V.next();!l.done;l=V.next()){var E=_.p(l.value);l=E.next().value;E=E.next().value;C.set(E.pricingOptionId,{groupId:h,productId:N,index:l,pricingOption:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return C}),d=aL([c],function(q){var C=new Map;
q=_.p(q);for(var h=q.next();!h.done;h=q.next()){var V=h.value;h=V.groupId;var N=V.productId,l=void 0;V=_.p(gs((l=V.pricingGroups)!=null?l:[]));for(l=V.next();!l.done;l=V.next()){var E=_.p(l.value);l=E.next().value;E=E.next().value;C.set(E.pricingGroupId,{groupId:h,productId:N,index:l,pricingGroup:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return C});
return{getProductById:Y,isProductSelected:function(q){var C=Y(q);if(!C)return!1;var h;return((h=k()[C.groupId])==null?void 0:h.productId)===q},
getSelectedPricingOptions:function(){return Object.values(k()).map(function(q){var C=q.productId;q=q.pricingOptionIndex;return Y$(Y(C).pricingOptions,q)})},
getSelectedPricingGroupAttributesByGroupId:function(q){var C;return(q=(C=k()[q])==null?void 0:C.pricingGroupAttributes)?Array.from(q):void 0},
getSelectedProductByGroupId:function(q){var C;return(q=(C=k()[q])==null?void 0:C.productId)?Y(q):void 0},
onProductSelected:function(q){var C=Y(q);if(C){var h=k(),V;if(((V=h[C.groupId])==null?void 0:V.productId)!==q){var N,l;V=(l=(N=h[C.groupId])==null?void 0:N.pricingOptionIndex)!=null?l:0;sD(C.pricingOptions)<=V&&(V=0);N=Y$(C.pricingOptions,V);var E;l={};g(Object.assign({},h,(l[C.groupId]={productId:q,pricingOptionIndex:V,pricingGroupAttributes:(E=N==null?void 0:N.pricingGroupAttributes)!=null?E:[]},l)))}}},
onPricingOptionSelected:function(q){var C=b().get(q);if(C){q=C.groupId;var h=C.productId;C=C.index;var V=k(),N,l;if(((N=V[q])==null?void 0:N.productId)!==h||((l=V[q])==null?void 0:l.pricingOptionIndex)!==C){var E,S;N={};g(Object.assign({},V,(N[q]={productId:h,pricingOptionIndex:C,pricingGroupAttributes:(S=(E=V[q])==null?void 0:E.pricingGroupAttributes)!=null?S:[]},N)))}}},
onPricingGroupSelected:function(q){var C=d().get(q);if(C){q=C.groupId;var h=C.productId,V=C.pricingGroup.pricingGroupAttributes,N=Y(h);if(N){C=k();var l=C[q].pricingGroupAttributes,E;if(((E=C[q])==null?void 0:E.productId)!==h||!pv(XMc(l,sD(V)),V)){E=Array.from(V);for(V=sD(V);V<sD(l);V++){var S="",M=!1,f=Array.from(E);f.push(Y$(l,V));for(var Z=_.p(N.pricingGroups),u=Z.next();!u.done;u=Z.next())if(u=u.value,pv(u.pricingGroupAttributes,f)){E.push(Y$(l,V));M=!0;break}else S===""&&sD(u.pricingGroupAttributes)===
f.length&&pv(XMc(u.pricingGroupAttributes,E.length),E)&&(S=Y$(u.pricingGroupAttributes,V));M||E.push(S)}S=C[q].pricingOptionIndex;V=[];M=new Map;f=0;N=_.p(gs(N.pricingOptions));for(Z=N.next();!Z.done;Z=N.next())u=_.p(Z.value),Z=u.next().value,u=u.next().value,pv(u.pricingGroupAttributes,E)&&V.push(Z),pv(u.pricingGroupAttributes,l)&&M.set(Z,f++);V.length===0?l=0:(l=M.get(S),l=l!==void 0&&l<V.length?V[l]:V[0]);N={};g(Object.assign({},C,(N[q]={productId:h,pricingOptionIndex:l,pricingGroupAttributes:E},
N)))}}}},
onClearGroupSelected:function(q){var C=k();C[q]&&(C=Object.fromEntries(Object.entries(C).filter(function(h){return _.p(h).next().value!==q})),g(C))}}};
gs=function(B){return function x(){var P,Y,g,k,n;return _.Y_C(x,function(b){switch(b.nextAddress){case 1:_.$M(b,2),P=0,Y=_.p(B),g=Y.next();case 4:if(g.done){b.jumpTo(2);break}k=g.value;n=_.aQq;return _.K(b,[P++,k],7);case 7:n(b.yieldResult);g=Y.next();b.jumpTo(4);break;case 2:_.Xt(b),_.nq(b,0)}})}()};
k_c=function(B,c){B=_.p(gs(B));for(var x=B.next();!x.done;x=B.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;if(c(P))return x}return-1};
sD=function(B){var c=0;for(B=B[Symbol.iterator]();!B.next().done;)++c;return c};
Y$=function(B,c){B=_.p(gs(B));for(var x=B.next();!x.done;x=B.next()){var P=_.p(x.value);x=P.next().value;P=P.next().value;if(x===c)return P}};
pv=function(B,c){if(!B&&!c)return!0;if(!B||!c)return!1;B=Array.from(B);c=Array.from(c);if(B.length!==c.length)return!1;for(var x=0;x<B.length;x++)if(B[x]!==c[x])return!1;return!0};
XMc=function(B,c){c=c===void 0?Infinity:c;var x=[];B=_.p(gs(B));for(var P=B.next();!P.done;P=B.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;if(P>=c)break;P>=0&&x.push(Y)}return x};
aL=function(B,c){var x,P;return function(){for(var Y=B.map(function(k){return k()}),g=0;g<Y.length;g++)if(!x||Y[g]!==x[g]){x=Y;
P=c.apply(null,_.wq(Y));break}return P}};
n2F=function(B,c,x){var P=[];B=_.p(B);for(var Y=B.next();!Y.done;Y=B.next()){Y=Y.value;var g=void 0;((g=c)==null?0:g.length)&&!pv(Y.pricingGroupAttributes,c)||P.push({pricingOption:Y,isSelected:x.includes(Y.pricingOptionId)})}return P};
bHc=function(B,c){return _.X9(B.entities,"pdpStateEntity",c)};
KKA=function(B){var c,x;return!!(B.productId&&B.groupId&&((c=B.pricingOptions)==null?0:c.length)&&B.pricingOptions.every(function(P){return P.pricingOptionId})&&((x=B.pricingGroups)==null||!x.length||Array.isArray(B.pricingGroups)&&B.pricingGroups.every(function(P){return P.pricingGroupId&&P.pricingGroupAttributes&&P.pricingGroupAttributes.length>0})))};
j3l=function(B,c,x){return $js(B,aL([c],function(P){return P.filter(KKA)}),x)};
UjF=function(B,c){return c.length===0?[B]:[B.slice(0,c[0]),B.slice(c[0])].filter(function(x){return x.length>0})};
djl=function(B){switch(B){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""}};
Cys=function(B,c,x,P){P=Object.assign({},P);_.EL(P,qdy,{selectedOptionId:B,primaryButtonOverride:x});_.HW().dispatch(_.Uy("flowStateEntity",c,P))};
_.TWz=function(){if(!hOA){var B=_.p(_.$D(new Map,void 0,"UJImUe"));hOA=B.next().value;mjA=B.next().value}return hOA};
VkF=function(B){if(B)return _.TWz()().get(B)};
_.tk8=function(B,c){if(B&&c){var x=_.TWz();x().set(B,c);B=x();mjA(new Map(B))}};
_.wMo=function(B){return{onSubmit:function(){var c;(c=VkF(B()))==null||c.onSubmit()},
isValid:function(){var c=VkF(B());return c?c.isValid():!0},
isSubmitting:function(){var c,x;return!!((c=VkF(B()))==null?0:(x=c.isSubmitting)==null?0:x.call(c))}}};
NW6=function(B,c){return _.X9(B.entities,"contextNoteFeedEntityPayload",c)};
IeF=function(B){B.style.height="auto";B.style.height=B.scrollHeight+"px"};
JxB=function(B){return[B.syncStep,B.asyncStep].filter(function(c){return c!==void 0})};
leo=function(B){var c,x,P;if(B=(c=B.structuredContextNoteFormSchema)==null?void 0:(x=c.fieldSchemas)==null?void 0:(P=x.noteBody)==null?void 0:P.validationSchema)for(c=_.p(JxB(B)),x=c.next();!x.done;x=c.next()){x=x.value.rules;if(!x)break;x=_.p(x);for(x=x.next();!x.done;x=x.next())return _.t(x.value,_.WKF)}};
OHF=function(B){if(B){B=_.p(JxB(B));for(var c=B.next();!c.done;c=B.next()){c=c.value.rules;if(!c)break;c=_.p(c);for(c=c.next();!c.done;c=c.next())return _.t(c.value,E2i)}}};
Q38=function(B){if(B){B=_.p(JxB(B));for(var c=B.next();!c.done;c=B.next()){c=c.value.rules;if(!c)break;c=_.p(c);for(c=c.next();!c.done;c=c.next())return _.t(c.value,o2r)}}};
FKy=function(B){B=/^https?:\/\//.test(B)?B:"http://"+B;try{var c=_.ZM(B)}catch(x){return!1}if(c.toString()!==B)return!1;B=c.JSC$8077_domain_.split(".");return B.length>1&&B.every(function(x){return!!x})};
v2y=function(B,c,x,P){var Y;P=(Y=P.structuredContextNoteData)==null?void 0:Y.createCommentEndpoint;if(Y=_.t(P,_.JUI))return Y.commentText=_.fk(B),Y.videoPositionMention=c,Y.sources=x,P};
zOF=function(B){return B==null?void 0:B.stringValue};
yx6=function(B,c,x){B=B.map(function(P,Y){return{listItemViewModel:{title:P.title,subtitle:P.subtitle,leadingImage:P.leadingImage,trailingImage:Y===c?Sdl:void 0,rendererContext:{commandContext:{onTap:P.onTap}}}}});
return Object.assign({},x&&{header:{panelHeaderViewModel:{title:x}}},{content:{listViewModel:{listItems:B}}})};
G_l=function(B,c){if(B&&c)switch(c){case "SELECTION_TYPE_BOOL":return B.boolValue;case "SELECTION_TYPE_INT":return B.intValue;case "SELECTION_TYPE_STRING":return B.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return B.privacyStatusValue}};
MkS=function(B){var c;B=(c=B.options)==null?void 0:c.findIndex(function(x){return x.isSelected});
return B===void 0?-1:B};
LKi=function(B,c,x){var P=function(){return B().label},Y={},g=_.Kw("ytDropdownViewModelLabel",(Y.ytDropdownViewModelLabelError=c,Y));
return _.U(_.m,{cond:function(){return B().label&&!(x()===-1&&B().label&&!B().placeholderText)},
then:function(){return _.U("div",{class:g},_.U(_.RF,{text:P}))}})};
ZHB=function(B,c){var x={};x=_.Kw("ytDropdownViewModelTitle",(x.ytDropdownViewModelTitlePlaceholder=function(){return c()===-1},x));
return _.U("div",{class:x},_.U(_.RF,{text:function(){var P=B();var Y=c();if(Y===-1)P=P.placeholderText?P.placeholderText:P.label;else{var g,k;P=(g=P.options)==null?void 0:(k=g[Y])==null?void 0:k.title}return P}}))};
HHB=function(B,c){var x=function(){return B().hint};
return _.U(_.at,null,_.U(_.m,{cond:function(){return x()&&!c()},
then:function(){return _.U("div",{class:_.Kw("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.U(_.RF,{text:x,className:"ytDropdownViewModelSupportText"}))}}),_.U(_.m,{cond:c,
then:function(){return _.U("div",{id:"dropdown-view-model-error",role:"alert",class:_.Kw("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.U(_.Vf,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.U(_.RF,{text:c,className:"ytDropdownViewModelSupportText"}))}}))};
feB=function(B,c){var x=_.cp().resolve(_.J$Z);_.lk(function(){var P=B().id;P&&x!=null&&x.dropdownMap.set(P,c)})};
Axi=function(B){B=_.t(B.scheduleButton,iHc);B=_.t(B==null?void 0:B.primaryButton,_.Tj);B=_.t(B==null?void 0:B.onTap,_.Fo);var c,x,P=((x=_.t(B,_.nW))==null?void 0:x.commands)||[B];x=_.p(P);for(B=x.next();!B.done&&!(c=_.t(B.value,_.l0d));B=x.next());var Y;c=(Y=c)==null?void 0:Y.createBroadcastRequest;if(!c)throw Error("Lj");return c};
RO8=function(B,c,x){x=x===void 0?{}:x;var P,Y;return _.X(function(g){if(P=ugS(c))return g.return(P);(Y=Djz(B,c,x))&&rxz(c,Y);return g.return(Y)})};
rxz=function(B,c){var x=eOl(B);x&&c.then(function(P){_.cp().resolve(_.gA).put(x,new _.sf({innertubeResponse:P}))})};
ugS=function(B){if(B=eOl(B)){var c=_.cp().resolve(_.gA);if(c.has(B))return c.get(B).then(function(x){return x==null?void 0:_.Xs(x)})}return null};
eOl=function(B){var c=_.t(B.endpoint,_.fN);if(c!=null&&c.videoId)return c={videoId:c.videoId},_.T("web_imp_player_mute_params")&&(c.mutedAtStart=B.startPlaybackInMutedState),_.Hf("inline_playback",c)};
Djz=function(B,c,x){B=_.Zn(B,c.endpoint,Bfz(c,x)).then(function(P){return P});
return Promise.resolve(B)};
Bfz=function(B,c){c=_.T("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!B.startPlaybackInMutedState},c):Object.assign({},{vis:5,autonav:"1"},c);var x;c={contentPlaybackContext:_.w_(c,(x=_.t(B.endpoint.commandMetadata,_.Br))==null?void 0:x.url,window.location.href)};_.T("web_imp_player_mute_params")&&(c.overrideMutedAtStart=!B.startPlaybackInMutedState);return c};
Yqr=function(B,c){var x=window.MutationObserver;x&&(k$=new x(function(P,Y){P=_.p(P);for(var g=P.next();!g.done;g=P.next()){g=g.value;var k;if(k=g.type==="childList"&&g.target)a:{k=B;g=cGS(g.target);k=cGS(k);for(var n=null,b=0;b<g.length;b++)if(k.includes(g[b])){if(b===0){k=!1;break a}n=g[b];break}n?(g=xHS(g,n),k=xHS(k,n),k=g<k):k=!1}if(k){c();Y.disconnect();break}}}),(x=PW8())&&k$.observe(x,{childList:!0,
subtree:!0}))};
PW8=function(){var B=document.getElementsByTagName("ytd-rich-grid-renderer");if(B.length>0)return B[0];B=document.getElementsByTagName("ytd-section-list-renderer");return B.length>0?B[0]:null};
cGS=function(B){for(var c=[];B;)c.push(B),B=B.parentElement;return c};
xHS=function(B,c){var x=Array.from(c.children);c=B.indexOf(c);return c>0?x.indexOf(B[c-1]):-1};
Xb=function(B,c,x){x=x===void 0?{}:x;return _.Up(B,x,c)};
aMi=function(B){switch(B){case "MUSIC":return!0;default:return!1}};
gwi=function(B){return B==null?void 0:B.filter(function(c){return c.premiereTrailerBadgeRenderer})};
phA=function(B){var c,x=B==null?void 0:(c=B.find(function(C){return C.thumbnailOverlayTimeStatusRenderer}))==null?void 0:c.thumbnailOverlayTimeStatusRenderer,P,Y;
if((x==null?0:(P=x.icon)==null?0:P.iconType)&&aMi(x==null?void 0:(Y=x.icon)==null?void 0:Y.iconType)){var g;return{icon:x==null?void 0:(g=x.icon)==null?void 0:g.iconType}}var k,n;var b=(B=(k=B==null?void 0:(b=B.find(function(C){return C.thumbnailBottomOverlayViewModel}))==null?void 0:b.thumbnailBottomOverlayViewModel)==null?void 0:(n=k.badges)==null?void 0:n.find(function(C){var h,V;
return((h=_.t(C,sDc))==null?void 0:(V=h.inlinePlaybackBadgeData)==null?void 0:V.replicateAsTimestamp)===!0}))?_.t(B,sDc):void 0;
if(b==null?0:b.icon){var d,q;if((b=(d=_.x5C(b==null?void 0:b.icon))==null?void 0:(q=d.clientResource)==null?void 0:q.imageName)&&aMi(b))return{icon:b}}return{}};
Kyl=function(B,c){var x=kPl,P=_.p(_.$D(Xho(new $HA(function(){},x,c)),void 0,"PAnyd")),Y=P.next().value,g=P.next().value,k=new $HA(function(n){g(n)},x,c);
_.IO(function(){Promise.resolve().then(function(){var n,b=(n=B())!=null?n:{};k.playerControlsData=b;_.T("player_controls_skip_double_signal_old")&&(k.lastSeenPlayerApi=_.yA(b.playerApi));_.T("player_controls_skip_double_signal_old")||(k.lastSeenPlayerApi=_.yA(b.playerApi));nwl(k)});
_.lP(function(){bSo(k)})},"HikUP");
_.lP(function(){bSo(k)});
return function(){return Y()}};
jDz=function(B){return function(c){var x=B(),P={playerState:c};if(c===1){var Y;(Y=x.playerApi)==null||Y.loadModule("captions")}if(c===0){var g;(g=x.playerApi)==null||g.unloadModule("captions")}(c!==-1||_.T("web_imp_controls_set_player_state_killswitch"))&&x.setState(P)}};
UHS=function(B){return function(c){B().setState({playbackRate:c})}};
dHr=function(B){return function(c){var x=B(),P=x.playerApi,Y=P==null?void 0:P.getVideoData(),g=(Y==null?void 0:Y.isLive)||!1;Y=Y==null?void 0:Y.video_id;g={videoDuration:LXl(P||void 0),isLive:g,videoId:Y};g.videoId!==x.videoId&&(g=Object.assign({},_.CnY(P),g));if(c==null?0:c.playertype)g.playerType=c.playertype;if(P){g.captionsAvailable=_.vS(P);c=g;var k;Y=(k=P.getStoryboardLevel(P.getNumberOfStoryboardLevels()-1))==null?void 0:k.intervalMs;c.storyboardInterval=Y?Y/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=_.Dgy(P))}g.volumeMuted=!(P==null||!P.isMuted());x.setState(g)}};
qqs=function(B){return function(c){var x=B(),P=x.playerApi;if(P){var Y=P.getPresentingPlayerType();c={playedTime:c||0,percentLoaded:P.getVideoLoadedFraction(),playerType:Y};x.playerState===0&&(c.playedTime=x.videoDuration);x.isLive&&(Y=P.getProgressState(Y),c.playedTime-=Y.seekableStart,c.videoDuration=LXl(P));if(x.playerType===1)P=!1;else{var g;if((g=x.uxConfig)==null?0:g.showCuedOverlay){var k;P=!((k=x.playerApi)==null?0:k.getPlayerStateObject(x.playerType).isDomPaused)}else P=!0}P&&delete c.playedTime;
x.setState(c)}}};
CWc=function(B){return function(){var c=B(),x,P,Y,g={volume:(Y=(x=c.playerApi)==null?void 0:x.getVolume())!=null?Y:0,volumeMuted:!((P=c.playerApi)==null||!P.isMuted())};c.setState(g)}};
hEo=function(B){return function(){var c=B(),x=c.playerApi;if(x){var P={captionsAvailable:_.vS(x)};P.captionsAvailable&&(P.captionsEnabled=_.Dgy(x));c.setState(P)}}};
mH8=function(B){return function(){var c=B();if(c.playerApi&&!(c.volumeMuted||c.controlsVisible&&c.isProbablyAScreenreaderUser)){c.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var x;(x=document.querySelector(".player-control-play-pause-icon"))==null||x.focus()}}};
Tfy=function(B){return{appApi:Object.assign({},_.nnA(),{showCaptionsToggleToast:function(c){var x,P;(P=(x=B()).showCaptionsToggleToast)==null||P.call(x,c)},
openInMiniplayer:function(){var c,x;(x=(c=B()).openInMiniplayer)==null||x.call(c)}})}};
V$r=function(B,c){var x,P,Y;return!!(B==null?0:(x=B.playerResponse)==null?0:(P=x.playerConfig)==null?0:(Y=P.inlinePlaybackConfig)==null?0:Y.showScrubbingControls)&&!(c==null?0:c.hideScrubbingControls)};
_.t$B=function(B){var c=!B.miniplayerIsActive;return[5,2,0].includes(B.miniplayerPlaybackState)||c};
whi={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Nfc=function(B,c){var x,P,Y,g,k;_.X(function(n){if(!c.length)return n.return([]);x=[];P=_.p(c);for(Y=P.next();!Y.done;Y=P.next())g=Y.value,(k=B.resolveIcon(g))&&!B.iconCache[k.url]&&x.push(_.Hxl(B,k).then(function(){}).catch(function(){}));
return n.return(Promise.all(x))})};
IMz=function(B,c){var x=[];c=(new Set(c)).values();c=_.p(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;for(var Y=_.p(Object.values(whi)),g=Y.next();!g.done;g=Y.next())x.push({iconName:P,iconStyle:g.value})}Nfc(B.iconManager,x)};
_.JGz=function(B,c,x){var P=x!=null?x:B.iconsToFetch;P!=null&&P.length?c!==void 0&&c>=0?_.Vp(_.EE,function(){IMz(B,P)},c):IMz(B,P):Promise.resolve()};
$HA=function(B,c,x){var P=this;this.renderFn=B;this.listeners=c;this.context=x;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Y;this.lastSeenPlayerApi=_.yA((Y=this.playerControlsData)==null?void 0:Y.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.CnY(),void 0);_.T("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Xho(P).setState({playerState:-1});P.resetRecentlyNavigatedJobId&&_.EE.cancelJob(P.resetRecentlyNavigatedJobId);
P.recentlyNavigated=!0;P.resetRecentlyNavigatedJobId=_.EE.addJob(function(){P.recentlyNavigated=!1},8,1E4)})};
$HA.prototype.setState=function(B){if(!_.T("mweb_player_skip_no_op_state_changes")||!Zqo(B,this.state))if(this.state=Object.assign({},this.state,B),!_.T("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)B=-1,_.T("player_controls_log_creation_killswitch")||Hq6()||(B=(0,_.BA)()),_.Op("pcu_s"),_.Op("pcu_se"),_.Op("pcu_rs"),this.renderFn(Xho(this)),_.Op("pcu_re"),fKN(B),_.EE.addJob(function(){_.Op("pcu_ap")},8)};
var Xho=function(B){var c;var x=_.yA((c=B.playerControlsData)==null?void 0:c.playerApi);return Object.assign({},B.state,{setState:B.boundSetState,domMeasurements:{progressBarLineRect:B.progressBarLineRect},playerApi:x,appApi:B.context.appApi,playerContainer:B.context.playerContainer,playerControlContainer:B.context.playerControlContainer,uxConfig:B.context.uxConfig})},nwl=function(B){B.listeners.forEach(function(c){B.eventListenerCleanupFunctions.push(c.register(function(){return Xho(B)},function(){return B.getData()}))})},
bSo=function(B){B.eventListenerCleanupFunctions.forEach(function(c){c()});
B.eventListenerCleanupFunctions.length=0};
$HA.prototype.getData=function(){return this.playerControlsData};
var $$=new _.A("abuseReportFlowState");var Wyr=new _.A("feedbackFormFlowState");var lMi=new _.A("inputBoxViewModel");var EwB=new _.A("flowNextStepCommand");var OSF=new _.A("flowPrevStepCommand");var owr=new _.A("updateFlowCommand");_.QDo=new _.A("flowStepRenderer");_.WKF=new _.A("lengthValidationRule");var E2i=new _.A("regexValidationRule");var o2r=new _.A("selectedValidationRule");var Fy6=new _.A("talkToRecsViewModel");var vwS=new _.A("creatorGoalSetUpFlowDropdownItemViewModel");var zEB=new _.A("creatorGoalSetUpFlowDropdownViewModel");var sDc=new _.A("thumbnailBadgeViewModel");_.SqS=new _.A("radioButtonGroupViewModel");var iHc=new _.A("panelFooterViewModel");var yGy=new _.A("ypcCancelRecurrenceCommand");var GPS=new _.A("cancellationFlowState");var qdy=new _.A("premiumPurchaseFlowState");var M$s=new _.A("surveyAnswerCardRenderer");var Lyc=new _.A("showMoreButtonRenderer");var ZSB;var HSy,fM8=function(){if(HSy!==void 0)return HSy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;ZSB===void 0&&(ZSB=document.createElement("template"));var P=ZSB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return HSy=B};var nv=function(){var B=_.z.apply(this,arguments)||this;B.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";B.goalDescription="";B.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";B.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";B.startButtonId="start-button";B.exampleButtonId="example-button";return B};
_.w(nv,_.z);_.a=nv.prototype;_.a.getGoalDropdownItems=function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.purchaseTargetDropdown,zEB))==null?void 0:c.dropdownItems};
_.a.getTimerDropdownItems=function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.timerDropdown,zEB))==null?void 0:c.dropdownItems};
_.a.getColorDropdownItems=function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.colorDropdown,zEB))==null?void 0:c.dropdownItems};
_.a.getDropdownItemText=function(B){var c;return(c=_.t(B,vwS))==null?void 0:c.itemLabel};
_.a.getDropdownItemValue=function(B){B=_.t(B,vwS);return(B==null?void 0:B.timeLimit)||(B==null?void 0:B.purchaseTarget)||(B==null?void 0:B.eligiblePurchaseType)};
_.a.updateFlowState=function(B){_.gj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:B}])};
_.a.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.a.updateGoalValue=function(B){this.goal=B.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.a.onTextValueChanged=function(B){this.goalDescription=B.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.a.updateTimerValue=function(B){this.timer=B.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.a.updateTierValue=function(B){this.tier=B.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.a.getButtonViewModel=function(B){B=(B==null?void 0:B.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var c,x=_.t((c=this.data)==null?void 0:c.startGoalButton,_.Tj);return Object.assign({},x,{state:B})};
_.AJ.Object.defineProperties(nv,{template:{configurable:!0,enumerable:!0,get:function(){return fM8()}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"goal",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"goalDescription",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"timer",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"tier",void 0);
_.L([_.F(),_.H("design:type",Object)],nv.prototype,"startButtonId",void 0);_.L([_.F(),_.H("design:type",Object)],nv.prototype,"exampleButtonId",void 0);_.L([_.Em({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],nv);_.G(nv,"yt-creator-goal-set-up-flow-view-model",function(){return fM8()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var iSc;var AG6;var uCo;var DHA=function(){return _.z.apply(this,arguments)||this};
_.w(DHA,_.z);_.L([_.F(),_.H("design:type",Object)],DHA.prototype,"data",void 0);_.L([_.Em({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],DHA);
_.G(DHA,"yt-survey-answer-card-renderer",function(){if(uCo===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;AG6===void 0&&(AG6=document.createElement("template"));var P=AG6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);uCo=B}B=uCo;return B},{mode:2});var rGz;var REc;var b8=function(){return _.z.apply(this,arguments)||this};
_.w(b8,_.z);_.a=b8.prototype;_.a.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.a.selectedItemChanged=function(B){_.gj(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[B.feedbackToken||""]}])};
_.a.surveyAnswerCardRendererClicked=function(B){if(B.target&&_.t(B.model.item,M$s)){var c=B.target;B=_.t(B.model.item,M$s);B.onTapCommand?_.XX(c,[B.onTapCommand],c):this.data.onTapCommand&&_.XX(c,[this.data.onTapCommand],c);this.selectedItemChanged(B)}};
_.a.checkIsCancellationStyle=function(B){return B==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.a.updateSelectedItemFromBinding=function(B){this.selectedItem=B.detail.value};
b8.prototype.onSelectedItemChanged=b8.prototype.onSelectedItemChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],b8.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],b8.prototype,"selectedItem",void 0);_.L([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],b8.prototype,"isCancellationStyle",void 0);
_.L([_.bF("selectedItem"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b8.prototype,"onSelectedItemChanged",null);_.L([_.Em({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],b8);
_.G(b8,"yt-survey-flow-step-renderer",function(){if(REc===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;rGz===void 0&&(rGz=document.createElement("template"));var P=rGz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);REc=B}B=REc;return B},{mode:2});var Kv=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return B};
_.w(Kv,_.z);Kv.prototype.handleSurveyFlowStepOptionChanged=function(B){this.ytdReduxBehavior.dispatch(_.YN({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:B}));_.gj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:B}}])};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Kv.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Kv.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Kv.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Kv);
_.G(Kv,"ytd-survey-flow-step-renderer",function(){if(iSc!==void 0)return iSc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iSc=B},{mode:1});var iqA;iqA=_.mp({avatarViewModel:_.IS,buttonViewModel:_.Q7,subscribeButtonViewModel:_.wA,imageBannerViewModel:_.ZIy});_.eEN=_.dV(_.utz);_.BX(_.utz);var Bb6;var jG=function(){return _.z.apply(this,arguments)||this};
_.w(jG,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jG.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],jG);
_.G(jG,"ytd-channel-history-renderer",function(){if(Bb6!==void 0)return Bb6;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Bb6=B},{mode:1});var cM8;var xOc=function(){return _.z.apply(this,arguments)||this};
_.w(xOc,_.z);_.L([_.F(),_.H("design:type",Object)],xOc.prototype,"data",void 0);_.L([_.y({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],xOc);
_.G(xOc,"ytd-feature-enablement-info-renderer",function(){if(cM8!==void 0)return cM8;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return cM8=B},{mode:1});var PP8;var Yxl;var UD=function(){var B=_.z.apply(this,arguments)||this;B.textBoxMaxLength=_.T("enable_tvod_campaign_code_integration")?15:12;return B};
_.w(UD,_.z);_.a=UD.prototype;_.a.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.a.onSubmit=function(){var B=this.data.serviceEndpoint,c=_.t(B,_.av);c&&B&&(c.couponCode=this.userInput,_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}}))};
_.a.validate=function(){var B=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=B&&!this.data.errorMessage;this.showErrorMessage=B&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.T("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.a.computeStyle=function(B){return B};
_.a.computeShowValidationBelowInput=function(B){return B!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.a.updateUserInputFromBinding=function(B){this.userInput=B.currentTarget.value};
_.a.updateShowErrorMessageFromBinding=function(B){this.showErrorMessage=B.detail.value};
_.AJ.Object.defineProperties(UD.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
UD.prototype.dataChanged=UD.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],UD.prototype,"userInput",void 0);_.L([_.F(),_.H("design:type",Boolean)],UD.prototype,"disableApplyButton",void 0);_.L([_.F(),_.H("design:type",Boolean)],UD.prototype,"hideApplyButton",void 0);
_.L([_.F(),_.H("design:type",Boolean)],UD.prototype,"hideErrorMessage",void 0);_.L([_.F(),_.H("design:type",Boolean)],UD.prototype,"showTick",void 0);_.L([_.F(),_.H("design:type",Boolean)],UD.prototype,"showErrorMessage",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],UD.prototype,"couponStyle",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.H("design:type",Boolean)],UD.prototype,"showValidationBelowInput",void 0);_.L([_.F(),_.H("design:type",Object)],UD.prototype,"textBoxMaxLength",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UD.prototype,"dataChanged",null);
_.L([_.Q("showTick","showErrorMessage","userInput"),_.H("design:type",String),_.H("design:paramtypes",[])],UD.prototype,"validationState",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],UD);
_.G(UD,"ytd-ypc-coupon-renderer",function(){if(Yxl!==void 0)return Yxl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Yxl=B},{mode:1});var ds=function(){return _.z.apply(this,arguments)||this};
_.w(ds,_.z);ds.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"}}}};
ds.prototype.computeStyle=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ds.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],ds.prototype,"buttonStyle",void 0);_.L([_.y({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ds);
_.G(ds,"ytd-flow-bottom-bar-renderer",function(){if(PP8!==void 0)return PP8;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return PP8=B},{mode:1});var acy;var gDz;var sOS;var qK=function(){return _.z.apply(this,arguments)||this};
_.w(qK,_.z);qK.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qK.prototype.focus=function(B){this.title&&_.ir(this.title,B)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qK.prototype,"data",void 0);_.L([_.jr("#title"),_.H("design:type",HTMLElement)],qK.prototype,"title",void 0);_.L([_.y({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],qK);
_.G(qK,"ytd-flow-top-bar-renderer",function(){if(sOS!==void 0)return sOS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return sOS=B},{mode:1});var pRA;var kIA;var XRo;var Cv=function(){return _.z.apply(this,arguments)||this};
_.w(Cv,_.z);Cv.prototype.freeTextValueChanged=function(){_.gj(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Cv.prototype.updateFreeTextValueFromBinding=function(B){this.freeTextValue=B.detail.value};
_.AJ.Object.defineProperties(Cv.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(c=(B=this.data)==null?void 0:B.responseMaxLength)!=null?c:500,P;return((P=this.freeTextValue)!=null?P:"").length>=x?"maxed-out":""}}});
Cv.prototype.freeTextValueChanged=Cv.prototype.freeTextValueChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cv.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],Cv.prototype,"freeTextValue",void 0);_.L([_.jr("#user-input"),_.H("design:type",HTMLTextAreaElement)],Cv.prototype,"input",void 0);
_.L([_.Q("freeTextValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],Cv.prototype,"characterLimitClass",null);_.L([_.bF("freeTextValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cv.prototype,"freeTextValueChanged",null);_.L([_.Em({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Cv);
_.G(Cv,"yt-free-text-input-flow-step-renderer",function(){if(XRo===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;kIA===void 0&&(kIA=document.createElement("template"));var P=kIA;x.call(c,P.content.cloneNode(!0),B.content.firstChild);XRo=B}B=XRo;return B},{mode:2});var h_=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return B};
_.w(h_,_.z);h_.prototype.handleFreeTextFlowStepInputChanged=function(B){_.gj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:B}}])};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],h_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],h_.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],h_.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],h_);
_.G(h_,"ytd-free-text-input-flow-step-renderer",function(){if(pRA!==void 0)return pRA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pRA=B},{mode:1});var $Os;var nDr;var bto=function(){return _.z.apply(this,arguments)||this};
_.w(bto,_.z);_.L([_.F(),_.H("design:type",Object)],bto.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],bto);
_.G(bto,"ytd-metadata-line-renderer",function(){if(nDr!==void 0)return nDr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nDr=B},{mode:1});var mJ=function(){return _.z.apply(this,arguments)||this};
_.w(mJ,_.z);mJ.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mJ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],mJ.prototype,"isMasthead",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],mJ);
_.G(mJ,"ytd-media-product-renderer",function(){if($Os!==void 0)return $Os;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return $Os=B},{mode:1});var K_z;var TD=function(){return _.z.apply(this,arguments)||this};
_.w(TD,_.z);TD.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
TD.prototype.onBillboardImageLoaded=function(){_.aJ(this.hostElement,"yt-refit")};
TD.prototype.onBillboardImageLoaded=TD.prototype.onBillboardImageLoaded;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TD.prototype,"data",void 0);_.L([_.jr("#billboardImage"),_.H("design:type",Object)],TD.prototype,"billboardImage",void 0);_.L([_.nF("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TD.prototype,"onBillboardImageLoaded",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],TD);
_.G(TD,"ytd-billboard-masthead-renderer",function(){if(K_z!==void 0)return K_z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return K_z=B},{mode:1});var jOc;var Ve=function(){var B=_.z.apply(this,arguments)||this;B.smallSize=!1;return B};
_.w(Ve,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ve.prototype,"ytComponentBehaviorType",void 0);_.L([_.F(),_.H("design:type",Object)],Ve.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ve.prototype,"smallSize",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Ve);
_.G(Ve,"ytd-bullet-formatted-string",function(){if(jOc!==void 0)return jOc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jOc=B},{mode:1});var UOc;var t_=function(){return _.z.apply(this,arguments)||this};
_.w(t_,_.z);t_.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],t_.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],t_);
_.G(t_,"ytd-offer-detail-renderer",function(){if(UOc!==void 0)return UOc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return UOc=B},{mode:1});var dOr;var ws=function(){return _.z.apply(this,arguments)||this};
_.w(ws,_.z);ws.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ws.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ws);
_.G(ws,"ytd-offer-detail-step-renderer",function(){if(dOr!==void 0)return dOr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dOr=B},{mode:1});var qx6;var NK=function(){var B=_.z.apply(this,arguments)||this;B.isInOfferModule=!1;return B};
_.w(NK,_.z);_.a=NK.prototype;_.a.computeHasEndpoint=function(){var B;return!((B=this.data)==null||!B.onClickCommand)};
_.a.dataChanged=function(){var B;if((B=this.data)==null?0:B.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")};
_.a.detached=function(){var B;if((B=this.data)==null?0:B.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.a.handleClickEvent=function(){var B;if((B=this.data)==null?0:B.onClickCommand){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.a.onContentKeyDown=function(B){B.key==="Enter"?this.handleClickEvent(B):B.key===" "&&B.preventDefault()};
_.a.onContentKeyUp=function(B){B.key===" "&&this.handleClickEvent(B)};
NK.prototype.dataChanged=NK.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],NK.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],NK.prototype,"data",void 0);_.L([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],NK.prototype,"hasEndpoint",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],NK.prototype,"isInOfferModule",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NK.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],NK);
_.G(NK,"ytd-channel-masthead-renderer",function(){if(qx6!==void 0)return qx6;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qx6=B},{mode:1});var CPF;var IL=function(){var B=_.z.apply(this,arguments)||this;B.thumbnailObjectFit="CONTAIN";B.thumbnailObjectPosition="LEFT";B.isExpanded=!1;return B};
_.w(IL,_.z);_.a=IL.prototype;_.a.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.a.dataChanged=function(){this.resetStates()};
_.a.computeisTapOnOfferInfoContainerEnabled=function(){var B;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.a.onExpandBtnClick=function(){var B,c=_.t((B=this.data)==null?void 0:B.showMoreButtonRenderer,Lyc);c&&_.bd(_.q_(),c.trackingParams);this.isExpanded=!this.isExpanded};
_.a.onOfferInfoClick=function(B){this.isTapOnOfferInfoContainerEnabled&&(_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Dn(_.AV(B)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.a.onBottomBarClick=function(){this.executeTapCommand()};
_.a.executeTapCommand=function(){var B,c=(B=this.data)==null?void 0:B.tapCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.a.resetStates=function(){this.isExpanded=!1};
_.AJ.Object.defineProperties(IL.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var B=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),c,x,P;return((c=this.data)==null?void 0:c.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&B&&!!((x=this.data)==null?0:(P=x.benefits)==null?0:P.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((c=_.t((B=this.data)==null?void 0:B.showMoreButtonRenderer,Lyc))==null?void 0:c.showMoreButtonTitle)||((x=this.data)==null?void 0:x.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((c=_.t((B=this.data)==null?void 0:B.showMoreButtonRenderer,Lyc))==null?void 0:c.showLessButtonTitle)||((x=this.data)==null?void 0:x.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var B;return(B=this.showLessButtonTitle)!=null?B:""}var c;return(c=this.showMoreButtonTitle)!=null?c:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((c=this.data)==null?0:c.footerTitle)||((x=this.data)==null?0:x.footerSubtitle))}}});
IL.prototype.dataChanged=IL.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",String)],IL.prototype,"thumbnailObjectFit",void 0);
_.L([_.F(),_.H("design:type",String)],IL.prototype,"thumbnailObjectPosition",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.H("design:type",Boolean)],IL.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.L([_.F(),_.H("design:type",Object)],IL.prototype,"isExpanded",void 0);_.L([_.F(),_.H("design:type",Object)],IL.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.footerIcon)"}),_.H("design:type",String)],IL.prototype,"icon",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IL.prototype,"dataChanged",null);_.L([_.Q("data.thumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],IL.prototype,"hasThumbnail",null);_.L([_.Q("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],IL.prototype,"enableExpandButton",null);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],IL.prototype,"enableOfferContentIcon",null);_.L([_.Q("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],IL.prototype,"showMoreButtonTitle",null);_.L([_.Q("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],IL.prototype,"showLessButtonTitle",null);
_.L([_.Q("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],IL.prototype,"expandedBtnText",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],IL.prototype,"enableBottomBar",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],IL);
_.G(IL,"ytd-offer-card-renderer",function(){if(CPF!==void 0)return CPF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CPF=B},{mode:1});var hzr;var J_=function(){return _.z.apply(this,arguments)||this};
_.w(J_,_.z);J_.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"}}}};
J_.prototype.onClick=function(B){if(!_.uv(B.composedPath()||[],this.hostElement,["A".toString()])){var c,x;if((B=(x=_.t((c=this.data)==null?void 0:c.actionButton,_.z3))==null?void 0:x.command)&&!this.ytComponentBehavior.resolveCommand(B)){var P;(P=_.q_())==null||P.clickCommand(B);_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})}}};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],J_.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],J_.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],J_);
_.G(J_,"ytd-offer-content-renderer",function(){if(hzr!==void 0)return hzr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hzr=B},{mode:1});var mOA;var WE=function(){return _.z.apply(this,arguments)||this};
_.w(WE,_.z);WE.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.AJ.Object.defineProperties(WE.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.title)||!((c=this.data)==null||!c.description)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],WE.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],WE.prototype,"hasHeaderData",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],WE);
_.G(WE,"ytd-offer-section-renderer",function(){if(mOA!==void 0)return mOA;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mOA=B},{mode:1});var TbN;var l8=function(){return _.z.apply(this,arguments)||this};
_.w(l8,_.z);
l8.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],l8.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],l8);
_.G(l8,"ytd-offer-selection-step-renderer",function(){if(TbN!==void 0)return TbN;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return TbN=B},{mode:1});var VwS;var ED=function(){return _.z.apply(this,arguments)||this};
_.w(ED,_.z);ED.prototype.computeStyle=function(B){return B};
ED.prototype.computeImageWidth=function(B){return B==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.L([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],ED.prototype,"containerStyle",void 0);_.L([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.H("design:type",String)],ED.prototype,"imageWidth",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ED.prototype,"data",void 0);
_.L([_.y({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],ED);
_.G(ED,"ytd-confirmation-masthead-renderer",function(){if(VwS!==void 0)return VwS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return VwS=B},{mode:1});var twS;var OD=function(){return _.z.apply(this,arguments)||this};
_.w(OD,_.z);OD.prototype.computeStyle=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OD.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],OD.prototype,"containerStyle",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],OD);
_.G(OD,"ytd-purchase-complete-detail-renderer",function(){if(twS!==void 0)return twS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return twS=B},{mode:1});var wRS;var oL=function(){var B=_.z.apply(this,arguments)||this;B.scriptsAppended=!1;return B};
_.w(oL,_.z);oL.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"}}}};
oL.prototype.onDataChanged=function(){var B=this.get("data.gtmId");B&&(_.Wl(B,_.v5("GL","")),this.setupConversionTracking())};
oL.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var B=document.createElement("noscript");B.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(B);this.scriptsAppended=!0}};
oL.prototype.onDataChanged=oL.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oL.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],oL.prototype,"scriptsAppended",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oL.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],oL);
_.G(oL,"ytd-purchase-complete-step-renderer",function(){if(wRS!==void 0)return wRS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return wRS=B},{mode:1});var NbB;var Qe=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Qe,_.z);Qe.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Qe.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Qe.prototype,"darkerDarkTheme",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Qe);
_.G(Qe,"ytd-ypc-transaction-error-message-renderer",function(){if(NbB!==void 0)return NbB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return NbB=B},{mode:1});var Icc;var JMz;var Fb=function(){var B=_.z.apply(this,arguments)||this;B.handlePhoneVerificationSuccess=function(c){if(B.isValidPhoneVerificationCompletionMessageEvent(c)){var x;((x=B.data)==null?0:x.nextStepCommand)&&B.ytComponentBehavior.resolveCommand(B.data.nextStepCommand)}};
return B};
_.w(Fb,_.z);Fb.prototype.isValidPhoneVerificationCompletionMessageEvent=function(B){if(B.data!=="yt-phone-verification-complete")return!1;B=_.Dg(B.origin);return B!==null&&B.includes("youtube.com")};
Fb.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Fb.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Fb.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fb.prototype,"data",void 0);_.L([_.Em({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Fb);
_.G(Fb,"yt-feature-enablement-soft-entry-renderer",function(){if(JMz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Icc===void 0&&(Icc=document.createElement("template"));var P=Icc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);JMz=B}B=JMz;return B},{mode:1});var W_y;var lcl;var EDr;var OtN;var oDB=function(){return _.z.apply(this,arguments)||this};
_.w(oDB,_.z);_.L([_.F(),_.H("design:type",Object)],oDB.prototype,"data",void 0);_.L([_.Em({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],oDB);
_.G(oDB,"yt-benefits-item-renderer",function(){if(OtN===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;EDr===void 0&&(EDr=document.createElement("template"));var P=EDr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);OtN=B}B=OtN;return B},{mode:2});var QOz;var F_i;var vE=function(){return _.z.apply(this,arguments)||this};
_.w(vE,_.z);vE.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
vE.prototype.computeisWithoutPadding=function(){var B;return((B=this.data)==null?void 0:B.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vE.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.H("design:type",Boolean)],vE.prototype,"isWithoutPadding",void 0);_.L([_.Em({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],vE);
_.G(vE,"yt-benefits-section-renderer",function(){if(F_i===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;QOz===void 0&&(QOz=document.createElement("template"));var P=QOz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);F_i=B}B=F_i;return B},{mode:2});var zD=function(){return _.z.apply(this,arguments)||this};
_.w(zD,_.z);zD.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
zD.prototype.computeisUsingLargeWidth=function(){var B;return((B=this.data)==null?void 0:B.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zD.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.H("design:type",Boolean)],zD.prototype,"isUsingLargeWidth",void 0);_.L([_.Em({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],zD);
_.G(zD,"yt-benefits-flow-step-renderer",function(){if(lcl===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;W_y===void 0&&(W_y=document.createElement("template"));var P=W_y;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lcl=B}B=lcl;return B},{mode:2});var vD8;var zzc;var SG=function(){return _.z.apply(this,arguments)||this};
_.w(SG,_.z);SG.prototype.checkIsUsingLargeWidth=function(){var B;return((B=this.data)==null?void 0:B.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.F(),_.H("design:type",Object)],SG.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.L([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.H("design:type",Boolean)],SG.prototype,"isUsingLargeWidth",void 0);_.L([_.Em({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],SG);
_.G(SG,"yt-confirmation-flow-step-renderer",function(){if(zzc===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;vD8===void 0&&(vD8=document.createElement("template"));var P=vD8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);zzc=B}B=zzc;return B},{mode:2});var SxN;var yMo;var GIy=function(){return _.z.apply(this,arguments)||this};
_.w(GIy,_.z);_.L([_.F(),_.H("design:type",Object)],GIy.prototype,"data",void 0);_.L([_.Em({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],GIy);
_.G(GIy,"yt-info-flow-step-renderer",function(){if(yMo===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;SxN===void 0&&(SxN=document.createElement("template"));var P=SxN;x.call(c,P.content.cloneNode(!0),B.content.firstChild);yMo=B}B=yMo;return B},{mode:2});var Mw6;var L_N;var Zts=function(){return _.z.apply(this,arguments)||this};
_.w(Zts,_.z);_.L([_.F(),_.H("design:type",Object)],Zts.prototype,"data",void 0);_.L([_.Em({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Zts);
_.G(Zts,"yt-info-list-flow-step-renderer",function(){if(L_N===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Mw6===void 0&&(Mw6=document.createElement("template"));var P=Mw6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);L_N=B}B=L_N;return B},{mode:2});var Hti=_.rM(function(B){var c=B.data;return _.U("styled-text-view-model",{class:_.Kw("ytStyledTextViewModelHost",function(){return pMz(c().fontAttributes)},function(){return s3A(c().color)})},_.U(_.RF,{text:function(){return c().text},
ariaLabel:function(){var x,P,Y;return(Y=(x=c().accessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?Y:""}}))},"af");
Hti.idomCompat=!0;var fcA=_.rM(function(B){var c=function(){var Y,g,k,n;return(n=(k=(Y=B.alt)==null?void 0:Y.call(B))!=null?k:(g=B.data().accessibilityData)==null?void 0:g.label)!=null?n:""},x=function(){return B.data().imageWidth},P=function(){return B.data().imageHeight};
return _.U("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.U(_.m,{cond:function(){var Y=B.data();if(Y){var g,k,n;var b=((g=_.cp().resolve(_.Bp(_.fL)))==null?0:g())?(k=Y.imageDark)!=null?k:Y.imageLight:(n=Y.imageLight)!=null?n:Y.imageDark}else b=void 0;return b},
then:function(Y){return _.U(_.D9,Object.assign({},B,{data:Y,alt:c,targetWidth:x,targetHeight:P,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
fcA.idomCompat=!0;var ye=_.rM(function(B){var c=B.data;B=_.A9(function(){return c().slots},[]);
var x=_.A9(function(){return c().layoutProperties},{}),P=_.cp().resolve(_.AX);
return _.U("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:xjr(x,P)},_.U(_.mV,{each:B,keyBy:"INDEX"},function(Y){return _.U("div",{class:"ytContainerLayoutViewModelSlot",style:xjr(function(){return Y().layoutProperties},P)},_.U(_.IF,{data:function(){return Y().contents}},{containerLayoutViewModel:ye,
badgeViewModel:_.Bz,buttonViewModel:_.Q7,styledTextViewModel:Hti,contentPreviewImageViewModel:function(g){return _.U(_.cz,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.U(fcA,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
ye.idomCompat=!0;var itz=_.rM(function(B){var c=B.data;var x=B.stateFns;var P=function(){var d=c(),q=d.productId;return!(!d.clearGroupId&&!q)},Y=function(){var d=c(),q=d.clearGroupId;
return(d=d.productId)?x().isProductSelected(d):q?x().getSelectedProductByGroupId(q)==null:!1},g=function(){var d=c(),q=d.clearGroupId;
if(d=d.productId)x().onProductSelected(d);else if(q)x().onClearGroupSelected(q)},k=function(){var d=c(),q=d.clearGroupId;
if(d=d.productId){var C;return"group:"+(((C=x().getProductById(d))==null?void 0:C.groupId)||"")}return q?"group:"+q:""},n=_.A9(function(){return c().header},[]),b=_.A9(function(){return c().body},[]);
return _.U("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.U(_.m,{cond:function(){return n().length>0||P()},
then:function(){return _.U("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.U("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.U(_.IF,{data:n},{containerLayoutViewModel:function(d){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(ye,{data:d.data}))},
styledTextViewModel:function(d){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(Hti,{data:d.data}))}})),_.U(_.m,{cond:P,
then:function(){return _.U("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.U(_.JN,{checked:Y,name:k,onChange:g}))}}))}}),_.U(_.m,{cond:function(){return b().length>0},
then:function(){return _.U("div",null,_.U(_.IF,{data:b},{containerLayoutViewModel:function(d){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(ye,{data:d.data}))}}))}}))},"df");
itz.idomCompat=!0;var AMz=_.rM(function(B){var c=B.data;var x=B.stateFns;return _.U("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.U(_.m,{cond:function(){return c().banner},
then:function(P){return _.U("div",{class:"ytPdpCardViewModelBanner"},_.U(_.RF,{text:P}))}}),_.U(_.IF,{data:function(){return c().sections}},{pdpCardSectionViewModel:function(P){P=P.data;
var Y={};return _.U("div",{class:_.Kw("ytPdpCardViewModelSectionContainer",(Y.ytPdpCardViewModelShowDividers=function(){return c().showDividers},Y))},_.U(itz,{data:P,
stateFns:x}))}}))},"ef");
AMz.idomCompat=!0;var uSA=_.rM(function(B){var c=B.data;var x=B.isOverlay;B={};return _.U("pdp-masthead-view-model",{class:_.Kw("ytPdpMastheadViewModelHost",(B.ytPdpMastheadViewModelIsOverlay=x,B))},_.U(_.IF,{data:function(){return c().image}},{contentPreviewImageViewModel:_.cz,
themedImageViewModel:function(P){return _.U(fcA,{data:P.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.U(_.m,{cond:function(){return c().title},
then:function(P){return _.U("h1",{class:"ytPdpMastheadViewModelHeading"},_.U(_.RF,{text:P,isOverlay:x}))}}),_.U(_.mV,{each:function(){var P;
return(P=c().finePrint)!=null?P:[]}},function(P){return _.U("div",{class:"ytPdpMastheadViewModelFinePrint"},_.U(_.RF,{text:P,
isOverlay:x}))}))},"ff");
uSA.idomCompat=!0;var DON=_.rM(function(B){var c=B.data;var x=B.stateFns;var P=function(){return"pdp-pricing-group-selector-"+c().pricingGroupAttributeIds},Y=_.A9(function(){return c().pricingGroupSelectorSectionHeader});
return _.U("pdp-pricing-group-selector-view-model",null,_.U(_.m,{cond:function(){return!!Y()},
then:function(){return _.U(_.IF,{data:Y},{sectionHeaderViewModel:function(g){g=g.data;var k={};return _.U("div",{class:_.Kw("ytPdpPricingGroupSelectorViewModelSectionHeader",(k.ytPdpPricingGroupSelectorViewModelFullBleed=!0,k.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,k))},_.U(_.g1,{data:g}))}})}}),_.U("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.U(_.mV,{each:function(){var g=x().getSelectedProductByGroupId(c().groupId);
if(!g)return _.Eb(Error("Jj`"+c().groupId)),[];var k,n=(k=c().pricingGroupAttributeIds)!=null?k:[],b;if((b=g.pricingGroups)==null||!b.length||!n.length)return[];k=g.pricingGroups.filter(function(h){return n.length?h.pricingGroupAttributes.every(function(V){return n.includes(V)}):!1});
g=[];if(n.length>0){k=[].concat(_.wq(k));b=_.p(n);for(var d=b.next(),q={};!d.done;q={targetAttrId:void 0},d=b.next())q.targetAttrId=d.value,d=k.findIndex(function(h){return function(V){return V.pricingGroupAttributes.includes(h.targetAttrId)}}(q)),d!==-1&&(g.push(k[d]),k.splice(d,1))}var C=x().getSelectedPricingGroupAttributesByGroupId(c().groupId);
return g.map(function(h){var V=!1;C&&h.pricingGroupAttributes&&(V=pv(h.pricingGroupAttributes,C));return{pricingGroup:h,isSelected:V}})},
keyBy:function(g){return g.pricingGroup.pricingGroupId}},function(g){return _.U("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.U("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.U(_.IF,{data:function(){return g().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:ye})),_.U("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.U(_.JN,{checked:function(){return g().isSelected},
name:P,onClick:function(){x().onPricingGroupSelected(g().pricingGroup.pricingGroupId)}})))})))},"gf");
DON.idomCompat=!0;var rM8=_.rM(function(B){var c=B.data;var x=B.stateFns;var P=function(){var k=x().getSelectedPricingOptions().map(function(d){return d.pricingOptionId}),n=x().getSelectedProductByGroupId(c().groupId);
if(!n)return _.Eb(Error("Kj`"+c().groupId)),[];var b=x().getSelectedPricingGroupAttributesByGroupId(c().groupId);return n2F(n.pricingOptions,b,k)},Y=_.A9(function(){return c().pricingOptionSelectorSectionHeader}),g=function(){return P().length>1};
return _.U("pdp-pricing-option-selector-view-model",null,_.U(_.m,{cond:function(){return!!Y()&&g()},
then:function(){return _.U(_.IF,{data:Y},{sectionHeaderViewModel:function(k){k=k.data;var n={};return _.U("div",{class:_.Kw("ytPdpPricingOptionSelectorViewModelSectionHeader",(n.ytPdpPricingOptionSelectorViewModelFullBleed=!0,n.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,n))},_.U(_.g1,{data:k}))}})}}),_.U(_.m,{cond:g,
then:function(){return _.U("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.U(_.mV,{each:P,keyBy:"INDEX"},function(k){return _.U("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.U("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.U(_.IF,{data:function(){return k().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:ye})),_.U("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.U(_.JN,{checked:function(){return k().isSelected},
onClick:function(){x().onPricingOptionSelected(k().pricingOption.pricingOptionId);var n=k().pricingOption.onSelectPricingOption;if(n=_.vH(n)){var b;(b=_.cp().resolve(_.xu))==null||b.resolveCommand(n)}}})))}))}}))},"hf");
rM8.idomCompat=!0;var RzF=_.rM(function(B){var c=B.data;var x=B.stateFns;return _.U("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.U(_.IF,{data:function(){var P,Y;return(Y=(P=x().getSelectedPricingOptions()[0])==null?void 0:P.primaryButton)!=null?Y:c().emptyStateButton}},{buttonViewModel:_.Q7}))},"jf");
RzF.idomCompat=!0;var ezF=_.rM(function(B){var c=B.stateFns;return _.U("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.U(_.IF,{data:function(){return c().getSelectedPricingOptions().flatMap(function(x){return x.summaryLines}).filter(function(x){return!!x})}},{containerLayoutViewModel:function(x){return _.U("div",{class:"ytPdpSummaryViewModelLineItem"},_.U(ye,{data:x.data}))}}))},"kf");
ezF.idomCompat=!0;var BDr=_.rM(function(B){function c(E){var S=k();_.iF(_.Wv("pdpStateEntity",S,{key:S,selectedPricingOptions:E}))}
var x=B.data;var P=B.internalScrolling;var Y=B.stateFnsForTesting;var g=_.A9(function(){return x().allProducts},[]),k=_.A9(function(){return x().pdpStateEntityKey},""),n=_.jA(bHc,k),b=_.db(function(){_.Ox(!0);
var E;return(E=Y==null?void 0:Y())!=null?E:j3l(n,g,c)},void 0,"pjJzrd"),d=_.A9(function(){return x().body},[]),q=_.A9(function(){return x().columnBreakHints},[]),C=function(){return x().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},h=function(){return C()||x().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},V=_.db(function(){var E=_.r$(x().background),S;
if(E==null?0:(S=E.sources)==null?0:S.length){var M=M===void 0?!0:M;E=_.ahI(void 0,E.sources,void 0,M,M?1E3:void 0,M?void 0:1E3)}else E=null;return E},void 0,"GO4GAe");
B=_.TU({"--pdp-view-model-background":function(){return V()?"url("+V()+")":void 0}});
var N={};P=_.Kw("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return h()||!!V()},N.ytPdpViewModelHasDarkBackground=h,N.ytPdpViewModelHasScrim=C,N.ytPdpViewModelInternalScrolling=_.A9(P,!1),N));
var l=function(E){var S={};return _.Kw("ytPdpViewModelItem",(S.ytPdpViewModelFullBleed=function(){return _.yTI(E())==="dividerViewModel"||_.yTI(E())==="sectionHeaderViewModel"},S.ytPdpViewModelNoVerticalPadding=function(){return _.yTI(E())==="sectionHeaderViewModel"},S))};
_.lk(function(){var E=x().onStartCommand;if(E&&(E=_.vH(E))){var S;(S=_.cp().resolve(_.xu))==null||S.resolveCommand(E)}});
return _.U("pdp-view-model",{class:P,style:B},_.U("div",{class:"ytPdpViewModelColumnContainer"},_.U(_.mV,{each:function(){return UjF(d(),q())},
keyBy:"INDEX"},function(E){return _.U("div",{class:"ytPdpViewModelColumn"},_.U(_.IF,{data:E},{containerLayoutViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(ye,{data:S}))},
dividerViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(_.rDy,{data:S}))},
pdpCardViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(AMz,{data:S,
stateFns:b}))},
pdpMastheadViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(uSA,{data:S,
isOverlay:h}))},
pdpPricingGroupSelectorViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(DON,{data:S,
stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(rM8,{data:S,
stateFns:b}))},
pdpPrimaryButtonViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(RzF,{data:S,
stateFns:b}))},
pdpSummaryViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(ezF,{data:S,
stateFns:b}))},
sectionHeaderViewModel:function(S,M){S=S.data;return _.U("div",{class:l(function(){return E()[M()]})},_.U(_.g1,{data:S}))}}))})))},"lf");
BDr.idomCompat=!0;_.xU(BDr,"pdp-view-model",{props:{data:_.rk,stateFnsForTesting:_.cw,internalScrolling:_.cw}});var cRB=_.rM(function(B){var c=B.data;var x=B.className;var P=_.jA(_.Yl,function(){return c().flowStateEntityKey});
return _.U("ytm-premium-purchase-button-renderer",{class:_.Kw("yt-premium-purchase-button-renderer",x)},_.U(_.IF,{data:function(){var Y;return(Y=_.t(P(),qdy))==null?void 0:Y.primaryButtonOverride}},{buttonRenderer:function(Y){return _.U(_.Zf,{data:Y.data,
className:x})},
buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,className:x})}}))},"mf");
cRB.idomCompat=!0;var xRo=_.rM(function(B){var c=B.data;B=B.className;var x=function(){return djl(c().style)},P=_.Kw("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",x),Y=_.Kw("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",x);
return _.U("yt-flow-bottom-bar-renderer",{class:_.Kw("yt-flow-bottom-bar-renderer",B,x)},_.U(_.IF,{data:function(){return c().secondaryButton}},{buttonRenderer:function(g){return _.U(_.Zf,{data:g.data,
className:Y})},
buttonViewModel:function(g){return _.U(_.Q7,{data:g.data,className:Y})},
premiumPurchaseButtonRenderer:function(g){return _.U(cRB,{data:g.data,className:Y})}}),_.U(_.IF,{data:function(){return c().primaryButton}},{buttonRenderer:function(g){return _.U(_.Zf,{data:g.data,
className:P})},
buttonViewModel:function(g){return _.U(_.Q7,{data:g.data,className:P})},
premiumPurchaseButtonRenderer:function(g){return _.U(cRB,{data:g.data,className:P})}}))},"nf");
xRo.idomCompat=!0;_.xU(xRo,"yt-flow-bottom-bar-renderer",{props:{data:_.rk,className:_.rk}});var Pky=_.rM(function(B){var c=_.Kw(B.className,"ytOfferSummaryRendererHost");return _.U("yt-offer-summary-renderer",{class:c},_.U("div",{class:"ytOfferSummaryRendererTextContainer"},_.U("div",{class:"ytOfferSummaryRendererEyebrowText"},_.U(_.RF,{text:function(){return B.data().eyebrowText}})),_.U("div",{class:"ytOfferSummaryRendererTitle"},_.U(_.RF,{text:function(){return B.data().title}})),_.U("div",{class:"ytOfferSummaryRendererSubtitle"},_.U(_.RF,{text:function(){return B.data().subtitle}})),
_.U("div",{class:"ytOfferSummaryRendererFeatureListData"},_.U(_.mV,{each:function(){var x;
return(x=B.data().featureListData)!=null?x:[]}},function(x){var P;
return _.U("div",{class:"ytOfferSummaryRendererFeatureList"},_.U(_.Vf,{icon:(P=x.icon)==null?void 0:P.iconType,active:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(x.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"}}}),_.U("div",{class:"ytOfferSummaryRendererFeatureListText"},_.U(_.RF,{text:x.text,
className:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.U("div",{class:"ytOfferSummaryRendererDescription"},_.U(_.RF,{text:function(){return B.data().description}}))))},"of");_.xU(_.rM(function(B){var c={};c=_.Kw("ytOfferSummaryFlowStepRendererHost",(c.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=B.shouldDisableHeaderTopMargin,c));return _.U("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:c},_.U("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.U("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.U(_.RF,{text:function(){return B.data().header}})),_.U("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.U(_.RF,{text:function(){return B.data().subtitle}}))),_.U("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.U(_.IF,{data:function(){return B.data().offerSummary}},{offerSummaryRenderer:function(x){return _.U(Pky,{data:x.data,
className:B.flowClassName})}})))},"pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.cw,
flowClassName:_.cw,flowStateEntityKey:_.cw,shouldDisableHeaderTopMargin:_.cw}});var YsS=_.rM(function(B){var c=B.data;var x=B.className;var P=B.flowStateEntityKey;var Y=B.selectionStepStyle;B=_.qe(function(b){var d=c(),q=P==null?void 0:P();b.target&&(b.stopPropagation(),b=q||"",q=_.Yl(_.HW().getState(),b),d=Object.assign({},q,{premiumPurchaseFlowState:{selectedOptionId:d.optionId,primaryButtonOverride:d.primaryButtonOverride}}),_.HW().dispatch(_.Uy("flowStateEntity",b,d)));return!1});
var g=function(){return(P==null?void 0:P())||""},k=_.jA(_.Yl,g);
_.lk(function(){var b=c(),d=g(),q=k();b.defaultSelected&&d!==""&&b.primaryButtonOverride&&Cys(b.optionId||"",d,b.primaryButtonOverride,q)});
var n={};return _.U("ytm-option-item-renderer",{"on:click":B,class:_.Kw(x,"ytm-option-item-renderer",(n["ytm-option-item-renderer--lp2-style"]=function(){return(Y==null?void 0:Y())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.U("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.U("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=c(),d=g(),q=k();q=_.t(q,qdy);return(q?(q==null?void 0:q.selectedOptionId)||"":b.defaultSelected&&d!==""?(b==null?void 0:b.optionId)||"":"")===c().optionId},
name:("input"+_.oz(_.N5)).toString()})),_.U("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.U(_.m,{cond:function(){return c().eyebrowText},
then:function(){return _.U("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.U(_.RF,{text:function(){return c().eyebrowText}}))}}),_.U("div",{class:"ytm-option-item-renderer__option-item-title"},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.U(_.RF,{text:function(){return c().subtitle}})),_.U(_.m,{cond:function(){return c().featureListData},
then:function(){return _.U("div",{class:"ytm-option-item-renderer__feature-list-data"},_.U(_.mV,{each:function(){return c().featureListData||[]}},function(b){var d,q=(d=b.icon)==null?void 0:d.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":d="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":d="ytm-option-item-renderer__feature-list-icon-small";break a;default:d="ytm-option-item-renderer__feature-list-icon-default"}return _.U("div",{class:"ytm-option-item-renderer__feature-list"},_.U(_.Vf,{icon:q,className:d,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.U("div",{class:"ytm-option-item-renderer__feature-list-text"},_.U(_.RF,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.U("div",{class:"ytm-option-item-renderer__option-item-description"},_.U(_.RF,{text:function(){return c().description}}))))},"qf");var agz=_.rM(function(B){var c=B.data;var x=B.flowClassName;var P=B.flowStateEntityKey;var Y=B.selectionStepStyle;return _.U("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.U("div",{class:"yt-option-section-renderer__option-section-header-section"},_.U("div",{class:"yt-option-section-renderer__option-section-header"},_.U(_.RF,{text:function(){return c().title}}),_.U(_.IF,{data:function(){return c().titleBadge}},{badgeViewModel:function(g){return _.U(_.Bz,
{data:g.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.U(_.m,{cond:function(){return c().subtitle},
then:function(){return _.U("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.U(_.RF,{text:function(){return c().subtitle}}))}}),_.U(_.m,{cond:function(){return c().featureListData},
then:function(g){return _.U("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.U(_.mV,{each:g},function(k){var n;return _.U("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.U(_.Vf,{icon:(n=k.icon)==null?void 0:n.iconType,active:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(k.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.U("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.U(_.RF,{text:k.text,
className:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.U(_.m,{cond:function(){return c().secondaryTitle},
then:function(){return _.U("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.U(_.RF,{text:function(){return c().secondaryTitle}}))}}),_.U(_.mV,{each:function(){return c().sectionDisclaimers||[]}},function(g){return _.U("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.U(_.RF,{text:g}))})),_.U(_.IF,{data:function(){return c().optionItems}},{optionItemRenderer:function(g){return _.U("div",{class:"yt-option-section-renderer__option-item"},_.U(YsS,{data:g.data,
className:x,flowStateEntityKey:P,selectionStepStyle:Y}))}}),_.U(_.m,{cond:function(){return c().offerText},
then:function(){return _.U("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.U(_.RF,{text:function(){return c().offerText}}))}}))},"rf");
agz.idomCompat=!0;var g6i=_.rM(function(B){var c=B.data;var x=B.flowClassName;var P=B.flowStateEntityKey;B=B.isDesktop;var Y=function(){var d;return(d=c().flowStateEntityKey)!=null?d:P==null?void 0:P()},g=function(){return(Y==null?void 0:Y())||""},k=function(){return c().style},n=_.jA(_.Yl,g);
_.lk(function(){var d=c(),q=g(),C=n();!_.t(C,qdy)&&d.noPreselect&&q!==""&&d.defaultButtonOverride&&Cys("default",q,d.defaultButtonOverride,C)});
var b={};return _.U("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Kw("ytm-option-selection-flow-step-renderer",(b["ytm-option-selection-flow-step-renderer--desktop"]=B,b["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return c().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.U(_.RF,{text:function(){return c().header}})),_.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.U(_.RF,{text:function(){return c().subtitle}}))),_.U(_.IF,{data:function(){return c().optionItems||[]}},{optionItemRenderer:function(d){return _.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.U(YsS,{data:d.data,
className:x,flowStateEntityKey:Y,selectionStepStyle:k}))},
optionSectionRenderer:function(d){return _.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.U(agz,{data:d.data,flowClassName:x,flowStateEntityKey:Y,selectionStepStyle:k}))}}))},"sf");
g6i.idomCompat=!0;_.xU(g6i,"yt-option-selection-flow-step-renderer",{props:{data:_.rk,flowClassName:_.rk,flowStateEntityKey:_.rk,isDesktop:_.rk}});var hOA,mjA;_.GD=_.rM(function(B){var c=_.uF(B,{type:1,disablePadding:!1,disablePrimaryButton:!1}),x=c.data,P=c.type;B=c.disablePadding;var Y=c.disablePrimaryButton,g=c.onClickPrimaryButton,k=function(){return x().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},n=function(){return{disabled:Y(),
state:Y()?"disabled":"active"}},b=function(){return x().leadingLabel||x().trailingLabel};
c={};return _.U("yt-panel-footer-view-model",{class:_.Kw("yt-panel-footer-view-model-wiz",(c["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return x().shouldHideDivider},c["yt-panel-footer-view-model-wiz--disable-padding"]=B,c))},_.U(_.m,{cond:b,
then:function(){var d={},q={};return _.U("div",{class:_.Kw("yt-panel-footer-view-model-wiz__text-row",(d["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var C=x();return!(!C.leadingLabel&&!C.trailingLabel||!C.primaryButton&&!C.secondaryButton)},d))},_.U(_.RF,{text:function(){return x().leadingLabel},
className:_.Kw((q["yt-panel-footer-view-model-wiz--text-padding"]=b,q))}),_.U(_.RF,{text:function(){return x().trailingLabel}}))}}),_.U(_.m,{cond:k,
then:function(){var d={};return _.U("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.U("div",{class:_.Kw("yt-panel-footer-view-model-wiz__primary-button",(d["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return x().secondaryButton},d))},_.U(_.IF,{data:function(){return x().primaryButton}},{buttonViewModel:function(q){return _.U(_.Q7,{data:q.data,
buttonOverrides:n,onClick:g})}})),_.U(_.IF,{data:function(){return x().secondaryButton}},{buttonViewModel:_.Q7}))}}),_.U(_.m,{cond:function(){return!k()},
then:function(){var d={},q={},C={};return _.U("div",{class:_.Kw("yt-panel-footer-view-model-wiz__button-row",(d["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===P()},d))},_.U("div",{class:_.Kw("yt-panel-footer-view-model-wiz__button-row--left-button",(q["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===P()},q["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!x().secondaryButton||0===P()},q["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===P()},q))},_.U(_.IF,{data:function(){return x().secondaryButton}},{buttonViewModel:_.Q7})),_.U("div",{class:_.Kw("yt-panel-footer-view-model-wiz__primary-button",(C["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===P()||1===P()},C["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===P()},C))},_.U(_.IF,{data:function(){return x().primaryButton}},{buttonViewModel:function(h){return _.U(_.Q7,{data:h.data,
buttonOverrides:n,onClick:g})}})))}}))},"tf");
_.GD.idomCompat=!0;_.stz=_.rM(function(B){B=_.uF(B,{disablePadding:!1});var c=B.data,x=B.disablePadding;B=_.wMo(function(){return c().formId});
var P=B.onSubmit,Y=B.isValid,g=B.isSubmitting;return _.U("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.U(_.IF,{data:function(){return c().panelFooter}},{panelFooterViewModel:function(k){return _.U(_.GD,{data:k.data,
onClickPrimaryButton:function(){P()},
disablePrimaryButton:function(){return!Y()||g()},
disablePadding:x})}}))},"uf");_.xU(_.stz,"yt-form-footer-view-model",{props:{data:_.rk,disablePadding:_.rk}});_.xU(_.rM(function(B){return _.U("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.U(_.m,{cond:function(){var c;return(c=B.data())==null?void 0:c.image},
then:function(c){return _.U(_.D9,{data:c,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.U(_.RF,{text:function(){var c;
return(c=B.data())==null?void 0:c.title}})),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.U(_.RF,{text:function(){var c;
return(c=B.data())==null?void 0:c.subtitle}})),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.U(_.IF,{data:function(){var c;
return(c=B.data())==null?void 0:c.viewTipsButton}},{buttonViewModel:_.Q7}))))},"vf"),"yt-contributor-zero-state-view-model",{props:{data:_.rk}});var p5F=_.rM(function(B){var c=_.jA(NW6,_.A9(function(){var x;return(x=B.data())==null?void 0:x.noteFeedEntityKey},""));
return _.U("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.U(_.m,{cond:function(){var x,P;return(x=B.data())==null?void 0:(P=x.noteData)==null?void 0:P.isPinned},
then:function(){return _.U(_.Vf,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.U(_.m,{cond:function(){var x,P;return(x=B.data())==null?void 0:(P=x.noteData)==null?void 0:P.isPublished},
then:function(){return _.U(_.Vf,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.U(_.RF,{text:function(){var x,P;
return(x=B.data())==null?void 0:(P=x.noteData)==null?void 0:P.headerText}}),_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.U(_.RF,{text:function(){var x,P;
return(x=B.data())==null?void 0:(P=x.noteData)==null?void 0:P.delimiter}})),_.U(_.RF,{text:function(){var x,P;
return(x=c())==null?void 0:(P=x.contributorNote)==null?void 0:P.publishedTimeText}})),_.U(_.IF,{data:function(){var x,P,Y,g=(x=B.data())==null?void 0:x.noteData;
x=(P=c())==null?void 0:(Y=P.contributorNote)==null?void 0:Y.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:g.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:g.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:g.deleteDialogTitle}]},dialogMessages:[{runs:[{text:g.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.deleteActionText}]},command:{performCommentActionEndpoint:{action:x}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.U("div",{class:"ytNoteViewModelNoteContent"},_.U(_.RF,{text:function(){var x,P;
return(x=c())==null?void 0:(P=x.contributorNote)==null?void 0:P.text}})))},"wf");
p5F.idomCompat=!0;_.xU(p5F,"yt-note-view-model",{props:{data:_.rk}});var MK=_.rM(function(B){var c=_.uF(B,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),x=c.label,P=c.text,Y=c.placeholder,g=c.hint;B=c.rows;var k=c.overflowStyle,n=c.outline,b=c.disabled,d=c.disableNewLines,q=c.characterLimit,C=c.validation,h=c.onInput,V=_.Ho("textarea");c=_.p(_.mg(function(){return P()}));
var N=c.next().value,l=c.next().value;c=_.p(_.$D(!1,void 0,"fXvinf"));var E=c.next().value,S=c.next().value,M=function(){S(!0)},f=function(){S(!1)};
_.lk(function(){var H$=V.value,yw=k(),r9=N();yw==="expand-vertically"&&r9&&IeF(H$);V.value.addEventListener("focusin",M);V.value.addEventListener("focusout",f)});
_.lP(function(){V.value.removeEventListener("focusin",M);V.value.removeEventListener("focusout",f)});
var Z=function(){var H$;return(H$=C())==null?void 0:H$.validate(N())},u=function(){return q()&&!Z()&&N().length>q().maxChars},e=function(){return!!Z()||u()};
c=_.qe(function(H$){if(!H$.currentTarget)return!1;H$=H$.currentTarget;l(H$.value);k()==="expand-vertically"&&IeF(H$);h==null||h(H$.value);return!0});
var px=_.qe(function(H$){d()&&H$.key==="Enter"&&H$.preventDefault();return!1}),kI=_.qe(function(){V.value.focus()}),Ul=function(){return Y()||x()},wC={},W$={},El={};
return _.U("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.U("div",{class:_.Kw("ytStandardsTextareaShapeTextareaContainer",(wC.ytStandardsTextareaShapeTextareaContainerOutline=n,wC.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,wC.ytStandardsTextareaShapeTextareaContainerOutlineError=e,wC)),"on:click":kI},_.U("label",{class:_.Kw("ytStandardsTextareaShapeLabel",(W$.ytStandardsTextareaShapeLabelFocused=E,W$.ytStandardsTextareaShapeLabelDisabled=b,W$.ytStandardsTextareaShapeLabelError=
function(){return e()&&!b()},W$.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!N()&&!!Ul()},W$))},x),_.U("div",{class:_.Kw("ytStandardsTextareaShapePlaceholder",(El.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!N()},El)),
"aria-hidden":"true"},Ul),_.U("textarea",{el:V,class:"ytStandardsTextareaShapeTextarea",rows:B,disabled:b,placeholder:Ul,"on:input":c,"on:keydown":px},N)),_.U(_.m,{cond:function(){return g()&&!e()},
then:function(){var H$={};return _.U("div",{class:_.Kw("ytStandardsTextareaShapeHint",(H$.ytStandardsTextareaShapeHintDisabled=b,H$))},_.U("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.U(_.m,{cond:Z,
then:function(){return _.U(kuz,{disabled:b},_.U("div",{class:"ytStandardsTextareaShapeErrorMessage"},Z))}}),_.U(_.m,{cond:q,
then:function(H$){return _.U(_.m,{cond:u,then:function(){return _.U(kuz,{disabled:b},_.U("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return H$().errorMessage}),_.U("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return N().length+"/"+H$().maxChars}))}})}}))},"xf");
MK.idomCompat={callbacks:{onInput:!0}};var kuz=_.rM(function(B){var c={};return _.U("div",{class:_.Kw("ytStandardsTextareaShapeError",(c.ytStandardsTextareaShapeErrorDisabled=B.disabled,c)),role:"alert"},_.U(_.Vf,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),B.children)},"yf");_.X56=_.rM(function(B){var c=B.data;return _.U("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.U(MK,{text:B.text,label:function(){var x;return(x=c().contentProperties)==null?void 0:x.labelText},
placeholder:function(){var x;return(x=c().contentProperties)==null?void 0:x.placeholderText},
hint:function(){var x;return(x=c().contentProperties)==null?void 0:x.hintText},
outline:function(){var x;return!((x=c().displayProperties)==null?0:x.hideBorder)},
overflowStyle:function(){var x;return((x=c().displayProperties)==null?0:x.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:B.disabled,disableNewLines:function(){var x;return(x=c().displayProperties)==null?void 0:x.disableNewLines},
onInput:B.onInput,characterLimit:B.characterLimit,validation:B.validation,rows:function(){var x;return(x=c().displayProperties)==null?void 0:x.rows}}))},"zf");_.$Rc=_.rM(function(B){var c=B.data;return _.U("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.U(MK,{text:B.text,label:function(){var x;return(x=c().contentProperties)==null?void 0:x.labelText},
placeholder:function(){var x;return(x=c().contentProperties)==null?void 0:x.placeholderText},
hint:function(){var x;return(x=c().contentProperties)==null?void 0:x.hintText},
outline:function(){var x;return!((x=c().displayProperties)==null?0:x.hideBorder)},
overflowStyle:function(){var x;return((x=c().displayProperties)==null?0:x.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var x;return(x=c().displayProperties)==null?void 0:x.disableNewLines},
onInput:B.onInput,characterLimit:B.characterLimit,validation:B.validation,rows:function(){var x;return(x=c().displayProperties)==null?void 0:x.rows}}))},"Af");var n66=_.rM(function(B){var c=_.p(_.mg(function(){var Ul,wC;return((Ul=B.data().structuredContextNoteFormSchema)==null?0:(wC=Ul.initialValues)==null?0:wC.noteBody)?B.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),x=c.next().value,P=c.next().value;
c=_.p(_.mg(function(){B.data();return!1}));
var Y=c.next().value,g=c.next().value;c=_.p(_.mg(function(){B.data();return!1}));
var k=c.next().value,n=c.next().value;c=_.p(_.mg(function(){var Ul,wC;return((Ul=B.data().structuredContextNoteFormSchema)==null?0:(wC=Ul.initialValues)==null?0:wC.timestamp)?B.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=c.next().value,d=c.next().value;c=_.p(_.mg(function(){B.data();return!1}));
var q=c.next().value,C=c.next().value;c=_.p(_.mg(function(){var Ul,wC;return((Ul=B.data().structuredContextNoteFormSchema)==null?0:(wC=Ul.initialValues)==null?0:wC.sources)?[B.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var h=c.next().value,V=c.next().value;c=_.p(_.mg(function(){B.data();return!1}));
var N=c.next().value,l=c.next().value;c=_.p(_.mg(function(){return!1}));
var E=c.next().value,S=c.next().value;_.lk(function(){var Ul;_.tk8((Ul=B.data().structuredContextNoteFormSchema)==null?void 0:Ul.id,{isSubmitting:E,onSubmit:function(){S(!0);var wC=v2y(x(),b(),h(),B.data()),W$=_.cp().resolve(_.xu);wC&&W$&&W$.resolveCommand(wC,{commandController:{onSuccess:function(){S(!1)}}})},
isValid:function(){return Y()&&!k()&&!q()&&!N()}})});
var M=function(Ul){if(Ul!==void 0&&(P(Ul),!Y()&&Ul.length>0&&g(!0),Y())){var wC=leo(B.data());if(wC){var W$=wC.minLength;wC=wC.maxLength;W$&&Ul.length<W$?n(!0):wC&&Ul.length>wC?n(!0):n(!1)}}},f=function(Ul){if(Ul!==void 0){d(Ul);
if(Ul.length>0){var wC,W$,El,H$,yw=OHF((wC=B.data())==null?void 0:(W$=wC.structuredContextNoteFormSchema)==null?void 0:(El=W$.fieldSchemas)==null?void 0:(H$=El.timestamp)==null?void 0:H$.validationSchema);if(yw&&(wC=yw.regex)&&!(new RegExp(wC)).test(Ul)){C(!0);return}}C(!1)}},Z=function(Ul){if(Ul!==void 0){var wC=Ul.split(/[ \n]/).map(function(W$){return W$.trim()});
V(wC);if(Ul.length>0)for(Ul=_.p(wC),wC=Ul.next();!wC.done;wC=Ul.next())if(!FKy(wC.value)){l(!0);return}l(!1)}},u=function(){return{validate:function(Ul){if(Y()){var wC=leo(B.data());
if(wC){var W$=wC.minLength;wC=wC.translations;if(W$&&Ul.length<W$)return wC==null?void 0:wC.minLengthErrorMessage}}}}},e=function(){var Ul=leo(B.data()),wC=Ul==null?void 0:Ul.maxLength,W$;
Ul=Ul==null?void 0:(W$=Ul.translations)==null?void 0:W$.maxLengthErrorMessage;if(wC&&Ul)return{maxChars:wC,errorMessage:Ul}},px=function(){return{validate:function(Ul){if(Ul){var wC,W$,El,H$,yw=OHF((wC=B.data())==null?void 0:(W$=wC.structuredContextNoteFormSchema)==null?void 0:(El=W$.fieldSchemas)==null?void 0:(H$=El.timestamp)==null?void 0:H$.validationSchema);
if(yw&&(wC=yw.regex,yw=yw.translations,wC&&!(new RegExp(wC)).test(Ul)))return yw==null?void 0:yw.regexErrorMessage}}}},kI=function(){return{validate:function(Ul){if(Ul){var wC,W$,El,H$,yw=Q38((wC=B.data())==null?void 0:(W$=wC.structuredContextNoteFormSchema)==null?void 0:(El=W$.fieldSchemas)==null?void 0:(H$=El.sources)==null?void 0:H$.validationSchema);
if(yw&&(wC=yw.translations,wC==null?0:wC.selectedErrorMessage))for(Ul=Ul.split(/[ \n]/).map(function(r9){return r9.trim()}),Ul=_.p(Ul),W$=Ul.next();!W$.done;W$=Ul.next())if(!FKy(W$.value))return Ul=void 0,(Ul=wC)==null?void 0:Ul.selectedErrorMessage}}}};
return _.U("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.IF,{data:function(){var Ul;return(Ul=B.data())==null?void 0:Ul.noteContents}},{textFormFieldViewModel:function(Ul){return _.U(_.$Rc,{data:Ul.data,
onInput:M,validation:u,characterLimit:e})},
textFieldViewModel:function(Ul){return _.U(_.X56,{data:Ul.data,onInput:M,validation:u,characterLimit:e})}})),_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.IF,{data:function(){var Ul;
return(Ul=B.data())==null?void 0:Ul.noteTimestamp}},{textFormFieldViewModel:function(Ul){return _.U(_.$Rc,{data:Ul.data,
onInput:f,validation:px})},
textFieldViewModel:function(Ul){return _.U(_.X56,{data:Ul.data,onInput:f,validation:px})}})),_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.IF,{data:function(){var Ul;
return(Ul=B.data())==null?void 0:Ul.noteSources}},{textFormFieldViewModel:function(Ul){return _.U(_.$Rc,{data:Ul.data,
onInput:Z,validation:kI})},
textFieldViewModel:function(Ul){return _.U(_.X56,{data:Ul.data,onInput:Z,validation:kI})}})))},"Bf");
n66.idomCompat=!0;_.xU(n66,"yt-structured-context-note-view-model",{props:{data:_.rk}});var bao=_.rM(function(B){var c=_.p(_.mg(function(){var g;if((g=B.controlled)==null?0:g.call(B))return[];var k;return(((k=B.data())==null?void 0:k.chips)||[]).map(function(n){n=_.t(n,_.MV);if(n==null?0:n.selected)return zOF(n.chipValue)}).filter(function(n){return n!==void 0})})),x=c.next().value,P=c.next().value,Y=function(g){var k=zOF(g.chipValue);
if(k!==void 0){var n;if((n=B.controlled)==null?0:n.call(B))return void B.controlled().onTap(k);g=x().includes(k)?[].concat(_.wq(x().filter(function(d){return d!==k}))):[].concat(_.wq(x()),[k]);
P(g);var b;if((b=B.uncontrolled)==null?0:b.call(B))B.uncontrolled().onUpdate(g)}};
return _.U("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.U(_.mV,{each:function(){return B.data().chips||[]}},function(g){return _.U("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.U(_.uu5,{data:function(){return _.t(g,_.MV)},
selected:function(){var k;if(k=_.t(g,_.MV)){var n=zOF(k.chipValue);if(n!==void 0){var b;k=((b=B.controlled)==null?0:b.call(B))?B.controlled().selectedValues.includes(n):x().includes(n)}else k=void 0}else k=!1;return k},
callback:Y}))}))},"Cf");var KVr=_.rM(function(B){var c=B.data;var x=function(){var n;return((n=c())==null?void 0:n.flowStateKey)||""},P=_.jA(_.Yl,x),Y=function(){var n;
return(n=_.t(P(),Wyr))==null?void 0:n.chips},g=function(n){if(n!==void 0){var b=Y()||[];
b=b.find(function(d){return d===n})?b.filter(function(d){return d!==n}):[].concat(_.wq(b),[n]);
b=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.t(P(),Wyr),{chips:b})});_.iF(_.Uy("flowStateEntity",x(),b))}},k=function(){var n;
return _.t((n=c())==null?void 0:n.inputBox,lMi)};
B=_.he(function(n){var b=k();b=!(b==null?0:b.maxChars)||n.length<=b.maxChars;n=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.t(P(),Wyr),{detail:n}),abuseReportFlowState:Object.assign({},_.t(P(),$$),{navigationEnabled:b})});_.iF(_.Uy("flowStateEntity",x(),n))},150);
return _.U("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.U("div",{class:"ytFeedbackFormViewModelChips"},_.U(_.IF,{data:function(){var n;return(n=c())==null?void 0:n.chipSelection}},{chipSelectionFormFieldViewModel:function(n){return _.U(bao,{data:n.data,
controlled:function(){return{selectedValues:Y()||[],onTap:g}}})}})),_.U("div",{class:"ytFeedbackFormViewModelInputBox"},_.U(MK,{text:function(){var n;
return(n=_.t(P(),Wyr))==null?void 0:n.detail},
placeholder:function(){var n;return((n=k())==null?void 0:n.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var n=k();if(n&&n.maxChars)return{maxChars:n.maxChars,errorMessage:n.maxCharsExceededErrorMessage||""}},
onInput:B})),_.U("div",{class:"ytFeedbackFormViewModelFooterText"},_.U(_.RF,{text:function(){return c().footerText}})))},"Df");
KVr.idomCompat=!0;_.xU(KVr,"yt-feedback-form-view-model",{props:{data:_.rk}});var jtN=_.rM(function(B){var c=B.data;var x=function(){return c().flowStateKey||""},P=_.jA(y06,x),Y=function(){return _.t(P(),$$)},g=function(){if(_.T("enable_gff_accessibility_fix")){var k=!0,n;
if((n=Y())==null?0:n.navigationEnabled){var b;_.Gl((b=Y())==null?void 0:b.navigationCommand);k=!1}n=Object.assign({},P(),{abuseReportFlowState:Object.assign({},Y(),{isReportFormDirty:k})});_.iF(_.Uy("flowStateEntity",x(),n))}else _.Gl((k=Y())==null?void 0:k.navigationCommand)};
return _.U("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.U("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.U(_.IF,{data:function(){return c().cancelButton}},{buttonViewModel:function(k){return _.U(_.Q7,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}}),_.U(_.IF,{data:function(){var k;
if(c().navButton){var n=Object;var b=n.assign,d=_.t(c().navButton,_.Tj),q=((k=Y())==null?0:k.navigationEnabled)||_.T("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",C,h;k=_.t((C=Y())==null?void 0:C.navigationCommand,_.Fo);C=(h=_.t(k,_.yp))==null?void 0:h.url;n={buttonViewModel:b.call(n,{},d,{state:q,iconName:C?"OPEN_IN_NEW":""})}}else n=void 0;return n}},{buttonViewModel:function(k){return _.U(_.Q7,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}})))},"Ef");
jtN.idomCompat=!0;_.xU(jtN,"yt-report-form-bottom-bar-view-model",{props:{data:_.rk}});var URs=_.rM(function(B){var c=B.nextStep;return _.U("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.U("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.U(_.Vf,{icon:function(){return c().iconName||""}})),_.U("div",null,_.U(_.RF,{text:function(){return c().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ff"),dRr=_.rM(function(B){var c=B.data;
var x,P=(x=_.cp().resolve(_.Bp(_.fL)))==null?void 0:x(),Y=_.jA(_.Yl,function(){return c().flowStateKey||""});
return _.U("yt-report-form-confirmation-page-view-model",{class:function(){var g;return((g=_.t(Y(),$$))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.U("div",{class:function(){var g;
return((g=_.t(Y(),$$))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.U(_.D9,{data:function(){return P&&c().imageDark?c().imageDark:c().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.U("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return c().confirmationHeader}),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.U(_.RF,{text:function(){return c().confirmationText}})),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.U(_.RF,{text:function(){return c().lawEnforcementText}})),
_.U("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return c().whatToExpectHeader}),_.U(_.m,{cond:function(){return c().nextSteps},
then:function(g){return _.U("div",null,_.U(_.mV,{each:g},function(k){return _.U(URs,{nextStep:k})}))}}),_.U(_.m,{cond:function(){return c().legalReportText},
then:function(g){return _.U("div",null,_.U(_.RF,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gf");
dRr.idomCompat=!0;_.xU(dRr,"yt-report-form-confirmation-page-view-model",{props:{data:_.rk}});var qsi=_.rM(function(B){var c=B.data;var x=function(){var g;return((g=_.t(c().inputBox,lMi))==null?void 0:g.maxChars)||500},P=function(){return c().flowStateKey||""},Y=_.jA(_.Yl,P);
B=_.he(function(g){g=Object.assign({},Y(),{flowFormState:{isValid:g.length<=x()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>x()),isReportFormDirty:!0}});_.HW().dispatch(_.Wv("flowStateEntity",P(),g))},150);
_.lk(function(){var g=Object.assign({},Y(),{flowFormState:{isValid:!0}});_.HW().dispatch(_.Wv("flowStateEntity",P(),g))});
return _.U("yt-report-form-details-page-view-model",{class:function(){var g;return((g=_.t(Y(),$$))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.U("h1",{class:function(){var g;
return((g=_.t(Y(),$$))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return c().detailsPageHeader}),_.U("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.U(_.RF,{text:function(){return c().bodyText}})),_.U("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.U(MK,{label:function(){var g;
return((g=_.t(c().inputBox,lMi))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.t(c().inputBox,lMi))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:x()}},
onInput:B})))},"Hf");
qsi.idomCompat=!0;_.xU(qsi,"yt-report-form-details-page-view-model",{props:{data:_.rk}});var Ckz=_.rM(function(B){var c=B.data;var x=B.selectedKey;var P=B.onSelected;var Y=B.groupName;var g=function(){return c().text},k=function(){return c().attributedText},n=function(){return c().subtext},b=function(){return c().attributedSubtext},d=_.U("div",{class:"ytRadioButtonItemViewModelLabel"},_.U(_.m,{cond:g,
then:function(){return _.U("div",null,g)}}),_.U(_.m,{cond:k,
then:function(){return _.U(_.RF,{text:k})}}),_.U(_.m,{cond:n,
then:function(){return _.U("div",{class:"ytRadioButtonItemViewModelSubText"},n)}}),_.U(_.m,{cond:b,
then:function(){return _.U("div",{class:"ytRadioButtonItemViewModelSubText"},_.U(_.RF,{text:b}))}})),q=function(){if(k()){var h;
return(h=k())==null?void 0:h.content}return g()},C=function(){if(b()){var h;
return(h=b())==null?void 0:h.content}return n()};
B={};return _.U("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.U(_.JN,{name:Y,checked:function(){return!(x==null||!x()||c().key!==(x==null?void 0:x()))},
onChange:function(h){P==null||P(h.target,c(),Y==null?void 0:Y())},
labelRenderable:function(){return d},
ariaLabel:function(){return C()?q()+", "+C():q()},
className:_.Kw((B.ytRadioButtonItemViewModelSubTitle=function(){return!!c().subtext},B))}))},"If");_.h2o=_.rM(function(B){var c=B.data;var x=B.onSelected;var P=B.selectedKey;var Y=B.groupName;var g=function(){return(Y==null?void 0:Y())||c().key};
return _.U("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.U("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.U(_.IF,{data:function(){return c().radioButtons}},{radioButtonItemViewModel:function(k){return _.U(Ckz,{data:k.data,
onSelected:x,selectedKey:P,groupName:g})}})))},"Jf");var mRl=_.rM(function(B){var c=B.data;var x=_.fE("div"),P=function(){return c().flowStateKey||""},Y=_.jA(_.Yl,P),g=function(){return _.t(Y(),$$)};
_.IO(function(){var k,n;if(((k=g())==null?0:k.isReportFormDirty)&&((n=g())==null||!n.navigationEnabled)&&_.T("enable_gff_accessibility_fix")){var b;if(((b=g())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||d.scrollIntoView()}else{var q;(q=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||q.scrollIntoView()}}},"VvP2Ne");
return _.U("yt-report-form-reason-select-page-view-model",{class:function(){var k;return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.U("h1",{class:function(){var k;
return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return c().pageHeader}),_.U("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.U(_.RF,{text:function(){return c().bodyText}})),_.U("div",{class:function(){var k;
return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.U(_.m,{cond:function(){var k,n;
return((k=g())==null?void 0:k.isReportFormDirty)&&!((n=g())==null?0:n.navigationEnabled)&&_.T("enable_gff_accessibility_fix")},
then:function(){return _.U("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:x},_.U(_.Vf,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.U("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return c().emptyReasonSelectErrorMessage}))}}),_.U(_.h2o,{data:function(){return _.t(c().radioButtonGroup,_.SqS)},
onSelected:function(k,n){k=Object.assign({},Y(),{abuseReportFlowState:Object.assign({},g(),{reasonKey:n.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:n.command})});_.iF(_.Uy("flowStateEntity",P(),k))},
selectedKey:function(){var k;return(k=g())==null?void 0:k.reasonKey},
groupName:"report-form-reason-select-page"})))},"Kf");
mRl.idomCompat=!0;_.xU(mRl,"yt-report-form-reason-select-page-view-model",{props:{data:_.rk}});var TD8=_.rM(function(B){var c=B.data;var x,P=(x=_.cp().resolve(_.Bp(_.fL)))==null?void 0:x();return _.U("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.U("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.U(_.D9,{data:function(){return P&&c().imageDark?c().imageDark:c().image},
alt:""})),_.U("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.U("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return c().header}),_.U(_.RF,{text:function(){return c().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Lf");
TD8.idomCompat=!0;_.xU(TD8,"yt-report-form-sign-in-page-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=function(){return c().titleSuperscript},P=function(){var q;
return(q=c().textInputPlaceholder)==null?void 0:q.content},Y=function(q){q=q.target.value.trim();
var C=c().onUpdateText;C&&_.Gl(C,{form:{userQuery:q}});c().userQuery=q},g=_.he(function(q){Y(q)},150),k=_.qe(function(q){g(q);
return!1}),n=_.qe(function(q){q.key==="Enter"&&(Y(q),(q=c().onNextStepCommand)&&_.Gl(q,{forceClickLogging:!0}));
return!1}),b=_.Ho("yt-talk-to-recs-view-model"),d=function(){if(_.T("web_hide_explore_hub_until_user_navigates_back_to_home")){var q,C,h;
(h=(C=(q=b.value)==null?void 0:q.closest("ytd-flow-step-renderer"))==null?void 0:C.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||h.click()}};
return _.U("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:b},_.U("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.U(_.IF,{data:function(){return c().topCornerButton}},{buttonViewModel:_.Q7})),_.U("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.U("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.U(_.RF,{text:function(){return c().title}}),_.U(_.m,{cond:x,
then:function(){return _.U("sup",{class:"ytwTalkToRecsSuperScript"},_.U(_.RF,{text:x}))}})),_.U("div",{class:"ytwTalkToRecsSubtitle"},_.U(_.RF,{text:function(){return c().subtitle}})),_.U("div",{class:"ytwTalkToRecsChipsShelf"},_.U(_.IF,{data:function(){return c().answersShelf}},{chipsShelfViewModel:function(q){return _.U("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.U(_.Y_9,{data:q.data,
callback:d,enableSingleChipSelection:!0}))}})),_.U(_.m,{cond:function(){return c().showOpenTextInput&&!_.T("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.U("div",{class:"ytwTalkToRecsUserInputBox"},_.U("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:P,value:function(){return c().userQuery},
"on:input":k,"on:keyup":n,maxlength:200}))}})))},"Mf"),"yt-talk-to-recs-view-model",{props:{data:_.rk}});var Sdl={sources:[{clientResource:{imageName:"CHECK"}}]};_.VIr=_.rM(function(B){var c=_.Ho("div");B=_.uF(B,{error:void 0});var x=B.data,P=B.error,Y=B.onSelected;B=_.p(_.mg(function(){return MkS(x())}));
var g=B.next().value,k=B.next().value;feB(x,function(C){k(C);var h,V,N=G_l((h=x().options)==null?void 0:(V=h[C])==null?void 0:V.value,x().type);Y==null||Y(N);c.value.focus()});
B=_.qe(function(){if(!x().disabled){var C=x(),h=g(),V=c.value;C.options&&(C=yx6(C.options,h,C.label),_.cp().resolve(_.Vi).openSheet({viewModel:C},V))}});
var n=_.Bsx(),b=function(){return!!P()},d=function(){return!!x().disabled},q={};
q=_.Kw("ytDropdownViewModelDropdownContainer",(q.ytDropdownViewModelDropdownContainerErrorBorder=b,q.ytDropdownViewModelDropdownContainerDisabled=d,q));return _.U("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.U("div",{class:q,"on:click":B,el:c,role:"combobox",tabindex:0,"on:keydown":n,"aria-invalid":b,"aria-disabled":d,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.U("div",{class:"ytDropdownViewModelText"},LKi(x,b,g),ZHB(x,g)),_.U("div",{class:"ytDropdownViewModelChevronDown"},
_.U(_.Vf,{icon:"CHEVRON_DOWN"}))),HHB(x,P))},"Nf");_.xU(_.rM(function(B){var c=B.data;var x=function(Y){var g=Axi(c());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Y)},P=function(Y){var g=Axi(c());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Y)};
return _.U("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.U("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.U("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.U(_.RF,{text:function(){return c().title}}),_.U(_.Vf,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.U(_.RF,{text:function(){return c().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.U(_.IF,{data:function(){return c().tierChoices}},{dropdownViewModel:function(Y){return _.U("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.U(_.VIr,{data:Y.data,
onSelected:x}))}}),_.U(_.IF,{data:function(){return c().startTimeChoices}},{dropdownViewModel:function(Y){return _.U("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.U(_.VIr,{data:Y.data,
onSelected:P}))}}),_.U(_.RF,{text:function(){return c().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.U("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.U(_.IF,{data:function(){return c().scheduleButton}},{panelFooterViewModel:_.GD})))},"Of"),"ytfz-schedule-fanzone-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;B=B.className===void 0?"":B.className;var x=_.jA(y06,function(){return c().flowStateEntityKey||""}),P={};
P=_.Kw("ytFlowBottomBarViewModelFlowBottomBarButtons",(P.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},P));
var Y={},g=_.Kw("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",P,(Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Y));
Y={};var k=_.Kw("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",P,(Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Y));
P={};P=_.Kw("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
P));
B=_.Kw("ytFlowBottomBarViewModelHost",B);return _.U("yt-flow-bottom-bar-view-model",{class:B},_.U(_.m,{cond:function(){var n;return(n=c())==null?void 0:n.textSection},
then:function(n){return _.U("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.U(_.RF,{text:n}))}}),_.U("div",{class:P},_.U(_.IF,{data:function(){return c().secondaryButton}},{buttonViewModel:function(n){return _.U(_.Q7,{data:n.data,
className:k})}}),_.U(_.IF,{data:function(){return c().primaryButton}},{buttonViewModel:function(n){return _.U(_.Q7,{data:n.data,
className:g,buttonOverrides:function(){var b;return{disabled:!((b=x())==null||!b.primaryButtonDisabled)}}})}})))},"Pf"),"yt-flow-bottom-bar-view-model",{props:{data:_.rk,
className:_.cw}});var tIA="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Lv=function(){var B=_.z.apply(this,arguments)||this;B.enableScrollingFix=!0;B.bottomBar=!1;B.hideBottomBar=!1;B.fitContent=!1;return B};
_.w(Lv,_.z);_.a=Lv.prototype;_.a.ready=function(){_.T("enable_pdp_icon_prefetch")&&_.JGz(_.cp().resolve(_.$1),0,tIA)};
_.a.focus=function(B){this.topBar?_.ir(this.topBar,B):this.paperDialog.focus(B)};
_.a.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16923_scroller&&(this.JSC$16923_scroller.dialogElement=this.paperDialog,this.JSC$16923_scroller.attached&&typeof this.JSC$16923_scroller.attached==="function"&&this.JSC$16923_scroller.attached())};
_.a.onDataChanged=function(){var B;this.fitContent=!((B=this.data)==null||!B.fitContent);var c;this.bottomBar=!((c=this.data)==null||!c.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.a.onProgressChanged=function(){var B,c,x=((c=(B=this.data)==null?void 0:B.progress)!=null?c:0)*100;this.progressElement.style.width=x+"%"};
_.a.isProgressHidden=function(){var B;return!((B=this.data)==null?0:B.progress)};
_.a.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(B){return _.T("enable_wiz_next_lp2_msof")&&B&&!B.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.AJ.Object.defineProperties(Lv.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var B;return _.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.t((B=this.data)==null?void 0:B.content,Fy6)}}});
Lv.prototype.onProgressChanged=Lv.prototype.onProgressChanged;Lv.prototype.onDataChanged=Lv.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Lv.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lv.prototype,"enableScrollingFix",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lv.prototype,"bottomBar",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lv.prototype,"hideBottomBar",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lv.prototype,"containsExploreHub",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Lv.prototype,"fitContent",void 0);_.L([_.jr("#progress"),_.H("design:type",HTMLElement)],Lv.prototype,"progressElement",void 0);
_.L([_.jr("#scroller"),_.H("design:type",Object)],Lv.prototype,"JSC$16923_scroller",void 0);_.L([_.jr("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],Lv.prototype,"topBar",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lv.prototype,"onDataChanged",null);_.L([_.bF("data.progress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lv.prototype,"onProgressChanged",null);
_.L([_.y({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Lv);
_.G(Lv,"ytd-flow-step-renderer",function(){if(gDz!==void 0)return gDz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gDz=B},{mode:1});var w5o=function(B){this.resolveCommand=B;this.steps={}},NDo=function(B,c){c=_.p(c||[]);
for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=Object.values(x)[0],Y=void 0;if((Y=P)==null?0:Y.stepId)B.steps[P.stepId]=x}},WVl=function(B,c){var x,P,Y,g,k;
return _.X(function(n){if((x=B.state)==null||!x.currentStepId)return n.return(void 0);P=Ig8(B);if(!P)return n.return(JR8(B));if(Y=_.t(P,_.QDo)){var b;((b=Y.screenLoggingData)==null?0:b.screenVeType)&&_.kk(_.q_(),Y.screenLoggingData.screenVeType);((g=Y)==null?0:g.onStepStartCommand)&&B.resolveCommand((k=Y)==null?void 0:k.onStepStartCommand,{})}if(Y&&c){b=Y;var d,q,C,h;((d=c.flowLoggingData)==null?0:d.eventNamespace)&&((q=b.flowEventData)==null?0:q.eventType)&&((C=b.flowEventData)==null?0:C.eventMetadata)&&
((h=c.flowLoggingData)==null?0:h.flowType)&&(d=_.XI(c.flowLoggingData.eventNamespace,b.flowEventData.eventType,b.flowEventData.eventMetadata),_.$H(_.nr(),d,c.flowLoggingData.flowType));c.steps&&!c.steps.includes(P)&&c.steps.push(P)}return n.return(P)})};
w5o.prototype.back=function(){var B;(B=this.state)!=null&&B.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
w5o.prototype.handleUpdateFlowCommand=function(B){B.steps&&NDo(this,B.steps);B.entityUpdateCommand&&this.resolveCommand(B.entityUpdateCommand,{});B.flowContinuationCommand&&(B=B.flowContinuationCommand)&&(this.getFlowContinuationCommand=B);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Ig8(this)),this.awaitFlowContinuation=void 0)};
w5o.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var JR8=function(B){return _.X(function(c){return B.getFlowContinuationCommand?c.return(new Promise(function(x){B.awaitFlowContinuation=x;B.getFlowContinuationCommand&&B.resolveCommand(B.getFlowContinuationCommand,{flow_state:B.state})})):c.return(Promise.resolve(void 0))})},Ig8=function(B){var c;
if((c=B.state)!=null&&c.currentStepId)return B.steps[B.state.currentStepId]};var ZR=function(){var B=_.z.apply(this,arguments)||this;B.flowState=new w5o(function(c,x){x=x===void 0?{}:x;_.bA.instance.resolveCommand(c,{form:{form:x,element:B.hostElement}})});
B.initialState=!0;B.isLoading=!1;B.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return B};
_.w(ZR,_.z);_.a=ZR.prototype;_.a.onPopupClosed=function(B){B&&this.hostElement!==B.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.a.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"}}}};
_.a.focus=function(B){var c=this;_.Sr(function(){var x=_.Y9(c.hostElement).querySelector("ytd-flow-step-renderer");(x==null?0:x.topBar)?x.focus(B):c.topBar&&_.ir(c.topBar,B)},1)};
_.a.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.a.computeTopBarHidden=function(B){var c;return!((c=_.t(B,_.QDo))==null||!c.topBarOverride)};
_.a.dataChanged=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1){((c=B.data)==null?0:c.steps)&&NDo(B.flowState,B.data.steps);if((x=B.data)==null?0:x.flowContinuationCommand){var Y=B.flowState,g=B.data.flowContinuationCommand;g&&(Y.getFlowContinuationCommand=g)}return _.K(P,WVl(B.flowState,B.data),2)}B.currentFlowStep=P.yieldResult;_.Kq(P)})};
_.a.flowChanged=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1){if(!B.flow)return x.return();B.flowState.state=B.flow;B.isLoading=!0;return _.K(x,WVl(B.flowState,B.data),2)}c=x.yieldResult;if(!c||B.flow.isLoading)return x.return();B.currentFlowStep=c;B.initialState=!1;B.isLoading=!1;B.autofocusAndRefit();_.Kq(x)})};
_.a.autofocusAndRefit=function(){var B=this,c=_.cp().resolve(_.Bp(_.Xr)),x=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),P=document.querySelector("yt-report-form-confirmation-page-view-model"),Y=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),k=document.querySelector("yt-contributor-zero-state-view-model"),
n=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!x&&c&&c.isKeyBoardInUse()||P||!x&&Y||!x&&g||k||n||b)&&_.Aj(this.hostElement);_.fl(this,function(){_.aJ(B.hostElement,"yt-refit")})};
_.a.handleUpdateFlowCommand=function(B){this.data&&(B=_.t(B,owr),B.targetId===this.data.targetId&&(B.flowContinuationCommand&&(this.data.flowContinuationCommand=B.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(B),this.autofocusAndRefit()))};
_.a.handleFlowNextStepCommand=function(B){this.data&&this.flow&&this.flow.key&&(B=_.t(B,EwB),B.targetId===this.data.targetId&&(B=B.stepId||"",this.ytdReduxBehavior.dispatch(_.Wv("flowStateEntity",this.flow.key,{currentStepId:B,stepIdStack:(this.flow.stepIdStack||[]).concat(B)}))))};
_.a.handleFlowPrevStepCommand=function(B){if(this.data&&this.flow&&this.flow.key&&(B=_.t(B,OSF),B.targetId===this.data.targetId)){var c=[].concat(_.wq(this.flow.stepIdStack||[]));c.length>1?(c.pop(),this.ytdReduxBehavior.dispatch(_.Wv("flowStateEntity",this.flow.key,{currentStepId:c[c.length-1],stepIdStack:c}))):B.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(B.onFirstStepCommand)}};
_.a.handleYpcCancelRecurrenceCommand=function(B){if(this.data&&this.flow&&this.flow.key&&(B=_.t(B,yGy),B.targetId===this.data.targetId&&B.endpointCommand)){var c=_.t(this.flow,GPS);c&&_.t(B.endpointCommand,_.KjQ)&&(_.t(B.endpointCommand,_.KjQ).feedbackData=c.surveyFeedback);this.ytComponentBehavior.resolveCommand(B.endpointCommand)}};
_.a.handlePartialUpdateFlowStateEntity=function(B){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Wv("flowStateEntity",this.flow.key,B,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
ZR.prototype.flowChanged=ZR.prototype.flowChanged;ZR.prototype.dataChanged=ZR.prototype.dataChanged;ZR.prototype.onPopupClosed=ZR.prototype.onPopupClosed;_.L([_.J(_.OU),_.H("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ZR.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ZR.prototype,"initialState",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ZR.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Object)],ZR.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],ZR.prototype,"currentFlowStep",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZR.prototype,"onPopupClosed",null);_.L([_.F({selectorArgs:["data.flowStateEntityKey"],selector:y06}),_.H("design:type",Object)],ZR.prototype,"flow",void 0);_.L([_.jr("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],ZR.prototype,"topBar",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],ZR.prototype,"dataChanged",null);_.L([_.CF("flow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],ZR.prototype,"flowChanged",null);_.L([_.y({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ZR);
_.lgB=_.gX()(ZR,"ytd-flow-root-renderer",function(){if(acy!==void 0)return acy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return acy=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var E6c;var k$=null;_.xU(_.rM(function(B){return _.U("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.U("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.U(_.RF,{text:function(){return B.data().text}}),_.U("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Qf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.rk}});var OaA=_.rM(function(B){var c=B.playerControlsProps;var x=B.isShortsPage;return _.U("yt-bigboard",null,_.U(_.m,{cond:function(){return c().isDragging},
then:function(){return _.U("div",{class:"ytBigboardStoryboardHost"},_.U(_.jUi,{progressBarProps:c,isShortsPage:x}))}}))},"Rf");
OaA.idomCompat=!0;_.HE={ACCOUNT_LABEL:Xb("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Xb("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Xb("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Xb("AD_BADGE_HINT"),AD_BADGE_TEXT:Xb("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Xb("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Xb("AMBIENT_MODE"),AMBIENT_MODE_OFF:Xb("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Xb("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Xb("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Xb("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Xb("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Xb("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Xb("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Xb("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Xb("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Xb("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Xb("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:Xb("AUTO_ZOOM","Auto zoom"),BACK:Xb("BACK"),CANCEL:Xb("CANCEL"),CHANNEL_SWITCHER_LABEL:Xb("CHANNEL_SWITCHER_LABEL"),CLOSE:Xb("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Xb("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:Xb("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:Xb("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Xb("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Xb("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Xb("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Xb("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Xb("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Xb("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Xb("COPIED_TO_CLIPBOARD"),COPY:Xb("COPY"),COPY_DEBUG_INFO:Xb("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Xb("COPY_EMBED_CODE"),
COPY_LINK_LABEL:Xb("COPY_LINK_LABEL"),COPY_VIDEO_URL:Xb("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Xb("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Xb("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Xb("DELETE_FROM_DOWNLOADS"),DIALOG:Xb("DIALOG"),DONE:Xb("DONE"),DOWNLOAD:Xb("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Xb("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Xb("FLAG_CONFIRM"),FLAG_CONTENT:Xb("FLAG_CONTENT"),FLAG_LABEL:Xb("FLAG_LABEL"),FLAG_TITLE:Xb("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Xb("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:Xb("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:Xb("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Xb("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Xb("HIDE_SEARCH_FILTERS_LABEL"),HOME:Xb("HOME","Home"),INVALID_RESPONSE_RECEIVED:Xb("INVALID_RESPONSE_RECEIVED"),LIBRARY:Xb("LIBRARY","Library"),LISTENING:Xb("LISTENING"),LOADING:Xb("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Xb("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Xb("LOOP"),MENU_DESKTOP:Xb("MENU_DESKTOP"),
MENU_EXIT:Xb("MENU_EXIT"),MENU_FEEDBACK:Xb("MENU_FEEDBACK"),MENU_HELP:Xb("MENU_HELP"),MENU_IMPRESSUM:Xb("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Xb("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Xb("MENU_SETTINGS"),MENU_SIGN_IN:Xb("MENU_SIGN_IN"),MENU_TITLE:Xb("MENU_TITLE"),MENU_YOUR_DATA:Xb("MENU_YOUR_DATA"),MORE_INFO:Xb("MORE_INFO"),MORE_OPTIONS:Xb("MORE_OPTIONS"),MUTE_VOLUME:Xb("MUTE_VOLUME"),NEW_PLAYLIST:Xb("NEW_PLAYLIST"),NEXT_VIDEO:Xb("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Xb("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:Xb("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:Xb("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Xb("NOT_FOUND_TITLE"),NO_DOWNLOADS:Xb("NO_DOWNLOADS"),NO_MIC_INPUT:Xb("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Xb("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Xb("OOPS_MESSAGE"),OPEN_APP:Xb("OPEN_APP"),OPEN_YOUTUBE:Xb("OPEN_YOUTUBE"),PAUSE:Xb("PAUSE"),PLAY:Xb("PLAY"),PLAYER_CAPTION:Xb("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Xb("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Xb("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Xb("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Xb("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Xb("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Xb("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Xb("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Xb("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Xb("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Xb("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Xb("PLAYER_MINIMIZE"),PLAYER_NEXT:Xb("PLAYER_NEXT"),PLAYER_PAUSE:Xb("PLAYER_PAUSE"),PLAYER_PLAY:Xb("PLAYER_PLAY"),
PLAYER_PREVIOUS:Xb("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Xb("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Xb("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Xb("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Xb("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Xb("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Xb("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Xb("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Xb("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Xb("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Xb("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Xb("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Xb("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Xb("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Xb("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Xb("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Xb("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Xb("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Xb("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Xb("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Xb("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Xb("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Xb("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Xb("PLAY_ALL"),PLEASE_FIX_ERRORS:Xb("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:Xb("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:Xb("PREVIOUS_VIDEO"),PRIVACY_POLICY:Xb("PRIVACY_POLICY"),RELOAD:Xb("RELOAD"),REQUIRED_LABEL:Xb("REQUIRED_LABEL"),SAVE_PLAYLIST:Xb("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Xb("SCRUB_SLIDE_USER_EDU"),SEARCH:Xb("SEARCH","Search"),
SEARCH_APPEND_LABEL:Xb("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Xb("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:Xb("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Xb("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Xb("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Xb("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Xb("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Xb("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:Xb("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Xb("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Xb("SEEK_SLIDER"),SETTINGS_LABEL:Xb("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Xb("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Xb("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Xb("SHOW_LESS"),SHOW_MORE:Xb("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Xb("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Xb("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Xb("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Xb("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:Xb("SIGN_IN_ON_WEB"),STABLE_VOLUME:Xb("STABLE_VOLUME"),STABLE_VOLUME_OFF:Xb("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Xb("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Xb("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Xb("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Xb("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Xb("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:Xb("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:Xb("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Xb("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Xb("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Xb("TIMESTAMP_SECONDS"),TOGGLE_OFF:Xb("TOGGLE_OFF"),TOGGLE_ON:Xb("TOGGLE_ON"),TRENDING:Xb("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Xb("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Xb("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Xb("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Xb("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Xb("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Xb("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Xb("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Xb("VIDEO_LINK_LABEL")};var o6F=_.rM(function(B){var c=B.playerApi;B=_.Ho("button",function(P){_.zT(P,36843)});
var x=Xb("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.U("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.U("button",{el:B,class:"ytPlayerControlsJumpForwardButtonButton",title:x,"aria-label":x,"on:click":_.qe(function(){_.S8(36843);c&&c().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.U("span",null,_.U(_.Vf,{icon:"FAST_FORWARD"}))))},"Sf");var QtB=_.rM(function(B){var c=B.appApi;B=_.Ho("button",function(P){_.zT(P,62946)});
var x=Xb("OPEN_IN_MINIPLAYER");return _.U("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.U("button",{el:B,class:"ytMiniplayerButtonButton",title:x,"aria-label":x,"on:click":_.qe(function(){_.S8(62946);var P,Y;(Y=(P=c()).openInMiniplayer)==null||Y.call(P);return!1})},_.U(_.Vf,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Tf");var FVi=_.rM(function(B){var c=B.playerApi;B=_.Ho("button",function(g){_.zT(g,142812)});
var x=_.p(_.$D(!1,void 0,"I3VCyb")),P=x.next().value,Y=x.next().value;x=function(){return Xb("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(P()?1:2)})};
return _.U("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.U("button",{el:B,class:"ytPlaybackSpeedButtonButton",title:x,"aria-label":x,"on:click":_.qe(function(){_.S8(142812);if(c){var g=c(),k=P();g.setPlaybackRate(k?1:2);Y(!P())}return!1})},_.U("span",null,_.U(_.Vf,{icon:function(){return P()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Uf");var v6o=_.rM(function(B){var c=B.title;var x=B.ariaLabel;var P=B.icon;var Y=B.command;var g=B.veType;B=_.Ho("button",function(k){g&&_.zT(k,g())});
return _.U("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.U("button",{el:B,class:"ytdThumbnailOverlayButtonButton",title:c,"aria-label":x,"on:click":_.qe(function(){g&&_.S8(g());Y&&_.cp().resolve(_.xu).resolveCommand(Y())})},_.U(_.Vf,{icon:P})))},"Vf");var cE="";var z2S=_.rM(function(B){var c=B.playerControlsProps,x=B.onClickFn;B=_.db(function(){var g=c(),k=-1;g.captionsAvailable&&(k=g.captionsEnabled?1:0);return k},void 0,"WecR8e");
var P=_.db(function(){var g=c();return g.captionsAvailable?_.Up(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Up("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),Y=_.db(function(){var g=c();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"Q17ly");
return _.U("yt-closed-captions-toggle-button",null,_.U(_.pFc,{captionIconType:B,ariaLabel:P,ariaPressed:Y,onClick:function(g){var k=c();if(k.captionsAvailable){var n=k.playerApi;if(n){var b=k.playerApi;if(b){var d=cE;if(d){b=b.getOption("captions","track");var q;cE=(q=b?b.displayName:null)!=null?q:d}else _.vS(b)?(d=_.LYI(b),cE=d.length?(q=GEz(d))?q.displayName:d[0].displayName:""):cE=""}Mxo(n);_.T("mweb_disable_set_state_captions_killswitch")&&k.setState({captionsEnabled:!k.captionsEnabled})}}var C,
h;(h=(C=k.appApi).showCaptionsToggleToast)==null||h.call(C,k);x==null||x(g)},
isOverlay:!0}))},"Wf");var Sss=_.rM(function(B){var c=B.data;return _.U("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.U(_.Ef,{data:function(){return{type:16,text:_.dtA(c().label)}}}))},"Xf");var yR8=_.rM(function(B){var c=_.Kw("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return B.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return B.size()==="small"?B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.U("animated-seek-arrows",{class:_.Kw("ytPlayerControlsAnimatedSeekArrowsHost")},_.U("span",{class:c}),_.U("span",{class:c}),_.U("span",{class:c}))},"Yf");
yR8.idomCompat=!0;var Gus=_.rM(function(){var B=_.Up("PLAYER_SECONDS",{seconds_placeholder:"30"}),c=_.p(_.$D(!1,void 0,"Yj8msb")),x=c.next().value,P=c.next().value,Y=_.p(_.$D(!1,void 0,"r9Z50e"));c=Y.next().value;var g=Y.next().value;Y={};var k=_.Kw("jumpForwardOverlayOverlay",(Y.jumpForwardOverlayOverlayHidden=c,Y));_.lk(function(){var n=null,b=null,d=function(){n!==null&&_.EB().cancelJob(n);b!==null&&_.EB().cancelJob(b);g(!0);P(!0);_.s9(_.EB(),function(){g(!1)});
n=_.s9(_.EB(),function(){g(!0);b=_.s9(_.EB(),function(){P(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",d);_.lP(function(){window.removeEventListener("jump-forward-clicked",d)})});
return _.U("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.U(_.m,{cond:x,then:function(){return _.U("div",{class:k},_.U(yR8,{direction:1,size:"large"}),_.U("div",null,B))}}))},"Zf");var MIz=_.HE.MUTE_VOLUME,LV6=_.HE.UNMUTE_VOLUME,Zal=_.rM(function(B){var c=B.muteIconType;var x=B.onClick;var P=B.useOutlineIcon;var Y=B.useDelhiIcons;B=_.Ho("button",function(n){_.zT(n,28662)});
var g=function(){var n=c(),b=P==null?void 0:P(),d=Y==null?void 0:Y(),q="",C="";switch(n){case -1:case 0:q=b?"VOLUME_OFF":d?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";C=LV6;break;case 1:q=b?"VOLUME_UP_OUTLINE":d?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";C=MIz;break;case 2:q=b?"VOLUME_DOWN_OUTLINE":d?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";C=MIz;break;default:_.kz(n)}return{iconName:q,ariaLabel:C}},k=function(){return g().ariaLabel};
return _.U("ytm-mute-button",{class:"ytmMuteButtonHost"},_.U("button",{el:B,class:"ytmMuteButtonButton",title:k,"aria-label":k,"on:click":_.qe(function(n){_.S8(28662);x==null||x(n);return!1})},_.U("span",null,_.U(_.Vf,{icon:function(){return g().iconName}}))))},"$f");var Haz=_.rM(function(B){var c=B.volumeProps;var x=B.onClickFn;var P=B.useOutlineIcon;var Y=B.useDelhiIcons;return _.U("yt-mute-toggle-button",null,_.U(Zal,{muteIconType:function(){var g=c();return g.volumeMuted||g.volume===0?0:g.volume>50?1:2},
onClick:function(g){var k=c().playerApi;k&&(k.isMuted()?k.unMute():k.mute(!1));x==null||x(g)},
useOutlineIcon:function(){return!(P==null||!P())},
useDelhiIcons:function(){return!(Y==null||!Y())}}))},"ag");
Haz.idomCompat=!0;var fgs=_.rM(function(B){var c=B.data;var x=_.Ho("ytm-paid-content-overlay-renderer");return _.U("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:x,"on:animationend":_.qe(function(){x.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.U(_.$J,{command:function(){return c().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.U(_.m,{cond:function(){var P;return(P=c().icon)==null?void 0:P.iconType},
then:function(){return _.U("span",null,_.U(_.Vf,{icon:function(){var P;return(P=c().icon)==null?void 0:P.iconType}}))}}),_.U("div",{class:"ytmPaidContentOverlayText"},_.U(_.RF,{text:function(){return c().text}})),_.U(_.m,{cond:function(){return c().navigationEndpoint},
then:function(){return _.U(_.Vf,{icon:"CHEVRON_RIGHT"})}})))},"bg");
fgs.idomCompat=!0;var kPl=[].concat(_.wq([{register:function(B){var c=CWc(B),x;(x=B().playerApi)==null||x.addEventListener("onVolumeChange",c);return function(){}}},
{register:function(B){var c=hEo(B);B=B().playerApi;B==null||B.addEventListener("captionschanged",c);B==null||B.addEventListener("captionssettingschanged",c);B==null||B.addEventListener("onCaptionsTrackListChanged",c);return function(){}}},
{register:function(B){if(!_.T("mweb_screenreader_accessible_player"))return function(){};
var c=mH8(B),x=document.querySelector("video");x==null||x.addEventListener("touchend",c);return function(){x==null||x.removeEventListener("touchend",c)}}},
{register:function(B){if(!_.T("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var c=mH8(B),x=document.querySelector("video");x==null||x.addEventListener("focus",c);return function(){x==null||x.removeEventListener("focus",c)}}}]),[{register:function(B){var c=jDz(B),x;
(x=B().playerApi)==null||x.addEventListener("onStateChange",c);return function(){}}},
{register:function(B){var c=UHS(B),x;(x=B().playerApi)==null||x.addEventListener("onPlaybackRateChange",c);return function(){}}},
{register:function(B){var c=dHr(B),x;(x=B().playerApi)==null||x.addEventListener("onVideoDataChange",c);return function(){}}},
{register:function(B){var c=qqs(B),x,P;(x=B())==null||(P=x.playerApi)==null||P.addEventListener("onVideoProgress",c);return function(){}}}]);var ial=_.rM(function(B){var c=B.data;var x=function(){return _.Up("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+c().playbackRate})};
return _.U(_.m,{cond:function(){return c().playbackRate&&c().playbackRate!==1},
then:function(){return _.U("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.U("div",{class:"ytPlaybackRateOverlayOverlay"},_.U(yR8,{direction:1,size:"small"}),_.U("div",{class:"ytPlaybackRateOverlayLabel"},x)))}})},"cg");var ARS=_.rM(function(B){var c=B.data;return _.U("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.U(_.m,{cond:function(){var x,P=(x=c())==null?void 0:x.playerResponse,Y;return P==null?void 0:(Y=P.paidContentOverlay)==null?void 0:Y.paidContentOverlayRenderer},
then:function(x){return _.U(fgs,{data:x})}}))},"eg"),uPl=_.rM(function(B){var c=B.props;
var x=B.data;var P=B.options;var Y=function(){var d,q,C,h;return(d=x())==null?void 0:(q=d.playerResponse)==null?void 0:(C=q.playerConfig)==null?void 0:(h=C.inlinePlaybackConfig)==null?void 0:h.showAudioControls},g=function(){var d,q;
if(Y()&&((d=P())==null?void 0:(q=d.additionalButton)==null?void 0:q.button)!==void 0){var C,h,V;d=(C=x())==null?void 0:(h=C.playerApi)==null?void 0:(V=h.getSize())==null?void 0:V.height;if(!(d===void 0||d<180)){var N,l;return(N=P())==null?void 0:(l=N.additionalButton)==null?void 0:l.button}}},k=function(){var d,q;
return(d=P())==null?void 0:(q=d.additionalButton)==null?void 0:q.thumbnailOverlayButtonRenderers},n=function(){var d,q;
return(d=P())==null?void 0:(q=d.additionalButton)==null?void 0:q.thumbnailOverlayButtonViewModels},b=function(){var d=[_.U(Haz,{volumeProps:c}),
_.U(z2S,{playerControlsProps:c})];g()===1&&d.push(_.U(o6F,{playerApi:function(){return c().playerApi}}));
g()===2&&d.push(_.U(QtB,{appApi:function(){return c().appApi}}));
g()===3&&d.push(_.U(FVi,{playerApi:function(){return c().playerApi}}));
var q=k();if(g()===4&&q){q=_.p(q);for(var C=q.next(),h={};!C.done;h={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},C=q.next()){C=C.value;h.tooltip$jscomp$2=C.tooltip;var V=void 0,N=void 0;h.ariaLabel$jscomp$20=((V=C.accessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label)||h.tooltip$jscomp$2;V=void 0;h.icon$jscomp$52=(V=C.icon)==null?void 0:V.iconType;h.command$jscomp$569=C.command;h.tooltip$jscomp$2&&h.ariaLabel$jscomp$20&&h.icon$jscomp$52&&
d.push(_.U(v6o,{title:function(l){return function(){return l.tooltip$jscomp$2}}(h),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$20}}(h),
icon:function(l){return function(){return l.icon$jscomp$52}}(h),
command:function(l){return function(){return l.command$jscomp$569}}(h)}))}}q=n();
if(g()===4&&q)for(q=_.p(q),C=q.next(),h={};!C.done;h={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},C=q.next())C=C.value,h.tooltip$jscomp$3=C.title,h.ariaLabel$jscomp$21=C.accessibilityText||h.tooltip$jscomp$3,h.icon$jscomp$53=C.iconName,h.command$jscomp$570=_.vH(C.onTap),h.tooltip$jscomp$3&&h.ariaLabel$jscomp$21&&h.icon$jscomp$53&&d.push(_.U(v6o,{title:function(l){return function(){return l.tooltip$jscomp$3}}(h),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$21}}(h),
icon:function(l){return function(){return l.icon$jscomp$53}}(h),
command:function(l){return function(){return l.command$jscomp$570}}(h)}));
return d};
return _.U(_.m,{cond:Y,then:function(){return _.U("div",{class:"ytInlinePlayerControlsTopRightControls"},_.U(_.mV,{each:b},function(d){return _.U("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.U("div",{class:"ytInlinePlayerControlsButtonIcon"},d))}))}})},"fg"),R2F=_.rM(function(B){var c=B.props;
var x=B.data;var P=B.options;B={};B=_.Kw("ytInlinePlayerControlsBottomRightControls",(B.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Y;return V$r(x(),P())&&((Y=P())==null?void 0:Y.insetProgressBar)&&(c().isHovering||c().isDragging)},B));
return _.U("div",{class:B},_.U(DRs,{data:x}),_.U(_.m,{cond:function(){var Y;return!((Y=P())==null?0:Y.hideTimeDisplay)},
then:function(){return _.U(rRc,{props:c,data:x})}}))},"gg"),DRs=_.rM(function(B){var c=B.data;
return _.U(_.IF,{data:function(){var x;return gwi((x=c())==null?void 0:x.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Sss})},"hg"),rRc=_.rM(function(B){var c=B.props;
var x=B.data;return _.U(_.m,{cond:function(){return c().isLive},
then:function(){return _.U(e2z,null)},
else:function(){return _.U(Br6,{props:c,data:x})}})},"ig"),Br6=_.rM(function(B){var c=B.props;
var x=B.data;var P=_.db(function(){var Y;return phA((Y=x())==null?void 0:Y.thumbnailOverlays)},void 0,"kUmuA");
return _.U("div",{class:_.Kw("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.HE.PLAYER_TIME_ELAPSED+" "+_.SuX(c().playedTime)}},_.U(_.Ef,{data:function(){var Y=_.SuX(c().videoDuration-c().playedTime);
return Object.assign({},{type:16,text:Y},P())}}))},"jg"),e2z=_.rM(function(){var B=_.Kw("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.U("div",{class:B},_.U(_.Ef,{data:{type:17,text:_.HE.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"kg"),cKS=_.rM(function(B){var c=B.props;
var x=B.data;var P=B.options;return _.U(_.m2N,{progressBarProps:c,config:function(){var Y,g=_.t((Y=x())==null?void 0:Y.multiMarkersPlayerBar,_.y39),k;Y=((k=P())==null?0:k.insetProgressBar)?2:1;var n;k=(n=P())==null?void 0:n.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Y,chapterData:g,isInlinePlayback:!0,doSeekOnClick:k,playheadDotBehavior:k?1:0}}})},"lg");_.xU(_.rM(function(B){var c=B.data;var x=B.appApi;var P=B.options;var Y=Kyl(c,Tfy(x));B={};x={};return _.U("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.U("div",{class:_.Kw("ytInlinePlayerControlsDarkenedOverlay",(B.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Y().isHovering},B))}),_.U(Gus,null),_.U(ial,{data:Y}),_.U(ARS,{data:c}),_.U(OaA,{playerControlsProps:Y,
isShortsPage:!1}),_.U("div",{class:_.Kw((x.ytInlinePlayerControlsControlsHidden=function(){return Y().isDragging},x))},_.U(uPl,{props:Y,
data:c,options:P}),_.U(R2F,{props:Y,data:c,options:P})),_.U(_.m,{cond:function(){return V$r(c(),P())},
then:function(){return _.U(cKS,{props:Y,data:c,options:P})}}))},"dg"),"yt-inline-player-controls",{props:{data:_.rk,
appApi:_.cw,options:_.rk}});var fv=function(){var B=_.z.apply(this,arguments)||this;B.opts=null;B.playerControlsData=null;B.playerControlsAppApi={openInMiniplayer:function(){B.openInMiniplayer()}};
B.playerControlsOptions={};B.noAnimation=!1;B.playbackIntentTriggered=!1;B.positionData=null;B.hidden=!0;B.active=!1;B.playing=!1;B.videoPreviewDataIndex=0;B.JSC$16979_playerPromise=null;B.player=null;B.enableAudioControls=!1;B.hasBeenUnmuted=!1;B.captionsHaveBeenTurnedOff=!1;B.JSC$16979_playerEvents=new Map;B.videoPreviewFetchRequest=null;B.scheduledPreviewEndJobId=null;B.JSC$16979_preventProgressSaveTimer=null;B.watchEndpointStartTimeUpdaterInterval=null;B.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};B.windowOnBlurFn=function(){B.deactivate()};
return B};
_.w(fv,_.z);_.a=fv.prototype;
_.a.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.T("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.a.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16979_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16979_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16979_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16979_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.$9(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.$9(this,this.onScroll))};
_.a.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.$9(this,this.onScroll))};
_.a.onPageTypeChange=function(){this.deactivate()};
_.a.onWindowResized=function(){this.deactivate()};
_.a.onCaptionsChanged=function(B){B=!!B.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!B);this.setCaptionSize()};
_.a.setCaptionSize=function(){var B;if(this.active&&!this.captionsHaveBeenTurnedOff&&((B=this.player)==null?0:B.getCaptionWindowContainerId())){var c;(c=this.player)==null||c.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.a.currentPageAllowed=function(){return!this.isWatchPage};
_.a.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var B=this.positionData,c=B.initialTopPosition,x=B.initialHorizontalPosition;_.k9(this.hostElement,{"--ytd-video-preview-translate-left":B.finalHorizontalPosition-x+"px","--ytd-video-preview-translate-top":B.finalTopPosition-c+"px","--ytd-video-preview-original-top-position":c+"px","--ytd-video-preview-original-horizontal-position":x+"px",
"--ytd-video-preview-initial-scale":"scale("+B.initialScale+")","--ytd-video-preview-width":B.videoPreviewWidth+"px","--ytd-video-preview-height":B.videoPreviewHeight+"px"});return!0};
_.a.handleOpenVideoPreviewAction=function(B){var c=this,x;return _.X(function(P){if(!c.currentPageAllowed())return P.return(0);c.opts=B;return(x=c.alignVideoPreviewForAnimation(B.thumbnail))?P.return(c.activate()):P.return(0)})};
_.a.onMouseLeave=function(B){this.shouldDeactivateOnMouseLeave(B)&&this.deactivate()};
_.a.onScroll=function(){var B,c;((B=this.opts)==null?0:B.isAutoplay)&&((c=this.opts)==null?0:c.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.a.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.EE.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.a.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.a.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",fv.JSC$16978_DEFAULT_CLICK_LOCATION_BEHAVIOR,fv.JSC$16978_CLICK_LOCATION_ID_MAP)};
_.a.shouldDeactivateOnMouseLeave=function(B){B=B.relatedTarget;if(!B)return!0;var c;return(c=this.opts)!=null&&c.mediaRenderer?!_.aB(this.opts.mediaRenderer).contains(B):!0};
_.a.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.a.onPlaybackStart=function(){var B=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$16979_preventProgressSaveTimer=
_.s9(_.EE,function(){B.resetPreventProgressSaveTimer()},1E4);
var c;if((c=this.opts)==null?0:c.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.s9(_.EE,function(){B.hasMultipleVideoPreviews()?B.startPlaybackForNextVideo():B.deactivate()},this.opts.videoPreviewDurationMs);
var x;this.player.setGlobalCrop(((x=this.opts)==null?0:x.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.a.getRoundedCornersSize=function(){var B;if((B=this.opts)==null?0:B.roundedCornersSize){var c;return(c=this.opts)==null?void 0:c.roundedCornersSize}var x;if((x=this.opts)==null?0:x.enableRounding){var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="small")return 1;var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.T("web_imp_inset_progress_bar")?3:0};
_.a.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.a.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.a.onMediaContainerClick=function(B){this.isShortcutClick(B)||(this.navigateToWatch(B),B.preventDefault(),B.stopPropagation())};
_.a.activate=function(){var B=this,c,x,P,Y,g,k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:if(!B.currentPageAllowed())return q.return(0);x=(c=B.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint;P=_.Me.instance;if(!x||!P)return q.return(0);B.playbackIntentTriggered=!0;((Y=B.opts)==null?0:Y.mediaRenderer)&&((g=B.opts)==null||!g.isAutoplay)&&Yqr(B.opts.mediaRenderer,function(){B.deactivate()});
_.fl(B,function(){B.revealPreviewUi()});
k={};_.T("enable_unknown_lact_fix_on_html5")&&(_.cp().resolve(_.lv),k.lact=_.co());B.videoPreviewFetchRequest=RO8(P,B.getInlinePlaybackRequestData(B.videoPreviewData),k);_.kM(q,2);return _.K(q,B.videoPreviewFetchRequest,4);case 4:n=q.yieldResult;if(((b=n)==null?void 0:(d=b.playabilityStatus)==null?void 0:d.status)==="OK")return q.return(B.handlePlayerResponse(n));throw Error("Mj");case 2:_.be(q),B.deactivate();case 3:return q.return(1)}})};
_.a.getInlinePlaybackRequestData=function(B){var c,x=_.T("web_imp_player_mute_params")?((c=this.opts)==null?void 0:c.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:B.inlinePlaybackEndpoint,startPlaybackInMutedState:x}};
_.a.handlePlayerResponse=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C;return _.X(function(h){if(h.nextAddress==1){x=c.getInlinePlaybackVideoId();if(!(((P=B)==null?0:(Y=P.videoDetails)==null?0:Y.videoId)&&c.currentPageAllowed()&&c.playbackIntentTriggered&&c.opts&&x))return c.deactivate(),h.return(0);if(B.videoDetails.videoId!==x)return h.return(0);c.enableAudioControls=!!((g=B.playerConfig)==null?0:(k=g.inlinePlaybackConfig)==null?0:k.showAudioControls);B.trackingParams=c.getInlinePlaybackTrackingParams();
if(!c.inlinePlayer)return h.return(0);n={};if(d=_.t((b=c.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.fN))n.watch_endpoint=d;if(c.videoPreviewData){var V,N=(V=_.t(c.videoPreviewData.inlinePlaybackEndpoint,_.fN))==null?void 0:V.startTimeSeconds;N!==void 0&&(B.playerConfig||(B.playerConfig={}),B.playerConfig.playbackStartConfig||(B.playerConfig.playbackStartConfig={}),B.playerConfig.playbackStartConfig.startPosition||(B.playerConfig.playbackStartConfig.startPosition={}),B.playerConfig.playbackStartConfig.startSeconds=
N,B.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(N*1E3))}c.inlinePlayer.loadVideoWithPlayerResponse(B,n);if(c.JSC$16979_playerPromise)return h.jumpTo(2);c.JSC$16979_playerPromise=c.inlinePlayer.getPlayerPromise();return _.K(h,c.JSC$16979_playerPromise,3)}h.nextAddress!=2&&(q=h.yieldResult,q.setInlinePreview(!0),q.setSizeStyle(!1,!0),c.ytPlayerListenerBehavior.listenToPlayerEvents(q,c.JSC$16979_playerEvents),c.player=q,_.aJ(c.hostElement,"player-api-ready"));((C=c.opts)==
null?0:C.showPlayerControls)&&c.videoPreviewData&&c.player&&(c.playerControlsData={playerResponse:B,isInlinePlayback:!0,thumbnailOverlays:c.videoPreviewData.thumbnailOverlays,playerApi:c.player},c.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!c.unroundCornersForPlayback,additionalButton:c.getAdditionalButtonType(c.videoPreviewData.thumbnailOverlays)});return h.return(2)})};
_.a.revealPreviewUi=function(){var B=this;this.playbackIntentTriggered&&_.NcQ(this,function(){B.hasThumbnailPositionChangedSinceTriggered()||(B.updateActiveState(!0),B.noAnimation=!1)})};
_.a.hasThumbnailPositionChangedSinceTriggered=function(){var B=this.positionData,c=this.getThumbnailPositionData();return(B==null?void 0:B.initialTopPosition)!==(c==null?void 0:c.initialTopPosition)||(B==null?void 0:B.initialHorizontalPosition)!==(c==null?void 0:c.initialHorizontalPosition)};
_.a.getThumbnailPositionData=function(){var B,c;if((c=this.opts)==null||!c.thumbnail)return null;c=this.opts.thumbnail;var x=((B=this.opts)==null?0:B.cropPlayerToFillThumbnailHorizontally)?!1:!0;var P=c.getBoundingClientRect();B=P.width;c=P.height;var Y=P.top+window.scrollY;P=P.left+window.scrollX;var g=x?Math.ceil(B):B;x=x?Math.ceil(c):c;var k=B/g;B={initialScale:k,initialTopPosition:Y-12*k,finalTopPosition:Y-12-(x-c)/2,initialHorizontalPosition:P-(12+(g-B)/2),finalHorizontalPosition:P-12-(g-B)/
2,videoPreviewWidth:g,videoPreviewHeight:x};return B};
_.a.updateActiveState=function(B){this.active=B;this.ytdReduxBehavior.dispatch(_.YN({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:B}))};
_.a.stopPlayer=function(B){B=B.resetWatchEndpointStartTime===void 0?!1:B.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(B)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.EE.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.a.deactivate=function(B){B=B===void 0?{}:B;B=B.resetWatchEndpointStartTime===void 0?!1:B.resetWatchEndpointStartTime;k$&&(k$.disconnect(),k$=null);this.stopPlayer({resetWatchEndpointStartTime:B});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.a.isValidThumbnailOverlayButton=function(B,c){B=B.thumbnailOverlayButtonRenderer;var x;return!!B&&!!B.tooltip&&!((x=B.icon)==null||!x.iconType)&&c.includes(B.icon.iconType)};
_.a.isValidThumbnailOverlayButtonViewModel=function(B,c){var x;B=_.t((x=B.thumbnailOverlayButtonViewModel)==null?void 0:x.overlayButton,_.Tj);return!!B&&!!B.title&&!!B.iconName&&c.includes(B.iconName)};
_.a.getAdditionalButtonType=function(B){var c=this;if(_.T("web_imp_fastforward_button"))return{button:1};if(_.T("web_imp_miniplayer_button"))return{button:2};if(_.T("web_imp_playback_speed_button"))return{button:3};var x=["BOX_STACK_3"],P=(B||[]).filter(function(g){return c.isValidThumbnailOverlayButton(g,x)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(P.length)return{button:4,thumbnailOverlayButtonRenderers:P};var Y=["BOX_STACK_3"];B=(B||[]).filter(function(g){return c.isValidThumbnailOverlayButtonViewModel(g,Y)}).map(function(g){return _.t(g.thumbnailOverlayButtonViewModel.overlayButton,_.Tj)});
if(B.length)return{button:4,thumbnailOverlayButtonViewModels:B}};
_.a.allowCaptions=function(){var B;return!((B=this.opts)==null?0:B.forceCaptionsOff)};
_.a.allowUnmuting=function(){var B;return this.enableAudioControls&&!((B=this.opts)==null?0:B.forceMutedVolume)};
_.a.beginStartTimeUpdater=function(){var B=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ku(function(){B.updateWatchEndpointStartTime()},1E3)};
_.a.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.a.resetPreventProgressSaveTimer=function(){this.JSC$16979_preventProgressSaveTimer!==null&&(_.EE.cancelJob(this.JSC$16979_preventProgressSaveTimer),this.JSC$16979_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.a.updateWatchEndpointStartTime=function(B){var c=this.videoPreviewData;if(this.player&&c!=null&&c.inlinePlaybackEndpoint&&!this.JSC$16979_preventProgressSaveTimer){B=B?0:Math.floor(this.player.getCurrentTime());var x=_.t(c.navigationEndpoint,_.fN);x&&(x.startTimeSeconds=B);if(c=_.t(c.inlinePlaybackEndpoint,_.fN))c.startTimeSeconds=B}};
_.a.isShortcutClick=function(B){return!!B&&(B.ctrlKey||B.shiftKey||B.metaKey)};
_.a.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.a.openInMiniplayer=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1){x=(c=B.videoPreviewData)==null?void 0:c.navigationEndpoint;if(!x)return P.return();_.dd().lockupActivation=!0;return _.K(P,_.ySd(_.cp().resolve(_.Ge),x),2)}_.dd().userActivation=!0;_.Kq(P)})};
_.a.navigateToWatch=function(B){var c,x=(c=this.videoPreviewData)==null?void 0:c.navigationEndpoint;if(x){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(x,B,!0);else{if(_.T("web_thumbnail_to_watch_transition")){var P,Y;(P=this.opts)==null||(Y=P.onNavigateToWatchCallback)==null||Y.call(P)}_.aJ(this.hostElement,"yt-navigate",{endpoint:x})}this.deactivate()}};
_.a.getInlinePlaybackVideoId=function(){var B,c;return(c=_.t((B=this.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint,_.fN))==null?void 0:c.videoId};
_.a.getInlinePlaybackTrackingParams=function(){var B,c;return(B=this.videoPreviewData)==null?void 0:(c=B.inlinePlaybackEndpoint)==null?void 0:c.clickTrackingParams};
_.a.hasMultipleVideoPreviews=function(){var B;return!!(((B=this.opts)==null?0:B.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.a.startPlaybackForNextVideo=function(){var B;(B=this.opts)!=null&&B.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())};
_.AJ.Object.defineProperties(fv.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.opts)==null?0:B.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.opts)==null||!B.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 B;if(Array.isArray((B=this.opts)==null?void 0:B.videoPreviewData)){var c;return(c=this.opts)==null?void 0:c.videoPreviewData[this.videoPreviewDataIndex]}var x;return(x=this.opts)==null?void 0:x.videoPreviewData}}});
fv.prototype.onIsAdsVideoChange=fv.prototype.onIsAdsVideoChange;fv.prototype.onInlinePreviewIsEnabledChange=fv.prototype.onInlinePreviewIsEnabledChange;fv.prototype.optsChanged=fv.prototype.optsChanged;fv.prototype.onMouseLeave=fv.prototype.onMouseLeave;fv.JSC$16978_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);fv.JSC$16978_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"}];
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],fv.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],fv.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fv.prototype,"componentBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],fv.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.eM.YtSparklesClickLocationBehavior),_.H("design:type",Object)],fv.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fv.prototype,"opts",void 0);_.L([_.F(),_.H("design:type",Object)],fv.prototype,"playerControlsData",void 0);
_.L([_.F(),_.H("design:type",Object)],fv.prototype,"playerControlsAppApi",void 0);_.L([_.F(),_.H("design:type",Object)],fv.prototype,"playerControlsOptions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"noAnimation",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"active",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"playing",void 0);_.L([_.F({selector:_.p7I}),_.H("design:type",Boolean)],fv.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.F(),_.H("design:type",String)],fv.prototype,"pagePath",void 0);_.L([_.F({selector:_.Ov}),_.H("design:type",Boolean)],fv.prototype,"isWatchPage",void 0);_.L([_.Q("videoPreviewData"),_.H("design:type",Object),_.H("design:paramtypes",[])],fv.prototype,"thumbnailData",null);
_.L([_.Q("opts","active"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"hidePlayerControls",null);_.L([_.Q("opts"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"isAdsVideo",null);_.L([_.Q("opts"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"roundedCornersSmall",null);
_.L([_.Q("opts"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"roundedCornersMedium",null);_.L([_.Q("opts"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"roundedCornersLarge",null);_.L([_.Q("opts"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fv.prototype,"unroundCornersForPlayback",null);
_.L([_.Q("opts","videoPreviewDataIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],fv.prototype,"videoPreviewData",null);_.L([_.F(),_.H("design:type",Object)],fv.prototype,"videoPreviewDataIndex",void 0);_.L([_.jr("#inline-player"),_.H("design:type",Object)],fv.prototype,"inlinePlayer",void 0);_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],fv.prototype,"onMouseLeave",null);
_.L([_.CF("opts"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"optsChanged",null);_.L([_.CF("inlinePreviewIsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onInlinePreviewIsEnabledChange",null);_.L([_.bF("isAdsVideo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onIsAdsVideoChange",null);
_.L([_.y({is:"ytd-video-preview",disableElementRegistration:!0})],fv);
_.G(fv,"ytd-video-preview",function(){if(E6c!==void 0)return E6c;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return E6c=B},{mode:2});
}catch(e){_._DumpException(e)}
try{
var uYz,DSN,ryy;uYz=function(B){return _.T("kevlar_watch_cinematics_invisible")||B.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_fullscreen")||B.theater&&!B.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_theater")};
DSN=function(){var B=document.createElement("canvas"),c=B.getContext("2d");if(!c)throw Error("Zl");_.F$(B,{position:"absolute",width:"100%",height:"100%"});return{element:B,context:c}};
ryy=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.T("kevlar_watch_cinematics_css_blur")};
_.RCi=function(B,c,x){return Math.abs(B-c)<=(x||1E-6)};
_.eCi=function(B,c){return B==c?!0:B&&c?B.width==c.width&&B.height==c.height:!1};_.BIr=new _.A("notificationActionRenderer");var cQ6=function(B){var c=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.kH;this.element.addEventListener("load",function(){c.loaded=!0;c.resolver.resolve(c.element)});
this.element.addEventListener("error",function(){c.failed=!0});
this.element.src=B};var xtS=function(B,c){this.image=B;this.frame=c};
xtS.prototype.drawToCanvas=function(B,c){var x=this.frame.width/this.frame.columns,P=this.frame.height/this.frame.rows,Y=c.offsetX,g=c.offsetY;uYz(c)?(B.fillStyle=c.fullscreen?"#000":"#0f0f0f",B.fillRect(Y,g,(c==null?void 0:c.width)||x,(c==null?void 0:c.height)||P)):B.drawImage(this.image,this.frame.column*x,this.frame.row*P,x,P,Y,g,(c==null?void 0:c.width)||x,(c==null?void 0:c.height)||P)};
var Pwz=function(B){this.color=B};
Pwz.prototype.drawToCanvas=function(B,c){var x=c.offsetX,P=c.offsetY,Y=c.width,g=c.height;B.fillStyle=uYz(c)?c.fullscreen?"#000":"#0f0f0f":this.color;B.fillRect(x,P,Y,g)};var BY=function(B,c){_.rs.call(this);this.playerApi=c;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.nH(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();YWy(this,B);aoi(this);this.update()};
_.w(BY,_.rs);BY.prototype.addEventListeners=function(){var B=this,c=function(){B.update()},x=function(Y){B.paused||(Y.type==="newdata"&&(B.mosaics.clear(),gKA(B),cY(B)),aoi(B),B.update())},P=function(){B.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",c);this.playerApi.addEventListener("onVideoDataChange",x);this.playerApi.addEventListener("onStateChange",P);this.addOnDisposeCallback(function(){B.playerApi.removeEventListener("onVideoProgress",c);B.playerApi.removeEventListener("onVideoDataChange",x);B.playerApi.removeEventListener("onStateChange",P)})};
var YWy=function(B,c){B.cinematicContainerRenderer!==c&&(B.cinematicContainerRenderer=c,gKA(B),cY(B),B.colorStoreUpdateJobId=_.EE.addLowPriorityJob(function(){var x;if((x=B.cinematicContainerRenderer.colorStore)!=null&&x.sampledColors){x=Infinity;for(var P=_.p(B.cinematicContainerRenderer.colorStore.sampledColors),Y=P.next();!Y.done;Y=P.next()){Y=Y.value;var g=Number(Y.key);g!==0&&g<x&&(x=g);g=_.SF(Y.value);B.colorStore.set(Y.key,g)}B.colorStoreTimeInterval=x}}))},gKA=function(B){B.colorStoreUpdateJobId&&
(_.EE.cancelJob(B.colorStoreUpdateJobId),B.colorStoreUpdateJobId=void 0);
B.colorStore.clear();B.currentStoryboardColor=void 0},sac=function(B,c){var x;
return(x=B.getStoryboardFrame(c))==null?void 0:x.url};
BY.prototype.onPlayerStateChange=function(){this.update()};
BY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var aoi=function(B){var c=B.getStoryboardFrame(0);c&&(c=new _.nH(c.width/c.columns,c.height/c.rows),_.eCi(B.currentStoryboardSize,c)||(B.currentStoryboardSize=c,B.publish("STORYBOARD_SIZE_CHANGED",B.currentStoryboardSize)))},p1N=function(B,c){B.currentStoryboardIndex=c;
B.pendingStoryboardIndex=NaN;c=B.getStoryboardFrame(B.currentStoryboardIndex);B.currentStoryboard=new xtS(B.mosaics.get(c.url).element,c);B.publish("STORYBOARD_CHANGED",B.currentStoryboard);B.lastUpdateTime=(0,_.BA)()};
BY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var cY=function(B){B.currentStoryboardIndex=NaN;B.pendingStoryboardIndex=NaN;B.currentStoryboard&&(B.currentStoryboard=void 0,B.publish("STORYBOARD_CHANGED",void 0));B.lastUpdateTime=NaN};
BY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)cY(this);else{var B=this.playerApi.getPlayerState(1);if(B===-1||B===5||B===0)cY(this);else if(isNaN(this.lastUpdateTime)||!((0,_.BA)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(B=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){B=""+Math.round(B*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var c=this.colorStore.get(B);c?c!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=c,this.currentStoryboard=new Pwz(c),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.BA)()):(_.Ob(new _.mc("Could not find color for timestamp: "+B,this.cinematicContainerRenderer)),cY(this))}else cY(this);else k0r(this,B)}};
var k0r=function(B,c){var x=B.getStoryboardFrameIndex(c);if(x!==B.currentStoryboardIndex&&x!==B.pendingStoryboardIndex){c=sac(B,x);var P=B.mosaics.get(c);P?P.loaded&&p1N(B,x):(B.pendingStoryboardIndex=x,x=new cQ6(c),B.mosaics.set(c,x),x.resolver.promise.then(function(){if(!B.isDisposed()&&!B.paused&&!isNaN(B.pendingStoryboardIndex)){var Y=sac(B,B.pendingStoryboardIndex);if(Y){var g;(g=B.mosaics.get(Y))!=null&&g.loaded&&p1N(B,B.pendingStoryboardIndex)}else cY(B)}}))}};
BY.prototype.getStoryboardFrameIndex=function(B){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(B,c)};
BY.prototype.getStoryboardFrame=function(B){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,x,P;return((P=(x=this.playerApi).getStoryboardFrame)==null?void 0:P.call(x,B,c))||null};
BY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var PY=function(B,c,x,P){P=P===void 0?!1:P;_.tG.call(this);this.cinematicContainerRenderer=c;this.playerApi=x;this.theater=this.fullscreen=!1;var Y;this.ambientLightThemeEnabled=!P&&!!(c==null?0:(Y=c.config)==null?0:Y.enableInLightTheme);this.ambientFullscreenEnabled=P&&_.T("web_cinematic_fullscreen");this.container=document.createElement("div");B.appendChild(this.container);var g;if(_.T("web_cinematic_theater_mode")||_.T("web_cinematic_fullscreen")||(c==null?0:(g=c.config)==null?0:g.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);X1N(this);B=this.ambientV2Container||this.container;this.backCanvas=DSN();this.frontCanvas=DSN();B.appendChild(this.backCanvas.element);B.appendChild(this.frontCanvas.element);this.storyboardManager=new BY(c,this.playerApi);_.bW(this,this.storyboardManager);this.addEventListeners();$tS(this)?nKN(this,100+xt(this)*3*2,100+xt(this)*3*2):b5A(this);KMF(this,this.storyboardManager.currentStoryboard)};
_.w(PY,_.tG);var X1N=function(B){B.ambientV2Container?ja8(B):(_.F$(B.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+UtS(B)+", "+dt8(B)+")"}),ryy()&&_.F$(B.container,"filter","blur("+_.Yu("cinematic_watch_css_filter_blur_strength",40)+"px)"))},ja8=function(B){if(B.ambientV2Container){var c=B.playerApi.getVideoAspectRatio();
_.F$(B.container,{"aspect-ratio":""+c,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.F$(B.ambientV2Container,{"aspect-ratio":""+c,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+UtS(B)+", "+dt8(B)+")"});ryy()&&_.F$(B.ambientV2Container,"filter","blur("+_.Yu("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
PY.prototype.setFullscreen=function(B,c){this.fullscreen=B;this.theater=!!c;X1N(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),B=this.storyboardManager.currentStoryboard,qWi(this),B&&Cwi(this,B)};
PY.prototype.addEventListeners=function(){var B=this,c=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Y){KMF(B,Y)}),x=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){b5A(B)});
this.addOnDisposeCallback(function(){B.storyboardManager.unsubscribeByKey(c);B.storyboardManager.unsubscribeByKey(x)});
if(this.ambientV2Container){var P=function(){ja8(B)};
this.playerApi.addEventListener("onVideoDataChange",P);this.addOnDisposeCallback(function(){B.playerApi.removeEventListener("onVideoDataChange",P)})}};
var b5A=function(B){if(!$tS(B)){var c=B.storyboardManager.currentStoryboardSize;isNaN(c.width)||isNaN(c.height)||nKN(B,Number(c.width)+xt(B)*3*2,Number(c.height)+xt(B)*3*2)}},nKN=function(B,c,x){B.backCanvas.element.width=c;
B.backCanvas.element.height=x;B.frontCanvas.element.width=c;B.frontCanvas.element.height=x},$tS=function(B){return B.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},KMF=function(B,c,x){x=x===void 0?!1:x;
var P=B.frontCanvas.element.getAnimations()[0];P?(P.pause(),B.backCanvas.context.globalAlpha=Number(getComputedStyle(B.frontCanvas.element).opacity),B.frontCanvas.element.style.opacity="0",P.finish()):B.backCanvas.context.globalAlpha=1;B.backCanvas.context.drawImage(B.frontCanvas.element,0,0,B.backCanvas.element.width,B.backCanvas.element.height);qWi(B);c&&Cwi(B,c);c=c?B.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Yu("cinematic_watch_fade_out_duration",500);P=_.Yu("cinematic_watch_transition_frame_rate")/
1E3;var Y={};P&&(Y={easing:"steps("+Math.round(c*P)+")"});(x===void 0?0:x)||B.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:c,iterations:1},Y));B.frontCanvas.element.style.opacity="1"},qWi=function(B){var c=B.ambientLightThemeEnabled,x=B.ambientLightThemeEnabled||B.ambientFullscreenEnabled&&!_.T("web_cinematic_fullscreen_v2");
B.frontCanvas.context.fillStyle=B.theater&&c||B.fullscreen&&x?"#000":"#0f0f0f";ryy()||(B.frontCanvas.context.filter="blur(0)");B.frontCanvas.context.fillRect(0,0,B.frontCanvas.element.width,B.frontCanvas.element.height)},Cwi=function(B,c){ryy()||(B.frontCanvas.context.filter="blur("+xt(B)+"px)");
B.frontCanvas.context.globalAlpha=_.Yu("cinematic_watch_effect_opacity",.4);var x={offsetX:xt(B)*3,offsetY:xt(B)*3,theater:B.theater,fullscreen:B.fullscreen};$tS(B)&&(x.width=100,x.height=100);c.drawToCanvas(B.frontCanvas.context,x);B.frontCanvas.context.globalAlpha=1},xt=function(B){var c;
return(c=B.cinematicContainerRenderer.config.blurStrength)!=null?c:5},UtS=function(B){var c,x;
if((B.fullscreen||B.theater)&&((c=B.cinematicContainerRenderer.config)==null?0:(x=c.watchFullscreenConfig)==null?0:x.colorSourceWidthMultiplier))return B.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var P;return(P=B.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?P:B.cinematicContainerRenderer.config.colorSourceSizeMultiplier},dt8=function(B){var c,x;
if((B.fullscreen||B.theater)&&((c=B.cinematicContainerRenderer.config)==null?0:(x=c.watchFullscreenConfig)==null?0:x.colorSourceHeightMultiplier))return B.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var P;return(P=B.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?P:B.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
PY.prototype.disposeInternal=function(){_.tG.prototype.disposeInternal.call(this);this.container.remove()};
PY.prototype.clear=function(){KMF(this,void 0,!0)};
PY.prototype.pause=function(){this.storyboardManager.pause()};var hjA;hjA=_.C9(function(){var B,c,x=!((c=(B=document.createElement("canvas")).getContext)==null||!c.call(B,"2d")),P;B=!((P=CSS)==null||!P.supports("filter: blur(0)"));P=!!Element.prototype.animate&&!!Element.prototype.getAnimations;c=_.T("web_cinematic_fullscreen")||_.T("web_cinematic_theater_mode")||_.T("web_cinematic_light_theme")||!1;var Y;return x&&B&&P&&(!c||!((Y=CSS)==null||!Y.supports("aspect-ratio: 1 / 1")))});
_.Yt=function(B,c){_.rs.call(this);this.container=B;this.playerApi=c;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=mtz(this);this.update()};
_.w(_.Yt,_.rs);_.TI6=function(B){var c=document.documentElement.hasAttribute("dark");B.isDarkModeEnabled=c;B.update()};
_.Vyi=function(B,c){B.settingEnabled=c;B.update()};
_.Yt.prototype.setFullscreen=function(B,c){this.fullscreen=B;this.theater=!!c;this.update()};
_.tyz=function(B,c){B.cinematicContainerRenderer=c;B.cinematicContainerRenderer&&(B.cinematicsVe=_.JW(B.isShorts()?227858:159022),_.Xa(_.q_(),B.cinematicsVe),B.loggingClientData={watchCinematicContainerData:{presentationStyle:B.cinematicContainerRenderer.presentationStyle}});B.update()};
_.Yt.prototype.isShorts=function(){var B,c;return((B=this.cinematicContainerRenderer)==null?void 0:(c=B.config)==null?void 0:c.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Yt.prototype.isAllowed=function(){var B;if(B=hjA()){var c,x,P;B=((x=this.cinematicContainerRenderer)==null?void 0:x.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((P=this.cinematicContainerRenderer)==null||!P.colorStore)||((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(B)if(_.T("web_cinematics_pausing")){var Y,g;B=this.isDarkModeEnabled||!!((Y=this.cinematicContainerRenderer)==
null?0:(g=Y.config)==null?0:g.enableInLightTheme)}else{var k,n;Y=!!((k=this.cinematicContainerRenderer)==null?0:(n=k.config)==null?0:n.enableInLightTheme)&&(_.v5("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);B=this.isDarkModeEnabled||Y}if(k=B){var b,d;k=!((d=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&d)}return k};
_.w1o=function(B){(B=B.currentCinematicEffect)!=null&&(B=B.storyboardManager,B.paused=!1,aoi(B),B.update())};
_.Yt.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var mtz=function(B){if(!_.T("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var c=window.matchMedia("(prefers-reduced-motion: reduce)"),x=function(){B.update()};
c.addListener(x);B.addOnDisposeCallback(function(){c.removeListener(x)});
return c}};
_.Yt.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var B=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new PY(this.container,B,this.playerApi,this.isDarkModeEnabled),_.bW(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var c=this.currentCinematicEffect;c.cinematicContainerRenderer!==
B&&(c.cinematicContainerRenderer=B,YWy(c.storyboardManager,B),X1N(c));B=_.CW();_.hi(0,194,!0);B.save();B=_.Wf();this.cinematicsVe&&B&&_.Z1(B,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(B=_.Wf(),this.cinematicsVe&&B&&_.Hr(B,[this.cinematicsVe],!1,this.loggingClientData),_.R3(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.AJ.Object.defineProperties(_.Yt.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var tsS;var wkA;_.Ni({_template:function(){if(wkA!==void 0)return wkA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=
B.content,x=c.insertBefore;tsS===void 0&&(tsS=document.createElement("template"));var P=tsS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return wkA=B},
is:"tp-yt-iron-pages",behaviors:[_.Oc,_.Mi],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var C8B;_.hil=function(){if(_.T("kevlar_home_skeleton")&&!C8B){var B=document.querySelector("#home-page-skeleton");B&&(_.Op("hgcr"),_.qH(B),C8B=!0)}};
C8B=!1;_.T9=new _.A("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var XS6,n1s,bo6,KBS,jrz,Udy,ddo,qON,hpo,mdF,t86,N3y,IVF,wSi,T36,V8o,lVF;_.kTB=function(B,c,x){c=c===void 0?5:c;if(c!==0){var P=typeof B==="function"?B():document.querySelector(B);P?(x==null?0:x.enableSmartFocus)?_.fcx(P):P.focus():setTimeout(function(){_.kTB(B,c-1,x)},500)}};
XS6=function(B){return String.raw.apply(String,[{raw:B}].concat(_.wq(_.ts.apply(1,arguments).map(function(c){return c instanceof Array?c.join(""):c}))))};
n1s=function(B){var c=_.ts.apply(1,arguments);if(!Array.isArray(B)||!Array.isArray(B.raw)||B.length!==B.raw.length||!_.b17&&B===B.raw||!(_.b17&&!_.KhI||_.$X(B))||c.length+1!==B.length)throw new TypeError("ea");return new $dz(Object.freeze({strings:Object.freeze(B),args:Object.freeze(c)}))};
bo6=function(B){return _.fPQ(_.HQl(B&16777215))<.5};
KBS=function(B,c,x){var P=x.minimumRowsOfVideosBetweenSections===void 0?1:x.minimumRowsOfVideosBetweenSections;return B<(x.minimumRowsOfVideosAtStart===void 0?2:x.minimumRowsOfVideosAtStart)||c!==null&&B-c<=P?!1:!0};
jrz=function(B,c){var x=0,P=0;B=_.p(B);for(var Y=B.next();!Y.done;Y=B.next()){var g=Y.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=P,g.richItemRenderer.colIndex=x++,x===c&&(x=0,P++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=P,g.richGroupRenderer.colIndex=x,x+=g.richGroupRenderer.numColumns,x===c&&(x=0,P++);else if(g.richSectionRenderer){var k=Y=void 0;if(g=_.t((Y=g)==null?void 0:(k=Y.richSectionRenderer)==null?void 0:k.content,_.pJ5))g.rowIndex=
P++}}};
Udy=function(B,c){var x=c.contentElement;c=c.rendererToTagNameMap;if(x&&c&&c.size!==0){for(var P=new Map,Y=_.p(x.children),g=Y.next();!g.done;g=Y.next()){g=g.value;var k=g.tagName.toLowerCase(),n=P.get(k);n||(n=[],P.set(k,n));n.push(g)}if(P.size!==0)for(Y=Math.min(B.length,x.children.length),g=new Map,k=0;k<Y;k++){n=Object.keys(B[k])[0];n=c.get(n);if(!n)break;var b=g.get(n);b===void 0&&(b=0,g.set(n,b));var d=P.get(n);if(!d||b>=d.length)break;g.set(n,b+1);n=d[b];b=x.children[k];b!==n&&(_.zG$=!0,_.SzQ.set(n,
!0),x.insertBefore(n,b),_.SzQ.delete(n),_.zG$=!1)}}};
ddo=function(B,c,x,P,Y,g,k){P=P===void 0?{}:P;if(!B||!B.length)return[];B=B.slice();var n=[],b=[];Y=null;for(var d=0,q=function(S){b.sort(function(Z,u){return u.skippedOnRow-Z.skippedOnRow});
for(var M,f=(M=b.shift())==null?void 0:M.content;f;)!f.richSectionRenderer&&S||n.push(f),M=void 0,f=(M=b.shift())==null?void 0:M.content},C=void 0;B.length>0||b.length>0;){for(var h=[],V=c;V>0;){var N=void 0,l=void 0,E=(l=b[0]&&b[0].skippedOnRow<d?(N=b.shift())==null?void 0:N.content:void 0)!=null?l:B.shift();
if(!E)break;if(E.richItemRenderer)N=E.richItemRenderer.targetId,l=void 0,N&&((l=k)==null?0:l.has(N))&&(N=k.get(N),!C||N&&N.timestamp>C.timestamp)&&(C=N),h.push(E),V--;else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.numColumns<=V?(h.push(E),V-=E.richGroupRenderer.numColumns):V===c&&E.richGroupRenderer.numColumns>c?(h.push({richGroupRenderer:Object.assign({},E.richGroupRenderer,{numColumns:c})}),V=0):b.push({content:E,skippedOnRow:d});else if(E.richSectionRenderer)if(KBS(d,
Y,P)&&V===c){n.push(E);Y=d;d++;continue}else b.push({content:E,skippedOnRow:d});else if(E.continuationItemRenderer){q(!0);n.push(E);V=0;break}if(V===0)n.push.apply(n,_.wq(h));else if(!x&&B.length===0){q(!1);n.push.apply(n,_.wq(h));V=0;break}}d++;C&&(n.push(C.content),d++);C=void 0}jrz(n,c);g&&Udy(n,g);return n};
qON=function(){return _.ts.apply(0,arguments).flat().filter(function(B){return B}).join(";")};
hpo=function(){return n1s(CTF,qON.apply(null,_.wq(_.ts.apply(0,arguments))))};
mdF=function(B){return B.talkToRecs};
t86=function(B,c){if(c){var x=_.uG().getState().entities.flowStateEntity,P=T36(B),Y=[c];P&&P!==c&&Y.push(P);var g=!0,k;if(x&&B.flowStateEntityKey&&((k=x[B.flowStateEntityKey])==null?void 0:k.primaryButtonDisabled)!==void 0){var n;g=!((n=x[B.flowStateEntityKey])==null||!n.primaryButtonDisabled)}V8o(B,P!=null?P:c,Y,g)}};
N3y=function(B){return _.C0(_.uG(),function(c){return c.entities.flowStateEntity},function(c,x){if(B.flowStateEntityKey){var P,Y=c==null?void 0:(P=c[B.flowStateEntityKey])==null?void 0:P.currentStepId,g;
x=x==null?void 0:(g=x[B.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.uG().getState().talkToRecs;if(Y&&Y!==x){var k;c=(c==null?void 0:(k=c[B.flowStateEntityKey])==null?void 0:k.stepIdStack)||Object.keys(g.stepStates);k=!wSi(g==null?void 0:g.stepStates[Y]);V8o(B,Y,c,k)}}})};
IVF=function(B){return _.C0(_.uG(),mdF,function(c){var x=T36(B);if(x){var P=Object.keys(c.stepStates);c=!wSi(c==null?void 0:c.stepStates[x]);V8o(B,x,P,c)}})};
wSi=function(B){var c=Object.keys((B==null?void 0:B.selectionStates)||{}).reduce(function(g,k){return g||(B==null?void 0:B.selectionStates[k].isSelected)},!1),x,P,Y=!!(B==null?0:(x=B.userQuery)==null?0:(P=x.userQuery)==null?0:P.trim());
return c||Y};
T36=function(B){if(B.flowStateEntityKey){var c,x,P=(c=_.uG().getState().entities.flowStateEntity)==null?void 0:(x=c[B.flowStateEntityKey])==null?void 0:x.currentStepId;if(P)return P}};
V8o=function(B,c,x,P){_.uG().dispatch(_.Uy("flowStateEntity",B.flowStateEntityKey,{currentStepId:c,stepIdStack:x,key:B.flowStateEntityKey,primaryButtonDisabled:P}))};
_.J5B=function(B,c){return _.X9(B.entities,"youchatPendingResponseEntity",c)};
_.WBr=function(B){return function(c){_.iF(_.Uy("youchatPendingResponseEntity",B,{entityKey:B,isPendingResponse:c}))}};
lVF=function(B){B==null||B.addEventListener("DOMLoaded",function(){B.goToAndPlay(B.totalFrames-48,!0)})};
_.x6=function(B){this.__isSoyCss=!0;this.css=XS6.apply(null,[B.strings].concat(_.wq(B.args)))};
_.x6.prototype.toString=function(){return this.css};
var $dz=function(){_.x6.apply(this,arguments)};
_.w($dz,_.x6);var CTF=_.r2(["",""]);var E1r;var Ooy;_.Ni({_template:function(){if(Ooy!==void 0)return Ooy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
var c=B.content,x=c.insertBefore;E1r===void 0&&(E1r=document.createElement("template"));var P=E1r;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Ooy=B},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var o1r=new _.A("talkToRecsFlowRenderer");var Qr6=new _.A("flowRootRenderer");var FBi=new _.A("learningJourneyQuizViewModel");var v1o=new _.A("chipsShelfViewModel");var zpc=new _.A("responsiveContainerConfiguration");var SOz=new _.A("horizontalShelfViewModel");_.y5A=new _.A("engagementPanelSectionListRenderer");var GTo=new _.A("conversationResourceViewModel");var M8F=function(){this.horizontal=!1},LBi=function(B,c){B.horizontal=c};
M8F.prototype.position=function(B,c,x,P){P=P===void 0?1:P;B=this.delta(B)*P+c;P=Math.max(c,x);return B>=Math.min(c,x)&&B<=P?B:x};
M8F.prototype.axis=function(B){B=this.direction(B);return B==="up"||B==="down"?"Y":"X"};var kQ=function(B,c,x){c=c===void 0?_.N4():c;this.target=B;this.manager=c;this.touchAction=x;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
kQ.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(_.wq(this.events)));for(var B=_.p(this.events),c=B.next();!c.done;c=B.next())this.listen(c.value)}};
kQ.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.wq(this.events)));for(var B=_.p(this.events),c=B.next();!c.done;c=B.next())this.unlisten(c.value)}};
kQ.prototype.listen=function(B){this.eventMap[B]&&this.target.addEventListener(B,this.eventMap[B])};
kQ.prototype.unlisten=function(B){this.eventMap[B]&&this.target.removeEventListener(B,this.eventMap[B])};var XG=function(){M8F.apply(this,arguments)};
_.w(XG,M8F);XG.prototype.direction=function(B){var c=B.detail;B=c.deltaY;c=c.deltaX;return B&&!this.horizontal?B>0?"down":"up":c&&this.horizontal?c>0?"right":"left":"none"};
XG.prototype.distance=function(B){return Math.abs(this.delta(B))};
XG.prototype.delta=function(B){var c=this.direction(B),x=B.detail;B=x.deltaX;x=x.deltaY;return c==="up"||c==="down"?x||0:B||0};
XG.prototype.velocity=function(B){var c=this.direction(B),x=B.detail;B=x.velocityX;x=x.velocityY;return Math.abs(c==="up"||c==="down"?x||0:B||0)};_.$Q=function(B,c,x,P,Y,g){Y=Y===void 0?new XG:Y;g=g===void 0?_.N4():g;kQ.call(this,c,g,P);var k=this;this.element=B;this.target=c;this.config=x;this.input=Y;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){k.config.draggingClass&&k.element.classList.add(k.config.draggingClass);k.config.startAction&&k.config.startAction()};
this.onPanMove=function(n){var b=Zo6(k,n);if(b){k.move(n,b);b.fade&&k.fade(n,b);var d=k.input.direction(n);b.moveAction&&b.moveAction(Hoo(k,n,b),d)}};
this.onPanEnd=function(n){var b,d,q,C,h,V;return _.X(function(N){if(N.nextAddress==1){k.animationRequestId&&cancelAnimationFrame(k.animationRequestId);k.animationRequestId=void 0;b=Zo6(k,n);if(!b)return N.return();d=b;q=d.triggerAction;C=d.fade;h=d.disableFinish;V=d.translateBack;var l=k.input.velocity(n),E=k.input.distance(n),S=k.threshold(b);return l>.3&&E>10||E>S?h?N.jumpTo(6):C?_.K(N,fVS(k,n),6):_.K(N,ioS(k,n,b),6):V?_.K(N,k.translateBack(n),3):N.jumpTo(3)}N.nextAddress!=3&&q&&q();k.config.draggingClass&&
k.element.classList.remove(k.config.draggingClass);k.reset();_.Kq(N)})};
B=Object.keys(x.triggers);this.directions=new Set(B);LBi(this.input,this.directions.has("right")||this.directions.has("left"))};
_.w(_.$Q,kQ);_.$Q.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Zo6=function(B,c){c=B.input.direction(c);return B.config.triggers[c]};
_.$Q.prototype.move=function(B,c){var x=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var P=x.input.axis(B),Y=x.input.position(B,x.config.startPosition,c.endPosition,c.moveRatio||1);x.element.style.transform="translate"+P+"("+Y+"px)";x.animationRequestId=void 0}))};
var Hoo=function(B,c,x){var P=x.moveRatio||1;x=Math.abs(B.config.startPosition-x.endPosition);return Math.min(B.input.distance(c)*P,x)/x};
_.$Q.prototype.fade=function(B,c){var x=c.endOpacity;B=Hoo(this,B,c);B>0&&(this.element.style.opacity=""+(((x||0)-1)*B+1))};
_.$Q.prototype.threshold=function(B){return B.threshold?B.threshold:Math.abs(B.endPosition-this.config.startPosition)/3};
var ioS=function(B,c,x){var P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return P=B.input.delta(c)+B.config.startPosition,Y=B.input.axis(c),g=x,k=g.endPosition,n=g.transitionEndPosition,d=(b=n)!=null?b:k,_.K(q,B.element.animate([{transform:"translate"+Y+"("+P+"px)"},{transform:"translate"+Y+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.element.style.transform="translate"+Y+"("+d+"px)";_.Kq(q)})};
_.$Q.prototype.translateBack=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1){if(!c.element.style.transform)return Y.return();x=c.input.axis(B);P=c.config.startPosition;return _.K(Y,c.element.animate([{transform:c.element.style.transform},{transform:"translate"+x+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}c.element.style.transform="translate"+x+"("+P+"px)";_.Kq(Y)})};
var fVS=function(B,c){var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return x=B.input.delta(c)+B.config.startPosition,P=B.input.axis(c),Y=x+70,g=B.element.style.opacity===""?1:B.element.style.opacity,_.K(k,B.element.animate([{transform:"translate"+P+"("+x+"px)",opacity:g},{transform:"translate"+P+"("+Y+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.element.style.transform="translate"+P+"("+Y+"px)";B.element.style.opacity="0";_.Kq(k)})};var nJ=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.scrollRate=3;B.autoScrollAnimationStart=0;B.autoScrollPaused=!1;B.autoScrollRafId=0;return B};
_.w(nJ,_.dM);_.a=nJ.prototype;_.a.created=function(){var B=this;this.boundAutoScrollHandler=function(c){B.autoScroll(c)}};
_.a.detached=function(){this.hostElement.removeEventListener("mouseout",_.$9(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.$9(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.$9(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.a.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.$9(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.$9(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.$9(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.$9(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.$9(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.$9(this,this.endAutoScroll)),this.endAutoScroll())};
_.a.autoScroll=function(B){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=B);var c;if(c=!this.autoScrollPaused&&this.scrollTarget)c=this.scrollTarget,c=c.scrollHeight-c.scrollTop!==c.clientHeight;c&&(c=1E3/this.scrollRate,B-=this.autoScrollAnimationStart,B>c&&(this.scrollTarget.scrollTop+=Math.ceil(B/c),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.a.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.a.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
nJ.prototype.autoScrollEnabledChanged=nJ.prototype.autoScrollEnabledChanged;_.L([_.F(),_.H("design:type",Object)],nJ.prototype,"scrollRate",void 0);_.L([_.F(),_.H("design:type",Object)],nJ.prototype,"scrollTarget",void 0);_.L([_.F(),_.H("design:type",Boolean)],nJ.prototype,"autoScrollEnabled",void 0);_.L([_.bF("autoScrollEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nJ.prototype,"autoScrollEnabledChanged",null);_.L([_.qi()],nJ);_.A5z=[nJ.prototype];var uDz;var b0=function(){var B=_.z.apply(this,arguments)||this;B.buttonUpdate=_.T("web_button_rework");B.dismissButtonOverrides=_.T("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;B.forceDarkTheme=!1;B.forceLightTheme=!1;B.dynamicTextHeight=94;B.hasOverflowButton=!1;B.isInfeedModernization=!1;return B};
_.w(b0,_.z);_.a=b0.prototype;_.a.computeUrlImg=function(B){if(B)return _.YU(B.thumbnails)};
_.a.getLogoHeight=function(B){return this.logoWithPadding(B)?"31":"24"};
_.a.getLogoClassName=function(B){return this.logoWithPadding(B)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.a.logoWithPadding=function(B){var c,x;return(B=(c=B.thumbnails)==null?void 0:(x=c[0])==null?void 0:x.height)&&B%31===0?!0:!1};
_.a.sendImpressionEndpoints=function(B){B.impressionEndpoints&&_.kC(this.hostElement,B.impressionEndpoints)};
_.a.observeBasicPalette=function(){var B,c,x=(B=this.data)==null?void 0:(c=B.colorData)==null?void 0:c.basicColorPaletteData;x?_.E9(this.hostElement,x):_.E9(this.hostElement,{})};
_.a.observeDataChanged=function(){var B;this.dynamicTextHeight=((B=this.data)==null?0:B.supplementalText)?74:94;var c;this.hasSupplementalText=!((c=this.data)==null||!c.supplementalText);if(_.T("web_button_rework")){var x,P,Y,g;B=(x=this.data)==null?void 0:(P=x.actionButton)==null?void 0:(Y=P.buttonRenderer)==null?void 0:(g=Y.colorData)==null?void 0:g.basicColorPaletteData;var k,n,b;if(!((k=this.data)==null?0:(n=k.actionButton)==null?0:(b=n.buttonRenderer)==null?0:b.style)&&B){this.computeIsInfeedModernization(this.data)||
(B.borderColor=B.foregroundTitleColor);var d,q;this.set("data.actionButton.buttonRenderer",_.wW.unsafeClone((d=this.data)==null?void 0:(q=d.actionButton)==null?void 0:q.buttonRenderer))}}};
_.a.observeDataForCounterfactual=function(){if(_.T("kevlar_banner_cf_extra_logging")){var B;((B=this.data)==null?0:B.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.a.computeSupplementalStyle=function(){var B;if((B=this.data)!=null&&B.supplementalText){var c,x,P;if((c=this.data)==null?0:(x=c.colorData)==null?0:(P=x.basicColorPaletteData)==null?0:P.foregroundActivatedColor)return B=_.zF(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+B+"; --yt-endpoint-hover-color:"+B+"; --yt-endpoint-visited-color:"+B+"; --yt-formatted-string-bold-font-weight:700;"}};
_.a.computeForcedDarkTheme=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.actionButton)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.style,Y,g,k;B=bo6(((Y=this.data)==null?void 0:(g=Y.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return P&&B};
_.a.computeForcedLightTheme=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.actionButton)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.style,Y,g,k;B=!bo6(((Y=this.data)==null?void 0:(g=Y.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return P&&B};
_.a.computeHasOverflowButton=function(B){return!!B.overflowButton};
_.a.computeHasTitle=function(B){return!!B.title};
_.a.computeTitleMaxFontSize=function(B){return this.computeHasOverflowButton(B)?28:64};
_.a.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.a.computeIsInfeedModernization=function(){var B,c,x,P,Y=(B=this.data)==null?void 0:(c=B.actionButton)==null?void 0:(x=c.buttonRenderer)==null?void 0:(P=x.colorData)==null?void 0:P.basicColorPaletteData;return(Y==null?void 0:Y.backgroundColor)===452984831||(Y==null?void 0:Y.backgroundColor)===218103808};
b0.prototype.observeDataForCounterfactual=b0.prototype.observeDataForCounterfactual;b0.prototype.observeDataChanged=b0.prototype.observeDataChanged;b0.prototype.observeBasicPalette=b0.prototype.observeBasicPalette;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],b0.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],b0.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],b0.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],b0.prototype,"buttonUpdate",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],b0.prototype,"hasSupplementalText",void 0);_.L([_.F(),_.H("design:type",Object)],b0.prototype,"dismissButtonOverrides",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Boolean)],b0.prototype,"hasTitle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.H("design:type",Object)],b0.prototype,"forceDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.H("design:type",Object)],b0.prototype,"forceLightTheme",void 0);_.L([_.F(),_.H("design:type",Object)],b0.prototype,"dynamicTextHeight",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Object)],b0.prototype,"hasOverflowButton",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.H("design:type",Object)],b0.prototype,"isInfeedModernization",void 0);_.L([_.bF("data.colorData.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b0.prototype,"observeBasicPalette",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b0.prototype,"observeDataChanged",null);_.L([_.bF("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b0.prototype,"observeDataForCounterfactual",null);_.L([_.y({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],b0);
_.G(b0,"ytd-banner-promo-renderer",function(){if(uDz!==void 0)return uDz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return uDz=B},{mode:1});var Ddo;var r5z;var Rpi;var KJ=function(){return _.z.apply(this,arguments)||this};
_.w(KJ,_.z);_.L([_.F(),_.H("design:type",Object)],KJ.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.L([_.y({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],KJ);
_.G(KJ,"ytd-hashtag-grid-tile-renderer",function(){if(Rpi!==void 0)return Rpi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Rpi=B},{mode:1});var jt=function(){return _.z.apply(this,arguments)||this};
_.w(jt,_.z);jt.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
jt.prototype.updateRichGridTrendingHashtagsVisibility=function(){var B,c;if(((B=this.data)==null||!B.isExpanded)&&(c=this.data)!=null&&c.tiles){B=this.data.tiles.length;c=B>this.richGridItemsPerRow?this.richGridItemsPerRow+1:B;var x=Math.ceil(B/c);this.fullyVisibleRows=B%c===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}};
jt.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
jt.prototype.updateRichGridTrendingHashtagsVisibility=jt.prototype.updateRichGridTrendingHashtagsVisibility;_.L([_.F(),_.H("design:type",Object)],jt.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Number)],jt.prototype,"fullyVisibleRows",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],jt.prototype,"isShowMoreVisible",void 0);_.L([_.F({selector:_.lG,value:0}),_.H("design:type",Number)],jt.prototype,"richGridItemsPerRow",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],jt.prototype,"ytdReduxBehavior",void 0);_.L([_.bF("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jt.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.L([_.y({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],jt);
_.G(jt,"ytd-hashtag-grid-shelf-renderer",function(){if(r5z!==void 0)return r5z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return r5z=B},{mode:1});var eps;var BsA;var US=function(){var B=_.z.apply(this,arguments)||this;B.visibleVideos=[];B.hiddenVideos=[];B.modern=_.T("web_modern_buttons");B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(US,_.z);_.a=US.prototype;_.a.attached=function(){var B=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.onDarkModeToggledAction(B)};
_.a.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"}}}};
_.a.dataChanged=function(){var B=this;this.requestElementsPerRow();var c,x;this.currentColorPalette=this.isDarkTheme?(c=this.data)==null?void 0:c.darkColorData:(x=this.data)==null?void 0:x.lightColorData;var P;if((P=this.currentColorPalette)==null?0:P.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.fl(this,function(){B.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.a.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.a.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.a.computeIsFirstFeedItem=function(B){return B};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B);this.data&&(this.currentColorPalette=B?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.a.getCurrentLogo=function(B,c){if(B)return c?B.darkLogoImage:B.lightLogoImage};
_.a.computeTitleStyle=function(B){var c;if((c=this.data)!=null&&c.title&&B&&B.textPrimary!==void 0)return"color:"+_.zF(B.textPrimary)+";"};
_.a.computeSubtitleStyle=function(B){var c;if((c=this.data)!=null&&c.subtitle&&B&&B.textSecondary!==void 0)return"color:"+_.zF(B.textSecondary)+";"};
_.a.computeDismissIconStyle=function(B){if(this.data&&this.data.dismissButton&&B&&B.textPrimary!==void 0)return"--yt-button-color:"+_.zF(B.textPrimary)+";"};
_.a.computeOverflowButtonStyle=function(B){if(this.data&&this.data.overflowButton&&B&&B.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zF(B.textPrimary)+";--yt-spec-icon-active-other:"+_.zF(B.textPrimary)+";"};
_.a.computeBackgroundStyle=function(B){if(B&&this.data){var c="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var x=_.YU((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);x&&(c+='background-image:url("'+x+'");')}B.backgroundColor!==void 0&&(c+="background-color:"+_.SF(B.backgroundColor)+";");return c}};
_.a.computeButton=function(){var B,c=Object.assign({},_.t((B=this.data)==null?void 0:B.showMoreButton,_.z3));if(this.modern&&c){c.style="STYLE_MONO_OUTLINE";var x;if(B=(x=this.currentColorPalette)==null?void 0:x.textPrimary)c.colorData={basicColorPaletteData:{foregroundTitleColor:B,borderColor:B}}}return c};
_.a.shouldShowBottomButton=function(B,c){return!(B==null?0:B.header)&&!(B==null||!B.primaryButton)&&c<3};
_.a.checkExpanded=function(B){this.isExpanded=B&&B.content?this.hiddenVideos.length===0:!0};
_.a.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.a.getLogoHeight=function(B){return this.logoWithPadding(B)?"26":"20"};
_.a.getLogoImageId=function(B){return this.logoWithPadding(B)?"logo-image-with-padding":"logo-image"};
_.a.computeHasSectionHeader=function(B){return!!B.header};
_.a.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var B;if((B=this.data.primaryButton)==null?0:B.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 c;((c=this.data.dismissButton)==null?0:c.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var x,P;((x=this.data)==null?0:(P=x.primaryButton)==null?0:P.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.a.setVisibleVideos=function(B){if(this.data&&this.data.content)if(this.data.content.length){var c=this.data.content.length;this.data.header?B?(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.slimItemsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow-1),c))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.a.setHasMovieRenderer=function(){var B;if((B=this.data)!=null&&B.content){var c;this.hasMovieRenderer=!!_.t((c=this.data)==null?void 0:c.content[0],_.zB4)}else this.hasMovieRenderer=!1};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
_.a.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var B=_.p(this.hiddenMediaRenderers),c=B.next();!c.done;c=B.next())c.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(B=_.Y9(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&B.focus()}};
_.a.updateTitleSpec=function(){var B;(B=this.data)!=null&&B.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.a.logoWithPadding=function(B){var c,x,P;return(B=(c=this.getCurrentLogo(B,this.isDarkTheme))==null?void 0:(x=c.thumbnails)==null?void 0:(P=x[0])==null?void 0:P.height)&&B%31===0?!0:!1};
_.a.onUpdateElementsPerRowAction=function(B,c,x){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B);x&&this.slimItemsPerRow!==x&&(this.slimItemsPerRow=x)};
US.prototype.slimItemsPerRowChanged=US.prototype.slimItemsPerRowChanged;US.prototype.elementsPerRowChanged=US.prototype.elementsPerRowChanged;US.prototype.dataChanged=US.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],US.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],US.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],US.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],US.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],US.prototype,"currentColorPalette",void 0);_.L([_.F(),_.H("design:type",Array)],US.prototype,"visibleVideos",void 0);_.L([_.F(),_.H("design:type",Array)],US.prototype,"hiddenVideos",void 0);
_.L([_.F(),_.H("design:type",Object)],US.prototype,"primaryButton",void 0);_.L([_.F({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],US.prototype,"elementsPerRow",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],US.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],US.prototype,"isExpanded",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],US.prototype,"largeTitle",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],US.prototype,"hasMovieRenderer",void 0);_.L([_.F(),_.H("design:type",Number)],US.prototype,"slimItemsPerRow",void 0);_.L([_.F(),_.H("design:type",Boolean)],US.prototype,"showLightVideoMetadata",void 0);_.L([_.F(),_.H("design:type",Boolean)],US.prototype,"showDarkVideoMetadata",void 0);_.L([_.F(),_.H("design:type",Number)],US.prototype,"videoMetadataColor",void 0);
_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],US.prototype,"miniMode",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],US.prototype,"isFirstFeedItem",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.H("design:type",Boolean)],US.prototype,"hasSectionHeader",void 0);
_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],US.prototype,"roundedContainer",void 0);_.L([_.Um("#visible-video-container ytd-rich-grid-media"),_.H("design:type",Array)],US.prototype,"visibleMediaRenderers",void 0);_.L([_.Um("#hidden-video-container ytd-rich-grid-media"),_.H("design:type",Array)],US.prototype,"hiddenMediaRenderers",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],US.prototype,"modern",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],US.prototype,"dataChanged",null);_.L([_.bF("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],US.prototype,"elementsPerRowChanged",null);_.L([_.bF("slimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],US.prototype,"slimItemsPerRowChanged",null);
_.L([_.y({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],US);
_.G(US,"ytd-brand-video-shelf-renderer",function(){if(BsA!==void 0)return BsA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return BsA=B},{mode:1});var c_s;var dS=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(dS,_.z);_.a=dS.prototype;_.a.attached=function(){var B=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.onDarkModeToggledAction(B)};
_.a.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"}}}};
_.a.dataChanged=function(){this.requestElementsPerRow();var B,c;this.currentColorPalette=this.isDarkTheme?(B=this.data)==null?void 0:B.darkColorData:(c=this.data)==null?void 0:c.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.a.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.a.computeIsFirstFeedItem=function(B){return B};
_.a.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B);this.data&&(this.currentColorPalette=B?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(B),this.updateButtonPalette())};
_.a.shouldShowThumbnailInMetadata=function(B){return B<=1};
_.a.computeVideoMetadataColor=function(){if(this.data){var B;if((B=this.currentColorPalette)==null?0:B.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.a.computeTitleStyle=function(B){var c;if((c=this.data)!=null&&c.title&&B&&B.textPrimary!==void 0)return"color:"+_.zF(B.textPrimary)+";"};
_.a.computeSubtitleStyle=function(B){var c;if((c=this.data)!=null&&c.subtitle&&B&&B.textSecondary!==void 0)return"color:"+_.zF(B.textSecondary)+";"};
_.a.computeOverflowButtonStyle=function(B){if(this.data&&this.data.overflowButton&&B.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zF(B.textPrimary)+";--yt-spec-icon-active-other:"+_.zF(B.textPrimary)+";"};
_.a.computeBackgroundStyle=function(B){if(B&&this.data){var c="";B.backgroundColor!==void 0&&(c+="background-color:"+_.SF(B.backgroundColor)+";");return c}};
_.a.computeHasOverflowButton=function(B){return!!B.overflowButton};
_.a.updateButtonPalette=function(){if(this.data){var B;if((B=this.data.primaryButton)==null?0:B.buttonRenderer){var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var x;((x=this.currentColorPalette)==null?0:x.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)})}}};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
_.a.updateTitleSpec=function(){var B;(B=this.data)!=null&&B.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")};
_.a.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
dS.prototype.elementsPerRowChanged=dS.prototype.elementsPerRowChanged;dS.prototype.dataChanged=dS.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],dS.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],dS.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],dS.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],dS.prototype,"currentColorPalette",void 0);_.L([_.F(),_.H("design:type",Object)],dS.prototype,"primaryButton",void 0);
_.L([_.F({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],dS.prototype,"elementsPerRow",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dS.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],dS.prototype,"titleSize",void 0);_.L([_.F(),_.H("design:type",Number)],dS.prototype,"videoMetadataColor",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],dS.prototype,"miniMode",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],dS.prototype,"isFirstFeedItem",void 0);_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],dS.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Boolean)],dS.prototype,"hasOverflowButton",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dS.prototype,"dataChanged",null);_.L([_.bF("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dS.prototype,"elementsPerRowChanged",null);_.L([_.y({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],dS);
_.G(dS,"ytd-brand-video-singleton-renderer",function(){if(c_s!==void 0)return c_s;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return c_s=B},{mode:_.sL("kevlar_poly_si_batch_j070")?1:2});var xK8;var P8F=_.rM(function(B){var c=B.data;return _.U(_.D9,{data:function(){return c().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(c().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var x=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":x=88;break a;default:x=88}return x},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return c().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"si"),aRo=_.rM(function(B){var c=B.metadataRow;
var x=B.delimiter;return _.U(_.mV,{each:function(){return c().textParts||[]},
keyBy:"INDEX"},function(P,Y){return _.U(_.at,null,_.U(_.RF,{text:P,noWrap:!0,userInput:!0}),_.U(YDs,{delimiter:x,max:function(){return c().textParts.length},
index:Y}))})},"ti"),YDs=_.rM(function(B){var c=B.delimiter;
var x=B.max;var P=B.index;return _.U(_.m,{cond:function(){return(c==null?void 0:c())&&x()-1>P()},
then:function(){return _.U("span",null,c)}})},"ui"),g$o=_.rM(function(B){var c=B.data;
B={};return _.U("yt-profile-page-header-information-view-model",{class:_.Kw("profile-page-header-information-view-model-wiz",(B["profile-page-header-information-view-model-wiz--mobile"]=!1,B))},_.U(_.m,{cond:function(){return c().onTap},
then:function(){return _.U(_.$J,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.vH(c().onTap)}},_.U(_.IF,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:P8F}))},
else:function(){return _.U("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.U(_.IF,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:P8F}))}}),_.U("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.U(_.m,{cond:function(){return c().onTap},
then:function(){return _.U(_.IF,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(x){var P=x.data;
return _.U(_.$J,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.vH(P().onTap)}},_.U(_.RF,{text:function(){return P().title}}))}})},
else:function(){return _.U(_.IF,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(x){var P=x.data;
return _.U(_.RF,{text:function(){return P().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.U(_.IF,{data:function(){return c().metadata}},{profilePageHeaderMetadataViewModel:function(x){var P=x.data;
return _.U(_.m,{cond:function(){return P().metadataRows},
then:function(Y){return _.U("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.U(_.mV,{each:Y,keyBy:"INDEX"},function(g,k){return _.U(_.at,null,_.U(aRo,{metadataRow:g,delimiter:" \u2022 "}),_.U(YDs,{delimiter:" \u2022 ",max:function(){return Y().length},
index:k}))}))}})}})))},"vi");
g$o.idomCompat=!0;_.xU(g$o,"yt-profile-page-header-information-view-model",{props:{data:_.rk}});var q1=function(){return _.z.apply(this,arguments)||this};
_.w(q1,_.z);q1.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],q1.prototype,"data",void 0);_.L([_.y({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],q1);
_.G(q1,"ytd-effect-pivot-header-view-model",function(){if(xK8!==void 0)return xK8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return xK8=
B},{mode:1});var sLB;var CJ=function(){return _.z.apply(this,arguments)||this};
_.w(CJ,_.z);CJ.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CJ.prototype,"data",void 0);_.L([_.y({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],CJ);
_.G(CJ,"ytd-source-pivot-header-renderer",function(){if(sLB!==void 0)return sLB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return sLB=B},{mode:1});_.pEy=_.rM(function(B){var c=B.data;B=_.Ho("content-list-item-view-model");_.Hv(B,function(){return c().rendererContext});
var x=function(){var Y;return _.Z_((Y=c())==null?void 0:Y.rendererContext)},P={};
return _.U("content-list-item-view-model",{el:B,class:_.Kw("ytContentListItemViewModelHost",(P.ytContentListItemViewModelTappable=x,P)),role:function(){return x()?"listitem":void 0},
tabindex:function(){return x()?0:void 0}},_.U("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.U("div",{class:"ytContentListItemViewModelImageContainer"},_.U(_.m,{cond:function(){return c().image},
then:function(Y){return _.U(_.D9,{data:Y,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.U(_.IF,{data:function(){var Y;
return(Y=c())==null?void 0:Y.avatar}},{avatarViewModel:_.IS})),_.U("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.U("div",{class:_.Kw("ytContentListItemViewModelTitle",function(){a:{switch(c().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Y="ytContentListItemViewModelProminentTitle";
break a}Y=void 0}return Y})},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"ytContentListItemViewModelMetadata"},_.U(_.IF,{data:function(){return c().metadata}},{contentMetadataViewModel:function(Y){return _.U(_.ubn,{data:Y.data,
layout:1})}})))),_.U("div",{class:"ytContentListItemViewModelActionButton"},_.U(_.IF,{data:function(){var Y;
return(Y=c())==null?void 0:Y.actionButton}},{buttonViewModel:_.Q7,
toggleButtonViewModel:_.Jb})))},"wi");_.xU(_.rM(function(B){var c={},x={},P={},Y={};return _.U("yt-card-view-model",{class:_.Kw("ytCardViewModelHost",B.className,(c.ytCardViewModelOutline=function(){return B.data().cardStyle==="CARD_STYLE_OUTLINE"},c),(x.ytCardViewModelRaised=function(){return B.data().cardStyle==="CARD_STYLE_RAISED"||B.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},x),(P.ytCardViewModelTonal=function(){return B.data().cardStyle==="CARD_STYLE_TONAL"},P),(Y.ytCardViewModelInverted=function(){return B.data().cardStyle===
"CARD_STYLE_INVERSE"},Y))},_.U(_.IF,{data:function(){return B.data().background}},{cinematicContainerViewModel:function(g){return _.U(_.v_S,{data:g.data})}}),_.U("div",{class:"ytCardViewModelContentWrapper"},_.U(_.IF,{data:function(){return B.data().topContent||B.data().content}},{contentListItemViewModel:function(g){return _.U(_.pEy,{data:g.data})}})),_.U(_.IF,{data:function(){return B.data().trailingAction||B.data().dismissAction}},{buttonViewModel:function(g){return _.U(_.Q7,{data:g.data})}}))},
"xi"),"yt-card-view-model",{props:{data:_.rk,
className:_.rk}});_.xU(_.rM(function(B){var c=function(){return _.t(B.data().flowRoot,Qr6)};
_.lk(function(){var x=c(),P=function(){},Y=function(){};
if(x){var g,k,n,b=((n=_.t((g=c())==null?void 0:(k=g.steps)==null?void 0:k[0],_.QDo))==null?void 0:n.stepId)||"";t86(x,b);P=N3y(x);Y=IVF(x)}_.lP(function(){var d=c();d&&_.uG().dispatch(_.Uy("flowStateEntity",d.flowStateEntityKey));P();P=function(){};
Y();Y=function(){}})});
return _.U("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.U(_.ei4,{contentId:function(){return B.data().contentId}},function(){return _.U("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.U(_.m,{cond:c,
then:function(x){return _.U(_.lgB,{data:x})}}))}))},"yi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.rk}});_.xU(_.rM(function(){return _.U("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.U("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.U("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.U(_.CpS,null)),_.U(_.Bv4,{data:{rows:1},isExploreHub:!0}))},"zi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.xU(_.rM(function(B){var c=B.data;var x=B.standardUnitMinWidth;B=_.Ho("ytd-chips-shelf-with-video-shelf-renderer");var P=_.p((0,_.Yt9)(c)),Y=P.next().value,g=P.next().value,k=function(){var b,d=(b=Y())==null?void 0:b.contents;return d==null||d.length===0},n=function(){g(Object.assign({},Y(),{contents:[]}))};
_.e3(B,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var b=_.t(c().chipsShelf,v1o);if(b!=null&&b!=null&&b.autoselectChipOnVisible){var d,q,C=_.t(b==null?void 0:(d=b.contents)==null?void 0:d[(q=b.autoselectedChipIndex)!=null?q:0],_.MV);C&&C.tapCommand&&_.Gl(C.tapCommand)}}});
return _.U("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:B},_.U(_.ei4,{contentId:function(){return c().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.U("div",null,_.U("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.U(_.IF,{data:function(){return c().header}},{sectionHeaderViewModel:function(b){return _.U(_.g1,{data:b.data,
disableHorizontalPadding:!0})}})),_.U("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.U(_.IF,{data:function(){return c().chipsShelf}},{chipsShelfViewModel:function(b){return _.U(_.Y_9,{data:b.data,
callback:n,enableSingleChipSelection:!0})}})),_.U("div",null,_.U(_.m,{cond:k,
then:function(){return _.U("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.U(_.Bv4,{data:{rows:1},isExploreHub:!0}))}}),_.U(_.IF,{data:function(){var b;
return(b=Y())==null?void 0:b.contents}},{richShelfRenderer:function(b){return _.U(_.YXI,{data:b.data,
isInnerShelf:!0,standardUnitMinWidth:x})}})))}))},"Ai"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.rk,
standardUnitMinWidth:_.rk}});var hL=function(){return _.z.apply(this,arguments)||this};
_.w(hL,_.z);
hL.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}}};
hL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.L([_.J(_.OU),_.H("design:type",Object)],hL.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],hL.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hL.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Number)],hL.prototype,"standardUnitMinWidth",void 0);_.L([_.y({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],hL);
_.G(hL,"ytd-rich-section-renderer",function(){if(eps!==void 0)return eps;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return eps=B},{mode:_.sL("kevlar_poly_si_batch_j029")?
1:2});_.xU(_.eEN,"yt-profile-identity-info-view-model",{props:{data:_.rk,hideDivider:_.rk}});_.xU(_.fQd,"yt-page-header-view-model",{props:{data:_.rk,noPadding:_.rk,enableBanner:_.rk,cinematicContainerTopbarOffset:_.rk,allowCinematicContainerOverflow:_.rk,displayAsSidebar:_.rk,displayAsPanel:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=function(){var Y;return(Y=c().numColumns)!=null?Y:2},P=function(){return x()>1?3:2};
B={};return _.U("ytd-rich-grid-group",{class:_.Kw("ytdRichGridGroupHost",(B.ytdRichGridGroupHostFirstColumn=function(){return c().colIndex===0},B)),
style:_.TU({"--ytd-rich-grid-group-num-columns":x,"--ytd-rich-grid-items-per-group":P})},_.U("div",{class:"ytdRichGridGroupContents"},_.U(_.IF,{data:function(){var Y;return(Y=c().contents)==null?void 0:Y.slice(0,P())}},{richItemRenderer:function(Y){return _.U(_.xom,{data:Y.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bi"),"ytd-rich-grid-group",{props:{data:_.rk}});var m6=function(){var B=_.z.apply(this,arguments)||this;B.resizeOnObserverInit=!1;B.isInlinePreviewDisabled=_.T("web_disable_inline_preview");B.disableStickyFilterBar=!1;B.transparentBackgroundChipsBar=!1;B.hideChipsBar=!1;B.isWatchDefaultLayout=!0;B.continuationShowButton=!1;B.rowReducedHorizontalMargin=!1;B.useCompactList=!1;B.manualDownloadsPresent=!1;B.smartDownloadsPresent=!1;B.shouldRenderDownloadsBanner=!1;B.hasOptedIntoSmartDownloads=!1;B.elementsPerRow=4;B.typographyBump=!1;B.showGnomeContents=
!1;B.showExploreHubContents=!1;B.slimItemsPerRow=1;B.pageLoadingFromNavigation=!1;B.loggingRefactor=_.T("kevlar_rich_grid_logging_fix");B.resizeObserver=null;B.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"};B.rendererToTagNameMap=
new Map(Object.entries(B.contentMapping()).map(function(c){var x=_.p(c);c=x.next().value;x=x.next().value;return[c,x.component]}));
B.insertedContent=new Map;return B};
_.w(m6,_.z);_.a=m6.prototype;_.a.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var B=_.p(_.Y9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=B.next();!c.done;c=B.next())c.value.useCompactList=this.useCompactList};
_.a.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var B=_.p(_.Y9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=B.next();!c.done;c=B.next())c=c.value,c.sizing=this.sizing,c.typographyBump=this.typographyBump};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.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]]"}}}};
_.a.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}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.$9(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19351_throttledOnResize=new _.eA(this.resizeObserved,_.Yu("rich_grid_resize_delay_ms",50),this)};
_.a.detached=function(){var B;(B=this.resizeObserver)==null||B.disconnect();document.removeEventListener("yt-page-type-changed",_.$9(this,this.onPageChange))};
_.a.insertRichSection=function(B){var c=B.richItemTargetId;B=B.richSectionRendererToInsert;c&&B&&(this.insertedContent.set(c,{content:B,timestamp:Date.now()}),this.reflowContent())};
_.a.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.a.computeIsInlinePreviewEnabled=function(B,c,x){return _.T("web_disable_inline_preview")?!1:!x&&_.t$B({miniplayerIsActive:B,miniplayerPlaybackState:c})};
_.a.computeSizing=function(){var B=_.aX7(this.data);if(B||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return B?this.useCompactList?"COMPACT":B:this.miniMode?"COMPACT":_.T("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.a.updateItemMinAndMaxWidth=function(){var B=_.Yu("rich_grid_max_item_width",500);B>0&&_.k9(this.hostElement,{"--ytd-rich-grid-item-max-width":B+"px"});var c;B=this.getRichItemMinWidth((c=this.hostElement)==null?void 0:c.clientWidth);B>0&&_.k9(this.hostElement,{"--ytd-rich-grid-item-min-width":B+"px"})};
_.a.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.a.resizeObserved=function(){_.sp(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.a.navigateBackToHome=function(){_.T("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var B=_.cp().resolve(_.rV).isOnWatch(),c,x=((c=_.Kr(location.pathname))==null?void 0:c.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(x)||B)&&this.gnomeContents&&_.T("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);B&&this.exploreHubContents&&_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.uG().dispatch(_.YN({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.a.onPageChange=function(){var B=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.T("disable_chip_select_on_nav")||_.sp(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.EE.addJob(function(){B.pageLoadingFromNavigation=!1;_.T("disable_chip_select_on_nav")&&_.T("h5_reset_cache_and_filter_before_update_masthead")&&B.resetCacheAndIsFilteredFeed();B.setMasthead();B.maybeSetBigYoodle();B.forceRefreshAndLog();B.terminateVideoPreview();_.T("web_hide_gnome_until_user_navigates_back_to_home")&&
(B.dataChanged(),_.fl(B,function(){if(B.showGnomeContents){var c=Array.from(_.Y9(B.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){P=_.Y9(P).querySelector("ytd-rich-shelf-renderer");return!!P&&P.isGnomeShelf()});
if(c){c=c.offsetTop-B.contentsElement.offsetTop;var x=_.cp().resolve(_.rV).getCurrentPage();x&&x.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}));
_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(B.dataChanged(),_.fl(B,function(){if(B.showExploreHubContents&&!_.T("web_explore_hub_no_scroll")){var c=Array.from(_.Y9(B.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){return!!P.querySelector("ytd-talk-to-recs-flow-renderer")});
if(c){c=c.offsetTop-B.contentsElement.offsetTop;var x=_.cp().resolve(_.rV).getCurrentPage();x&&x.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}))},8)):((_.T("web_hide_gnome_until_user_navigates_back_to_home")||_.T("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.a.dataChanged=function(){var B=this,c=_.Yu("web_rich_grid_row_margin",0);c>0&&_.k9(this.hostElement,{"--ytd-rich-grid-row-margin":c+"px"});_.sp(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.fl(this,function(){B.updateRichItemGridPositions();B.contentsElement&&_.k9(B.hostElement,{"--ytd-rich-grid-content-offset-top":B.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.a.initResizeObserver=function(){var B=this;if(window.ResizeObserver){var c;(c=this.resizeObserver)==null||c.disconnect();var x=!1;this.resizeObserver=new ResizeObserver(function(){if(x){var P;(P=B.resizeObserver)==null||P.disconnect();var Y;(Y=B.JSC$19351_throttledOnResize)==null||Y.fire();requestAnimationFrame(function(){var k;(k=B.JSC$19351_throttledOnResize)==null||k.fire();B.initResizeObserver()})}else if(x=!0,B.resizeOnObserverInit){var g;
(g=B.JSC$19351_throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.a.contentLengthChanged=function(){if(_.T("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.sp(this.hostElement,"ytd-rich-item-index-update-action")};
_.a.updateElementsPerRow=function(){_.sp(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.YN({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.YN({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.a.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.a.onRichShelfRendererCollapse=function(B){if(this.shownItems){var c=B.detail;B=this.shownItems.findIndex(function(P){var Y,g;return((g=_.t(P==null?void 0:(Y=P.richSectionRenderer)==null?void 0:Y.content,_.pJ5))==null?void 0:g.trackingParams)===c});
var x=B+1;B<0||x>=this.contentsElement.children.length||!this.shownItems[x].richItemRenderer||this.contentsElement.children[x].scrollIntoView({behavior:"smooth",block:"start"})}};
_.a.onSoftReloadPage=function(){this.scrollUpToTop()};
_.a.handleRerenderDownloadsData=function(){_.T("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.a.handlePlaylistRemoveVideosAction=function(B){var c;if(((c=_.t(B,_.IZ5))==null?0:c.setVideoIds)&&this.data&&this.data.contents){B=_.t(B,_.IZ5).setVideoIds;for(c=this.data.contents.length-1;c>=0;){var x=_.t(this.data.contents[c],_.la);(x=x&&_.t(x.content,_.v7))&&x.setVideoId&&B.includes(x.setVideoId)&&this.splice("data.contents",c,1);c--}this.updateIndices()}};
_.a.updateIndices=function(){if(this.data&&this.data.contents)for(var B=0;B<this.data.contents.length;B++)this.set("data.contents."+B+".richItemRenderer.index",_.fk(String(B+1)))};
_.a.hasTopRowInlinePlayableVideoWithEndorsement=function(B){var c;return!((c=B.slice(0,this.getItemsPerRow()))==null||!c.some(function(x){var P;x=_.t(x==null?void 0:(P=x.richItemRenderer)==null?void 0:P.content,_.yR);var Y;return(x==null?void 0:x.inlinePlaybackEndpoint)&&(x==null?void 0:(Y=x.thumbnailOverlays)==null?void 0:Y.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.a.refreshGridLayoutNew=function(B,c,x,P){var Y=P.postsPerRow;var g=P.slimItemsPerRow;var k=P.gameCardsPerRow;P=P.miniGameCardsPerRow;var n;if((n=this.data)==null||!n.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var d=_.MyX(this.data.responsiveContainerConfiguration,this.containerWidth),q;n=_.D_(Object.assign({},d,{standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&d.isCompactList)}else n=_.D_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=n.typographyBump;q=!1;if(B||this.elementsPerRow!==n.numItems||this.postsPerRow!==Y||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
k||this.miniGameCardsPerRow!==P||this.gutter!==n.gutter)q=this.elementsPerRow!==n.numItems,this.elementsPerRow=n.numItems,this.postsPerRow=Y,this.slimItemsPerRow=g,this.gameCardsPerRow=k,this.miniGameCardsPerRow=P,this.gutter=n.gutter,this.itemWidth=n.itemWidth,this.reflowContent(c),_.k9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":n.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(x);this.ytdReduxBehavior.dispatch(_.YN({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:n.maxContainerWidth}));return q};
_.a.refreshGridLayout=function(B,c){var x,P=(x=this.hostElement)==null?void 0:x.clientWidth;this.containerWidth=this.adjustRichGridWidth(P,!0);var Y;if((Y=this.data)==null||!Y.contents||!this.containerWidth)return B&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.T("rg_pending_reflow_ks")&&(B=!0,this.pendingForceReflow=!1);x=this.getRichItemMinWidth(P);var g=this.isShortsPanel?146:194,k=this.getMiniGameCardMinWidth(),n=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
P=x=this.calcElementsPerRow(x,n);(Y=x<=3&&this.miniModeAllowed())&&(x=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(x,n,this.isDefaultGrid);n=this.calcElementsPerRow(g,b);var d=this.calcElementsPerRow(this.isCompactGrid?g:154,b);g=this.calcElementsPerRow(this.isCompactGrid?g:k,b);k=!1;if(this.sizing)return this.refreshGridLayoutNew(B,c,Y,{postsPerRow:P,slimItemsPerRow:n,gameCardsPerRow:d,miniGameCardsPerRow:g});if(B||this.elementsPerRow!==x||this.postsPerRow!==P||this.slimItemsPerRow!==
n||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==g)k=this.elementsPerRow!==x,this.elementsPerRow=x,this.postsPerRow=P,this.slimItemsPerRow=n,this.gameCardsPerRow=d,this.miniGameCardsPerRow=g,this.reflowContent(c),this.updateElementsPerRow(),_.k9(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)&&_.k9(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Y);_.sp(this.hostElement,"yt-rich-grid-layout-refreshed");return k};
_.a.getRichItemMinWidth=function(B){var c=_.Yu("rich_grid_min_item_width",310);if(!_.T("kevlar_disable_min_width_override")){var x,P;c=(P=(x=this.data)==null?void 0:x.minItemWidth)!=null?P:c}return c+_.Rid(B)};
_.a.calcMaxSlimElementsPerRow=function(B,c,x){return(x===void 0?0:x)?B===1?2:B%2===0?_.T("web_shorts_2_by_3_reduce_items_per_row")&&B>=4?B/2*3-1:B/2*3:_.T("web_shorts_2_by_3_reduce_items_per_row")&&B>=3?B+1:B+2:c*2};
_.a.adjustRichGridWidth=function(B,c){var x=_.T("disable_rich_grid_guide_compensation");if(!this.isWatch&&!x){x=_.cp().resolve(_.Bp(_.zH));var P=x==null?void 0:x.guideElement;if(!(!x||x.getData()||P!=null&&P.opened||x.getMiniGuideVisible()))if(x.canFitPersistentGuide(B)&&x.getGuideExpandsAutomatically()){var Y,g,k=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(g=Y.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));B-=k||0}else if(x.canFitMiniGuide(B)){var n;
Y=Number((k=window.getComputedStyle(this.hostElement))==null?void 0:(n=k.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:n.replace("px",""));B-=Y||0}}B>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(B-=c?32:48));return B};
_.a.calcElementsPerRow=function(B,c){var x=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),P=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((x+P)/(B+P))||1,c)};
_.a.reflowContent=function(B){var c=this;if(!this.isReflowing){this.isReflowing=!0;var x,P,Y=!!((x=this.data)==null?0:(P=x.contents)==null?0:P.some(function(V){return _.t(V,_.sB)}));
x=this.getItemsPerRow();var g;P=(g=this.data)==null?void 0:g.reflowOptions;B&&(_.Op("rgr_s"),_.fl(this,function(){_.Op("rgr_nrf")}));
B={};(g=_.Y9(this.hostElement).querySelector("#contents"))&&(B={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];var k=(_.T("web_hide_gnome_behind_feed_filter_chip")||_.T("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,n=_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,b=-1,d=-1;if(this.isHomePage&&n){for(n=0;n<g.length;n++){var q=void 0,C=void 0;_.t((q=g[n])==null?void 0:
(C=q.richSectionRenderer)==null?void 0:C.content,o1r)&&(d=n)}d>-1&&(this.exploreHubContents=g.splice(d,1))}if(this.isHomePage&&k){for(d=0;d<g.length;d++)C=q=void 0,(n=_.t((q=g[d])==null?void 0:(C=q.richSectionRenderer)==null?void 0:C.content,_.pJ5))&&k&&(C=q=void 0,n=_.t((q=n)==null?void 0:(C=q.contents)==null?void 0:C[0],_.la),q=void 0,_.t((q=n)==null?void 0:q.content,_.ki3)&&(b=d));b>-1&&(this.gnomeContents=g.splice(b,1))}var h=ddo(g,x,Y,P,this.getRichGridStyle(),B,this.insertedContent);Y=function(){c.shownItems=
h;c.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(h),_.fl(this,Y)):Y()}};
_.a.getFirstRowItems=function(B){for(var c=[],x=0;x<B.length;x++){var P=void 0,Y=void 0,g=void 0,k=void 0,n=void 0,b=void 0;if(((P=B[x])==null?void 0:(Y=P.richItemRenderer)==null?void 0:Y.rowIndex)===0||((g=B[x])==null?void 0:(k=g.richGroupRenderer)==null?void 0:k.rowIndex)===0||((n=B[x])==null?void 0:(b=n.richSectionRenderer)==null?void 0:b.rowIndex)===0)c.push(B[x]);else break}return c};
_.a.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.a.handleChipCloudChipSelectAction=function(B,c){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.T("web_hide_gnome_behind_feed_filter_chip")&&(c?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.a.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.T("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.a.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.T("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.a.terminateVideoPreview=function(){_.sp(this.hostElement,"yt-terminate-video-preview-action")};
_.a.updateRichItemGridPositions=function(){var B={gridData:{gridColumnCount:this.elementsPerRow}},c;if((c=this.data)==null?0:c.trackingParams)this.loggingRefactor?_.q_().stateChanged(this.data.trackingParams,B):(c=_.Wf())&&_.Ai(c,_.VF(this.data.trackingParams),B);_.sp(this.hostElement,"ytd-rich-item-index-update-action")};
_.a.miniModeAllowed=function(){return _.T("disable_channels_mini_mode")?!1:this.isChannelPage};
_.a.getMiniGameCardMinWidth=function(){return 154};
_.a.updateMiniMode=function(B){this.miniMode=this.miniModeAllowed()&&B;this.ytdReduxBehavior.dispatch(_.YN({type:"SET_RICH_GRID_MINI_MODE",payload:B}))};
_.a.isCurrentPage=function(){return location.pathname===this.pagePath};
_.a.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var B=_.cp().resolve(_.rV).getCurrentPage();B&&B.setScrollTop(0)}};
_.a.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.a.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.a.maybeSetBigYoodle=function(){var B,c=(B=this.data)==null?void 0:B.bigYoodle;this.bigYoodleData!==c&&(this.bigYoodleData=c)};
_.a.setMasthead=function(){var B;((B=this.data)==null?0:B.masthead)?this.mastheadData=this.data.masthead:_.T("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.a.getRichGridStyle=function(){var B,c;return(c=(B=this.data)==null?void 0:B.style)!=null?c:"RICH_GRID_STYLE_UNKNOWN"};
_.a.onIsShortsGridChange=function(){var B=this.ytdReduxBehavior,c=B.dispatch,x=this.getRichGridStyle();c.call(B,_.YN({type:"SET_RICH_GRID_STYLE",payload:x}))};
_.AJ.Object.defineProperties(m6.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var B=_.cp().resolve(_.rV).getCurrentPage(),c,x,P;return(((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_audio_pivot"||_.T("web_enable_channel_pivot_panel")&&((x=this.data)==null?void 0:x.targetId)==="browse-feedFEsfv_channel_pivot"||_.T("web_enable_effect_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_effect_pivot")&&(B==null?void 0:B.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("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 B;return!((B=this.data)==null?0:B.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var B;return((B=_.cp().resolve(_.rV).getCurrentPage())==null?void 0:B.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var B;return((B=_.cp().resolve(_.rV).getCurrentPage())==null?void 0:B.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var B;return this.hideChipsBar||(((B=this.data)==null?void 0:B.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.T("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="watch-next-feed"&&!_.T("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?0:B.enableContentSpecificAspectRatio)||((c=this.data)==null?0:(x=c.responsiveContainerConfiguration)==null?0:x.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Yu("web_continuation_handler_margin",0):0}}});
m6.prototype.onIsShortsGridChange=m6.prototype.onIsShortsGridChange;m6.prototype.onReloadContinuationFinish=m6.prototype.onReloadContinuationFinish;m6.prototype.reflowContent=m6.prototype.reflowContent;m6.prototype.handleRerenderDownloadsData=m6.prototype.handleRerenderDownloadsData;m6.prototype.onRichShelfRendererCollapse=m6.prototype.onRichShelfRendererCollapse;m6.prototype.onRequestElementsPerRow=m6.prototype.onRequestElementsPerRow;m6.prototype.contentLengthChanged=m6.prototype.contentLengthChanged;
m6.prototype.dataChanged=m6.prototype.dataChanged;m6.prototype.onSizingChange=m6.prototype.onSizingChange;m6.prototype.onUseCompactListChange=m6.prototype.onUseCompactListChange;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],m6.prototype,"ironResizableBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],m6.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],m6.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],m6.prototype,"componentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],m6.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],m6.prototype,"miniMode",void 0);_.L([_.F({value:[]}),_.H("design:type",Array)],m6.prototype,"shownItems",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],m6.prototype,"isReflowing",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],m6.prototype,"isFilteredFeed",void 0);_.L([_.F({selector:_.YPQ}),_.H("design:type",Boolean)],m6.prototype,"guideIsExpanded",void 0);
_.L([_.F({selectorArgs:["entitySelectorType"],selector:function(B,c){if(_.T("kevlar_modern_downloads_page")&&c&&c!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var x=B.entities;c=_.NZ(x);var P=_.Iw(x),Y=_.mVq(B),g=_.he7(B);B=_.TJ7(B);var k=_.Dk$(x),n=_.hm(c);x=_.Jm(x);return _.QaX(c,P,k,Y,g,n,x,B);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return c=_.NZ(B.entities),_.vK7(c);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return c=
_.idx(B.entities),_.zjA(c);default:_.Ob(new _.mc("Error: entitySelectorType defined but not matched in selector.",B,c))}}}),
_.H("design:type",Object)],m6.prototype,"entityDrivenRichGridData",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"resizeOnObserverInit",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"bigYoodleData",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"mastheadData",void 0);_.L([_.F(),_.H("design:type",Boolean)],m6.prototype,"isInlinePreviewDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"disableStickyFilterBar",void 0);
_.L([_.F(),_.H("design:type",Object)],m6.prototype,"transparentBackgroundChipsBar",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m6.prototype,"hideChipsBar",void 0);_.L([_.F(),_.H("design:type",Object)],m6.prototype,"isWatchDefaultLayout",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m6.prototype,"continuationShowButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m6.prototype,"rowReducedHorizontalMargin",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m6.prototype,"useCompactList",void 0);_.L([_.F({selector:function(B){return _.Iw(B.entities).length>0}}),
_.H("design:type",Object)],m6.prototype,"manualDownloadsPresent",void 0);_.L([_.F({selector:function(B){return _.NZ(B.entities).length>0}}),
_.H("design:type",Object)],m6.prototype,"smartDownloadsPresent",void 0);_.L([_.F({selector:_.he7}),_.H("design:type",Object)],m6.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.F({selector:_.mVq}),_.H("design:type",Object)],m6.prototype,"hasOptedIntoSmartDownloads",void 0);_.L([_.bF("useCompactList"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"onUseCompactListChange",null);
_.L([_.bF("sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"onSizingChange",null);_.L([_.F({selector:_.k3C}),_.H("design:type",Number)],m6.prototype,"miniplayerPlaybackState",void 0);_.L([_.F({selector:_.Ev}),_.H("design:type",Boolean)],m6.prototype,"miniplayerIsActive",void 0);
_.L([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],m6.prototype,"isInlinePreviewEnabled",void 0);_.L([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.H("design:type",String)],m6.prototype,"sizing",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],m6.prototype,"elementsPerRow",void 0);
_.L([_.F(),_.H("design:type",Object)],m6.prototype,"typographyBump",void 0);_.L([_.F(),_.H("design:type",Number)],m6.prototype,"itemWidth",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],m6.prototype,"headerElement",void 0);_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],m6.prototype,"contentsElement",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"dataChanged",null);
_.L([_.CF("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"contentLengthChanged",null);_.L([_.nF("yt-request-elements-per-row"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"onRequestElementsPerRow",null);
_.L([_.nF("yt-rich-shelf-renderer-collapse"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m6.prototype,"onRichShelfRendererCollapse",null);_.L([_.CF("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"handleRerenderDownloadsData",null);
_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],m6.prototype,"entitySelectorType",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isSub",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isWatch",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isShortsPanel",null);_.L([_.F({reflectToAttribute:!0}),_.Q("isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"reducedTopMargin",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data","isWatch","isWatchDefaultLayout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"noTopMargin",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("isInlinePreviewEnabled","shownItems"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"topRowEndorsement",null);_.L([_.Q("data.header"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"hideHeader",null);_.L([_.nF("yt-rich-grid-reflow"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],m6.prototype,"reflowContent",null);
_.L([_.nF("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"onReloadContinuationFinish",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isSlimGrid",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isShortsGrid",null);
_.L([_.Q("data","isSlimGrid","isShortsGrid"),_.F(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"noRichItemGutterMargins",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isShortsGridSlim",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isCompactGrid",null);
_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"isDefaultGrid",null);_.L([_.Q("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"hideChipsBarOnHome",null);_.L([_.Q("data.targetId"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"hideChipsBarOnWatch",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"onIsShortsGridChange",null);_.L([_.Q("data.enableContentSpecificAspectRatio"),_.F(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m6.prototype,"force16By9ThumbnailAspectRatio",null);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],m6.prototype,"continuationTriggerOffset",null);_.L([_.y({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],m6);
_.G(m6,"ytd-rich-grid-renderer",function(){if(Ddo!==void 0)return Ddo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ddo=B},{mode:2});var kDN=_.rM(function(B){var c=B.thumbsUp,x=B.thumbsDown,P=B.rightAlignThumbs;B=_.p(_.$D(!1,void 0,"FjNDrf"));var Y=B.next().value,g=B.next().value;B=_.p(_.$D(!1,void 0,"Tphjfb"));var k=B.next().value,n=B.next().value;B={};return _.U("div",{class:_.Kw("ytwThumbsUpDownThumbs",(B.ytwThumbsUpDownRightAlign=function(){return P==null?void 0:P()},B))},_.U(_.Jb,{data:c,
onToggle:function(b){g(b);k()&&n(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}),_.U(_.Jb,{data:x,
onToggle:function(b){n(b);Y()&&g(!1)},
buttonShapeOverrides:function(){return{toggled:k()}}}))},"Ci");
kDN.idomCompat=!0;var $Kz=_.rM(function(B){var c=function(){return B.data().pendingStateEntityKey||""},x=_.jA(_.J5B,c),P=function(){var n;
if(!(n=B.disabled())){var b;n=!((b=x())==null||!b.isPendingResponse)}return n},Y=_.p(_.$D(hpo(""),void 0,"aC8eBe")),g=Y.next().value,k=Y.next().value;
_.JR(function(){requestAnimationFrame(function(){var n=B.data().onShowAnimationMs||0;n=n>0?hpo("--chip-animation-duration: "+n+"ms;"):hpo("");k(n)})});
return _.U("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:g},_.U(_.mV,{each:function(){return B.data().chipData||[]},
keyBy:"REFERENCE"},function(n){return _.U(XEB,{data:n,disabled:P,pendingStateKey:c,onError:B.onError})}))},"Di"),XEB=_.rM(function(B){var c=_.Ho("button"),x=_.p(_.$D(!0,void 0,"NaMiCd")),P=x.next().value,Y=x.next().value,g=function(){return B.data().text.content},k=_.qe(function(n){var b,d,q,C,h,V,N,l;
return _.X(function(E){switch(E.nextAddress){case 1:n.stopPropagation();if(B.disabled())return E.return();d=String(Math.floor(((b=_.kx())==null?void 0:b.getCurrentTime())||0)*1E3);q="youchat-"+Date.now();C=function(){_.zl(B.data().onClick||{});var S={continuationCommand:{token:B.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},M={inputComposerFormData:{clientMessageId:q,playerOffsetMs:d}};return new Promise(function(f,Z){_.zl(S,{form:{formData:M},commandController:{onSuccess:function(u,
e){f(e)},
onServerError:function(u,e){Z(e.error)}}})})};
h=_.WBr(B.pendingStateKey());h(!0);_.kTB("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");Y(!1);_.kM(E,2);return _.K(E,C(),4);case 4:_.Gw(E,3);break;case 2:V=_.be(E),(l=(N=B).onError)==null||l.call(N,V);case 3:h(!1),_.Kq(E)}})});
return _.U(_.m,{cond:P,then:function(){return _.U("div",{class:"ytwYouChatChipsDataChipWrapper"},_.U("button",{el:c,class:"ytwYouChatChipsDataChip","data-disabled":B.disabled,"on:click":k,tabindex:0},g))}})},"Ei");var n$S=_.rM(function(B){var c=B.data;return _.U("yt-conversation-resource-view-model",{class:_.Kw("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.U(_.IF,{data:function(){var x,P;return((x=c().conversationResourceData)==null?void 0:(P=x.learningGuideData)==null?void 0:P.sections)||[]}},{expandableMetadataViewModel:function(x){return _.U(_.FqS,{data:x.data})}}))},"Fi");
n$S.idomCompat=!0;var bvr=_.rM(function(B){var c=function(){var Z;return(Z=B.data().text)==null?void 0:Z.content},x=function(){var Z,u;
return(Z=B.data().webData)==null?void 0:(u=Z.textResult)==null?void 0:u.content},P=_.cp().resolve(_.AX),Y=_.X5(),g=function(){return B.data().chatResponseStyle},k=function(){return!B.data().transparentBackground},n=function(){return B.data().rightAlignThumbs},b=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:B.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},d=function(){var Z;
return B.data().webData||((Z=B.data().text)==null?void 0:Z.content)||B.data().videoResultsData||B.data().conversationResourceViewModel||B.data().quiz},q=function(){var Z;
return(Z=B.data().videoResultsData)==null?void 0:Z.videoShelf},C=function(){var Z;
return _.t(((Z=B.data().videoResultsData)==null?void 0:Z.videoShelf)||{},SOz)},h=function(){var Z;
return(Z=B.data().webData)==null?void 0:Z.sourcesShelf},V=function(){var Z;
return _.t(((Z=B.data().webData)==null?void 0:Z.sourcesShelf)||{},SOz)},N=function(){return _.t(B.data().conversationResourceViewModel||{},GTo)},l=function(){return _.t(B.data().quiz||{},FBi)},E=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:B.data().thumbsDownViewModel&&B.data().thumbsUpViewModel},S=function(){return _.t(B.data().thumbsUpViewModel,_.V7)},M=function(){return _.t(B.data().thumbsDownViewModel,_.V7)};
_.JR(function(){requestAnimationFrame(function(){var Z;(Z=B.shouldAnimateIcon)!=null&&Z.call(B)&&lVF(Y.lottieEl)})});
var f={};return _.U("you-chat-item-view-model",{class:_.Kw("ytwYouChatItemViewModelYouChatItemViewModel",(f.ytwYouChatItemViewModelHostNoPadding=function(){return!1},f)),
"data-target-id":function(){return B.data().id||""}},_.U(_.m,{cond:function(){return B.data().removeIcon?!1:d()},
then:function(){var Z={};return _.U("div",{"aria-hidden":"true"},_.U(_.j5,{className:_.Kw("ytwYouChatItemViewModelIcon",(Z.ytwYouChatItemViewModelRtl=P==="rtl",Z.ytwYouChatItemViewModelHidden=function(){return!(B.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:d())},Z)),
animationName:"YOUCHAT_ICON",data:b,animationRef:Y}))}}),_.U(_.m,{cond:d,
then:function(){var Z={};return _.U("div",{class:_.Kw("ytwYouChatItemViewModelHost",(Z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},Z.ytwYouChatItemViewModelGradientBackground=k,Z)),
role:"alert"},_.U(_.m,{cond:c,then:function(u){return _.U(_.oh,{text:u})}}),_.U(_.m,{cond:x,
then:function(u){return _.U(_.oh,{text:u})}}),_.U(_.m,{cond:q,
then:function(){return _.U("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.U(_.Ez,{data:C,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.U(_.m,{cond:h,
then:function(){return _.U("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.U(_.Ez,{data:V,hasPeek:!0,disableArrows:!1}))}}),_.U(_.m,{cond:N,
then:function(){return _.U(n$S,{data:N})}}),_.U(_.m,{cond:l,
then:function(){return _.U(_.IQS,{data:l})}}),_.U(_.m,{cond:E,
then:function(){return _.U(kDN,{thumbsUp:S,thumbsDown:M,rightAlignThumbs:n})}}))}}),_.U(_.m,{cond:function(){return B.data().chipsData},
then:function(Z){return _.U($Kz,{data:Z,disabled:B.pending,onError:B.onError})}}))},"Gi");
bvr.idomCompat={callbacks:{onError:!0,onSend:!0}};var KJz=_.rM(function(B){var c=function(){return B.data().choiceSelectedText};
return _.U("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.U(_.m,{cond:c,then:function(){return _.U("div",{class:"ytYouChatUserTurnChoiceSelected"},_.U(_.RF,{text:c}))}}),_.U("div",{class:"ytYouChatUserTurnUserMessage"},function(){return B.data().text}))},"Hi");var jLr=_.rM(function(B){var c=_.p((0,_.scW)(B.data)).next().value;return _.U("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return B.data().targetId||""}},_.U(_.IF,{data:function(){return B.data().header}},{chipBarViewModel:_.Dry}),_.U(_.IF,{data:function(){return c().contents}},{accordionViewModel:_.lQd,
alertBannerViewModel:_.Pu0,chatLoadingViewModel:_.h1z,chatUserTurnViewModel:KJz,learningJourneyLoaderViewModel:_.NFZ,lockupViewModel:function(x){return _.U(_.ap,{data:x.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:B.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(x){return _.U(bvr,{data:x.data,pending:!1})}}))},"Ii");_.xU(_.rM(function(B){var c=_.p((0,_.scW)(B.data)).next().value,x=_.Ho("yt-section-list-renderer"),P=_.p(_.$D(void 0,void 0,"rQpPgc")),Y=P.next().value,g=P.next().value,k=function(){var n;return _.t((n=B.data().sectionListLayoutConfiguration)==null?void 0:n.layoutConfiguration,zpc)};
_.lk(function(){var n,b=(n=x.value)==null?void 0:n.clientWidth;if(k()){n=k();var d=n.responsiveSize;b=b<528?"CONTAINER_SIZE_NARROW":b<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var q=_.p(n.responsiveMap||[]);for(var C=q.next();!C.done;C=q.next())if(C=C.value,C.containerSize===b){q=C.containerType;break b}q=void 0}if(q&&d){b:{if(q==="CONTAINER_TYPE_VERTICAL_LIST")if(d==="RESPONSIVE_SIZE_STANDARD"){if(b!=="CONTAINER_SIZE_NARROW"){C="50%";break b}}else{C=b==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}C=void 0}n={responsiveSize:d,containerSize:b,containerType:q,force16By9ThumbnailAspectRatio:!n.enableContentSpecificAspectRatio,contentPreviewWidth:C,fullbleed:(q==="CONTAINER_TYPE_VERTICAL_LIST"||q==="CONTAINER_TYPE_GRID")&&b==="CONTAINER_SIZE_NARROW"&&!1}}else n=void 0}else n=void 0;g(n)});
return _.U("yt-section-list-renderer",{class:_.Kw("ytSectionListRendererHost",B.className),el:x,"data-target-id":function(){return B.data().targetId||""}},_.U(_.IF,{data:function(){return c().contents}},{itemSectionRenderer:function(n){return _.U(jLr,{data:n.data,
containerLayoutConfig:Y})}}))},"Ji"),"yt-section-list-renderer",{props:{data:_.rk,
className:_.cw}});var UKz;var dKB;var qDo=function(){return _.z.apply(this,arguments)||this};
_.w(qDo,_.z);_.L([_.F(),_.H("design:type",Object)],qDo.prototype,"data",void 0);_.L([_.Em({is:"yt-alert-renderer",disableElementRegistration:!0})],qDo);
_.G(qDo,"yt-alert-renderer",function(){if(dKB===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;UKz===void 0&&(UKz=document.createElement("template"));var P=UKz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);dKB=B}B=dKB;return B},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.zPi=function(B,c){var x,P;c=c===void 0?{}:c;var Y,g,k,n,b,d,q,C,h,V,N,l;return _.X(function(E){switch(E.nextAddress){case 1:Y=c;g=Y.shouldWrap===void 0?!0:Y.shouldWrap;k=Y.skipTransitionTimeoutMs===void 0?300:Y.skipTransitionTimeoutMs;n=Y.beforeTransition;b=Y.afterTransition;if(!g||!document.startViewTransition||document.visibilityState==="hidden")return E.return(B());x=window.innerWidth;P=window.innerHeight;d=!1;(q=n)==null||q();_.kM(E,2);C=document.startViewTransition(B);h=setTimeout(function(){C.skipTransition();
d=!0},k);
return _.K(E,C.ready,4);case 4:return clearTimeout(h),_.K(E,C.finished,5);case 5:clearTimeout(h);(V=b)==null||V();_.Gw(E,0);break;case 2:N=_.be(E),(l=b)==null||l(),N&&!d&&document.visibilityState!=="hidden"&&x===window.innerWidth&&P===window.innerHeight&&_.lb(N),_.Kq(E)}})};
_.WS=function(){for(var B=Array(36),c=0,x,P=0;P<36;P++)P==8||P==13||P==18||P==23?B[P]="-":P==14?B[P]="4":(c<=2&&(c=33554432+Math.random()*16777216|0),x=c&15,c>>=4,B[P]=_.t_d[P==19?x&3|8:x]);return B.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 SG8=_.r2(['<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>']),
ysz=_.Xfm(SG8);ysz.setAttribute("style","display: none;");document.head.appendChild(ysz.content);_.lT=_.KVw(function(B){var c=_.df("DIV");B&&(c.className=B);c.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";B=_.df("DIV");_.nFm(B,"200px","200px");c.appendChild(B);document.body.appendChild(c);B=c.offsetWidth-c.clientWidth;_.qH(c);return B});var Gz6;var MTz;var EO=function(){var B=_.z.apply(this,arguments)||this;B.icon=null;return B};
_.w(EO,_.z);EO.prototype.dismiss=function(){_.aJ(this.hostElement,"yt-live-chat-error-message-dismiss")};
EO.prototype.computeIcon=function(B){return B&&B.iconType?"yt-icons:"+B.iconType.toLowerCase():"yt-icons:close"};
_.L([_.F(),_.H("design:type",Object)],EO.prototype,"data",void 0);_.L([_.F({computed:"computeIcon(data.icon)"}),_.H("design:type",Object)],EO.prototype,"icon",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],EO);
_.G(EO,"yt-live-chat-error-message-renderer",function(){if(MTz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Gz6===void 0&&(Gz6=document.createElement("template"));var P=Gz6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);MTz=B}B=MTz;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var NNF,IJi,Jky,WZS,FZ8,vhB,zoi,S8N,ykl,NF,Gsi,MHs,IC,LZB,ZeF,Hei,fJi,ieN,AkS,uly,Du6,rkr,Roo,eo8,BOl,czz,xqc,Pq6,Y7N,alz,gAN,sQS,Jp,pQr,kpN,XQz,bXA,KrB,jQB,Uqc,dqA,q7B,$qi,nAz,hKl,mqz,TOF,VDS,tDS,Cq6,NOz;NNF=function(B,c){return _.X9(B.entities,"timedMarkersListSyncEntity",c)};
IJi=function(B,c){return _.X9(B.entities,"liveReactionsDataEntity",c)};
Jky=function(B,c){B=_.X9(B.entities,"booleanEntity",c);return!(!B||!B.value)};
WZS=function(B,c){var x=_.Wf();x&&B&&_.Gq(x,_.VF(B),c)};
_.lJz=function(){_.T("web_watch_log_theater_mode")&&_.y5x("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.EhS=function(B,c,x){if(!B.includes("START_TIME_PLACEHOLDER")||!B.includes("END_TIME_PLACEHOLDER"))return B;var P=new Date(0),Y=new Date(0);P.setUTCMilliseconds(c);Y.setUTCMilliseconds(x);return B.replace("START_TIME_PLACEHOLDER",_.MZ(P,7)).replace("END_TIME_PLACEHOLDER",_.MZ(Y,7))};
_.OeN=function(B){return B.watch.isWatchActive};
_.ohB=function(B){return _.vv(B)||_.zj(B)||_.ZoO(B)};
_.QKz=function(B){return!_.ohB(B)};
_.wi=function(B){return B.watch.watchScrollTop};
FZ8=function(B){return B.watch.isLiveChatCollapsed};
vhB=function(B){return B.watch.openEngagementPanels};
zoi=function(B,c){return _.X9(B.entities,"booleanEntity",c)};
S8N=function(){return function(B){_.iF(_.Uy("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:B}))}};
ykl=function(B){switch(B){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}};
NF=function(B,c,x){var P=_.vH(x);B&&c&&P&&B.getPlayerPromise().then(function(Y){_.Knx(P)&&_.Wo();(new _.Ip(Y)).executeCommand(P,c);_.T("continue_playback_on_desktop_companion_click")||Y.pauseVideo()})};
Gsi=function(B){var c=_.e5(),x;if(x=_.Gu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;x=(P=x())==null?void 0:P.layoutId}else x=null;NF(c,x,B)};
MHs=function(B){var c=_.e5(),x;if(x=_.Gu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;x=(P=x())==null?void 0:P.layoutId}else x=null;NF(c,x,B)};
IC=function(B,c){var x=B<0?"-":"";B=Math.abs(B);var P=Math.floor(B/3600),Y=Math.floor(B)%3600,g=Math.floor(Y/60);Y=Math.floor(Y)%60;var k="";(c===void 0?0:c)&&(k="."+Math.round((B-Math.floor(B))*10));return P>0?x+P+":"+(g<10?"0"+g:""+g)+":"+(Y<10?"0"+Y:""+Y)+k:x+g+":"+(Y<10?"0"+Y:""+Y)+k};
LZB=function(B){var c=B.match(/[^0-9:\.]/g);if(c&&c.length>0)return null;B=B.split(":");if(B.length===0||B.length>3)return null;c=1;for(var x=0;B.length>0;){var P=B.pop();if(P===void 0)break;var Y=Number(P);if(P===""||isNaN(Y))return null;x+=Y*c;c*=60}return x};
ZeF=function(B,c,x,P){B=Math.max(x,B);c=Math.min(c,P-x);B+c>P?(x=P,B=x-c):x=B+c;return{start:B,end:x}};
Hei=function(B,c,x,P,Y,g){B<x?B=x:B+Y>P&&(B=P-Y);c>P&&(c=P);c=Math.min(B+g,Math.max(B+Y,c));return{start:B,end:c}};
fJi=function(B,c,x,P,Y,g){c>P?c=P:c-Y<x&&(c=x+Y);B<x&&(B=x);B=Math.min(c-Y,Math.max(c-g,B));return{start:B,end:c}};
ieN=function(B){return _.T("web_transcript_cue_id_killswitch")?String(B):"ytd-transcript-renderer_"+B};
AkS=function(B){return _.T("web_transcript_cue_id_killswitch")?!0:B.startsWith("ytd-transcript-renderer")};
uly=function(B){var c=_.e5(),x;if(x=_.Gu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;x=(P=x())==null?void 0:P.layoutId}else x=null;NF(c,x,B)};
Du6=function(B){B.style.height="auto";B.style.height=Math.min(B.scrollHeight||20,80)+"px"};
rkr=function(B,c){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:c}}],insertByPositionInSection:{sectionTargetId:B,position:"INSERTION_POSITION_LAST"}}}]}}}};
Roo=function(B){var c=_.e5(),x;x=(x=_.Gu("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.layoutId:null;NF(c,x,B)};
eo8=function(B){var c=_.e5(),x;x=(x=_.Gu("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.layoutId:null;NF(c,x,B)};
BOl=function(B,c){c=c===void 0?!1:c;if(B.simpleText)B=[{text:B.simpleText}];else{var x;B=((x=B.runs)!=null?x:[]).map(function(P){return Object.assign({},P)})}if(c)for(c=_.p(B),x=c.next();!x.done;x=c.next())x.value.bold=!0;
return B};
czz=function(B){var c=B.startEndTimeTemplate,x=B.startTimeUtcMillis;B=B.endTimeUtcMillis;if(c&&x&&B)return _.fk(_.EhS(_.iG(c),Number(x),Number(B)))};
xqc=function(B,c){var x,P,Y=B==null?void 0:(x=B.viewCount)==null?void 0:(P=x.videoViewCountRenderer)==null?void 0:P.shortViewCount;if(!c&&Y)return Y;var g,k;return B==null?void 0:(g=B.viewCount)==null?void 0:(k=g.videoViewCountRenderer)==null?void 0:k.viewCount};
Pq6=function(B,c){var x=B==null?void 0:B.relativeDateText;return!c&&x?[x,!0]:[B==null?void 0:B.dateText,!1]};
Y7N=function(B,c,x,P,Y){P=P===void 0?!0:P;Y=Y===void 0?"":Y;var g=xqc(B,c),k=_.p(Pq6(B,c)),n=k.next().value;k=k.next().value;c=c?B==null?void 0:B.sponsorsOnlyFirstTimeLongText:B==null?void 0:B.sponsorsOnlyFirstTimeShortText;var b=[];x&&g&&b.push(g);!x&&k||!n||b.push(n);B=[].concat(_.wq(b),[c,B==null?void 0:B.stationName,B==null?void 0:B.rating,B?czz(B):void 0,B==null?void 0:B.upNextProgramText,B==null?void 0:B.superTitleLink]).filter(function(d){return!!d});
x={runs:[]};for(g=0;g<B.length;g++)x.runs.push.apply(x.runs,_.wq(BOl(B[g],P))),g<B.length-1&&x.runs.push({text:" "+Y+" ",bold:P});return x};
alz=function(B){if(B)return{runs:[{text:B,bold:!0}]}};
gAN=function(B){var c,x,P,Y;if(B=B==null?void 0:(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.results)==null?void 0:(Y=P.results)==null?void 0:Y.contents){var g,k;return(k=(g=B.find(function(n){return!!n.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:k.updatedMetadataEndpoint}};
sQS=function(B,c){var x;return(x=B.sourceConfigs)==null?void 0:x.find(function(P){return P.videoId===c})};
Jp=function(B){return B==="End of video"||B==="End of playlist"};
pQr=function(B){var c,x,P,Y;return(c=B.getWatchNextResponse())==null?void 0:(x=c.contents)==null?void 0:(P=x.twoColumnWatchNextResults)==null?void 0:(Y=P.playlist)==null?void 0:Y.playlist};
kpN=function(B){var c,x,P,Y,g,k;return(c=pQr(B))==null?void 0:(x=c.playlistButtons)==null?void 0:(P=x.menuRenderer)==null?void 0:(Y=P.topLevelButtons)==null?void 0:(g=Y[0])==null?void 0:(k=g.playlistLoopButtonRenderer)==null?void 0:k.playlistLoopStateEntityKey};
XQz=function(B){var c=_.cp().resolve(_.vK),x;return(c=(x=_.t(c.getAutoplayEndpoint(),_.fN))==null?void 0:x.playlistId)&&c===B};
bXA=function(B,c,x,P,Y){function g(){_.EE.cancelJob(WY);var k=$qi(c,x/B.getPlaybackRate()),n=k.hours,b=k.minutes;k=(k.seconds*1E3||6E4)/B.getPlaybackRate();B.setVideoTimeLeft(nAz(n,b));P&&B.getPlayerState()!==0&&B.setSleepTimerTimeLeft(nAz(n,b,!0));(n>0||b>0)&&!Y&&(WY=_.C3(_.EE,g,k))}
_.EE.cancelJob(WY);WY=_.C3(_.EE,g)};
KrB=function(B,c,x){function P(){_.EE.cancelJob(lx);var Y=$qi(c,x),g=Y.hours;Y=Y.minutes;var k=6E4/B.getPlaybackRate();if(g>0||Y>0)B.setSleepTimerTimeLeft(nAz(g,Y,!0)),lx=_.C3(_.EE,P,k)}
_.EE.cancelJob(lx);lx=_.C3(_.EE,P)};
jQB=function(B,c){var x=B.getVolume()/(c/500),P=function(Y){_.EE.cancelJob(ET);var g=Math.floor(Y-x);B.setVolume(g,!1);g>0&&(ET=_.C3(_.EE,function(){P(g)},500))};
_.EE.cancelJob(ET);ET=_.C3(_.EE,function(){P(B.getVolume())})};
Uqc=function(B,c){_.EE.cancelJob(ET);c&&B.syncVolume()};
dqA=function(){var B={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Up("SLEEP_TIMER_DISRUPTED")}}}}};_.cp().resolve(_.xu).resolveCommand(B)};
q7B=function(B){return(B.getDuration()-B.getProgressState().current)*1E3};
$qi=function(B,c){B=B+c-(0,_.BA)();if(B<=0)return{hours:0,minutes:0,seconds:0};var x=new Cq6(0,0,0,0,0,0,B);B=x.getHours();c=x.getMinutes();x=x.getSeconds();x!==0&&c++;c!==0&&c%60===0&&(B++,c=0);return{hours:B,minutes:c,seconds:x}};
nAz=function(B,c,x){return B>0&&c>0?x?_.Up("TIME_LEFT_HOURS_MINUTES",{hours:B.toString(),minutes:c.toString()}):_.Up("TIME_HOURS_MINUTES",{hours:B.toString(),minutes:c.toString()}):B>0?x?_.dj("TIME_LEFT_HOURS",B):_.dj("TIME_HOURS",B):x?_.Up("TIME_LEFT_MINUTES",{minutes:c.toString()}):_.Up("TIME_MINUTES",{minutes:c.toString()})};
hKl=function(B,c){if(B.timelyActions)return B.timelyActions.find(function(x){var P;return((P=_.t(x,OT))==null?void 0:P.cueRangeId)===c})};
mqz=function(B){var c=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Xf(B);B.keyMap_.forEach(function(x,P){_.Lx(c,P)||this.remove(P)},B)};
TOF=function(B,c){B.reloadContinuationItemsCommandMatcher=c};
_.oC=function(B,c){B.insertBefore(c,B.childNodes[0]||null)};
VDS=function(B){if(B>=48&&B<=57||B>=96&&B<=106||B>=65&&B<=90||_.bJ&&B==0)return!0;switch(B){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 _.nY;default:return!1}};
tDS=function(B){if(B.altKey&&!B.ctrlKey||B.metaKey||B.keyCode>=112&&B.keyCode<=123)return!1;if(VDS(B.keyCode))return!0;switch(B.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!_.nY;default:return B.keyCode<166||B.keyCode>183}};
Cq6=function(B,c,x,P,Y,g,k){this.date=typeof B==="number"?new Date(B,c||0,x||1,P||0,Y||0,g||0,k||0):new Date(B&&B.getTime?B.getTime():_.gQ())};
_.sZ(Cq6,_.tU);_.a=Cq6.prototype;_.a.getHours=function(){return this.date.getHours()};
_.a.getMinutes=function(){return this.date.getMinutes()};
_.a.getSeconds=function(){return this.date.getSeconds()};
_.a.getMilliseconds=function(){return this.date.getMilliseconds()};
_.a.getUTCDay=function(){return this.date.getUTCDay()};
_.a.getUTCHours=function(){return this.date.getUTCHours()};
_.a.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.a.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.a.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.a.setHours=function(B){this.date.setHours(B)};
_.a.setMinutes=function(B){this.date.setMinutes(B)};
_.a.setSeconds=function(B){this.date.setSeconds(B)};
_.a.setMilliseconds=function(B){this.date.setMilliseconds(B)};
_.a.setUTCHours=function(B){this.date.setUTCHours(B)};
_.a.setUTCMinutes=function(B){this.date.setUTCMinutes(B)};
_.a.setUTCSeconds=function(B){this.date.setUTCSeconds(B)};
_.a.setUTCMilliseconds=function(B){this.date.setUTCMilliseconds(B)};
_.a.add=function(B){_.tU.prototype.add.call(this,B);B.hours&&this.setUTCHours(this.date.getUTCHours()+B.hours);B.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+B.minutes);B.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+B.seconds)};
_.a.JSC$9290_toIsoString=function(B){var c=_.tU.prototype.JSC$9290_toIsoString.call(this,B);return B?c+"T"+_.PJ(this.getHours(),2)+":"+_.PJ(this.getMinutes(),2)+":"+_.PJ(this.getSeconds(),2):c+"T"+_.PJ(this.getHours(),2)+_.PJ(this.getMinutes(),2)+_.PJ(this.getSeconds(),2)};
_.a.equals=function(B){return this.getTime()==B.getTime()};
_.a.toString=function(){return this.JSC$9290_toIsoString()};
_.a.clone=function(){var B=new Cq6(this.date);B.firstDayOfWeek_=this.firstDayOfWeek_;B.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return B};
_.wQl=function(B){return _.YN({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:B}})};
NOz=new _.A("imageTileRenderer");var Ilr=new _.A("adGridCardCollectionViewModel");var Jzy=new _.A("carouselTitleViewModel");var Wr6=new _.A("ctaCarouselItemViewModel");var lll=new _.A("textFieldViewModel");_.EAy=new _.A("engagementPanelHeaderShowNavigationButtonCommand");var OXz=new _.A("hideEngagementPanelScrimAction");var oAA=new _.A("setActivePanelItemAction");var QQc=new _.A("showEngagementPanelScrimAction");var FrS=new _.A("updateEngagementPanelAction");var vAr=new _.A("updateSearchInVideoResultsAction");var zKB=new _.A("transcriptCueGroupRenderer");var S7r=new _.A("transcriptCueRenderer");var yzB=new _.A("transcriptFooterRenderer");var GpB=new _.A("engagementPanelAdSubtitleRenderer");var MDr=new _.A("videoDescriptionFantasySectionViewModel");var Lr8=new _.A("deleteClipEngagementPanelCommand");var ZX6=new _.A("loopCommand");var HXz=new _.A("changeCreatorEndscreenVisibilityCommand");var flr=new _.A("liveChatCallForQuestionsRenderer");var iXo=new _.A("updateTimedMarkersSyncObserverCommand");var OT=new _.A("timelyActionViewModel");var Azo=new _.A("timelyActionsOverlayViewModel");var uwS=new _.A("repeatChapterCommand");var Dqy=new _.A("watchPlayerOverflowMenuCommand");var rzF=new _.A("compositeVideoOverlayRenderer");var RKF=new _.A("sortFilterSubMenuRenderer");var eKS=new _.A("switchListItemViewModel");var Bnz=new _.A("inputComposerViewModel");var cSz=new _.A("transcriptEditSegmentCommand");var xoo=new _.A("transcriptUpdateSegmentTextCommand");var P7F=new _.A("transcriptSearchBoxRenderer");var YXS=new _.A("transcriptSegmentListRenderer");var avs=new _.A("transcriptSegmentRenderer");_.gaz=new _.A("updateDateTextAction");var s_z=new _.A("updateTitleAction");var p4c=new _.A("updateViewershipAction");var kW8=new _.A("carouselLockupRenderer");var X4s=new _.A("expandableVideoDescriptionBodyRenderer");var $oA=new _.A("videoDescriptionYouchatSectionViewModel");_.QB=_.Yu("kevlar_watch_page_horizontal_margin",24);_.nar=_.Yu("kevlar_watch_page_columns_top_padding",24);_.bzA=426+_.QB*2;_.FW=_.Yu("kevlar_watch_two_column_width_threshold",1E3);_.KYz=_.QB*2;_.j_i=_.Yu("kevlar_watch_secondary_width",402);_.UoN=_.Yu("kevlar_watch_max_player_width",1280);_.doB=_.Yu("kevlar_watch_flexy_metadata_height",136);_.qXo=_.KYz+310+_.QB;_.C7S=_.KYz+360+_.QB;var hJA={PAUSE_CHAT:18};var moy;var TnN;var vY=function(){return _.z.apply(this,arguments)||this};
_.w(vY,_.z);vY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
vY.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var B=_.t(this.data.button,_.Tj);B&&(B.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.AJ.Object.defineProperties(vY,{template:{configurable:!0,enumerable:!0,get:function(){if(TnN===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;moy===void 0&&(moy=document.createElement("template"));var P=moy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);TnN=B}B=TnN;return B}}});
_.L([_.J(_.M4),_.H("design:type",Object)],vY.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({selectorArgs:["data.enabledEntityKey"],selector:Jky,observer:"onEnabledChange"}),_.H("design:type",Boolean)],vY.prototype,"enabled",void 0);_.L([_.F(),_.H("design:type",Object)],vY.prototype,"data",void 0);_.L([_.Em({is:"yt-disableable-button-view-model",noInjection:!0})],vY);var Vzo;var tzA;var w4l=["transVert01","transVert02","transVert03"],Nnc="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),zd=function(){var B=_.z.apply(this,arguments)||this;B.emojiManager=_.Sp;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};B.reactionBuckets=[];B.noEmojiIdentifier="NO_EMOJI";return B};
_.w(zd,_.z);_.a=zd.prototype;_.a.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.a.desktopFountainEmojiSizePxChanged=function(){_.k9(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.a.createUserReactionAnimation=function(B){this.createEmojiAnimation(B,!0)};
_.a.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var B;((B=this.data)==null?0:B.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Uy("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.wq(this.emojiContainer.children)).forEach(function(c){c.remove()})};
_.a.detached=function(){this.cleanupFountain()};
_.a.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var B;this.reactionBuckets=_.wW.unsafeClone((B=this.emojiFountainData)==null?void 0:B.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.a.processEmojiBucket=function(B){var c=this;if(this.reactionBuckets&&!(B>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var x=this.reactionBuckets[B];this.generateEmojiAnimations(x);if(B<this.reactionBuckets.length-1){var P;if(x==null?0:(P=x.duration)==null?0:P.seconds)this.emojiBucketTimerId=setTimeout(function(){c.processEmojiBucket(B+1)},Number(x.duration.seconds)*1E3)}}};
_.a.generateEmojiAnimations=function(B){var c=this,x=this.getRandomEmojiIdFromBucketWithOverride(B);if(x&&x!==this.noEmojiIdentifier){var P=0;B.targetEps?(P=this.linearInterpolateBounded(1,20,100,12,B.emojiSizeIndex||0),this.createEmojiAnimation(x,!1,B.emojiAnimationMs,P),P=this.getEmojiDelayMsFromTargetEps(B.targetEps)):(this.createEmojiAnimation(x),P=this.getEmojiDelayMsFromDistribution(B.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){c.generateEmojiAnimations(B)},P)}};
_.a.getRandomEmojiIdFromBucketWithOverride=function(B){if(!(B&&B.reactionsData&&B.reactionsData.length&&B.totalReactions))return this.noEmojiIdentifier;for(var c=B.totalReactions,x=1,P=_.p(B.reactionsData),Y=P.next();!Y.done;Y=P.next())Y=Y.value,(Y.reactionWeightOverride||Y.reactionWeightOverride===0)&&Y.reactionCount&&(c-=Y.reactionCount,x-=Y.reactionWeightOverride);P=!0;x<0&&(P=!1,c=B.totalReactions,x=1);if(P&&x>0&&c===0)if(x===1){Y=0;for(var g=_.p(B.reactionsData),k=g.next();!k.done;k=g.next())k=
k.value,k.reactionCount&&k.reactionCount>0&&Y++;Y=1/Y;g=_.p(B.reactionsData);for(k=g.next();!k.done;k=g.next())k.value.reactionWeightOverride=Y}else for(Y=1/(1-x),g=_.p(B.reactionsData),k=g.next();!k.done;k=g.next())k=k.value,k.reactionWeightOverride&&(k.reactionWeightOverride*=Y);Y=Math.random();g=0;k=_.p(B.reactionsData);for(var n=k.next();!n.done;n=k.next())if(n=n.value,n.reactionCount&&(g=(n.reactionWeightOverride||n.reactionWeightOverride===0)&&P?g+n.reactionWeightOverride:g+x*n.reactionCount/
c,g>Y&&(n.reactionCount--,B.totalReactions--,n=this.reactionItemToEmojiString(n),n!==this.noEmojiIdentifier)))return n;return this.noEmojiIdentifier};
_.a.reactionItemToEmojiString=function(B){if(B.unicodeEmojiId)return B.unicodeEmojiId;if(B.emoteId)return B.emoteId;if(B.videoReactionType)switch(B.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.a.createEmojiAnimation=function(B,c,x,P){c=c===void 0?!1:c;this.lastEmojiRequestedForTesting=B;var Y=B.startsWith("yt-icons:"),g=_.vV(this.emojiManager,B);if(g||Y){var k=document.createElement("emoji");k.classList.add("yt-emoji-fountain-view-model");k.classList.add(w4l[Math.floor(Math.random()*w4l.length)]);var n=document.createElement("div");n.classList.add("yt-emoji-fountain-view-model");n.classList.add("horizontal-container");n.classList.add(Nnc[Math.floor(Math.random()*Nnc.length)]);c?(x=document.createElement("div"),
x.classList.add("user-reaction-bubble"),x.classList.add("yt-emoji-fountain-view-model"),n.appendChild(x)):(x&&(k.style.animationDuration=x+"ms",n.style.animationDuration=x+"ms"),P&&(k.style.width=P+"px",k.style.height=P+"px"));Y?(Y=document.createElement("yt-icon"),Y.polymerController.icon=B,P&&(Y.style.width=P+"px",Y.style.height=P+"px"),B=Y):B=this.emojiManager.createEmoji(g,!1);B.classList.add("yt-emoji-fountain-view-model");n.appendChild(B);k.appendChild(n);this.emojiContainer.appendChild(k);
k.addEventListener("animationend",function(){k.remove()});
var b,d;if((b=this.data)==null?0:(d=b.loggingDirectives)==null?0:d.trackingParams)c=c?_.JW(183501):_.JW(183500),WZS(this.data.loggingDirectives.trackingParams,c),_.mJ7(c);setTimeout(function(){k&&k.remove()},2E3)}};
_.a.getEmojiDelayMsFromDistribution=function(B){return Math.random()*(B||1)*1E3};
_.a.getEmojiDelayMsFromTargetEps=function(B){return Math.random()*2*(1/B)*1E3};
_.a.linearInterpolateBounded=function(B,c,x,P,Y){Y=Math.min(Math.max(Y,B),x);return(c*(x-Y)+P*(Y-B))/(x-B)};
zd.prototype.onEmojiFountainDataEntityUpdate=zd.prototype.onEmojiFountainDataEntityUpdate;zd.prototype.desktopFountainEmojiSizePxChanged=zd.prototype.desktopFountainEmojiSizePxChanged;zd.prototype.isActiveChanged=zd.prototype.isActiveChanged;_.L([_.F(),_.H("design:type",_.Fr)],zd.prototype,"emojiManager",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],zd.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],zd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zd.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(B,c){return _.X9(B.entities,"emojiFountainDataEntity",c)}}),
_.H("design:type",Object)],zd.prototype,"emojiFountainData",void 0);_.L([_.F(),_.H("design:type",Boolean)],zd.prototype,"isActive",void 0);_.L([_.bF("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"isActiveChanged",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zd.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",String)],zd.prototype,"lastEmojiRequestedForTesting",void 0);
_.L([_.F({value:function(){return _.Yu("desktop_fountain_emoji_size_px",20)}}),
_.H("design:type",Number)],zd.prototype,"desktopFountainEmojiSizePx",void 0);_.L([_.bF("desktopFountainEmojiSizePx"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"desktopFountainEmojiSizePxChanged",null);_.L([_.jr("#emoji-container"),_.H("design:type",HTMLElement)],zd.prototype,"emojiContainer",void 0);
_.L([_.bF("emojiFountainData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"onEmojiFountainDataEntityUpdate",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],zd);
_.G(zd,"yt-emoji-fountain-view-model",function(){if(tzA===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Vzo===void 0&&(Vzo=document.createElement("template"));var P=Vzo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);tzA=B}B=tzA;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Iv6;var JSl;var Sj=function(){return _.z.apply(this,arguments)||this};
_.w(Sj,_.z);Sj.prototype.onChoiceChanged=function(){this.data&&_.k9(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Sj.prototype.onChoiceChanged=Sj.prototype.onChoiceChanged;_.L([_.F(),_.H("design:type",Object)],Sj.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sj.prototype,"onChoiceChanged",null);_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Sj);
_.G(Sj,"yt-live-chat-banner-poll-choice",function(){if(JSl===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Iv6===void 0&&(Iv6=document.createElement("template"));var P=Iv6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);JSl=B}B=JSl;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var WY6;var lvF;var yB=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework_with_live");B.small=!1;return B};
_.w(yB,_.z);yB.prototype.computeIsSmall=function(){var B;return((B=this.buttonOverrides)==null?void 0:B.size)==="S"};
yB.prototype.computeId=function(){return this.data&&this.data.targetId};
_.L([_.J(_.Ly.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],yB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],yB.prototype,"id",void 0);_.L([_.F(),_.H("design:type",Object)],yB.prototype,"buttonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],yB.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yB.prototype,"modern",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.H("design:type",Object)],yB.prototype,"small",void 0);_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-button"})],yB);
_.G(yB,"yt-live-chat-button",function(){if(lvF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;WY6===void 0&&(WY6=document.createElement("template"));var P=WY6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lvF=B}B=lvF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var EaA;var Ozc;var Gd=function(){var B=_.z.apply(this,arguments)||this;B.inCollapsedBanner=!1;B.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};B.questionButtonOverrides={style:"mono",type:"filled"};return B};
_.w(Gd,_.z);_.a=Gd.prototype;_.a.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]]"}}}}}};
_.a.onContextMenuButtonClick=function(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
_.a.onYtRendererstamperFinished=function(){this.menuButton=_.Y9(this.hostElement).querySelector("#menu-button")};
_.a.dataChanged=function(){var B,c;if((c=_.t((B=this.data)==null?void 0:B.overflowMenuButton,_.z3))==null?0:c.command)this.data.contextMenuEndpoint=_.t(this.data.overflowMenuButton,_.z3).command};
_.a.onButtonClick=function(){var B,c=_.t((B=this.data)==null?void 0:B.askQuestionButton,_.z3);if(c){if(c.trackingParams&&(B=_.VF(c.trackingParams))){var x=_.Wf();x&&_.fW(x,B)}_.aJ(this.hostElement,"innertube-command",c.command)}};
Gd.prototype.onYtRendererstamperFinished=Gd.prototype.onYtRendererstamperFinished;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],Gd.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],Gd.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.F({observer:"dataChanged"}),_.H("design:type",Object)],Gd.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Gd.prototype,"inCollapsedBanner",void 0);_.L([_.F(),_.H("design:type",Object)],Gd.prototype,"buttonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],Gd.prototype,"questionButtonOverrides",void 0);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"onYtRendererstamperFinished",null);
_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Gd);
_.G(Gd,"yt-live-chat-call-for-questions-renderer",function(){if(Ozc===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;EaA===void 0&&(EaA=document.createElement("template"));var P=EaA;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Ozc=B}B=Ozc;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var oaA={};oaA.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 B=this;window.requestAnimationFrame(function(){B.restoreFocusNode_||(B.restoreFocusNode_=document.activeElement);var c=_.Fg5(B.hostElement);c.length&&c[c.length-1].focus()})},
isAttachedChanged_:function(B,c){B?this.focusChild_():c&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(B){this.hidden||_.AV(B).indexOf(this.hostElement)!==-1||(B.stopPropagation(),this.focusChild_())}};var Q_8;var FYy;var MF=function(){return _.z.apply(this,arguments)||this};
_.w(MF,_.z);MF.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
MF.prototype.onClick=function(B){B.target!==this.confirmButton&&B.target!==this.cancelButton&&(this.hidden=!0)};
_.L([_.jr("#confirm_button"),_.H("design:type",Object)],MF.prototype,"confirmButton",void 0);_.L([_.jr("#cancel_button"),_.H("design:type",Object)],MF.prototype,"cancelButton",void 0);_.L([_.F(),_.H("design:type",vaz)],MF.prototype,"data",void 0);_.L([_.F({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],MF.prototype,"hidden",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(oaA.YtLiveChatDialogBehavior),_.H("design:type",Object)],MF.prototype,"ytLiveChatDialogBehavior",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],MF);
var vaz=_.G(MF,"yt-live-chat-dialog-renderer",function(){if(FYy===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Q_8===void 0&&(Q_8=document.createElement("template"));var P=Q_8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);FYy=B}B=FYy;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var zJB;var SXF,yS6=function(){if(SXF!==void 0)return SXF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;zJB===void 0&&(zJB=document.createElement("template"));var P=zJB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return SXF=B};var GWB;var Mzc;var LB=function(){var B=_.z.apply(this,arguments)||this;B.tooltip=null;B.data=null;B.id="";B.active=!1;B.icon="";B.disabled=!1;B.showTooltip=!1;B.useToggledActiveState=!0;B.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return B};
_.w(LB,_.z);_.a=LB.prototype;
_.a.dataChanged=function(){var B;((B=this.data)==null?0:B.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,_.pF)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var c;if((c=this.data)==null?0:c.disabled)this.disabled=!0};
_.a.computeId=function(B){return B};
_.a.computeIcon=function(B,c){if(!B)return"";if(this.useToggledActiveState)return"yt-icons:"+B.toLowerCase();var x,P;return c&&((x=this.data)==null?0:(P=x.toggledIcon)==null?0:P.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+B.toLowerCase()};
_.a.logPDGEntryPoint=function(){_.Zyq(_.XI("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")};
_.a.immediatelyShowTooltip=function(){var B=_.Y9(this.hostElement).querySelector("#tooltip");B.animationDelay=0;B.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};B.show()};
_.a.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.a.onClick=function(B){var c;((c=this.data)==null?0:c.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(),B.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.aJ(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.a.computeShowTooltip=function(B,c){return!!(B&&B.tooltip&&c)};
_.a.maybeUpdateTooltipText=function(){var B=this,c;if((c=this.data)==null?0:c.tooltip){var x=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.pF)(B.tooltip).textContent=x},250)}};
_.a.handleLiveChatActions=function(B){var c=this;B.length&&(this.id!=="creator"&&this.id!=="product-picker"||B.forEach(function(x){(x=c.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",x))&&x.durationSec===x.fullDurationSec&&c.startBubble(c.colorFromDecimal(x.startBackgroundColor))}))};
_.a.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.a.startBubble=function(B){_.k9(this.hostElement,{"--yt-live-chat-monetization-button-glow":B});this.hostElement.setAttribute("bubble","")};
_.a.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.a.colorFromDecimal=function(B){typeof B==="string"&&(B=Number(B));return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
LB.prototype.onAnimationEnd=LB.prototype.onAnimationEnd;LB.prototype.disabledChanged=LB.prototype.disabledChanged;LB.prototype.dataChanged=LB.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],LB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Ly.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],LB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LB.prototype,"data",void 0);_.L([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],LB.prototype,"id",void 0);_.L([_.F({notify:!0,reflectToAttribute:!0}),_.H("design:type",Object)],LB.prototype,"active",void 0);
_.L([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.H("design:type",Object)],LB.prototype,"icon",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LB.prototype,"disabled",void 0);_.L([_.F({computed:"computeShowTooltip(data, disabled)"}),_.H("design:type",Object)],LB.prototype,"showTooltip",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LB.prototype,"useToggledActiveState",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LB.prototype,"dataChanged",null);_.L([_.bF("disabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LB.prototype,"disabledChanged",null);_.L([_.nF("animationend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],LB.prototype,"onAnimationEnd",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],LB);
_.G(LB,"yt-live-chat-icon-toggle-button-renderer",function(){if(Mzc===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;GWB===void 0&&(GWB=document.createElement("template"));var P=GWB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Mzc=B}B=Mzc;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var LYz;var ZzN;var Zi=function(){return _.z.apply(this,arguments)||this};
_.w(Zi,_.z);Zi.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.F(),_.H("design:type",Object)],Zi.prototype,"data",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Zi);
_.G(Zi,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ZzN===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;LYz===void 0&&(LYz=document.createElement("template"));var P=LYz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ZzN=B}B=ZzN;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Hzc;var fvc;var izo;var ASz;var uQ6;var Doz;var rS6=function(){return _.z.apply(this,arguments)||this};
_.w(rS6,_.z);_.L([_.F(),_.H("design:type",Object)],rS6.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],rS6);
_.G(rS6,"yt-live-chat-message-subtext-renderer",function(){if(Doz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;uQ6===void 0&&(uQ6=document.createElement("template"));var P=uQ6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Doz=B}B=Doz;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var HY=function(){var B=_.z.apply(this,arguments)||this;B.subtextOnBottom=!1;B.buttonOverrides={style:"mono",type:"tonal"};return B};
_.w(HY,_.z);HY.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],HY.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HY.prototype,"subtextOnBottom",void 0);_.L([_.F(),_.H("design:type",Object)],HY.prototype,"buttonOverrides",void 0);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],HY);
_.G(HY,"yt-live-chat-message-renderer",function(){if(ASz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;izo===void 0&&(izo=document.createElement("template"));var P=izo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);ASz=B}B=ASz;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var RJy;var eJ6;var fB=function(){var B=_.z.apply(this,arguments)||this;B.isRemovable=!1;B.hasPrefilledText=!1;B.isInputDirty=!1;B.overCharacterLimit=!1;B.underCharacterLimit=!1;B.showErrorMessage=!1;return B};
_.w(fB,_.z);_.a=fB.prototype;_.a.computeId=function(){return this.data.id};
_.a.computeInputData=function(){return this.data.inputData};
_.a.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.a.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.a.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.a.getLiveChatRichMessageInput=function(){return _.Y9(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.a.clearInput=function(){_.Y9(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.a.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.a.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.a.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.a.handleTextInputCharCountChanged=function(B){B=B.detail&&B.detail.characterCount;B!==void 0&&(this.characterCount=B,B!==0&&(this.isInputDirty=!0))};
_.a.onInputFocusOut=function(){this.isInputDirty=!0};
_.a.onClickCloseButton=function(){_.aJ(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
fB.prototype.handleTextInputCharCountChanged=fB.prototype.handleTextInputCharCountChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fB.prototype,"data",void 0);_.L([_.F({computed:"computeId(data.id)"}),_.H("design:type",String)],fB.prototype,"id",void 0);_.L([_.F({computed:"computeInputData(data.inputData)"}),_.H("design:type",Object)],fB.prototype,"inputData",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.H("design:type",Object)],fB.prototype,"isRemovable",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.H("design:type",Object)],fB.prototype,"hasPrefilledText",void 0);_.L([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.H("design:type",Number)],fB.prototype,"charactersRemaining",void 0);
_.L([_.F(),_.H("design:type",Number)],fB.prototype,"characterCount",void 0);_.L([_.F(),_.H("design:type",Object)],fB.prototype,"isInputDirty",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.H("design:type",Object)],fB.prototype,"overCharacterLimit",void 0);_.L([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.H("design:type",Object)],fB.prototype,"underCharacterLimit",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.H("design:type",Object)],fB.prototype,"showErrorMessage",void 0);_.L([_.nF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fB.prototype,"handleTextInputCharCountChanged",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],fB);
_.G(fB,"yt-live-chat-poll-editor-input",function(){if(eJ6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;RJy===void 0&&(RJy=document.createElement("template"));var P=RJy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);eJ6=B}B=eJ6;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Bgl;var cDF;var xrA={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},ix=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_button_rework_with_live");B.closeButtonOverrides={iconPosition:"icon-only"};B.startButtonOverrides={style:"mono",type:"filled"};B.addOptionButtonOverrides={style:"mono",type:"text"};return B};
_.w(ix,_.z);_.a=ix.prototype;
_.a.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"}}}}};
_.a.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var B;_.t((B=this.data)==null?void 0:B.startButton,_.z3)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.a.computeId=function(){return this.data&&this.data.id||""};
_.a.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.a.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.a.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.a.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.a.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var B=0;B<this.pollEditorInfoWithDefaults.minPollOptions;B++)this.addPollOptionData()};
_.a.getIsValidPoll=function(){var B=this;if(!this.pollEditorInfoWithDefaults)return!1;var c=this.pollEditorInfoWithDefaults,x=c.minPollOptionChars,P=c.maxPollOptionChars,Y=c.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>c.maxPollQuestionChars)return!1;c=_.Y9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(c).every(function(g,k){g=g.characterCount;!g&&Y[k]&&(g=B.ytRendererBehavior.getSimpleString(Y[k]).length);return g!==void 0&&g>=x&&g<=P})};
_.a.isValidPollChanged=function(){var B;_.t((B=this.data)==null?void 0:B.startButton,_.z3)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.a.addPollOptionData=function(){var B=this.pollEditorInfoWithDefaults,c=B.maxPollOptionChars,x=B.optionPlaceholderText,P=B.customOptionPlaceholderText,Y=B.pollOptionData;this.currentNumPollOptions>=B.maxPollOptions||(B={liveChatPollOptionInput:{inputData:{placeholder:P[this.currentNumPollOptions]||x,maxCharacterLimit:c},maxCharacterLimit:c,minCharacterLimit:B.minPollOptionChars,hasPrefilledText:!!P[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=B.minPollOptions}},Y.charCountErrorText&&
(B.liveChatPollOptionInput.charCountErrorText=Y.charCountErrorText),Y.charsRemainingAltLabel&&(B.liveChatPollOptionInput.charsRemainingAltLabel=Y.charsRemainingAltLabel),Y.removeOptionAltText&&(B.liveChatPollOptionInput.removeOptionAltText=Y.removeOptionAltText),this.push("pollOptionsData",B),Y=Array.from(_.Y9(_.Y9(this.hostElement).querySelector("#poll-options")).children),Y.forEach(function(g,k){g.polymerController.set("data.id",k)}),_.Y9(Y[Y.length-1]).querySelector("#input").focus())};
_.a.getPollOptionInputValues=function(){var B=this,c=[],x=_.Y9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),P=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(x).forEach(function(Y,g){var k=null;Y=Y.getLiveChatRichMessageInput();var n;(Y==null?0:(n=Y.textSegments)==null?0:n.length)?k=_.S5(Y):P[g]&&(k=B.formattedStringToLiveChatRichMessageInput(P[g]));c.push(k)});
return c};
_.a.requestCreateAndStartPoll=function(B){var c=this.getPollOptionInputValues();if(!c.some(function(P){return!P})){c={optionText:c};
var x=_.Y9(_.Y9(this.hostElement).querySelector("#poll-question")).firstChild;x&&x.liveChatRichMessageInput&&(c.questionText=_.S5(x.liveChatRichMessageInput));_.kC(this.hostElement,[B,c])}};
_.a.selectedChanged=function(){if(this.selected){var B=_.Y9(_.Y9(this.hostElement).querySelector("#start-button")).firstElementChild;if(B){var c;(c=_.Y9(B).querySelector("#button")||_.aB(B).querySelector("button"))==null||c.focus()}}};
_.a.handleTextInputChanged=function(B){var c;((c=B.target)==null?void 0:c.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=B.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.a.handleStartButtonAction=function(B){B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),(B=B.detail.args[1])&&this.requestCreateAndStartPoll(B))};
_.a.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.a.handleServiceRequestCompleted=function(B){this.createPollRequestInFlight=!1;(B=B.detail&&B.detail.data)&&B.success&&(_.aJ(this.hostElement,"picker-cancelled"),_.gj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.a.onCloseClick=function(){_.aJ(this.hostElement,"picker-cancelled");_.gj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.a.handlePollEditorInputClosed=function(B){var c=this.pollOptionsData.findIndex(function(x){return x.liveChatPollOptionInput.id===B.detail.id});
this.splice("pollOptionsData",c,1);this.isValidPoll=this.getIsValidPoll()};
_.a.onPickerCancelled=function(){this.reset()};
_.a.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var B=_.Y9(_.Y9(this.hostElement).querySelector("#poll-question")).firstChild;B&&B.setLiveChatRichMessageInput(null);if(B=_.Y9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){B=_.p(Array.from(B));for(var c=B.next();!c.done;c=B.next())c.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.a.formattedStringToLiveChatRichMessageInput=function(B){return B.simpleText?{text_segments:[B.simpleText]}:{text_segments:B.runs}};
_.AJ.Object.defineProperties(ix.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(xrA,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
ix.prototype.onPickerCancelled=ix.prototype.onPickerCancelled;ix.prototype.handlePollEditorInputClosed=ix.prototype.handlePollEditorInputClosed;ix.prototype.handleServiceRequestCompleted=ix.prototype.handleServiceRequestCompleted;ix.prototype.handleServiceRequestSent=ix.prototype.handleServiceRequestSent;ix.prototype.handleTextInputChanged=ix.prototype.handleTextInputChanged;ix.prototype.selectedChanged=ix.prototype.selectedChanged;ix.prototype.isValidPollChanged=ix.prototype.isValidPollChanged;
ix.prototype.shouldInitializePollChanged=ix.prototype.shouldInitializePollChanged;ix.prototype.dataChanged=ix.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ix.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ix.prototype,"modern",void 0);
_.L([_.F(),_.H("design:type",Object)],ix.prototype,"closeButtonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],ix.prototype,"startButtonOverrides",void 0);_.L([_.F(),_.H("design:type",Object)],ix.prototype,"addOptionButtonOverrides",void 0);_.L([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.H("design:type",String)],ix.prototype,"id",void 0);_.L([_.F({value:function(){return[]}}),
_.H("design:type",Array)],ix.prototype,"pollOptionsData",void 0);_.L([_.Q("pollEditorInfoWithDefaults"),_.H("design:type",Object),_.H("design:paramtypes",[])],ix.prototype,"pollQuestionData",null);_.L([_.F({value:0}),_.H("design:type",Number)],ix.prototype,"pollQuestionCharacterCount",void 0);_.L([_.Q("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],ix.prototype,"pollQuestionCharactersRemaining",null);
_.L([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.H("design:type",Boolean)],ix.prototype,"overQuestionCharacterLimit",void 0);_.L([_.Q("data.pollEditorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],ix.prototype,"pollEditorInfoWithDefaults",null);_.L([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.H("design:type",Number)],ix.prototype,"currentNumPollOptions",void 0);
_.L([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.H("design:type",Boolean)],ix.prototype,"hasMaxNumPollOptions",void 0);_.L([_.Q("pollEditorInfoWithDefaults","pollOptionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ix.prototype,"shouldInitializePoll",null);_.L([_.F(),_.H("design:type",Object)],ix.prototype,"isValidPoll",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ix.prototype,"createPollRequestInFlight",void 0);_.L([_.F(),_.H("design:type",Object)],ix.prototype,"selected",void 0);_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.H("design:type",Boolean)],ix.prototype,"showQuestionErrorMessage",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"dataChanged",null);_.L([_.bF("shouldInitializePoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"shouldInitializePollChanged",null);_.L([_.bF("isValidPoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"isValidPollChanged",null);
_.L([_.bF("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"selectedChanged",null);_.L([_.nF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ix.prototype,"handleTextInputChanged",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"handleServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ix.prototype,"handleServiceRequestCompleted",null);
_.L([_.nF("yt-live-chat-poll-editor-input-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ix.prototype,"handlePollEditorInputClosed",null);_.L([_.nF("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ix.prototype,"onPickerCancelled",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],ix);
_.G(ix,"yt-live-chat-poll-editor-panel-renderer",function(){if(cDF===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Bgl===void 0&&(Bgl=document.createElement("template"));var P=Bgl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);cDF=B}B=cDF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var PHr;var Yjs;var Ap=function(){return _.z.apply(this,arguments)||this};
_.w(Ap,_.z);Ap.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ap.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.AJ.Object.defineProperties(Ap.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var B,c;return(B=this.data)==null?void 0:(c=B.title)==null?void 0:c.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var B;return _.vH((B=this.data)==null?void 0:B.onTapCommand)}}});
_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],Ap.prototype,"ytEndpointBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ap.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ap.prototype,"itemId",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ap.prototype,"hasPromotion",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ap.prototype,"innertubeCommand",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ap);
_.G(Ap,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Yjs===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;PHr===void 0&&(PHr=document.createElement("template"));var P=PHr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Yjs=B}B=Yjs;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var aLo;var gZl;var ux=function(){var B=_.z.apply(this,arguments)||this;B.id="product-picker";B.selected=!1;B.closeButtonId="close-button";B.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return B};
_.w(ux,_.z);_.a=ux.prototype;_.a.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.a.observeSelected=function(){this.selected&&this.hostElement.focus();var B=_.Y9(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");B.length&&B[0].focus()};
_.a.onCloseBuyFlow=function(){_.aJ(this.hostElement,"picker-cancelled")};
_.a.onCloseClick=function(){_.aJ(this.hostElement,"picker-cancelled");var B;((B=this.data)==null?0:B.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.closeButton,_.Tj))};
_.a.onCloseEngageWithAudienceEditorPanels=function(){_.aJ(this.hostElement,"picker-cancelled")};
ux.prototype.observeSelected=ux.prototype.observeSelected;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ux.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ux.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ux.prototype,"id",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ux.prototype,"selected",void 0);_.L([_.F(),_.H("design:type",Object)],ux.prototype,"closeButtonId",void 0);_.L([_.bF("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ux.prototype,"observeSelected",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],ux);
_.G(ux,"yt-live-chat-product-picker-panel-view-model",function(){if(gZl===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;aLo===void 0&&(aLo=document.createElement("template"));var P=aLo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);gZl=B}B=gZl;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var sMz;var pcl;var Di=function(){var B=_.z.apply(this,arguments)||this;B.iconId="";B.icon="";B.disabled=!1;B.systemIcons=_.T("kevlar_system_icons");return B};
_.w(Di,_.z);_.a=Di.prototype;_.a.attached=function(){_.T("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.a.computeIconId=function(B){return B&&B.icon&&B.icon.iconType?B.icon.iconType.toLowerCase():""};
_.a.computeIcon=function(B){return B&&B.icon&&B.icon.iconType?(B=B.icon.iconType.toLowerCase(),(B.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+B):""};
_.a.computeDisabled=function(B){return!!B};
_.a.computeCommand=function(B,c){return c?void 0:B};
_.a.computeTooltip=function(B,c){return c&&B?B:""};
_.a.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.AJ.Object.defineProperties(Di.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.T("live_chat_compute_product_button_aria_label"))return"";var B="",c,x,P;if((c=this.data)==null?0:(x=c.text)==null?0:(P=x.runs)==null?0:P.length)B=this.data.text.runs[0].text||"";else{var Y,g;if((Y=this.data)==null?0:(g=Y.text)==null?0:g.simpleText)B=this.data.text.simpleText}var k,n,b;if((k=this.data)==null?0:(n=k.subtext)==null?0:(b=n.runs)==null?0:b.length)B&&(B+=". "),B+=this.data.subtext.runs[0].text||
"";else{var d,q;if((d=this.data)==null?0:(q=d.subtext)==null?0:q.simpleText)B&&(B+=". "),B+=this.data.subtext.simpleText}return B}}});
_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],Di.prototype,"ytEndpointBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Di.prototype,"data",void 0);_.L([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.H("design:type",Object)],Di.prototype,"iconId",void 0);
_.L([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.H("design:type",Object)],Di.prototype,"icon",void 0);_.L([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.H("design:type",Object)],Di.prototype,"disabled",void 0);_.L([_.F({computed:"computeCommand(data.command, disabled)"}),_.H("design:type",Object)],Di.prototype,"command",void 0);_.L([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.H("design:type",String)],Di.prototype,"tooltip",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Di.prototype,"systemIcons",void 0);_.L([_.Q("data.text","data.subtext"),_.F(),_.H("design:type",String),_.H("design:paramtypes",[])],Di.prototype,"ariaLabel",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Di);
_.G(Di,"yt-live-chat-product-button-renderer",function(){if(pcl===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;sMz===void 0&&(sMz=document.createElement("template"));var P=sMz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);pcl=B}B=pcl;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var kXs;var XcS;var ri=function(){var B=_.z.apply(this,arguments)||this;B.selected=!1;B.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 B};
_.w(ri,_.z);_.a=ri.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.computeId=function(B){return B.id||""};
_.a.onCloseClick=function(){_.aJ(this.hostElement,"picker-cancelled")};
_.a.observeSelected=function(){this.selected&&this.hostElement.focus();var B=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");B.length&&B[0].focus()};
_.a.onCloseBuyFlow=function(){_.aJ(this.hostElement,"picker-cancelled")};
_.a.onCloseEngageWithAudienceEditorPanels=function(){_.aJ(this.hostElement,"picker-cancelled")};
ri.prototype.observeSelected=ri.prototype.observeSelected;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ri.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ri.prototype,"data",void 0);
_.L([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.H("design:type",String)],ri.prototype,"id",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ri.prototype,"selected",void 0);_.L([_.bF("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ri.prototype,"observeSelected",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ri);
_.G(ri,"yt-live-chat-product-picker-renderer",function(){if(XcS===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;kXs===void 0&&(kXs=document.createElement("template"));var P=kXs;x.call(c,P.content.cloneNode(!0),B.content.firstChild);XcS=B}B=XcS;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var $rS;var nZ6;var bDy;var KC8;var RC=function(){return _.z.apply(this,arguments)||this};
_.w(RC,_.z);RC.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()};
RC.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
RC.prototype.created=function(){this.ids={background:_.WS(),maskOne:_.WS(),maskTwo:_.WS(),gradient:_.WS(),largeBackground:_.WS(),largeGradientOne:_.WS(),largeGradientTwo:_.WS(),largeGradientPath:_.WS()}};
RC.prototype.maybeLoadAnimationBackground=RC.prototype.maybeLoadAnimationBackground;_.L([_.F({value:!1}),_.H("design:type",Boolean)],RC.prototype,"useLargeBackground",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],RC.prototype,"useAnimationBackground",void 0);_.L([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.H("design:type",Boolean)],RC.prototype,"useRegularBackground",void 0);
_.L([_.F(),_.H("design:type",Object)],RC.prototype,"ids",void 0);_.L([_.F(),_.H("design:type",Object)],RC.prototype,"lottieAnimation",void 0);_.L([_.jr("#animation-background"),_.H("design:type",HTMLDivElement)],RC.prototype,"animationBackground",void 0);_.L([_.bF("useAnimationBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RC.prototype,"maybeLoadAnimationBackground",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],RC);
_.G(RC,"yt-live-interactivity-component-background",function(){if(KC8===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;bDy===void 0&&(bDy=document.createElement("template"));var P=bDy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);KC8=B}B=KC8;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var ej=function(){var B=_.z.apply(this,arguments)||this;B.characterCount=0;B.showInputErrorMessage=!1;B.startQnaRequestInFlight=!1;B.modern=_.T("web_button_rework_with_live");B.buttonOverrides={style:"mono",type:"filled"};B.closeButtonOverrides={iconPosition:"icon-only"};B.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return B};
_.w(ej,_.z);_.a=ej.prototype;
_.a.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]]"}}}}}};
_.a.onCharacterCountChanged=function(B){var c,x,P,Y,g=(x=_.t(this==null?void 0:(c=this.data)==null?void 0:c.creatorCallForQuestions,flr))==null?void 0:(P=x.inputField)==null?void 0:(Y=P.liveChatTextInputFieldRenderer)==null?void 0:Y.maxCharacterLimit,k,n;g!=null&&(B==null?void 0:(k=B.detail)==null?void 0:k.characterCount)!=null&&_.t(this==null?void 0:(n=this.data)==null?void 0:n.startButton,_.z3)&&(c=B.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",B.detail.characterCount===
0||c),this.showInputErrorMessage=c)};
_.a.onCloseClick=function(){_.aJ(this.hostElement,"picker-cancelled");_.gj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.onPickerCancelled=function(){var B=_.Y9(this.hostElement).querySelector("#qna-creator-text-input-field");B&&B.setLiveChatRichMessageInput(null)};
_.a.handleOpenQnaStartPanel=function(){var B=_.Y9(this.hostElement).querySelector("#qna-creator-text-input-field");B&&B.focus()};
_.a.handleStartButtonAction=function(B){var c=this;if(B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),B=B.detail.args[1])){var x=_.Y9(this.hostElement).querySelector("#qna-creator-text-input-field"),P;(x==null?0:(P=x.liveChatRichMessageInput)==null?0:P.textSegments)&&x.liveChatRichMessageInput.textSegments.length!==0&&(P={rich_message:_.S5(x.liveChatRichMessageInput)},_.kC(this.hostElement,[B,P]).then(function(){_.aJ(c.hostElement,"picker-cancelled")}))}};
_.a.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.a.handleServiceRequestCompleted=function(B){var c;B=B==null?void 0:(c=B.detail)==null?void 0:c.data;(B==null?0:B.actions)&&B.actions.length>0?this.startQnaRequestInFlight=!1:_.gj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ej.prototype.handleServiceRequestError=ej.prototype.handleServiceRequestError;ej.prototype.handleServiceRequestCompleted=ej.prototype.handleServiceRequestCompleted;ej.prototype.handleServiceRequestSent=ej.prototype.handleServiceRequestSent;ej.prototype.onPickerCancelled=ej.prototype.onPickerCancelled;ej.prototype.onCharacterCountChanged=ej.prototype.onCharacterCountChanged;_.L([_.F(),_.H("design:type",Object)],ej.prototype,"characterCount",void 0);
_.L([_.F(),_.H("design:type",Object)],ej.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ej.prototype,"showInputErrorMessage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ej.prototype,"startQnaRequestInFlight",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ej.prototype,"modern",void 0);_.L([_.F(),_.H("design:type",Object)],ej.prototype,"buttonOverrides",void 0);
_.L([_.F(),_.H("design:type",Object)],ej.prototype,"closeButtonOverrides",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],ej.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.J(_.yq.YtLiveChatItemBehavior),_.H("design:type",_.GO)],ej.prototype,"ytLiveChatItemBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.L([_.nF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ej.prototype,"onCharacterCountChanged",null);_.L([_.nF("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ej.prototype,"onPickerCancelled",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ej.prototype,"handleServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ej.prototype,"handleServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ej.prototype,"handleServiceRequestError",null);_.L([_.y({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ej);
_.G(ej,"yt-live-chat-qna-start-panel-renderer",function(){if(nZ6===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;$rS===void 0&&($rS=document.createElement("template"));var P=$rS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);nZ6=B}B=nZ6;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var jM6;var UrF;var BP=function(){return _.z.apply(this,arguments)||this};
_.w(BP,_.z);BP.prototype.dismiss=function(){_.aJ(this.hostElement,"yt-live-chat-error-message-dismiss")};
BP.prototype.edit=function(){_.aJ(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.L([_.F(),_.H("design:type",Object)],BP.prototype,"data",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],BP);
_.G(BP,"yt-live-chat-text-actions-error-message-renderer",function(){if(UrF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;jM6===void 0&&(jM6=document.createElement("template"));var P=jM6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);UrF=B}B=UrF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var drS;var qj6;var CH6;var hsF;var cP=function(){var B=_.z.apply(this,arguments)||this;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.newnessDotEligible=!1;return B};
_.w(cP,_.z);cP.prototype.sendReaction=function(){var B,c,x=((B=this.data)==null?void 0:B.emojiId)||((c=this.data)==null?void 0:c.emoteId),P;x&&((P=this.data)==null?0:P.shouldTriggerAnimation)&&_.gj(this.hostElement,"yt-create-user-reaction-animation",[x]);var Y;(B=_.vH((Y=this.data)==null?void 0:Y.onTap))&&_.KL(B,this.hostElement);this.showNewnessDot&&_.gj(this.hostElement,"yt-hide-newness-dot")};
cP.prototype.onClick=function(B){(!B||B.clientX||B.clientY)&&this.sendReaction()};
cP.prototype.onKeyDown=function(B){B.key!=="Enter"&&B.key!==" "||B.repeat||this.sendReaction()};
_.AJ.Object.defineProperties(cP.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!(((B=this.data)==null?0:B.emojiId)||((c=this.data)==null?0:c.emoteId))}}});
_.L([_.F(),_.H("design:type",Object)],cP.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cP.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],cP.prototype,"newnessDotEligible",void 0);_.L([_.Q("data.maybeShowNewnessDot"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cP.prototype,"showNewnessDot",null);_.L([_.Q("data.emojiId","data.emoteId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cP.prototype,"useYtImage",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],cP);
_.G(cP,"yt-reaction-control-panel-button-view-model",function(){if(hsF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;CH6===void 0&&(CH6=document.createElement("template"));var P=CH6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);hsF=B}B=hsF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var mrr;var Tgc;var xj=function(){var B=_.z.apply(this,arguments)||this;B.reactionControlPanelExpanded=!1;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.newnessDotEligible=!1;return B};
_.w(xj,_.z);_.a=xj.prototype;_.a.expandedButtonsChanged=function(){var B,c;_.k9(this.hostElement,{"--expanded-buttons-height":((c=(B=this.expandedButtonsData)==null?void 0:B.length)!=null?c:0)*36+"px"})};
_.a.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}}};
_.a.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.a.onMouseLeave=function(){var B=this;this.collapseTimer=setTimeout(function(){B.reactionControlPanelExpanded=!1},500)};
_.a.onFocusIn=function(){this.onMouseEnter()};
_.a.onFocusOut=function(){this.onMouseLeave()};
_.a.onCollapsedButtonFocusIn=function(){var B=this;setTimeout(function(){var c;(c=B.expandedButtons.querySelector("button"))==null||c.focus()},100)};
_.a.onCollapsedButtonFocusOut=function(B){B.stopPropagation()};
_.AJ.Object.defineProperties(xj.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var B,c;return _.wW.unsafeClone((B=this.liveReactionsData)==null?void 0:B.emojiButtonData)||((c=this.data)==null?void 0:c.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var B;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((B=this.data)==null||!B.maybeShowNewnessDot)}}});
xj.prototype.expandedButtonsChanged=xj.prototype.expandedButtonsChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],xj.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xj.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],xj.prototype,"reactionControlPanelExpanded",void 0);_.L([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:IJi}),_.H("design:type",Object)],xj.prototype,"liveReactionsData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],xj.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],xj.prototype,"newnessDotEligible",void 0);
_.L([_.Q("liveReactionsData","data.expandedButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],xj.prototype,"expandedButtonsData",null);_.L([_.Q("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],xj.prototype,"showNewnessDot",null);_.L([_.jr("#expanded-buttons"),_.H("design:type",HTMLElement)],xj.prototype,"expandedButtons",void 0);
_.L([_.bF("expandedButtonsData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xj.prototype,"expandedButtonsChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],xj);
_.G(xj,"yt-reaction-control-panel-view-model",function(){if(Tgc===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;mrr===void 0&&(mrr=document.createElement("template"));var P=mrr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Tgc=B}B=Tgc;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var PP=new _.vA("yt-live-chat"),Vhi=Date.parse("2024-7-24"),Yj=function(){var B=_.z.apply(this,arguments)||this;B.emojiManager=_.Sp;B.newnessDotEligible=!1;B.newnessDotImpressionCounted=!1;B.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return B};
_.w(Yj,_.z);_.a=Yj.prototype;_.a.emojiCustomizationEnabledChanged=function(){var B;((B=this.data)==null?0:B.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((B=PP.getCreationTime("emoji-customization-count"))&&B<Vhi&&PP.set("emoji-customization-count","0"),B=Number(PP.get("emoji-customization-count"))||0,B<3&&(this.newnessDotEligible=!0,PP.set("emoji-customization-count",(B+1).toString())),this.newnessDotImpressionCounted=!0)};
_.a.hideNewnessDot=function(){this.newnessDotEligible=!1;PP.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.a.handleReactionsMute=function(B){var c=_.Wf(),x=_.JW(206221),P={checkboxData:{state:B?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};c&&_.fW(c,x,P);this.reactionsMuted=B};
_.a.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.a.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}}};
_.AJ.Object.defineProperties(Yj.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var B;return(!((B=this.liveReactionsData)==null||!B.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Yj.prototype.liveReactionsSettingChanged=Yj.prototype.liveReactionsSettingChanged;Yj.prototype.emojiCustomizationEnabledChanged=Yj.prototype.emojiCustomizationEnabledChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.M4),_.H("design:type",Object)],Yj.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Yj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Yj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",_.Fr)],Yj.prototype,"emojiManager",void 0);_.L([_.F(),_.H("design:type",Object)],Yj.prototype,"newnessDotEligible",void 0);_.L([_.F(),_.H("design:type",Object)],Yj.prototype,"newnessDotImpressionCounted",void 0);
_.L([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Jky}),_.H("design:type",Boolean)],Yj.prototype,"liveReactionsSetting",void 0);_.L([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:IJi}),_.H("design:type",Object)],Yj.prototype,"liveReactionsData",void 0);_.L([_.F({value:function(){var B=_.T("enable_lwe_web_mute"),c=PP.get("allow-reactions");return c===void 0?!1:!c&&B}}),
_.H("design:type",Boolean)],Yj.prototype,"reactionsMuted",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Yj.prototype,"liveReactionsEnabled",null);_.L([_.bF("data.emojiCustomizationEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Yj.prototype,"emojiCustomizationEnabledChanged",null);
_.L([_.bF("liveReactionsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Yj.prototype,"liveReactionsSettingChanged",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Yj);
_.G(Yj,"yt-reaction-control-panel-overlay-view-model",function(){if(qj6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;drS===void 0&&(drS=document.createElement("template"));var P=drS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);qj6=B}B=qj6;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var thS={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(B){var c=this.$.pickers.selected;if(c){_.Y9(this.hostElement).removeAttribute(c+"-open");var x="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(x="#picker-buttons",c==="emoji"&&_.Y9(this.hostElement).querySelector("#emoji-picker-button")&&(x="#emoji-picker-button"));if(x=_.Y9(this.hostElement).querySelector(x).querySelector("#"+c))x.active=!1}x=B;c==B&&(x=null);c!=
B&&_.Y9(this.hostElement).setAttribute(B+"-open","");this.$.pickers.selected=x;_.gj(this.hostElement,"yt-live-chat-picker-changed",[x])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var aq=function(){var B=_.z.apply(this,arguments)||this;B.numSentMessages=0;B.timeoutDurationMs=0;B.timeoutMs=0;B.lastTimeoutTimeMs=0;B.pendingMessageId="";B.hasFiredInitialFocusActions=!1;B.isBeforeFocusEnabled=!0;B.id="";B.characterCount=0;B.maxCharacterLimit=0;B.remainingCharacterCount=0;B.inputExpanded=!1;B.buttonOverrides={iconPosition:"icon-only"};B.inReplyPanel=!1;B.countdownRatio=0;B.isTooltipVisible=!1;B.tooltipTimeout=1E4;B.systemIcons=_.T("kevlar_system_icons");B.tallerEmojiPicker=_.T("live_chat_taller_emoji_picker");
B.sendReplyMessageInFlight=!1;B.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"};B.onResize=function(){B.maybeToggleCharacterCount()};
return B};
_.w(aq,_.z);_.a=aq.prototype;
_.a.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"}}}};
_.a.attached=function(){window.addEventListener("resize",this.onResize)};
_.a.detached=function(){window.removeEventListener("resize",this.onResize)};
_.a.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.a.sendMessage=function(){var B=this,c,x,P,Y;return _.X(function(g){if(B.sendDisabled)return g.return();B.isTooltipVisible&&_.gj(B.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(B.data.sendButton&&B.data.sendButton.buttonRenderer){B.input.completeEmojis();c=B.data.sendButton.buttonRenderer.serviceEndpoint;if(!c)return g.return();P=((x=_.t(c,_.EcI))==null?void 0:x.clientIdPrefix)||"";Y={client_message_id:P+String(B.numSentMessages++),rich_message:_.S5(B.input.liveChatRichMessageInput)};
B.pendingMessageId=Y.client_message_id;B.inReplyPanel&&(B.sendReplyMessageInFlight=!0);_.kC(B.hostElement,[c,Y]);B.input.setLiveChatRichMessageInput(null)}_.Kq(g)})};
_.a.handleSendButtonAction=function(B){B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),this.sendMessage())};
_.a.onSendCompleted=function(B,c){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(B=this.get("timeoutDurationUsec",c.data))&&this.handleTimeout(Number(B)/1E3);this.errorMessage=this.get("errorMessage",c.data);this.pendingMessageId=""};
_.a.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.gj(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.a.handlePickerButtonToggle=function(B){B=B.detail.targetId;this.ytPickerBehavior.togglePicker_(B);if(B==="emoji")this.input.focus();else if(B==="qna-start-panel"){var c,x;(c=_.Y9(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(x=c.querySelector("#qna-creator-text-input-field"))==null||x.focus()}};
_.a.onComponentReplaced=function(B){var c,x;B.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((c=B.replacement.liveChatMessageInputRenderer)==null?0:(x=c.headerRenderer)==null?0:x.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.a.onEmojiSelect=function(B){this.input.focus();this.input.insertEmoji(B.detail)};
_.a.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.a.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.gj(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.gj(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.a.onOpenPopupAction=function(B,c){var x=this;c===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.gj(x.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.a.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.a.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.a.focusChanged=function(){this.maybeToggleCharacterCount()};
_.a.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var B=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",B>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.a.computeId=function(){return this.data&&this.data.targetId||""};
_.a.computeSendDisabled=function(B,c,x,P){B=!!(!B||c&&B>c||P);(c=_.Y9(this.hostElement).querySelector("#send-button"))&&c.children.length&&(c.children[0].disabled=B);return B};
_.a.handleTimeout=function(B){this.timeoutDurationMs=this.timeoutMs=B;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.a.updateTimeout=function(B){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(B-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=B,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.a.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.a.onErrorMessageEdit=function(B){this.input.setLiveChatRichMessageInput(B.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.a.errorMessageChanged=function(){var B=this;_.Sr(function(){_.gj(B.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.a.computeAuthorNameColor=function(B){var c;if(_.T("live_chat_author_name_color_usernames")&&(B==null?0:(c=B.authorName)==null?0:c.simpleText))return _.pdl(_.kYw(B.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(B==null?0:B.authorSeedColorArgb))return _.pdl(_.k0(B.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var x;return _.T("live_chat_simple_color_usernames")&&(B==null?0:(x=B.authorName)==null?0:x.simpleText)&&(B==null?0:B.authorUsernameColorLight)&&
(B==null?0:B.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.k0(B.authorUsernameColorDark):_.k0(B.authorUsernameColorLight):""};
_.a.onIsTooltipVisibleChanged=function(){var B=_.Y9(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){B.hidden=!1;B.setAttribute("role","alert")},0):(B.hidden=!0,B.removeAttribute("role"))};
_.a.onFocusedChanged=function(B){this.inputFocused=B.detail.value};
_.AJ.Object.defineProperties(aq.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 B;return!((B=this.data)==null||!B.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.pickers)==null?void 0:c.find(function(x){return x.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return B?this.ytRendererBehavior.getSimpleString(B):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
aq.prototype.onIsTooltipVisibleChanged=aq.prototype.onIsTooltipVisibleChanged;aq.prototype.errorMessageChanged=aq.prototype.errorMessageChanged;aq.prototype.onErrorMessageEdit=aq.prototype.onErrorMessageEdit;aq.prototype.onErrorMessageDismiss=aq.prototype.onErrorMessageDismiss;aq.prototype.focusChanged=aq.prototype.focusChanged;aq.prototype.characterCountChanged=aq.prototype.characterCountChanged;aq.prototype.onEmojiSelect=aq.prototype.onEmojiSelect;aq.prototype.handlePickerButtonToggle=aq.prototype.handlePickerButtonToggle;
aq.prototype.onSendError=aq.prototype.onSendError;aq.prototype.onSendCompleted=aq.prototype.onSendCompleted;aq.prototype.sendMessage=aq.prototype.sendMessage;aq.prototype.dataChanged=aq.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],aq.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(thS.YtPickerBehavior),_.H("design:type",Object)],aq.prototype,"ytPickerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Ly.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],aq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"hasFiredInitialFocusActions",void 0);
_.L([_.F(),_.H("design:type",Object)],aq.prototype,"isBeforeFocusEnabled",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"data",void 0);_.L([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],aq.prototype,"id",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"characterCount",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"maxCharacterLimit",void 0);
_.L([_.F(),_.H("design:type",Object)],aq.prototype,"remainingCharacterCount",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],aq.prototype,"inputExpanded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],aq.prototype,"inputFocused",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],aq.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.L([_.F(),_.H("design:type",_.ZP)],aq.prototype,"participantsManager",void 0);
_.L([_.F(),_.H("design:type",Object)],aq.prototype,"buttonOverrides",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],aq.prototype,"inReplyPanel",void 0);_.L([_.Q("characterCount, maxCharacterLimit, countdownActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"sendDisabled",null);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"countdownRatio",void 0);
_.L([_.Q("countdownRatio"),_.H("design:type",Number),_.H("design:paramtypes",[])],aq.prototype,"countdownStrokeDashOffset",null);_.L([_.Q("countdownRatio"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"countdownActive",null);_.L([_.Q("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"hasInteractionMessage",null);
_.L([_.Q("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"hasEmojiPickerButton",null);_.L([_.Q("data, characterCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"showAvatar",null);_.L([_.Q("data.pickers"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aq.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.F(),_.H("design:type",Object)],aq.prototype,"errorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"genericErrorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"isTooltipVisible",void 0);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"tooltipTimeout",void 0);_.L([_.Q("data.onInitialFocusCommand"),_.H("design:type",String),_.H("design:paramtypes",[])],aq.prototype,"tooltipMessage",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],aq.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],aq.prototype,"tallerEmojiPicker",void 0);_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],aq.prototype,"authorNameColor",null);_.L([_.F(),_.H("design:type",Object)],aq.prototype,"sendReplyMessageInFlight",void 0);_.L([_.jr("#input"),_.H("design:type",_.$WS)],aq.prototype,"input",void 0);
_.L([_.jr("#count"),_.H("design:type",HTMLElement)],aq.prototype,"count",void 0);_.L([_.jr("#input-container"),_.H("design:type",HTMLElement)],aq.prototype,"inputContainer",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"dataChanged",null);_.L([_.nF("yt-live-chat-send-message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],aq.prototype,"sendMessage",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.AW]),_.H("design:returntype")],aq.prototype,"onSendCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"onSendError",null);
_.L([_.nF("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aq.prototype,"handlePickerButtonToggle",null);_.L([_.nF("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aq.prototype,"onEmojiSelect",null);
_.L([_.bF("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"characterCountChanged",null);_.L([_.bF("inputFocused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"focusChanged",null);_.L([_.nF("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"onErrorMessageDismiss",null);
_.L([_.nF("yt-live-chat-error-message-edit"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aq.prototype,"onErrorMessageEdit",null);_.L([_.bF("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"errorMessageChanged",null);_.L([_.bF("isTooltipVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aq.prototype,"onIsTooltipVisibleChanged",null);
_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],aq);
_.G(aq,"yt-live-chat-message-input-renderer",function(){if(fvc===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Hzc===void 0&&(Hzc=document.createElement("template"));var P=Hzc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);fvc=B}B=fvc;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var wcy;var NgF;var gP=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.firedOnClickCommand=!1;B.inReplyPanel=!1;return B};
_.w(gP,_.z);
gP.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"}}}};
gP.prototype.onButtonToggle=function(B){B.target.disabled||this.ytPickerBehavior.togglePicker_(B.detail.targetId)};
gP.prototype.onClick=function(){var B=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.gj(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return B.firedOnClickCommand=!1},5E3))};
_.AJ.Object.defineProperties(gP.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.panels)==null?void 0:c.find(function(x){return x.liveChatProductPickerPanelViewModel}))!==void 0}}});
gP.prototype.onButtonToggle=gP.prototype.onButtonToggle;_.L([_.J(thS.YtPickerBehavior),_.H("design:type",Object)],gP.prototype,"ytPickerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gP.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gP.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Object)],gP.prototype,"firedOnClickCommand",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gP.prototype,"inReplyPanel",void 0);_.L([_.Q("data.pickers"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gP.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.nF("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],gP.prototype,"onButtonToggle",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],gP);
_.G(gP,"yt-live-chat-restricted-participation-renderer",function(){if(NgF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;wcy===void 0&&(wcy=document.createElement("template"));var P=wcy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);NgF=B}B=NgF;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var sR=function(){var B=_.z.apply(this,arguments)||this;B.genericErrorMessage=_.fk("Error, try again.");B.inReplyPanel=!1;B.hideBorder=!1;return B};
_.w(sR,_.z);sR.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}}}}}};
_.AJ.Object.defineProperties(sR,{template:{configurable:!0,enumerable:!0,get:function(){return yS6()}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],sR.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],sR.prototype,"genericErrorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],sR.prototype,"inReplyPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],sR.prototype,"hideBorder",void 0);
_.L([_.Em({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],sR);_.G(sR,"yt-live-chat-engagement-panel-input-renderer",function(){return yS6()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var ILN,JDi;ILN=_.JW(115994);JDi=_.JW(115993);_.pn=function(B,c,x){var P=this;var Y=x.dragDownAction;this.layer=0;this.JSC$20000_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$20000_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 g=_.q_();_.$k(g,ILN,this.layer);_.$k(g,JDi,this.layer);this.dragDownAction=function(){Y();_.GU(g,{visualElement:P.fullscreen?ILN:JDi})};
this.gesture=new _.$Q(B,c,this.JSC$20000_watchConfig,"pandown");this.attach()};
_.pn.prototype.attach=function(){this.gesture.attach()};
_.pn.prototype.detach=function(){this.gesture.detach()};
_.pn.prototype.update=function(B){this.fullscreen=B;this.gesture.config=B?this.JSC$20000_watchFullScreenConfig:this.JSC$20000_watchConfig};var WC8={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(B){if(B&&B.length==1&&Array.isArray(B[0].loggingUrls)){B=_.wW.unsafeClone(B[0]);var c=this.macros||{},x=this.getAdModuleClient_();if(!x)return _.$C();B.loggingUrls.forEach(function(P){if(P.baseUrl){var Y=P.baseUrl;var g=c;g=g===void 0?{}:g;Y=x.getOptions().includes("replaceUrlMacros")?_.weZ(x,"replaceUrlMacros",{url:Y,additionalMapping:g}):Y;P.baseUrl=Y}},this);
B=[B]}return _.kC(this.hostElement,B)},
getAdModuleClient_:function(){var B=_.e5(this);return B?(B=B.getPlayer())?new _.Ip(B):null:null}}]};var lL6;var kj=function(){var B=_.z.apply(this,arguments)||this;B.isCollapsed=!1;B.modernPanels=_.T("kevlar_watch_modern_panels");B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return B};
_.w(kj,_.z);_.a=kj.prototype;_.a.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.onDonateTap=function(){var B=this.get("data.donateButton.buttonRenderer.command");if(B){var c=_.Wf(),x=this.get("data.donateButton.buttonRenderer.trackingParams");c&&x&&_.fW(c,_.VF(x));this.ytOpenPopupBehavior.openPopup(B)}};
_.a.onShowMore=function(){this.isCollapsed=!1;var B=_.Wf(),c=this.get("data.expandButton.buttonRenderer.trackingParams");B&&c&&_.fW(B,_.VF(c))};
_.a.onShowLess=function(){this.isCollapsed=!0};
_.a.dataChanged=function(){_.k9(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.handleUpdate=function(B){if(B=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",B))this.set("data.startLabel",B.startLabel),this.set("data.endLabel",B.endLabel),this.set("data.progress",B.progress),this.set("data.amountRaisedLabel",B.amountRaisedLabel),this.dataChanged()};
_.a.handleOpenPopupAction=function(B){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",B)&&_.gj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.a.computeHeaderBackgroundUrl=function(B,c){if(B)return c?B.headerBackgroundDarkUrl:B.headerBackgroundUrl};
_.a.isProgressBarVisible=function(B){return!(!B||B.progress===void 0)};
_.a.headerBackgroundClass=function(){return _.v5("HTML_DIR")==="rtl"?"flip":""};
kj.prototype.dataChanged=kj.prototype.dataChanged;_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],kj.prototype,"ytOpenPopupBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],kj.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],kj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],kj.prototype,"isCollapsed",void 0);_.L([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.H("design:type",String)],kj.prototype,"headerBackgroundUrl",void 0);_.L([_.F(),_.H("design:type",Boolean)],kj.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kj.prototype,"modernPanels",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kj.prototype,"dataChanged",null);_.L([_.y({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],kj);
_.G(kj,"ytd-donation-shelf-renderer",function(){if(lL6!==void 0)return lL6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return lL6=B},{mode:1});var EZr;var ODz=function(){return _.z.apply(this,arguments)||this};
_.w(ODz,_.z);_.L([_.F(),_.H("design:type",Object)],ODz.prototype,"data",void 0);_.L([_.y({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ODz);
_.G(ODz,"ytd-donation-unavailable-renderer",function(){if(EZr!==void 0)return EZr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EZr=B},{mode:1});var oZ6;var XM=function(){return _.z.apply(this,arguments)||this};
_.w(XM,_.z);XM.prototype.computeIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],XM.prototype,"data",void 0);_.L([_.y({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],XM);
_.G(XM,"ytd-limited-state-message-renderer",function(){if(oZ6!==void 0)return oZ6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return oZ6=B},{mode:1});var QMi;var nn=function(){return _.z.apply(this,arguments)||this};
_.w(nn,_.z);nn.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
nn.prototype.onTap=function(B){var c=this.data&&this.data.endpoint;c&&!_.uv(_.AV(B),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:c})};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nn.prototype,"data",void 0);_.L([_.y({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],nn);
_.G(nn,"ytd-autotagging-metadata-renderer",function(){if(QMi!==void 0)return QMi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QMi=B},{mode:1});var FCN;var bE=function(){return _.z.apply(this,arguments)||this};
_.w(bE,_.z);bE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bE.prototype,"data",void 0);_.L([_.y({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],bE);
_.G(bE,"ytd-autotagging-metadata-row-renderer",function(){if(FCN!==void 0)return FCN;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return FCN=B},{mode:1});var vZS;var zs8;var Kn=function(){var B=_.z.apply(this,arguments)||this;B.engagementPanelContent=!1;return B};
_.w(Kn,_.z);Kn.prototype.computeHasDividerLine=function(B,c){return B&&!c};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Kn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.H("design:type",Boolean)],Kn.prototype,"hasDividerLine",void 0);_.L([_.F(),_.H("design:type",Object)],Kn.prototype,"engagementPanelContent",void 0);
_.L([_.y({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Kn);
_.G(Kn,"ytd-metadata-row-header-renderer",function(){if(zs8!==void 0)return zs8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return zs8=B},{mode:1});var Sji;var jb=function(){return _.z.apply(this,arguments)||this};
_.w(jb,_.z);jb.prototype.computeHasDividerLine=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jb.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],jb.prototype,"hasDividerLine",void 0);_.L([_.y({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],jb);
_.G(jb,"ytd-metadata-row-renderer",function(){if(Sji!==void 0)return Sji;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Sji=B},{mode:1});var yDA;var UR=function(){return _.z.apply(this,arguments)||this};
_.w(UR,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UR.prototype,"data",void 0);_.L([_.y({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],UR);
_.G(UR,"ytd-metadata-with-image-row-renderer",function(){if(yDA!==void 0)return yDA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yDA=B},{mode:1});var GXi;var dP=function(){var B=_.z.apply(this,arguments)||this;B.rounded=!0;B.fixie=!1;B.fullWidth=!1;return B};
_.w(dP,_.z);_.a=dP.prototype;_.a.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.onDataChanged=function(){var B=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(c){B.onEndpointLinkKeyPress(c)}))};
_.a.onEndpointLinkKeyPress=function(B){B.target===this.endpointLink&&B.keyCode===13&&_.aJ(this.hostElement,"click")};
_.a.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var B;if((B=this.data)==null?0:B.endpoint)_.XX(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.a.onYtNavigate=function(B){this.endpointHref||(B.stopPropagation(),B.preventDefault())};
_.a.onInformationButtonContainerClick=function(B){B.target.id!=="information-button-container"&&(B.stopPropagation(),B.preventDefault())};
_.a.computeStyle=function(B){return B};
_.a.computeIsThumbnailStyle=function(B){return B==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.a.computeThumbnailWidth=function(B){switch(B){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}};
_.a.computeThumbnailObjectFit=function(B){switch(B){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.AJ.Object.defineProperties(dP.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
dP.prototype.onYtNavigate=dP.prototype.onYtNavigate;dP.prototype.onClick=dP.prototype.onClick;dP.prototype.onDataChanged=dP.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],dP.prototype,"componentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],dP.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],dP.prototype,"componentStyle",void 0);_.L([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.H("design:type",Boolean)],dP.prototype,"isThumbnailStyle",void 0);_.L([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.H("design:type",String)],dP.prototype,"thumbnailObjectFit",void 0);
_.L([_.F({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],dP.prototype,"thumbnailWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],dP.prototype,"rounded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],dP.prototype,"fixie",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],dP.prototype,"fullWidth",void 0);_.L([_.jr("#endpoint-link"),_.H("design:type",HTMLAnchorElement)],dP.prototype,"endpointLink",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dP.prototype,"onDataChanged",null);_.L([_.Q("data.endpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],dP.prototype,"endpointHref",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dP.prototype,"onClick",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dP.prototype,"onYtNavigate",null);_.L([_.y({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],dP);
_.G(dP,"ytd-rich-metadata-renderer",function(){if(GXi!==void 0)return GXi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return GXi=B},{mode:_.sL("kevlar_poly_si_batch_j075")?1:2});var Mhy;var qh=function(){var B=_.z.apply(this,arguments)||this;B.fixie=!1;B.fullWidth=!1;return B};
_.w(qh,_.z);qh.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
qh.prototype.computeHasDividerLine=function(B){return B};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qh.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],qh.prototype,"hasDividerLine",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qh.prototype,"fixie",void 0);_.L([_.F(),_.H("design:type",Object)],qh.prototype,"fullWidth",void 0);
_.L([_.y({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],qh);
_.G(qh,"ytd-rich-metadata-row-renderer",function(){if(Mhy!==void 0)return Mhy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Mhy=B},{mode:1});var Cn=function(){var B=_.z.apply(this,arguments)||this;B.engagementPanelContent=!1;B.fixie=!1;B.fullWidth=!1;return B};
_.w(Cn,_.z);
Cn.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"}}}};
Cn.prototype.computeCollapsibleItems=function(B,c,x){return B===void 0||c===void 0||x===void 0||x?[]:B.slice(c)};
Cn.prototype.computeAlwaysShownItems=function(B,c){return B&&B.length?B.slice(0,c):[]};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cn.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Cn.prototype,"collapsed",void 0);
_.L([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.H("design:type",Array)],Cn.prototype,"alwaysShownItems",void 0);_.L([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.H("design:type",Array)],Cn.prototype,"collapsibleItems",void 0);_.L([_.F(),_.H("design:type",Object)],Cn.prototype,"engagementPanelContent",void 0);_.L([_.F(),_.H("design:type",Object)],Cn.prototype,"fixie",void 0);
_.L([_.F(),_.H("design:type",Object)],Cn.prototype,"fullWidth",void 0);_.L([_.y({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Cn);
_.G(Cn,"ytd-metadata-row-container-renderer",function(){if(vZS!==void 0)return vZS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vZS=B},{mode:1});var LCF;var h$=function(){var B=_.z.apply(this,arguments)||this;B.currentPageUrl="";B.baseUrl="";B.isHiddenByUser=null;B.hidden=!1;B.showAboveScrim=!1;B.watchNextGrid=_.T("kevlar_watch_grid");B.modernButtons=_.T("web_modern_buttons");B.roundedContainer=!0;B.noBorder=!1;B.roundBackground=!_.T("live_chat_round_background_killswitch");B.overflowHideChat=_.T("live_chat_overflow_hide_chat");B.forceDarkTheme=!1;B.theaterWatchWhile=!1;B.isListeningForPlayerProgress=!1;B.JSC$20036_playerEvents=new Map;B.isFrameReady=
!1;B.player=null;B.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 B};
_.w(h$,_.z);_.a=h$.prototype;_.a.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.sp(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.a.created=function(){var B=this;this.handleIframeEventListener=function(c){B.handleIframeEvent(c)};
this.handleKeyboardEventListener=function(c){B.handleKeyboardEvent(c)};
this.JSC$20036_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20036_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20036_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20036_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20036_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.a.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()};
_.a.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};
_.a.computeBaseUrl=function(B){var c="/live_chat";this.isChatReplay()&&(c="/live_chat_replay");return _.az(_.Yf(_.P_(_.ZM(B),c),null),"").toString()};
_.a.dataChanged=function(){_.T("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.a.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var B=this.url;if(this.isChatReplay()&&this.player){var c=Math.floor(this.player.getProgressState().current*1E3);B=_.fS(_.ZM(B),"playerOffsetMs",c.toString()).toString()}c=this.chatframe;try{var x=B==="about:blank"?_.j6X:_.Tz(B),P=c.contentDocument.location,Y=_.Ng(x);Y!==void 0&&P.replace(Y)}catch(g){c.src=B}}};
_.a.collapsedChanged=function(){_.aJ(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.a.handleIframeEvent=function(B){if(B&&this.baseUrl.startsWith(B.origin)&&B.source===this.chatframe.contentWindow&&_.xF(B.data))if(B.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(B);else if(B.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(B.data["yt-show-feedback-dialog"]){var c=_.cp().resolve(_.Bp(_.dFW));if(c){var x=B.ports,P;x&&x.length&&(P=function(){x[0].postMessage({})});
B=B.data["yt-show-feedback-dialog"];c.showFeedbackDialog(B.customProductData,B.feedbackContent,P,B.bucket)}}else if(B.data["yt-show-survey"])_.aJ(this.hostElement,"yt-show-survey",B.data["yt-show-survey"]);else if(B.data["yt-purchase-membership"])_.cp().resolve(_.xu).resolveCommand(B.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(B.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(B.data["yt-tunnel-out-live-service-request"]);else if(B.data["yt-user-activity"])_.Bo();
else if(B.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(B.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(B.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(B.data["yt-open-popup"]);else if(B.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(B.data["yt-log-flow-logging-event-command"]);else if(B.data["yt-hide-live-chat"])this.onShowHideChat();else B.data["yt-report-moderation-state-log"]&&
this.player&&(c={cpn:this.player.getVideoData().cpn},_.JP("liveChatBeingModerated",c))};
_.a.attachLiveChatResponseVeTrackingParams=function(B){B=_.VF(B);var c=_.Wf(),x=_.Gu("liveChatRenderer.trackingParams",this.data);c&&x&&_.Gq(c,_.VF(x),B)};
_.a.handleBuyflowMessages=function(B){var c=B.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,x=B.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,P=B.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.PHw(_.pC(_.iI),c.replace(/-/g,"+").replace(/_/g,"/"),function(Y){B.ports[0].postMessage({success:!0,buyFlowResponse:Y})},void 0,function(Y){B.ports[0].postMessage({success:!1,
error:Y&&Y.message||"Buyflow rejected without error."})},_.CW().get("hl"),void 0,function(){B.ports[0].postMessage({closed:!0})},x,P)};
_.a.setupPlayerProgressRelay=function(){var B=this;if(!this.isListeningForPlayerProgress){var c=_.Bv();c!=null&&c.getPlayerPromise&&(c.getPlayerPromise().then(function(x){B.playerApiReady(x)}),this.isListeningForPlayerProgress=!0)}};
_.a.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.a.playerApiReady=function(B){this.setPlayer(B)};
_.a.playerProgressHandler=function(){if(this.player){var B=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":B.current})}};
_.a.playerAdStartHandler=function(B){this.postToContentWindow({"yt-player-ad-start":B})};
_.a.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.a.playerStateChangeHandler=function(B){this.postToContentWindow({"yt-player-state-change":B})};
_.a.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20036_playerEvents);B&&(this.player=B,this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$20036_playerEvents),_.aJ(this.hostElement,"player-api-ready"))};
_.a.liveChatPageUrl=function(B,c,x,P){return!x||c?"about:blank":x.liveChatRenderer?(c=_.ZM(this.currentPageUrl).JSC$8077_queryData_,mqz(c),B=_.ZM(B),c.add("continuation",x.liveChatRenderer.continuations[0].reloadContinuationData.continuation),x=_.Iu()==="USER_INTERFACE_THEME_DARK",(P||x)&&c.add("dark_theme","true"),_.Yf(B,c),P=_.ZM(B.toString()),x=P.JSC$8077_queryData_,"SESSION_INDEX"in _.Qa&&(x.add("authuser",_.v5("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Qa&&x.add("pageId",_.v5("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Qa&&x.add("sdc",_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),P.toString()):""};
_.a.isCollapsed=function(B,c){return c!==null?c:this.isChatReplay()||B&&B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage?!0:B?B.liveChatRenderer?B.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.T("live_chat_hide_premiere_replay_message")||B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.a.isHidden=function(B,c,x){var P=c&&c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage,Y=c&&c.liveChatRenderer&&c.liveChatRenderer.showHideButton,g=c&&c.liveChatRenderer&&c.liveChatRenderer.showButton;return x&&B&&!P&&!g||!x&&B&&!P&&!Y?!0:c&&c.liveChatRenderer&&c.liveChatRenderer.initialDisplayState?c.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.a.computeButtonOverride=function(B,c){if(B&&c)return{type:"outline"}};
_.a.setCollapsedState=function(B){_.t(B,_.dfF)&&(this.isHiddenByUser=!!_.t(B,_.dfF).collapsed,!this.isHiddenByUser&&_.T("enable_teaser_framework_web_client")&&_.gj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.a.forwardReduxActionToIframe=function(B){this.postToContentWindow({"yt-live-chat-forward-redux-action":B})};
_.a.onLoopRangeChange=function(B){this.showAboveScrim=!(B==null||!B.postId)};
_.a.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.a.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.a.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.a.sendDarkThemePostMessage=function(B){this.postToContentWindow({"yt-live-chat-set-dark-theme":B})};
_.a.onLiveChatBuyFlowCallback=function(B){this.postToContentWindow({"yt-live-chat-buy-flow-callback":B})};
_.a.handleKeyboardEvent=function(B){(0,_.wW.containsValue)(hJA,B.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:B.type,keyCode:B.keyCode}})};
_.a.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.a.postToContentWindow=function(B){if(this.isFrameReady)try{var c=window.location.protocol+"//"+window.location.host,x;(x=this.chatframe)!=null&&x.contentWindow?this.chatframe.contentWindow.postMessage(B,c):_.Ob(new _.mc("Tried posting a message to an iframe with no content window",B))}catch(P){_.lb(P)}};
_.a.shouldHideChatFrame=function(B){return B&&_.T("hide_live_chat_button_when_collapsed")};
_.AJ.Object.defineProperties(h$.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.T("live_chat_overflow_hide_chat")||_.T("web_watch_chat_hide_button_killswitch"))return _.T("live_chat_overflow_hide_chat");var B,c,x,P;return!!((B=this.data)==null?0:(c=B.liveChatRenderer)==null?0:(x=c.header)==null?0:(P=x.liveChatHeaderRenderer)==null?0:P.collapseButton)}}});
h$.prototype.collapsedChanged=h$.prototype.collapsedChanged;h$.prototype.urlChanged=h$.prototype.urlChanged;h$.prototype.dataChanged=h$.prototype.dataChanged;h$.prototype.onShowHideChat=h$.prototype.onShowHideChat;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],h$.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],h$.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],h$.prototype,"ytOpenPopupBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],h$.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],h$.prototype,"currentPageUrl",void 0);
_.L([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.H("design:type",Object)],h$.prototype,"baseUrl",void 0);_.L([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.H("design:type",String)],h$.prototype,"url",void 0);_.L([_.F(),_.H("design:type",Object)],h$.prototype,"isHiddenByUser",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.H("design:type",Object)],h$.prototype,"hidden",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.H("design:type",Boolean)],h$.prototype,"collapsed",void 0);_.L([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.H("design:type",Boolean)],h$.prototype,"hideChatFrame",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"showAboveScrim",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"watchNextGrid",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],h$.prototype,"modernButtons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"noBorder",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],h$.prototype,"roundBackground",void 0);
_.L([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.H("design:type",Object)],h$.prototype,"toggleButtonOverride",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],h$.prototype,"overflowHideChat",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"forceDarkTheme",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],h$.prototype,"enableShowWithoutHideChatButton",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"theaterWatchWhile",void 0);_.L([_.jr("#chatframe"),_.H("design:type",HTMLIFrameElement)],h$.prototype,"chatframe",void 0);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h$.prototype,"onShowHideChat",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h$.prototype,"dataChanged",null);
_.L([_.bF("url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h$.prototype,"urlChanged",null);_.L([_.bF("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h$.prototype,"collapsedChanged",null);_.L([_.y({is:"ytd-live-chat-frame",disableElementRegistration:!0})],h$);
_.G(h$,"ytd-live-chat-frame",function(){if(LCF!==void 0)return LCF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return LCF=B},{mode:1});var ZDS;var mi=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_modern_buttons");B.buttonOverrides={style:"call-to-action",type:"filled"};return B};
_.w(mi,_.z);mi.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=_.zF(this.data.backgroundColor)))};
mi.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var B=this.getFormattedStringLoggingDirectives(this.data.headline);B&&this.rendererBehavior.logExplicitClick(B)}};
mi.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var B=this.getFormattedStringLoggingDirectives(this.data.description);B&&this.rendererBehavior.logExplicitClick(B)}};
mi.prototype.getFormattedStringLoggingDirectives=function(B){return B&&B.runs&&B.runs.length>0&&B.runs[0]&&B.runs[0].loggingDirectives?B.runs[0].loggingDirectives:null};
mi.prototype.dataChanged=mi.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mi.prototype,"rendererBehavior",void 0);_.L([_.J(WC8.YtMacroReplacementBehavior),_.H("design:type",Object)],mi.prototype,"macroReplacementBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mi.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],mi.prototype,"navigationEndpoint",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],mi.prototype,"enableColors",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],mi.prototype,"modern",void 0);_.L([_.F(),_.H("design:type",Object)],mi.prototype,"buttonOverrides",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mi.prototype,"dataChanged",null);_.L([_.y({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],mi);
_.G(mi,"ytd-action-basic-immersive-content-renderer",function(){if(ZDS!==void 0)return ZDS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ZDS=B},{mode:1});var HD6;var fLS;var TS=function(){return _.z.apply(this,arguments)||this};
_.w(TS,_.z);TS.prototype.dataChanged=function(){var B;((B=this.data)==null?void 0:B.backgroundColor)!==void 0&&_.k9(this.hostElement,{"--bgu-color":_.zF(this.data.backgroundColor)})};
TS.prototype.onImageTileClick=function(){var B;((B=this.data)==null?0:B.navigationEndpoint)&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var c;((c=this.data)==null?0:c.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.AJ.Object.defineProperties(TS.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.data)==null?void 0:B.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 B;return((B=this.data)==null?void 0:B.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var B,c,x;if(((B=this.data)==null?void 0:(c=B.detailsLine)==null?void 0:c.texts)!=null&&((x=this.data)==null?void 0:x.detailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.detailsLine.texts.map(function(Y){return Y.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var B,c,x;if(((B=this.data)==null?void 0:(c=B.optionalDetailsLine)==null?void 0:c.texts)!=null&&((x=this.data)==null?void 0:x.optionalDetailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.optionalDetailsLine.texts.map(function(Y){return Y.text}).join("")}return null}}});
TS.prototype.dataChanged=TS.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TS.prototype,"rendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],TS.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TS.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.backgroundColor"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],TS.prototype,"hasBackgroundColor",null);
_.L([_.Q("data.objectFit"),_.H("design:type",Object),_.H("design:paramtypes",[])],TS.prototype,"getObjectFit",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.tileRenderingStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],TS.prototype,"hasTileMetadata",null);_.L([_.Q("data.detailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],TS.prototype,"getSecondaryDetails",null);
_.L([_.Q("data.optionalDetailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],TS.prototype,"getOptionalDetails",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TS.prototype,"dataChanged",null);_.L([_.y({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],TS);
_.G(TS,"ytd-image-tile-renderer",function(){if(fLS!==void 0)return fLS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fLS=B},{mode:1});var iDo;var VX=function(){return _.z.apply(this,arguments)||this};
_.w(VX,_.z);VX.prototype.getOpenLinkIcon=function(){return _.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
VX.prototype.onSitelinkTap=function(){_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.T("kevlar_command_handler_migration_killswitch"))_.XX(this.hostElement,this.data.clickCommands,this.hostElement);else for(var B=_.p(this.data.clickCommands),c=B.next();!c.done;c=B.next())this.ytComponentBehavior.resolveCommand(c.value)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],VX.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VX.prototype,"rendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VX.prototype,"data",void 0);_.L([_.y({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],VX);
_.G(VX,"ytd-sitelink-renderer",function(){if(iDo!==void 0)return iDo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iDo=B},{mode:1});var t$=function(){var B=_.z.apply(this,arguments)||this;B.paddingFix=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return B};
_.w(t$,_.z);t$.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"}}}};
t$.prototype.dataChanged=function(){var B=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;B.ytMacroReplacementBehavior.sendServiceRequestAction([c])})};
t$.prototype.shouldHideFooter=function(B){return!(B&&_.T("use_ads_engagement_panel_desktop_footer_cta"))};
_.AJ.Object.defineProperties(t$.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(x){var P;return(P=_.t(x,NOz))==null?void 0:P.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(x){var P;return((P=_.t(x,NOz))==null?void 0:P.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
t$.prototype.dataChanged=t$.prototype.dataChanged;_.L([_.J(WC8.YtMacroReplacementBehavior),_.H("design:type",Object)],t$.prototype,"ytMacroReplacementBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],t$.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],t$.prototype,"paddingFix",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],t$.prototype,"removeBorderFromImageTiles",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],t$.prototype,"useFooteredMetadataRenderingStyle",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],t$.prototype,"dataChanged",null);_.L([_.y({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],t$);
_.G(t$,"ytd-action-engagement-panel-content-renderer",function(){if(HD6!==void 0)return HD6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HD6=B},{mode:1});var ADy;var uuB=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;B=_.Ho("ad-grid-card-image-full-metadata-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});return _.U("ad-grid-card-image-full-metadata-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:B,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(P){return _.U(_.UJ,{data:P.data,
customCommandResolver:x})}})),_.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.U(_.m,{cond:function(){return c().headline},
then:function(P){return _.U(_.RF,{text:P,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.U(_.m,{cond:function(){return c().detailsLine},
then:function(P){return _.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.U(_.IF,{data:P},{adDetailsLineViewModel:function(Y){return _.U(_.Pz,{data:Y.data,customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.U(_.m,{cond:function(){return c().secondaryDetailsLine},
then:function(P){return _.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.U(_.IF,{data:P},{adDetailsLineViewModel:function(Y){return _.U(_.Pz,{data:Y.data,customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Si");var Drs=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;B=_.Ho("ad-grid-card-image-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});return _.U("ad-grid-card-image-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:B,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(P){return _.U(_.UJ,{data:P.data,
customCommandResolver:x})}}),_.U("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.U(_.IF,{data:function(){return c().adCardBadge}},{adCardBadgeViewModel:_.Ayy})))},"Ti");var rDs=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;B=_.Ho("ad-grid-card-text-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});return _.U("ad-grid-card-text-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:B,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.U(_.m,{cond:function(){return c().title},
then:function(P){return _.U(_.RF,{text:P,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.U("div",{class:function(){return _.T("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.U(_.mV,{each:function(){var P;
return((P=c())==null?void 0:P.descriptions)||[]},
keyBy:"INDEX"},function(P){return _.U(_.RF,{text:P,className:function(){return _.T("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.U("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.U(_.IF,{data:function(){return c().moreInfoButton}},{adButtonViewModel:function(P){return _.U(_.eS,{data:P.data,
customCommandResolver:x})}})))},"Ui");var Rsz=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;var P=B.adGridCardCollectionStyle;B=_.Ho("ad-grid-card-collection-view-model");_.e3(B,{visibilityCallback:function(Y){var g,k=(g=c().interaction)==null?void 0:g.onFirstVisible;Y&&k&&_.Gl(k)},
showOption:_.r5});return _.U("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:B,style:function(){return"grid-template-columns: repeat("+ykl(P?P():c().style)+", minmax(0, 1fr));"}},_.U(_.IF,{data:function(){var Y;
return(Y=c())==null?void 0:Y.gridCards}},{adGridCardImageViewModel:function(Y){return _.U(Drs,{data:Y.data,
customCommandResolver:x})},
adGridCardImageFullMetadataViewModel:function(Y){return _.U(uuB,{data:Y.data,customCommandResolver:x})},
adGridCardTextViewModel:function(Y){return _.U(rDs,{data:Y.data,customCommandResolver:x})}}))},"Vi");_.xU(_.rM(function(B){var c=B.data;B=_.Ho("panel-text-icon-image-tiles-button-layout-content-view-model");_.uR(B,function(){return c().interaction},Gsi);
_.e3(B,{visibilityCallback:function(x){var P,Y=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&Y&&_.Gl(Y)},
showOption:_.r5});return _.U("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:B},_.U("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.U(_.m,{cond:_.FZA("(min-width: "+((0,_.lT)()+_.FW)+"px)"),then:function(){return _.U(_.IF,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(x){return _.U(Rsz,{data:x.data,
customCommandResolver:Gsi})}})},
else:function(){return _.U(_.IF,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(x){return _.U(Rsz,{data:x.data,
customCommandResolver:Gsi,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.U("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.U(_.IF,{data:function(){return c().adButton}},{adButtonViewModel:function(x){return _.U(_.eS,{data:x.data,
customCommandResolver:Gsi})}})))},"Wi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;B=_.Ho("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.uR(B,function(){return c().interaction},MHs);
_.e3(B,{visibilityCallback:function(x){var P,Y=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&Y&&_.Gl(Y)},
showOption:_.r5});return _.U("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:B},_.U("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.U(_.IF,{data:function(){if(_.FZA("(min-width: "+((0,_.lT)()+_.FW)+"px)")())var x=c().adGridCardCollection;else{x=Object.assign({},_.t(c().adGridCardCollection,Ilr));var P;x.gridCards!==void 0&&((P=x.gridCards)==null?void 0:P.length)>1?x.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":x.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";x={adGridCardCollectionViewModel:x}}return x}},{adGridCardCollectionViewModel:function(x){return _.U(Rsz,{data:x.data,
customCommandResolver:MHs})}})),_.U("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.U(_.IF,{data:function(){return c().adButton}},{adButtonViewModel:function(x){return _.U(_.eS,{data:x.data,
customCommandResolver:MHs})}})))},"Xi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.rk}});var wP=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return B};
_.w(wP,_.z);_.a=wP.prototype;_.a.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"}}}};
_.a.attached=function(){this.getDataFromPlayerAndRender()};
_.a.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.a.getDataFromPlayerAndRender=function(){var B=this,c=_.e5(this.hostElement);c&&c.getPlayerPromise().then(function(x){B.getCachedDataAndListen(x)})};
_.a.getCachedDataAndListen=function(B){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=B)};
_.a.resolveCachedActions=function(){var B=_.Gu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(B=B&&B())&&!_.wW.isEmpty(B)&&this.sendUpdateEngagementPanelAction(B);(B=(B=_.Gu("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&B())&&!_.wW.isEmpty(B)&&this.sendChangeEngagementPanelVisibilityAction(B);(B=(B=_.Gu("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&B())&&!_.wW.isEmpty(B)&&this.sendScrollToEngagementPanelCommand(B)};
_.a.sendUpdateEngagementPanelAction=function(B){var c;_.gj(this.hostElement,"yt-update-engagement-panel-action",[(c=_.wW.get(B,"action"))!=null?c:B])};
_.a.sendChangeEngagementPanelVisibilityAction=function(B){_.gj(this.hostElement,"yt-change-engagement-panel-visibility-action",[B])};
_.a.sendScrollToEngagementPanelCommand=function(B){_.gj(this.hostElement,"yt-scroll-to-engagement-panel-command",[B])};
_.a.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.T("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Ob(Error("im"))};
wP.prototype.dataChanged=wP.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],wP.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],wP.prototype,"componentBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],wP.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wP.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],wP.prototype,"player",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wP.prototype,"dataChanged",null);_.L([_.y({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],wP);
_.G(wP,"ytd-ads-engagement-panel-content-renderer",function(){if(ADy!==void 0)return ADy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return ADy=B},{mode:1});var esr;var Nh=function(){var B=_.z.apply(this,arguments)||this;B.player=null;B.JSC$20073_playerEvents=new Map;B.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return B};
_.w(Nh,_.z);_.a=Nh.prototype;_.a.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]]"}}}}}};
_.a.created=function(){this.player=null;this.JSC$20073_playerEvents=new Map;this.JSC$20073_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20073_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20073_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20073_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.a.attached=function(){var B=this,c=_.e5();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));c&&c.getPlayerPromise().then(function(x){B.setPlayer(x);B.set("isPageLoad",!1)})};
_.a.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20073_playerEvents);this.set("player",B);B&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$20073_playerEvents),B.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.a.onLoopRangeChange=function(B){var c=_.cp().resolve(_.Bp(_.rV));if((!c||c.isOnWatch())&&this.hostElement.clientHeight){var x;!B&&((x=this.data)==null?0:x.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.a.onVideoProgress=function(B){var c,x,P=((c=this.player)==null?void 0:(x=c.getPresentingPlayerType)==null?void 0:x.call(c))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P);var Y;if(!P&&(Y=this.player)!=null&&Y.getLoopRange()){x=this.player.getLoopRange();c=x.startTimeMs;x=x.endTimeMs;P=this.player.getProgressState(1).seekableStart;var g;c<P*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
B=x<B*1E3;var k;((k=this.player)==null?0:k.getLoopRange())&&B&&this.player.seekTo(c/1E3)}};
_.a.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.a.onYtDeleteClipEngagementPanelCommand=function(B){_.t(B,Lr8).command&&this.ytComponentBehavior.resolveCommand(_.t(B,Lr8).command)};
_.AJ.Object.defineProperties(Nh.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.fk("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Nh.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Nh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],Nh.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Nh.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Nh.prototype,"isAdPlaying",void 0);_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Nh.prototype,"isPageLoad",void 0);_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Nh.prototype,"isDarkTheme",void 0);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Nh.prototype,"voteCount",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Nh.prototype,"channelEndpoint",null);_.L([_.Q("channelEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],Nh.prototype,"channelHref",null);_.L([_.y({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Nh);
_.G(Nh,"ytd-clip-attribution-renderer",function(){if(esr!==void 0)return esr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return esr=B},{mode:1});var BFA;var Iq=function(){var B=_.z.apply(this,arguments)||this;B.player=null;B.JSC$20078_playerEvents=new Map;return B};
_.w(Iq,_.z);_.a=Iq.prototype;_.a.created=function(){this.player=null;this.JSC$20078_playerEvents=new Map;this.JSC$20078_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20078_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20078_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.a.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.a.attached=function(){var B=this,c=_.e5();c&&c.getPlayerPromise().then(function(x){B.setPlayer(x);B.set("isPageLoad",!1)})};
_.a.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20078_playerEvents);this.set("player",B);if(B){this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$20078_playerEvents);var c;(B==null?void 0:(c=B.getPresentingPlayerType)==null?void 0:c.call(B))===2&&this.playerAdStartHandler()}};
_.a.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.a.onVideoProgress=function(){var B,c,x=((B=this.player)==null?void 0:(c=B.getPresentingPlayerType)==null?void 0:c.call(B))===2;this.isAdPlaying!==x&&this.set("isAdPlaying",x)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],Iq.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Iq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Iq.prototype,"isAdPlaying",void 0);
_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Iq.prototype,"isPageLoad",void 0);_.L([_.y({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Iq);
_.G(Iq,"ytd-clip-section-footer-renderer",function(){if(BFA!==void 0)return BFA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return BFA=B},{mode:1});var cFs;var xEF;var J$=function(){return _.z.apply(this,arguments)||this};
_.w(J$,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],J$.prototype,"data",void 0);_.L([_.y({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],J$);
_.G(J$,"ytd-clip-ad-state-renderer",function(){if(xEF!==void 0)return xEF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return xEF=B},{mode:1});var Puy;var WP=function(){var B=_.z.apply(this,arguments)||this;B.value="";B.valid=!1;B.userChangedValue=!1;B.disabled=!1;B.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return B};
_.w(WP,_.z);_.a=WP.prototype;_.a.detached=function(){this.userChangedValue=!1};
_.a.handleKeyDown=function(B){if(_.nY)var c=13;else _.hal&&_.bJ?c=13:c=13;B.keyCode===c&&B.preventDefault()};
_.a.handleInput=function(){var B=_.Y9(this.hostElement).querySelector("#title");if(B){var c=(B.value||"").replace(/\r|\n/g," ");this.set("value",c);B.value=c;this.valid=B.validate();this.userChangedValue=!0}};
_.a.handleBlur=function(){this.valid=_.Y9(this.hostElement).querySelector("#title").validate()};
_.a.onValueChanged=function(){_.aJ(this.hostElement,"title-changed",{title:this.value})};
_.a.onValidChanged=function(){_.aJ(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.a.setInput=function(B,c){var x=_.Y9(this.hostElement).querySelector("#title");x&&(x.value=B,this.handleInput(),c&&(x.invalid=!1,this.valid=!0))};
_.a.onClipCreationDisable=function(){this.set("disabled",!0)};
_.a.onClipCreationEnable=function(){this.set("disabled",!1)};
_.a.onClipCreationVisibilityChange=function(B){var c=this;B.visible?requestAnimationFrame(function(){var x;((x=_.Y9(c.hostElement).querySelector("#title"))==null?void 0:x.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
WP.prototype.onValidChanged=WP.prototype.onValidChanged;WP.prototype.onValueChanged=WP.prototype.onValueChanged;WP.prototype.handleBlur=WP.prototype.handleBlur;WP.prototype.handleInput=WP.prototype.handleInput;WP.prototype.handleKeyDown=WP.prototype.handleKeyDown;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],WP.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],WP.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],WP.prototype,"value",void 0);_.L([_.F(),_.H("design:type",Object)],WP.prototype,"valid",void 0);_.L([_.F(),_.H("design:type",Object)],WP.prototype,"userChangedValue",void 0);_.L([_.F(),_.H("design:type",Object)],WP.prototype,"disabled",void 0);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],WP.prototype,"handleKeyDown",null);
_.L([_.nF("input"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WP.prototype,"handleInput",null);_.L([_.nF("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WP.prototype,"handleBlur",null);_.L([_.bF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WP.prototype,"onValueChanged",null);
_.L([_.bF("valid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WP.prototype,"onValidChanged",null);_.L([_.y({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],WP);
_.G(WP,"ytd-clip-creation-text-input-renderer",function(){if(Puy!==void 0)return Puy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Puy=B},{mode:1});var Y_l;var aQo;var g_6;var sRi;var pjs;var lE=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};B.pendingStoryboardImages_={};B.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];B.tickLabelInterval=30;B.mediumTickInterval=5;B.largeTickInterval=15;B.aboveRulerHeight=32;B.rulerHeight=50;B.smallTickHeight=4;B.mediumTickHeight=8;B.largeTickHeight=16;B.mediaListeners_=
{};return B};
_.w(lE,_.z);_.a=lE.prototype;_.a.attached=function(){var B=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(c){c=_.p(["screen and (min-resolution: "+c+")","screen and (max-resolution: "+c+")"]);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=window.matchMedia(x);P&&(B.mediaListeners_[x]=B.updatePixelRatio_.bind(B),P.addEventListener?P.addEventListener("change",B.mediaListeners_[x]):P.addListener?P.addListener(B.mediaListeners_[x]):delete B.mediaListeners_[x])}})};
_.a.detached=function(){this.setPlayer(null);for(var B=_.p(Object.keys(this.mediaListeners_)),c=B.next();!c.done;c=B.next()){var x=c.value;c=this.mediaListeners_[x];(x=window.matchMedia(x))&&(x.removeEventListener?x.removeEventListener("change",c):x.removeListener&&x.removeListener(c))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.a.onVisibilityChangedAction_=function(B){var c=this;B.visible&&!this.player_&&(B=_.e5())&&B.getPlayerPromise().then(function(x){c.setPlayer(x)})};
_.a.setPlayer=function(B){B&&this.set("player_",B)};
_.a.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.a.setUpCanvas_=function(){var B=this.rulerWidth,c=this.devicePixelRatio_,x=this.visible;this.set("canvasReady_",!1);if(x&&c!==0){x=this.aboveRulerHeight+this.rulerHeight;var P=_.Y9(this.hostElement).querySelector("#ticks");P.width=B*c;P.height=x*c;P.style.width=B+"px";P.style.height=x+"px";P.getContext("2d").scale(c,c);this.set("canvasReady_",!0)}};
_.a.drawRuler_=function(B,c,x,P,Y,g,k,n,b,d,q,C){B&&x&&c&&(B=_.Y9(this.hostElement).querySelector("#ticks"),c=B.getContext("2d"),c.clearRect(0,0,B.width,B.height),c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),c.lineWidth=2,c.beginPath(),c.moveTo(0,this.aboveRulerHeight),c.lineTo(B.width,this.aboveRulerHeight),c.moveTo(0,B.height),c.lineTo(B.width,B.height),c.stroke(),this.drawRulerTicks_(B,g,Y,P),this.drawStoryboardImages_(B,x,g,Y,P),c.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
c.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(k-g,P,!1),this.rulerHeight),x=this.timeToPixels_(n-g,P,!1),c.fillRect(x,this.aboveRulerHeight,B.width-x,this.rulerHeight),this.drawSpeedLines_(B,g,C))};
_.a.drawRulerTicks_=function(B,c,x,P){var Y=B.getContext("2d");Y.save();Y.lineWidth=1;for(var g=Math.floor(Math.max(0,c-this.tickLabelInterval));g<c+x;g++){Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var k=(g-c)*P;Y.beginPath();Y.moveTo(k,B.height);var n=this.smallTickHeight;g%this.largeTickInterval===0?n=this.largeTickHeight:g%this.mediumTickInterval===0&&(n=this.mediumTickHeight);Y.lineTo(k,B.height-n);Y.stroke();g%this.tickLabelInterval===0&&(Y.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Y.fillText(IC(g),k+4,12),Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Y.moveTo(k,0),Y.lineTo(k,this.aboveRulerHeight),Y.stroke())}Y.restore()};
_.a.percentToHex_=function(B){B=Math.round(B*255).toString(16);B.length<2&&(B="0"+B);return B};
_.a.drawSpeedLines_=function(B,c,x){var P=B.getContext("2d");P.save();var Y=Math.min(25,Math.abs(x)-15)/25,g=B.width*.3*Y,k=B.width*-.3,n=B.width*1.3,b=this.aboveRulerHeight;B=B.height;var d=Math.round(4*Y),q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");q.length<7&&(q="#"+q.substring(1,4).repeat(2));var C=this.percentToHex_(.5+Y/2);C=q+C;q+="00";if(Y>0)for(Y=0;Y<d;Y++){var h=k+Math.random()*(n-k),V=b+Math.random()*(B-b),N=g+c%g,l=P.createLinearGradient(h,V,h+N,V);
x<0?(l.addColorStop(0,C),l.addColorStop(.4,C),l.addColorStop(.9,q)):(l.addColorStop(.1,q),l.addColorStop(.6,C),l.addColorStop(1,C));P.strokeStyle=l;P.lineWidth=1;P.beginPath();P.moveTo(h,V);P.lineTo(h+N,V);P.stroke()}P.restore()};
_.a.getStoryboardForTime_=function(B,c,x){x===void 0&&(x=c.getNumberOfStoryboardLevels()-1);B=c.getStoryboardFrameIndex(B,x);return c.getStoryboardFrame(B,x)};
_.a.drawStoryboardImages_=function(B,c,x,P,Y){if(!this.disabled){B=B.getContext("2d");var g=this.getStoryboardForTime_(0,c);if(g){var k=g.width/g.columns;g=g.height/g.rows;var n=k/g,b=this.rulerHeight*n;b=this.tickLabelInterval*(n<this.tickLabelInterval*Y/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Y/b):Math.round(b/(this.tickLabelInterval*Y)));var d=b*Y,q=this.rulerHeight,C=d/this.rulerHeight,h=Math.floor(Math.max(0,x-b));for(h-=h%b;h<x+P;h+=b){var V=this.getStoryboardForTime_(h,c),N=this.getPreloadedStoryboard_(V.url);
if(N){var l=(h-x)*Y,E=this.aboveRulerHeight,S=V.column*k,M=V.row*g;if(n<C){var f=q/(d/n);V=k;f*=g;M+=(g-f)/2}else V=d/(q*n)*k,f=g,S+=(k-V)/2;B.drawImage(N,S,M,V,f,l,E,d,q)}else this.fetchStoryboardImage_(V)}}}};
_.a.getPreloadedStoryboard_=function(B){return this.storyboardImages_.find(function(c){if(c.src==B)return!0;var x=c.src.indexOf(B);return x!=-1&&x==c.src.length-B.length})};
_.a.fetchStoryboardImage_=function(B){var c=this,x=this.getPreloadedStoryboard_(B.url),P=this.pendingStoryboardImages_[B.url];x||P!==void 0||(x=new Promise(function(Y){var g=new Image(B.width,B.height);g.src=B.url;g.onload=function(){Y(g)};
g.onerror=function(){Y(null)}}),this.pendingStoryboardImages_[B.url]=x,x.then(function(Y){Y&&c.push("storyboardImages_",Y);
return Y}).finally(function(){delete c.pendingStoryboardImages_[B.url]}))};
_.a.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.a.timeToPixels_=function(B,c,x){B*=c;return x===void 0||x?B+"px":B};
_.a.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
lE.prototype.drawRuler_=lE.prototype.drawRuler_;lE.prototype.setUpCanvas_=lE.prototype.setUpCanvas_;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],lE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],lE.prototype,"start",void 0);_.L([_.F({value:30}),_.H("design:type",Number)],lE.prototype,"end",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],lE.prototype,"visible",void 0);_.L([_.F(),_.H("design:type",Object)],lE.prototype,"player_",void 0);_.L([_.F(),_.H("design:type",Number)],lE.prototype,"tickSpacing",void 0);_.L([_.F(),_.H("design:type",Number)],lE.prototype,"windowSizeSec",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],lE.prototype,"rulerWidth",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],lE.prototype,"rulerShift",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],lE.prototype,"canvasReady_",void 0);_.L([_.F({value:function(){return[]}}),
_.H("design:type",Array)],lE.prototype,"storyboardImages_",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],lE.prototype,"disabled",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],lE.prototype,"forceRender_",void 0);_.L([_.F({value:1}),_.H("design:type",Number)],lE.prototype,"devicePixelRatio_",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],lE.prototype,"windowSpeed",void 0);
_.L([_.bF("visible","devicePixelRatio_","rulerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lE.prototype,"setUpCanvas_",null);
_.L([_.bF("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.H("design:returntype")],lE.prototype,"drawRuler_",null);_.L([_.Em({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],lE);
_.G(lE,"yt-clip-creation-scrubber-canvas",function(){if(pjs===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);pjs=B}B=pjs;return B},
{mode:2});var kbA;var Xjz;var ER=function(){var B=_.z.apply(this,arguments)||this;B.start=0;B.end=30;B.visible=!1;B.draggingLeft_=!1;B.draggingRight_=!1;B.draggingRuler_=!1;B.draggingWindow_=!1;B.seekableStart=0;B.seekableEnd=0;B.rulerWidth_=0;B.rulerShift_=0;B.windowSlideSpeed=0;B.disabled=!1;B.initialized=!1;B.durationAccessibilityLabel="";B.activeLoopRange_=!1;B.rulerDragMouseStart_=0;B.rulerDragRulerStart_=0;B.rulerDragStartTime_=0;B.rulerDragEndTime_=0;B.dragMouseLastX_=0;B.scrollInterval_=null;B.scrubberVe_=null;B.boundHandlers_=
{};B.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return B};
_.w(ER,_.z);_.a=ER.prototype;
_.a.created=function(){var B=this;this.JSC$20091_playerEvents=new Map;this.JSC$20091_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20091_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20091_playerEvents.set("onStateChange",this.onStateChange_);var c={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(c).forEach(function(x){B.boundHandlers_[x]=c[x].bind(B)})};
_.a.attached=function(){this.activeLoopRange_=!1;_.Y9(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Y9(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.JW(156731)};
_.a.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Y9(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Y9(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.a.onVisibilityChangedAction_=function(B){var c=this;B.visible&&!this.player_&&(B=_.e5())&&B.getPlayerPromise().then(function(x){c.setPlayer(x)})};
_.a.setPlayer=function(B){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20091_playerEvents);B&&(this.set("player_",B),this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$20091_playerEvents))};
_.a.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.a.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.a.beginHandleDrag_=function(B){this.disabled||(B.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=B.clientX,B.target===_.Y9(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():B.target===_.Y9(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.a.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.a.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.a.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.a.beginRulerDrag_=function(B){this.disabled||(B.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=B.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.a.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.a.beginWindowScroll_=function(){var B=this;this.scrollInterval_=setInterval(function(){var c=B.windowSlideSpeed;if(c=_.RCi(B.start,B.boundedRulerStartLimit_())?c-.1:_.RCi(B.end,B.boundedRulerEndLimit_())?c+.1:0){var x=B.capRulerOffset_(B.rulerShift_+c);x==B.rulerShift_?c=0:(B.set("rulerShift_",x),_.aJ(B.hostElement,"set-fixed-length-range",{start:B.start+c,duration:B.end-B.start}))}B.set("windowSlideSpeed",c)},33)};
_.a.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.a.endDrag_=function(){this.logClick();var B=void 0;this.draggingRight_?B=this.end-1:this.draggingLeft_&&(B=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,B);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))};
_.a.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.a.updateRulerSize_=function(){this.set("rulerWidth_",_.Y9(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.a.handleMouseDrag_=function(B){B.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(B):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(B):this.draggingWindow_&&this.handleWindowDrag_(B))};
_.a.handleRulerDrag_=function(B){B=this.pixelsToTime_(B.clientX-this.rulerDragMouseStart_);B=this.capRulerOffset_(this.rulerDragRulerStart_-B);this.set("rulerShift_",B);var c=this.rulerDragStartTime_-(this.rulerDragRulerStart_-B);_.aJ(this.hostElement,"set-fixed-length-range",{start:c,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-B)-c})};
_.a.handleWindowDrag_=function(B){var c=B.clientX-this.dragMouseLastX_;this.dragMouseLastX_=B.clientX;B=this.pixelsToTime_(c);_.aJ(this.hostElement,"set-fixed-length-range",{start:this.start+B,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.a.capRulerOffset_=function(B){var c=this.seekableStart-this.pixelsToTime_(16),x=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(c,B),x)};
_.a.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.a.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.a.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.a.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.a.handleWindowHandleDrag_=function(B){var c=B.clientX-this.dragMouseLastX_;this.dragMouseLastX_=B.clientX;B=this.pixelsToTime_(c);if(this.draggingLeft_){var x=this.start+B;var P=this.end}else this.draggingRight_&&(x=this.start,P=this.end+B);_.aJ(this.hostElement,"set-range",{start:x,end:P,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.a.onVideoProgress_=function(B){this.disabled||(B=this.timeToPixels_(B-this.rulerShift_,this.tickSpacing_),_.Y9(this.hostElement).querySelector("#playhead").style.transform="translateX("+B+")")};
_.a.onClipCreationDisable_=function(){this.endDrag_()};
_.a.timeToPixels_=function(B,c,x){B*=c;return x===void 0||x?B+"px":B};
_.a.pixelsToTime_=function(B){return B/this.tickSpacing_};
_.a.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.a.centerRuler_=function(B,c,x){this.set("rulerShift_",this.capRulerOffset_(B+(c-B)/2-x/2))};
_.a.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.a.updateLoopRange_=function(B,c,x,P,Y,g,k){B&&(c&&P&&!x?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(B.pauseVideo(),B.seekTo(Y,!1,void 0,void 0,50)):this.draggingRight_?(B.pauseVideo(),B.seekTo(g-.1,!1,void 0,void 0,50)):(k!==void 0?B.seekTo(k,!0,void 0,void 0,50):(c=B.getCurrentTime(),c<Y||c>g?B.seekTo(Y,!0,void 0,void 0,50):B.seekTo(c,!0,void 0,void 0,50)),B.playVideo()),B.setLoopRange({startTimeMs:Y*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(B.getCurrentTime())):
this.activeLoopRange_&&(B.setLoopRange(null),this.activeLoopRange_=!1))};
_.a.updateHandles_=function(){_.Y9(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Y9(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.a.updateRuler_=function(){var B=this.end,c=this.start,x=this.draggableStartLimit_(),P=this.draggableEndLimit_();(c<x-.001||B>P+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.a.computeDurationLabel_=function(B,c){return B?B.replace("$clip_length",parseFloat(c).toFixed(1)):""};
_.a.computeDuration_=function(B,c){return this.isValidTime_(B)&&this.isValidTime_(c)&&B<c?c-B:0};
_.a.isValidTime_=function(B){return isNaN(parseFloat(B))||B<0?!1:this.player_?B>=this.seekableStart&&B<=this.seekableEnd:!0};
_.a.computeWindowSizeSec_=function(B,c,x){return Math.min((B||12E4)/1E3,x-c)};
_.a.computeTickSpacing_=function(B,c){return c?c/B:1};
_.a.onDragStateChanged_=function(){_.aJ(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.a.centerRangeOnTime_=function(B){var c=this.duration;B=ZeF(B-c/2,c,this.seekableStart,this.seekableEnd);_.aJ(this.hostElement,"set-fixed-length-range",{start:B.start,duration:B.end-B.start})};
_.a.nearlyLessThan_=function(B,c,x){return B+(x===void 0?1E-6:x)<c};
_.a.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var B=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(B,this.start)||this.nearlyLessThan_(this.end,B))&&this.centerRangeOnTime_(B)}};
_.a.onStateChange_=function(B){this.visible&&!this.disabled&&B==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.a.computeDragState_=function(B,c,x,P){return B?"left":c?"right":x?"ruler":P?"window":"none"};
_.a.logClick=function(){var B=_.Wf(),c=_.Jg();B&&c&&this.scrubberVe_&&(_.T("combine_ve_grafts")?_.Xa(_.q_(),this.scrubberVe_,c):_.Gq(B,c,this.scrubberVe_),_.fW(B,this.scrubberVe_))};
ER.prototype.onDragStateChanged_=ER.prototype.onDragStateChanged_;ER.prototype.updateRuler_=ER.prototype.updateRuler_;ER.prototype.updateHandles_=ER.prototype.updateHandles_;ER.prototype.onUpdateLoopRange=ER.prototype.onUpdateLoopRange;ER.prototype.onInitializedChanged_=ER.prototype.onInitializedChanged_;ER.prototype.onVisibleChanged_=ER.prototype.onVisibleChanged_;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ER.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",Object)],ER.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"start",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"end",void 0);_.L([_.F({computed:"computeDuration_(start, end)"}),_.H("design:type",Number)],ER.prototype,"duration",void 0);
_.L([_.F(),_.H("design:type",String)],ER.prototype,"lengthTemplate",void 0);_.L([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.H("design:type",String)],ER.prototype,"durationLabel",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"visible",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"player_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"draggingLeft_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"draggingRight_",void 0);
_.L([_.F(),_.H("design:type",Object)],ER.prototype,"draggingRuler_",void 0);_.L([_.F({value:!1}),_.H("design:type",Object)],ER.prototype,"draggingWindow_",void 0);_.L([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.H("design:type",Number)],ER.prototype,"tickSpacing_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"seekableStart",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"seekableEnd",void 0);
_.L([_.F(),_.H("design:type",Number)],ER.prototype,"windowSizeMs",void 0);_.L([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.H("design:type",Number)],ER.prototype,"windowSizeSec_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"rulerWidth_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"rulerShift_",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"windowSlideSpeed",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ER.prototype,"disabled",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"initialized",void 0);_.L([_.F(),_.H("design:type",Object)],ER.prototype,"durationAccessibilityLabel",void 0);_.L([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.H("design:type",String)],ER.prototype,"dragState",void 0);
_.L([_.bF("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"onVisibleChanged_",null);_.L([_.bF("initialized"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"onInitializedChanged_",null);_.L([_.bF("player_","visible","disabled","initialized","start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"onUpdateLoopRange",null);
_.L([_.bF("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"updateHandles_",null);_.L([_.bF("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"updateRuler_",null);
_.L([_.bF("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"onDragStateChanged_",null);_.L([_.Em({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ER);
_.G(ER,"yt-clip-creation-scrubber-view",function(){if(Xjz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;kbA===void 0&&(kbA=document.createElement("template"));var P=kbA;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Xjz=B}B=Xjz;return B},{mode:2});var OR=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};B.startHighlightTimeout=0;B.endHighlightTimeout=0;return B};
_.w(OR,_.z);_.a=OR.prototype;_.a.attached=function(){var B=this;this.startInput.addEventListener("input",function(c){return B.handleStartInput_(c)});
this.endInput.addEventListener("input",function(c){return B.handleEndInput_(c)});
this.startInput.addEventListener("focusout",function(c){return B.handleStartBlur_(c)});
this.endInput.addEventListener("focusout",function(c){return B.handleEndBlur_(c)})};
_.a.setPlayer=function(B){this.set("player_",B)};
_.a.onSetFixedLengthRange_=function(B){var c=B.detail;B=c.start;var x=c.duration,P=c.startLimit;c=c.endLimit;P||(P=this.seekableStart_);c||(c=this.seekableEnd_);B=ZeF(B,x,P,c);this.start=B.start;this.end=B.end};
_.a.onSetRange_=function(B){var c=B.detail;B=c.start;var x=c.end,P=c.startLimit;c=c.endLimit;P||(P=this.seekableStart_);c||(c=this.seekableEnd_);if(B=Hei(B,x,P,c,this.minLengthSec,this.maxLengthSec))this.start=B.start,this.end=B.end};
_.a.updateInputs_=function(){var B=this.end,c=this.start;this.startInput.focused||(this.startInput.value=IC(c,!0));this.endInput.focused||(this.endInput.value=IC(B,!0))};
_.a.handleStartInput_=function(B){B=LZB(B.target.value);if(B===null)this.set("startValid",!1);else{var c=this.end,x=Hei(B,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);x?(this.set("endWillUpdate",x.end!==c),this.set("startValid",x.start===B)):this.set("startValid",!1)}};
_.a.handleEndInput_=function(B){B=LZB(B.target.value);if(B===null)this.set("endValid",!1);else{var c=this.start,x=fJi(this.start,B,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);x?(this.set("startWillUpdate",x.start!==c),this.set("endValid",x.end===B)):this.set("endValid",!1)}};
_.a.handleStartBlur_=function(B){B=LZB(B.target.value);B===null?this.startInput.value=IC(this.start,!0):this.forceUpdateInputs_(Hei(B,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.a.handleEndBlur_=function(B){B=LZB(B.target.value);B===null?this.endInput.value=IC(this.end,!0):this.forceUpdateInputs_(fJi(this.start,B,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.a.forceUpdateInputs_=function(B){B&&(this.start=B.start,this.end=B.end);this.startInput.value=IC(this.start,!0);this.endInput.value=IC(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.a.initializeClipRange_=function(){var B=this.seekableEnd_,c=this.seekableStart_,x=this.visible_,P=this.player_;if(!P||!x||c===null||!B)this.set("initialized",!1);else if(!this.initialized){var Y=P.getCurrentTime(),g=this.getDefaultLengthSec_();x=P.getVideoData();var k=P.getPlayerState()==1,n=x.isLive;g=Math.min(g,B-c);Y=Math.max(0,Y);B=n?fJi(Y-g,Y,c,B,this.minLengthSec,this.maxLengthSec):k?ZeF(Y-g/2,g,c,B):ZeF(Y,g,c,B);this.start=B.start;this.end=B.end;this.set("initialized",!0);x.isLive&&P.seekTo(B.start);
this.startInput.value=IC(this.start,!0);this.endInput.value=IC(this.end,!0)}};
_.a.onStartChanged_=function(){var B=this;_.aJ(this.hostElement,"start-changed",{start:this.start});var c;isNaN((c=this.oldStart)!=null?c:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){B.set("highlightStart",!1);B.startHighlightTimeout=0;B.oldStart=B.start},3E3))};
_.a.onEndChanged_=function(){var B=this;_.aJ(this.hostElement,"end-changed",{end:this.end});var c;isNaN((c=this.oldEnd)!=null?c:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){B.set("highlightEnd",!1);B.endHighlightTimeout=0;B.oldEnd=B.end},3E3))};
_.a.onVisibilityChangedAction_=function(B){var c=this;this.set("visible_",B.visible);this.visible_&&!this.player_&&(B=_.e5())&&B.getPlayerPromise().then(function(x){c.setPlayer(x)})};
_.a.computeMinLengthSec_=function(B){return B/1E3||5};
_.a.computeMaxLengthSec_=function(B){return B/1E3||60};
_.a.computeDefaultLengthSec_=function(B){return B/1E3};
_.a.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.a.computeSeekableStart_=function(B,c){return B&&c?B.getProgressState(1).seekableStart:0};
_.a.computeSeekableEnd_=function(B,c){return B&&c?B.getProgressState(1).seekableEnd:0};
_.a.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.a.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.a.onDragState_=function(B){this.set("highlightStart",B.detail.startChanging);this.set("highlightEnd",B.detail.endChanging)};
OR.prototype.onDragState_=OR.prototype.onDragState_;OR.prototype.onEndChanged_=OR.prototype.onEndChanged_;OR.prototype.onStartChanged_=OR.prototype.onStartChanged_;OR.prototype.initializeClipRange_=OR.prototype.initializeClipRange_;OR.prototype.updateInputs_=OR.prototype.updateInputs_;OR.prototype.onSetRange_=OR.prototype.onSetRange_;OR.prototype.onSetFixedLengthRange_=OR.prototype.onSetFixedLengthRange_;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],OR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OR.prototype,"data",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],OR.prototype,"start",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],OR.prototype,"startValid",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"startWillUpdate",void 0);_.L([_.F({value:30}),_.H("design:type",Number)],OR.prototype,"end",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],OR.prototype,"endValid",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"endWillUpdate",void 0);_.L([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.H("design:type",Number)],OR.prototype,"minLengthSec",void 0);
_.L([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.H("design:type",Number)],OR.prototype,"maxLengthSec",void 0);_.L([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.H("design:type",Number)],OR.prototype,"defaultLengthSec",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],OR.prototype,"visible_",void 0);_.L([_.F(),_.H("design:type",Object)],OR.prototype,"player_",void 0);
_.L([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.H("design:type",Number)],OR.prototype,"seekableStart_",void 0);_.L([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.H("design:type",Number)],OR.prototype,"seekableEnd_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],OR.prototype,"initialized",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"disabled",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"highlightStart",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"highlightEnd",void 0);_.L([_.jr("#start"),_.H("design:type",HTMLInputElement)],OR.prototype,"startInput",void 0);_.L([_.jr("#end"),_.H("design:type",HTMLInputElement)],OR.prototype,"endInput",void 0);
_.L([_.nF("set-fixed-length-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],OR.prototype,"onSetFixedLengthRange_",null);_.L([_.nF("set-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],OR.prototype,"onSetRange_",null);_.L([_.bF("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OR.prototype,"updateInputs_",null);
_.L([_.bF("player_","visible_","seekableStart_","seekableEnd_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OR.prototype,"initializeClipRange_",null);_.L([_.bF("start"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OR.prototype,"onStartChanged_",null);_.L([_.bF("end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OR.prototype,"onEndChanged_",null);
_.L([_.nF("clips-drag-state"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],OR.prototype,"onDragState_",null);_.L([_.Em({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],OR);
_.G(OR,"yt-clip-creation-scrubber-renderer",function(){if(sRi===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;g_6===void 0&&(g_6=document.createElement("template"));var P=g_6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);sRi=B}B=sRi;return B},{mode:2});var oq=function(){var B=_.z.apply(this,arguments)||this;B.player_=null;B.JSC$20105_playerEvents=new Map;B.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return B};
_.w(oq,_.z);_.a=oq.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$20105_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20105_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20105_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20105_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.a.detached=function(){this.setPlayer(null)};
_.a.onVisibilityChangedAction_=function(B){var c=this,x;if((x=this.data)==null?0:x.externalVideoId){var P;this.videoId=(P=this.data)==null?void 0:P.externalVideoId}this.getPlayer().then(function(Y){if(B.visible)c.returnTime=Y.getCurrentTime(),c.isAtLiveHead=Y.getProgressState().isAtLiveHead;else{var g=c.returnTime;c.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);Y.seekTo(g,void 0,void 0,void 0,51)}})};
_.a.getPlayer=function(){var B=this;if(!this.player_){var c=_.e5();if(c)return c.getPlayerPromise().then(function(x){B.setPlayer(x);return x})}return Promise.resolve(this.player_)};
_.a.setPlayer=function(B){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20105_playerEvents);if(B){this.player_=B;var c;((c=this.data)==null?0:c.externalVideoId)||this.set("videoId",B.getVideoData().video_id||"");var x;(B==null?void 0:(x=B.getPresentingPlayerType)==null?void 0:x.call(B))===2&&(this.set("isAdPlaying",!0),_.gj(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$20105_playerEvents)}};
_.a.ready=function(){_.Y9(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.a.onTitleChanged_=function(B){this.set("titleValue",B.detail.title)};
_.a.onStartChanged_=function(B){this.set("start",B.detail.start)};
_.a.onEndChanged_=function(B){this.set("end",B.detail.end)};
_.a.onTitleValidChanged_=function(B){this.set("titleValid",B.detail.valid)};
_.a.onStartValidChanged_=function(B){this.set("startValid",B.detail.valid)};
_.a.onEndValidChanged_=function(B){this.set("endValid",B.detail.valid)};
_.a.onVideoDataChange_=function(){var B;if((B=this.data)==null||!B.externalVideoId){var c;this.set("videoId",((c=this.player_)==null?void 0:c.getVideoData().video_id)||"")}};
_.a.computeFormValid_=function(B,c,x,P){return!!(B&&c&&x&&P)};
_.a.computeCancelButton_=function(B,c,x){return B&&_.t(B,_.z3)?{buttonRenderer:Object.assign({},_.t(B,_.z3),{isDisabled:c||x})}:null};
_.a.computeSubmitButton_=function(B,c,x){return B&&_.t(B,_.z3)?{buttonRenderer:Object.assign({},_.t(B,_.z3),{command:void 0,isDisabled:!this.formValid||c||x})}:null};
_.a.computeSubmitCommand_=function(B){return B||null};
_.a.onSubmit_=function(B){var c=this;B.stopPropagation();B.preventDefault();this.submitCommand_&&(B={},B.comment_text=this.titleValue,B.clip_external_video_id=this.videoId,B.clip_offset_ms=parseInt(this.start*1E3,10),B.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.kC(this.hostElement,[this.submitCommand_,B]).then(function(){c.set("isLoading_",!1)},function(){c.set("isLoading_",!1)}))};
_.a.playerAdStartHandler_=function(){_.gj(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler_=function(){_.gj(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.a.onVideoProgress_=function(){var B=this;this.getPlayer().then(function(c){var x,P=(c==null?void 0:(x=c.getPresentingPlayerType)==null?void 0:x.call(c))===2;B.isAdPlaying!==P&&(P?B.playerAdStartHandler_():B.playerAdEndHandler_())})};
oq.prototype.onEndValidChanged_=oq.prototype.onEndValidChanged_;oq.prototype.onStartValidChanged_=oq.prototype.onStartValidChanged_;oq.prototype.onTitleValidChanged_=oq.prototype.onTitleValidChanged_;oq.prototype.onEndChanged_=oq.prototype.onEndChanged_;oq.prototype.onStartChanged_=oq.prototype.onStartChanged_;oq.prototype.onTitleChanged_=oq.prototype.onTitleChanged_;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",Object)],oq.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oq.prototype,"data",void 0);_.L([_.F({value:""}),_.H("design:type",String)],oq.prototype,"titleValue",void 0);
_.L([_.F({value:!1}),_.H("design:type",Boolean)],oq.prototype,"titleValid",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],oq.prototype,"start",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],oq.prototype,"startValid",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],oq.prototype,"end",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],oq.prototype,"endValid",void 0);_.L([_.F({value:""}),_.H("design:type",String)],oq.prototype,"videoId",void 0);
_.L([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.H("design:type",Boolean)],oq.prototype,"formValid",void 0);_.L([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.H("design:type",Object)],oq.prototype,"submitButton_",void 0);_.L([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.H("design:type",Object)],oq.prototype,"submitCommand_",void 0);
_.L([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.H("design:type",Object)],oq.prototype,"cancelButton_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],oq.prototype,"isLoading_",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],oq.prototype,"isAdPlaying",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],oq.prototype,"returnTime",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],oq.prototype,"isAtLiveHead",void 0);
_.L([_.nF("title-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onTitleChanged_",null);_.L([_.nF("start-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onStartChanged_",null);_.L([_.nF("end-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onEndChanged_",null);
_.L([_.nF("title-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onTitleValidChanged_",null);_.L([_.nF("start-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onStartValidChanged_",null);_.L([_.nF("end-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oq.prototype,"onEndValidChanged_",null);
_.L([_.Em({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],oq);
_.G(oq,"yt-clip-creation-renderer",function(){if(aQo===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Y_l===void 0&&(Y_l=document.createElement("template"));var P=Y_l;x.call(c,P.content.cloneNode(!0),B.content.firstChild);aQo=B}B=aQo;return B},{mode:2});var QX=function(){return _.z.apply(this,arguments)||this};
_.w(QX,_.z);QX.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"}}}};
QX.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(B){return B.hasOwnProperty("clipCreationRenderer")})&&_.gj(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
QX.prototype.onPanelContentVisibleChanged=QX.prototype.onPanelContentVisibleChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],QX.prototype,"ytVisibilityBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],QX.prototype,"ytdReduxBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],QX.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],QX.prototype,"panelContentVisible",void 0);_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QX.prototype,"onPanelContentVisibleChanged",null);_.L([_.y({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],QX);
_.G(QX,"ytd-clip-section-renderer",function(){if(cFs!==void 0)return cFs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return cFs=B},{mode:1});var $EA;var FM=function(){return _.z.apply(this,arguments)||this};
_.w(FM,_.z);_.a=FM.prototype;
_.a.onKeyDown=function(B){if(this.snippetElements.length!==0&&(B=B.keyCode,B===38||B===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);B===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.vi(this.highlightedIndex,-1,this.snippetElements.length);B=this.snippetElements.length;var c=this.highlightedIndex%B;this.highlightedIndex=c*B<0?c+B:c;B=this.snippetElements[this.highlightedIndex];this.highlightSnippet(B);this.ensureVisible(B)}};
_.a.onKeyUp=function(B){var c=this;tDS(B)&&(B.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.EE.cancelJob(this.inputTimerId),this.inputTimerId=_.EE.addLowPriorityJob(function(){c.typedValue&&(c.fetchSnippets(c.typedValue),c.logInputGesture(c.data))},1E3))};
_.a.onClick=function(B){(B=_.py4(B.target,null,"snippet-item"))&&this.selectSnippet(B)};
_.a.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.a.ready=function(){var B=this;this.inputElement.addEventListener("focus",function(){B.snippetsWrapper.style.removeProperty("display")})};
_.a.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.a.getSourceTimelines=function(){if(!this.data)return[];var B=[];if(this.data.searchInVideoSources)for(var c=_.p(this.data.searchInVideoSources),x=c.next();!x.done;x=c.next())x=x.value,x==="SEARCH_IN_VIDEO_SOURCE_ASR"?B.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):x==="SEARCH_IN_VIDEO_SOURCE_OCR"&&B.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return B};
_.a.fetchSnippets=function(B){var c=_.gj(this.hostElement,"yt-get-current-video-id-action")[0],x=this.getSourceTimelines();B={getSearchInVideoCommand:{externalVideoId:c,query:B!=null?B:"",sourceTimelines:x},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})};
_.a.filterSnippets=function(B,c){var x=this;if(c){this.filteredSnippets=(0,_.wW.unsafeClone)(B);var P=RegExp(_.oVI(c),"i");this.filteredSnippets=this.filteredSnippets.filter(function(k){return P.test(x.ytRendererBehavior.getSimpleString(k.snippet))});
B=_.p(this.filteredSnippets);for(var Y=B.next();!Y.done;Y=B.next()){Y=Y.value;var g=this.ytRendererBehavior.getSimpleString(Y.snippet);Y.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(c))},{text:g.substring(g.toLowerCase().indexOf(c),g.toLowerCase().indexOf(c)+c.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(c)+c.length,g.length)}]}}}else this.filteredSnippets=B};
_.a.onUpdateSearchInVideoResults=function(B){if(!(this.snippets.length>0)){var c,x,P;if((P=(c=_.t(B,vAr))==null?void 0:(x=c.results)==null?void 0:x.length)!=null&&P){var Y;this.filteredSnippets=this.snippets=((Y=_.t(B,vAr))==null?void 0:Y.results).map(function(g){var k,n,b;return{startMs:g==null?void 0:(k=g.searchInVideoResultRenderer)==null?void 0:k.startMs,startTimeText:g==null?void 0:(n=g.searchInVideoResultRenderer)==null?void 0:n.startTimeText,snippet:g==null?void 0:(b=g.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.a.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};
_.a.highlightSnippet=function(B){B.classList.add("highlighted")};
_.a.removeSnippetHighlight=function(B){B.classList.remove("highlighted")};
_.a.selectSnippet=function(B){this.typedValue=String(B.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(B);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.a.ensureVisible=function(B){var c=this.snippetsWrapper.scrollTop,x=c+this.snippetsWrapper.clientHeight,P=B.offsetTop-this.snippetsWrapper.offsetTop;B=P+B.clientHeight;P<c?this.snippetsWrapper.scrollTop-=c-P:B>x&&(this.snippetsWrapper.scrollTop+=B-x)};
_.a.seekPlayer=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1){if(!B)return P.jumpTo(0);c=Number(B.dataset.startOffset);return _.K(P,_.Bv().getPlayerPromise(),3)}x=P.yieldResult;x.seekTo(c/1E3,!0);x.wakeUpControls();_.Kq(P)})};
_.a.logInputGesture=function(B){var c=_.Wf();c&&(B==null?0:B.trackingParams)&&_.ig(c,_.VF(B.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.a.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("typed-value-changed",this.typedValue))};
_.a.updateTypedValueFromBinding=function(B){this.typedValue=B.currentTarget.value};
FM.prototype.typedValueChangedForBinding=FM.prototype.typedValueChangedForBinding;FM.prototype.dataChanged=FM.prototype.dataChanged;FM.prototype.panelContentVisibleChanged=FM.prototype.panelContentVisibleChanged;FM.prototype.onClick=FM.prototype.onClick;FM.prototype.onKeyUp=FM.prototype.onKeyUp;FM.prototype.onKeyDown=FM.prototype.onKeyDown;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],FM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],FM.prototype,"data",void 0);_.L([_.F({value:[]}),_.H("design:type",Array)],FM.prototype,"snippets",void 0);_.L([_.F({value:[]}),_.H("design:type",Array)],FM.prototype,"filteredSnippets",void 0);_.L([_.F({value:[]}),_.H("design:type",Array)],FM.prototype,"snippetElements",void 0);
_.L([_.jr("#siv-input"),_.H("design:type",HTMLElement)],FM.prototype,"inputElement",void 0);_.L([_.jr("#siv-snippets-wrapper"),_.H("design:type",HTMLElement)],FM.prototype,"snippetsWrapper",void 0);_.L([_.F(),_.H("design:type",String)],FM.prototype,"typedValue",void 0);_.L([_.F({value:-1}),_.H("design:type",Number)],FM.prototype,"highlightedIndex",void 0);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[_.CR]),_.H("design:returntype")],FM.prototype,"onKeyDown",null);
_.L([_.nF("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[_.CR]),_.H("design:returntype")],FM.prototype,"onKeyUp",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],FM.prototype,"onClick",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],FM.prototype,"panelContentVisible",void 0);
_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FM.prototype,"panelContentVisibleChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FM.prototype,"dataChanged",null);_.L([_.bF("typedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FM.prototype,"typedValueChangedForBinding",null);
_.L([_.y({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],FM);
_.G(FM,"ytd-search-in-video-renderer",function(){if($EA!==void 0)return $EA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $EA=B},{mode:1});var n_r;var vP=function(){return _.z.apply(this,arguments)||this};
_.w(vP,_.z);vP.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
vP.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]]"}}}}}};
vP.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var B,c,x,P,Y=(c=_.t((B=this.data)==null?void 0:B.onClickCommand,_.VR))==null?void 0:(x=c.item)==null?void 0:(P=x.notificationTextRenderer)==null?void 0:P.successResponseText;Y&&_.Bvx(this.hostElement,Y)}};
_.AJ.Object.defineProperties(vP.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return this.isProductPlaceholder&&((B=this.data)==null?void 0:(c=B.hiddenProductOptions)==null?void 0:c.showDropCountdown)&&!!((x=this.data)==null?0:(P=x.hiddenProductOptions)==null?0:P.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var B;return!this.isProductPlaceholder&&!((B=this.data)==null?0:B.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null?0:B.priceReplacementText)&&!((c=this.data)==null||!c.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],vP.prototype,"componentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vP.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"useCenterLayoutContainer",null);_.L([_.F({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],vP.prototype,"buttonOverride",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"isProductPlaceholder",null);
_.L([_.Q("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"showDropCountdown",null);_.L([_.Q("isProductPlaceholder","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"showBrandName",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"showPriceReplacementText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"showPrice",null);
_.L([_.Q("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],vP.prototype,"showMetadata",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],vP);
_.G(vP,"ytd-product-list-item-renderer",function(){if(n_r!==void 0)return n_r;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return n_r=B},{mode:1});var bIi;var zS=function(){return _.z.apply(this,arguments)||this};
_.w(zS,_.z);zS.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
zS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
zS.prototype.panelContentVisibleChanged=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return B.playerApi?x.jumpTo(2):_.K(x,_.Bv().getPlayerPromise(),3);x.nextAddress!=2&&(B.playerApi=x.yieldResult);(c=B.playerApi)==null||c.productsInVideoVisibilityUpdated(!!B.panelContentVisible);_.Kq(x)})};
zS.prototype.panelContentVisibleChanged=zS.prototype.panelContentVisibleChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"panelContentVisible",void 0);_.L([_.F(),_.H("design:type",Object)],zS.prototype,"data",void 0);
_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],zS.prototype,"panelContentVisibleChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],zS);
_.G(zS,"ytd-product-list-renderer",function(){if(bIi!==void 0)return bIi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return bIi=B},{mode:1});var KbF;var Sb=function(){var B=_.z.apply(this,arguments)||this;B.hideTimestamps=!!_.$g("hide-transcript-timestamps");B.currentCueIndex=-1;B.flatCues=[];B.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};B.TEST_ONLY={getFlatCues:function(){return B.flatCues}};
return B};
_.w(Sb,_.z);_.a=Sb.prototype;_.a.hideTimestampsChanged=function(){_.Xj("hide-transcript-timestamps",this.hideTimestamps)};
_.a.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.a.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.a.dataChanged=function(){var B;if((B=this.data)!=null&&B.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;B=_.p(this.data.cueGroups);for(var c=B.next();!c.done;c=B.next()){c=_.p(_.t(c.value,zKB).cues);for(var x=c.next();!x.done;x=c.next())this.flatCues.push(Number(_.t(x.value,S7r).startOffsetMs))}}};
_.a.onYtPlayerTimeChanged=function(B){if(!(B<0)){for(var c=this.currentCueIndex,x=c;;){var P=x>=0?this.flatCues[x]/1E3:-1;if(B+.5<P)--x;else if(P=x+1<this.flatCues.length?this.flatCues[x+1]/1E3:Infinity,B+.5>P)x+=1;else break}x!==c&&(c>=0&&((B=this.getCueElement(c))&&B.classList.remove("active"),(c=this.getCueGroupElement(c))&&c.classList.remove("active")),(c=this.getCueElement(x))&&c.classList.add("active"),(c=this.getCueGroupElement(x))&&c.classList.add("active"),this.currentCueIndex=x,this.isHovered||
this.scrollElementToTop(x))}};
_.a.scrollElementToTop=function(B){B=this.getCueElement(B>=3?B-3:0);this.hostElement.scrollTop=Math.min(B.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.a.getCueElement=function(B){return _.Y9(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[B]+'"]')};
_.a.getCueGroupElement=function(B){return(B=this.getCueElement(B))&&B.parentElement?B.parentElement.parentElement:null};
_.a.onTap=function(B){var c=_.uI(B);B.target.classList.contains("cue")&&this.seekCueElement(c)};
_.a.onKeyPress=function(B){B.keyCode==13&&(B=_.py4(B.target,null,"cue"))&&this.seekCueElement(B)};
_.a.seekCueElement=function(B){B=Number(B.getAttribute("start-offset"));_.gj(this.hostElement,"yt-transcript-player-seek",[B/1E3])};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
Sb.prototype.onMouseLeave=Sb.prototype.onMouseLeave;Sb.prototype.onMouseEnter=Sb.prototype.onMouseEnter;Sb.prototype.onKeyPress=Sb.prototype.onKeyPress;Sb.prototype.onTap=Sb.prototype.onTap;Sb.prototype.dataChanged=Sb.prototype.dataChanged;Sb.prototype.hideTimestampsChanged=Sb.prototype.hideTimestampsChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Sb.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Sb.prototype,"hideTimestamps",void 0);_.L([_.F(),_.H("design:type",Boolean)],Sb.prototype,"isHovered",void 0);_.L([_.bF("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"hideTimestampsChanged",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"dataChanged",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Sb.prototype,"onTap",null);_.L([_.nF("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Sb.prototype,"onKeyPress",null);
_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"onMouseEnter",null);_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"onMouseLeave",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Sb);
_.G(Sb,"ytd-transcript-body-renderer",function(){if(KbF!==void 0)return KbF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KbF=B},{mode:1});var jRs;var yX=function(){var B=_.z.apply(this,arguments)||this;B.darkerPanels=_.T("web_watch_darker_panels");return B};
_.w(yX,_.z);yX.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yX.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yX.prototype,"darkerPanels",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],yX);
_.G(yX,"ytd-transcript-footer-renderer",function(){if(jRs!==void 0)return jRs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jRs=B},{mode:1});var UEF;var dEz;var GS=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.showClearButton=!1;return B};
_.w(GS,_.z);_.a=GS.prototype;_.a.handleInput=function(B){var c=this;B.target.value.length?_.yo(this,"ytdTranscriptSearchBoxSearch",function(){c.emitSearchEvent(B)},500):(_.jpo(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=B.target.value.length>0};
_.a.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.a.handleClick=function(){var B,c=(B=this.data)==null?void 0:B.trackingParams;c&&_.bd(_.q_(),c)};
_.a.handleClear=function(){_.jpo(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var B,c,x=(c=_.t((B=this.data)==null?void 0:B.clearButton,_.z3))==null?void 0:c.trackingParams;x&&_.bd(_.q_(),x);this.clear()};
_.a.emitSearchEvent=function(B){_.aJ(this.hostElement,"yt-transcript-search-box-search",{query:B.target.value});var c,x;(B=(x=_.t((c=this.data)==null?void 0:c.searchButton,_.z3))==null?void 0:x.trackingParams)&&_.bd(_.q_(),B)};
_.a.emitClearEvent=function(){_.aJ(this.hostElement,"yt-transcript-search-box-clear")};
_.AJ.Object.defineProperties(GS.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Y9(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GS.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],GS.prototype,"systemIcons",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],GS);
_.G(GS,"ytd-transcript-search-box-renderer",function(){if(dEz!==void 0)return dEz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dEz=B},{mode:1});var q_z;var CuF;var Mh=function(){return _.z.apply(this,arguments)||this};
_.w(Mh,_.z);Mh.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var B,c;this.sectionHeaderAriaLabel=(B=this.data)==null?void 0:(c=B.accessibility)==null?void 0:c.accessibilityData.label}};
Mh.prototype.fireSelectedEvent=function(B){_.aJ(this.hostElement,"ytd-transcript-section-header",{startMs:B})};
Mh.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Mh.prototype.handleKeyPress=function(B){this.data&&B.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.AJ.Object.defineProperties(Mh.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.data)==null?void 0:B.enableTappableTranscriptHeader)!=null?c:!1}}});
Mh.prototype.dataChanged=Mh.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],Mh.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],Mh.prototype,"sectionHeaderAriaLabel",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mh.prototype,"enableTappableTranscriptHeader",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mh.prototype,"dataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Mh);
_.G(Mh,"ytd-transcript-section-header-renderer",function(){if(CuF!==void 0)return CuF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CuF=B},{mode:1});var huF;var mEF;var Ln=function(){var B=_.z.apply(this,arguments)||this;B.isEditMode=!1;B.touchCaptionsEnabled=!1;B.deleteCaptionCorrectionPopupCommand=null;B.voteCaptionCorrectionPopupCommand=null;B.roundedContainer=!0;B.mouseOver=!1;B.textChanged=!1;B.messages={suggest_correction:_.Up("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Up("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Up("submit_correction",void 0,"Submit for review"),cancel_correction:_.Up("cancel_correction",
void 0,"Cancel"),replay_segment:_.Up("replay_segment",void 0,"Re-play segment"),delete_correction:_.Up("delete_correction",void 0,"Delete correction")};B.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return B};
_.w(Ln,_.z);_.a=Ln.prototype;_.a.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)};
_.a.handleDelete=function(B){if(this.deleteCaptionCorrectionPopupCommand){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);c&&this.ytdOpenPopupBehavior.openPopup(c);B.stopPropagation()}};
_.a.handleSubmit=function(B){if(this.data&&this.data.submitCaptionCorrectionCommand&&(B.stopPropagation(),this.textChanged)){var c;B=(c=_.t(this.data.submitCaptionCorrectionCommand,_.E5Z))==null?void 0:c.params;c=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:B,correctionText:String(this.ironTextAreaElement.value),originalText:_.iG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(c);this.isEditMode=!1}};
_.a.handleUpdateSegmentText=function(B){(B=_.t(B,xoo))&&B.targetId&&this.data&&B.targetId===this.data.targetId&&(B.userCorrection&&(this.editedText=B.userCorrection),B.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.iG(this.data.snippet)),B.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=B.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=B.voteCaptionCorrectionPopupCommand?
B.voteCaptionCorrectionPopupCommand:null,B.accessibility&&(this.segmentAriaLabel=B.accessibility.accessibilityData.label))};
_.a.handleCancel=function(B){this.isEditMode=!1;B.stopPropagation();this.logClientVe(159409)};
_.a.handleEditSegmentCommand=function(B){(B=_.t(B,cSz))&&B.targetId&&this.data&&B.targetId===this.data.targetId&&this.handleEdit()};
_.a.handleEditButtonClick=function(B){this.data&&(this.handleEdit(),B.stopPropagation())};
_.a.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var B;(B=this.ironTextAreaElement.textarea)==null||B.focus();this.logClientVe(159407)}};
_.a.handleMouseEnter=function(){this.mouseOver=!0};
_.a.handleMouseLeave=function(){this.mouseOver=!1};
_.a.handleReplay=function(B){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),B.stopPropagation(),this.logClientVe(159408))};
_.a.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()))};
_.a.handleKeypress=function(B){this.data&&(this.isEditMode?B.stopPropagation():this.isEnterPress(B)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(B)&&this.logClientVe(138758))};
_.a.handleTextboxClick=function(B){B.stopPropagation()};
_.a.handleTextboxKeydown=function(B){this.isControlEnterPress(B)?this.handleSubmit(B):B.key==="Escape"&&this.handleCancel(B)};
_.a.handleTextboxKeyup=function(){this.textChanged=_.iG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.a.fireSelectedEvent=function(B){_.aJ(this.hostElement,"yt-transcript-segment-selected",{startMs:B})};
_.a.fireReplayEvent=function(B,c){_.aJ(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(B-100,0),endMs:c})};
_.a.fireEditEvent=function(B,c){_.aJ(this.hostElement,"yt-transcript-segment-edit",{startMs:B,endMs:c})};
_.a.isEnterPress=function(B){return B.key==="Enter"||B.code==="Enter"||B.code==="NumpadEnter"||B.keyCode===13?!0:!1};
_.a.isControlEnterPress=function(B){var c=B.key==="Enter"||B.code==="Enter"||B.code==="NumpadEnter"||B.keyCode===13;return(B.ctrlKey||B.metaKey)&&c};
_.a.isCopyPress=function(B){var c=B.ctrlKey;return B.key==="c"&&c};
_.a.logClick=function(){var B,c=(B=this.data)==null?void 0:B.trackingParams;c&&_.bd(_.q_(),c)};
_.a.logClientVe=function(B){_.n0(_.q_(),_.JW(B))};
_.AJ.Object.defineProperties(Ln.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}}});
Ln.prototype.handleMouseLeave=Ln.prototype.handleMouseLeave;Ln.prototype.handleMouseEnter=Ln.prototype.handleMouseEnter;Ln.prototype.dataChanged=Ln.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],Ln.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ln.prototype,"isEditMode",void 0);_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"touchCaptionsEnabled",void 0);_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"editedText",void 0);_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.L([_.F(),_.H("design:type",String)],Ln.prototype,"segmentAriaLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ln.prototype,"roundedContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ln.prototype,"mouseOver",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ln.prototype,"textChanged",void 0);_.L([_.F(),_.H("design:type",Object)],Ln.prototype,"messages",void 0);
_.L([_.jr("#suggestion"),_.H("design:type",Object)],Ln.prototype,"ironTextAreaElement",void 0);_.L([_.Q("data","editedText"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ln.prototype,"latestText",null);_.L([_.Q("touchCaptionsEnabled","isEditMode"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ln.prototype,"enableEditButton",null);
_.L([_.Q("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ln.prototype,"enableUndoButton",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ln.prototype,"dataChanged",null);_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ln.prototype,"handleMouseEnter",null);
_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ln.prototype,"handleMouseLeave",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Ln);
_.G(Ln,"ytd-transcript-segment-renderer",function(){if(mEF!==void 0)return mEF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return mEF=B},{mode:1});var ZU=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};B.isError=!1;B.darkerPanels=_.T("web_watch_darker_panels");B.useParentMaxHeight=_.T("web_watch_transscript_use_parent_max_height");B.segmentOffsets=[];B.segmentIndex=-1;return B};
_.w(ZU,_.z);_.a=ZU.prototype;_.a.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"}}}}};
_.a.segmentsChanged=function(){this.updateOffsets()};
_.a.onYtPlayerTimeChanged=function(B){for(var c=this.segmentIndex,x=c;;){if(x>=0){var P=this.segmentOffsets[x].start;var Y=this.segmentOffsets[x].isAutoScrollable}else P=-1,Y=!0;var g=B+.5;if(!Y){P=x+1<this.segmentOffsets.length?this.segmentOffsets[x+1].start:Infinity;if(g>=P){x+=1;continue}x=-1;break}if(g<P)P=x-1>=0&&this.segmentOffsets[x-1].isAutoScrollable,Y=x===0||P?1:2,x-=Y;else if(Y=x+1<this.segmentOffsets.length&&this.segmentOffsets[x+1].isAutoScrollable?1:2,P=x+Y<this.segmentOffsets.length?
this.segmentOffsets[x+Y].start:Infinity,g>P)x+=Y;else{if(x<0)break;x<this.segmentOffsets.length&&g>this.segmentOffsets[x].end&&(x=-1);break}}if(c!==x){if(c>=0){var k;(k=this.getSegmentElement(c))==null||k.classList.remove("active")}this.segmentIndex=x;if(!(x<0)){var n;(n=this.getSegmentElement(x))==null||n.classList.add("active");this.isHovered||this.scrollElementToTop(x)}}};
_.a.handleSegmentEdit=function(B){B.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=B.target,_.gj(this.hostElement,"yt-transcript-player-edit",[B.detail.startMs/1E3,B.detail.endMs/1E3]))};
_.a.handleSegmentSelected=function(B){_.gj(this.hostElement,"yt-transcript-player-seek",[B.detail.startMs/1E3])};
_.a.handleSegmentReplay=function(B){_.gj(this.hostElement,"yt-transcript-player-replay",[B.detail.startMs/1E3,B.detail.endMs/1E3])};
_.a.handleSectionHeaderSelected=function(B){_.gj(this.hostElement,"yt-transcript-player-seek",[B.detail.startMs/1E3])};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
_.a.onRetryButtonClick=function(){_.aJ(this.hostElement,"transcript-retry-button-click")};
_.a.getSegmentElement=function(B){return _.Y9(this.hostElement).querySelector(":nth-child("+(B+1)+")")};
_.a.scrollElementToTop=function(B){B=this.getSegmentElement(B>=2?B-2:0);this.hostElement.scrollTop=Math.min(B.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.a.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(B){var c,x=(c=B.transcriptSegmentRenderer)!=null?c:B.transcriptSectionHeaderRenderer;return{start:Number(x.startMs)/1E3,end:Number(x.endMs)/1E3,isAutoScrollable:B.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.a.clearHighlightedSegments=function(){var B=_.Y9(this.hostElement);B=_.p(B.querySelectorAll("ytd-transcript-segment-renderer"));for(var c=B.next();!c.done;c=B.next())c.value.classList.remove("active")};
_.AJ.Object.defineProperties(ZU.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.searchResultSegments)||((c=this.data)==null?void 0:c.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ZU.prototype.onMouseLeave=ZU.prototype.onMouseLeave;ZU.prototype.onMouseEnter=ZU.prototype.onMouseEnter;ZU.prototype.handleSectionHeaderSelected=ZU.prototype.handleSectionHeaderSelected;ZU.prototype.handleSegmentReplay=ZU.prototype.handleSegmentReplay;ZU.prototype.handleSegmentSelected=ZU.prototype.handleSegmentSelected;ZU.prototype.handleSegmentEdit=ZU.prototype.handleSegmentEdit;ZU.prototype.segmentsChanged=ZU.prototype.segmentsChanged;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ZU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZU.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],ZU.prototype,"isError",void 0);
_.L([_.F(),_.H("design:type",Object)],ZU.prototype,"noResultLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ZU.prototype,"darkerPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ZU.prototype,"useParentMaxHeight",void 0);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],ZU.prototype,"segments",null);
_.L([_.Q("segments","noResultLabel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZU.prototype,"displayNoResults",null);_.L([_.bF("segments"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZU.prototype,"segmentsChanged",null);_.L([_.nF("yt-transcript-segment-edit"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ZU.prototype,"handleSegmentEdit",null);
_.L([_.nF("yt-transcript-segment-selected"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ZU.prototype,"handleSegmentSelected",null);_.L([_.nF("yt-transcript-segment-replay"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ZU.prototype,"handleSegmentReplay",null);
_.L([_.nF("ytd-transcript-section-header"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ZU.prototype,"handleSectionHeaderSelected",null);_.L([_.nF("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZU.prototype,"onMouseEnter",null);_.L([_.nF("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZU.prototype,"onMouseLeave",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ZU);
_.G(ZU,"ytd-transcript-segment-list-renderer",function(){if(huF!==void 0)return huF;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return huF=B},{mode:1});var HP=function(){var B=_.z.apply(this,arguments)||this;B.hideTimestamps=!!_.$g("hide-transcript-timestamps");B.isLoadingTranscripts=!1;B.darkerPanels=_.T("web_watch_darker_panels");B.isError=!1;B.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return B};
_.w(HP,_.z);_.a=HP.prototype;_.a.headerChanged=function(){var B,c;this.baseGetTranscriptsCommand=(c=_.t((B=this.data)==null?void 0:B.header,P7F))==null?void 0:c.onTextChangeCommand};
_.a.bodyChanged=function(){var B=this.getBodyRenderer();B&&(B.initialSegments&&(this.initialTranscriptsRenderer=B),B.noResultLabel&&(this.noResultLabel=B.noResultLabel),B.retryLabel&&(this.retryLabel=B.retryLabel))};
_.a.detached=function(){this.clearSearchBoxText()};
_.a.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.a.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"}}}};
_.a.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.a.fireSearch=function(B){var c=this;if(B){var x=B.detail.query;if(this.baseGetTranscriptsCommand){var P;B=(P=_.t(this.baseGetTranscriptsCommand,_.jf3))==null?void 0:P.params;var Y;P=_.t((Y=this.data)==null?void 0:Y.footer,yzB);var g;if((Y=(g=_.t(P==null?void 0:P.languageMenu,RKF))==null?void 0:g.subMenuItems)&&Y.length>0&&(g=Y.find(function(b){return b.selected}))){var k,n;
B=(k=g.continuation)==null?void 0:(n=k.reloadContinuationData)==null?void 0:n.continuation}k=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:B,searchQuery:x}});this.ytComponentBehavior.resolveCommand(k,{commandController:{onServerError:function(){c.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});TOF(this.ytContinuationHandlerBehavior,function(){return x===c.getCurrentSearchBoxText()})}}};
_.a.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.a.onRetryButtonClick=function(){this.isError=!1;var B={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:B}))};
_.a.hideTimestampsChanged=function(){_.Xj("hide-transcript-timestamps",this.hideTimestamps)};
_.a.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.a.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.a.handleSignalActionCopyTranscript=function(){var B=this,c=this.getBodyRenderer();c&&(c=((c==null?void 0:c.searchResultSegments)||(c==null?void 0:c.initialSegments)||[]).map(function(x){return _.t(x,avs)}).filter(function(x){return!!x}).map(function(x){return{snippet:x.snippet||{runs:[{text:""}]},
startTimeText:x.startTimeText||{simpleText:""}}}).map(function(x){var P=(x.snippet.runs||[]).reduce(function(Y,g){return Y+g.text},"");
return B.hideTimestamps?P:x.startTimeText.simpleText+" "+P}).join("\n"),this.copyToClipboard(c))};
_.a.copyToClipboard=function(B){navigator.clipboard&&navigator.clipboard.writeText(B)};
_.a.getCurrentSearchBoxText=function(){var B;return(B=this.searchBox)==null?void 0:B.value};
_.a.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.a.getBodyRenderer=function(){var B;return _.t((B=this.data)==null?void 0:B.body,YXS)};
_.a.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.AJ.Object.defineProperties(HP.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Y9(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
HP.prototype.hideTimestampsChanged=HP.prototype.hideTimestampsChanged;HP.prototype.searchCleared=HP.prototype.searchCleared;HP.prototype.fireSearch=HP.prototype.fireSearch;HP.prototype.onReloadContinuationFinish=HP.prototype.onReloadContinuationFinish;HP.prototype.bodyChanged=HP.prototype.bodyChanged;HP.prototype.headerChanged=HP.prototype.headerChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],HP.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],HP.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HP.prototype,"hideTimestamps",void 0);
_.L([_.F(),_.H("design:type",Object)],HP.prototype,"isLoadingTranscripts",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HP.prototype,"darkerPanels",void 0);_.L([_.F(),_.H("design:type",Object)],HP.prototype,"isError",void 0);_.L([_.bF("data.header"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"headerChanged",null);
_.L([_.CF("data.body"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"bodyChanged",null);_.L([_.nF("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"onReloadContinuationFinish",null);_.L([_.nF("yt-transcript-search-box-search"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],HP.prototype,"fireSearch",null);
_.L([_.nF("yt-transcript-search-box-clear"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"searchCleared",null);_.L([_.bF("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"hideTimestampsChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],HP);
_.G(HP,"ytd-transcript-search-panel-renderer",function(){if(q_z!==void 0)return q_z;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return q_z=B},{mode:1});var fn=function(){var B=_.z.apply(this,arguments)||this;B.player=null;B.playerPollJobId=0;return B};
_.w(fn,_.z);_.a=fn.prototype;_.a.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.a.onLoadReloadContinuation=function(B){_.T("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:B.target.data.continuation}}):(B={clickTrackingParams:B.target.data.clickTrackingParams,getTranscriptEndpoint:{params:B.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}}))};
_.a.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"}}}};
_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.a.attached=function(){this.updatePlayerListening()};
_.a.detached=function(){this.updatePlayerListening()};
_.a.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.a.startPlayerListening=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return(c=_.e5())?_.K(x,c.getPlayerPromise(),2):x.return();B.player=x.yieldResult;B.playerPollJobId=_.EE.addLowPriorityJob(function(){B.getPlayerVideoProgress()},1E3);
B.player.addEventListener("onCueRangeEnter",function(P){B.onCueRangeEnter(P)});
B.player.addEventListener("onCueRangeExit",function(P){B.onCueRangeExit(P)});
B.player.addEventListener("onStateChange",function(P){B.onPlayerStateChange(P)});
B.player.addEventListener("SEEK_TO",function(P){B.onPlayerSeek(P)});
_.Kq(x)})};
_.a.getPlayerVideoProgress=function(){var B=this;_.EE.cancelJob(this.playerPollJobId);if(this.player){var c=this.player.getCurrentTime();_.gj(this.hostElement,"yt-player-time-changed",[c])}this.playerPollJobId=_.EE.addLowPriorityJob(function(){B.getPlayerVideoProgress()},1E3)};
_.a.stopPlayerListening=function(){this.player=null;_.EE.cancelJob(this.playerPollJobId)};
_.a.onPlayerStateChange=function(B){B===2&&this.removePendingCue()};
_.a.onPlayerSeek=function(B){var c;if(c=this.pendingReplayCueId)c=this.pendingReplayCueId,c=B===(_.T("web_transcript_cue_id_killswitch")?Number(c):Number(c.split("_")[1]));c||this.removePendingCue()};
_.a.onCueRangeEnter=function(B){AkS(B)&&(this.pendingReplayCueId=B)};
_.a.onCueRangeExit=function(B){AkS(B)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.a.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.a.onYtTranscriptPlayerSeek=function(B){this.player&&this.player.seekTo(B,!0)};
_.a.onYtTranscriptPlayerReplay=function(B,c){this.player&&(this.player.addCueRange(ieN(B),B,c),this.player.seekTo(B,!0),this.player.playVideo())};
_.a.onYtTranscriptPlayerEdit=function(B,c){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(ieN(B),B,c),this.player.seekTo(B,!0))};
fn.prototype.onLoadReloadContinuation=fn.prototype.onLoadReloadContinuation;fn.prototype.panelContentVisibleChanged=fn.prototype.panelContentVisibleChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fn.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],fn.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],fn.prototype,"panelContentVisible",void 0);_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fn.prototype,"panelContentVisibleChanged",null);
_.L([_.nF("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],fn.prototype,"onLoadReloadContinuation",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],fn);
_.G(fn,"ytd-transcript-renderer",function(){if(UEF!==void 0)return UEF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return UEF=B},{mode:1});var TFl;var VCz;var iE=function(){return _.z.apply(this,arguments)||this};
_.w(iE,_.z);iE.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.XX(this.hostElement,[this.data.clickCommand],this.hostElement))};
iE.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.lT)()+_.FW)+"px)"};
iE.prototype.updateShouldHideFromBinding=function(B){this.shouldHide=B.detail.value};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iE.prototype,"rendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iE.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],iE.prototype,"shouldHide",void 0);_.L([_.y({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],iE);
_.G(iE,"ytd-ad-engagement-panel-banner-renderer",function(){if(VCz!==void 0)return VCz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return VCz=B},{mode:_.sL("kevlar_poly_si_batch_j070")?1:2});var tC6;var A$=function(){var B=_.z.apply(this,arguments)||this;B.modernPanels=_.T("kevlar_watch_modern_panels");B.buttonUpdate=_.T("web_modern_buttons");B.adsSemanticText=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return B};
_.w(A$,_.z);A$.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.L([_.F(),_.H("design:type",Object)],A$.prototype,"data",void 0);_.L([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.H("design:type",Boolean)],A$.prototype,"hideDefaultAdBadge",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"modernPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"buttonUpdate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"adsSemanticText",void 0);
_.L([_.y({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],A$);
_.G(A$,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(tC6!==void 0)return tC6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return tC6=B},{mode:1});var wjS;var uE=function(){var B=_.z.apply(this,arguments)||this;B.darkerPanels=_.T("web_watch_darker_panels");B.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");B.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");B.modernPanels=_.T("kevlar_watch_modern_panels");B.headerClickListener=function(c){B.onHeaderClick(c)};
B.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return B};
_.w(uE,_.z);_.a=uE.prototype;_.a.computeAdsInfoButton=function(){if(_.T("web_modern_buttons")){var B,c;return(c=_.t((B=this.data)==null?void 0:B.subtitleComplex,GpB))==null?void 0:c.adInfoRenderer}};
_.a.updateHeaderClickListener=function(){var B,c,x;((B=this.data)==null?0:B.navigationEndpoint)||((c=this.data)==null?0:c.onClickCommand)||_.t((x=this.data)==null?void 0:x.visibilityButton,_.SP)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.a.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}}}}}};
_.a.collapsedChanged=function(){var B;(B=this.data)!=null&&B.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.T("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.a.focus=function(B){this.titleElement&&_.ir(this.titleElement,B)};
_.a.computeTitleAriaLabel=function(B){var c=[];if(B.title){var x,P;c.push(this.ytRendererBehavior.getSimpleString(B.title)||((x=B.title.accessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label))}B.contextualInfo&&c.push(this.ytRendererBehavior.getSimpleString(B.contextualInfo));return c.join(" ")};
_.a.onHeaderClick=function(B){this.shouldTriggerHeaderClick(B)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.XX(this.hostElement,[this.data.onClickCommand],this.hostElement)):(B=this.getVisibilityToggleButton())&&B.click())};
_.a.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var B=_.t(this.data.visibilityButton,_.z3)||_.t(this.data.visibilityButton,_.SP);B&&this.ytRendererBehavior.logExplicitClick(B)}};
_.a.getVisibilityToggleButton=function(){var B=_.Y9(this.hostElement).querySelector("#visibility-button").firstElementChild;return(B==null?void 0:B.is)==="ytd-toggle-button-renderer"?B:null};
_.a.shouldTriggerHeaderClick=function(B){return!_.uv(_.AV(B),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.a.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(B){B=_.t(B,_.EAy);this.targetId&&(B==null?void 0:B.targetId)===this.targetId&&(B=B.navigationButton)&&this.set("data.navigationButton",B)};
_.AJ.Object.defineProperties(uE.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!!(((B=this.entity)==null?0:B.isActionButtonHidden)||this.hideActionButton)}}});
uE.prototype.collapsedChanged=uE.prototype.collapsedChanged;uE.prototype.updateHeaderClickListener=uE.prototype.updateHeaderClickListener;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],uE.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],uE.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uE.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],uE.prototype,"targetId",void 0);_.L([_.F(),_.H("design:type",Boolean)],uE.prototype,"collapsed",void 0);_.L([_.F(),_.H("design:type",Boolean)],uE.prototype,"hideActionButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],uE.prototype,"shortsPanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],uE.prototype,"liveChatEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],uE.prototype,"learningChatEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uE.prototype,"darkerPanels",void 0);_.L([_.jr("#title"),_.H("design:type",HTMLElement)],uE.prototype,"titleElement",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],uE.prototype,"headerElement",void 0);
_.L([_.F({computed:"computeAdsInfoButton(data)"}),_.H("design:type",Object)],uE.prototype,"adsInfoButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uE.prototype,"enableSqueezebackPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uE.prototype,"enableAnchoredPanel",void 0);_.L([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(B,c){return _.X9(B.entities,"engagementPanelTitleHeaderEntity",c)}}),
_.H("design:type",Object)],uE.prototype,"entity",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uE.prototype,"modernPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uE.prototype,"adsSemanticText",null);_.L([_.bF("data","data.navigationEndpoint","data.onClickCommand"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uE.prototype,"updateHeaderClickListener",null);
_.L([_.CF("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uE.prototype,"collapsedChanged",null);_.L([_.Q("entity","hideActionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uE.prototype,"isActionButtonHidden",null);_.L([_.y({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],uE);
_.G(uE,"ytd-engagement-panel-title-header-renderer",function(){if(wjS!==void 0)return wjS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return wjS=B},{mode:1});var NFi;var DU=function(){return _.z.apply(this,arguments)||this};
_.w(DU,_.z);DU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DU.prototype,"data",void 0);_.L([_.y({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],DU);
_.G(DU,"ytd-macro-markers-info-item-renderer",function(){if(NFi!==void 0)return NFi;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return NFi=B},{mode:1});var IQ8;var lQ6=function(B,c,x,P,Y,g){_.tG.call(this);var k=this;this.JSC$20207_containerElement=B;this.hostElement=c;this.supportedSyncItems=x;this.syncEntityKey=P;this.options=Y;this.renderLazyListItems=g;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;JFs(this);WbS(this);this.JSC$20207_scrollAnimation=new _.Qg(function(n){B.scrollTop=n});
_.bW(this,this.JSC$20207_scrollAnimation);this.addOnDisposeCallback(function(){k.exitBrowsingMode(!1);k.activeItem&&k.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.w(lQ6,_.tG);var JFs=function(B){var c=_.C0(_.cp().resolve(_.GC),function(x){return x.entities.markersEngagementPanelSyncEntity||{}},function(x,P){var Y;
x[B.syncEntityKey]!==P[B.syncEntityKey]&&((Y=x[B.syncEntityKey])==null?void 0:Y.activeItemIndex)!==void 0&&B.updatePanelActiveItem(x[B.syncEntityKey].activeItemIndex)});
B.unsubscribeFromTimedMarkersListSyncEntity=c;B.addOnDisposeCallback(c);E_i(B)},E_i=function(B){var c=_.cp().resolve(_.GC);
c=_.K3d(c.getState(),B.syncEntityKey);(c==null?void 0:c.activeItemIndex)!==void 0&&(c=B.getItemByIndex(c.activeItemIndex))&&B.setActiveItem(c)},WbS=function(B){var c=new _.eA(B.onScroll,50,B);
_.bW(B,c);var x=function(){c.fire()};
B.JSC$20207_containerElement.addEventListener("scroll",x);B.addOnDisposeCallback(function(){B.JSC$20207_containerElement.removeEventListener("scroll",x)})};
_.a=lQ6.prototype;
_.a.updatePanelActiveItem=function(B){var c=this.getItemByIndex(B);if(c){if(this.setActiveItem(c),this.contentVisible)if(this.browsingMode){var x;((x=this.options)==null?void 0:x.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(B=OIr(this),c.offsetTop<this.JSC$20207_containerElement.clientHeight+this.JSC$20207_containerElement.scrollTop&&B&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));o_6(this)}else this.scrollToItem(c)}else _.Ob(new _.mc("Could not find "+this.supportedSyncItems+
" sync child to set active.",B,this.JSC$20207_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.a.getItemByIndex=function(B){var c;(c=this.renderLazyListItems)==null||c.call(this,B);c=this.JSC$20207_containerElement.querySelectorAll(this.supportedSyncItems);if(c.length>B)return c[B]};
_.a.setActiveItem=function(B){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));B.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=B};
_.a.scrollToItem=function(B){B=this.getScrollPositionForItem(B);this.JSC$20207_containerElement.scrollTop!==B&&this.JSC$20207_scrollAnimation.start(this.JSC$20207_containerElement.scrollTop,B,300)};
_.a.getScrollPositionForItem=function(B){if(this.JSC$20207_containerElement.querySelectorAll(this.supportedSyncItems)[0]===B)return 0;var c,x=((c=this.options)==null?0:c.percentOffset)?this.JSC$20207_containerElement.clientHeight*this.options.percentOffset:0;B=_.Od(B).y+this.JSC$20207_containerElement.scrollTop-(_.Od(this.JSC$20207_containerElement).y+x);return Math.max(0,Math.min(B,this.JSC$20207_containerElement.scrollHeight-this.JSC$20207_containerElement.offsetHeight))};
_.a.onScroll=function(){this.activeItemBelowSyncPosition=OIr(this);if(this.activeItem&&!this.JSC$20207_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20207_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var B;switch((B=this.options)==null?void 0:B.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!QRS(this));o_6(this);break;default:this.enterBrowsingMode(!0)}}};
_.a.enterBrowsingMode=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1){if(c.browsingMode)return Y.return();c.browsingMode=!0;B&&c.hostElement.classList.add("browsing-mode");c.playerExitBrowsingModeListener=function(){c.exitBrowsingMode(!1)};
return _.K(Y,_.p3(),2)}x=Y.yieldResult;(P=x)==null||P.addEventListener("SEEK_TO",c.playerExitBrowsingModeListener);_.Kq(Y)})};
_.a.exitBrowsingMode=function(B){B=B===void 0?!0:B;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),B&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.a.removePlayerSeekListener=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1)return B.playerExitBrowsingModeListener?_.K(P,_.p3(),3):P.jumpTo(0);c=P.yieldResult;(x=c)==null||x.removeEventListener("SEEK_TO",B.playerExitBrowsingModeListener);B.playerExitBrowsingModeListener=void 0;_.Kq(P)})};
var o_6=function(B){var c;((c=B.options)==null?void 0:c.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(QRS(B)?B.hostElement.classList.remove("browsing-mode"):B.activeItem&&B.hostElement.classList.add("browsing-mode"))},OIr=function(B){if(!B.activeItem)return!1;
var c,x=((c=B.options)==null?0:c.percentOffset)?B.JSC$20207_containerElement.clientHeight*B.options.percentOffset:0;return B.activeItem.offsetTop>=B.JSC$20207_containerElement.scrollTop+x},QRS=function(B){if(!B.activeItem)return!1;
var c=B.activeItem.offsetTop+14<=B.JSC$20207_containerElement.scrollTop+B.JSC$20207_containerElement.clientHeight;return B.activeItem.offsetTop+B.activeItem.clientHeight-14>=B.JSC$20207_containerElement.scrollTop&&c};
lQ6.prototype.panelContentVisibleChanged=function(B){(this.contentVisible=B)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var FbB=function(B,c){B.syncEntityKey=c;var x;(x=B.unsubscribeFromTimedMarkersListSyncEntity)==null||x.call(B);JFs(B)},v_8=function(B,c){B.options=c};var rP=function(){var B=_.z.apply(this,arguments)||this;B.browsingMode=!1;B.modern=_.T("web_button_rework");B.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return B};
_.w(rP,_.z);_.a=rP.prototype;_.a.activeItemChanged=function(){if(!_.T("synced_panel_scrolling_controller")){var B;((B=this.syncEntity)==null?void 0:B.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.a.created=function(){var B=this;_.T("synced_panel_scrolling_controller")||(this.JSC$20211_scrollAnimation=new _.Qg(function(c){B.contents.scrollTop=c}),this.boundExitBrowsingMode=function(){B.exitBrowsingMode(!1)})};
_.a.detached=function(){if(_.T("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.a.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"}}}};
_.a.dataChanged=function(){var B=this;_.T("synced_panel_scrolling_controller")?_.fl(this,function(){if(B.scrollController){var c;(c=B.scrollController)==null||c.exitBrowsingMode(!1);var x,P,Y;(P=B.scrollController)==null||FbB(P,(Y=(x=B.data)==null?void 0:x.syncModelEntityKey)!=null?Y:"default-macro-markers-list-renderer-entity-key");var g,k,n;(n=B.scrollController)==null||v_8(n,{percentOffset:(g=B.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(k=B.data)==null?void 0:k.floatingPillType})}else{var b,
d,q,C;B.scrollController=new lQ6(B.contents,B.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(C=(b=B.data)==null?void 0:b.syncModelEntityKey)!=null?C:"default-macro-markers-list-renderer-entity-key",{percentOffset:(d=B.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(q=B.data)==null?void 0:q.floatingPillType},function(h){B.renderLazyListItems(h)})}B.scrollController.panelContentVisibleChanged(!!B.panelContentVisible)}):this.exitBrowsingMode()};
_.a.computeButtonShape=function(){var B=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){B.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.a.computeSyncEnabled=function(B){return!(B==null||!B.syncButtonLabel)};
_.a.renderLazyListItems=function(B){for(var c=this.contents.children,x=0,P=0;P<c.length;P++){var Y=void 0;(Y=c[P].ytLazyListBehavior)==null||Y.fillRemainingListItems();var g=void 0,k=void 0;Y=_.t((g=this.data)==null?void 0:(k=g.contents)==null?void 0:k[P],_.dly);k=g=void 0;if((g=Y)==null?0:(k=g.contents)==null?0:k.length)x+=Y.contents.length;if(x>=B)break}};
_.a.getItemByIndex=function(B){this.renderLazyListItems(B);var c=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(c.length>B)return c[B]};
_.a.setActiveItem=function(B){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);B.active!==void 0&&(B.active=!0);this.currentActiveItem=B};
_.a.handleSetActivePanelItemAction=function(B){if((B=_.t(B,oAA))&&this.panelTargetId===B.panelTargetId){B=B.itemIndex;if(_.T("synced_panel_scrolling_controller")){var c,x;var P=(x=(c=this.data)==null?void 0:c.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key"}else{var Y;P=(Y=this.data)==null?void 0:Y.syncModelEntityKey}if(P){var g;((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==B&&this.ytdReduxBehavior.dispatch(_.Uy("markersEngagementPanelSyncEntity",P,{key:P,activeItemIndex:B}))}else this.updatePanelActiveItem(B)}};
_.a.updatePanelActiveItem=function(B){var c=this.getItemByIndex(B);c?(this.setActiveItem(c),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(c)):_.Ob(new _.mc("Could not find ytd-macro-markers-list-renderer sync child to set active.",B,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.a.scrollToItem=function(B){B=this.getScrollPositionForItem(B);this.contents.scrollTop!==B&&this.JSC$20211_scrollAnimation.start(this.contents.scrollTop,B,300)};
_.a.getScrollPositionForItem=function(B){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===B)return 0;B=_.Od(B).y+this.contents.scrollTop-_.Od(this.contents).y-this.getStickyHeaderHeight(B);return Math.min(B,this.contents.scrollHeight-this.contents.offsetHeight)};
_.a.getStickyHeaderHeight=function(B){if(B.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var c,x,P;return(P=(c=B.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(x=c.header)==null?void 0:x.offsetHeight)!=null?P:0}return 0};
_.a.onScroll=function(){_.T("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20211_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.a.enterBrowsingMode=function(){var B=this;return _.X(function(c){if(c.nextAddress==1){if(B.browsingMode)return c.return();B.browsingMode=!0;return _.K(c,_.Bv().getPlayerPromise(),2)}B.player=c.yieldResult;B.player.addEventListener("SEEK_TO",B.boundExitBrowsingMode);_.Kq(c)})};
_.a.exitBrowsingMode=function(B){this.browsingMode&&(this.browsingMode=!1,(B===void 0||B)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.a.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.a.onSyncClick=function(){if(_.T("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.exitBrowsingMode()}else this.exitBrowsingMode()};
_.a.panelContentVisibleChanged=function(){if(_.T("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
rP.prototype.panelContentVisibleChanged=rP.prototype.panelContentVisibleChanged;rP.prototype.dataChanged=rP.prototype.dataChanged;rP.prototype.activeItemChanged=rP.prototype.activeItemChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],rP.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],rP.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rP.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],rP.prototype,"useCustomColors",void 0);_.L([_.F({computed:"computeSyncEnabled(data)"}),_.H("design:type",Boolean)],rP.prototype,"syncEnabled",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],rP.prototype,"panelTargetId",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],rP.prototype,"panelContentVisible",void 0);_.L([_.jr("#contents"),_.H("design:type",HTMLElement)],rP.prototype,"contents",void 0);_.L([_.jr("#sync-container"),_.H("design:type",HTMLElement)],rP.prototype,"syncContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rP.prototype,"browsingMode",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],rP.prototype,"modern",void 0);_.L([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.K3d}),_.H("design:type",Object)],rP.prototype,"syncEntity",void 0);_.L([_.bF("syncEntity.activeItemIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rP.prototype,"activeItemChanged",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rP.prototype,"dataChanged",null);_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rP.prototype,"panelContentVisibleChanged",null);_.L([_.y({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],rP);
_.G(rP,"ytd-macro-markers-list-renderer",function(){if(IQ8!==void 0)return IQ8;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return IQ8=B},{mode:1});var zuz;var Rq=function(){return _.z.apply(this,arguments)||this};
_.w(Rq,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Rq.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Rq.prototype,"data",void 0);_.L([_.y({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Rq);
_.G(Rq,"ytd-error-corrections-section-item-renderer",function(){if(zuz!==void 0)return zuz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return zuz=B},{mode:1});var S_s;var eb=function(){return _.z.apply(this,arguments)||this};
_.w(eb,_.z);eb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eb.prototype,"data",void 0);_.L([_.y({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],eb);
_.G(eb,"ytd-error-corrections-section-renderer",function(){if(S_s!==void 0)return S_s;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return S_s=B},{mode:1});var yFs;var Bm=function(){return _.z.apply(this,arguments)||this};
_.w(Bm,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Bm.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Bm.prototype,"data",void 0);_.L([_.y({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Bm);
_.G(Bm,"ytd-topic-link-renderer",function(){if(yFs!==void 0)return yFs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yFs=B},{mode:1});var Gbc;var cm=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("kevlar_modern_sd_v2");B.modernLockupV2=_.T("modernize_structured_description_playlist_lockups_v2");B.modernTypography=_.T("web_modern_typography");return B};
_.w(cm,_.z);cm.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cm.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cm.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cm.prototype,"modernLockupV2",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],cm.prototype,"modernTypography",void 0);_.L([_.y({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],cm);
_.G(cm,"ytd-video-description-course-section-renderer",function(){if(Gbc!==void 0)return Gbc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Gbc=B},{mode:1});var MCB;var xq=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("kevlar_modern_sd_v2");B.modernTypography=_.T("web_modern_typography");return B};
_.w(xq,_.z);xq.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],xq.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],xq.prototype,"modernTypography",void 0);
_.L([_.y({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],xq);
_.G(xq,"ytd-video-description-files-section-renderer",function(){if(MCB!==void 0)return MCB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return MCB=B},{mode:1});var LbF;var Pm=function(){return _.z.apply(this,arguments)||this};
_.w(Pm,_.z);Pm.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Pm.prototype,"data",void 0);_.L([_.y({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Pm);
_.G(Pm,"ytd-video-description-gaming-section-renderer",function(){if(LbF!==void 0)return LbF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return LbF=B},{mode:1});var ZIs;var Yq=function(){var B=_.z.apply(this,arguments)||this;B.isExpanded=!1;return B};
_.w(Yq,_.z);Yq.prototype.computeHasDefaultMetadataEndpoint=function(B){var c;B=B==null?void 0:(c=B.defaultMetadata)==null?void 0:c.runs;return!(!B||B.length!==1||!B[0].navigationEndpoint)};
Yq.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.AJ.Object.defineProperties(Yq.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Yq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Yq.prototype,"isExpanded",void 0);_.L([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Yq.prototype,"hasDefaultMetadataEndpoint",void 0);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Yq.prototype,"isExpandable",null);_.L([_.Q("data","isExpandable","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Yq.prototype,"showExpandedMetadata",null);_.L([_.y({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Yq);
_.G(Yq,"ytd-info-row-renderer",function(){if(ZIs!==void 0)return ZIs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ZIs=B},{mode:1});var HIo;var a6=function(){var B=_.z.apply(this,arguments)||this;B.currentIndex=0;B.supportComponentResize=!0;B.modern=_.T("kevlar_modern_sd_v2");B.JSC$20237_lastScrollContainerWidth=NaN;return B};
_.w(a6,_.z);_.a=a6.prototype;
_.a.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"}}}};
_.a.getItemsPath=function(){return"videoLockups"};
_.a.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.a.onIronResize=function(){this.updateVideoLockupStyles()};
_.a.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.a.updateVideoLockupStyles=function(){var B;this.JSC$20237_scrollContainer!==void 0&&(B=this.videoLockups)!=null&&B.length&&(B=this.JSC$20237_scrollContainer.clientWidth,B!==this.JSC$20237_lastScrollContainerWidth&&(this.JSC$20237_lastScrollContainerWidth=B,_.k9(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(B*.8,415)+"px"}),_.aJ(this.hostElement,"iron-resize")))};
_.AJ.Object.defineProperties(a6.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var B=[],c;if((c=this.data)==null||!c.carouselLockups)return B;c=_.p(this.data.carouselLockups);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;((P=_.t(x,kW8))==null?0:P.videoLockup)&&B.push(_.t(x,kW8).videoLockup)}return B}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoLockups)==null||!B.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var B=[],c;if((c=this.data)==null||!c.carouselLockups)return B;var x;return(x=_.t(this.data.carouselLockups[this.scrollCount],kW8))==null?void 0:x.infoRows}}});
a6.prototype.dataChanged=a6.prototype.dataChanged;a6.prototype.onIronResize=a6.prototype.onIronResize;a6.prototype.hiddenChanged=a6.prototype.hiddenChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],a6.prototype,"componentBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],a6.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],a6.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],a6.prototype,"inlineStructuredDescription",void 0);_.L([_.F({value:2}),_.H("design:type",Number)],a6.prototype,"initialCount",void 0);_.L([_.F(),_.H("design:type",Object)],a6.prototype,"currentIndex",void 0);
_.L([_.F(),_.H("design:type",Number)],a6.prototype,"scrollCount",void 0);_.L([_.F(),_.H("design:type",Object)],a6.prototype,"supportComponentResize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],a6.prototype,"contentHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],a6.prototype,"modern",void 0);_.L([_.jr("#scroll-container"),_.H("design:type",HTMLDivElement)],a6.prototype,"JSC$20237_scrollContainer",void 0);
_.L([_.bF("contentHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a6.prototype,"hiddenChanged",null);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],a6.prototype,"videoLockups",null);_.L([_.Q("videoLockups"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a6.prototype,"hasVideoLockups",null);
_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a6.prototype,"onIronResize",null);_.L([_.Q("data","scrollCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],a6.prototype,"infoRows",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a6.prototype,"dataChanged",null);_.L([_.y({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],a6);
_.G(a6,"ytd-video-description-music-section-renderer",function(){if(HIo!==void 0)return HIo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return HIo=B},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var fQ6;var gw=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("kevlar_modern_sd_v2");B.modernTypography=_.T("web_modern_typography");return B};
_.w(gw,_.z);gw.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.L([_.F({}),_.H("design:type",Object)],gw.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gw.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gw.prototype,"modernTypography",void 0);
_.L([_.y({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],gw);
_.G(gw,"ytd-video-description-transcript-section-renderer",function(){if(fQ6!==void 0)return fQ6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fQ6=B},{mode:1});var iIA;_.xU(_.rM(function(B){var c=_.jA(_.N37,function(){return B.data().firstProviderLinkStatusEntityKey}),x=_.jA(_.N37,function(){return B.data().secondProviderLinkStatusEntityKey}),P=function(){var Y,g;
return((Y=c())==null?void 0:Y.linked)||((g=x())==null?void 0:g.linked)};
return _.U("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.U(_.RF,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return B.data().sectionTitle}}),_.U(_.RF,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return P()?B.data().connectedMessage:B.data().notConnectedMessage}}),_.U(_.m,{cond:P,
then:function(){return _.U(_.IF,{data:function(){return B.data().connectedButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.U(_.m,{cond:function(){return!P()},
then:function(){return _.U(_.IF,{data:function(){return B.data().notConnectedButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Yi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;return _.U("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.U("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.U(_.RF,{text:function(){return c().sectionTitle}})),_.U("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.U(_.RF,{text:function(){return c().bodyHeader}})),_.U("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.U(_.RF,{text:function(){return c().bodyText}})),_.U(_.m,
{cond:function(){return c().attributionText},
then:function(){return _.U("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.U(_.RF,{text:function(){return c().attributionText}}))}}))},"Zi"),"how-this-was-made-section-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){return _.U("yt-video-description-youchat-section-view-model",{class:_.Kw("ytVideoDescriptionYouchatSectionViewModelHost")},_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.U(_.RF,{text:function(){return B.data().sectionTitle}})),_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.U(_.RF,{text:function(){return B.data().subHeaderText}})),_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.U(_.Q7,{data:function(){return _.t(B.data().primaryButton,
_.Tj)}})))},"$i"),"yt-video-description-youchat-section-view-model",{props:{data:_.rk}});var s1=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return B};
_.w(s1,_.z);_.a=s1.prototype;
_.a.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}}}}}};
_.a.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.a.dataChanged=function(){var B,c;this.hasDescriptionOnly=!(((B=this.data)==null?void 0:(c=B.items)==null?void 0:c.length)!==1||!_.t(this.data.items[0],X4s))};
_.a.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.a.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.a.autoFocusDescription=function(){var B;((B=_.cp().resolve(_.Bp(_.Xr)))==null?0:B.isKeyBoardInUse())&&this.description&&_.Aj(this.description)};
_.a.resize=function(){if(_.T("kevlar_disable_sd_resize"))this.JSC$20245_cardList&&_.aJ(this.JSC$20245_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.aJ(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.aJ(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.a.scrollToSection=function(B){if(B=this.getSectionElement(B))_.gj(this.hostElement,"yt-scroll-to-watch-element",[B]),B.focus()};
_.a.getSectionElement=function(B){switch(B){case "infocards-item-section":var c;return(c=this.infocardsSection)!=null?c:null;case "transcript-item-section":var x;return(x=this.transcriptSection)!=null?x:null;case "how-this-was-made-section-item-section":var P;return(P=this.howThisWasMadeSection)!=null?P:null;case "files-item-section":var Y;return(Y=this.filesSection)!=null?Y:null;default:return null}};
_.a.handleSetActiveItemAction=function(B){var c=_.t(B,oAA),x=c&&(c==null?void 0:c.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20245_cardList;if(c&&x){B=this.currentActiveChapter;var P=this.currentActiveProblem;c=x==null?void 0:x.getItemByIndex(c.itemIndex);var Y=x=!0;c&&(c.active=!0,c.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(x=B!==c,Y=!1,this.currentActiveChapter=c):(c==null?void 0:c.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(x=!1,Y=P!==c,this.currentActiveProblem=c));B&&x&&(B.active=!1);P&&Y&&(P.active=!1)}};
_.AJ.Object.defineProperties(s1.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
s1.prototype.onYtExpanderMoreTapped=s1.prototype.onYtExpanderMoreTapped;s1.prototype.onHiddenChanged=s1.prototype.onHiddenChanged;s1.prototype.dataChanged=s1.prototype.dataChanged;s1.prototype.panelContentVisibleChanged=s1.prototype.panelContentVisibleChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],s1.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],s1.prototype,"ironResizableBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],s1.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],s1.prototype,"panelContentVisible",void 0);_.L([_.F(),_.H("design:type",Boolean)],s1.prototype,"hasDescriptionOnly",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s1.prototype,"inlineStructuredDescription",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s1.prototype,"hidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s1.prototype,"shortsPanel",void 0);_.L([_.F(),_.H("design:type",Object)],s1.prototype,"videoSummary",void 0);_.L([_.F(),_.H("design:type",Object)],s1.prototype,"merchShelf",void 0);
_.L([_.Q("videoSummary"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],s1.prototype,"showVideoSummary",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s1.prototype,"engagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s1.prototype,"watchWhileSdp",void 0);_.L([_.jr("ytd-expandable-video-description-body-renderer"),_.H("design:type",Object)],s1.prototype,"description",void 0);
_.L([_.jr("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],s1.prototype,"JSC$20245_cardList",void 0);_.L([_.jr("ytd-horizontal-card-list-renderer[center-items]"),_.H("design:type",Object)],s1.prototype,"problemWalkthroughCardList",void 0);_.L([_.jr("ytd-shelf-renderer"),_.H("design:type",Object)],s1.prototype,"shelfSection",void 0);_.L([_.jr("ytd-video-description-music-section-renderer"),_.H("design:type",Object)],s1.prototype,"musicMetadataSection",void 0);
_.L([_.jr("ytd-video-description-infocards-section-renderer"),_.H("design:type",Object)],s1.prototype,"infocardsSection",void 0);_.L([_.jr("ytd-video-description-transcript-section-renderer"),_.H("design:type",Object)],s1.prototype,"transcriptSection",void 0);_.L([_.jr("how-this-was-made-section-view-model"),_.H("design:type",Object)],s1.prototype,"howThisWasMadeSection",void 0);_.L([_.jr("ytd-video-description-files-section-renderer"),_.H("design:type",Object)],s1.prototype,"filesSection",void 0);
_.L([_.bF("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s1.prototype,"panelContentVisibleChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s1.prototype,"dataChanged",null);_.L([_.bF("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s1.prototype,"onHiddenChanged",null);
_.L([_.nF("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s1.prototype,"onYtExpanderMoreTapped",null);_.L([_.y({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],s1);
_.G(s1,"ytd-structured-description-content-renderer",function(){if(iIA!==void 0)return iIA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iIA=B},{mode:2});var AFs;var uJl;var p1=function(){return _.z.apply(this,arguments)||this};
_.w(p1,_.z);p1.prototype.computeAriaLabel=function(B){var c,x;return(B==null?void 0:(c=B.accessibility)==null?void 0:(x=c.accessibilityData)==null?void 0:x.label)||_.Up("LOADING",void 0,"Loading")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],p1.prototype,"data",void 0);_.L([_.F({computed:"computeAriaLabel(data)"}),_.H("design:type",String)],p1.prototype,"ariaLabel",void 0);_.L([_.Em({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],p1);
_.G(p1,"yt-content-loading-renderer",function(){if(uJl===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;AFs===void 0&&(AFs=document.createElement("template"));var P=AFs;x.call(c,P.content.cloneNode(!0),B.content.firstChild);uJl=B}B=uJl;return B},{mode:_.sL("kevlar_poly_si_batch_j043")?1:2});_.xU(_.rM(function(B){var c=_.p(_.$D(!1,void 0,"WbYeXc")),x=c.next().value,P=c.next().value;c=_.p(_.$D(!1,void 0,"msXkzc"));var Y=c.next().value,g=c.next().value;_.lk(function(){var b=_.t(B.data().collaboratePlaylistCollaborationSetting,eKS);b&&P(b.switchedOnByDefault);var d=_.t(B.data().allowNewCollaboratorsPlaylistCollaborationSetting,eKS);d&&g(d.switchedOnByDefault);if(!b&&!d||!b&&B.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")P(!0),g(!0)});
var k=function(b){P(b);g(b);var d=B.data().playlistCollaborationEntityKey||"";var q=_.HW().getState();(q=_.X9(q.entities,"playlistCollaborationEntity",d))&&(q==null?void 0:q.isCollaborative)===b||_.HW().dispatch(_.Uy("playlistCollaborationEntity",d,Object.assign({},q,{isCollaborative:b})))},n=function(b){g(b)};
return _.U("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.U("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.U(_.IF,{data:function(){return B.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.U(_.bIZ,{data:b.data,
onSwitch:k})}})),_.U(_.m,{cond:x,
then:function(){return _.U("div",null,_.U("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.U(_.IF,{data:function(){return B.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.U(_.bIZ,{data:b.data,
onSwitch:n,overrideDisabled:!1})}})),_.U(_.m,{cond:Y,
then:function(){return _.U("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.U(_.IF,{data:function(){return B.data().copyLinkButton}},{buttonViewModel:_.Q7}))}}),_.U("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.U(_.IF,{data:function(){return B.data().playlistCollaborators}},{contentListItemViewModel:_.pEy})))}}))},"aj"),"playlist-collaboration-view-model",{props:{data:_.rk}});var DEz=_.rM(function(B){var c=B.data;var x=B.customCommandResolver;return _.U(_.at,null,_.U("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.U(_.IF,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(P){return _.U(_.B6d,{data:P.data,
customCommandResolver:x})}})),_.U("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.U(_.m,{cond:function(){return c().headline},
then:function(P){return _.U(_.RF,{text:P,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.U("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.U(_.IF,{data:function(){return c().adBadge}},{adBadgeViewModel:function(P){return _.U(_.xT,{data:P.data,
hasDot:function(){return c().primaryDetailsLine!==void 0},
customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.U(_.IF,{data:function(){return c().primaryDetailsLine}},{adDetailsLineViewModel:function(P){return _.U(_.Pz,{data:P.data,
customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"bj"),rFA=_.rM(function(B){var c=B.data;
var x=B.customCommandResolver;B=_.Ho("ad-avatar-lockup-view-model");_.uR(B,function(){return c().interaction},x);
_.e3(B,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});return _.U("ad-avatar-lockup-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:B,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U(_.tR,null,_.U(_.Tu,{when:function(){return c().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.U(DEz,{data:c,
customCommandResolver:x})}),_.U(_.Va,null,function(){return null})))},"cj");_.xU(_.rM(function(B){var c=B.data;var x=B.panelContentVisibility;B=_.Ho("panel-ad-header-image-lockup-view-model");_.uR(B,function(){return c().interaction},uly);
_.e3(B,{visibilityCallback:function(Y){var g,k=(g=c().interaction)==null?void 0:g.onFirstVisible;Y&&k&&_.Gl(k)},
showOption:_.r5});_.oO(function(){var Y,g;if(g=_.Gu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;g=(k=g())==null?void 0:k.onLayoutVisibleCallback}else g=null;(Y=g)==null||Y()});
var P=function(){return x()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.U("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:B},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.U(_.m,{cond:_.FZA("(min-width: "+((0,_.lT)()+_.FW)+"px) or (max-width: 600px)"),then:function(){return _.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(Y){return _.U(_.UJ,{data:Y.data,
targetHeight:80,customCommandResolver:uly})}})}})),_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.U(_.IF,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(Y){return _.U(rFA,{data:Y.data,
customCommandResolver:uly})}})),_.U(_.m,{cond:P,
then:function(){return _.U(_.IF,{data:function(){return c().adButton}},{adButtonViewModel:function(Y){return _.U(_.eS,{data:Y.data,
customCommandResolver:uly})}})},
else:function(){return _.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:_.Q7})}}),_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.U(_.IF,{data:function(){var Y=_.t(c().toggleButton,_.V7);
return{toggleButtonViewModel:Object.assign({},Y,{isTogglingDisabled:!0,isToggled:P()})}}},{toggleButtonViewModel:_.Jb})))))},"dj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.rk,
panelContentVisibility:_.rk}});_.xU(_.rM(function(B){var c=function(){return _.t(B.data().inputComposerViewModel,Bnz)},x=function(){var N;
return((N=c())==null?void 0:N.youchatPendingResponseEntityKey)||""},P=_.jA(_.J5B,x),Y=function(){var N;
return!((N=P())==null||!N.isPendingResponse)},g=_.p(_.$D(!0,void 0,"DR0q1d")),k=g.next().value,n=g.next().value,b=function(){return c().sectionTargetId||"youchat_messages_section"};
g=_.fE("yt-chat-input-view-model");var d=_.Ho("textarea"),q=_.jA(zoi,"chat_input_view_model_state"),C=S8N(),h=function(){var N;return!((N=q())==null||!N.value)};
_.lk(function(){var N;if(!h()&&((N=c())==null?0:N.welcomeFeatureContinuation)){N={continuationCommand:{token:c().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var l,E=String(Math.floor(((l=_.kx())==null?void 0:l.getCurrentTime())||0)*1E3);l={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:E}};_.zl(N,{form:{formData:l}});C(!0)}var S=b(),M;(M=_.cp().resolve(_.Bp(_.t2)))==null||M.addEventListener("yt-navigate-start",function(){_.tb.remove(S);C(!1)},
{once:!0})});
var V=function(){var N,l,E,S,M,f,Z,u,e;return _.X(function(px){N=d.value.value;d.value.value="";Du6(d.value);l=rkr(b(),N);_.zl(l);E=_.WBr(x());_.Gl(((S=c())==null?void 0:S.onSubmitCommand)||{});E(!0);f=String(Math.floor(((M=_.kx())==null?void 0:M.getCurrentTime())||0)*1E3);u={continuationCommand:{token:(Z=c())==null?void 0:Z.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};e={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:N,playerOffsetMs:f}};_.zl(u,{form:{formData:e},
commandController:{onSuccess:function(){E(!1)},
onServerError:function(){var kI=b();_.zl({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:kI}}]}}});E(!1)}}});
_.Kq(px)})};
return _.U("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:g},_.U("div",{class:"chatInputViewModelChatInputWrapper"},_.U("form",{class:"chatInputViewModelChatInputForm"},_.U("textarea",{class:"chatInputViewModelChatInput",el:d,"on:keydown":_.qe(function(N){var l=Y()||!1;Du6(d.value);l||N.key!=="Enter"||N.shiftKey||(N.preventDefault(),V());return!1}),
"on:keyup":_.qe(function(){n(d.value.value.length===0);return!1}),
placeholder:function(){var N,l;var E=_.t((l=c())==null?void 0:l.inputFormField,lll);return E==null?void 0:(N=E.contentProperties)==null?void 0:N.placeholderText},
rows:1}),_.U(_.Q7,{data:function(){return _.t(B.data().sendButton,_.Tj)},
onClick:function(N){N.preventDefault();V();n(d.value.value.length===0)},
buttonOverrides:function(){return{disabled:k()||Y()}}})),_.U(_.RF,{className:"chatInputViewModelChatDisclaimer",
text:function(){var N;return(N=_.t(B.data().disclaimer,_.q5S))==null?void 0:N.text}})))},"ej"),"yt-chat-input-view-model",{props:{data:_.rk}});var RuA=["engagement-panel-clip-create","engagement-panel-clip-view"],euz=0,kq=function(){var B=_.z.apply(this,arguments)||this;var c;B.headerData=(c=B.data)==null?void 0:c.header;B.darkerPanels=_.T("web_watch_darker_panels");B.matchContentTheme=_.T("web_watch_panel_content_match_theme");B.disableAutoFill=!1;B.isFullscreen=!1;B.isTheaterMode=!1;B.modernPanels=_.T("kevlar_watch_modern_panels");B.liveChatReplyPanel=!1;B.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");B.disableBackdropFilter=
_.T("web_disable_backdrop_filter");B.trackEngagementPanelVisibility=_.T("web_watch_track_engagement_panel_visibility");B.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 B};
_.w(kq,_.z);_.a=kq.prototype;
_.a.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(B){var c;return(B==null?void 0:(c=B.webComponentHint)==null?void 0:c.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"}}}};
_.a.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var B;if((B=this.hostElement.parentElement)==null?0:B.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.a.detached=function(){this.updateTheaterDisablement()};
_.a.showPanel=function(){var B=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.EE.addJob(function(){B.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.a.maybeScrollToItemSection=function(B){var c=this,x,P=B==null?void 0:(x=B.sectionListEngagementPanelExtras)==null?void 0:x.scrollToItemSectionIdentifier;P&&_.EE.addJob(function(){var Y;(Y=c.sectionListRendererElement)==null||Y.scrollToItemSection(P)},8)};
_.a.hidePanel=function(){var B=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.EE.addJob(function(){B.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.a.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.a.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.a.updatePanel=function(B,c,x,P){var Y=this;if((B=B==null?void 0:B.engagementPanelSectionListRenderer)||P){if(B){P=B.header;var g=B.content,k=B.footer;(B=B.targetId)&&this.set("data.targetId",B);P&&this.set("data.header",P);g&&this.set("data.content",g);k&&this.set("data.footer",k)}else P&&(B=P.content,g=P.secondaryHeaderContent,(P=P.targetId)&&this.set("data.targetId",P),B&&this.set("data.content",B),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(c){var n;_.T("kevlar_update_panel_focus_scroll_killswitch")||
(n={preventScroll:!0});this.focus(n)}_.fl(this,function(){_.aJ(Y.hostElement,"yt-refit");Y.maybeScrollToItemSection(x)})}};
_.a.computeHeaderData=function(){var B,c=(0,_.wW.unsafeClone)((B=this.data)==null?void 0:B.header);if(c){B=new _.A(Object.keys(c)[0]);var x=_.t(c,B),P=_.t(this.secondaryHeaderData,B);P&&_.EL(c,B,Object.assign({},P,x))}return c};
_.a.getReloadContinuation=function(){var B,c,x,P=_.p(((B=this.data)==null?void 0:(c=B.content)==null?void 0:(x=c.sectionListRenderer)==null?void 0:x.continuations)||[]);for(B=P.next();!B.done;B=P.next())if(B=B.value,B.reloadContinuationData)return B.reloadContinuationData.continuation};
_.a.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var B;((B=this.data)==null?0:B.targetId)&&(B=this.contentElement.firstElementChild)&&B.setAttribute("panel-target-id",this.data.targetId)};
_.a.forwardPopupClosedToFlowRootRenderer=function(){var B=_.Y9(this.hostElement).querySelector("ytd-flow-root-renderer");if(B)B.onPopupClosed()};
_.a.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var B;if(!RuA.includes((B=this.theaterDisablementPanelIdentifier)!=null?B:""))if(B=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode,B=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||B,_.T("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||B){var c;this.visibility=(c=this.data)==null?void 0:c.visibility;var x;this.trackEngagementPanelVisibility&&((x=this.data)==null?void 0:x.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var P,Y,g,k;this.contentEmpty=!!(((P=this.data)==null?0:(Y=P.content)==null?0:Y.structuredDescriptionContentRenderer)&&Object.keys((g=this.data)==null?void 0:(k=g.content)==null?void 0:
k.structuredDescriptionContentRenderer).length===0);(c=_.cp().resolve(_.TA))&&c.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.a.isTheaterModeChanged=function(){_.T("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.a.isFullscreenChanged=function(){_.T("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.a.focus=function(B){if(this.header)this.header.focus(B);else{var c;(c=_.Y9(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||c.focus(B)}};
_.a.visibilityChanged=function(){if(!_.T("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var B=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=P||!this.lastVisibility,g,k,n=(g=this.data)==null?void 0:(k=g.identifier)==null?void 0:k.tag,
b;if(((b=this.data)==null?0:b.onShowCommands)&&B&&Y)_.XX(this.hostElement,this.data.onShowCommands,this.hostElement),n&&_.uG().dispatch(_.YN({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:n}}));else{var d;((d=this.data)==null?0:d.onHideCommands)&&c&&x&&(_.XX(this.hostElement,this.data.onHideCommands,this.hostElement),n&&_.uG().dispatch(_.YN({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:n}})))}B&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*euz++));_.T("kevlar_watch_focus_on_engagement_panels")&&
B&&P&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.a.notifyVisibilityChanged=function(B){var c;_.sp(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,B,(c=this.data)==null?void 0:c.targetId])};
_.a.updateTheaterDisablement=function(){if(!_.T("kevlar_watch_theater_disablement_killswitch")){var B=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&RuA.includes(B)&&!_.T("watch_next_grid_ignore_disallowed_panels")){var c=_.vv(_.uG().getState()),x=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";B!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():x?(this.originalTheaterState===void 0&&(this.originalTheaterState=c,this.theaterDisablementPanelIdentifier=
B),c&&_.gj(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.a.clearTheaterDisablement=function(){_.gj(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.a.updateChildVisibilityProperties=function(){this.hostElement||_.T("kevlar_panel_property_init_killswitch")||this._enableProperties();var B=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=B);var c,x=(c=this.headerElement)==null?void 0:c.firstElementChild;if(x&&!this.adHeaderImageLockupViewModel){c=B==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";x.collapsed=c;x=_.Y9(x).querySelector("#visibility-button");if(!x)return;(x=x.firstElementChild)&&
x.polymerController.is==="ytd-toggle-button-renderer"&&x.polymerController.data.isToggled!==c&&x.polymerController.set("data.isToggled",c)}var P;if(c=(P=this.contentElement)==null?void 0:P.firstElementChild)if(B&&B!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")c.removeAttribute("panel-content-visible");else{c.setAttribute("panel-content-visible","");var Y;(Y=c.markDirty)==null||Y.call(c)}};
_.a.onYtChangeEngagementPanelVisibilityAction=function(B){var c=this,x,P=(x=this.data)==null?void 0:x.targetId,Y,g,k;x=((Y=this.data)==null?void 0:(g=Y.identifier)==null?void 0:g.tag)||((k=this.data)==null?void 0:k.panelIdentifier);var n=_.t(B,_.t2d),b;B=P&&(n==null?void 0:n.targetId)===P||x&&(n==null?void 0:(b=n.panelIdentifier)==null?void 0:b.tag)===x;this.dialog&&B&&(n==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(P==="engagement-panel-comments-section"?_.gj(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.gj(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",x]));!_.T("kevlar_use_engagement_panel_management_component")&&B&&(P=n.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!P?_.EE.addJob(function(){c.visibility=n.visibility},2,this.hideDelayMs):this.visibility=n.visibility,n.visibility&&this.notifyVisibilityChanged(n.visibility))};
_.a.onYtScrollToEngagementPanelCommand=function(B){var c,x=(c=this.data)==null?void 0:c.targetId,P,Y,g;c=((P=this.data)==null?void 0:(Y=P.identifier)==null?void 0:Y.tag)||((g=this.data)==null?void 0:g.panelIdentifier);B=_.t(B,_.FFQ);var k;(x&&(B==null?void 0:B.targetId)===x||c&&(B==null?void 0:(k=B.panelIdentifier)==null?void 0:k.tag)===c)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.gj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.a.attachVEs=function(B){var c,x;(B==null?0:(c=B.content)==null?0:(x=c.productListRenderer)==null?0:x.trackingParams)&&_.q_().graftServerVe(B.content.productListRenderer.trackingParams);var P,Y;(B==null?0:(P=B.content)==null?0:(Y=P.transcriptRenderer)==null?0:Y.trackingParams)&&_.q_().graftServerVe(B.content.transcriptRenderer.trackingParams)};
_.a.onYtUpdateEngagementPanelAction=function(B){var c,x=(c=this.data)==null?void 0:c.targetId;B=_.t(B,FrS);x&&(B==null?void 0:B.targetId)===x&&(this.updatePanel({engagementPanelSectionListRenderer:{header:B==null?void 0:B.header,content:B==null?void 0:B.content}},!1),this.attachVEs(B))};
_.a.onYtShowEngagementPanelScrimAction=function(B){var c,x=(c=this.data)==null?void 0:c.targetId;B=_.t(B,QQc);x&&(B==null?void 0:B.engagementPanelTargetId)===x&&(this.scrimmed=!0)};
_.a.onYtHideEngagementPanelScrimAction=function(B){var c,x=(c=this.data)==null?void 0:c.targetId;B=_.t(B,OXz);x&&(B==null?void 0:B.engagementPanelTargetId)===x&&(this.scrimmed=!1)};
_.a.getIdentifier=function(){var B,c,x;return((B=this.data)==null?void 0:B.panelIdentifier)||((c=this.data)==null?void 0:(x=c.identifier)==null?void 0:x.tag)};
_.a.getSurface=function(){var B,c;return(B=this.data)==null?void 0:(c=B.identifier)==null?void 0:c.surface};
_.AJ.Object.defineProperties(kq.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var B=this.getIdentifier();return B==="engagement-panel-youchat"||B==="PAyouchat"}}});
kq.prototype.visibilityChanged=kq.prototype.visibilityChanged;kq.prototype.isFullscreenChanged=kq.prototype.isFullscreenChanged;kq.prototype.isTheaterModeChanged=kq.prototype.isTheaterModeChanged;kq.prototype.dataChanged=kq.prototype.dataChanged;kq.prototype.forwardPopupClosedToFlowRootRenderer=kq.prototype.forwardPopupClosedToFlowRootRenderer;kq.prototype.onYtRendererstamperFinished=kq.prototype.onYtRendererstamperFinished;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],kq.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],kq.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"data",void 0);
_.L([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.H("design:type",Object)],kq.prototype,"headerData",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"secondaryHeaderData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"visibility",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"contentEmpty",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"scrimmed",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"dialog",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"dropdown",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"darkerPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"matchContentTheme",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"disableAutoFill",void 0);
_.L([_.F({reflectToAttribute:!0,value:_.T("optimal_reading_width_comments_ep")}),_.H("design:type",Boolean)],kq.prototype,"optimalReadingWidthComments",void 0);_.L([_.F(),_.H("design:type",Number)],kq.prototype,"hideDelayMs",void 0);_.L([_.F({selector:_.zj,reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"isFullscreen",void 0);_.L([_.F({selector:_.vv,reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"isTheaterMode",void 0);
_.L([_.F(),_.H("design:type",Number)],kq.prototype,"showDelayMs",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.targetId"),_.H("design:type",Object),_.H("design:paramtypes",[])],kq.prototype,"targetId",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],kq.prototype,"webSize",null);_.L([_.F(),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],kq.prototype,"hideFooterBorder",null);
_.L([_.F(),_.H("design:type",Object)],kq.prototype,"isWatch",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"originalTheaterState",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"theaterDisablementPanelIdentifier",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"modernPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"isWatchWhilePanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"shortsPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"liveChatEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],kq.prototype,"learningChatEngagementPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"liveChatReplyPanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"enableAnchoredPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],kq.prototype,"disableBackdropFilter",void 0);_.L([_.F(),_.H("design:type",Object)],kq.prototype,"trackEngagementPanelVisibility",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],kq.prototype,"headerElement",void 0);_.L([_.jr("#header > *"),_.H("design:type",HTMLElement)],kq.prototype,"header",void 0);
_.L([_.jr("ytd-section-list-renderer"),_.H("design:type",Object)],kq.prototype,"sectionListRendererElement",void 0);_.L([_.jr("panel-ad-header-image-lockup-view-model"),_.H("design:type",HTMLElement)],kq.prototype,"adHeaderImageLockupViewModel",void 0);_.L([_.jr("#content"),_.H("design:type",HTMLElement)],kq.prototype,"contentElement",void 0);
_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"onYtRendererstamperFinished",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.L([_.CF("data","isFullscreen","isTheaterMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"dataChanged",null);
_.L([_.bF("isTheaterMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"isTheaterModeChanged",null);_.L([_.bF("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"isFullscreenChanged",null);_.L([_.bF("visibility"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kq.prototype,"visibilityChanged",null);
_.L([_.y({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],kq);
_.G(kq,"ytd-engagement-panel-section-list-renderer",function(){if(TFl!==void 0)return TFl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return TFl=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var Bh6;var X7=function(){var B=_.z.apply(this,arguments)||this;B.lastRenderedPanelIds=new Set;B.visiblePanels=[];B.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return B};
_.w(X7,_.z);_.a=X7.prototype;_.a.dataChanged=function(){if(this.data){for(var B=[],c=_.p(this.data),x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0,Y=void 0,g=(P=x)==null?void 0:(Y=P.engagementPanelSectionListRenderer)==null?void 0:Y.visibility;Y=P=void 0;((P=x)==null?0:(Y=P.engagementPanelSectionListRenderer)==null?0:Y.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B.push(x)}this.visiblePanels=B}else this.visiblePanels=[]};
_.a.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}}};
_.a.withoutVisiblePanelById=function(B){return this.visiblePanels.filter(function(c){var x;return((x=c.engagementPanelSectionListRenderer)==null?void 0:x.targetId)!==B})};
_.a.onYtChangeEngagementPanelVisibilityAction=function(B){var c=this,x=_.t(B,_.t2d);if(this.data&&(x==null?0:x.targetId)&&(x==null?0:x.visibility)){var P,Y=(P=this.data.find(function(k){var n;return((n=k.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===x.targetId}))==null?void 0:P.engagementPanelSectionListRenderer;
if(Y){var g=this.withoutVisiblePanelById(x.targetId);x.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(B=this.data.find(function(k){var n;return((n=k.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===x.targetId}))&&(g=[B].concat(_.wq(g)));
this.hideDelayMs&&x.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.EE.addJob(function(){Y.visibility=x.visibility;c.visiblePanels=g},10,this.hideDelayMs):(Y.visibility=x.visibility,this.visiblePanels=g);
_.sp(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.a.onRendererstamperFinished=function(){var B=new Set(this.visiblePanels.map(function(c){var x;return(x=c.engagementPanelSectionListRenderer)==null?void 0:x.targetId}));
this.handlePanelVisibilityChange(B,this.lastRenderedPanelIds);this.lastRenderedPanelIds=B};
_.a.handlePanelVisibilityChange=function(B,c){B=B===void 0?new Set:B;c=c===void 0?new Set:c;if(this.data)for(var x=_.p(this.data),P=x.next();!P.done;P=x.next()){P=P.value;var Y=void 0,g=void 0,k=(Y=P)==null?void 0:(g=Y.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(k&&(Y=c.has(k),g=B.has(k),k=void 0,!Y&&g?(g=Y=void 0,k=(Y=P)==null?void 0:(g=Y.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):Y&&!g&&(g=Y=void 0,k=(Y=P)==null?void 0:(g=Y.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),k))for(P=_.p(k),k=P.next();!k.done;k=P.next())this.ytComponentBehavior.resolveCommand(k.value)}};
X7.prototype.onRendererstamperFinished=X7.prototype.onRendererstamperFinished;X7.prototype.dataChanged=X7.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],X7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],X7.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],X7.prototype,"lastRenderedPanelIds",void 0);_.L([_.F(),_.H("design:type",Number)],X7.prototype,"hideDelayMs",void 0);_.L([_.F(),_.H("design:type",Array)],X7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],X7.prototype,"visiblePanels",void 0);_.L([_.F(),_.H("design:type",Boolean)],X7.prototype,"isWatchWhilePanel",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],X7.prototype,"dataChanged",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],X7.prototype,"onRendererstamperFinished",null);_.L([_.y({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],X7);
_.G(X7,"ytd-watch-engagement-panels",function(){if(Bh6!==void 0)return Bh6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Bh6=B},{mode:1});var cYN;var $q=function(){return _.z.apply(this,arguments)||this};
_.w($q,_.z);$q.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.L6(_.Y9(this.hostElement).querySelector("#text"),_.TC9(_.w$5,this.data.companionLegalText))};
$q.prototype.computeAutoScrollEnabled=function(B,c){return B&&!c};
$q.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
$q.prototype.onToggleTap=function(){this.expanded=!this.expanded};
$q.prototype.expandedChanged=$q.prototype.expandedChanged;$q.prototype.dataChanged=$q.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.A5z),_.H("design:type",Object)],$q.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$q.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],$q.prototype,"expanded",void 0);
_.L([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.H("design:type",Boolean)],$q.prototype,"autoScrollEnabled",void 0);_.L([_.F(),_.H("design:type",String)],$q.prototype,"expanderIcon",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$q.prototype,"dataChanged",null);
_.L([_.bF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$q.prototype,"expandedChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],$q);
_.G($q,"ytd-companion-legal-text-renderer",function(){if(cYN!==void 0)return cYN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return cYN=B},{mode:1});var xxr;var n1=function(){var B=_.z.apply(this,arguments)||this;B.buttonUpdate=_.T("web_modern_buttons");B.kevlarWatchGrid=_.T("kevlar_watch_grid");B.centerAlignDescription=_.T("action_companion_center_align_description");B.truncateDomain=_.T("action_companion_truncate_domain");return B};
_.w(n1,_.z);_.a=n1.prototype;_.a.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.a.getOnLayoutVisibleCallback=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
_.a.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",n1.JSC$20292_DEFAULT_AD_BADGE_RENDERER);var B=this.getOnLayoutVisibleCallback();B&&B()}};
_.a.getButtonRenderer=function(B){return B.actionButton&&_.t(B.actionButton,_.z3)?(delete _.t(B.actionButton,_.z3).navigationEndpoint,_.t(B.actionButton,_.z3)):{}};
_.a.onClick=function(B){var c=this;if((!_.T("web_modern_buttons")||!_.uv(_.AV(B),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){B=_.e5();var x=this.getLayoutId();B&&x&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(P){(new _.Ip(P)).executeCommand(c.data.navigationEndpoint,x)}):_.T("kevlar_companion_resolve_command_killswitch")?_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.gj(this.hostElement,"yt-companion-ad-clicked",["action-companion",x])}};
_.AJ.Object.defineProperties(n1.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?0:(c=B.detailsLine)==null?0:(x=c.adRating)==null?0:x.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 B,c,x,P;return((B=this.data)==null?0:(c=B.detailsLine)==null?0:(x=c.adRating)==null?0:(P=x.ratingIcon)==null?0:P.iconType)?_.$0(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return((B=this.data)==null?0:(c=B.detailsLine)==null?0:(x=c.texts)==null?0:(P=x[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 B,c;return((B=this.data)==null?0:(c=B.description)==null?0:c.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var B=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return B?B.indexOf("/default_banner")!==-1:!0}}});
n1.prototype.onClick=n1.prototype.onClick;n1.prototype.dataChanged=n1.prototype.dataChanged;n1.JSC$20292_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Up("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],n1.prototype,"rendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],n1.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n1.prototype,"buttonUpdate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n1.prototype,"kevlarWatchGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n1.prototype,"centerAlignDescription",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],n1.prototype,"truncateDomain",void 0);
_.L([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.H("design:type",Object)],n1.prototype,"buttonOverride",void 0);_.L([_.Q("data.detailsLine.adRating.ratingText"),_.H("design:type",Object),_.H("design:paramtypes",[])],n1.prototype,"getRating",null);_.L([_.Q("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],n1.prototype,"computeRatingHidden",null);
_.L([_.Q("data.detailsLine.adRating.ratingIcon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],n1.prototype,"iconType",null);_.L([_.Q("data.detailsLine.texts.0.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],n1.prototype,"getDetailsLine",null);_.L([_.Q("getDetailsLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],n1.prototype,"computeDetailsLineHidden",null);
_.L([_.Q("data.description.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],n1.prototype,"getDescriptionText",null);_.L([_.Q("getDescriptionText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],n1.prototype,"computeDescriptionTextHidden",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],n1.prototype,"interactionLoggingClientData",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],n1.prototype,"hideBanner",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n1.prototype,"dataChanged",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],n1.prototype,"onClick",null);_.L([_.y({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],n1);
_.G(n1,"ytd-action-companion-ad-renderer",function(){if(xxr!==void 0)return xxr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return xxr=B},{mode:_.sL("kevlar_poly_si_batch_j067")?1:2});var Pn8;var Yu6;var bf=function(){var B=_.z.apply(this,arguments)||this;B.buttonUpdate=_.T("web_modern_buttons");B.hideLegacyBanner=_.T("enable_dsa_one_click_ata_translators_infeed_elements");B.adInfoButtonStyle="mono";B.adInfoButtonType="text";B.noDotAdBadge=!0;return B};
_.w(bf,_.z);_.a=bf.prototype;_.a.getOnLayoutVisibleCallback=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
_.a.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 B=this.data.image.thumbnail.thumbnails[0];this.imageSrc=B.url?_.Tz(B.url):void 0;this.imageWidth=B.width||0;this.imageHeight=B.height||0}this.data.clickthroughEndpoint&&_.t(this.data.clickthroughEndpoint,_.yp)&&(B=_.t(this.data.clickthroughEndpoint,_.yp).url,_.T("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
B||"":B?(B=_.Tz(B),this.clickThroughUrl=_.UG(B)):this.clickThroughUrl=void 0);(B=this.getOnLayoutVisibleCallback())&&B()}};
_.a.onClick=function(B){_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(B)};
_.a.handleClick=function(){var B=this;this.data&&this.data.clickthroughEndpoint&&(_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(c){B.macroReplacementBehavior.sendServiceRequestAction([c])}),_.gj(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.a.onLoad=function(){_.sp(this.hostElement,"yt-refit-popups-action")};
_.AJ.Object.defineProperties(bf.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}}});
bf.prototype.onLoad=bf.prototype.onLoad;bf.prototype.onClick=bf.prototype.onClick;bf.prototype.dataChanged=bf.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bf.prototype,"rendererBehavior",void 0);_.L([_.J(WC8.YtMacroReplacementBehavior),_.H("design:type",Object)],bf.prototype,"macroReplacementBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bf.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bf.prototype,"buttonUpdate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bf.prototype,"hideLegacyBanner",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bf.prototype,"adInfoButtonStyle",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],bf.prototype,"adInfoButtonType",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bf.prototype,"macros",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bf.prototype,"interactionLoggingClientData",null);_.L([_.F(),_.H("design:type",String)],bf.prototype,"clickThroughUrl",void 0);_.L([_.F(),_.H("design:type",_.bV)],bf.prototype,"imageSrc",void 0);_.L([_.F(),_.H("design:type",Number)],bf.prototype,"imageWidth",void 0);_.L([_.F(),_.H("design:type",Number)],bf.prototype,"imageHeight",void 0);_.L([_.F(),_.H("design:type",Object)],bf.prototype,"noDotAdBadge",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bf.prototype,"dataChanged",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],bf.prototype,"onClick",null);_.L([_.nF("load"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bf.prototype,"onLoad",null);_.L([_.y({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bf);
_.G(bf,"ytd-image-companion-renderer",function(){if(Yu6!==void 0)return Yu6;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Yu6=B},{mode:_.sL("kevlar_poly_si_batch_j067")?1:2});var aNs;var K1=function(){return _.z.apply(this,arguments)||this};
_.w(K1,_.z);_.a=K1.prototype;_.a.dataChanged=function(){this.set("data.adBadge",K1.JSC$20301_DEFAULT_AD_BADGE_RENDERER);if(this.data){var B=this.getOnLayoutVisibleCallback();B&&B()}};
_.a.getOnLayoutVisibleCallback=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
_.a.onCompanionClicked=function(B){this.data&&(B.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.gj(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.a.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var B=_.e5(),c=this.getLayoutId(),x=this.data.clickToAdvSiteEndpoint;B&&c&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(P){(new _.Ip(P)).executeCommand(x,c)}):_.aJ(this.hostElement,"yt-navigate",{endpoint:x})}};
_.a.sendTrackingPings=function(B){if(B&&B.length!==0&&B[0].loggingUrls&&(B=B[0].loggingUrls.map(this.getBaseUrl)))for(var c=0;c<B.length;c++)_.M6(B[c])};
_.a.getBaseUrl=function(B){return B.baseUrl||""};
_.AJ.Object.defineProperties(K1.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.Gu("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}}});
K1.prototype.onCompanionClicked=K1.prototype.onCompanionClicked;K1.prototype.dataChanged=K1.prototype.dataChanged;K1.JSC$20301_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Up("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],K1.prototype,"data",void 0);_.L([_.jr("#title"),_.H("design:type",HTMLElement)],K1.prototype,"shopTitle",void 0);
_.L([_.CF("data.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K1.prototype,"dataChanged",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],K1.prototype,"interactionLoggingClientData",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],K1.prototype,"onCompanionClicked",null);
_.L([_.y({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],K1);
_.G(K1,"ytd-shopping-companion-renderer",function(){if(aNs!==void 0)return aNs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return aNs=B},{mode:1});_.xU(_.rM(function(B){var c=B.data;var x=_.Ho("banner-image-layout-view-model");_.uR(x,function(){return c().interaction},Roo);
_.e3(x,{visibilityCallback:function(P){var Y,g=(Y=c().interaction)==null?void 0:Y.onFirstVisible;P&&g&&_.Gl(g)},
showOption:_.r5});_.oO(function(){var P,Y;Y=(Y=_.Gu("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(P=Y)==null||P()});
return _.U("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.qe(function(){_.sp(x.value,"yt-refit-popups-action")}),
el:x,"aria-label":function(){var P,Y;return(P=c().interaction)==null?void 0:(Y=P.accessibility)==null?void 0:Y.label}},_.U("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(P){return _.U(_.UJ,{data:P.data,
targetHeight:80,customCommandResolver:Roo})}})),_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.U(_.IF,{data:function(){return c().adBadge}},{adBadgeViewModel:function(P){return _.U(_.xT,{data:P.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:_.Q7}))))},"fj"),"banner-image-layout-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;B=_.Ho("top-banner-image-text-icon-buttoned-layout-view-model");_.uR(B,function(){return c().interaction},eo8);
_.e3(B,{visibilityCallback:function(x){var P,Y=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&Y&&_.Gl(Y)},
showOption:_.r5});_.oO(function(){var x,P;P=(P=_.Gu("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.onLayoutVisibleCallback:null;(x=P)==null||x()});
return _.U("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:B},_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.U(_.IF,{data:function(){return c().adImage}},{adImageViewModel:function(x){return _.U(_.UJ,{data:x.data,
targetHeight:80,customCommandResolver:eo8})}})),_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.U(_.IF,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(x){return _.U(rFA,{data:x.data,
customCommandResolver:eo8})}})),_.U(_.IF,{data:function(){return c().adButton}},{adButtonViewModel:function(x){return _.U(_.eS,{data:x.data,
customCommandResolver:eo8})}}),_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.U(_.IF,{data:function(){return c().menu}},{buttonViewModel:_.Q7}))))},"gj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.rk}});var gns={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"},j7=function(){var B=_.z.apply(this,arguments)||this;B.updateCompanionDataJobId=0;B.contentVideoId=null;B.player=null;B.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return B};
_.w(j7,_.z);_.a=j7.prototype;_.a.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:gns}}};
_.a.attached=function(){var B=this,c=_.e5();c&&c.getPlayerPromise().then(function(x){B.getCachedDataAndListen(x)})};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.a.updateRendererStamper=function(){var B={};if(this.data)for(var c in gns)if(this.data[c]){B[c]=this.data[c];break}if(this.oneofRenderer!=void 0||Object.keys(B).length)this.oneofRenderer=B};
_.a.getCachedDataAndListen=function(B){var c=this.retrieveCachedCompanionData();c&&Object.keys(c).length&&this.receiveCompanionData(c);this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=B};
_.a.retrieveCachedCompanionData=function(){return _.xI.yt&&_.xI.yt.www&&_.xI.yt.www.ads&&_.xI.yt.www.ads.eventcache&&_.xI.yt.www.ads.eventcache.getLastCompanionData?_.xI.yt.www.ads.eventcache.getLastCompanionData():null};
_.a.receiveCompanionData=function(B){B&&Object.keys(B).length?(this.contentVideoId=B.contentVideoId,this.setCompanionData(B)):this.setCompanionData(B)};
_.a.setCompanionData=function(B){this.cancelPendingCompanionAdJobs();if(B){this.updateCompanionDataJobId=0;for(var c in gns)gns.hasOwnProperty(c)&&(this.data[c]=void 0);B.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",B.shoppingCompanionCarouselRenderer):B.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",B.imageCompanionAdRenderer):B.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",B.actionCompanionAdRenderer),_.sp(this.hostElement,
"yt-hide-unlimited-offer-module"),_.sp(this.hostElement,"yt-hide-tvfilm-offer-module")):B.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",B.bannerImageLayoutViewModel):B.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",B.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.a.dataChanged=function(){var B=this,c=_.e5();c?c.getPlayerPromise().then(function(x){B.contentVideoId&&x.getVideoUrl().includes("v="+B.contentVideoId)||(B.cancelPendingCompanionAdJobs(),B.updateRendererStamper())}):_.MR(Error("jm"))};
_.a.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.EE.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.a.handleCompanionAdClicked=function(B,c){this.player.onAdUxClicked(B,c);this.player.pauseVideo()};
j7.prototype.dataChanged=j7.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],j7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],j7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],j7.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],j7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],j7.prototype,"oneofRenderer",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],j7.prototype,"dataChanged",null);_.L([_.y({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],j7);
_.G(j7,"ytd-companion-slot-renderer",function(){if(Pn8!==void 0)return Pn8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Pn8=B},{mode:_.sL("kevlar_poly_si_batch_j067")?
1:2});var sVs;var U1=function(){return _.z.apply(this,arguments)||this};
_.w(U1,_.z);U1.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
U1.prototype.dataChanged=U1.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],U1.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],U1.prototype,"companionSlotData",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U1.prototype,"dataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],U1);
_.G(U1,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(sVs!==void 0)return sVs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return sVs=B},{mode:1});var pnz;var dw=function(){var B=_.z.apply(this,arguments)||this;B.skinnyMode=!1;B.COMPACT_EVENT_COUNT=4;B.onShelfToggleButtonTap=function(){B.logTap(B.data);B.showingMore=!B.showingMore};
B.onShelfToggleButtonFocus=function(){B.showingMore||(B.logTap(B.data),B.showingMore=!0,_.fl(B,function(){var c=B.COMPACT_EVENT_COUNT-1,x;(x=_.Y9(B.hostElement).querySelector("#event-"+c))==null||x.focus()}))};
return B};
_.w(dw,_.z);_.a=dw.prototype;_.a.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.a.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.a.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.$9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.$9(this.infoTooltip,this.infoTooltip.hide))};
_.a.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.$9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.$9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.$9(this.infoTooltip,this.infoTooltip.hide))};
_.a.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)};
_.a.onShowingMoreChanged=function(){var B;this.showingMoreChanged((B=this.showingMore)!=null?B:!1)};
_.a.showingMoreChanged=function(B){var c=this.get("data.events")||[];this.set("restEvents",c.slice(1,B?c.length:this.COMPACT_EVENT_COUNT).map(function(x){return x.ticketEventRenderer}));
c.slice(0,B?c.length:this.COMPACT_EVENT_COUNT).forEach(function(x){var P=_.Wf();x=x.ticketEventRenderer.trackingParams;_.Jg()&&P&&x&&(x=_.VF(x),P&&_.LW(P,x))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.a.computeAriaLabel=function(B){return B.subtitle1+", "+B.subtitle2};
_.a.logTap=function(B){_.Jg()&&this.ytRendererBehavior.logExplicitClick(B)};
_.a.isKeyboardAction=function(B){return this.get("detail.x",B)===0&&this.get("detail.y",B)===0};
_.a.onFirstEventTap=function(B){B.target&&this.handleTap(B.target,this.firstEvent,this.isKeyboardAction(B))};
_.a.onTicketLinkTap=function(B){B.target&&this.handleTap(B.target,B.model.item,this.isKeyboardAction(B))};
_.a.handleTap=function(B,c,x){if(c.buttonCommand)if(c.hasMultipleOffers)Object.assign(_.t(c.buttonCommand,_.J3),{properties:{source:x?"keyboard":"tap"}}),this.logTap(c),this.popupPositionTarget=B,_.XX(this.hostElement,[c.buttonCommand],this.hostElement);else{var P;if((P=_.t(c.buttonCommand,_.yp))==null?0:P.url)this.logTap(c),_.oW(window,_.t(c.buttonCommand,_.yp).url)}};
dw.prototype.onShowingMoreChanged=dw.prototype.onShowingMoreChanged;dw.prototype.dataChanged=dw.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dw.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],dw.prototype,"firstEvent",void 0);_.L([_.F(),_.H("design:type",Object)],dw.prototype,"restEvents",void 0);_.L([_.F(),_.H("design:type",String)],dw.prototype,"imageUrl",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],dw.prototype,"showingMore",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],dw.prototype,"canShowMore",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],dw.prototype,"skinnyMode",void 0);_.L([_.F(),_.H("design:type",HTMLElement)],dw.prototype,"popupPositionTarget",void 0);_.L([_.jr("#banner-info-tooltip"),_.H("design:type",Object)],dw.prototype,"infoTooltip",void 0);
_.L([_.jr("#info-container"),_.H("design:type",HTMLElement)],dw.prototype,"infoContainer",void 0);_.L([_.jr("#shelf-toggler"),_.H("design:type",HTMLElement)],dw.prototype,"shelfToggleButton",void 0);_.L([_.jr("#separator"),_.H("design:type",HTMLDivElement)],dw.prototype,"separator",void 0);_.L([_.F(),_.H("design:type",String)],dw.prototype,"shelfTogglerLabelText",void 0);_.L([_.F(),_.H("design:type",String)],dw.prototype,"shelfTogglerIcon",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dw.prototype,"dataChanged",null);_.L([_.CF("showingMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dw.prototype,"onShowingMoreChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],dw);
_.G(dw,"ytd-ticket-shelf-renderer",function(){if(pnz!==void 0)return pnz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pnz=B},{mode:1});var kyi;var Xny;var q$=function(){return _.z.apply(this,arguments)||this};
_.w(q$,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],q$.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],q$);
_.G(q$,"ytd-comments-entry-point-message-renderer",function(){if(Xny!==void 0)return Xny;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Xny=B},{mode:1});var $x6;var C1=function(){return _.z.apply(this,arguments)||this};
_.w(C1,_.z);_.AJ.Object.defineProperties(C1.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.teaserAvatar)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],C1.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],C1.prototype,"hasAvatar",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],C1);
_.G(C1,"ytd-comments-entry-point-teaser-renderer",function(){if($x6!==void 0)return $x6;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $x6=B},{mode:1});var nn8;var h1=function(){return _.z.apply(this,arguments)||this};
_.w(h1,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],h1.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],h1);
_.G(h1,"ytd-comments-simplebox-renderer",function(){if(nn8!==void 0)return nn8;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nn8=B},{mode:1});var mh=function(){var B=_.z.apply(this,arguments)||this;B.fullHeight=!_.T("comment_teaser_full_height_kill_switch")&&_.T("kevlar_watch_grid");return B};
_.w(mh,_.z);mh.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"}}}};
mh.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
mh.prototype.onTap=function(){var B=this.tapCommand;B&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(B))};
mh.prototype.onKeyUp=function(B){if(B.keyCode===13)this.onTap()};
_.AJ.Object.defineProperties(mh.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.onTap)return this.data.onTap;var c,x;if(((c=this.data)==null?0:c.teaserContent)||((x=this.data)==null?0:x.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)!=null&&B.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
mh.prototype.onKeyUp=mh.prototype.onKeyUp;mh.prototype.onTap=mh.prototype.onTap;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],mh.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mh.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],mh.prototype,"fullHeight",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"tapCommand",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"simpleboxPlaceholder",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mh.prototype,"hasSimpleboxPlaceholder",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"simpleboxAvatar",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"teaserContent",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mh.prototype,"hasTeaserContent",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"teaserAvatar",null);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mh.prototype,"hasTeaserAvatar",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"messageText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mh.prototype,"contentRenderer",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mh.prototype,"hasContents",null);
_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mh.prototype,"hasContentRenderer",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mh.prototype,"onTap",null);_.L([_.nF("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[_.CR]),_.H("design:returntype")],mh.prototype,"onKeyUp",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],mh);
_.G(mh,"ytd-comments-entry-point-header-renderer",function(){if(kyi!==void 0)return kyi;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return kyi=B},{mode:1});var bKs;_.T("web_enable_sink_animated_rolling_character_and_number")?_.xU(_.hX3,"yt-animated-rolling-number",{props:{numberText:_.rk,numberValue:_.rk,heightPx:_.rk,fontSizeMultiplier:_.rk,shouldAnimate:_.rk,forceRollUp:_.rk}}):_.XB(_.p2w,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var K2i=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),jV8={numberText:"",heightPx:2*K2i,shouldAnimate:!1},TR=function(){var B=_.z.apply(this,arguments)||this;B.usingAnimatedComponents=!0;B.wasDetailed=!1;B.JSC$20338_browserSupportsAnimation=_.T("web_supports_animations_api");B.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};B.detailed=!1;B.shouldAnimate=!1;B.viewCountProps=jV8;B.dateTextProps=
jV8;B.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");return B};
_.w(TR,_.z);_.a=TR.prototype;_.a.resetAnimationState=function(){this.shouldAnimate=!1};
_.a.updateDynamicMetadata=function(){if(this.JSC$20338_browserSupportsAnimation){if(!this.detailed){var B,c,x,P;var Y=(B=this.videoPrimaryInfoRenderer)==null?void 0:(c=B.viewCount)==null?void 0:(x=c.videoViewCountRenderer)==null?void 0:(P=x.extraShortViewCount)==null?void 0:P.simpleText;var g,k,n,b;var d=(g=this.videoPrimaryInfoRenderer)==null?void 0:(k=g.viewCount)==null?void 0:(n=k.videoViewCountRenderer)==null?void 0:(b=n.shortViewCount)==null?void 0:b.simpleText}if(!d){var q,C,h,V;Y=(q=this.videoPrimaryInfoRenderer)==
null?void 0:(C=q.viewCount)==null?void 0:(h=C.videoViewCountRenderer)==null?void 0:(V=h.unlabeledViewCountValue)==null?void 0:V.simpleText;var N,l,E,S;d=(N=this.videoPrimaryInfoRenderer)==null?void 0:(l=N.viewCount)==null?void 0:(E=l.videoViewCountRenderer)==null?void 0:(S=E.viewCount)==null?void 0:S.simpleText}var M,f,Z;B=Number((M=this.videoPrimaryInfoRenderer)==null?void 0:(f=M.viewCount)==null?void 0:(Z=f.videoViewCountRenderer)==null?void 0:Z.originalViewCount);var u,e;M=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(e=u.relativeDateText)==null?void 0:e.simpleText;var px;u=!((px=this.videoPrimaryInfoRenderer)==null||!px.relativeDateText);if(Y&&d&&B&&(M||!u)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;px=d.split(new RegExp("("+Y+")"));Y=alz(px[0]);var kI;d={numberText:(kI=px[1])!=null?kI:"",numberValue:B,heightPx:2*K2i,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Ul;kI=((Ul=px[2])!=null?Ul:"")+"  ";this.setViewCount(d,Y,alz(kI));
if(!this.detailed&&u){Y=M.split(/(\d+)/);Ul=alz(Y[0]);var wC;kI={numberText:(wC=Y[1])!=null?wC:"",heightPx:2*K2i,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var W$;wC=((W$=Y[2])!=null?W$:"")+"  ";this.setDateText(kI,Ul,alz(wC))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.a.setViewCount=function(B,c,x){_.iG(c)!==_.iG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=c);this.viewCountProps.numberText!==(B==null?void 0:B.numberText)&&(this.viewCountProps=B||jV8);_.iG(x)!==_.iG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=x)};
_.a.setDateText=function(B,c,x){_.iG(c)!==_.iG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=c);this.dateTextProps.numberText!==(B==null?void 0:B.numberText)&&(this.dateTextProps=B||jV8);_.iG(x)!==_.iG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=x)};
_.a.onYtUpdateViewershipAction=function(B){this.videoPrimaryInfoRenderer&&(_.t(B,p4c).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.t(B,p4c).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.t(B,p4c).viewCount)))};
_.a.onYtUpdateDateTextAction=function(B){if(this.videoPrimaryInfoRenderer){B=_.t(B,_.gaz).dateText;this.shouldAnimate=!0;var c;((c=this.videoPrimaryInfoRenderer)==null?0:c.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",B):this.set("videoPrimaryInfoRenderer.dateText",B)}};
_.AJ.Object.defineProperties(TR.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Y7N(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.iG(Y7N(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.iG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.iG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.iG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.iG(this.dateTextPostNumberText)].join("")}}});
TR.prototype.updateDynamicMetadata=TR.prototype.updateDynamicMetadata;TR.prototype.resetAnimationState=TR.prototype.resetAnimationState;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],TR.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TR.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"detailed",void 0);_.L([_.F(),_.H("design:type",Object)],TR.prototype,"shouldAnimate",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"viewCountPreNumberText",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"viewCountProps",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"viewCountPostNumberText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"dateTextPreNumberText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"dateTextProps",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"dateTextPostNumberText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],TR.prototype,"metadataBadgesInDescription",void 0);_.L([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.H("design:type",Object),_.H("design:paramtypes",[])],TR.prototype,"infoText",null);
_.L([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.H("design:type",String),_.H("design:paramtypes",[])],TR.prototype,"descriptionInfoTooltipText",null);_.L([_.Q("detailed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],TR.prototype,"showDescriptionInfoTooltip",null);
_.L([_.Q("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],TR.prototype,"animatedViewCountAccessibilityLabel",null);_.L([_.Q("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],TR.prototype,"animatedDateTextAccessibilityLabel",null);
_.L([_.bF("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TR.prototype,"resetAnimationState",null);_.L([_.bF("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TR.prototype,"updateDynamicMetadata",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-watch-info-text"})],TR);
_.G(TR,"ytd-watch-info-text",function(){if(bKs!==void 0)return bKs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return bKs=B},{mode:1});var Uxr;var dxN=_.rM(function(B){var c=B.data;var x=B.setTapCommand;_.IO(function(){var P=_.vH(c().onTap);x(P)},"X4onJd");
return _.U("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.U(_.IF,{data:function(){return c().avatar}},{avatarViewModel:_.IS}),_.U("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.U("span",null,function(){return c().simpleboxText})))},"hj");var qur=_.rM(function(B){return _.U("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.U(_.m,{cond:function(){return _.t(B.data().avatar,_.f3)},
then:function(c){return _.U(_.IS,{data:c,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.U("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.U(_.RF,{text:function(){return B.data().teaserText}})))},"ij");var CnN=_.rM(function(B){var c=B.data;var x=B.setTapCommand;_.IO(function(){var P=_.vH(c().onTap);x(P)},"PmAol");
return _.U("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.U(_.IF,{data:function(){return c().teasers}},{commentsEntryPointTeaserViewModel:qur}))},"jj");var hgo=_.rM(function(B){var c=B.data;var x=B.setTapCommand;_.IO(function(){var P=_.vH(c().onTap);x(P)},"Nh3Hjd");
return _.U("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.U(_.RF,{text:function(){return c().messageText}}))},"kj");var mxr=_.rM(function(B){var c=B.data;var x=B.setTapCommand;var P=B.isDisabled;_.IO(function(){var Y=(P==null?0:P())?void 0:_.vH(c().onTap);x(Y)},"omeiWe");
return _.U("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.U(_.Vf,{icon:function(){return c().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.U(_.m,{cond:function(){return c().image},
then:function(Y){return _.U(_.D9,{data:Y,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.U(_.RF,{text:function(){return c().text},
className:function(){return c().image||c().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.U(_.IF,{data:function(){return c().button}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:P==null?void 0:P()}}})}}))},"lj");var Thc=_.rM(function(B){var c=B.data;var x=B.itemIndex;var P=B.selectedIndex;var Y=B.indexUpdatedCallback;var g=B.observer;B=B.title;var k=_.Ho("yt-carousel-item-view-model",function(C){_.T("web_metadata_carousel_elref_bugfix")&&g&&g().observe(C)}),n=function(C){x()===P()&&Y(C)},b=_.FB(FZ8),d=_.FB(vhB),q=function(){var C,h,V;
return((C=c())==null?void 0:C.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((h=c())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&d().includes("PAposts_by_host")||((V=c())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&d().includes("PAyouchat")};
_.lk(function(){_.T("web_metadata_carousel_elref_bugfix")||g&&g().observe(k.value)});
return _.U("yt-carousel-item-view-model",{el:k,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":B},_.U(_.IF,{data:function(){var C,h;return(h=(C=_.t(c().carouselItem,Wr6))==null?void 0:C.textCarousel)!=null?h:c().carouselItem}},{textCarouselItemViewModel:function(C){return _.U(mxr,{data:C.data,
setTapCommand:n,isDisabled:q})},
commentTeaserCarouselItemViewModel:function(C){return _.U(CnN,{data:C.data,setTapCommand:n})},
commentInputBoxCarouselItemViewModel:function(C){return _.U(dxN,{data:C.data,setTapCommand:n})},
commentsEntryPointMessageViewModel:function(C){return _.U(hgo,{data:C.data,setTapCommand:n})}}))},"mj");var Vaz=_.rM(function(B){var c=B.numDots;var x=B.activeIndex;return _.U("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.U(_.mV,{each:function(){return Array.from({length:c()})},
keyBy:"INDEX"},function(P,Y){return _.U("div",{class:function(){var g={};return _.U9("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=Y===x(),g))}})}))},"nj");var tay=_.rM(function(B){var c=B.data;var x=B.handleCarouselNavigation;var P=B.numItems;var Y=B.selectedIndex;var g=function(){return{disabled:Y()===0}},k=function(){return{disabled:Y()===P()-1}};
return _.U("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.U("div",null,_.U("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return c().title}),_.U(_.m,{cond:function(){return c().subtitle},
then:function(n){return _.U("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return c().subtitleAccessibilityText}},n)}})),_.U(_.m,{cond:function(){return P()>1},
then:function(){return _.U("div",{class:"ytCarouselTitleViewModelNavigation"},_.U(Vaz,{numDots:P,activeIndex:Y}),_.U(_.m,{cond:function(){return c().previousButton},
then:function(n){return _.U(_.IF,{data:n},{buttonViewModel:function(b){return _.U(_.Q7,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return x(-1)},
buttonOverrides:g})}})}}),_.U(_.m,{cond:function(){return c().nextButton},
then:function(n){return _.U(_.IF,{data:n},{buttonViewModel:function(b){return _.U(_.Q7,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return x(1)},
buttonOverrides:k})}})}}))}}))},"oj");_.xU(_.rM(function(B){var c=B.data;var x,P=_.Ho("yt-video-metadata-carousel-view-model"),Y=_.Ho("div",function(u){if(_.T("web_metadata_carousel_elref_bugfix")){var e=function(){var px=u.offsetWidth*l(),kI=24*(l()-1);h(px+kI)};
e();window.ResizeObserver&&(x=new ResizeObserver(e),x.observe(u))}}),g=_.v5("HTML_DIR")==="rtl",k=!1,n=0,b=0;
B=_.p(_.$D(0,void 0,"f4aYxe"));var d=B.next().value,q=B.next().value;B=_.p(_.$D(0,void 0,"kU9O9"));var C=B.next().value,h=B.next().value;B=_.p(_.$D(!1,void 0,"GqphDd"));var V=B.next().value,N=B.next().value,l=function(){var u,e,px;return(px=(u=c())==null?void 0:(e=u.carouselTitles)==null?void 0:e.length)!=null?px:0},E=function(){Y.value&&Y.value.scrollLeft!==n&&q((g?Y.value.scrollLeft<n:Y.value.scrollLeft>n)?Math.min(d()+1,l()-1):Math.max(d()-1,0))},S;
window.IntersectionObserver&&(S=new IntersectionObserver(function(u){u=_.p(u);for(var e=u.next();!e.done;e=u.next())if(e.value.isIntersecting){if(k){k=!1;break}E()}else q(b)},{threshold:.2}));
_.IO(function(){if(Y.value){var u=(g?-1:1)*(C()/l()+12)*(V()&&S?b:d());typeof Y.value.scrollTo==="function"?Y.value.scrollTo({left:u,behavior:"smooth"}):Y.value.scrollLeft=u;n=u;b=V()&&S?b:d()}},"ZP1VMb");
var M,f=function(u){M=u};
_.lk(function(){if(!_.T("web_metadata_carousel_elref_bugfix")){var u=function(){var px=Y.value.offsetWidth*l(),kI=24*(l()-1);h(px+kI)};
u();if(window.ResizeObserver){var e=new ResizeObserver(u);e.observe(Y.value);_.lP(function(){e.disconnect();S&&S.disconnect()})}}});
_.lP(function(){if(_.T("web_metadata_carousel_elref_bugfix")){var u;(u=x)==null||u.disconnect();var e;(e=S)==null||e.disconnect()}});
var Z=function(u){u=d()+u;u>=0&&u<l()&&(k=!0,q(u))};
return _.U("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:P,"on:click":_.qe(function(u){if(_.Mv(_.Gj(u),P.value,["BUTTON".toString()])||!M)return!1;_.cp().resolve(_.xu).resolveCommand(M,{forceClickLogging:!0});return!1}),
"on:touchstart":_.qe(function(){N(!0);return!1}),
"on:touchend":_.qe(function(){S||E();N(!1);return!1}),
hidden:function(){var u,e;return!((u=c())==null?0:(e=u.carouselItems)==null?0:e.length)}},_.U("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.U(_.m,{cond:function(){return c().carouselTitles},
then:function(u){return _.U(_.IF,{data:function(){return u()[V()&&S?b:d()]}},{carouselTitleViewModel:function(e){return _.U(tay,{data:e.data,
handleCarouselNavigation:Z,numItems:l,selectedIndex:d})}})}})),_.U("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Y},_.U("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+C()+"px;"}},_.U(_.m,{cond:function(){return c().carouselItems},
then:function(u){return _.U(_.mV,{each:u},function(e,px){return _.U(_.IF,{data:function(){return e}},{carouselItemViewModel:function(kI){return _.U(Thc,{data:kI.data,
itemIndex:px,selectedIndex:d,indexUpdatedCallback:f,observer:S,title:function(){a:{var Ul=px();var wC,W$=(wC=c())==null?void 0:wC.carouselTitles;if(W$&&(Ul=W$[Ul])){var El;Ul=(El=_.t(Ul,Jzy))==null?void 0:El.title;break a}Ul=void 0}return Ul}})}})})}}))))},"pj"),"yt-video-metadata-carousel-view-model",{props:{data:_.rk}});var wnz=_.T("web_action_buttons_update_owner_width")?32:12,Vv=function(){var B=_.z.apply(this,arguments)||this;B.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");B.descriptionCollapsed=!0;B.useFadedScrimDescription=_.T("kevlar_enable_faded_scrim_on_description");B.skinnyMode=!1;B.playlist=!1;B.isDark=document.documentElement.hasAttribute("dark");B.disableVideoOwnerOnTap=_.T("swatchie_video_owner_on_tap_ks");B.swatcherooDelayLoad=_.T("swatcheroo_enable_ghost_cards");B.primaryMenuWidth=
0;B.videoId="";B.titleHeadlineXs=_.T("web_watch_typography_title_headline_xs");B.titleHeadlineS=_.T("web_watch_typography_title_headline_s");B.titleHeadlineM=_.T("web_watch_typography_title_headline_m");B.titleHashtagBlackLinkified=_.T("web_title_hashtag_black_linkified");B.titleHashtagGreyLinkified=_.T("web_title_hashtag_grey_linkified");B.actionButtonsUpdateOwnerWidth=_.T("web_action_buttons_update_owner_width");B.shouldForceIconOnly=!1;B.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};B.isFullscreen=!1;B.isTheaterMode=!1;return B};
_.w(Vv,_.z);_.a=Vv.prototype;_.a.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.a.updateOwnerAndDescriptionPosition=function(){_.T("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.oC(this.bottomRowElement,this.ownerElement)):(_.oC(this.bottomRowElement,this.descriptionElement),_.oC(this.topRowElement,this.ownerElement)))};
_.a.titleOnTap=function(B){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||this.handleExpandDescriptionCommands()}};
_.a.videoOwnerOnTap=function(B){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.a.detached=function(){var B=this,c;return _.X(function(x){(c=B.resizeObserver)==null||c.disconnect();_.Kq(x)})};
_.a.maybeAttachResizeObserver=function(){var B=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.eA(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){B.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.a.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var B=this.hostElement.clientWidth,c=Math.max(this.largerItemWrap?400:350,B/2-wnz);if(_.T("web_action_buttons_update_owner_width")){var x;c=(((x=document.getElementById("owner"))==null?void 0:x.clientWidth)||0)+wnz}this.actionsOnSeparateLine=this.primaryMenuWidth>B-c?!0:!1}};
_.a.stripAttributedDescription=function(B){return{content:B.content.replace(/[\r\n]{2,}/g,"\n")}};
_.a.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("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:_.T("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"}}}};
_.a.videoPrimaryInfoRendererChanged=function(){var B;if((B=this.videoPrimaryInfoRenderer)==null?0:B.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.a.videoSecondaryInfoRendererChanged=function(){var B,c;(c=(B=this.descriptionInlineExpander).collapse)==null||c.call(B);this.descriptionExpandClientVe=_.JW(110509);this.descriptionCollapseClientVe=_.JW(110510);B=_.Wf();c=_.Jg();B&&c&&(_.T("combine_ve_grafts")?(_.Xa(_.q_(),this.descriptionExpandClientVe,c),_.Xa(_.q_(),this.descriptionCollapseClientVe,c)):_.M9(B,c,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.a.structuredDescriptionContentRendererChanged=function(){_.T("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.a.updateTopLevelIconsOnly=function(){var B=this;_.T("top_level_update_killswitch")||this.menu&&_.EE.addLowPriorityJob(function(){B.menu.topLevelIconsOnly=B.skinnyMode},_.Yu("swathceroo_delay_flexible_menu_update",100))};
_.a.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.T("web_action_buttons_minimize_subscribe")};
_.a.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.a.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.a.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.a.onYtTextInlineExpanderExpandedChanged=function(){if(!_.T("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var B,c;(c=(B=this.structuredDescriptionContentRendererElement).resize)==null||c.call(B)}};
_.a.onRenderStamperFinished=function(B){(B==null?void 0:B.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.a.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.a.onYtExpanderLessTapped=function(){var B,c=(B=this.videoSecondaryInfoRenderer)==null?void 0:B.showLessCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.a.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.a.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.a.onDescriptionClick=function(B){if(!_.uv(_.AV(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.T("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.a.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.a.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.a.logCollapseClick=function(){var B=_.Wf();B&&this.descriptionCollapseClientVe&&_.fW(B,this.descriptionCollapseClientVe)};
_.a.logExpandClick=function(){var B=_.Wf();B&&this.descriptionExpandClientVe&&_.fW(B,this.descriptionExpandClientVe)};
_.a.collapseDescription=function(){this.descriptionCollapsed=!0};
_.a.scrollToTopOfContainer=function(){_.gj(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.a.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.a.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.a.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.a.resize=function(){if(this.descriptionInlineExpander){var B,c;(c=(B=this.descriptionInlineExpander).resize)==null||c.call(B)}else _.Ob(new _.mc("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var x;(x=this.menu)==null||x.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.T("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.a.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var B,c,x,P,Y=_.T("web_action_buttons_update_owner_width")?(x=(B=_.Y9(this.menu).querySelector("#button-shape"))==null?void 0:B.clientWidth)!=null?x:0:(P=(c=_.Y9(this.menu).querySelector("#button"))==null?void 0:c.clientWidth)!=null?P:0,g,k;B=((k=(g=_.Y9(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.clientWidth)!=null?k:0)+8+Y;var n,b;Y=(b=(n=_.Y9(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:n.children.length)!=null?b:2;B<=8*Y||(this.primaryMenuWidth=B)}};
_.a.onYtUpdateTitleAction=function(B){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.t(B,s_z).title)};
_.a.onYtUpdateDescriptionAction=function(B){if(B=_.t(B,_.v5Q)){var c,x=!((c=this.videoSecondaryInfoRenderer)==null||!c.attributedDescription);B.isEmpty||!B.description&&!B.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):B.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",B.attributedDescription):B.description&&(x?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.OL(B.description)):this.set("videoSecondaryInfoRenderer.description",B.description))}};
_.a.onYtDarkModeToggledAction=function(B){this.isDark=B};
_.a.registerPanel=function(){if(!_.T("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var B=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode;B=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||B;var c=_.cp().resolve(_.TA);c&&!B&&c.registerPanel("engagement-panel-structured-description",this)}};
_.a.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.a.showPanel=function(B){this.expandDescription();var c=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;c.resize();var x,P=B==null?void 0:(x=B.sectionListEngagementPanelExtras)==null?void 0:x.scrollToItemSectionIdentifier;P?_.EE.addJob(function(){c==null||c.scrollToSection(P)},8):this.scrollToTopOfContainer()};
_.a.isVisible=function(){return!this.descriptionCollapsed};
_.a.getReloadContinuation=function(){};
_.a.hidePanel=function(){};
_.a.updatePanel=function(){};
_.AJ.Object.defineProperties(Vv.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.structuredDescriptionContentRenderer)!=null&&B.items){var c;B=_.p((c=this.structuredDescriptionContentRenderer)==null?void 0:c.items);for(c=B.next();!c.done;c=B.next())if(c=_.t(c.value,_.Ftd))return c}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoPrimaryInfoRenderer)==null?0:B.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!!((B=this.videoSecondaryInfoRenderer)==null?0:(c=B.owner)==null?0:(x=c.videoOwnerRenderer)==null?0:x.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.T("swatchie_sd_new_line_strip_ks")){var B,c;if((B=this.videoSecondaryInfoRenderer)==null?0:(c=B.attributedDescription)==null?0:c.content){var x,P;return(P=this.stripAttributedDescription((x=this.videoSecondaryInfoRenderer)==null?void 0:x.attributedDescription))!=null?P:{runs:[]}}}var Y,g,k,n;return(n=(k=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.description)!=null?k:(g=this.videoSecondaryInfoRenderer)==null?
void 0:g.attributedDescription)!=null?n:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.videoSecondaryInfoRenderer)==null?void 0:B.headerRuns)!=null?c:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.commentsEntryPointHeaderRenderer)==null||!B.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoMetadataCarousel)==null||!B.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Yu("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Yu("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var B,c,x=Object.assign({},(B=this.videoSecondaryInfoRenderer)==null?void 0:(c=B.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(x&&x.rows&&x.collapsedItemCount!==void 0&&!(x.rows.length<=x.collapsedItemCount))return x.rows=x.rows.slice(x.collapsedItemCount),x.collapsedItemCount=0,x}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var B,c,x=Object.assign({},(B=this.videoSecondaryInfoRenderer)==null?void 0:(c=B.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(x&&x.rows&&x.collapsedItemCount!==void 0)return x.rows=x.rows.slice(0,x.collapsedItemCount),x.collapsedItemCount=x.rows.length,x}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!((B=this.structuredDescriptionContentRenderer)==null?0:(c=B.items)==null?0:c.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var B;return(B=this.videoSecondaryInfoRenderer)==null?void 0:B.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.videoSecondaryInfoRenderer)==null?0:(c=B.owner)==null?0:(x=c.videoOwnerRenderer)==null?0:x.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return!!((B=this.videoPrimaryInfoRenderer)==null?0:(c=B.videoActions)==null?0:(x=c.menuRenderer)==null?0:(P=x.flexibleItems)==null?0:P.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.iA(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.iA(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var B=this;if(_.T("web_title_hashtag_grey_delinkified")){var c,x=_.wW.unsafeClone((c=this.videoPrimaryInfoRenderer)==null?void 0:c.title);(c=x==null?void 0:x.runs)&&c.forEach(function(P){if(P==null?0:P.navigationEndpoint)P.textColor=4284506208,B.isDark&&(P.textColor=4289374890)});
return x}return(x=this.videoPrimaryInfoRenderer)==null?void 0:x.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.T("web_title_hashtag_black_delinkified")||_.T("web_title_hashtag_grey_delinkified")}}});
Vv.prototype.resetDescriptionState=Vv.prototype.resetDescriptionState;Vv.prototype.registerPanel=Vv.prototype.registerPanel;Vv.prototype.onYtExpanderLessTapped=Vv.prototype.onYtExpanderLessTapped;Vv.prototype.onYtExpanderMoreTapped=Vv.prototype.onYtExpanderMoreTapped;Vv.prototype.onRenderStamperFinished=Vv.prototype.onRenderStamperFinished;Vv.prototype.onYtTextInlineExpanderExpandedChanged=Vv.prototype.onYtTextInlineExpanderExpandedChanged;Vv.prototype.onYtTextInlineExpanderCollapseClicked=Vv.prototype.onYtTextInlineExpanderCollapseClicked;
Vv.prototype.onYtTextInlineExpanderExpandClicked=Vv.prototype.onYtTextInlineExpanderExpandClicked;Vv.prototype.moveActionsElement=Vv.prototype.moveActionsElement;Vv.prototype.updateShouldForceIconOnly=Vv.prototype.updateShouldForceIconOnly;Vv.prototype.updateTopLevelIconsOnly=Vv.prototype.updateTopLevelIconsOnly;Vv.prototype.structuredDescriptionContentRendererChanged=Vv.prototype.structuredDescriptionContentRendererChanged;Vv.prototype.videoSecondaryInfoRendererChanged=Vv.prototype.videoSecondaryInfoRendererChanged;
Vv.prototype.videoPrimaryInfoRendererChanged=Vv.prototype.videoPrimaryInfoRendererChanged;Vv.prototype.maybeUpdateActionsOnSeparateLine=Vv.prototype.maybeUpdateActionsOnSeparateLine;Vv.prototype.updateOwnerAndDescriptionPosition=Vv.prototype.updateOwnerAndDescriptionPosition;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.L([_.jr("#above-the-fold"),_.H("design:type",HTMLElement)],Vv.prototype,"aboveTheFoldContainer",void 0);_.L([_.jr("#menu ytd-menu-renderer"),_.H("design:type",Object)],Vv.prototype,"menu",void 0);
_.L([_.jr("#description-inline-expander"),_.H("design:type",Object)],Vv.prototype,"descriptionInlineExpander",void 0);_.L([_.jr("#faded-structured-description"),_.H("design:type",Object)],Vv.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.L([_.jr("#structured-description"),_.H("design:type",Object)],Vv.prototype,"structuredDescriptionContentRendererElement",void 0);_.L([_.jr("#title"),_.H("design:type",HTMLElement)],Vv.prototype,"titleElement",void 0);
_.L([_.jr("#description"),_.H("design:type",HTMLElement)],Vv.prototype,"descriptionElement",void 0);_.L([_.jr("#description-interaction"),_.H("design:type",Object)],Vv.prototype,"descriptionInteraction",void 0);_.L([_.jr("#owner"),_.H("design:type",HTMLElement)],Vv.prototype,"ownerElement",void 0);_.L([_.jr("#top-row"),_.H("design:type",HTMLElement)],Vv.prototype,"topRowElement",void 0);_.L([_.jr("#bottom-row"),_.H("design:type",HTMLElement)],Vv.prototype,"bottomRowElement",void 0);
_.L([_.jr("#actions"),_.H("design:type",HTMLElement)],Vv.prototype,"actionsElement",void 0);_.L([_.jr("#bottom-actions"),_.H("design:type",HTMLElement)],Vv.prototype,"bottomActionsElement",void 0);_.L([_.jr("#ytd-watch-info-text"),_.H("design:type",Object)],Vv.prototype,"watchInfoTextElement",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"videoPrimaryInfoRenderer",void 0);
_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"videoMetadataCarousel",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"videoSummary",void 0);
_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"merchShelf",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"infoPanelBelowMetadata",void 0);_.L([_.Q("structuredDescriptionContentRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"productShelf",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"metadataBadgesInDescription",void 0);
_.L([_.Q("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"shouldHideBadges",null);_.L([_.Q("productShelf","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"shouldShowProductShelf",null);_.L([_.F(),_.H("design:type",Boolean)],Vv.prototype,"isWatchFlexy",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"descriptionCollapsed",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Vv.prototype,"useFadedScrimDescription",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"skinnyMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"largerItemWrap",null);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"playlist",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"clarifyBox",void 0);
_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"playerAds",void 0);_.L([_.F(),_.H("design:type",Boolean)],Vv.prototype,"isDark",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Vv.prototype,"actionsOnSeparateLine",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"disableVideoOwnerOnTap",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"swatcherooDelayLoad",void 0);
_.L([_.F(),_.H("design:type",Boolean)],Vv.prototype,"suppressTopLevelMetadataRows",void 0);_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"primaryMenuWidth",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"videoId",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"titleHeadlineXs",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"titleHeadlineS",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"titleHeadlineM",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"titleHashtagBlackLinkified",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"titleHashtagGreyLinkified",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.L([_.F(),_.H("design:type",Object)],Vv.prototype,"shouldForceIconOnly",void 0);_.L([_.CF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"updateOwnerAndDescriptionPosition",null);_.L([_.CF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.L([_.Q("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"descriptionText",null);_.L([_.Q("videoSecondaryInfoRenderer.headerRuns"),_.H("design:type",Array),_.H("design:paramtypes",[])],Vv.prototype,"headerRuns",null);_.L([_.F({value:!1}),_.Q("commentsEntryPointHeaderRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"hasTeaser",null);
_.L([_.F({value:!1,reflectToAttribute:!0}),_.Q("videoMetadataCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"hasTeaserCarousel",null);_.L([_.F({value:3}),_.Q("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"descriptionMaxLines",null);_.L([_.Q("videoSecondaryInfoRenderer.metadataRowContainer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"collapsibleMetadataRows",null);
_.L([_.Q("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"alwaysVisibleMetadataRows",null);_.L([_.Q("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"hasInlineStructuredDescription",null);
_.L([_.Q("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"showInlineStructuredDescription",null);_.L([_.Q("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"descriptionExpandCommand",null);
_.L([_.Q("videoSecondaryInfoRenderer.owner"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"videoOwnerCommand",null);_.L([_.F({reflectToAttribute:!0}),_.Q("videoPrimaryInfoRenderer.videoActions"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"flexMenuEnabled",null);_.L([_.F({selector:_.zj,reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"isFullscreen",void 0);
_.L([_.F({selector:_.vv,reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"isTheaterMode",void 0);_.L([_.Q("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"showAttributedStringDescription",null);_.L([_.Q("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"showFormattedStringDescription",null);
_.L([_.Q("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vv.prototype,"showFadedStructuredDescription",null);_.L([_.CF("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"videoPrimaryInfoRendererChanged",null);_.L([_.Q("videoPrimaryInfoRenderer.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"videoTitle",null);
_.L([_.Q("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vv.prototype,"noEndpoints",null);_.L([_.CF("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"videoSecondaryInfoRendererChanged",null);
_.L([_.bF("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"structuredDescriptionContentRendererChanged",null);_.L([_.bF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"updateTopLevelIconsOnly",null);
_.L([_.bF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"updateShouldForceIconOnly",null);_.L([_.bF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"moveActionsElement",null);_.L([_.nF("yt-text-inline-expander-expand-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.L([_.nF("yt-text-inline-expander-collapse-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.L([_.nF("yt-text-inline-expander-expanded-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Vv.prototype,"onRenderStamperFinished",null);_.L([_.nF("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"onYtExpanderMoreTapped",null);_.L([_.nF("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"onYtExpanderLessTapped",null);
_.L([_.bF("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"registerPanel",null);_.L([_.bF("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"resetDescriptionState",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Vv);
_.G(Vv,"ytd-watch-metadata",function(){if(Uxr!==void 0)return Uxr;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Uxr=B},{mode:2});_.onl=function(B){_.tG.call(this);this.JSC$20360_watchApi=B;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Nh8(this);INo(this);JYB(this);W2F(this);lNz(this);Enz(this);OKA(this)};
_.w(_.onl,_.tG);var JYB=function(B){var c=function(){_.T("kevlar_is_pupi_enabled")||t1(B)};
B.JSC$20360_watchApi.getRoot().addEventListener("yt-player-updated",c);B.addOnDisposeCallback(function(){B.JSC$20360_watchApi.getRoot().removeEventListener("yt-player-updated",c)})},lNz=function(B){if(_.T("kevlar_endscreen_auto_theater_mode")){var c=B.JSC$20360_watchApi.subscribeToActiveChanged(function(){QV6(B)},!1);
B.addOnDisposeCallback(c)}},Nh8=function(B){var c,x,P,Y,g;
_.X(function(k){if(k.nextAddress==1)return _.K(k,B.JSC$20360_watchApi.playerApi,2);c=k.yieldResult;x=function(n){n=!!n;ww(B)&&(n=n?2:1,_.eP.getInstance().setState(n,!0,!1))};
P=function(n){n&&_.QKz(_.uG().getState())&&(_.gj(B.JSC$20360_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),B.temporaryTheaterMode=!0)};
Y=function(n){_.T("kevlar_player_update_autonav_on_new_data")&&n.type==="newdata"&&(_.T("kevlar_is_pupi_enabled")||t1(B))};
g=function(n){B.onPlayerStateChange(n)};
_.T("kevlar_endscreen_auto_theater_mode")&&c.addEventListener("onAutonavCancelled",P);c.addEventListener("onAutonavChangeRequest",x);c.addEventListener("onVideoDataChange",Y);c.addEventListener("onStateChange",g);B.addOnDisposeCallback(function(){c.removeEventListener("onAutonavChangeRequest",x);c.removeEventListener("onVideoDataChange",Y);c.removeEventListener("onStateChange",g);_.T("kevlar_endscreen_auto_theater_mode")&&c.removeEventListener("onAutonavCancelled",P)});
_.Kq(k)})},INo=function(B){B.JSC$20360_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){B.autonavCancelledBySignal=!0;
_.T("kevlar_is_pupi_enabled")||t1(B)});
B.JSC$20360_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(c,x,P){x&&t1(B,P)});
B.JSC$20360_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){ww(B)&&_.eP.getInstance().setState(2,!0,!0)});
B.JSC$20360_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){ww(B)&&_.eP.getInstance().setState(1,!0,!0)});
B.addOnDisposeCallback(function(){B.JSC$20360_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");B.JSC$20360_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");B.JSC$20360_watchApi.unregisterActionHandler("yt-enable-autoplay-command");B.JSC$20360_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},W2F=function(B){var c=B.JSC$20360_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){OKA(B)}),x=B.JSC$20360_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Enz(B)});
B.addOnDisposeCallback(function(){B.JSC$20360_watchApi.unsubscribeByKey(c);B.JSC$20360_watchApi.unsubscribeByKey(x)})},OKA=function(B){B.autonavCancelledBySignal=!1;
_.T("kevlar_is_pupi_enabled")||t1(B)},Enz=function(B){var c=B.JSC$20360_watchApi.getWatchNextResponse(),x,P;
var Y=(c=(P=_.t(c==null?void 0:(Y=c.playerOverlays)==null?void 0:(x=Y.playerOverlayRenderer)==null?void 0:x.autonavToggle,_.SPI))==null?void 0:P.enabled)?2:1;_.T("kevlar_is_pupi_enabled")?_.eP.getInstance().setState(Y,!1,!1):t1(B);_.T("web_persist_server_autonav_state_on_client")&&typeof c==="boolean"&&_.KtX(Y===2)},ww=function(B){if(B.autonavCancelledBySignal)return!1;
var c,x,P,Y;return!!((c=B.JSC$20360_watchApi.getWatchNextResponse())==null?0:(x=c.contents)==null?0:(P=x.twoColumnWatchNextResults)==null?0:(Y=P.autoplay)==null?0:Y.autoplay)};
_.onl.prototype.onPlayerStateChange=function(B){if(B===0){B=!_.eP.getInstance().isAutoplaySetExplicitly();var c=this.JSC$20360_watchApi.getWatchNextResponse(),x,P,Y,g;c=_.t(c==null?void 0:(x=c.contents)==null?void 0:(P=x.twoColumnWatchNextResults)==null?void 0:(Y=P.autoplay)==null?void 0:(g=Y.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.p6I);ww(this)&&B&&c&&_.bA.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:c},popupType:"DIALOG"}})}else QV6(this)};
var QV6=function(B){B.temporaryTheaterMode&&(B.temporaryTheaterMode=!1,_.gj(B.JSC$20360_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},t1=function(B,c){c=c===void 0?!1:c;
var x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20360_watchApi.playerApi,2);x=P.yieldResult;ww(B)?x.setAutonavState(_.eP.getInstance().getState(),c):x.setAutonavState(1,c);_.Kq(P)})};var F2s={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"};_.zgz=function(B){_.tG.call(this);var c=this;this.JSC$20365_watchApi=B;var x=this.JSC$20365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vnS(c)});
this.addOnDisposeCallback(function(){c.JSC$20365_watchApi.unsubscribeByKey(x)});
vnS(this)};
_.w(_.zgz,_.tG);var vnS=function(B){var c=B.JSC$20365_watchApi.getPlayerResponse(),x=B.JSC$20365_watchApi.getWatchNextResponse();if(!_.BFx(c==null?void 0:c.playabilityStatus,x==null?void 0:x.playerOverlays)){var P;var Y=c==null?void 0:(P=c.playabilityStatus)==null?void 0:P.errorScreen}B.JSC$20365_watchApi.provideRenderingData("ERROR_SCREEN",Y)};var Suz=_.rM(function(B){var c=B.data;var x=_.FB(_.zj);B={};return _.U("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.qe(function(){var P=c().onTap;P&&_.cp().resolve(_.xu).resolveCommand(P)}),
role:"button"},_.U("h2",{class:_.Kw("ytPlayerOverlayVideoDetailsRendererTitle",(B.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!x()},B))},_.U(_.RF,{text:function(){return c().title}})),_.U("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.U(_.RF,{text:function(){return c().subtitle}})))},"qj");var N$={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},yY8=_.rM(function(B){var c=B.data;var x=_.FB(_.zj),P=_.T("web_watch_action_bar_resize_buttons"),Y=_.T("delhi_modern_web_player_icons")&&!_.T("enable_web_delhi_icons"),g=function(){return P&&!x()?{size:"M"}:void 0};
B={};return _.U("yt-player-quick-action-buttons",{class:_.Kw("ytPlayerQuickActionButtonsHost",(B.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!x()},B))},_.U(_.mV,{each:function(){if(Y){var k=c();
k=JSON.parse(JSON.stringify(k));for(var n=_.p(k),b=n.next();!b.done;b=n.next()){var d=b.value,q=void 0;b=_.t((q=_.t(d,_.lR))==null?void 0:q.toggleButtonViewModel,_.V7);var C=void 0;q=_.t((C=_.t(d,_.Ey))==null?void 0:C.toggleButtonViewModel,_.V7);C=_.t(d,_.Tj);d=_.t(d,_.V7);if(b)q=_.t(b.defaultButtonViewModel,_.Tj),b=_.t(b.toggledButtonViewModel,_.Tj),q&&q.iconName&&(q.iconName=N$[q.iconName]),b&&b.iconName&&(b.iconName=N$[b.iconName]);else if(q)b=_.t(q.defaultButtonViewModel,_.Tj),q=_.t(q.toggledButtonViewModel,
_.Tj),b&&b.iconName&&(b.iconName=N$[b.iconName]),q&&q.iconName&&(q.iconName=N$[q.iconName]);else if(C)C.iconName&&(C.iconName=N$[C.iconName]);else if(d){b=_.t(d.defaultButtonViewModel,_.Tj);q=_.t(d.toggledButtonViewModel,_.Tj);d=void 0;if((d=b)==null?0:d.iconName)b.iconName=N$[b.iconName];b=void 0;if((b=q)==null?0:b.iconName)q.iconName=N$[q.iconName]}}}else k=c();return k}},function(k){return _.U(_.IF,{data:function(){return k}},{buttonViewModel:function(n){return _.U(_.Q7,{data:n.data,
buttonOverrides:g})},
likeButtonViewModel:function(n){return _.U(_.WC,{data:n.data,buttonShapeOverrideables:g,disableIconAnimation:!0})},
dislikeButtonViewModel:function(n){return _.U(_.J7,{data:n.data,buttonShapeOverrideables:g})}})}))},"rj");_.MaF=function(B){_.tG.call(this);var c=this;this.JSC$20370_watchApi=B;B=_.p(_.$D({},void 0,"ufFdVc"));this.quickActionsViewModel=B.next().value;this.setQuickActionsViewModel=B.next().value;B=_.p(_.$D({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=B.next().value;this.setPlayerOverlayVideoDetailsRenderer=B.next().value;var x=this.JSC$20370_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GyA(c)});
this.addOnDisposeCallback(function(){c.JSC$20370_watchApi.unsubscribeByKey(x)});
GyA(this)};
_.w(_.MaF,_.tG);
var GyA=function(B){var c,x,P,Y,g,k,n,b,d,q,C,h,V,N;_.X(function(l){if(l.nextAddress==1)return _.K(l,B.JSC$20370_watchApi.playerApi,2);c=l.yieldResult;x=B.JSC$20370_watchApi.getWatchNextResponse();g=(P=x)==null?void 0:(Y=P.playerOverlays)==null?void 0:Y.playerOverlayRenderer;n=_.t((k=g)==null?void 0:k.fullscreenQuickActionsBar,_.LE9);(d=(b=B).setQuickActionsViewModel)==null||d.call(b,n||{});n&&L2S(B,c);h=(q=g)==null?void 0:(C=q.videoDetails)==null?void 0:C.playerOverlayVideoDetailsRenderer;(N=(V=
B).setPlayerOverlayVideoDetailsRenderer)==null||N.call(V,h||{});h&&ZKs(B,c);_.Kq(l)})},L2S=function(B,c){if(!B.quickActionButtonsContainer){B.quickActionButtonsContainer=document.createElement("div");
c.setFullscreenQuickActions(B.quickActionButtonsContainer);var x=function(){return B.quickActionsViewModel().quickActionButtons||[]},P=_.It(B.quickActionButtonsContainer,function(){return _.U(yY8,{data:x})});
B.addOnDisposeCallback(function(){c.setFullscreenQuickActions(void 0);P()})}},ZKs=function(B,c){if(!B.playerOverlayVideoDetailsRendererContainer){B.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
c.setPlayerOverlayVideoDetailsRenderer(B.playerOverlayVideoDetailsRendererContainer);var x=_.It(B.playerOverlayVideoDetailsRendererContainer,function(){return _.U(Suz,{data:B.playerOverlayVideoDetailsRenderer})});
B.addOnDisposeCallback(function(){c.setPlayerOverlayVideoDetailsRenderer(void 0);x()})}};_.I6=function(B){_.tG.call(this);var c=this;this.JSC$20375_watchApi=B;this.JSC$20375_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;B=_.C0(_.uG(),_.zj,function(x){c.onFullscreenChanged(x)});
this.addOnDisposeCallback(B);B=_.C0(_.uG(),_.wi,function(x){c.onWatchScroll(x)});
this.addOnDisposeCallback(B);_.T("kevlar_watch_while_v2")&&(B=_.C0(_.uG(),_.Ev,function(x){HKc(c,x)}),this.addOnDisposeCallback(B));
fNz(this);iKi(this);AYz();this.onWatchScroll(_.wi(_.uG().getState()));_.zu("START_IN_FULL_WINDOW_MODE")&&this.JSC$20375_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.w(_.I6,_.tG);var fNz=function(B){B.JSC$20375_watchApi.registerActionHandler("yt-fullscreen-change-action",function(c){var x=B.JSC$20375_watchApi.isActive();c&&!x||_.uG().dispatch(_.YN({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!c}}))});
B.addOnDisposeCallback(function(){B.JSC$20375_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},iKi=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20375_watchApi.playerApi,2);c=P.yieldResult;x=function(){B.onFullerscreenEduClicked()};
c.addEventListener("onFullerscreenEduClicked",x);B.addOnDisposeCallback(function(){c.removeEventListener("onFullerscreenEduClicked",x)});
_.Kq(P)})};
_.I6.prototype.onFullscreenChanged=function(B){var c=this,x;return _.X(function(P){if(P.nextAddress==1)return c.isFullscreen=!!_.cr(),_.K(P,c.JSC$20375_watchApi.playerApi,2);x=P.yieldResult;c.JSC$20375_miniplayerActive||x.setFauxFullscreen(c.isFullscreen);if(B&&(c.JSC$20375_watchApi.focusOnPlayer(),!c.fullerscreenEduButtonShownThisPlayback)){c.fullerscreenEduButtonShownThisPlayback=!0;var Y=_.$g("yt-fullerscreen-edu-button-shown-count")||0;_.Xj("yt-fullerscreen-edu-button-shown-count",Y+1,31536E3);
c.updateFullerscreenEduButtonSubtleModeState()}_.Kq(P)})};
var HKc=function(B,c){var x;_.X(function(P){if(P.nextAddress==1)return B.JSC$20375_miniplayerActive=c,_.K(P,B.JSC$20375_watchApi.playerApi,2);x=P.yieldResult;x.setFauxFullscreen(!B.JSC$20375_miniplayerActive&&B.isFullscreen);_.Kq(P)})};
_.I6.prototype.onWatchScroll=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.T("external_fullscreen_with_edu")?_.K(Y,c.JSC$20375_watchApi.playerApi,2):Y.return();x=Y.yieldResult;P=B<=0;c.shouldShowFullerscreenEdu!==P&&(c.shouldShowFullerscreenEdu=P,x.updateFullerscreenEduButtonVisibility(!c.shouldShowFullerscreenEdu));_.Kq(Y)})};
_.I6.prototype.onFullerscreenEduClicked=function(){this.JSC$20375_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var B=_.$g("yt-fullerscreen-edu-button-click-count")||0;_.Xj("yt-fullerscreen-edu-button-click-count",B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.I6.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var B=this,c,x,P,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return c=_.$g("yt-fullerscreen-edu-button-click-count")||0,x=_.$g("yt-fullerscreen-edu-button-shown-count")||0,P=_.Yu("external_fullscreen_button_click_threshold"),Y=_.Yu("external_fullscreen_button_shown_threshold"),g=c>=P||x>=Y,_.K(n,B.JSC$20375_watchApi.playerApi,2);k=n.yieldResult;k.updateFullerscreenEduButtonSubtleModeState(g);_.Kq(n)})};
_.I6.prototype.disposeInternal=function(){_.tG.prototype.disposeInternal.call(this);var B=_.cr();_.T("kevlar_exit_fullscreen_leaving_watch")&&B&&_.xC(B)};
var AYz=function(){if(_.T("web_watch_add_viewport_meta_tag")){var B=document.querySelector("meta[name=viewport]"),c=document.head;c&&!B&&(B=document.createElement("meta"),B.name="viewport",B.content="width=device-width, initial-scale=1.0, viewport-fit=cover",c.appendChild(B))}};_.J1=function(B){_.tG.call(this);var c=this;this.JSC$20379_watchApi=B;this.jobId=0;this.pendingRequestId=void 0;var x=this.JSC$20379_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){u3z(c)});
this.addOnDisposeCallback(function(){c.JSC$20379_watchApi.unsubscribeByKey(x)});
u3z(this)};
_.w(_.J1,_.tG);var Dxo=function(B){_.EE.cancelJob(B.jobId);B.pendingRequestId=void 0},u3z=function(B){Dxo(B);
var c=gAN(B.JSC$20379_watchApi.getWatchNextResponse());if(c){var x=250,P,Y=(P=_.t(c,_.Hdt))==null?void 0:P.initialDelayMs;_.T("web_watch_updated_metadata_server_initial_delay")&&Y&&(x=Y);B.jobId=_.EE.addLowPriorityJob(function(){return B.fetchUpdatedMetadata(c)},x)}};
_.J1.prototype.fetchUpdatedMetadata=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S;return _.X(function(M){switch(M.nextAddress){case 1:c&&(P={continuation:c});if(!_.T("web_get_updated_metadata_fantasy_panel_continuation_params")){M.jumpTo(2);break}Y=_.cp().resolve(_.TA);g="PAsports_fantasy";return _.K(M,Y.isVisible(g,!0),3);case 3:M.yieldResult&&(d=(n=(k=Y).getUpdatePanelContinuationData)==null?void 0:(b=n.call(k,g))==null?void 0:b.updatePanelContinuationRequest)&&(P||(P={}),P.clientParams=
{panelContinuationParams:{panelContinuation:d}});case 2:q=_.cp().resolve(_.ou);if(!q)return _.lb(Error("km")),M.return();C={};x.pendingRequestId=C;return _.K(M,_.Zn(q,B,P),4);case 4:h=M.yieldResult;if(C!==x.pendingRequestId)return M.return();l=(V=h)==null?void 0:(N=V.continuation)==null?void 0:N.timedContinuationData;((E=l)==null?0:E.continuation)&&((S=l)==null?0:S.timeoutMs)&&(x.jobId=_.EE.addLowPriorityJob(function(){return x.fetchUpdatedMetadata(B,l.continuation)},l.timeoutMs));
_.Kq(M)}})};
_.J1.prototype.disposeInternal=function(){_.tG.prototype.disposeInternal.call(this);Dxo(this)};var rYl=_.rM(function(B){var c=_.qe(function(){var P=B.data().videoId;if(B.active())P=_.B3(P),_.cp().resolve(_.xu).resolveCommand(P);else{var Y=B.playerApi(),g=Y.getAvailableAudioTracks(),k,n,b=(k=B.sourceVideoConfig().audioTracks)==null?void 0:(n=k.find(function(d){return d.isDefaultForSource}))==null?void 0:n.id;
if(g=g.find(function(d){return d.getLanguageInfo().getId()===b}))Y.setAudioTrack(g,!0),Y.setCompositeParam({activeVideoId:P}),B.setActiveSourceId(P)}}),x={};
return _.U("ytw-composite-source-video-overlay",{class:_.Kw("ytwCompositeSourceVideoOverlayHost",(x.ytwCompositeSourceVideoOverlayActive=B.active,x.ytwCompositeSourceVideoOverlayInteracting=B.interacting,x)),style:_.TU({left:function(){var P;return((P=B.data().topLeftCornerX)!=null?P:0)*100+"%"},
top:function(){var P;return((P=B.data().topLeftCornerY)!=null?P:0)*100+"%"},
width:function(){var P;return((P=B.data().width)!=null?P:0)*100+"%"},
height:function(){var P;return((P=B.data().height)!=null?P:0)*100+"%"}}),
"on:click":c},_.U("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"sj");var Rgi=_.rM(function(B){var c=_.p(_.mg(function(){var k,n=(k=B.data().sources)==null?void 0:k.find(function(b){return b.isActive});
if(n)return n.videoId})),x=c.next().value,P=c.next().value;
c=_.p(_.$D(!1,void 0,"WI4BUb"));var Y=c.next().value,g=c.next().value;return _.U("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.qe(function(){g(!0)}),
"on:mouseout":_.qe(function(){g(!1)})},_.U(_.m,{cond:function(){return B.data().sources},
then:function(k){return _.U(_.mV,{each:k},function(n){return _.U(rYl,{data:n,active:function(){return n.videoId===x()},
setActiveSourceId:P,interacting:Y,playerApi:B.playerApi,sourceVideoConfig:function(){return sQS(B.compositeVideoConfig(),n.videoId)}})})}}))},"tj");_.cLN=function(B){_.tG.call(this);this.JSC$20395_watchApi=B;B=_.p(_.$D({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=B.next().value;this.setCompositeVideoOverlayRenderer=B.next().value;B=_.p(_.$D({},void 0,"U5hcq"));this.compositeVideoConfig=B.next().value;this.setCompositeVideoConfig=B.next().value;eg8(this);BS8(this)};
_.w(_.cLN,_.tG);var eg8=function(B){var c=B.JSC$20395_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){BS8(B)});
B.addOnDisposeCallback(function(){B.JSC$20395_watchApi.unsubscribeByKey(c)})},x1i=function(B){var c;
return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20395_watchApi.playerApi,2);c=x.yieldResult;c.setCompositeVideoOverlayRendererComponent(B.container);_.Kq(x)})},P0A=function(B){var c;
return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20395_watchApi.playerApi,2);c=x.yieldResult;c.setCompositeVideoOverlayRendererComponent(void 0);_.Kq(x)})},YSB=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20395_watchApi.playerApi,2);c=P.yieldResult;B.container=document.createElement("div");x=_.It(B.container,function(){return _.U(Rgi,{data:B.compositeVideoOverlayRenderer,compositeVideoConfig:B.compositeVideoConfig,playerApi:c})});
B.addOnDisposeCallback(x);_.Kq(P)})},BS8=function(B){var c,x,P,Y,g,k,n,b;
_.X(function(d){return d.nextAddress==1?(c=B.JSC$20395_watchApi.getPlayerResponse(),g=_.t((x=c)==null?void 0:(P=x.overlay)==null?void 0:(Y=P.playerControlsOverlayRenderer)==null?void 0:Y.compositeVideoOverlay,rzF),b=(k=c)==null?void 0:(n=k.playerConfig)==null?void 0:n.compositeVideoConfig,g&&B.setCompositeVideoOverlayRenderer(g),b&&B.setCompositeVideoConfig(b),g&&b?B.container?d.jumpTo(6):_.K(d,YSB(B),6):aHi(B)?_.K(d,P0A(B),0):d.jumpTo(0)):aHi(B)?d.jumpTo(0):_.K(d,x1i(B),0)})},aHi=function(B){var c;
return!((c=B.container)==null||!c.parentElement)};
_.cLN.prototype.disposeInternal=function(){aHi(this)&&P0A(this);_.tG.prototype.disposeInternal.call(this)};_.X9i=function(B){_.tG.call(this);var c=this;this.JSC$20401_watchApi=B;var x=this.JSC$20401_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var P=c.JSC$20401_watchApi.getPlayerResponse();if(P){var Y,g;if(P=_.t((Y=P.endscreen)==null?void 0:(g=Y.endscreenRenderer)==null?void 0:g.hideButton,_.V7)){var k;(k=c.setEndscreenHideButton)==null||k.call(c,P);gQF(c)}}});
this.addOnDisposeCallback(function(){c.JSC$20401_watchApi.unsubscribeByKey(x)});
B=_.p(_.$D({},void 0,"PPHRb"));this.endscreenHideButton=B.next().value;this.setEndscreenHideButton=B.next().value;sPz(this);p9z(this);k9c(this)};
_.w(_.X9i,_.tG);var gQF=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return B.creatorEndscreenHideButtonContainer?P.return():_.K(P,B.JSC$20401_watchApi.playerApi,2);c=P.yieldResult;B.creatorEndscreenHideButtonContainer=document.createElement("div");_.iW(B.creatorEndscreenHideButtonContainer,!1);c.setCreatorEndscreenHideButton(B.creatorEndscreenHideButtonContainer);x=_.It(B.creatorEndscreenHideButtonContainer,function(){return _.U(_.Jb,{data:B.endscreenHideButton,useOutlinedIcon:!0})});
B.addOnDisposeCallback(function(){x();var Y;(Y=c)==null||Y.setCreatorEndscreenHideButton(void 0)});
_.Kq(P)})},sPz=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20401_watchApi.playerApi,2);c=P.yieldResult;x=function(){B.creatorEndscreenHideButtonContainer&&_.iW(B.creatorEndscreenHideButtonContainer,!0)};
c.addEventListener("endscreenelementshown",x);B.addOnDisposeCallback(function(){var Y;(Y=c)==null||Y.removeEventListener("endscreenelementshown",x)});
_.Kq(P)})},p9z=function(B){var c=function(){B.creatorEndscreenHideButtonContainer&&_.iW(B.creatorEndscreenHideButtonContainer,!1)},x=B.JSC$20401_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",c),P=B.JSC$20401_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",c);
B.addOnDisposeCallback(function(){B.JSC$20401_watchApi.unsubscribeByKey(x);B.JSC$20401_watchApi.unsubscribeByKey(P)})},k9c=function(B){B.JSC$20401_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(c){var x=_.t(c,HXz);
B.JSC$20401_watchApi.playerApi.then(function(P){P==null||P.setCreatorEndscreenVisibility(!!x.hide)})});
B.addOnDisposeCallback(function(){B.JSC$20401_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.nQF=function(B){_.tG.call(this);this.JSC$20407_watchApi=B;$1y(this)};
_.w(_.nQF,_.tG);var $1y=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20407_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){_.uG().dispatch(_.YN({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Y}}))};
c.addEventListener("onRetroModeChanged",x);B.addOnDisposeCallback(function(){c.removeEventListener("onRetroModeChanged",x)});
_.Kq(P)})};var lx=0,WY=0,ET=0;var bJr;bJr=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Wm=function(B){_.tG.call(this);this.JSC$20420_watchApi=B;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;K66(this)};
_.w(_.Wm,_.tG);
var K66=function(B){var c,x,P;_.X(function(Y){if(Y.nextAddress==1)return _.K(Y,B.JSC$20420_watchApi.playerApi,2);c=Y.yieldResult;if(B.isDisposed())return Y.return();B.sessionStorage=_.vFS("yt-sleep-timer");B.sessionStorage||_.Ob(new _.mc("SessionStorage for Sleep Timer is undefined."));((x=B.sessionStorage)==null?void 0:x.get("yt-sleep-timer"))==="true"&&(dqA(),(P=B.sessionStorage)==null||P.remove("yt-sleep-timer"),c.syncVolume());jPy(B,c);U1N(B,c);d1z(B,c);_.Kq(Y)})},jPy=function(B,c){var x=function(d){B.onSleepTimerSettingsChanged(d,
c)},P=function(d){B.onPlayerStateChange(d,c)},Y=function(){B.onLoopChange(c)},g=function(){B.onCloseMiniplayer(c)},k=function(){bXA(c,(0,_.BA)(),q7B(c),B.selectedOption==="End of video",c.getPlayerState()!==1)},n=function(){B.onSeekComplete(c)},b=function(){_.EE.cancelJob(WY);
var d=c.getCurrentTime()>=c.getDuration(),q=B.selectedOption==="End of video"||B.selectedOption==="End of playlist"&&!XQz(B.playlistId);d&&q&&qSF(B,c)};
c.addEventListener("onSleepTimerSettingsChanged",x);c.addEventListener("onLoopChange",Y);c.addEventListener("onLoopRangeChange",Y);c.addEventListener("onStateChange",P);c.addEventListener("onCloseMiniplayer",g);c.addEventListener("onSleepTimerFeatureAvailable",k);c.addEventListener("SEEK_COMPLETE",n);c.addEventListener("onAdStart",b);B.addOnDisposeCallback(function(){c.removeEventListener("onSleepTimerSettingsChanged",x);c.removeEventListener("onLoopChange",Y);c.removeEventListener("onLoopRangeChange",
Y);c.removeEventListener("onStateChange",P);c.removeEventListener("onCloseMiniplayer",g);c.removeEventListener("onSleepTimerFeatureAvailable",k);c.removeEventListener("SEEK_COMPLETE",n);c.removeEventListener("onAdStart",b)})},U1N=function(B,c){var x=B.JSC$20420_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var P=c.getVideoData().video_id,Y,g=(Y=pQr(B.JSC$20420_watchApi))==null?void 0:Y.playlistId;
B.pauseAutonavPlayback&&(c.pauseVideo(),c.syncVolume(),B.pauseAutonavPlayback=!1);if(B.selectedOption==="End of video"&&P!==B.videoId)lf(B,c);else{if(B.selectedOption==="End of playlist"){Y=XQz(B.playlistId);if(g!==B.playlistId){lf(B,c);break a}Y?Y&&C0z(B,c):hxF(B,c)}B.videoId=P;B.playlistId=g}}});
B.addOnDisposeCallback(function(){B.JSC$20420_watchApi.unsubscribeByKey(x)})},d1z=function(B,c){var x=_.cp().resolve(_.GC),P=_.C0(x,_.g5O,function(g){g&&B.selectedOption!=="Off"&&lf(B,c)}),Y=B.JSC$20420_watchApi.subscribeToActiveChanged(function(g){var k,n;
return _.X(function(b){if(b.nextAddress==1)return _.K(b,_.dd().navigationFinishPromise,2);k=!_.BZd();n=_.cp().resolve(_.Ge).isMiniplayerActive();g||!Jp(B.selectedOption)||n||k||lf(B,c);_.Kq(b)})},!1);
x=_.C0(x,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var k=kpN(B.JSC$20420_watchApi);if(k){var n;((n=g[k])==null?void 0:n.state)==="PLAYLIST_LOOP_STATE_ALL"&&Jp(B.selectedOption)&&lf(B,c)}});
B.addOnDisposeCallback(P);B.addOnDisposeCallback(x);B.addOnDisposeCallback(Y)};
_.Wm.prototype.onSleepTimerSettingsChanged=function(B,c){switch(B){case "Off":this.selectedOption!=="Off"&&lf(this,c);break;case "End of video":case "End of playlist":m1i(this,B,c);break;default:m1i(this,B,c,bJr.get(B))}};
_.Wm.prototype.onLoopChange=function(B){(B.getLoopVideo()||B.getLoopRange())&&Jp(this.selectedOption)&&lf(this,B)};
_.Wm.prototype.onCloseMiniplayer=function(B){Jp(this.selectedOption)&&lf(this,B)};
var m1i=function(B,c,x,P){TSF(B,x);B.selectedOption=c;B.videoId=x.getVideoData().video_id;B.playlistId="";var Y;(Y=B.sessionStorage)==null||Y.set("yt-sleep-timer","true");B.adjustmentsCount++;bXA(x,(0,_.BA)(),q7B(x),B.selectedOption==="End of video");if(B.selectedOption==="End of video")hxF(B,x),VtN(B,x);else if(B.selectedOption==="End of playlist"){VtN(B,x);var g,k;B.playlistId=(k=(g=pQr(B.JSC$20420_watchApi))==null?void 0:g.playlistId)!=null?k:"";XQz(B.playlistId)||hxF(B,x)}else P&&(B.presetFadeSchedulerId=
_.C3(_.EE,function(){jQB(x,15E3)},P-15E3),B.presetPauseSchedulerId=_.C3(_.EE,function(){qSF(B,x)},P),KrB(x,(0,_.BA)(),P))},qSF=function(B,c){if(B.JSC$20420_watchApi.isActive()){var x={dismissDialogEndpoint:{}};
var P={commandExecutorCommand:{commands:[x,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};x={buttonViewModel:{title:_.Up("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:x}}};P={buttonViewModel:{title:_.Up("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:P}}};var Y={dialogHeaderViewModel:{headline:{content:_.Up("SLEEP_TIMER_ENDED_TITLE")}}},
g={basicContentViewModel:{paragraphs:[{text:{content:_.Up("SLEEP_TIMER_ENDED_TEXT")}}]}};x={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Y,content:g,footer:{panelFooterViewModel:{primaryButton:x,secondaryButton:P,shouldHideDivider:!0}}}}}}};_.cp().resolve(_.xu).resolveCommand(x,{form:{element:B}})}else dqA();ttF(B,!1);w9r(B,c);c.pauseVideo();_.eP.getInstance().getState()===2&&c.getPlayerState()===5&&(B.pauseAutonavPlayback=!0)},lf=function(B,c){ttF(B,!0);
w9r(B,c);dqA()},w9r=function(B,c){TSF(B,c);
B.selectedOption="Off";B.videoId="";B.playlistId="";B.adjustmentsCount=0;var x;(x=B.sessionStorage)==null||x.remove("yt-sleep-timer");_.EE.cancelJob(lx);c.resetSleepTimerMenuSettings()},ttF=function(B,c){c={timer_length_adjustment_times_during_session:B.adjustmentsCount-1,
is_session_cancelled:c};switch(B.selectedOption){case "Off":c.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:c.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",c.option_duration_in_minutes=bJr.get(B.selectedOption)/6E4}_.JP("sleepTimerSessionFinishEvent",c)};
_.Wm.prototype.onPlayerStateChange=function(B,c){B===1?bXA(c,(0,_.BA)(),q7B(c),this.selectedOption==="End of video"):B===0?(_.EE.cancelJob(WY),c.setVideoTimeLeft(nAz(0,0))):B===2&&_.EE.cancelJob(WY);this.selectedOption==="End of video"?B===0?qSF(this,c):B===2&&Uqc(c):this.selectedOption!=="End of playlist"||XQz(this.playlistId)||(B===0?qSF(this,c):B===2&&Uqc(c))};
_.Wm.prototype.onSeekComplete=function(B){B.getPlayerState()===2&&bXA(B,(0,_.BA)(),q7B(B),this.selectedOption==="End of video",!0)};
_.Wm.prototype.onCueRangeEnter=function(B,c){B==="sleep-timer-fade-audio"&&jQB(c,(c.getDuration()-c.getProgressState().current)*1E3)};
_.Wm.prototype.onCueRangeExit=function(B,c){B==="sleep-timer-fade-audio"&&c.getPlayerState()!==0&&Uqc(c,!0)};
var hxF=function(B,c){c.addCueRange("sleep-timer-fade-audio",c.getDuration()-15,c.getDuration());c.addEventListener("onCueRangeEnter",function(x){B.onCueRangeEnter(x,c)});
c.addEventListener("onCueRangeExit",function(x){B.onCueRangeExit(x,c)})},C0z=function(B,c){c.removeCueRange("sleep-timer-fade-audio");
c.removeEventListener("onCueRangeEnter",function(x){B.onCueRangeEnter(x,c)});
c.removeEventListener("onCueRangeExit",function(x){B.onCueRangeExit(x,c)})},TSF=function(B,c){Jp(B.selectedOption)?C0z(B,c):(_.EE.cancelJob(B.presetPauseSchedulerId),_.EE.cancelJob(B.presetFadeSchedulerId),B.presetPauseSchedulerId=0,B.presetFadeSchedulerId=0);
Uqc(c,!0)},VtN=function(B,c){c.setLoop(!1);
c.setLoopVideo(!1);c.setLoopRange(null);(B=kpN(B.JSC$20420_watchApi))&&_.cp().resolve(_.GC).dispatch(_.Uy("playlistLoopStateEntity",B,{key:B,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.W6A=function(B){_.tG.call(this);this.JSC$20423_watchApi=B;NSS(this);IHc(this);JLF(this);B=B.getRoot();if(B.is==="ytd-watch-flexy"||B.is==="ytd-watch-grid")B.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.lJz();_.T("web_watch_log_theater_mode_cookie_state")&&_.U4.get("wide","0")==="1"&&_.y5x("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.w(_.W6A,_.tG);var NSS=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20423_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){lH6(B,!!Y)};
c.addEventListener("SIZE_CLICKED",x);B.addOnDisposeCallback(function(){c.removeEventListener("SIZE_CLICKED",x)});
_.Kq(P)})},IHc=function(B){B.JSC$20423_watchApi.registerActionHandler("yt-toggle-theater-mode",function(c,x){lH6(B,c,x===void 0?!0:x)});
B.addOnDisposeCallback(function(){B.JSC$20423_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.W6A.prototype.getState=function(){return _.vv(_.uG().getState())};
var lH6=function(B,c,x){x=x===void 0?!0:x;var P,Y,g,k=_.T("enable_player_resize_transition")&&!!B.JSC$20423_watchApi.getWatchNextResponse()&&!((P=B.JSC$20423_watchApi.getWatchNextResponse())==null?0:(Y=P.contents)==null?0:(g=Y.twoColumnWatchNextResults)==null?0:g.conversationBar);_.zPi(function(){_.uG().dispatch(_.YN({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:c}}));_.T("theater_mode_scroll_to_top_killswitch")||B.JSC$20423_watchApi.scrollWatchTo(0,!1);_.cr()&&_.T("external_fullscreen")&&_.xC(document.documentElement);
JLF(B);x&&_.dr("wide",c?"1":"0",-1);_.gj(B.JSC$20423_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);B.JSC$20423_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:c});c&&_.lJz()},{shouldWrap:k})},JLF=function(B){var c;
_.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20423_watchApi.playerApi,2);c=x.yieldResult;c.setSizeStyle(!0,B.getState());_.Kq(x)})};var oQz=function(B){_.tG.call(this);var c=this;this.playerApi=B;this.timeToPanelSyncKeyMap={};var x;if(B==null?0:(x=B.isReady)==null?0:x.call(B)){x=_.C0(_.cp().resolve(_.GC),function(Y){return Y.entities.timedMarkersListSyncEntity||{}},function(Y,g){Y=Y===void 0?{}:Y;
g=g===void 0?{}:g;for(var k=_.p(Object.keys(g)),n=k.next();!n.done;n=k.next())n=n.value,Y[n]!==g[n]&&EQS(c,g[n]);g=_.p(Object.keys(Y));for(k=g.next();!k.done;k=g.next())k=k.value,n=Y[k],c.timeToPanelSyncKeyMap[k]&&OJz(c,n)});
this.addOnDisposeCallback(x);var P=function(Y){c.onCueRangeEnter(Y)};
B.addEventListener("onCueRangeEnter",P);this.addOnDisposeCallback(function(){var Y;(Y=B.removeEventListener)==null||Y.call(B,"onCueRangeEnter",P)})}};
_.w(oQz,_.tG);
var OJz=function(B,c){var x,P;if((x=B.playerApi)==null?0:(P=x.isReady)==null?0:P.call(x)){var Y;if((x=c==null?void 0:(Y=c.timedListData)==null?void 0:Y.sections)&&c!=null&&c.key)for(Y=_.p(x),x=Y.next();!x.done;x=Y.next())if(x=x.value,x.timedSyncDataList&&x.sectionId)for(P=0;P<x.timedSyncDataList.length;P++){var g=x.timedSyncDataList[P];g.syncItemId&&B.playerApi.addCueRange(x.sectionId+"_"+c.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,P===x.timedSyncDataList.length-1?0x8000000000000:Number(x.timedSyncDataList[P+
1].videoTimeMs)/1E3)}}},EQS=function(B,c){var x,P;
if((x=B.playerApi)==null?0:(P=x.isReady)==null?0:P.call(x)){var Y;if((x=c==null?void 0:(Y=c.timedListData)==null?void 0:Y.sections)&&c!=null&&c.key)for(Y=_.p(x),x=Y.next();!x.done;x=Y.next())if(x=x.value,x.timedSyncDataList&&x.sectionId){P=_.p(x.timedSyncDataList);for(var g=P.next();!g.done;g=P.next())g=g.value,g.syncItemId&&B.playerApi.removeCueRange(x.sectionId+"_"+c.key+"_"+g.syncItemId)}}};
oQz.prototype.onCueRangeEnter=function(B){for(var c=_.p(Object.keys(this.timeToPanelSyncKeyMap)),x=c.next();!x.done;x=c.next()){x=x.value;var P=_.p(B.split("_"+x+"_")),Y=P.next().value;P=P.next().value;if(Y&&P){B=_.cp().resolve(_.GC);c=this.timeToPanelSyncKeyMap[x];var g=_.K3d(B.getState(),c);x=QPo(x,Y,P);if(x===-1)break;x={activeSyncId:P,activeItemIndex:x,activeSectionInfo:{sectionIdentifier:Y}};g?B.dispatch(_.Wv("markersEngagementPanelSyncEntity",c,x)):B.dispatch(_.Uy("markersEngagementPanelSyncEntity",
c,Object.assign({},{key:c},x)));break}}};
var QPo=function(B,c,x){var P=_.cp().resolve(_.GC),Y,g;B=(Y=NNF(P.getState(),B))==null?void 0:(g=Y.timedListData)==null?void 0:g.sections;if(!B)return-1;Y=0;g=_.p(B);for(B=g.next();!B.done;B=g.next()){B=B.value;P=B.timedSyncDataList||[];if(B.sectionId===c)return c=P.findIndex(function(k){return k.syncItemId===x}),c===-1?c:Y+c;
Y+=P.length}return-1};_.zxo=function(B){_.tG.call(this);var c=this;this.JSC$20435_watchApi=B;this.unresolvedCommands=[];this.JSC$20435_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(x){F66(c,x)});
this.addOnDisposeCallback(function(){c.JSC$20435_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
vQy(this)};
_.w(_.zxo,_.tG);var vQy=function(B){var c;_.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20435_watchApi.playerApi,2);c=x.yieldResult;if(B.isDisposed())return x.return();B.timedSyncObserver=new oQz(c);B.unresolvedCommands.length&&(B.unresolvedCommands.forEach(function(P){return F66(B,P)}),B.unresolvedCommands=[]);
_.bW(B,B.timedSyncObserver);_.Kq(x)})},F66=function(B,c){if(B.timedSyncObserver){var x=_.t(c,iXo);
if(x&&x.timedSyncEntityKey&&x.panelSyncEntityKey){B=B.timedSyncObserver;c=x.timedSyncEntityKey;var P=x.panelSyncEntityKey;x=!!x.isEnabled;x=x===void 0?!0:x;var Y=_.cp().resolve(_.GC);Y=NNF(Y.getState(),c);x?B.timeToPanelSyncKeyMap[c]||(B.timeToPanelSyncKeyMap[c]=P,OJz(B,Y)):(delete B.timeToPanelSyncKeyMap[c],EQS(B,Y))}}else B.unresolvedCommands.push(c)};var SS6=_.rM(function(B){var c=B.data,x=B.maybeLogSmartSkipClientData,P=_.Ho("ytw-timely-action-view-model");_.Hv(P,function(){return c().rendererContext},{onTap:function(q,C){C({disableClickTracking:!0})}});
var Y=null,g=null,k=_.T("web_enable_auto_focus_for_timely_action_button"),n=function(){Y=document.activeElement},b=function(){c().smartSkipMetadata&&(Y=document.activeElement,_.kTB(function(){return g}))},d=function(q){if(c().smartSkipMetadata&&(!q||q.key!=="Enter")){Y&&Y.isConnected&&(_.kTB(function(){return Y}),Y=null);
var C;(C=g)==null||C.blur()}};
B=_.qe(function(){x==null||x(!0,c());return!1});
_.e3(P,{visibilityCallback:function(q){if(k)q?g&&c().smartSkipMetadata&&(b(),document.addEventListener("focusin",n)):(document.removeEventListener("focusin",n),d());else if(q&&_.T("web_ephemeral_actions")){q=_.L3(c().rendererContext);var C=Number(c().maxVisibleDurationMilliseconds),h,V=(h=_.t(c().rendererContext,_.T3))==null?void 0:h.label;q&&C&&V&&(h={label:V,command:q,durationMs:C},_.cp().resolve(_.bT).enqueue(h))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.JR(function(){if(k){var q;if((g=(q=P.value)==null?void 0:q.querySelector("button"))&&c().smartSkipMetadata){var C;(C=P.value)==null||C.addEventListener("keydown",d)}}});
_.lP(function(){k&&(g&&c().smartSkipMetadata&&g.removeEventListener("keydown",d),document.removeEventListener("focusin",n),d())});
return _.U("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:P,"on:click":B},_.U(_.IF,{data:function(){return c().content}},{buttonViewModel:_.Q7}))},"uj");var yL8=_.rM(function(B){var c=B.data,x=B.playerApi,P=_.cp().resolve(_.zHn);B=_.p(_.mg(function(){c()}));
var Y=B.next().value,g=B.next().value,k=function(){return hKl(c(),Y())},n=function(d,q){var C,h,V=(C=_.t(q==null?void 0:q.rendererContext,_.CL))==null?void 0:(h=C.loggingDirectives)==null?void 0:h.trackingParams;
if((q=q==null?void 0:q.smartSkipMetadata)&&q.loggingData&&(h=q.loggingData,q=h.algorithmId,C=h.startMilliseconds,h=h.endMilliseconds,q&&C!==void 0&&h!==void 0)){var N,l;d={smartSkipData:Object.assign({},{versionName:q,startMediaTimeMs:C,endMediaTimeMs:h},d&&{userInteractionMediaTimeMs:(Math.floor(((N=_.e5())==null?void 0:(l=N.getPlayer())==null?void 0:l.getCurrentTime())||0)*1E3).toString()})};N=_.Wf();var E;V&&(E=_.VF(V));N&&E&&_.Ai(N,E,d)}},b=function(d,q){var C=hKl(c(),d);
if(C){var h=_.t(C,OT),V;if(V=q)V=x(),C=_.t(C,OT),V=C!=null&&C.smartSkipMetadata?!(V==null?0:V.isSameMarkerTypeVisible((C==null?void 0:C.smartSkipMetadata.markerKey)||"")):!0;if(V){var N,l;(h==null?0:(N=h.smartSkipMetadata)==null?0:(l=N.loggingData)==null?0:l.isCounterfactual)||(n(!1,h),g(d))}else q||Y()!==d||g(void 0)}};
_.IO(function(){var d=c().timelyActions;if(d){d=_.p(d);for(var q=d.next();!q.done;q=d.next()){q=_.t(q.value,OT);var C=void 0;(C=q)!=null&&C.cueRangeId&&P.timelyActionsMap.set(q.cueRangeId,b)}_.lP(function(){P.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.U("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.U(_.IF,{data:k},{timelyActionViewModel:function(d){return _.U(SS6,{data:d.data,maybeLogSmartSkipClientData:function(){n(!0,_.t(k(),OT))}})}}))},"vj");_.Mt8=function(B){_.tG.call(this);this.JSC$20447_watchApi=B;B=_.p(_.$D({},void 0,"pLDp2"));this.timelyActionsOverlay=B.next().value;this.setTimelyActionsOverlay=B.next().value;G9F(this)};
_.w(_.Mt8,_.tG);var G9F=function(B){var c,x,P,Y;_.X(function(g){if(g.nextAddress==1)return L6S(B),ZJN(B),B.timelyActionsContainer=document.createElement("div"),_.K(g,B.JSC$20447_watchApi.playerApi,2);c=g.yieldResult;(P=(x=c).insertTimelyActionUi)==null||P.call(x,B.timelyActionsContainer);Y=_.It(B.timelyActionsContainer,function(){return _.U(yL8,{data:B.timelyActionsOverlay,playerApi:c})});
B.addOnDisposeCallback(Y);_.Kq(g)})},ZJN=function(B){var c=B.JSC$20447_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L6S(B)});
B.addOnDisposeCallback(function(){B.JSC$20447_watchApi.unsubscribeByKey(c)})},L6S=function(B){var c=B.JSC$20447_watchApi.getWatchNextResponse();
if(c){var x,P;if(c=_.t((x=c.playerOverlays)==null?void 0:(P=x.playerOverlayRenderer)==null?void 0:P.timelyActionsOverlayViewModel,Azo)){var Y;(Y=B.setTimelyActionsOverlay)==null||Y.call(B,c)}}};_.fHB=function(B){_.tG.call(this);this.JSC$20451_watchApi=B;HJs(this)};
_.w(_.fHB,_.tG);var HJs=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20451_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){_.bA.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.t(Y,_.BIr)},popupType:"TOAST"}})};
c.addEventListener("onYtShowToast",x);B.addOnDisposeCallback(function(){c.removeEventListener("onYtShowToast",x)});
_.Kq(P)})};var iJy,D1A,ALy,uGB,Bur,Rxr,exz,xGr,Po6;iJy=!1;_.rLF=function(B){_.tG.call(this);this.JSC$20454_watchApi=B;this.fullscreen=this.theater=!1;ALy(this);uGB(this);D1A(this)};
_.w(_.rLF,_.tG);D1A=function(B){var c,x,P;_.X(function(Y){if(Y.nextAddress==1)return _.K(Y,B.JSC$20454_watchApi.playerApi,2);c=Y.yieldResult;if(B.isDisposed())return Y.return();x=B.JSC$20454_watchApi.getElement("CINEMATICS");if(!x)return Y.return();B.JSC$20454_cinematicController=new _.Yt(x,c);_.bW(B,B.JSC$20454_cinematicController);_.TI6(B.JSC$20454_cinematicController);Rxr(B,_.PDY());P=B.JSC$20454_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){exz(B,g)});
B.addOnDisposeCallback(function(){B.JSC$20454_watchApi.unsubscribeByKey(P)});
Bur(B);exz(B,B.JSC$20454_cinematicController.isAllowed());_.cqz(B,B.fullscreen,B.theater);xGr(B);_.Kq(Y)})};
ALy=function(B){var c=B.JSC$20454_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Bur(B)});
B.addOnDisposeCallback(function(){B.JSC$20454_watchApi.unsubscribeByKey(c)})};
uGB=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20454_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){Rxr(B,Y)};
c.addEventListener("cinematicSettingsToggleChange",x);B.addOnDisposeCallback(function(){c.removeEventListener("cinematicSettingsToggleChange",x)});
_.Kq(P)})};
Bur=function(B){var c=B.JSC$20454_watchApi.getWatchNextResponse(),x;c=_.t(c==null?void 0:(x=c.pageVisualEffects)==null?void 0:x[0],_.T9);var P;(P=B.JSC$20454_cinematicController)==null||_.tyz(P,c)};
Rxr=function(B,c){var x;(x=B.JSC$20454_cinematicController)==null||_.Vyi(x,c);Po6(B)};
exz=function(B,c){var x;_.X(function(P){if(P.nextAddress==1)return _.T("kevlar_watch_cinematics_invisible")&&(c=!1),_.K(P,B.JSC$20454_watchApi.playerApi,2);x=P.yieldResult;x.updateCinematicSettings(c);Po6(B);_.Kq(P)})};
xGr=function(B){var c=_.CW();if(_.T("kevlar_measure_ambient_mode_idle")&&!c.getFlag(192)&&!iJy){iJy=!0;var x=_.Vp(_.EE,function(){_.cp().resolve(_.Q0o).start(1E4)},5E3);
B.addOnDisposeCallback(function(){_.EE.cancelJob(x);_.cp().resolve(_.Q0o).stop()})}};
_.cqz=function(B,c,x){B.fullscreen=c;B.theater=x;var P;(P=B.JSC$20454_cinematicController)==null||P.setFullscreen(B.fullscreen,B.theater);if(_.T("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(B.theater||B.fullscreen){var Y;(Y=B.JSC$20454_cinematicController)==null||_.w1o(Y)}else if((B=B.JSC$20454_cinematicController)!=null){var g;(g=B.currentCinematicEffect)==null||g.pause()}};
Po6=function(B){if(_.T("web_cinematic_theater_mode")||_.T("web_cinematic_fullscreen")){var c;B.JSC$20454_watchApi.getRoot().toggleCinematicsActive(!((c=B.JSC$20454_cinematicController)==null||!c.isEnabled()))}};_.s4A=function(B){_.tG.call(this);var c=this;this.JSC$20457_watchApi=B;this.commentsReady=!1;this.setCommentsJobId=0;B=_.C0(_.uG(),_.wi,function(){YKr(c)});
this.addOnDisposeCallback(B);var x=this.JSC$20457_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a2z(c)}),P=this.JSC$20457_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){a2z(c)});
this.addOnDisposeCallback(function(){c.JSC$20457_watchApi.unsubscribeByKey(x);c.JSC$20457_watchApi.unsubscribeByKey(P)});
var Y=function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ge6(c,"false")};
this.JSC$20457_watchApi.getRoot().addEventListener("yt-page-data-will-update",Y);this.addOnDisposeCallback(function(){c.JSC$20457_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Y)});
a2z(this)};
_.w(_.s4A,_.tG);var a2z=function(B){B.commentsReady=!1;_.EE.cancelJob(B.setCommentsJobId);B.setCommentsJobId=_.Vp(_.EE,function(){YKr(B)},1E3)},YKr=function(B){if(!B.commentsReady){_.Op("cmi");
_.EE.cancelJob(B.setCommentsJobId);var c,x,P,Y,g=(c=B.JSC$20457_watchApi.getWatchNextResponse())==null?void 0:(x=c.contents)==null?void 0:(P=x.twoColumnWatchNextResults)==null?void 0:(Y=P.results)==null?void 0:Y.results.contents;c=void 0;if(g&&g.length)for(g=_.p(g),x=g.next();!x.done;x=g.next())if(x=x.value,Y=P=void 0,((P=x)==null?void 0:(Y=P.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"){_.T("web_watch_provide_undefined_comments")?c=x.itemSectionRenderer:B.JSC$20457_watchApi.provideRenderingData("COMMENTS",
x.itemSectionRenderer);ge6(B,"true");break}_.T("web_watch_provide_undefined_comments")&&B.JSC$20457_watchApi.provideRenderingData("COMMENTS",c);B.commentsReady=!0;B.JSC$20457_watchApi.dispatchEvent("yt-watch-comments-ready")}},ge6=function(B,c){var x;
(x=B.JSC$20457_watchApi.getElement("COMMENTS"))==null||x.setAttribute("canScheduleJobs",c)};_.Qv=function(B){_.tG.call(this);var c=this;this.JSC$20460_watchApi=B;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.T("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.T("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.T("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Yu("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)pON(this);
else{var x=this.JSC$20460_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){E1(c);O1(c)}),P=this.JSC$20460_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){o6(c);
O1(c)});
this.JSC$20460_watchApi.getRoot().is==="ytd-watch-grid"&&_.T("swatcheroo_pbs_load_grid")&&(kfF(this),XOB(this));this.addOnDisposeCallback(function(){c.JSC$20460_watchApi.unsubscribeByKey(x);c.JSC$20460_watchApi.unsubscribeByKey(P);_.EE.cancelJob(c.provideRichGridJobId)});
E1(this);o6(this)}};
_.w(_.Qv,_.tG);var pON=function(B){var c=B.JSC$20460_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){B.providePlayerJobId=_.Nv(_.EE,function(){E1(B);O1(B)},B.provideAllDataDelayMs)}),x=B.JSC$20460_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){B.provideWatchNextJobId=_.Nv(_.EE,function(){o6(B);
O1(B)},B.provideAllDataDelayMs)}),P=B.JSC$20460_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){B.provideWatchNextJobId=_.Nv(_.EE,function(){o6(B);
O1(B)},B.provideAllDataDelayMs)});
B.JSC$20460_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Vp(_.EE,function(){E1(B);o6(B);O1(B)},100)});
B.JSC$20460_watchApi.addPageDisposeJob(function(){_.EE.cancelJob(B.provideWatchNextJobId);_.EE.cancelJob(B.providePlayerJobId)});
B.addOnDisposeCallback(function(){B.JSC$20460_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");B.JSC$20460_watchApi.unsubscribeByKey(c);B.JSC$20460_watchApi.unsubscribeByKey(x);B.JSC$20460_watchApi.unsubscribeByKey(P);_.EE.cancelJob(B.providePlayerJobId);_.EE.cancelJob(B.provideWatchNextJobId)});
E1(B);o6(B)},E1=function(B){var c=B.JSC$20460_watchApi.getPlayerResponse(),x,P,Y=(P=c==null?void 0:(x=c.playabilityStatus)==null?void 0:x.messageRenderers)!=null?P:[],g,k;
c=(k=c==null?void 0:(g=c.playabilityStatus)==null?void 0:g.messages)!=null?k:[];g=_.p(c);for(k=g.next();!k.done;k=g.next())Y.push({alertRenderer:{text:_.fk(k.value),type:"WARNING"}});B.JSC$20460_watchApi.provideRenderingData("ALERTS",Y)},o6=function(B){var c=[],x,P,Y,g=B.JSC$20460_watchApi.getWatchNextResponse(),k,n,b,d,q=g==null?void 0:(k=g.contents)==null?void 0:(n=k.twoColumnWatchNextResults)==null?void 0:(b=n.results)==null?void 0:(d=b.results)==null?void 0:d.contents;
if(q)for(k=_.p(q),n=k.next();!n.done;n=k.next())if(n=n.value,n.videoPrimaryInfoRenderer)var C=n;else if(n.videoSecondaryInfoRenderer){var h=n;d=b=void 0;n=Object.assign({},(b=n.videoSecondaryInfoRenderer)==null?void 0:(d=b.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(n.rows&&n.collapsedItemCount!==void 0){n.rows=n.rows.slice(0,n.collapsedItemCount).filter(function(ut){return!!ut.richMetadataRowRenderer});
n.collapsedItemCount=n.rows.length;var V={metadataRowContainerRenderer:n}}}else if(n.merchandiseShelfRenderer)var N=n;else if(n.ticketShelfRenderer)var l=n;else if(n.expandableMetadataRenderer)var E=n;else if(n.itemSectionRenderer)if(b=n.itemSectionRenderer.contents,d=void 0,B.directlyProvideComments&&((d=n.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section")_.Op("cmi"),B.JSC$20460_watchApi.provideRenderingData("COMMENTS",n.itemSectionRenderer);else if(b)for(n=_.p(b),b=
n.next();!b.done;b=n.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var S=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){c.push(b);var M=M||!!h}else b.limitedStateMessageRenderer?P=b:b.videoMetadataCarouselViewModel&&(Y=b);if(_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&N&&l){var f=N;N=void 0}if(B.provideWatchNextSecondaryResults){var Z,u,e;B.JSC$20460_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
g==null?void 0:(Z=g.contents)==null?void 0:(u=Z.twoColumnWatchNextResults)==null?void 0:(e=u.secondaryResults)==null?void 0:e.secondaryResults)}if(B.JSC$20460_watchApi.getRoot().is==="ytd-watch-grid"){var px,kI;B.JSC$20460_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(px=g.contents)==null?void 0:(kI=px.twoColumnWatchNextResults)==null?void 0:kI.conversationBar)}var Ul,wC,W$,El;(Z=g==null?void 0:(Ul=g.contents)==null?void 0:(wC=Ul.twoColumnWatchNextResults)==null?void 0:(W$=wC.secondaryResults)==
null?void 0:(El=W$.secondaryResults)==null?void 0:El.offerModule)&&(Z.donationShelfRenderer||Z.donationUnavailableRenderer)&&B.JSC$20460_watchApi.getRoot().is!=="ytd-watch-grid"&&(x=Z);Ul=B.JSC$20460_watchApi.getPlayerResponse();if(!Ul||!_.BFx(Ul.playabilityStatus,g==null?void 0:g.playerOverlays)){var H$;if(g==null?0:(H$=g.contents)==null?0:H$.singleColumnWatchNextResults){var yw,r9;var cs=g==null?void 0:(yw=g.contents.singleColumnWatchNextResults.results)==null?void 0:(r9=yw.results)==null?void 0:
r9.contents}else{var NQ,n4,L4,UF;H$=!!(q==null?0:(NQ=q[0])==null?0:(n4=NQ.itemSectionRenderer)==null?0:(L4=n4.contents)==null?0:(UF=L4[0])==null?0:UF.backgroundPromoRenderer);var uX,yr;NQ=!!(g==null?0:(uX=g.contents)==null?0:(yr=uX.twoColumnWatchNextResults)==null?0:yr.secondaryResults);H$&&!NQ&&(cs=q)}}q=c[0];uX=c[1];M&&c.length===1&&(uX=q,q=void 0);B.JSC$20460_watchApi.provideRenderingData("PRIMARY_INFO",C);B.JSC$20460_watchApi.provideRenderingData("SECONDARY_INFO",h);B.JSC$20460_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
S);B.JSC$20460_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Y);B.JSC$20460_watchApi.provideRenderingData("CLARIFICATION",q);B.JSC$20460_watchApi.provideRenderingData("RICH_METADATA",V);B.JSC$20460_watchApi.provideRenderingData("MERCH_SHELF",N);_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&B.JSC$20460_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",f);B.JSC$20460_watchApi.provideRenderingData("TICKET_SHELF",l);B.JSC$20460_watchApi.provideRenderingData("LIMITED_STATE",P);B.JSC$20460_watchApi.getRoot().is!==
"ytd-watch-grid"&&B.JSC$20460_watchApi.provideRenderingData("DONATION_SHELF",x);B.JSC$20460_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",cs);B.JSC$20460_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",uX);B.JSC$20460_watchApi.provideRenderingData("EXPANDABLE_METADATA",E);if(B.swatcherooProvideAllDataOnScheduledJob){var uz,XO,qQ,lt,D8,VW;C=g==null?void 0:(uz=g.contents)==null?void 0:(XO=uz.twoColumnWatchNextResults)==null?void 0:(qQ=XO.secondaryResults)==null?void 0:(lt=qQ.secondaryResults)==
null?void 0:(D8=lt.results)==null?void 0:(VW=D8[0])==null?void 0:VW.richGridRenderer;B.JSC$20460_watchApi.provideRenderingData("RICH_GRID_RENDERER",C)}};
_.Qv.prototype.hasCompanionAds=function(B){var c,x;return(x=B==null?void 0:(c=B.adPlacements)==null?void 0:c.some(function(P){var Y,g,k,n;return(P==null?void 0:(Y=P.adPlacementRenderer)==null?void 0:(g=Y.renderer)==null?void 0:g.actionCompanionAdRenderer)||(P==null?void 0:(k=P.adPlacementRenderer)==null?void 0:(n=k.renderer)==null?void 0:n.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?x:!1};
var O1=function(B){if(!_.T("swaterdoo_ps_wn_handle_ks")){B.swatcherooProvideAllDataOnScheduledJob||XOB(B,3E3);var c=B.JSC$20460_watchApi.getPlayerResponse(),x,P,Y,g,k,n=(x=B.JSC$20460_watchApi.getWatchNextResponse())==null?void 0:(P=x.contents)==null?void 0:(Y=P.twoColumnWatchNextResults)==null?void 0:(g=Y.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:k.offerModule;c=B.hasCompanionAds(c);var b,d;x=(n==null?void 0:(b=n.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(n==null?void 0:(d=n.unlimitedOfferModuleRenderer)==null?void 0:d.suppressIfCompanionAds);b=c&&x;B.JSC$20460_watchApi.getRoot().is==="ytd-watch-grid"&&B.JSC$20460_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:n)}},XOB=function(B,c){_.T("swatcheroo_pbs_load_grid")&&(B.provideRichGridJobId&&_.EE.cancelJob(B.provideRichGridJobId),B.provideRichGridJobId=_.Nv(_.EE,function(){B.provideRichGridJobId=0;
var x,P,Y,g,k,n,b,d=(x=B.JSC$20460_watchApi.getWatchNextResponse())==null?void 0:(P=x.contents)==null?void 0:(Y=P.twoColumnWatchNextResults)==null?void 0:(g=Y.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:(n=k.results)==null?void 0:(b=n[0])==null?void 0:b.richGridRenderer;d&&B.JSC$20460_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)},c))},kfF=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20460_watchApi.playerApi,2);c=P.yieldResult;x=function(){B.onPlaybackStart()};
c.addEventListener("onPlaybackStartExternal",x);B.addOnDisposeCallback(function(){c.removeEventListener("onPlaybackStartExternal",x)});
_.Kq(P)})};
_.Qv.prototype.onPlaybackStart=function(){XOB(this)};_.neo=function(B){_.tG.call(this);var c=this;this.JSC$20470_watchApi=B;B.playerApi.then(function(x){c.player=x});
this.gestures=new _.pn(this.JSC$20470_watchApi.getRoot(),B.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.OeN(_.uG().getState())&&_.wi(_.uG().getState())<=0)if(_.zj(_.uG().getState())){var x;(x=c.player)==null||x.toggleFullscreen()}else _.gj(c.JSC$20470_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
$G8(this)};
_.w(_.neo,_.tG);var $G8=function(B){var c=_.C0(_.uG(),_.zj,function(x){B.onFullscreenChanged(x)});
B.addOnDisposeCallback(c);c=_.C0(_.uG(),_.wi,function(x){B.gestures&&(x>0?B.gestures.detach():B.gestures.attach())});
B.addOnDisposeCallback(c)};
_.neo.prototype.onFullscreenChanged=function(B){this.gestures&&this.gestures.update(B)};_.Kdz=function(B){_.tG.call(this);var c=this;this.JSC$20473_watchApi=B;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(B.subscribeToActiveChanged(function(x){c.onActiveChanged(x)}));
bTF(this)};
_.w(_.Kdz,_.tG);var j4s=function(B){if(_.T("swatcheroo_page_dispose_all_watch_data"))B.pageDisposalDataTypes=Object.values(F2s).filter(function(x){return x!=="PLAYLIST"});
else if(_.T("swatcheroo_page_dispose_rich_grid")){var c;(c=B.pageDisposalDataTypes)==null||c.push("RICH_GRID_RENDERER")}},bTF=function(B){_.T("swatcheroo_enable_ghost_cards")&&(j4s(B),B.JSC$20473_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.EE.cancelJob(B.clearDataJobId);
B.clearDataJobId=0}),B.runPageDisposeJob=function(){var c=_.cp().resolve(_.rV).getDestinationPageType()==="watch";
B.clearDataJobId=_.Nv(_.EE,B.runClearDataJob,c?0:_.Yu("web_watch_delay_page_dispose_ms",1E4))},B.runClearDataJob=function(){UGy(B)},B.runOnYtNavigateAwayFinish=function(){B.clearDataJobId&&(_.EE.cancelJob(B.clearDataJobId),B.clearDataJobId=0,UGy(B))},document.addEventListener("yt-navigate-finish",B.runOnYtNavigateAwayFinish),B.JSC$20473_watchApi.addPageDisposeJob(B.runPageDisposeJob),B.addOnDisposeCallback(function(){B.JSC$20473_watchApi.removePageDisposeJob(B.runPageDisposeJob);
B.JSC$20473_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",B.runOnYtNavigateAwayFinish)}))},UGy=function(B){B.pageDisposalDataTypes.forEach(function(c){B.JSC$20473_watchApi.provideRenderingData(c,void 0)});
B.clearDataJobId=0};
_.Kdz.prototype.onActiveChanged=function(B){B&&((B=document.querySelector("#watch-page-skeleton"))&&_.qH(B),dGA(this),document.body.removeAttribute("no-y-overflow"),_.zu("IS_SHELL_LOAD")&&_.hil())};
var dGA=function(B){_.X(function(c){if(c.nextAddress==1)return _.K(c,B.JSC$20473_watchApi.playerApi,2);_.rc();_.Kq(c)})};var qKF;qKF=_.T("kevlar_watch_while_counterfactual")?0:.25;_.F7=function(B){_.tG.call(this);this.JSC$20476_watchApi=B;this.JSC$20476_watchWhileEnabled=_.T("kevlar_watch_while_v2");this.pipEnabled=_.T("web_enable_pip_on_miniplayer");Coc(this);haF(this);mGs(this)};
_.w(_.F7,_.tG);var Coc=function(B){B.JSC$20476_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Tu8(B)});
B.addOnDisposeCallback(function(){B.JSC$20476_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},haF=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20476_watchApi.playerApi,2);c=P.yieldResult;x=function(){Tu8(B)};
c.addEventListener("onCollapseMiniplayer",x);B.addOnDisposeCallback(function(){c.removeEventListener("onCollapseMiniplayer",x)});
_.Kq(P)})},mGs=function(B){var c=B.JSC$20476_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&c&&B.JSC$20476_watchWhileEnabled&&(B.playerIntersectionObserver=new IntersectionObserver(function(x){B.handleIntersect(x)},{threshold:[qKF]}),B.playerIntersectionObserver.observe(c),B.addOnDisposeCallback(function(){var x;
(x=B.playerIntersectionObserver)==null||x.disconnect()}))},Tu8=function(B){var c,x,P;
_.X(function(Y){if(Y.nextAddress==1){c=_.cp().resolve(_.rV);x=c.data;P=_.Xn7(x.response,x.playerResponse);_.dd().miniplayerButtonActivation=!0;if(B.pipEnabled)return _.dd().watchPipActivation=!0,Y.jumpTo(2);_.cp().resolve(_.Ge).collapse();return _.K(Y,_.dd().navigationFinishPromise,2)}if(Y.nextAddress!=4)return _.dd().currentEndpoint=P.watchEndpoint||null,_.K(Y,_.cp().resolve(_.Ge).activate(B.JSC$20476_watchApi.getElement("PLAYER"),P,x),4);_.dd().userActivation=!0;_.Kq(Y)})};
_.F7.prototype.handleIntersect=function(B){VNs(this,B[B.length-1])};
var VNs=function(B,c){B.watchWhileJobId&&_.EE.cancelJob(B.watchWhileJobId);B.watchWhileJobId=_.EE.addLowPriorityJob(function(){var x,P;return _.X(function(Y){if(Y.nextAddress==1)return B.watchWhileJobId=void 0,x=_.cp().resolve(_.Ge),c.intersectionRatio>qKF?x.isMiniplayerActive()?_.K(Y,x.deactivate(),0):Y.jumpTo(0):(P=!x.isMiniplayerActive())?_.K(Y,tNr(B),5):Y.jumpTo(4);Y.nextAddress!=4&&(P=Y.yieldResult);if(!P)return Y.jumpTo(0);_.dd().watchWhileActivation=!0;return _.K(Y,wOs(B),0)})},100)},tNr=function(B){return _.X(function(c){return c.nextAddress==
1?_.T("kevlar_watch_while_paused")?c.return(!0):_.K(c,B.isPlayerPlaying(),2):c.return(c.yieldResult)})};
_.F7.prototype.isPlayerPlaying=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20476_watchApi.playerApi,2);c=x.yieldResult;return x.return(c.getPlayerStateObject().isPlaying)})};
var wOs=function(B){var c,x;return _.X(function(P){c=_.cp().resolve(_.rV).data;x=_.Xn7(c.response,c.playerResponse);_.dd().currentEndpoint=x.watchEndpoint||null;return _.K(P,_.cp().resolve(_.Ge).activate(B.JSC$20476_watchApi.getElement("PLAYER"),x,c),0)})};_.Jqs=function(B){_.tG.call(this);this.JSC$20480_watchApi=B;Nuy(this);I2s(this)};
_.w(_.Jqs,_.tG);var I2s=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20480_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){var g;Y.sessionData&&Y.sessionData.itct&&(g=Y.sessionData.itct);var k=Y.watchEndpoint;if(k&&Y.sessionData&&Y.sessionData.autonav)k=_.WS7(k,g);else{var n;k=_.B3(Y.videoId,(n=Y.listId)!=null?n:void 0,g)}g={endpoint:k};Y.sessionData&&(g.tempData=Y.sessionData);B.JSC$20480_watchApi.dispatchEvent("yt-navigate",g)};
c.addEventListener("onPlayVideo",x);B.addOnDisposeCallback(function(){c.removeEventListener("onPlayVideo",x)});
_.Kq(P)})},Nuy=function(B){var c=function(x){B.onYtNavigate(x)};
B.JSC$20480_watchApi.getRoot().addEventListener("yt-navigate",c);B.addOnDisposeCallback(function(){B.JSC$20480_watchApi.getRoot().removeEventListener("yt-navigate",c)})};
_.Jqs.prototype.onYtNavigate=function(B){var c=this,x,P,Y,g,k,n,b,d,q;return _.X(function(C){if(C.nextAddress==1){if(!((x=B.detail)==null?0:(P=x.endpoint)==null?0:P.watchEndpoint))return C.return();Y=B.detail.endpoint.watchEndpoint;g=c.JSC$20480_watchApi.getWatchNextResponse();n=_.t((k=g)==null?void 0:k.currentVideoEndpoint,_.fN);if(!n)return C.return();if(Y.videoId!==n.videoId||Y.playlistId&&Y.playlistId!==n.playlistId||typeof Y.startTimeSeconds!=="number")return C.jumpTo(0);B.stopPropagation();
(b=_.T("kevlar_watch_while_v2")&&!_.T("kevlar_watch_while_counterfactual"))&&_.cp().resolve(_.Ge).isMiniplayerActive()||c.JSC$20480_watchApi.scrollWatchTo(0,!0);return _.K(C,c.JSC$20480_watchApi.playerApi,3)}d=C.yieldResult;q=Y.startTimeSeconds;d.seekTo(q,void 0,void 0,void 0,84);d.wakeUpControls();q<d.getDuration()&&d.playVideo();_.Kq(C)})};_.l2r=function(B){_.tG.call(this);var c=this;this.JSC$20483_watchApi=B;var x=this.JSC$20483_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Wdc(c)});
this.addOnDisposeCallback(function(){c.JSC$20483_watchApi.unsubscribeByKey(x)});
Wdc(this)};
_.w(_.l2r,_.tG);var Wdc=function(B){var c=B.JSC$20483_watchApi.getWatchNextResponse();if(c){var x,P=[].concat(_.wq((x=c==null?void 0:c.engagementPanels)!=null?x:[]));P.unshift.apply(P,_.wq(Eec(c)));B.JSC$20483_watchApi.provideRenderingData("ENGAGEMENT_PANELS",P)}},OTB=function(B){var c,x,P,Y=(c=B.engagementPanels)==null?void 0:(x=c.find(function(V){var N;
return((N=V.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(P=x.engagementPanelSectionListRenderer.content)==null?void 0:P.structuredDescriptionContentRenderer,g;
if(_.t(Y==null?void 0:(g=Y.items)==null?void 0:g.find(function(V){return!!_.t(V,$oA)}),$oA))return!0;
var k,n,b,d;if(B=(((k=B.contents)==null?void 0:(n=k.twoColumnWatchNextResults)==null?void 0:(b=n.results)==null?void 0:(d=b.results)==null?void 0:d.contents)||[]).find(function(V){return V.videoPrimaryInfoRenderer})){var q,C,h;
return(((q=B.videoPrimaryInfoRenderer)==null?void 0:(C=q.videoActions)==null?void 0:(h=C.menuRenderer)==null?void 0:h.flexibleItems)||[]).some(function(V){V=_.t(V,_.X6I);if(!V)return!1;var N,l;V=(N=V.topLevelButton)==null?void 0:(l=N.buttonViewModel)==null?void 0:l.onTap;if(!V)return!1;N=_.vH(V);if(!N)return!1;var E;return((E=_.t(N,_.QA))==null?void 0:E.panelIdentifier)==="PAyouchat"})}return!1},Eec=function(B){var c=[];
if(!_.T("web_watch_inject_placeholder_fantasy_panel_killswitch")){var x,P,Y,g=(x=B.engagementPanels)==null?void 0:(P=x.find(function(n){var b;return((b=n.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=P.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer,k;
_.t(g==null?void 0:(k=g.items)==null?void 0:k.find(function(n){return!!_.t(n,MDr)}),MDr)&&(x=_.GW7("PAsports_fantasy"),x.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(x))}OTB(B)&&(B=_.GW7("PAyouchat"),B.engagementPanelSectionListRenderer.targetId="PAyouchat",B.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(B));
return c};_.Q4l=function(B){_.tG.call(this);this.JSC$20486_watchApi=B;oeA(this)};
_.w(_.Q4l,_.tG);var oeA=function(B){B.JSC$20486_watchApi.registerActionHandler("yt-loop-command",function(c){Fds(B,c)});
B.JSC$20486_watchApi.registerActionHandler("yt-repeat-chapter-command",function(c){veN(B,c)});
B.addOnDisposeCallback(function(){B.JSC$20486_watchApi.unregisterActionHandler("yt-loop-command");B.JSC$20486_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Fds=function(B,c){var x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20486_watchApi.playerApi,2);x=P.yieldResult;_.t(c,ZX6).loop?(x.setLoopRange({startTimeMs:Number(_.t(c,ZX6).startTimeMs),endTimeMs:Number(_.t(c,ZX6).endTimeMs),postId:_.t(c,ZX6).postId,type:"clips"}),x.playVideo()):x.setLoopRange(null);_.Kq(P)})},veN=function(B,c){var x,P;
_.X(function(Y){if(Y.nextAddress==1)return _.K(Y,B.JSC$20486_watchApi.playerApi,2);x=Y.yieldResult;P=_.t(c,uwS).repeat;P==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(x.setLoopRange({startTimeMs:Number(_.t(c,uwS).startTimeMs),endTimeMs:Number(_.t(c,uwS).endTimeMs),type:"repeatChapter"}),x.playVideo()):P==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&x.setLoopRange(null);_.Kq(Y)})};_.SKy=function(B){_.tG.call(this);this.JSC$20491_watchApi=B;zac(this)};
_.w(_.SKy,_.tG);var zac=function(B){B.JSC$20491_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(c){yq8(B,c)});
B.addOnDisposeCallback(function(){B.JSC$20491_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},yq8=function(B,c){var x,P,Y,g,k,n,b,d,q,C,h;
_.X(function(V){if(V.nextAddress==1)return _.K(V,B.JSC$20491_watchApi.playerApi,2);x=V.yieldResult;if(g=(Y=(P=_.t(c,Dqy))==null?void 0:P.highlightedMenuItemKey)!=null?Y:"")(n=(k=x).highlightSettingsMenuItem)==null||n.call(k,g);if(q=(d=(b=_.t(c,Dqy))==null?void 0:b.openMenuItemKey)!=null?d:"")(h=(C=x).openSettingsMenuItem)==null||h.call(C,q);_.Kq(V)})};var Gfi=_.kN("/youtube/app/watch/player_state","playerStateEntity");_.Ldz=function(B){_.tG.call(this);this.JSC$20494_watchApi=B;MNN(this)};
_.w(_.Ldz,_.tG);var ZTi=function(B){switch(B){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"}},MNN=function(B){var c,x;
_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20494_watchApi.playerApi,2);c=P.yieldResult;x=function(Y){B.onPlayerStateChange(Y)};
c.addEventListener("onStateChange",x);B.addOnDisposeCallback(function(){c.removeEventListener("onStateChange",x)});
_.Kq(P)})};
_.Ldz.prototype.onPlayerStateChange=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,c.JSC$20494_watchApi.playerApi,2);x=Y.yieldResult;P=x.getVideoData().video_id;_.HW().dispatch(_.Uy("playerStateEntity",Gfi,{key:Gfi,playerState:ZTi(B),videoId:P}));_.Kq(Y)})};_.f2r=function(B){_.tG.call(this);var c=this;this.JSC$20498_watchApi=B;this.enableExternalPlaylistPanelInPlayer=_.T("delhi_web_player_use_external_playlist_panel");_.cp().resolve(_.vK).setPlayer(this.JSC$20498_watchApi.getElement("PLAYER"));B=this.JSC$20498_watchApi.subscribeToActiveChanged(function(x){c.onActiveChanged(x)});
this.addOnDisposeCallback(B);HTs(this)};
_.w(_.f2r,_.tG);var HTs=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return B.enableExternalPlaylistPanelInPlayer?_.K(P,B.JSC$20498_watchApi.playerApi,2):P.return();c=P.yieldResult;x=function(){if(B.playlistPanelElement)B.playlistPanelElement.onToggleExpanded()};
c.addEventListener("onToggleExternalPlaylistPanel",x);B.addOnDisposeCallback(function(){c.removeEventListener("onToggleExternalPlaylistPanel",x)});
_.Kq(P)})};
_.f2r.prototype.onActiveChanged=function(B){var c=this,x=_.cp().resolve(_.vK),P=function(){iTz(c)};
B?(this.playlistPanelElement=this.JSC$20498_watchApi.getElement("PLAYLIST_PANEL"))?(x.setPlaylistComponent(this.playlistPanelElement),x.addEventListener("yt-playlist-data-updated",P),this.addOnDisposeCallback(function(){x.removeEventListener("yt-playlist-data-updated",P)}),iTz(this)):_.MR(Error("lm")):(x.removeEventListener("yt-playlist-data-updated",P),x.cancelVideoSkip())};
var iTz=function(B){var c=_.cp().resolve(_.vK);B.JSC$20498_watchApi.provideRenderingData("PLAYLIST",c.getPlaylistData())};_.vm=function(B){_.tG.call(this);var c=this;this.JSC$20501_watchApi=B;this.onPageScroll=function(){c.scrollThrottle.fire();c.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.eA(this.onThrottledScroll,200,this);_.bW(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.eA(this.onMastheadThrottledScroll,50,this);_.bW(this,this.mastheadScrollThrottle);this.animation=new _.Qg(function(x){c.JSC$20501_watchApi.getRoot().setScrollTop(x)});
B=_.C0(_.uG(),_.zj,function(){c.onFullscreenChanged()});
this.addOnDisposeCallback(B);Aq8(this);uni(this);this.onThrottledScroll()};
_.w(_.vm,_.tG);
_.vm.prototype.onFullscreenChanged=function(){var B=this,c=this.JSC$20501_watchApi.getRoot();!this.pageScrollElement&&c.pageScrollElement?(this.pageScrollElement=c.pageScrollElement,c.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){B.pageScrollElement&&B.pageScrollElement.removeEventListener("scroll",B.onPageScroll)})):this.pageScrollElement&&!c.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Aq8=function(B){window.addEventListener("scroll",B.onPageScroll);B.addOnDisposeCallback(function(){window.removeEventListener("scroll",B.onPageScroll)})},uni=function(B){B.JSC$20501_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(c){a:{var x;
if(x=B.JSC$20501_watchApi.getRoot().contains(c)&&!B.animation.isAnimating()){x=c.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var P,Y,g=(c==null?void 0:(P=c.parentElement)==null?void 0:(Y=P.parentElement)==null?void 0:Y.id)==="fixed-secondary";x=!(x&&g)}if(x){if(_.T("kevlar_watch_scroll_manager_absolute_offset_killswitch"))P=c.offsetTop;else for(P=0,Y=c;Y!==null;)P+=Y.offsetTop,P-=Y.scrollTop,Y=Y.offsetParent;Y=P;P=Y-24;c=Y+c.offsetHeight+24;Y=B.JSC$20501_watchApi.getRoot().getPageScrollingElement();
x=B.JSC$20501_watchApi.getRoot().getScrollTop();g=x+Y.clientHeight-56;if(P<x+56)c=P-56;else if(c>g)c-=Y.clientHeight;else break a;B.scrollWatchTo(Math.max(0,c),!0)}}});
B.addOnDisposeCallback(function(){B.JSC$20501_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.vm.prototype.onThrottledScroll=function(){var B=_.uG(),c=B.dispatch,x=this.JSC$20501_watchApi.getRoot().getScrollTop();c.call(B,_.YN({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:x}}))};
_.vm.prototype.onMastheadThrottledScroll=function(){this.JSC$20501_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20501_watchApi.getRoot().getScrollTop())};
_.vm.prototype.scrollWatchTo=function(B,c){(c===void 0?0:c)?this.animation.start(this.JSC$20501_watchApi.getRoot().getScrollTop(),Math.max(0,B),500):this.JSC$20501_watchApi.getRoot().setScrollTop(B)};_.Rao=function(B){_.tG.call(this);var c=this;this.JSC$20504_watchApi=B;var x=this.JSC$20504_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DGo(c)}),P=this.JSC$20504_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rqs(c)});
this.addOnDisposeCallback(function(){c.JSC$20504_watchApi.unsubscribeByKey(x);c.JSC$20504_watchApi.unsubscribeByKey(P)});
DGo(this);rqs(this)};
_.w(_.Rao,_.tG);
var DGo=function(B){var c,x,P,Y=(P=(c=B.JSC$20504_watchApi.getPlayerResponse())==null?void 0:(x=c.videoDetails)==null?void 0:x.title)!=null?P:"";B.JSC$20504_watchApi.dispatchEvent("yt-update-title",Y)},rqs=function(B){var c,x,P,Y,g,k,n,b=(n=((k=(c=B.JSC$20504_watchApi.getWatchNextResponse())==null?void 0:(x=c.contents)==null?void 0:(P=x.twoColumnWatchNextResults)==null?void 0:(Y=P.results)==null?void 0:(g=Y.results)==null?void 0:g.contents)!=null?k:[]).find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?
void 0:n.videoPrimaryInfoRenderer;
(c=_.iG(b==null?void 0:b.title))&&B.JSC$20504_watchApi.dispatchEvent("yt-update-title",c)};_.Bil=function(B){_.tG.call(this);this.JSC$20507_watchApi=B;eai(this)};
_.w(_.Bil,_.tG);var eai=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$20507_watchApi.playerApi,2);c=P.yieldResult;x=function(){B.onYpcContentRequest()};
c.addEventListener("onYpcContentRequest",x);B.addOnDisposeCallback(function(){c.removeEventListener("onYpcContentRequest",x)});
_.Kq(P)})};
_.Bil.prototype.onYpcContentRequest=function(){var B,c,x,P,Y,g=(B=this.JSC$20507_watchApi.getWatchNextResponse())==null?void 0:(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:(Y=P.secondaryResults)==null?void 0:Y.offerModule,k,n,b,d;B=(d=(b=(n=(k=g==null?void 0:g.episodeOfferModuleRenderer)!=null?k:g==null?void 0:g.movieOfferModuleRenderer)!=null?n:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?b:g==null?void 0:g.liveOfferModuleRenderer)!=
null?d:g==null?void 0:g.tvfilmOfferModuleRenderer;var q,C,h;g=(h=g==null?void 0:(q=g.tvfilmOfferModuleRenderer)==null?void 0:(C=q.actionButtons)==null?void 0:C.length)!=null?h:0;C=Math.max(g-1,0);var V,N,l;q=(l=B==null?void 0:(V=B.offerButton)==null?void 0:V.buttonRenderer)!=null?l:B==null?void 0:(N=B.actionButtons)==null?void 0:N[C].buttonRenderer;var E,S;(V=(S=(E=q==null?void 0:q.navigationEndpoint)!=null?E:q==null?void 0:q.serviceEndpoint)!=null?S:q==null?void 0:q.command)&&_.bA.instance.resolveCommand(V)};
}catch(e){_._DumpException(e)}
try{
var ppo,atA,Pp8;_.Y4y=function(){var B=_.wW.clone(xDs),c;return(new _.bb(function(x,P){B.onSuccess=function(Y){_.IFl(Y)?x(new Pp8(Y)):P(new _.i8("Request failed, status="+_.s4(Y),"net.badstatus",Y))};
B.onError=function(Y){P(new _.i8("Unknown request error","net.unknown",Y))};
B.onTimeout=function(Y){P(new _.i8("Request timed out","net.timeout",Y))};
c=_.nU("//googleads.g.doubleclick.net/pagead/id",B)})).thenCatch(function(x){if(x instanceof _.Aa){var P;
(P=c)==null||P.abort()}return _.Im(x)})};
_.guy=function(B){a:{var c="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(c="EMBEDDED_PLAYER_MODE_PFL");var x=B.raw_embedded_player_response;if(!x&&(B=B.embedded_player_response))try{x=JSON.parse(B)}catch(Y){break a}if(x)b:for(var P in atA)if(atA[P]==x.embeddedPlayerMode){c=atA[P];break b}}return c==="EMBEDDED_PLAYER_MODE_PFL"};
_.sH6=function(){if(_.T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.uLI())return Error("pf");var B=_.v5("PLAYER_VARS",{});if(_.wW.get(B,"privembed",!1)=="1")return Error("qf");if(_.guy(B))return Error("rf")};
ppo=function(B){switch(B){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(B,"unknown result type")}};
_.kwF=function(B,c,x){c=_.MqQ[c];x={detected:B===0,source:c.xmm,detectionResult:ppo(B),contentCpn:x};_.JP("biscottiBasedDetection",x);_.HG4.increment(c.xmm,B);c.ptb!==void 0&&_.FP("CATSTAT",_.y27(B,c))};
_.A_=function(B,c){var x={};x.key=B;x.value=c;return _.m3l().then(function(P){return new Promise(function(Y,g){try{var k=P.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(x);k.onsuccess=function(){Y()};
k.onerror=function(){g()}}catch(n){g(n)}})})};
_.$D8=function(){var B=_.Yu("user_engagement_experiments_rate_limit_ms"),c=Xp6.get("last-user-engagement-exp-trigger-timestamp");return!c||(0,_.BA)()>=c+B?(Xp6.set("last-user-engagement-exp-trigger-timestamp",(0,_.BA)()),!0):!1};
_.u8=function(B,c,x,P,Y){c=c===void 0?null:c;x=x===void 0?null:x;P=P===void 0?null:P;Y=Y===void 0?null:Y;B={youThereEventType:B};x&&(B.lactThresholdMs=x.lactThresholdMs,B.mediaPosSec=x.promptDelaySec,B.lactServerRequestMs=x.lactServerRequestMs,B.triggerReason=x.triggerReason);Y!=null&&(B.renderingMediaPosSec=Math.round(Y));c||(c=_.Wf());c&&(B.clientScreenNonce=c);P&&(B.clientPlaybackNonce=P);_.JP("youThere",B)};
atA={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"};Pp8=function(B){this.xhr=B};
_.i8=function(B,c,x){_.B$.call(this,B+", errorCode="+c);this.errorCode=c;this.xhr=x;this.name="PromiseAjaxError"};
_.w(_.i8,_.B$);var xDs={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Xp6=new _.vA("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.zDs=function(B){return _.YN({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:B})};
}catch(e){_._DumpException(e)}
try{
var GR,$Fz,bBz,Kur,jC6,UF6,qTo,Nio,IiB,Jpi,dFr,ntz,Tiz,mFl,Etr;_.XY6=function(){var B=window.location.hash;B.charAt(0)==="#"&&(B=B.charAt(1)==="!"?B.substring(2):B.substring(1));return _.H5(B)};
GR=function(B,c,x){var P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,c(),2);P=Y.yieldResult;x(P,B);_.Kq(Y)})};
$Fz=function(){return _.X(function(B){return B.nextAddress==1?_.K(B,(_.sH6()!==void 0?_.Im(Error("sf")):_.Y4y()).then(function(){return 1},function(c){if(c.message==="Biscotti id is disabled")return 3;
_.Ob("Failed fetching bid");return 0}),2):B.return(B.yieldResult)})};
bBz=function(){var B=_.eB("eWVyI2ZlZ2xlaW5vYzE3dXl0LWhhdmVuLWVtYmVkLXBsYQ=="),c=_.eB("eDJuN2Rud3hxNHAxaWZyYW1lIw==");return document.querySelector(c+ntz+B)?0:1};
Kur=function(){return _.Nkq(_.HK)};
jC6=function(){return _.I5I()===0?0:_.J2l()};
UF6=function(){return _.ogI(_.uad([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
qTo=function(){return _.qQw(dFr)};
_.CxS=function(B){_.X(function(c){switch(c.nextAddress){case 1:return _.K(c,GR("b.f_",$Fz,B),2);case 2:return _.K(c,GR("j.s_",_.U4X,B),3);case 3:return _.K(c,GR("r.s_",_.by$,B),4);case 4:return _.K(c,GR("e.h_",qTo,B),5);case 5:if(!_.T("ab_det_sc_inj")){c.jumpTo(6);break}return _.K(c,GR("s.i_",_.tqx,B),6);case 6:if(_.T("ab_deg_unex_thr")){c.jumpTo(8);break}return _.K(c,GR("a.o_",_.Tkl,B),8);case 8:if(_.T("ks_get_o_pp")){c.jumpTo(10);break}return _.K(c,GR("g.o_",_.m4$,B),10);case 10:if(_.T("ks_det_gpbl")){c.jumpTo(12);
break}return _.K(c,GR("p.i_",_.hRw,B),12);case 12:return _.K(c,GR("f.i_",_.x4w,B),14);case 14:return _.K(c,GR("a.b_",_.$4Y,B),15);case 15:return _.K(c,GR("p.m_",_.a5C,B),16);case 16:if(!_.T("ab_det_el_h_v2")){c.jumpTo(17);break}return _.K(c,GR("n.h_",UF6,B),17);case 17:return _.K(c,GR("o.p_",Kur,B),19);case 19:return _.K(c,GR("e.i_",bBz,B),20);case 20:if(_.T("ab_det_apm"))return _.K(c,GR("o.a_",jC6,B),0);c.jumpTo(0)}})};
_.hrz=function(B,c){B={videoId:B};c&&(B.playlistId=c);return B};
_.VjA=function(){if(_.uLI()){var B=_.v5("PLAYER_VARS",{});if(_.wW.get(B,"privembed",!1)!="1"&&!_.guy(B)){var c=function(){mFl=!0;"google_ad_status"in window?_.FP("DCLKSTAT",1):_.FP("DCLKSTAT",2)};
try{_.vf("//static.doubleclick.net/instream/ad_status.js",c)}catch(x){}Tiz.push(_.EE.addLowPriorityJob(function(){if(!(mFl||"google_ad_status"in window)){try{_.GiQ("//static.doubleclick.net/instream/ad_status.js",c)}catch(x){}mFl=!0;_.FP("DCLKSTAT",3)}},5E3))}}};
_.M$=function(B,c,x){x=x===void 0?!1:x;var P=Math.max(B.width,_.bzA);if(_.T("kevlar_watch_feed_big_thumbs")&&B.width>=1550-_.lT()&&B.height>=800)P-=_.C7S;else if(B.width>=_.FW){var Y=_.KYz+_.j_i+_.QB;_.T("kevlar_watch_feed_big_thumbs")&&(Y=_.qXo);P-=Y}else P-=_.KYz;P=Math.min(P,_.UoN);Y=240;x&&(Y=380);c<.5624||(!_.T("kevlar_watch_flexy_disable_small_window_sizing")&&(B.height<630&&B.width>=657||B.height>=630&&B.width>=_.FW&&B.width<1327)?Y=360:!_.T("kevlar_watch_flexy_disable_large_window_sizing")&&
B.height>=630&&B.width>=1327&&(Y=480));var g=Math.min(P*c,B.height-(56+_.nar+_.doB));g=Math.max(g,Y);c<1?P=g/c:B.width>=_.FW&&(P=_.M$(B,.5625,x).width);return new _.nH(Math.round(P),Math.round(g))};
_.tji=function(B){var c=0;B.indexOf("h")!=-1&&(B=B.split("h"),c=B[0]*60*60,B=B[1]);B.indexOf("m")!=-1&&(B=B.split("m"),c=B[0]*60+c,B=B[1]);B.indexOf("s")!=-1?(B=B.split("s"),c=B[0]*1+c):c=B*1+c;return c};
_.wYs=function(){_.Yu("service_worker_push_logged_out_prompt_watches")!=-1&&_.BE("WatchCount").then(function(B){B>=100||_.A_("WatchCount",B+1)})};
Nio=function(B){var c=B.externalVideoId||"";return c?B.isShortsEligible?"https://www.youtube.com/shorts/"+c:"https://www.youtube.com/watch?v="+c:""};
IiB=function(B){var c=[];B.viewCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:B.viewCount});B.likeCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:B.likeCount});return c};
Jpi=function(B){var c,x,P={"@context":"https://schema.org","@type":"VideoObject",description:_.iG(B.description),duration:"PT"+(B.lengthSeconds||"0")+"S",embedUrl:B.embed?B.embed.iframeUrl:"",name:_.iG(B.title),thumbnailUrl:((c=B.thumbnail)==null?void 0:(x=c.thumbnails)==null?void 0:x.map(function(q){return q&&q.url||""}))||[],
uploadDate:B.publishDate};_.T("mweb_video_schema_id_killswitch")||(P["@id"]=Nio(B));c=IiB(B);c.length&&(P.interactionStatistic=c);B.category&&(P.genre=B.category);B.ownerChannelName&&(P.author=B.ownerChannelName);B.liveBroadcastDetails&&(P.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:B.liveBroadcastDetails.startTimestamp,endDate:B.liveBroadcastDetails.endTimestamp}]);if(B.learningResource){B=B.learningResource;P["@type"]=["VideoObject","LearningResource"];var Y;if((Y=B.learningResourceType)==
null?0:Y.length)P.learningResourceType=B.learningResourceType[0];var g;if((g=B.educationalAlignment)==null?0:g.length)P.educationalAlignment={"@type":"AlignmentObject",targetName:B.educationalAlignment[0]};var k;if((k=B.educationalLevel)==null?0:k.length){Y=B.educationalLevel[0];var n;if((n=B.educationalLevelCountry)==null?0:n.length)Y+=" ("+B.educationalLevelCountry+")";P.educationalLevel=Y}var b,d;if(((b=B.learningResourceType)==null?0:b.length)&&B.learningResourceType[0]==="Problem walkthrough"&&
((d=B.problemDescriptions)==null?0:d.length))for(P.hasPart=[],n=_.p(B.problemDescriptions),b=n.next();!b.done;b=n.next())Y=b.value,b=Y.problemDescriptionText,d=Y.startOffset,Y=Y.url,b&&d!==void 0&&Y&&P.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:d,url:Y})}return P};
_.Wus=function(B){return _.YN({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:B}})};
dFr=[[["NTNnNXFuaXJwMXByaW1hcnkjMXI=",null,null],[null,["dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNnMms5bGJqN2R0YWR5","eHVzdHlsZS1zY29wZSNtYWp4d3BwOXl1"],null],["YXFtYXN0aGVhZC1hZCMzcnBidWxmb2Yy",["ZXIjNHFwbDZnOHE3b3doeXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjMm50d3pqNjZ2azU5eXRkLXJpY2gtZ3JpZC1yZW5kZXI=","YmZzdHlsZS1zY29wZSMzZ2h5cWZiajQ0"],null],[null,["eXU1azc0bmxhOHFveXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","dXZzdHlsZS1zY29wZSM5eWU1OWlpcGM4"],null],[null,["ZXJlciNycjF2enR1dWQ0NHR5dGQtYWQtc2xvdC1yZW5k"],
null]],[["MWx5OXBsYXllci1hZHMjZG5vb3h3ZGc=",null,null]]];ntz="#";Tiz=[];mFl=!1;_.lis=["engagement-panel-ads"];Etr=new _.A("updateSentimentBarStateCommand");_.OBS=new _.A("showSurveyCommand");_.L1=new _.A("changeMarkersVisibilityCommand");var QCN,FuS,ypB,STl,zr6,Zq;_.otA=function(B,c){this.playerProvider_=B;this.actionSenderElement_=c;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.otA.prototype.reset=function(){QCN(this);this.isUserPredictedAbsent_=!1};
QCN=function(B,c){!B.youThereData_||B.showWarningJob_||c!==void 0&&c||(_.u8("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Wf(),B.youThereData_,B.clientPlaybackNonce_),_.Wo());_.EE.cancelJob(B.showWarningJob_);B.showWarningJob_=0;_.EE.cancelJob(B.showBlockingWarningJob_);B.showBlockingWarningJob_=0;_.EE.cancelJob(B.pausePlaybackJob_);B.pausePlaybackJob_=0;B.youThereData_=null;B.clientPlaybackNonce_=void 0;B.inYouThereFlow_=!1};
_.vty=function(B,c){var x,P,Y;_.X(function(g){if(g.nextAddress==1)return B.reset(),_.K(g,B.playerProvider_().getPlayerPromise(),2);x=g.yieldResult;B.clientPlaybackNonce_=x.getVideoData().cpn;B.youThereData_=c.configData.youThereData;if(!B.youThereData_)return g.return();if(B.youThereData_.triggerReason&&B.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.$D8())return _.u8("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Wf(),B.youThereData_,B.clientPlaybackNonce_),g.return();P=B.youThereData_.promptDelaySec;
Y=x.getCurrentTime();B.showWarningJob_=_.EE.addLowPriorityJob(function(){return _.X(function(k){B.showWarningJob_=0;return _.K(k,FuS(B),0)})},Math.max(P-Y,0)*1E3);
_.Kq(g)})};
FuS=function(B){var c,x,P,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return _.K(n,B.playerProvider_().getPlayerPromise(),2);if(n.nextAddress!=3)return c=n.yieldResult,x=c.getCurrentTime(),_.K(n,zr6(B),3);P=n.yieldResult;if(!P||!B.youThereData_)return n.return();if(_.T("check_user_lact_at_prompt_shown_time_on_web")&&(Y=parseInt(B.youThereData_.lactThresholdMs,10),_.co()<Y))return _.u8("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Wf(),B.youThereData_,B.clientPlaybackNonce_),n.return();if(B.youThereData_.playbackPauseDelayMs<=
0)return STl(B),n.return();!_.T("external_fullscreen")&&(g=_.cr())&&(B.ignoreFullscreenExitUserActivity_=!0,_.EE.addLowPriorityJob(function(){B.ignoreFullscreenExitUserActivity_=!1},2E3),_.xC(g));
B.youThereData_.showToastWarningPrompt&&(Zq(B,B.youThereData_.showWarningActions),B.inYouThereFlow_=!0,_.u8("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Wf(),B.youThereData_,B.clientPlaybackNonce_,x),_.u8("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Wf(),B.youThereData_,B.clientPlaybackNonce_,x));k=0;B.youThereData_.blockingPromptDelayMs&&(k=B.youThereData_.blockingPromptDelayMs);B.showBlockingWarningJob_=_.EE.addLowPriorityJob(function(){return _.X(function(b){B.showBlockingWarningJob_=0;return _.K(b,
ypB(B),0)})},k);
_.Kq(n)})};
ypB=function(B){var c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,zr6(B),2);c=Y.yieldResult;if(!B.youThereData_)return Y.return();c&&(B.youThereData_.showBlockingWarningAction&&(_.u8("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Wf(),B.youThereData_,B.clientPlaybackNonce_),(x=_.t(B.youThereData_.showBlockingWarningAction,_.nW))?Zq(B,x.commands):Zq(B,[B.youThereData_.showBlockingWarningAction]),B.inYouThereFlow_=!0),P=B.youThereData_.playbackPauseDelayMs,B.pausePlaybackJob_=
_.EE.addLowPriorityJob(function(){return _.X(function(g){B.pausePlaybackJob_=0;return _.K(g,STl(B),0)})},P));
_.Kq(Y)})};
STl=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,zr6(B),2);c=x.yieldResult;if(!B.youThereData_)return x.return();c&&(_.u8("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Wf(),B.youThereData_,B.clientPlaybackNonce_),Zq(B,B.youThereData_.showPausedActions),B.inYouThereFlow_=!0);_.Kq(x)})};
_.otA.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var B=_.t(this.youThereData_.userActiveDuringFlowAction,_.nW);B?Zq(this,B.commands):Zq(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.u8("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Wf(),this.youThereData_,this.clientPlaybackNonce_),_.Wo());QCN(this,!0)}_.Gds(this,!1)};
_.Mjs=function(B){_.u8("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Wf(),B.youThereData_,B.clientPlaybackNonce_)};
zr6=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.playerProvider_().getPlayerPromise(),2);c=P.yieldResult;x=c.getPlayerState();return P.return(x==-1||x==1||x==3)})};
_.Gds=function(B,c){var x;_.X(function(P){if(P.nextAddress==1){if(B.isUserPredictedAbsent_==c)return P.jumpTo(0);B.isUserPredictedAbsent_=c;return _.K(P,B.playerProvider_().getPlayerPromise(),3)}x=P.yieldResult;x.setUserEngagement(c);c&&_.u8("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Wf(),B.youThereData_,B.clientPlaybackNonce_);_.Kq(P)})};
Zq=function(B,c){if(_.T("handle_service_request_actions")||_.T("kevlar_youthere_service_endpoint_actions_killswitch"))_.XX(B.actionSenderElement_,c,B.actionSenderElement_);else{c=_.p(c);for(var x=c.next();!x.done;x=c.next())x=x.value,x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.kC(B.actionSenderElement_,[x]):_.XX(B.actionSenderElement_,[x],B.actionSenderElement_)}};var Lu8;var ZBr;var Hm=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return B};
_.w(Hm,_.z);Hm.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var B=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(B=this.data.percentIfLiked||0,this.activated=!0):(B=this.data.percentIfIndifferent||0,this.activated=!1);_.Y9(this.hostElement).querySelector("#like-bar").style.width=B+"%"}};
Hm.prototype.handleUpdateSentimentBarStateCommand=function(B){this.data&&this.set("data.likeStatus",_.t(B,Etr).likeStatus)};
Hm.prototype.observeLikeStatus=Hm.prototype.observeLikeStatus;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Hm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Hm.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Hm.prototype,"activated",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Hm.prototype,"systemIcons",void 0);_.L([_.bF("data.likeStatus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hm.prototype,"observeLikeStatus",null);_.L([_.y({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Hm);
_.G(Hm,"ytd-sentiment-bar-renderer",function(){if(ZBr!==void 0)return ZBr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ZBr=B},{mode:1});var HBF;var f1=function(){var B=_.z.apply(this,arguments)||this;B.small=!0;return B};
_.w(f1,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],f1.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],f1.prototype,"small",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],f1);
_.G(f1,"ytd-video-view-count-renderer",function(){if(HBF!==void 0)return HBF;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HBF=B},{mode:_.sL("kevlar_poly_si_batch_j080")?1:2});var A1=function(){var B=_.z.apply(this,arguments)||this;B.infoFormattedStrings=[];B.wrapVideoActions=_.T("kevar_watch_wrap_video_actions");B.hideSentimentBar=_.T("kevlar_watch_hide_sentiment_bar");B.actionMap={};return B};
_.w(A1,_.z);_.a=A1.prototype;_.a.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.a.dataChanged=function(){_.T("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.a.computeInfoFormattedStrings=function(B){if(!B)return[];var c=[];B.dateText&&c.push(B.dateText);B.stationName&&c.push(B.stationName);B.rating&&c.push(B.rating);B.startEndTimeTemplate&&B.startTimeUtcMillis&&B.endTimeUtcMillis&&c.push(_.fk(_.EhS(_.iG(B.startEndTimeTemplate),Number(B.startTimeUtcMillis),Number(B.endTimeUtcMillis))));B.upNextProgramText&&c.push(B.upNextProgramText);return c};
_.a.scheduleInitialUpdatedMetadataRequest=function(){var B,c=(B=this.data)==null?void 0:B.updatedMetadataEndpoint;if(c){var x;B=Number((x=_.t(c,_.Hdt))==null?void 0:x.initialDelayMs);x=isNaN(B)?250:B;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),x)}};
_.a.setSentimentBarWidth=function(){var B=this;_.fl(this,function(){var c=_.Y9(B.hostElement).querySelector("ytd-menu-renderer");if(c){c=c.topLevelButtons;for(var x=0,P=0;P<c.length;P++){var Y=c[P],g=B.get("toggleButtonSupportedData.toggleButtonIdData.id",Y.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")x+=Y.clientWidth+8;else break}x&&(B.sentiment.style.width=x-8+" px")}})};
_.a.fetchUpdatedMetadata=function(B){var c;B&&(c={continuation:B});var x;(B=(x=this.data)==null?void 0:x.updatedMetadataEndpoint)&&_.cp().resolve(_.xu).resolveCommand(B,{form:Object.assign({},c,{element:this.hostElement})})};
_.a.onYtServiceRequestSent=function(B,c){c.endpoint&&_.t(c.endpoint,_.ij)&&(this.hasUpdateSentimentBarStateCommands()&&!_.T("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.t(c.endpoint,_.ij).status),this.setSentimentBarWidth())};
_.a.hasUpdateSentimentBarStateCommands=function(){var B,c,x,P,Y=(P=(B=this.data)==null?void 0:(c=B.videoActions)==null?void 0:(x=c.menuRenderer)==null?void 0:x.topLevelButtons)!=null?P:[];B=_.p(Y);for(c=B.next();!c.done;c=B.next()){c=c.value;Y=P=x=void 0;var g=(x=c.toggleButtonRenderer)==null?void 0:(P=x.toggleButtonSupportedData)==null?void 0:(Y=P.toggleButtonIdData)==null?void 0:Y.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){P=x=void 0;c=(P=_.t((x=c.toggleButtonRenderer)==
null?void 0:x.defaultServiceEndpoint,_.nW))==null?void 0:P.commands;if(!c)break;c=_.p(c);for(x=c.next();!x.done;x=c.next())if(_.t(x.value,Etr))return!0}}return!1};
_.a.onYtServiceRequestCompleted=function(B,c){var x;(B=(x=c.data)==null?void 0:x.loggingDirectives)&&_.V8q(_.q_(),B);this.get("continuation.timedContinuationData",c.data)&&this.data&&this.data.updatedMetadataEndpoint&&(c=c.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,c.continuation),c.timeoutMs))};
_.a.computeHasDateText=function(B){return!!B&&!!B.dateText};
_.AJ.Object.defineProperties(A1.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return!((P=(B=this.data)==null?void 0:(c=B.videoActions)==null?void 0:(x=c.menuRenderer)==null?void 0:x.flexibleItems)==null||!P.length)}}});
A1.prototype.onYtServiceRequestCompleted=A1.prototype.onYtServiceRequestCompleted;A1.prototype.onYtServiceRequestSent=A1.prototype.onYtServiceRequestSent;A1.prototype.dataChanged=A1.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],A1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.xJ.YtTaskEmitterBehavior),_.H("design:type",Object)],A1.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],A1.prototype,"data",void 0);_.L([_.F({computed:"computeInfoFormattedStrings(data)"}),_.H("design:type",Array)],A1.prototype,"infoFormattedStrings",void 0);
_.L([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],A1.prototype,"hasDateText",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],A1.prototype,"wrapVideoActions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],A1.prototype,"hideSentimentBar",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],A1.prototype,"flexMenuEnabled",null);
_.L([_.jr("#sentiment"),_.H("design:type",Object)],A1.prototype,"sentiment",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A1.prototype,"dataChanged",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],A1.prototype,"onYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],A1.prototype,"onYtServiceRequestCompleted",null);
_.G(A1,"ytd-video-primary-info-renderer",function(){if(Lu8===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);Lu8=B}B=Lu8;return B},{mode:1});var fiz;var uf=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return B};
_.w(uf,_.z);_.a=uf.prototype;_.a.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"}}}};
_.a.dataChanged=function(){var B;this.descriptionToggled=!((B=this.data)==null||!B.defaultExpanded);var c;this.collapsed=this.descriptionAlwaysCollapsed||!((c=this.data)==null?0:c.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.JW(110509);this.showLessClientVe=_.JW(110510);B=_.Wf();c=_.Jg();B&&c&&_.M9(B,c,[this.showMoreClientVe,this.showLessClientVe])};
_.a.onYtExpanderMoreTapped=function(){var B,c=(B=this.data)==null?void 0:B.showMoreCommand;c&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(c);(B=_.Wf())&&this.showMoreClientVe&&_.fW(B,this.showMoreClientVe)};
_.a.onYtExpanderLessTapped=function(){var B=_.Wf();B&&this.showLessClientVe&&_.fW(B,this.showLessClientVe);var c;(B=(c=this.data)==null?void 0:c.showLessCommand)&&this.componentBehavior.resolveCommand(B)};
_.a.handleUpdateDateTextAction=function(B){this.data&&this.data.dateText&&this.set("data.dateText",_.t(B,_.gaz).dateText)};
_.a.handleUpdateDescriptionAction=function(B){if(B=_.t(B,_.v5Q))B.isEmpty||!B.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.OL(B.description)):this.set("data.description",B.description)};
_.a.onYtChangeEngagementPanelVisibilityAction=function(B){if(_.T("web_structured_description_show_more")||_.T("web_engagement_panel_open_description")){var c,x=(c=_.t(B,_.t2d))==null?void 0:c.targetId,P;B=((P=_.t(B,_.t2d))==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";x==="engagement-panel-structured-description"&&B&&(this.descriptionToggled=!0)}};
_.a.updateCollapsedFromBinding=function(B){this.collapsed=B.detail.value};
_.a.updateDescriptionToggledFromBinding=function(B){this.descriptionToggled=B.detail.value};
_.a.updateCanCollapseFromBinding=function(B){this.canCollapse=B.detail.value};
_.AJ.Object.defineProperties(uf.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer;return!!x&&!!x.rows&&x.rows.length>x.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.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}}});
uf.prototype.onYtExpanderLessTapped=uf.prototype.onYtExpanderLessTapped;uf.prototype.onYtExpanderMoreTapped=uf.prototype.onYtExpanderMoreTapped;uf.prototype.dataChanged=uf.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],uf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],uf.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uf.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],uf.prototype,"collapsed",void 0);_.L([_.F(),_.H("design:type",Boolean)],uf.prototype,"descriptionToggled",void 0);
_.L([_.F(),_.H("design:type",Boolean)],uf.prototype,"canCollapse",void 0);_.L([_.F(),_.H("design:type",Object)],uf.prototype,"subscribeButtonData",void 0);_.L([_.F(),_.H("design:type",Number)],uf.prototype,"descriptionCollapsedHeight",void 0);_.L([_.F(),_.H("design:type",Object)],uf.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.F({value:function(){return _.T("web_watch_description_always_collapsed")}}),
_.H("design:type",Boolean)],uf.prototype,"descriptionAlwaysCollapsed",void 0);_.L([_.jr("#description"),_.H("design:type",HTMLDivElement)],uf.prototype,"description",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uf.prototype,"dataChanged",null);_.L([_.nF("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uf.prototype,"onYtExpanderMoreTapped",null);
_.L([_.nF("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uf.prototype,"onYtExpanderLessTapped",null);_.L([_.Q("data.metadataRowContainer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"metadataCollapsible",null);_.L([_.Q("data","structuredDescriptionContentRenderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"hasInlineStructuredDescription",null);
_.L([_.Q("data.attributedDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"hasAttributedDescription",null);_.L([_.Q("hasInlineStructuredDescription","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"loadStructuredDescription",null);_.L([_.Q("data","structuredDescriptionContentRenderer","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"showInlineStructuredDescription",null);
_.L([_.Q("data","hasInlineStructuredDescription","metadataCollapsible"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uf.prototype,"descriptionAlwaysCollapsible",null);
_.G(uf,"ytd-video-secondary-info-renderer",function(){if(fiz===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);fiz=B}B=fiz;return B},{mode:2});var iBo;var Dq=function(){return _.z.apply(this,arguments)||this};
_.w(Dq,_.z);Dq.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:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Dq.prototype.activate=function(B){B.appendTo(this.player);B.getPlayerPromise().then(function(c){c.setMinimized(!0)});
this.active=!0};
Dq.prototype.deactivate=function(){var B=this.player.firstElementChild;B.getPlayerPromise().then(function(c){c.setMinimized(!1)});
this.active=!1;return B};
Dq.prototype.onScrollUpTap=function(){var B=_.cp().resolve(_.rV).getCurrentPage();B&&B.setScrollTop(0)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Dq.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Dq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Dq.prototype,"active",void 0);
_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.H("design:type",Boolean)],Dq.prototype,"darkLaunch",void 0);_.L([_.jr("#player"),_.H("design:type",HTMLDivElement)],Dq.prototype,"player",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Dq);
_.G(Dq,"ytd-miniplayer-bar-renderer",function(){if(iBo!==void 0)return iBo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return iBo=B},{mode:1});_.xU(_.rM(function(B){var c=_.Ho("script");_.IO(function(){var x;if(x=JSON)x=Jpi(B.data()),x=_.ST(JSON.stringify(x).replace(/</g,"\\u003C"));var P=B.data(),Y=_.iG(P.title).trim().length===0,g=!P.publishDate||P.publishDate.trim().length===0,k,n,b,d,q=!((k=P.thumbnail)==null?0:(n=k.thumbnails)==null?0:n.length)||!((b=P.thumbnail)==null?0:b.thumbnails[0].url)||((d=P.thumbnail)==null?void 0:d.thumbnails[0].url.trim().length)===0;c.value&&x&&!(Y||g||q)&&_.Gz(c.value,x)},"I9AhLd");
return _.U("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.U("script",{el:c,type:"application/ld+json"}))},"wj"),"player-microformat-renderer",{props:{data:_.cw}});
}catch(e){_._DumpException(e)}
try{
var sC6;_.cpA=function(B){return B.watch.watchWindowSize};
_.xFz=function(B){return _.YN({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:B}})};
sC6=function(B){_.tG.call(this);var c=this;this.JSC$20511_watchApi=B;B=_.C0(_.uG(),_.ZoO,function(){Pxo(c)});
this.addOnDisposeCallback(B);B=_.C0(_.uG(),_.cpA,function(){Pxo(c)});
this.addOnDisposeCallback(B);YTi(this);aiS(this);gtr()};
_.w(sC6,_.tG);var YTi=function(B){var c=function(P){_.uG().dispatch(_.wQl(P.matches))},x=window.matchMedia("(max-width: "+(999+_.lT())+"px)");
x.addListener(c);B.addOnDisposeCallback(function(){x.removeListener(c)});
c(x)},aiS=function(B){B.JSC$20511_watchApi.registerActionHandler("yt-window-resized",function(){gtr()});
B.addOnDisposeCallback(function(){B.JSC$20511_watchApi.unregisterActionHandler("yt-window-resized")})},gtr=function(){var B=_.mz();
_.uG().dispatch(_.YN({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:B.width,height:B.height}}}))},Pxo=function(B){var c;
_.X(function(x){if(x.nextAddress==1)return _.K(x,B.JSC$20511_watchApi.playerApi,2);c=x.yieldResult;c.setSize(NaN,NaN);_.Kq(x)})};_.zR=function(B){_.rs.call(this);var c=this;this.rootElement=B;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(x){c.initOrDisposeActiveModules(x)}));
this.onAttached()};
_.w(_.zR,_.rs);_.a=_.zR.prototype;_.a.getRoot=function(){return this.rootElement};
_.a.getElement=function(B){return this.rootElement.getElement(B)};
_.a.setPlayerResponse=function(B){this.playerResponse=B;this.publish("PLAYER_RESPONSE_UPDATED",B)};
_.a.getPlayerResponse=function(){return this.playerResponse};
_.a.setWatchNextResponse=function(B){this.watchNextResponse===B?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=B,this.publish("WATCH_NEXT_RESPONSE_UPDATED",B))};
_.a.getWatchNextResponse=function(){return this.watchNextResponse};
_.a.registerActionHandler=function(B,c){var x=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.Ma(_.Gr.getInstance(),(P[B]=c,P),this.getRoot())}else this.actionHandlers.has(B)||(this.actionHandlers.set(B,[]),P={},_.Ma(_.Gr.getInstance(),(P[B]=function(){var Y=_.ts.apply(0,arguments);return(x.actionHandlers.get(B)||[]).map(function(g){return g.apply(null,_.wq(Y))})},P),this.getRoot())),this.actionHandlers.get(B).push(c)};
_.a.unregisterActionHandler=function(B){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.LE(_.Gr.getInstance(),(c[B]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(B))?(c.pop(),c.length===0&&(c={},_.LE(_.Gr.getInstance(),(c[B]=!0,c),this.getRoot()),this.actionHandlers.delete(B))):_.Ob(new _.mc("Attempted to unregister an action handler which is not registered.",B))};
_.a.addPageDisposeJob=function(B){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.fx(this.rootElement.pageDisposeJobs,B)};
_.a.removePageDisposeJob=function(B){this.rootElement.pageDisposeJobs&&_.Ao(this.rootElement.pageDisposeJobs,B)};
_.a.dispatchEvent=function(B,c){_.aJ(this.rootElement,B,c)};
_.a.provideRenderingData=function(B,c){this.rootElement.provideRenderingData(B,c)};
_.a.scrollWatchTo=function(B,c){var x;(x=this.watchScrollManager)==null||x.scrollWatchTo(B,c)};
_.a.focusOnPlayer=function(){var B=this.getElement("PLAYER");_.fl(B,function(){if(B&&B.firstElementChild){var c=B.querySelector(".html5-video-player");c&&(_.rZ(_.cp().resolve(_.lv)),c.focus())}else _.Ob(Error("mm"))})};
_.a.updateCinematicFullscreenConfig=function(){var B=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,x;(x=this.watchCinematicManager)==null||_.cqz(x,c,B)};
_.a.subscribeToActiveChanged=function(B,c){c=c===void 0?!0:c;var x=_.C0(_.uG(),_.OeN,function(P){B(P)});
c&&B(_.OeN(_.uG().getState()));return x};
_.a.isActive=function(){return _.OeN(_.uG().getState())};
_.a.onAttached=function(){var B=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(B=_.cp().resolve(_.UQN).retriever.getFlag(_.BWW));(B||_.zu("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var pYs=function(B){return B.getRoot().is==="ytd-watch-flexy"||B.getRoot().is==="ytd-watch-grid"},S7=function(B){return B.getRoot().is==="ytd-watch-fixie"};
_.zR.prototype.initPersistentModules=function(){if(S7(this)||pYs(this)&&_.T("kevlar_watch_flexy_theater_manager")){var B=new _.W6A(this);_.bW(this,B)}B=new _.Kdz(this);_.bW(this,B);B=new _.I6(this);_.bW(this,B);B=new _.Qv(this);_.bW(this,B);B=new _.Ldz(this);_.bW(this,B);B=new _.Wm(this);_.bW(this,B);if(S7(this)||pYs(this)&&_.T("kevlar_watch_flexy_playlist_manager"))B=new _.f2r(this),_.bW(this,B)};
_.zR.prototype.initOrDisposeActiveModules=function(B){B?(this.watchScrollManager=new _.vm(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Jqs(this)),this.activeModules.push(new _.onl(this)),S7(this)&&this.activeModules.push(new sC6(this)),this.activeModules.push(new _.Rao(this)),this.activeModules.push(new _.F7(this)),(S7(this)||_.T("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.zgz(this)),this.activeModules.push(new _.Q4l(this)),
(S7(this)||_.T("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Bil(this)),(S7(this)||_.T("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.fHB(this)),_.T("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.rLF(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.SKy(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.neo(this)),
B=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!B&&this.activeModules.push(new _.s4A(this)),_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.J1(this)),this.activeModules.push(new _.zxo(this)),this.activeModules.push(new _.l2r(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new _.Mt8(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.X9i(this)),
_.T("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.cLN(this)),_.T("web_fullscreen_components")&&this.activeModules.push(new _.MaF(this)),_.T("web_player_rtr_ctrls")&&this.activeModules.push(new _.nQF(this))):(_.ek(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.zR.prototype.disposeInternal=function(){_.rs.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.AJ.Object.defineProperties(_.zR.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var TsA,tL,VG6,tGA,NsB,IR8,wES,J_z;TsA=function(){var B=_.m5();B.info||(B.info={});return B.info};
tL=function(B){return Math.round(_.wj()+B)};
VG6=function(){var B;if(_.T("csi_use_performance_navigation_timing")){var c,x,P,Y=_.ti==null?void 0:(B=_.ti.getEntriesByType)==null?void 0:(c=B.call(_.ti,"navigation"))==null?void 0:(x=c[0])==null?void 0:(P=x.toJSON)==null?void 0:P.call(x);Y?(Y.requestStart=tL(Y.requestStart),Y.responseEnd=tL(Y.responseEnd),Y.redirectStart=tL(Y.redirectStart),Y.redirectEnd=tL(Y.redirectEnd),Y.domainLookupEnd=tL(Y.domainLookupEnd),Y.connectStart=tL(Y.connectStart),Y.connectEnd=tL(Y.connectEnd),Y.responseStart=tL(Y.responseStart),
Y.secureConnectionStart=tL(Y.secureConnectionStart),Y.domainLookupStart=tL(Y.domainLookupStart),Y.isPerformanceNavigationTiming=!0,B=Y):B=_.ti.timing}else B=_.T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.ti.timing)):_.ti.timing;return B};
tGA=function(){if(_.ti.getEntriesByType){var B=_.ti.getEntriesByType("paint");if(B=_.z7(B,function(x){return x.name==="first-paint"}))return tL(B.startTime)}var c;
_.T("csi_use_performance_navigation_timing")?c=_.ti.getEntriesByType("first-paint")[0].startTime:c=_.ti.timing.msFirstPaint;return c?Math.max(0,c):0};
NsB=function(){var B=window.location.protocol,c=_.ti.getEntriesByType("resource");c=_.kV(c,function(x){return x.name.indexOf(B+"//fonts.gstatic.com/s/")===0});
(c=wES(c,function(x,P){return P.duration>x.duration?P:x}))&&c.startTime>0&&c.responseEnd>0&&(_.N9("wffs",tL(c.startTime)),_.N9("wffe",tL(c.responseEnd)))};
IR8=function(B,c){B=document.querySelector(B);if(!B)return!1;var x="",P=B.nodeName;P==="SCRIPT"?(x=B.src,x||(x=B.getAttribute("data-timing-href"))&&(x=window.location.protocol+x)):P==="LINK"&&(x=B.href);_.F_(document)&&B.setAttribute("nonce",_.F_(document));return x?(B=_.ti.getEntriesByName(x))&&B[0]&&(B=B[0],x=_.wj(),_.N9("rsf_"+c,x+Math.round(B.fetchStart)),_.N9("rse_"+c,x+Math.round(B.responseEnd)),B.transferSize!==void 0&&B.transferSize===0)?!0:!1:!1};
_.wS=function(B,c){_.ya(function(){_.Vj("").info.actionType=B;c&&_.FP("TIMING_AFT_KEYS",c);_.FP("TIMING_ACTION",B);var x=_.yrO(_.v5("TIMING_INFO",{}));Object.keys(x).length>0&&_.IJ(x);x={isNavigation:!0,actionType:_.NBO(_.v5("TIMING_ACTION"))};var P=_.v5("PREVIOUS_ACTION");P&&(x.previousAction=_.NBO(P));if(P=_.v5("CLIENT_PROTOCOL"))x.httpProtocol=P;if(P=_.v5("CLIENT_TRANSPORT"))x.transportProtocol=P;(P=_.Wf())&&P!=="UNDEFINED_CSN"&&(x.clientScreenNonce=P);P=_.SNX();if(P===1||P===-1)x.isVisible=!0;
P=_.qN$().loadType==="cold";var Y=TsA();P||(P=Y.yt_lt==="cold");if(P){x.loadType="cold";P=TsA();Y=VG6();var g=_.wj(),k=_.v5("CSI_START_TIMESTAMP_MILLIS",0);k>0&&!_.T("embeds_web_enable_csi_start_override_killswitch")&&(g=k);g&&(_.N9("srt",Y.responseStart),P.prerender!==1&&_.Efl(g));P=tGA();P>0&&_.N9("fpt",P);P=VG6();P.isPerformanceNavigationTiming&&_.IJ({performanceNavigationTiming:!0},void 0);_.N9("nreqs",P.requestStart,void 0);_.N9("nress",P.responseStart,void 0);_.N9("nrese",P.responseEnd,void 0);
P.redirectEnd-P.redirectStart>0&&(_.N9("nrs",P.redirectStart,void 0),_.N9("nre",P.redirectEnd,void 0));P.domainLookupEnd-P.domainLookupStart>0&&(_.N9("ndnss",P.domainLookupStart,void 0),_.N9("ndnse",P.domainLookupEnd,void 0));P.connectEnd-P.connectStart>0&&(_.N9("ntcps",P.connectStart,void 0),_.N9("ntcpe",P.connectEnd,void 0));P.secureConnectionStart>=_.wj()&&P.connectEnd-P.secureConnectionStart>0&&(_.N9("nstcps",P.secureConnectionStart,void 0),_.N9("ntcpe",P.connectEnd,void 0));_.ti&&"getEntriesByType"in
_.ti&&NsB();P=[];if(document.querySelector&&_.ti&&_.ti.getEntriesByName)for(var n in J_z)J_z.hasOwnProperty(n)&&(Y=J_z[n],IR8(n,Y)&&P.push(Y));if(P.length>0)for(x.resourceInfo=[],n=_.p(P),P=n.next();!P.done;P=n.next())x.resourceInfo.push({resourceCache:P.value})}_.IJ(x);x=_.Tq();x.preLoggedGelInfos||(x.preLoggedGelInfos=[]);n=x.preLoggedGelInfos;x=_.hBq();P=void 0;for(Y=0;Y<n.length;Y++)if(g=n[Y],g.loadType){P=g.loadType;break}if(_.qN$().loadType==="cold"&&(x.loadType==="cold"||P==="cold")){P=_.CMX();
Y=_.Tq();Y=Y.gelTicks?Y.gelTicks:Y.gelTicks={};for(var b in P)if(!(b in Y))if(typeof P[b]==="number")_.N9(b,_.Ji(b));else if(_.T("log_repeated_ytcsi_ticks"))for(g=_.p(P[b]),k=g.next();!k.done;k=g.next())k=k.value,_.N9(b.slice(1),k);b={};P=!1;n=_.p(n);for(Y=n.next();!Y.done;Y=n.next())P=Y.value,_.os(x,P),_.os(b,P),P=!0;P&&_.IJ(b)}_.ZOA(!0);b=_.v5("TIMING_ACTION");_.Gu("ytglobal.timingready_")&&b&&_.BRY()&&_.Ltl()&&_.vfx()})()};
wES=function(B,c){return Array.prototype.reduce.call(B,c,{duration:0})};
J_z={'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 WJo={};WJo.YtVisibilityRootBehavior=[_.SJy.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.R3(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.v5("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var B=_.v5("INNERTUBE_CLIENT_NAME")!=="WEB";_.T("kevlar_use_vimio_behavior")&&B&&_.vJ0()}}];_.N1={};_.N1.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(B){B.detail.contextProvider=this;B.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
WJo.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Hw();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(B){var c=this;this.pageCount+=1;_.T("kevlar_use_vimio_behavior")&&(_.v5("INNERTUBE_CLIENT_NAME")==="WEB"?_.EE.addJob(function(){c.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(B)},
loadPage_:function(B){this.data=B},
ytPageBehaviorActiveObserver_:function(B){var c=this;_.T("kevlar_use_vimio_behavior")&&(B?_.v5("INNERTUBE_CLIENT_NAME")==="WEB"?_.EE.addJob(function(){c.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(B){if(!this.setScrollTopJobId_){var c=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){c.setScrollTopJobId_=0;var x=_.cp().resolve(_.Bp(_.lv));x&&_.rZ(x);this.getPageScrollingElement().scrollTop=B}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.wp(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var mKS;var VJ=function(){var B=_.z.apply(this,arguments)||this;B.playerListenerConfig=null;B.actionMap={"yt-show-watch-page-survey":"openSurvey"};return B};
_.w(VJ,_.z);_.a=VJ.prototype;_.a.dataChanged=function(){var B=this,c=_.e5();c&&c.getPlayerPromise().then(function(P){B.maybeRemovePlayerListeners(P)});
var x=this.data&&this.data.survey;x&&((x=(x=x.singleOptionSurveyRenderer||x.checkboxSurveyRenderer||x.multiStageSurveyRenderer)&&x.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(c,x):this.openSurvey())};
_.a.triggerWatchPageSurvey=function(B,c){var x=this,P,Y,g,k,n,b,d,q,C;return _.X(function(h){if(h.nextAddress==1)return B?_.K(h,B.getPlayerPromise(),2):h.return();x.player=h.yieldResult;if(!x.player)return h.return();P={};Y=_.p(c);for(g=Y.next();!g.done;g=Y.next())k=g.value,n=_.p(x.createEventListenerPair(k)),b=n.next().value,d=n.next().value,q=b,C=d,q&&C&&(P[q]=C,x.ytPlayerListenerBehavior.listenToPlayerEvent(x.player,q,C));x.playerListenerConfig=P;_.Kq(h)})};
_.a.createEventListenerPair=function(B){var c=B.playbackEventTrigger;return c?this.handlePlaybackTrigger(c):(B=B.watchTimeTrigger)?this.handleWatchTimeTrigger(B):[void 0,void 0]};
_.a.handleWatchTimeTrigger=function(B){var c=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var x=B.videoWatchFraction,P=B.watchTimeSec;return P&&x?["onVideoProgress",function(){c.player&&c.isWatchTimeConditionMet(c.player,x,P)&&c.showSurvey()}]:[void 0,
void 0]};
_.a.isWatchTimeConditionMet=function(B,c,x){var P=B.getProgressState(),Y=P.current-this.lastKnownPlaybackPosition;Y<5&&(this.accumulatedMediaTime+=Y);this.lastKnownPlaybackPosition=P.current;P=Math.round(this.accumulatedMediaTime/P.duration*1E3)/1E3;return B.getPresentingPlayerType&&B.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>x||P>c)};
_.a.handlePlaybackTrigger=function(B){var c=this;B=B.playbackEvent;if(B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var x="onStateChange";var P=function(Y){Y===0&&c.showSurvey()}}else B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(x="onVideoProgress",P=function(Y){c.player&&c.player.getPresentingPlayerType&&c.player.getPresentingPlayerType()===1&&Y&&c.showSurvey()}):B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(x="onAdEnd",P=this.showSurvey);
return[x,P]};
_.a.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.a.openSurvey=function(){var B=this,c=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.zDs(!!c));_.EE.addJob(function(){B.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:c}})},0,0)};
_.a.maybeRemovePlayerListeners=function(B){if(this.playerListenerConfig){for(var c=_.p(Object.keys(this.playerListenerConfig)),x=c.next();!x.done;x=c.next())x=x.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(B,x,this.playerListenerConfig[x]);this.playerListenerConfig=null}};
VJ.prototype.dataChanged=VJ.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],VJ.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],VJ.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],VJ.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VJ.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],VJ.prototype,"playerListenerConfig",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],VJ.prototype,"lastKnownPlaybackPosition",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],VJ.prototype,"accumulatedMediaTime",void 0);_.L([_.F(),_.H("design:type",Object)],VJ.prototype,"player",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VJ.prototype,"dataChanged",null);_.L([_.y({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],VJ);
_.G(VJ,"ytd-survey-trigger-renderer",function(){if(mKS!==void 0)return mKS;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mKS=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
var KZF=new _.A("promotedSparklesWebRenderer");var jK8=new _.A("relatedChipCommand");var Uu6;var duz;var UT=function(){return _.z.apply(this,arguments)||this};
_.w(UT,_.z);UT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UT.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],UT);
_.G(UT,"ytd-compact-tvfilm-entry-point-renderer",function(){if(duz!==void 0)return duz;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return duz=B},{mode:1});var q8y;var Csy;var hoB;var di=function(){return _.z.apply(this,arguments)||this};
_.w(di,_.z);di.prototype.ready=function(){this.initializeDefs()};
di.prototype.initializeDefs=function(){var B=this.meta.byKey("yt-icons"),c=_.Y9(B).querySelector("#star"),x=_.Y9(B).querySelector("#star_half");B=_.Y9(B).querySelector("#star_border");c&&this.defs.appendChild(c.cloneNode(!0));x&&this.defs.appendChild(x.cloneNode(!0));B&&this.defs.appendChild(B.cloneNode(!0))};
di.prototype.percentChanged=function(){for(var B=this.rating;B.firstChild;)B.removeChild(B.firstChild);var c=Math.round(this.percent/10);B=Math.floor(c/2);c%=2;var x=5-B-c;this.appendStars("star",B,0);this.appendStars("star_half",c,B);this.appendStars("star_border",x,B+c)};
di.prototype.appendStars=function(B,c,x){for(var P=0;P<c;P++){var Y=(18+this.spacing)*(P+x),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.SIs(g,"#"+B);g.setAttribute("x",""+Y);g.setAttribute("y","0");this.rating.appendChild(g)}};
di.prototype.percentChanged=di.prototype.percentChanged;_.L([_.jr("#defs"),_.H("design:type",HTMLElement)],di.prototype,"defs",void 0);_.L([_.jr("#rating"),_.H("design:type",HTMLElement)],di.prototype,"rating",void 0);_.L([_.F(),_.H("design:type",Number)],di.prototype,"percent",void 0);_.L([_.F({value:6}),_.H("design:type",Number)],di.prototype,"spacing",void 0);_.L([_.F({value:_.V8.create("iron-meta",{type:"iconset"})}),_.H("design:type",_.J4)],di.prototype,"meta",void 0);
_.L([_.bF("percent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],di.prototype,"percentChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-ratings"})],di);
_.G(di,"ytd-ratings",function(){if(hoB!==void 0)return hoB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return hoB=B},{mode:1});var qF=function(){return _.z.apply(this,arguments)||this};
_.w(qF,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qF.prototype,"data",void 0);_.L([_.y({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],qF);
_.G(qF,"ytd-offer-review-renderer",function(){if(Csy!==void 0)return Csy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Csy=B},{mode:1});var CB=function(){var B=_.z.apply(this,arguments)||this;B.badges=[{textBadge:{label:_.fk("CC")}}];return B};
_.w(CB,_.z);_.a=CB.prototype;_.a.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.a.dataChanged=function(){var B=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(B&&B.commandMetadata&&_.t(B.commandMetadata,_.W7)&&_.t(B.commandMetadata,_.W7).fireAutomatically)_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}});else{var c;B&&((c=_.t(B,_.W7))==null?0:c.fireAutomatically)&&_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})}};
_.a.isEmptyContent=function(B){return this.isStorefrontEntryPointEmpty(B)&&this.shouldHideOfferModule(B)};
_.a.isStorefrontEntryPointEmpty=function(B){return!B||!B.storefrontEntryPoint};
_.a.shouldHideOfferModule=function(B){return!!B.hideVideoDetails};
_.a.isOfferModuleNavigationInactive=function(B){return!B.navigationEndpoint&&!B.serviceEndpoint};
_.a.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
CB.prototype.dataChanged=CB.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CB.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.H("design:type",Boolean)],CB.prototype,"hidden",void 0);
_.L([_.F(),_.H("design:type",Object)],CB.prototype,"badges",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CB.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],CB);
_.G(CB,"ytd-movie-offer-module-renderer",function(){if(q8y!==void 0)return q8y;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return q8y=B},{mode:1});var muy;var hp=function(){return _.z.apply(this,arguments)||this};
_.w(hp,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],hp.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hp.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],hp);
_.G(hp,"ytd-media-masthead-renderer",function(){if(muy!==void 0)return muy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return muy=B},{mode:1});var TNy;_.xU(_.Gbn,"course-metadata-view-model",{props:{data:_.cw,isOverlay:_.cw}});var mu=function(){var B=_.z.apply(this,arguments)||this;B.isMetadataVisible=!1;B.modernPanels=_.T("kevlar_watch_modern_panels");B.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return B};
_.w(mu,_.z);_.a=mu.prototype;
_.a.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"}}}}};
_.a.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.a.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.a.expanderChanged=function(){var B;if((B=this.data)==null?0:B.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.a.isExpandButtonToggled=function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.expandMetadataButton,_.V7))==null?void 0:c.isToggled};
_.a.onVisibilityButtonClick=function(){var B;if((B=this.data)==null?0:B.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.a.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
mu.prototype.expanderChanged=mu.prototype.expanderChanged;mu.prototype.dataChanged=mu.prototype.dataChanged;mu.prototype.descriptionChanged=mu.prototype.descriptionChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],mu.prototype,"actionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],mu.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],mu.prototype,"isMetadataVisible",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],mu.prototype,"modernPanels",void 0);_.L([_.jr("#expander"),_.H("design:type",Object)],mu.prototype,"expander",void 0);_.L([_.bF("data.description"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mu.prototype,"descriptionChanged",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mu.prototype,"dataChanged",null);_.L([_.bF("isMetadataVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mu.prototype,"expanderChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],mu);
_.G(mu,"ytd-tvfilm-offer-module-renderer",function(){if(TNy!==void 0)return TNy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return TNy=B},{mode:2});var VHz;var Td=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return B};
_.w(Td,_.z);Td.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Td.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Td.prototype.onThumbnailTap=function(B){this.data&&this.data.serviceEndpoint&&(_.cp().resolve(_.xu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),B.stopPropagation())};
Td.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Td.prototype.dataChanged=Td.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Td.prototype,"rendererBehaviors",void 0);_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],Td.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Td.prototype,"data",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Td.prototype,"dataChanged",null);_.L([_.y({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Td);
_.G(Td,"ytd-unlimited-offer-module-renderer",function(){if(VHz!==void 0)return VHz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return VHz=B},{mode:1});var tH6;var wgS;var VB=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return B};
_.w(VB,_.z);VB.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
VB.prototype.handleRelatedChipCommand=function(B){B=_.t(B,jK8);var c=B.contents;c?_.sp(this.hostElement,"yt-item-section-replace-action",[c,B.targetSectionIdentifier]):_.sp(this.hostElement,"yt-item-section-continuation-action",[B.continuationData,B.targetSectionIdentifier])};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],VB.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VB.prototype,"data",void 0);_.L([_.Em({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],VB);
_.G(VB,"yt-related-chip-cloud-renderer",function(){if(wgS===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;tH6===void 0&&(tH6=document.createElement("template"));var P=tH6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);wgS=B}B=wgS;return B},{mode:2});var tp=function(){var B=_.z.apply(this,arguments)||this;B.isTwoColumns=!0;B.hideOfferModules=!1;B.watchFeedBigThumbs=_.T("kevlar_watch_feed_big_thumbs");B.watchNextGridHideChips=_.T("kevlar_watch_grid_hide_chips");B.eligibleToSwitchToGrid=_.T("web_watch_eligible_to_switch_to_grid");B.disableShortsShelfHeightOverride=_.T("web_shorts_wn_shelf_ratio_tuning");B.isWatchNextGrid=!1;B.reuseComponents=!_.T("kevlar_watch_grid");B.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return B};
_.w(tp,_.z);_.a=tp.prototype;
_.a.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.T("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}}};
_.a.getItemsPath=function(){return"data.results"};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.a.created=function(){this.ytLazyListBehavior.initialCount=1};
_.a.ready=function(){_.k9(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%"})};
_.a.resultsChanged=function(){if(this.data&&this.data.results){for(var B=this.data.results,c=null,x=null,P=0;P<B.length;P++)B[P].relatedChipCloudRenderer?c=B[P].relatedChipCloudRenderer:B[P].itemSectionRenderer&&(x=B[P].itemSectionRenderer);if(c&&x)for(this.set("data.continuations",[]),B=_.t(c.content,_.bgQ).chips,c=0;c<B.length;c++)if(P=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",B[c]),P.loadCached||!P.contents){P.contents=x.contents;break}}};
_.a.dataChanged=function(){var B=this,c;if((c=this.data)!=null&&c.results&&this.hasAllowedInstreamAd(this.playerData)){if(c=this.data.results.filter(function(n){return!!n.promotedSparklesWebRenderer})){for(var x=0;x<c.length;x++){var P=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",c[x]);
if(P)for(var Y=0;Y<P.length;Y++)P[Y]&&P[Y].baseUrl&&_.M6(P[Y].baseUrl)}this.set("data.results",this.data.results.filter(function(n){return!n.promotedSparklesWebRenderer}))}if(c=this.data.results.filter(function(n){return!!B.getSparklesAd(n)})){c=_.p(c);
for(Y=c.next();!Y.done;Y=c.next())if(P=x=void 0,Y=(x=this.getSparklesAd(Y.value))==null?void 0:(P=x.errorCommand)==null?void 0:P.loggingUrls)for(x=_.p(Y),P=x.next();!P.done;P=x.next())(P=P.value)&&P.baseUrl&&_.M6(P.baseUrl);var g,k;this.set("data.results",(g=this.data)==null?void 0:(k=g.results)==null?void 0:k.filter(function(n){return!n.adSlotRenderer}))}}};
_.a.getSparklesAd=function(B){var c,x;B=_.t((c=B.adSlotRenderer)==null?void 0:(x=c.fulfillmentContent)==null?void 0:x.fulfilledLayout,_.Eln);return _.t(B==null?void 0:B.renderingContent,KZF)};
_.a.hasAllowedInstreamAd=function(B){B=this.get("adPlacements",B)||[];for(var c=0;c<B.length;c++){var x=this.get("adPlacementRenderer.config.adPlacementConfig",B[c]);if(x&&x.suppressDisplayAd)return!0}return!1};
_.a.computeHideUnlimitedOfferModule=function(B,c){return B&&B.offerModule&&c&&B.offerModule.unlimitedOfferModuleRenderer&&B.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(c)?!0:!1};
_.a.hideUnlimitedOfferModuleChanged=function(){var B=_.Y9(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");B&&(B.hidden=this.hideUnlimitedOfferModule)};
_.a.updateLockupContainerTypes=function(B){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||c.forEach(function(x){x.containerType=B})}};
_.a.computeHideTvfilmOfferModule=function(B,c){var x,P;return!!((B==null?0:(x=B.offerModule)==null?0:(P=x.tvfilmOfferModuleRenderer)==null?0:P.clientShouldSuppressIfCompanionAdDisplayed)&&c&&this.hasCompanionAds(c))};
_.a.hideTvfilmOfferModuleChanged=function(){var B=_.Y9(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");B&&(B.hidden=this.hideTvfilmOfferModule)};
_.a.hasCompanionAds=function(B){B=this.get("adPlacements",B)||[];for(var c=0;c<B.length;c++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",B[c]))return!0;var x=void 0,P=void 0,Y=void 0;if(!_.T("web_watch_top_banner_companion_check_killswitch")&&((x=B[c])==null?0:(P=x.adPlacementRenderer)==null?0:(Y=P.renderer)==null?0:Y.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.a.hasSuppressedResults=function(B){return B==null?!0:B.filter(function(c){return!c.continuationItemRenderer&&!c.compactPromotedVideoRenderer&&!c.promotedSparklesWebRenderer}).length===0};
_.a.computeShowButton=function(B,c){return this.isWatchNextGrid?B:B||this.hasSuppressedResults(c)};
_.a.showButtonChanged=function(){if(this.isWatchNextGrid){var B=_.Y9(this.hostElement).querySelector("ytd-rich-grid-renderer");B&&this.showButton!==null&&(B.continuationShowButton=this.showButton)}else{B=_.Y9(this.hostElement).querySelector("yt-next-continuation");var c=_.Y9(this.hostElement).querySelector("ytd-continuation-item-renderer"),x=_.Y9(this.hostElement).querySelector("ytd-item-section-renderer");B&&(B.showButton=this.showButton);c&&(c.showButton=this.showButton);x&&(x.continuationShowButton=
this.showButton)}};
_.a.continuationTap=function(B){var c;if(((c=this.data)==null?void 0:c.continuations)!=null&&B.target.tagName==="TP-YT-PAPER-BUTTON")for(B=this.data.continuations,c=0;c<B.length;c++)B[c].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(B[c].nextContinuationData||{})};
_.a.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("shown-items-changed",this.shownItems))};
_.AJ.Object.defineProperties(tp.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.shownItems)==null||!B.some(function(c){return!!c.lockupViewModel||c.compactVideoRenderer}))}}});
tp.prototype.shownItemsChangedForBinding=tp.prototype.shownItemsChangedForBinding;tp.prototype.showButtonChanged=tp.prototype.showButtonChanged;tp.prototype.hideTvfilmOfferModuleChanged=tp.prototype.hideTvfilmOfferModuleChanged;tp.prototype.updateLockupContainerTypes=tp.prototype.updateLockupContainerTypes;tp.prototype.hideUnlimitedOfferModuleChanged=tp.prototype.hideUnlimitedOfferModuleChanged;tp.prototype.dataChanged=tp.prototype.dataChanged;tp.prototype.resultsChanged=tp.prototype.resultsChanged;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],tp.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.fb.YtNextContinuationBehavior),_.H("design:type",Object)],tp.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.J(_.Hz),_.H("design:type",Object)],tp.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],tp.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tp.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],tp.prototype,"playerData",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],tp.prototype,"autoFill",void 0);_.L([_.F({value:60}),_.H("design:type",Number)],tp.prototype,"targetFramerate",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"isTwoColumns",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"hideOfferModules",void 0);_.L([_.F(),_.H("design:type",Object)],tp.prototype,"shownItems",void 0);_.L([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.H("design:type",Boolean)],tp.prototype,"hideUnlimitedOfferModule",void 0);
_.L([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.H("design:type",Boolean)],tp.prototype,"hideTvfilmOfferModule",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"watchFeedBigThumbs",void 0);_.L([_.F(),_.H("design:type",Object)],tp.prototype,"watchNextGridHideChips",void 0);_.L([_.F(),_.H("design:type",Object)],tp.prototype,"eligibleToSwitchToGrid",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"disableShortsShelfHeightOverride",void 0);_.L([_.F({selector:_.SA,reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"isGridViewEnabled",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],tp.prototype,"showMoreButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tp.prototype,"isWatchNextGrid",void 0);
_.L([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.H("design:type",Boolean)],tp.prototype,"showButton",void 0);_.L([_.CF("data.results.*"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"resultsChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"dataChanged",null);
_.L([_.bF("hideUnlimitedOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"hideUnlimitedOfferModuleChanged",null);_.L([_.Q("isGridViewEnabled","containsLockups","data"),_.F({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],tp.prototype,"lockupContainerType",null);
_.L([_.bF("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],tp.prototype,"updateLockupContainerTypes",null);_.L([_.bF("hideTvfilmOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"hideTvfilmOfferModuleChanged",null);_.L([_.bF("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"showButtonChanged",null);
_.L([_.bF("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"shownItemsChangedForBinding",null);_.L([_.Q("shownItems"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tp.prototype,"containsLockups",null);
_.G(tp,"ytd-watch-next-secondary-results-renderer",function(){if(Uu6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);Uu6=B}B=Uu6;return B},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Apr={};
_.Apr.YtdWatchBehavior=[_.R.YtRendererBehavior,_.Z4.YtPlayerListenerBehavior,_.gG.YtRendererstamperBehavior,_.s2.YtActionHandlerBehavior,_.N1.YtPageBehavior,_.q3.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.zu("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.T("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.zu("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("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 _.Yu("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Yu("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!_.T("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.T("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 _.T("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.T("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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, isTwoColumns_)"},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 _.T("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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 _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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 _.T("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var B={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:_.or(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.or(["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"||_.T("swa_prov_panels_ks")?B.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(B.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},B.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return B},
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 B=this;this.watchController=void 0;this.pageDisposeJobs=[function(){B.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||B.clearComments_()},
function(){B.clearPlayerAds_()},
function(){B.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;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.otA(function(){return _.R2(B)},this.hostElement);
this.pageDisposeJobs.push(function(){B.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){B.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.XV;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;_.T("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));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.$9(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(B){B&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:B}),B.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(B){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=B,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(B){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||B||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(B){this.active!==void 0&&(this.fullscreen=B,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(B){this.active!==void 0&&(_.aJ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(B>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(B){this.initCsi_();this.updatePageData_(B)},
updatePageData_:function(B){var c=this;if(B)if(this.data===B){this.onPageLoadWithSameData_();var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)}else this.data=B;this.playlist&&_.lg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Op("nw");this.loading=!1;_.Vp(_.EE,function(){c.initDclkstatus_();var P,Y=((P=c.player)==null?void 0:P.getVideoData().cpn)||"";_.CxS(function(g,k){_.kwF(g,k,Y)})})},
onPageLoadWithSameData_:function(){_.T("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 B=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!B);this.set("loadingData.playlistLoading",B&&B!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),B=this.watchNextSkeletonEl_.firstElementChild;B;)B.classList.remove("hidden"),B=B.nextElementSibling;if(_.T("kevlar_watch_frame0_loading_state")){var c,x,P;B=(c=this.loadingData)==null?void 0:(x=c.endpoint)==null?void 0:(P=x.watchEndpoint)==null?void 0:P.videoId;var Y;B&&(Y="https://i.ytimg.com/vi/"+B+"/frame0.jpg");_.Y9(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var B=_.Y9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&B&&(B.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,x;(x=(c=this.watchMetadata).updateSentimentBarWidth)==
null||x.call(c);var P,Y;(Y=(P=this.watchMetadata).resize)==null||Y.call(P)}_.T("kevlar_watch_frame0_loading_state")&&(_.Y9(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(B){var c=_.Y9(this.hostElement).querySelector(B);c?_.Pr(c,!1):_.Ob(new _.mc("Overscroll monitor not found for component: ",B))},
removeSplitScrollMouseTrap:function(B){var c=_.Y9(this.hostElement).querySelector(B);c?_.YC(c):_.Ob(new _.mc("Disposal component for  overscroll monitoring not found: ",B))},
onLoadingChanged_:function(B){B?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(B){var c=this;B?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.EE.addLowPriorityJob(function(){c.onWindowResized_(_.mz(!0))})},
updateTheaterModeState_:function(B){if(!_.T("kevlar_watch_flexy_theater_manager")){B=B||this.fullWindowMode_;if(this.theater!==void 0||B)this.theater=B;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();B&&_.lJz()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var B=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.T("external_fullscreen")&&this.fullscreen&&(B=!0);B=B?_.Y9(this.hostElement).querySelector("#player-full-bleed-container"):_.Y9(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),x=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");c.parentElement!==B&&(x&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.R2(this).appendTo(B,
c),B.appendChild(_.Y9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var B=this;return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.cp().resolve(_.Ge).deactivate(),2);B.updatePlayerLocation();_.Kq(c)})},
updateCinematicsLocation:function(){var B=this.getElement("CINEMATICS");if(B){var c=this.getCinematicsLocationContainer();B.parentElement!==c&&c.appendChild(B);var x;(x=this.watchController)==null||x.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Y9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Y9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(B,c){var x=document.documentElement.hasAttribute("dark"),P=x&&_.T("web_cinematic_theater_mode"),Y=x&&_.T("web_cinematic_fullscreen");x=!x&&this.cinematicLightTheme;return B&&P||c&&Y||(c||B)&&x},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var B=this,c;(c=this.watchController)==null||c.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.cp().resolve(_.vK).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,_.T("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.EE.addLowPriorityJob(function(){_.sp(B.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var x,P,Y;if((x=this.data)==null?0:(P=x.contents)==null?0:(Y=P.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(B){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);B&&B.playabilityStatus&&(c=this.isVideoPlayable_(B.playabilityStatus,this.getPlayerOverlays_(this.data)),B=this.isLiveStreamOffline_(B.playabilityStatus),c&&!B||_.fl(this,function(){_.Op("pbu")}));
this.setPlayerAds_();_.sp(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(B,c){if((_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"))&&this.playerData&&c)return this.playerData.videoDetails},
watchPageActiveChanged_:function(B){_.uG().dispatch(_.xFz(this.active));B?this.activate_():this.deactivate_()},
attached:function(){var B=this;this.watchController=new _.zR(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);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.R2(this);_.T("kevlar_disable_prepare_player")||
c.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.cp().resolve(_.vK).setPlayer(c);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.lT()+"px"};this.is==="ytd-watch-grid"&&(c["--ytd-watch-flexy-sidebar-width"]=_.j_i+"px",c["--ytd-watch-grid-horizontal-page-margins"]=_.QB+"px",c["--ytd-watch-grid-columns-top-margins"]=_.nar+"px",c["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Yu("kv_pl_mx_sz_ks")&&
_.Yu("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UoN+"px");_.Yu("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.doB+"px");this.safeUpdateStyles(c);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.pn(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return B.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Y9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var B=_.lT(),c=_.FW+B,x=c;this.fixedPanels&&(c+=_.j_i);var P=657+B;B=1327+B;_.Y9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Y9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(B+"px)");_.Y9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(B+"px)");
_.Y9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+x+"px)"},
calculateCurrentPlayerSize_:function(){var B=_.Y9(this.hostElement).querySelector("#miniplayer-bar").firstChild,c=this.squeezeback&&!_.T("web_watch_squeezeback_player_size_killswitch");return B&&B.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||c||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.nH(NaN,NaN):_.M$(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.M$(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.R3(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var B=this;this.onWindowResized_(_.mz());_.T("browse_skeleton_removal_on_watch_killswitch")||_.zu("IS_SHELL_LOAD")&&_.hil();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.R2(this);c.addEventListener("yt-player-updated",_.$9(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(x){B.playerApiReady_(x)});
_.T("kevlar_watch_flexy_playlist_manager")||(c=_.cp().resolve(_.vK),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.$9(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Y9(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.$9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.EE.addLowPriorityJob(function(){_.aJ(B.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.R2(this).removeEventListener("yt-player-updated",_.$9(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.T("kevlar_watch_flexy_playlist_manager")){var B=_.cp().resolve(_.vK);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&B.removeEventListener("yt-navigate",_.$9(this,this.onYtNavigate_));
B.cancelVideoSkip();B.removeEventListener("yt-playlist-data-updated",_.$9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.aJ(this.hostElement,"yt-autonav-pause-player",!1);B=_.cr();_.T("kevlar_exit_fullscreen_leaving_watch")&&B&&_.xC(B)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(B){this.player&&this.player.updateVideoData({rvs:B.rvs})},
getPageContents:function(B){return B&&B.contents&&B.contents.twoColumnWatchNextResults&&B.contents.twoColumnWatchNextResults.results&&B.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(B){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B)},
onRetrieveLocation_:function(B,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);B.stopPropagation()},
onSubscriptionChanged_:function(B,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.wS("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Y9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Y9(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(B){this.player=B;this.setPlayerState(B.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.rc()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(B,c){c=c===void 0?!0:c;_.cr()&&_.T("external_fullscreen")&&_.xC(document.documentElement);this.theaterRequested_=B;c&&_.dr("wide",B?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.gj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.aJ(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(B){_.oG(B,typeof this.player),this.player&&_.oG(B,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var B;((B=this.player)==null?0:B.isFullscreen())?this.player.toggleFullscreen():_.gj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(B,c){return this.loading?c:!!Object.keys(B).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(B){if(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=c.value,c.youThereRenderer&&_.vty(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(B){return B||{}},
userEngagementConfigDataChanged_:function(B){if(B)if(B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.co()<B.lowEngagementThresholdMs||_.Gds(c,!0)}else B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.gj(this.hostElement,"yt-autonav-pause-user-engagement",[B])},
isPlayerUnavailable_:function(B,c,x){return!!B&&!this.isVideoPlayable_(B,x)&&!c},
getPlayerOverlays_:function(B){return(B==null?void 0:B.playerOverlays)||null},
isVideoPlayable_:function(B,c){if(!B)return!1;var x=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",B)||this.get("errorScreen.ypcTrailerRenderer",B);B=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",B);var Y;c=c==null?void 0:(Y=c.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!x||!!P||!!B||!!c},
hasWatchNextResponseErrorRenderer:function(B){var c=this.getPageContents(B),x,P,Y,g,k;return!(B==null?0:(x=B.contents)==null?0:(P=x.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((Y=c[0])==null?0:(g=Y.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(B){return B?B.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(B,c,x){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.T("web_no_skip_video_on_verification_checks")?(B==null?void 0:B.status)&&Y.includes(B.status):B&&B.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",B);g==void 0&&(g=!0);!x||this.isVideoPlayable_(B,this.getPlayerOverlays_(c))||
P||Y||!g||_.cp().resolve(_.vK).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wYs()},
onPlayerFeedbackStartRequest_:function(B){_.gj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:B}])},
onPlayerFeedbackArticleRequest_:function(B){_.gj(this.hostElement,"yt-help-dialog-requested",[B])},
onPlayerYpcContentRequest_:function(){var B,c,x,P,Y,g,k,n,b=((B=this.data)==null?NaN:(c=B.contents)==null?NaN:(x=c.twoColumnWatchNextResults)==null?NaN:(P=x.secondaryResults)==null?NaN:(Y=P.secondaryResults)==null?NaN:(g=Y.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(n=k.actionButtons)==null?NaN:n.length)-1;B=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];c=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(x=c.next();!x.done;x=c.next())for(x=x.value,P=_.p(B),Y=P.next();!Y.done;Y=P.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+x+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.KL(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(B){_.aJ(this.hostElement,"yt-autonav-pause-player",B)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(B){B()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.aJ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(B)},
setPlayerState:function(B){_.uG().dispatch(_.ruQ(B))},
onPlayerSubscribe_:function(B){_.gj(this.hostElement,"yt-player-subscribe",[B])},
onPlayerUnsubscribe_:function(B){_.gj(this.hostElement,"yt-player-unsubscribe",[B])},
onPlayerAdYtShowToast_:function(B){_.gj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:B.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(B){if(B)return B},
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(B){return!_.T("web_watch_move_summary_to_sd")&&!!B},
computeWatchMetadataRefresh:function(){return _.T("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.T("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var B,c,x,P;this.watchNextSecondaryResults=(B=this.data)==null?void 0:(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:P.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.T("swatcheroo_pbs_load_grid")&&!_.T("swatcheroo_provide_all_data_on_scheduled_job")){_.EE.cancelJob(this.setRichGridJobId_);var B,c,x,P,Y,g,k;this.setRichGridRendererData((B=this.data)==null?void 0:(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:(Y=P.secondaryResults)==null?void 0:(g=Y.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(B){this.richGridRendererData=B},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var B,c=(B=this.data)==null?void 0:B.engagementPanels;if(c==null?0:c.length){B=null;c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;if(((P=x.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){B=x;break}}var Y,g,k;B=(Y=B)==null?void 0:(g=Y.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(B==null?0:B.items){Y=
[];g=_.p(B.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var n=P=x=c=B=void 0,b=void 0,d=(B=k.horizontalCardListRenderer)==null?void 0:(c=B.header)==null?void 0:(x=c.richListHeaderRenderer)==null?void 0:(P=x.navigationButton)==null?void 0:(n=P.buttonRenderer)==null?void 0:(b=n.command)==null?void 0:b.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(q){return!_.t(q,_.EAy)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||Y.push(k)}return{items:Y}}}},
constructWarning_:function(B){return{text:_.fk(B),type:"WARNING"}},
isPlaShelfEnabled_:function(B){if((this.get("adPlacements",B)||[]).length)return!0;B=this.get("playerAds",B)||[];return!(!B.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",B[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var B=this;_.aJ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.R2(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonVisibility(B.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.aJ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var B=this;this.commentsReady=!1;_.EE.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Vp(_.EE,function(){B.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Op("cmi");_.EE.cancelJob(this.setCommentsJobId_);var B=this.getPageContents(this.data);if(B&&B.length){B=_.p(B);for(var c=B.next();!c.done;c=B.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.aJ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Op("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.EE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.EE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(B,c){var x=_.t(c.endpoint,_.fN);x&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||x.videoId!==c.videoId||x.playlistId&&x.playlistId!==c.playlistId||x.index!==void 0&&x.index!==c.index||typeof x.startTimeSeconds!=="number"||(B.stopPropagation(),this.setScrollTop(0),_.R2(this).getPlayerPromise().then(function(P){var Y=x.startTimeSeconds;P.seekTo(Y);P.wakeUpControls();Y<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var B=_.XY6();"t"in B&&(B=_.tji(B.t),this.player.seekTo(B,!0))},
updateTitleFromWatchNext:function(B){B=this.getPageContents(B);var c,x;(B=_.iG(B==null?void 0:(c=B[0])==null?void 0:(x=c.videoPrimaryInfoRenderer)==null?void 0:x.title))&&_.aJ(this.hostElement,"yt-update-title",B)},
updateTitle_:function(B){B=this.get("videoDetails.title",B)||"";_.aJ(this.hostElement,"yt-update-title",B)},
syncWithRemoteVideo_:function(B,c,x){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===x&&(x=P.list,_.T("polymer_enable_mdx_queue")&&x&&x.startsWith("RQ")&&(x=void 0),P.video_id!==B||x!=c)){var Y;_.T("kevlar_player_watch_endpoint_navigation")?Y=_.WS7(_.hrz(B,c)):Y=this.buildWatchEndpoint_(B,c);_.aJ(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(B,c,x){return _.B3(B,c,x)},
initDclkstatus_:function(){_.VjA()},
attachWatchPageSkeleton_:function(){var B=document.querySelector("#watch-page-skeleton");if(B){var c=B.querySelector("#primary-info"),x=B.querySelector("#secondary-info"),P=B.querySelector("#related");c&&_.Y9(this.hostElement).querySelector("#info-skeleton").appendChild(c);x&&_.Y9(this.hostElement).querySelector("#meta-skeleton").appendChild(x);P&&(_.Y9(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.qH(B)}},
handlePlayerUpdated_:function(){_.R2(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(B,c){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof c!=="undefined"){var x=this.watchNextSkeletonEl_.children,P=B&&B.indexSplices.length?B.indexSplices[0].index:0;B=Math.min(this.watchNextShownItems.length,x.length);c||(P=0,B=x.length);for(c=P;c<B;c++)x[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(B){_.T("external_fullscreen")||_.gj(this.hostElement,"yt-player-fullscreen",[B.fullscreen])},
onFullscreenChange_:function(B){this.fullscreen=B;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.R2(this);c.getPlayerPromise().then(function(x){x.setFauxFullscreen(!!_.cr())});
this.updateFullBleedElementLocations();B&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(B,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(B){return B},
computeShouldShowMerchShelf:function(B,c){return c&&!!B},
computeResponseHasComments:function(B){var c,x,P,Y,g;return!!(B==null?0:(c=B.contents)==null?0:(x=c.twoColumnWatchNextResults)==null?0:(P=x.results)==null?0:(Y=P.results)==null?0:(g=Y.contents)==null?0:g.some(function(k){var n;return(k==null?void 0:(n=k.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(B,c,x,P){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&P?!1:!!B&&!!Object.keys(B).length&&!c},
identity:_.Sd,onWindowResized_:function(B){this.windowSize_=B;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(B){var c=this;B&&B.type!=="dataloaded"&&B.type!=="dataupdated"||_.R2(this).getPlayerPromise().then(function(x){var P=x.getPlayerState();P!==5&&P!==0&&(x=1/x.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==x&&(c.videoHeightToWidthRatio_=x))})},
schedulePlayerSizeUpdate_:function(B){var c=this,x=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),P=function(){if(c.watchMetadata){var Y,g;(g=(Y=c.watchMetadata).resize)==null||g.call(Y)}_.R2(c).getPlayerPromise().then(function(k){if(_.T("kevlar_set_internal_player_size")){if(!x||!c.isMiniplayerActive()){var n=c.calculateCurrentPlayerSize_();k.setInternalSize(n.width,n.height)}}else k.setSize(NaN,NaN);_.T("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
B?P():_.Nv(_.EE,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(B){this.set("data.survey",B.detail)},
onYtShowSurveyCommand_:function(B){this.set("data.survey",_.t(B,_.OBS).survey)},
onDownloadedVideoDeleted:function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1){if(!c.active||(x=c.playerData)==null||!x.offlineState||c.videoId!==B)return Y.return();(P=c.player)==null||P.stopVideo();_.dd().navigatingAwayFromWatchDeletedVideo=!0;_.KL(_.tyI,c.hostElement);return _.K(Y,_.dd().navigationFinishPromise,2)}_.dd().navigatingAwayFromWatchDeletedVideo=!1;_.Kq(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var B;this.theater?B=_.vi(.5625*this.windowSize_.width,480,this.windowSize_.height-185):B=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==B&&(this.watchWhileScrollThreshold_=B,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var B=_.Y9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&B){var c=this.windowSize_.height>=624,x=this.active?this.getScrollTop():0;!B.active&&c&&x>=this.watchWhileScrollThreshold_?(B.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):B.active&&(!c||x<this.watchWhileScrollThreshold_&&!_.cr())&&(B.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var B=_.Y9(this.hostElement).querySelector("#secondary-inner");if(B){var c=_.Y9(this.hostElement).querySelector("#below"),x=_.Y9(this.hostElement).querySelector("#secondary"),P=_.Y9(this.hostElement).querySelector("#comments");P&&x&&c&&(this.defaultTwoColumnLayout?(B.appendChild(P),x.appendChild(B)):(c.appendChild(P),_.oC(c,B)))}}},
isTwoColumnsChanged_:function(B,c){if(B!==!0||c!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(B=_.Y9(this.hostElement).querySelector("#secondary-inner"))){c=_.Y9(this.hostElement).querySelector("#below");var x=_.Y9(this.hostElement).querySelector("#secondary"),P=_.Y9(this.hostElement).querySelector("#comments");P&&x&&c&&(this.isTwoColumns_?(B.appendChild(P),x.appendChild(B)):(c.appendChild(P),
_.oC(c,B)))}}else{B=!_.T("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);c=_.Y9(this.hostElement).querySelector("#panels");var Y=_.Y9(this.hostElement).querySelector("#alerts");x=_.Y9(this.hostElement).querySelector("#playlist");P=_.Y9(this.hostElement).querySelector("#related");var g=_.Y9(this.hostElement).querySelector("#donation-shelf"),k=_.Y9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.Y9(this.hostElement).querySelector("#secondary-inner"),
B&&(Y.appendChild(c),Y.appendChild(x)),Y.appendChild(g),Y.appendChild(P)):(B&&(_.lL(c,Y),_.lL(x,Y)),_.lL(g,Y),k&&_.lL(P,k));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.T("web_watch_enable_fs_squeezeback_panels")&&_.T("web_watch_theater_chat")){var B=_.Y9(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?(c=_.Y9(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==c&&c.append(B),this.fixedPanels=!0):(this.fixedPanels=
!1,c=_.Y9(this.hostElement).querySelector("#playlist"),B&&c?_.EY(B,c):_.Ob(new _.mc("Missing element when updating chat location",{"chatContainer defined":!!B,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(B,c){return _.T("sw_metadata_vis_toggle_ks")?!0:!!B||!!c},
computeForceDarkPanelTheme:function(B){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&B:!1},
safeUpdateStyles:function(B){try{_.k9(this.hostElement,B)}catch(c){_.Ob(c)}},
videoHeightToWidthRatioChanged_:function(B,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(B){this.videoHeightToWidthRatio_=1/B},
computeIsVerticalVideo_:function(B){return B>=1},
computeIsFourThreeToSixteenNineVideo_:function(B){return B<=.7501&&B>=.5624},
computeIsExtraWideVideo_:function(B){return B<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.R2(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.R2(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Mjs(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(B){var c=_.$g(B)||0;_.Xj(B,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var B=_.$g("yt-fullerscreen-edu-button-click-count")||0,c=_.$g("yt-fullerscreen-edu-button-shown-count")||0,x=_.Yu("external_fullscreen_button_shown_threshold"),P=B>=_.Yu("external_fullscreen_button_click_threshold")||c>=x;_.R2(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(B,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.cp().resolve(_.vK).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var B=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.EE.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.EE.addLowPriorityJob(function(){B.fullHeightPanelPositionUpdateJobId=0;var c=_.Y9(B.hostElement).querySelector("#secondary"),x=_.Y9(B.hostElement).querySelector("#fixed-secondary");c=c.getBoundingClientRect();var P=c.width;B.swatcherooSqueezeback&&
(P+=_.QB);if(B.swatcherooSqueezeback){var Y=_.Y9(B.hostElement).querySelector("#squeezeback-constraining-container");Y.style.width=P+"px";Y.style.flex="0 0 "+P+"px"}x.style.width=P+"px";x.style.left=c.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var B=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.EE.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.EE.addLowPriorityJob(function(){B.panelMaxHeightUpdateJob_=0;var c;!B.isTwoColumns_||B.theater||B.fullscreen?c=460:c=B.calculateNormalPlayerSize_().height;var x=c+"px";_.T("live_chat_taller_height")&&!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.T("live_chat_medium_height")&&!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 238px)");B.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":x,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(B){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",B)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.XX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(B){var c=_.Y9(this.hostElement).querySelector("#engagement-panel-scrim");B?c.addEventListener("tap",_.$9(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.$9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(B){if(this.hostElement.contains(B)&&!this.scrollToAnimation_.isAnimating()){var c=B.offsetTop-24;B=B.offsetTop+B.offsetHeight+24;var x=this.getPageScrollingElement(),P=this.getScrollTop(),Y=P+x.clientHeight-56;if(c<P+56)c-=56;else if(B>Y)c=B-x.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var B=this.hostElement.querySelector("#comments");if(B&&!this.scrollToAnimation_.isAnimating()){B=B.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(B-=_.KH().height/3,B<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtEngagementPanelVisibleChanged:function(B,c,x){if(this.active&&this.trackEngagementPanelVisibility&&!_.lis.includes(x)){if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.sp(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var P=_.cp().resolve(_.TA);this.visiblePanelIdentifiers_.forEach(function(Y){Y!==x&&P.hidePanel(Y)})}this.visiblePanelIdentifiers_.add(x)}c!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(x);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(B){return B?"":"watch-active-metadata"},
computeNewMetadataClass:function(B){return B?"watch-active-metadata":""},
computeFullBleedPlayer:function(B,c,x){return B||c||this.enableFullBleedSingleColumnDefaultPlayer&&!x},
computeDefaultLayout:function(B){return!B},
computeDefaultTwoColumnLayout:function(B,c){return!B&&c},
updatePanelsLocation:function(){if(_.T("web_watch_enable_fs_squeezeback_panels")){var B=_.Y9(this.hostElement).querySelector("#below"),c=_.Y9(this.hostElement).querySelector("#panels"),x=_.Y9(this.hostElement).querySelector("#playlist"),P=_.Y9(this.hostElement).querySelector("#chat-container"),Y=_.Y9(this.hostElement).querySelector("#panels-full-bleed-container"),g=_.Y9(this.hostElement).querySelector("#secondary-inner"),k=this.fullscreen||this.theater&&this.iMaxTheaterMode,n=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;k?(Y.appendChild(c),Y.appendChild(P),Y.appendChild(x)):this.isTwoColumns_?(n?(B=_.Y9(this.hostElement).querySelector("#columns"),(P==null?void 0:P.parentElement)!==B&&B.append(P),this.fixedPanels=!0):_.oC(g,P),_.oC(g,c),_.oC(g,x)):(B.appendChild(c),B.appendChild(P),B.appendChild(x))}},
swatcherooUpdatePanelsLocation:function(B,c,x,P,Y,g){if(this.is==="ytd-watch-grid"){c=B&&!c;this.swatcherooSplitScroll&&(c?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));x=_.Y9(this.hostElement).querySelector("#panels");var k=_.Y9(this.hostElement).querySelector("#playlist"),n=_.Y9(this.hostElement).querySelector("#fixed-secondary"),b=_.Y9(this.hostElement).querySelector("#fixed-below"),
d=_.Y9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),q=_.Y9(this.hostElement).querySelector("#chat-container");g&&(B?n.appendChild(x):b.appendChild(x));Y?B?n.appendChild(q):b.appendChild(q):_.EY(q,d);P?B?n.appendChild(k):b.appendChild(k):_.EY(k,d);this.swatcherooSplitScroll&&(B=_.Y9(this.hostElement).querySelector("#secondary"),P=_.Y9(this.hostElement).querySelector("#columns"),Y=_.Y9(this.hostElement).querySelector("#fixed-columns-secondary"),c?
Y.appendChild(B):P.appendChild(B))}},
computeMetadataSkinnyMode:function(B,c,x){return this.is!=="ytd-watch-grid"?!1:B?x:c},
computeWatchWhilePanelsActive:function(B,c){return B||c},
computeNoBorderOnChat:function(B){return _.T("web_watch_theater_chat_no_border")&&B},
computeLiveChatPresentAndExpanded:function(B,c){return B&&!c},
computePanelExpanded:function(B,c,x){return B||c||x},
computeSqueezeback:function(B,c,x,P){if(_.T("web_watch_enable_fs_squeezeback_panels")){var Y=this.iMaxTheaterMode&&this.theater;return(B||c||x)&&(P||Y)}},
computeSwatcherooSqueezeback:function(B,c,x){return this.is!=="ytd-watch-grid"||_.T("ww_squeezeback_killswitch")?!1:B&&c&&x},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(B){_.R2(this).getPlayerPromise().then(function(c){var x;(x=c.changeMarkerVisibility)==null||x.call(c,_.t(B,_.L1).isVisible||!1,_.t(B,_.L1).entityKeys||[],_.t(B,_.L1).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(B){this.liveChatCollapsed=B.detail;_.uG().dispatch(_.Wus(B.detail));if(!this.liveChatCollapsed&&this.squeezeback){var c=_.cp().resolve(_.TA);this.visiblePanelIdentifiers_.forEach(function(x){c.hidePanel(x)})}},
onSetPlaylistCollapsed:function(B){_.T("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!B)},
provideRenderingData:function(B,c){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=c;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=
c;break;case "DONATION_SHELF":this.donation=c;break;case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
c}},
toggleCinematicsActive:function(B){this.cinematicsActive=B},
isMiniplayerActive:function(){return _.cp().resolve(_.Ge).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var nu8,jHc;_.bUi=function(B){var c=nu8;if(!(0,_.AqA)(B)){var x,P;c=(P=(x=typeof c==="function"?c():c)==null?void 0:x.concat("\n"))!=null?P:"";throw Error("H`"+c+"`"+String(B));}};
_.Kc6=function(B){return B.shorts.isShortsActive};
_.UDz=function(B){return B.findIndex(function(c){return jHc.indexOf(c.tagName)>-1})>-1};
nu8=void 0;_.dDB=function(B){return _.YN({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:B}})};
_.q4l=function(){var B=_.cp().resolve(_.h2);_.l3I(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(B.isFullscreenEnabled()?_.xC(document.documentElement):_.PMw(document.documentElement))};
jHc=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.RL=new Map;_.RL.set(32,59972);_.RL.set(27,50765);_.RL.set(70,60102);_.RL.set(76,60221);_.RL.set(77,60222);_.RL.set(74,60223);_.RL.set(84,60224);_.RL.set(38,61941);_.RL.set(40,61942);_.RL.set(73,62521);_.RL.set(67,62522);_.RL.set(80,63390);_.RL.set(78,63397);_.RL.set(75,59972);_.RL.set(188,63385);_.RL.set(190,63384);_.RL.set(36,63387);
_.RL.set(35,63386);_.RL.set(37,63388);_.RL.set(39,63389);_.RL.set(79,63423);_.RL.set(87,63424);_.RL.set(107,63426);_.RL.set(109,63425);_.RL.set(65,63428);_.RL.set(83,63430);_.RL.set(68,63429);_.RL.set(221,63431);_.RL.set(219,63432);_.RL.set(97,63439);_.RL.set(98,63440);_.RL.set(99,63441);_.RL.set(100,63442);_.RL.set(101,63443);_.RL.set(102,63444);_.RL.set(103,63445);_.RL.set(104,63446);_.RL.set(105,63447);_.eG=new Map;_.eG.set(80,63390);_.eG.set(78,63397);_.eG.set(188,63400);_.eG.set(190,63401);
_.eG.set(191,60765);_.eG.set(13,247917);_.Be=new Map;_.ce=new Map;
}catch(e){_._DumpException(e)}
try{
var bqi,U8s,d8c,qIF;_.kEc=function(B){return B.ui.guideIsVisibleButNotPersistent};
_.XFA=function(B){return B.ui.tabGesturesIsActive};
_.$8z=function(){var B=_.aH("service_worker_scope");try{return navigator.serviceWorker.getRegistration(B)}catch(c){return Promise.reject(c)}};
_.nMF=function(B){return!(!B||!B.pushManager)};
bqi=function(){return _.$8z().then(_.nMF).catch(function(){return!1})};
_.KXs=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?bqi():Promise.resolve(!1)};
_.jdz=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
U8s=function(){var B,c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,_.Nm.getInstance(),2);case 2:B=P.yieldResult;if(!B){c=void 0;P.jumpTo(3);break}return _.K(P,B.get("lmqf"),4);case 4:c=P.yieldResult;case 3:switch((x=c)||(x="SD"),x){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")}}})};
d8c=function(B){var c,x,P;return _.X(function(Y){if(Y.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.T("disable_av1_setting")){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(c=B===g)return Y.jumpTo(2);P=x=B;return _.K(Y,U8s(),3)}Y.nextAddress!=2&&(c=P===Y.yieldResult);return Y.return(c)})};var Cei;var hD8=_.Nk.IronButtonState,m8A=(0,_.Tg)(HTMLElement);
_.Ni({_template:function(){if(Cei!==void 0)return Cei;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;qIF===void 0&&(qIF=document.createElement("template"));var P=qIF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Cei=B},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[hD8,_.t4,_.II,_.li],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(B){var c=(0,_.jO)(this);c.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:B});c.shadowRoot.appendChild(B);return m8A.prototype._attachDom.call(this,B)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var B=this.contentElement;B&&B.selectedItem&&this._setSelectedItem(B.selectedItem)},
get contentElement(){for(var B=_.m4(this.$.content).getDistributedNodes(),c=0,x=B.length;c<x;c++)if(B[c].nodeType===Node.ELEMENT_NODE)return B[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(B){this._setSelectedItem(B.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(B){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)===this&&this.open()},
_selectedItemChanged:function(B){var c="";B?c=B.label||B.getAttribute("label")||B.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(B,c){return c?c:B?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var B=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",B)}});_.ZV=new _.A("navigateAction");var Tqs=new _.A("formRenderer");var HS=function(){var B=_.dM.apply(this,arguments)||this;B.showInput=!1;return B};
_.w(HS,_.dM);_.a=HS.prototype;_.a.detached=function(){this.showInput&&window.removeEventListener("click",_.$9(this,this.closeOnOutsideClick_))};
_.a.stopPropagation_=function(B){this.showInput&&B.stopPropagation()};
_.a.closeOnOutsideClick_=function(B){this.closeOnOutsideClickCondition(B)&&(this.showInput=!1,window.removeEventListener("click",_.$9(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.a.closeOnOutsideClickCondition=function(){return!0};
_.a.closeOnOutsideClickHandler=function(){};
_.a.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.$9(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.a.openOnClickHandler=function(){};
_.a.showInputChanged=function(){};
_.a.setShowInput=function(B){this.showInput=B};
HS.prototype.setShowInput=HS.prototype.setShowInput;HS.prototype.showInputChanged=HS.prototype.showInputChanged;HS.prototype.openOnClickHandler=HS.prototype.openOnClickHandler;HS.prototype.openOnClick_=HS.prototype.openOnClick_;HS.prototype.closeOnOutsideClickHandler=HS.prototype.closeOnOutsideClickHandler;HS.prototype.closeOnOutsideClickCondition=HS.prototype.closeOnOutsideClickCondition;HS.prototype.closeOnOutsideClick_=HS.prototype.closeOnOutsideClick_;HS.prototype.stopPropagation_=HS.prototype.stopPropagation_;
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],HS.prototype,"showInput",void 0);_.L([_.nF("click"),_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],HS.prototype,"stopPropagation_",null);_.L([_.bF("showInput"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],HS.prototype,"showInputChanged",null);_.L([_.qi()],HS);_.VxB=[HS.prototype];var txr;var wFs;var fo=function(){return _.z.apply(this,arguments)||this};
_.w(fo,_.z);_.a=fo.prototype;_.a.computePreselectedOption=function(B,c){return c===this.itemSelected_?B:void 0};
_.a.dataChanged_=function(){var B=this;this.preselectedSubreason=this.itemSelected_=-1;var c;(c=this.data)!=null&&c.key&&_.fl(this,function(){var x,P=Number((x=B.data)==null?void 0:x.key);!Number.isNaN(P)&&(B.itemSelected_=P,x=(x=(B.data.items||[])[P])&&x.optionSelectableItemRenderer&&x.optionSelectableItemRenderer.preselectedIndex)&&(B.preselectedSubreason=x)})};
_.a.isSubReasonHidden_=function(B,c){return B!=c};
_.a.onTopItemSelected_=function(B,c){for(var x=_.Y9(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),P=0,Y=x.length;P<Y;P++)x[P].select(0);_.gj(this.hostElement,"yt-report-form-update",[c.item.value]);B.stopPropagation()};
_.a.onItemSelected_=function(B,c){_.gj(this.hostElement,"yt-report-form-update",[c.item.value]);B.stopPropagation()};
_.a.getItem_=function(B){return B.serviceItem?B.serviceItem:B.navigationItem?B.navigationItem:B.optionSelectableItemRenderer?B.optionSelectableItemRenderer:null};
_.a.computeText_=function(B){return(B=this.getItem_(B))?this.ytRendererBehavior.getSimpleString(B.text):null};
_.a.validate=function(){return this.itemSelected_!==-1};
_.a.computeAriaLabel_=function(B){var c=_.iG(B.text);(B=B.accessibility&&B.accessibility.accessibilityData&&B.accessibility.accessibilityData.label)&&(c+=". "+B);return c};
_.a.computeItemSelected_=function(B){return B};
_.a.preventSelection_=function(B){B.stopPropagation();this.tooltipTapped=!0};
_.a.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.a.updateItemSelectedFromBinding=function(B){this.itemSelected_=B.detail.value};
_.a.save=function(){var B;this.validate()&&(B=this.data)!=null&&B.items&&(B=this.data.items[this.itemSelected_],B!=null&&B.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(B.optionSelectableItemRenderer.submitEndpoint)||_.kC(this.hostElement,[B.optionSelectableItemRenderer.submitEndpoint])))};
fo.prototype.onPaperRippleTransitionEnd_=fo.prototype.onPaperRippleTransitionEnd_;fo.prototype.dataChanged_=fo.prototype.dataChanged_;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fo.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fo.prototype,"data",void 0);_.L([_.F({value:-1}),_.H("design:type",Number)],fo.prototype,"itemSelected_",void 0);
_.L([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.H("design:type",Number)],fo.prototype,"value",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],fo.prototype,"restoreFocusOnClose",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],fo.prototype,"tooltipTapped",void 0);_.L([_.F({value:-1}),_.H("design:type",Number)],fo.prototype,"preselectedSubreason",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fo.prototype,"dataChanged_",null);_.L([_.nF("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fo.prototype,"onPaperRippleTransitionEnd_",null);_.L([_.Em({is:"yt-options-renderer",disableElementRegistration:!0})],fo);
_.G(fo,"yt-options-renderer",function(){if(wFs===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;txr===void 0&&(txr=document.createElement("template"));var P=txr;x.call(c,P.content.cloneNode(!0),B.content.firstChild);wFs=B}B=wFs;return B},{mode:2});var Nqy;var IKz;var J0y;var WX6;var lKl;var EMS;var iT=function(){return _.z.apply(this,arguments)||this};
_.w(iT,_.z);iT.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
iT.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
iT.prototype.onTap=function(B){if(this.hostElement.classList.contains("selected")||_.pW(this.hostElement,"yt-share-panel-can-select-contact-action"))B&&B.detail&&(B.detail.x||B.detail.y)&&_.Y9(this.hostElement).querySelector("#target").blur(),(B=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),B={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:B?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.gj(this.hostElement,"yt-share-panel-select-contact-action",[B])};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.L([_.F({observer:"onDataChanged"}),_.H("design:type",Object)],iT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],iT.prototype,"componentTitle",void 0);_.L([_.jr("#thumbnail"),_.H("design:type",Object)],iT.prototype,"thumbnail",void 0);_.L([_.Em({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],iT);
_.G(iT,"yt-enrolled-contact-renderer",function(){if(EMS===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;lKl===void 0&&(lKl=document.createElement("template"));var P=lKl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);EMS=B}B=EMS;return B},{mode:2});var Oqz;var oM6;var A5=function(){return _.z.apply(this,arguments)||this};
_.w(A5,_.z);A5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
A5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
A5.prototype.onTap=function(B){if(this.hostElement.classList.contains("selected")||_.pW(this.hostElement,"yt-share-panel-can-select-contact-action"))B&&B.detail&&(B.detail.x||B.detail.y)&&_.Y9(this.hostElement).querySelector("#target").blur(),(B=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),B={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:B?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.gj(this.hostElement,"yt-share-panel-select-contact-action",[B])};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.L([_.F({observer:"onDataChanged"}),_.H("design:type",Object)],A5.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],A5.prototype,"componentTitle",void 0);_.L([_.jr("#thumbnail"),_.H("design:type",Object)],A5.prototype,"thumbnail",void 0);_.L([_.Em({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],A5);
_.G(A5,"yt-suggested-contact-renderer",function(){if(oM6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Oqz===void 0&&(Oqz=document.createElement("template"));var P=Oqz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);oM6=B}B=oM6;return B},{mode:2});var uT=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-share-panel-reset-action":"onReset"};return B};
_.w(uT,_.z);uT.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"}}}}}};
uT.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.gj(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
uT.prototype.onReset=function(){for(var B=_.Y9(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),c=B.length-1;c>=0;c--)B[c].classList.toggle("selected")};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],uT.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({observer:"onDataChanged"}),_.H("design:type",Object)],uT.prototype,"data",void 0);
_.L([_.Em({is:"yt-contact-section-renderer",disableElementRegistration:!0})],uT);
_.G(uT,"yt-contact-section-renderer",function(){if(WX6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;J0y===void 0&&(J0y=document.createElement("template"));var P=J0y;x.call(c,P.content.cloneNode(!0),B.content.firstChild);WX6=B}B=WX6;return B},{mode:2});var DV=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return B};
_.w(DV,_.z);_.a=DV.prototype;_.a.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"}}}};
_.a.onYtRefreshFormCommand=function(B){var c;(B=_.t((c=_.t(B,_.oVF))==null?void 0:c.formRenderer,Tqs))&&this.set("data",B)};
_.a.reset=function(){var B=_.Y9(this.hostElement).querySelector("#fields").children;B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=c.value,c.reset&&c.reset()};
_.a.getForm=function(){var B={},c=_.Y9(this.hostElement).querySelector("#fields").children;c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;if(!x.validate())return null;B[x.data.key]=x.value}return B};
_.a.submitFormFields=function(){if(this.fields)for(var B=_.p(this.fields),c=B.next();!c.done;c=B.next())c=c.value,c.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?c.save():c.nodeName==="YT-OPTIONS-RENDERER"&&c.save()};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],DV.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DV.prototype,"data",void 0);_.L([_.Um("#fields > *"),_.H("design:type",Array)],DV.prototype,"fields",void 0);
_.L([_.Em({is:"yt-form-renderer",disableElementRegistration:!0})],DV);
_.G(DV,"yt-form-renderer",function(){if(IKz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Nqy===void 0&&(Nqy=document.createElement("template"));var P=Nqy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);IKz=B}B=IKz;return B},{mode:2});var Qdo;var r3=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return B};
_.w(r3,_.z);r3.prototype.onCheckboxChange=function(B){this.data&&(B=(this.checked=_.uI(B).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})};
r3.prototype.handleUpdateCheckboxCommand=function(B){(B=_.t(B,_.Dyn))&&this.data&&this.data.id===B.id&&(this.set("data.disabled",B.disabled),this.set("data.title",B.title))};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],r3.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],r3.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],r3.prototype,"checked",void 0);_.L([_.y({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],r3);
_.G(r3,"ytd-settings-checkbox-renderer",function(){if(Qdo!==void 0)return Qdo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Qdo=B},{mode:1});var FXz;var Rr=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return B};
_.w(Rr,_.z);Rr.prototype.dataChanged=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return B.radio.removeAttribute("checked"),!B.data||!B.data.id||B.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.jdz()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(c=B.data&&B.data.id)?_.K(x,d8c(B.data.id),4):x.jumpTo(3):(B.set("data.hidden",!0),x.jumpTo(0));x.nextAddress!=3&&(c=x.yieldResult);c&&_.gj(B.hostElement,"yt-select-settings-radio-option",[B.data.id]);_.Kq(x)})};
Rr.prototype.onButtonChanged=function(B){_.uI(B).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.gj(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Rr.prototype.onSelectOption=function(B){this.data&&this.data.id&&(this.data.id===B?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.L([_.jr("#radio"),_.H("design:type",Object)],Rr.prototype,"radio",void 0);_.L([_.F(),_.H("design:type",Object)],Rr.prototype,"data",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],Rr.prototype,"dataChanged",null);_.L([_.y({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Rr);
_.G(Rr,"ytd-settings-radio-option-renderer",function(){if(FXz!==void 0)return FXz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return FXz=B},{mode:1});var vMo;var e8=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return B};
_.w(e8,_.z);
e8.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"}}}};
e8.prototype.handleUpdateTextCommand=function(B){(B=_.t(B,_.rd9))&&this.data&&this.data.id===B.id&&this.set("data",B)};
e8.prototype.handleUpdateConnectedAppRendererCommand=function(B){if(_.t(B,_.Bp4)&&this.data){var c,x;if(B=(c=_.t(B,_.Bp4))==null?void 0:(x=c.newConnectedAppRenderer)==null?void 0:x.connectedAppRenderer)this.data=B}};
e8.prototype.computeConnectedAppStyle=function(B){return B.style?B.style.toLowerCase().replace(/_/g,"-"):""};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],e8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],e8.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.H("design:type",String)],e8.prototype,"connectedAppStyle",void 0);_.L([_.y({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],e8);
_.G(e8,"ytd-connected-app-renderer",function(){if(vMo!==void 0)return vMo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vMo=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Eq("iuT5Oc");

_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("L3n37");
var c$A=function(B){return B.watch.isLearningJourneyActive},xhB=_.JW(115994),PEA=_.JW(115993),YRF=function(B,c,x){var P=this;
var Y=x.dragDownAction;this.layer=0;this.JSC$20574_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$20574_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 g=_.q_();_.$k(g,xhB,this.layer);_.$k(g,PEA,this.layer);this.dragDownAction=function(){Y();_.GU(g,{visualElement:P.fullscreen?xhB:PEA})};
this.gesture=new _.$Q(B,c,this.JSC$20574_watchConfig,"pandown");this.attach()};
YRF.prototype.attach=function(){this.gesture.attach()};
YRF.prototype.detach=function(){this.gesture.detach()};
YRF.prototype.update=function(B){this.fullscreen=B;this.gesture.config=B?this.JSC$20574_watchFullScreenConfig:this.JSC$20574_watchConfig};var aUS=function(B){_.rs.call(this);var c=this;this.rootElement=B;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(x){c.initOrDisposeActiveModules(x)}));
this.onAttached()};
_.w(aUS,_.rs);_.a=aUS.prototype;_.a.getRoot=function(){return this.rootElement};
_.a.getElement=function(B){return this.rootElement.getElement(B)};
_.a.setPlayerResponse=function(B){this.playerResponse=B;this.publish("PLAYER_RESPONSE_UPDATED",B)};
_.a.getPlayerResponse=function(){return this.playerResponse};
_.a.setWatchNextResponse=function(B){this.watchNextResponse===B?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=B,this.publish("WATCH_NEXT_RESPONSE_UPDATED",B))};
_.a.getWatchNextResponse=function(){return this.watchNextResponse};
_.a.registerActionHandler=function(B,c){var x=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.Ma(_.Gr.getInstance(),(P[B]=c,P),this.getRoot())}else this.actionHandlers.has(B)||(this.actionHandlers.set(B,[]),P={},_.Ma(_.Gr.getInstance(),(P[B]=function(){var Y=_.ts.apply(0,arguments);return(x.actionHandlers.get(B)||[]).map(function(g){return g.apply(null,_.wq(Y))})},P),this.getRoot())),this.actionHandlers.get(B).push(c)};
_.a.unregisterActionHandler=function(B){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.LE(_.Gr.getInstance(),(c[B]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(B))?(c.pop(),c.length===0&&(c={},_.LE(_.Gr.getInstance(),(c[B]=!0,c),this.getRoot()),this.actionHandlers.delete(B))):_.Ob(new _.mc("Attempted to unregister an action handler which is not registered.",B))};
_.a.addPageDisposeJob=function(B){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.fx(this.rootElement.pageDisposeJobs,B)};
_.a.removePageDisposeJob=function(B){this.rootElement.pageDisposeJobs&&_.Ao(this.rootElement.pageDisposeJobs,B)};
_.a.dispatchEvent=function(B,c){_.aJ(this.rootElement,B,c)};
_.a.provideRenderingData=function(B,c){this.rootElement.provideRenderingData(B,c)};
_.a.scrollWatchTo=function(B,c){var x;(x=this.watchScrollManager)==null||x.scrollWatchTo(B,c)};
_.a.focusOnPlayer=function(){var B=this.getElement("PLAYER");_.fl(B,function(){if(B&&B.firstElementChild){var c=B.querySelector(".html5-video-player");c&&(_.rZ(_.cp().resolve(_.lv)),c.focus())}else _.Ob(Error("mm"))})};
_.a.updateCinematicFullscreenConfig=function(){var B=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,x;(x=this.watchCinematicManager)==null||_.cqz(x,c,B)};
_.a.subscribeToActiveChanged=function(B,c){c=c===void 0?!0:c;var x=_.C0(_.uG(),c$A,function(P){B(P)});
c&&B(c$A(_.uG().getState()));return x};
_.a.isActive=function(){return c$A(_.uG().getState())};
_.a.onAttached=function(){var B=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(B=_.cp().resolve(_.UQN).retriever.getFlag(_.BWW));(B||_.zu("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.a.initPersistentModules=function(){if(_.T("kevlar_watch_flexy_theater_manager")){var B=new _.W6A(this);_.bW(this,B)}B=new _.Kdz(this);_.bW(this,B);B=new _.I6(this);_.bW(this,B);B=new _.Qv(this);_.bW(this,B);B=new _.Ldz(this);_.bW(this,B);B=new _.Wm(this);_.bW(this,B);_.T("kevlar_watch_flexy_playlist_manager")&&(B=new _.f2r(this),_.bW(this,B))};
_.a.initOrDisposeActiveModules=function(B){B?(this.watchScrollManager=new _.vm(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Jqs(this)),this.activeModules.push(new _.onl(this)),this.activeModules.push(new _.Rao(this)),this.activeModules.push(new _.F7(this)),_.T("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.zgz(this)),this.activeModules.push(new _.Q4l(this)),_.T("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Bil(this)),
_.T("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.fHB(this)),_.T("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.rLF(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.SKy(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.neo(this)),B=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!B&&this.activeModules.push(new _.s4A(this)),_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.J1(this)),this.activeModules.push(new _.zxo(this)),this.activeModules.push(new _.l2r(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new _.Mt8(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.X9i(this)),_.T("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.cLN(this)),
_.T("web_fullscreen_components")&&this.activeModules.push(new _.MaF(this)),_.T("web_player_rtr_ctrls")&&this.activeModules.push(new _.nQF(this))):(_.ek(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.a.disposeInternal=function(){_.rs.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.AJ.Object.defineProperties(aUS.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var gj8={},sqi=["learning-journey-engagement-panel","PAlearning_chat"];
gj8.YtdLearningJourneyWatchBehavior=[_.R.YtRendererBehavior,_.Z4.YtPlayerListenerBehavior,_.gG.YtRendererstamperBehavior,_.s2.YtActionHandlerBehavior,_.N1.YtPageBehavior,_.q3.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 _.zu("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("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 _.zu("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 _.T("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("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 _.Yu("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Yu("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!_.T("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.T("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 _.T("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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 _.T("web_watch_rounded_player_large")||_.T("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 _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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 _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("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:_.or(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.or(["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 B=this;this.watchController=void 0;this.pageDisposeJobs=[function(){B.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||B.clearComments_()},
function(){B.clearPlayerAds_()},
function(){B.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;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.otA(function(){return _.R2(B)},this.hostElement);
this.pageDisposeJobs.push(function(){B.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){B.resetFullerscreenEduButtonForNewPlayback_()}));
_.T("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.XV;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;_.T("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.T("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));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.$9(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(B){B&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:B}),B.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(B){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=B,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(B){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||B||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(B){this.active!==void 0&&(this.fullscreen=B,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(B){this.active!==void 0&&(_.aJ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(B>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(B){this.initCsi_();this.updatePageData_(B)},
updatePageData_:function(B){var c=this;if(B)if(this.data===B){this.onPageLoadWithSameData_();var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)}else this.data=B;this.playlist&&_.lg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Op("nw");this.loading=!1;_.Vp(_.EE,function(){c.initDclkstatus_();var P,Y=((P=c.player)==null?void 0:P.getVideoData().cpn)||"";_.CxS(function(g,k){_.kwF(g,k,Y)})})},
onPageLoadWithSameData_:function(){_.T("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 B=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!B);this.set("loadingData.playlistLoading",B&&B!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),B=this.watchNextSkeletonEl_.firstElementChild;B;)B.classList.remove("hidden"),B=B.nextElementSibling;var c,x,P;B=(c=this.loadingData)==null?void 0:(x=c.endpoint)==null?void 0:(P=x.watchEndpoint)==null?void 0:P.videoId;var Y;B&&(Y="https://i.ytimg.com/vi/"+B+"/frame0.jpg");_.Y9(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var B=_.Y9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&B&&(B.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,x;(x=(c=this.watchMetadata).updateSentimentBarWidth)==
null||x.call(c);var P,Y;(Y=(P=this.watchMetadata).resize)==null||Y.call(P)}_.Y9(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(B){var c=_.Y9(this.hostElement).querySelector(B);c?_.Pr(c,!1):_.Ob(new _.mc("Overscroll monitor not found for component: ",B))},
removeSplitScrollMouseTrap:function(B){var c=_.Y9(this.hostElement).querySelector(B);c?_.YC(c):_.Ob(new _.mc("Disposal component for  overscroll monitoring not found: ",B))},
onLoadingChanged_:function(B){B?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(B){var c=this;B?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.EE.addLowPriorityJob(function(){c.onWindowResized_(_.mz(!0))})},
updateTheaterModeState_:function(B){if(!_.T("kevlar_watch_flexy_theater_manager")){B=B||this.fullWindowMode_;if(this.theater!==void 0||B)this.theater=B;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();B&&_.lJz()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var B=this.theater;_.T("external_fullscreen")&&this.fullscreen&&(B=!0);B=B?_.Y9(this.hostElement).querySelector("#player-full-bleed-container"):_.Y9(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),x=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");c.parentElement!==B&&(x&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.R2(this).appendTo(B,c),B.appendChild(_.Y9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var B=this;return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.cp().resolve(_.Ge).deactivate(),2);B.updatePlayerLocation();_.Kq(c)})},
updateCinematicsLocation:function(){var B=this.getElement("CINEMATICS");if(B){var c=this.getCinematicsLocationContainer();B.parentElement!==c&&c.appendChild(B);var x;(x=this.watchController)==null||x.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Y9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Y9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(B,c){var x=document.documentElement.hasAttribute("dark"),P=x&&_.T("web_cinematic_theater_mode"),Y=x&&_.T("web_cinematic_fullscreen");x=!x&&this.cinematicLightTheme;return B&&P||c&&Y||(c||B)&&x},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.cp().resolve(_.vK).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var c,
x,P;if((c=this.data)==null?0:(x=c.contents)==null?0:(P=x.twoColumnWatchNextResults)==null?0:P.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Y,g;((Y=this.data)==null?0:(g=Y.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(B){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);B&&B.playabilityStatus&&(c=this.isVideoPlayable_(B.playabilityStatus,this.getPlayerOverlays_(this.data)),B=this.isLiveStreamOffline_(B.playabilityStatus),c&&!B||_.fl(this,function(){_.Op("pbu")}));
this.setPlayerAds_();_.sp(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(B){_.uG().dispatch(_.YN({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));B?this.activate_():this.deactivate_()},
attached:function(){var B=this;this.watchController=new aUS(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.R2(this);_.T("kevlar_disable_prepare_player")||c.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.cp().resolve(_.vK).setPlayer(c);this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.lT()+
"px"};!_.Yu("kv_pl_mx_sz_ks")&&_.Yu("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UoN+"px");_.Yu("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.doB+"px");this.safeUpdateStyles(c);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new YRF(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return B.onPlayerTouchPanDown_()}}));
_.T("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Y9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var B=_.lT(),c=_.FW+B,x=c;this.fixedPanels&&(c+=_.j_i);var P=657+B;B=1327+B;_.Y9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Y9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(B+"px)");_.Y9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(B+"px)");
_.Y9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+x+"px)"},
calculateCurrentPlayerSize_:function(){var B=_.Y9(this.hostElement).querySelector("#miniplayer-bar").firstChild;return B&&B.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.nH(NaN,NaN):_.M$(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.M$(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.R3(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var B=this;this.onWindowResized_(_.mz());_.T("browse_skeleton_removal_on_watch_killswitch")||_.zu("IS_SHELL_LOAD")&&_.hil();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.R2(this);c.addEventListener("yt-player-updated",_.$9(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(x){B.playerApiReady_(x)});
_.T("kevlar_watch_flexy_playlist_manager")||(c=_.cp().resolve(_.vK),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.$9(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Y9(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.$9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.EE.addLowPriorityJob(function(){_.aJ(B.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.R2(this).removeEventListener("yt-player-updated",_.$9(this,this.onPlayerUpdated_));if(!_.T("kevlar_watch_flexy_playlist_manager")){var B=_.cp().resolve(_.vK);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&B.removeEventListener("yt-navigate",_.$9(this,this.onYtNavigate_));B.cancelVideoSkip();B.removeEventListener("yt-playlist-data-updated",_.$9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.aJ(this.hostElement,"yt-autonav-pause-player",!1);B=_.cr();_.T("kevlar_exit_fullscreen_leaving_watch")&&B&&_.xC(B)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(B){this.player&&this.player.updateVideoData({rvs:B.rvs})},
getPageContents:function(B){return B&&B.contents&&B.contents.twoColumnWatchNextResults&&B.contents.twoColumnWatchNextResults.results&&B.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(B){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B)},
onRetrieveLocation_:function(B,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);B.stopPropagation()},
onSubscriptionChanged_:function(B,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.wS("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Y9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Y9(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(B){this.player=B;this.setPlayerState(B.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.rc()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(B,c){c=c===void 0?!0:c;_.cr()&&_.T("external_fullscreen")&&_.xC(document.documentElement);this.theaterRequested_=B;c&&_.dr("wide",B?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.gj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.aJ(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(B){_.oG(B,typeof this.player),this.player&&_.oG(B,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var B;((B=this.player)==null?0:B.isFullscreen())?this.player.toggleFullscreen():_.gj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(B,c){return this.loading?c:!!Object.keys(B).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(B){if(B){B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=c.value,c.youThereRenderer&&_.vty(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(B){return B||{}},
userEngagementConfigDataChanged_:function(B){if(B)if(B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.co()<B.lowEngagementThresholdMs||_.Gds(c,!0)}else B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.gj(this.hostElement,"yt-autonav-pause-user-engagement",[B])},
isPlayerUnavailable_:function(B,c,x){return!!B&&!this.isVideoPlayable_(B,x)&&!c},
getPlayerOverlays_:function(B){return(B==null?void 0:B.playerOverlays)||null},
isVideoPlayable_:function(B,c){if(!B)return!1;var x=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",B)||this.get("errorScreen.ypcTrailerRenderer",B);B=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",B);var Y;c=c==null?void 0:(Y=c.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!x||!!P||!!B||!!c},
hasWatchNextResponseErrorRenderer:function(B){var c=this.getPageContents(B),x,P,Y,g,k;return!(B==null?0:(x=B.contents)==null?0:(P=x.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((Y=c[0])==null?0:(g=Y.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(B){return B?B.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(B,c,x){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.T("web_no_skip_video_on_verification_checks")?(B==null?void 0:B.status)&&Y.includes(B.status):B&&B.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",B);g==void 0&&(g=!0);!x||this.isVideoPlayable_(B,this.getPlayerOverlays_(c))||
P||Y||!g||_.cp().resolve(_.vK).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wYs()},
onPlayerFeedbackStartRequest_:function(B){_.gj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:B}])},
onPlayerFeedbackArticleRequest_:function(B){_.gj(this.hostElement,"yt-help-dialog-requested",[B])},
onPlayerYpcContentRequest_:function(){var B,c,x,P,Y,g,k,n,b=((B=this.data)==null?NaN:(c=B.contents)==null?NaN:(x=c.twoColumnWatchNextResults)==null?NaN:(P=x.secondaryResults)==null?NaN:(Y=P.secondaryResults)==null?NaN:(g=Y.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(n=k.actionButtons)==null?NaN:n.length)-1;B=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];c=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(x=c.next();!x.done;x=c.next())for(x=x.value,P=_.p(B),Y=P.next();!Y.done;Y=P.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+x+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.KL(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(B){_.aJ(this.hostElement,"yt-autonav-pause-player",B)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(B){B()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.aJ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(B)},
setPlayerState:function(B){_.uG().dispatch(_.ruQ(B))},
onPlayerSubscribe_:function(B){_.gj(this.hostElement,"yt-player-subscribe",[B])},
onPlayerUnsubscribe_:function(B){_.gj(this.hostElement,"yt-player-unsubscribe",[B])},
onPlayerAdYtShowToast_:function(B){_.gj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:B.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(B){if(B)return B},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(B){return!_.T("web_watch_move_summary_to_sd")&&!!B},
computeWatchMetadataRefresh:function(){return _.T("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var B,c,x,P;this.watchNextSecondaryResults=(B=this.data)==null?void 0:(c=B.contents)==null?void 0:(x=c.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:P.secondaryResults}},
setRichGridRendererData:function(B){this.richGridRendererData=B},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var B,c=(B=this.data)==null?void 0:B.engagementPanels;if(c==null?0:c.length){B=null;c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;if(((P=x.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){B=x;break}}var Y,g,k;B=(Y=B)==null?void 0:(g=Y.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(B==null?0:B.items){Y=
[];g=_.p(B.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var n=P=x=c=B=void 0,b=void 0,d=(B=k.horizontalCardListRenderer)==null?void 0:(c=B.header)==null?void 0:(x=c.richListHeaderRenderer)==null?void 0:(P=x.navigationButton)==null?void 0:(n=P.buttonRenderer)==null?void 0:(b=n.command)==null?void 0:b.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(q){return!_.t(q,_.EAy)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||Y.push(k)}return{items:Y}}}},
constructWarning_:function(B){return{text:_.fk(B),type:"WARNING"}},
isPlaShelfEnabled_:function(B){if((this.get("adPlacements",B)||[]).length)return!0;B=this.get("playerAds",B)||[];return!(!B.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",B[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var B=this;_.aJ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.R2(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonVisibility(B.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.aJ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var B=this;this.commentsReady=!1;_.EE.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Vp(_.EE,function(){B.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Op("cmi");_.EE.cancelJob(this.setCommentsJobId_);var B=this.getPageContents(this.data);if(B&&B.length){B=_.p(B);for(var c=B.next();!c.done;c=B.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.aJ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Op("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.EE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.EE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(B,c){var x=_.t(c.endpoint,_.fN);x&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||x.videoId!==c.videoId||x.playlistId&&x.playlistId!==c.playlistId||x.index!==void 0&&x.index!==c.index||typeof x.startTimeSeconds!=="number"||(B.stopPropagation(),this.setScrollTop(0),_.R2(this).getPlayerPromise().then(function(P){var Y=x.startTimeSeconds;P.seekTo(Y);P.wakeUpControls();Y<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var B=_.XY6();"t"in B&&(B=_.tji(B.t),this.player.seekTo(B,!0))},
updateTitleFromWatchNext:function(B){B=this.getPageContents(B);var c,x;(B=_.iG(B==null?void 0:(c=B[0])==null?void 0:(x=c.videoPrimaryInfoRenderer)==null?void 0:x.title))&&_.aJ(this.hostElement,"yt-update-title",B)},
updateTitle_:function(B){B=this.get("videoDetails.title",B)||"";_.aJ(this.hostElement,"yt-update-title",B)},
syncWithRemoteVideo_:function(B,c,x){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===x&&(x=P.list,_.T("polymer_enable_mdx_queue")&&x&&x.startsWith("RQ")&&(x=void 0),P.video_id!==B||x!=c)){var Y;_.T("kevlar_player_watch_endpoint_navigation")?Y=_.WS7(_.hrz(B,c)):Y=this.buildWatchEndpoint_(B,c);_.aJ(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(B,c,x){return _.B3(B,c,x)},
initDclkstatus_:function(){_.VjA()},
attachWatchPageSkeleton_:function(){var B=document.querySelector("#watch-page-skeleton");if(B){var c=B.querySelector("#primary-info"),x=B.querySelector("#secondary-info"),P=B.querySelector("#related");c&&_.Y9(this.hostElement).querySelector("#info-skeleton").appendChild(c);x&&_.Y9(this.hostElement).querySelector("#meta-skeleton").appendChild(x);P&&(_.Y9(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.qH(B)}},
handlePlayerUpdated_:function(){_.R2(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(B,c){if(this.watchNextSkeletonEl_&&typeof c!=="undefined"){var x=this.watchNextSkeletonEl_.children,P=B&&B.indexSplices.length?B.indexSplices[0].index:0;B=Math.min(this.watchNextShownItems.length,x.length);c||(P=0,B=x.length);for(c=P;c<B;c++)x[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(B){_.T("external_fullscreen")||_.gj(this.hostElement,"yt-player-fullscreen",[B.fullscreen])},
onFullscreenChange_:function(B){this.fullscreen=B;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.R2(this);c.getPlayerPromise().then(function(x){x.setFauxFullscreen(!!_.cr())});
this.updateFullBleedElementLocations();B&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(B,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(B){return B},
computeShouldShowMerchShelf:function(B,c){return c&&!!B},
computeResponseHasComments:function(B){var c,x,P,Y,g;return!!(B==null?0:(c=B.contents)==null?0:(x=c.twoColumnWatchNextResults)==null?0:(P=x.results)==null?0:(Y=P.results)==null?0:(g=Y.contents)==null?0:g.some(function(k){var n;return(k==null?void 0:(n=k.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(B,c){this.responseHasComments=this.computeResponseHasComments(this.data);return!!B&&!!Object.keys(B).length&&!c},
identity:_.Sd,onWindowResized_:function(B){this.windowSize_=B;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(B){var c=this;B&&B.type!=="dataloaded"&&B.type!=="dataupdated"||_.R2(this).getPlayerPromise().then(function(x){var P=x.getPlayerState();P!==5&&P!==0&&(x=1/x.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==x&&(c.videoHeightToWidthRatio_=x))})},
schedulePlayerSizeUpdate_:function(B){var c=this,x=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),P=function(){if(c.watchMetadata){var Y,g;(g=(Y=c.watchMetadata).resize)==null||g.call(Y)}_.R2(c).getPlayerPromise().then(function(k){if(_.T("kevlar_set_internal_player_size")){if(!x||!c.isMiniplayerActive()){var n=c.calculateCurrentPlayerSize_();k.setInternalSize(n.width,n.height)}}else k.setSize(NaN,NaN);_.T("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
B?P():_.Nv(_.EE,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(B){this.set("data.survey",B.detail)},
onYtShowSurveyCommand_:function(B){this.set("data.survey",_.t(B,_.OBS).survey)},
onDownloadedVideoDeleted:function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1){if(!c.active||(x=c.playerData)==null||!x.offlineState||c.videoId!==B)return Y.return();(P=c.player)==null||P.stopVideo();_.dd().navigatingAwayFromWatchDeletedVideo=!0;_.KL(_.tyI,c.hostElement);return _.K(Y,_.dd().navigationFinishPromise,2)}_.dd().navigatingAwayFromWatchDeletedVideo=!1;_.Kq(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var B;this.theater?B=_.vi(.5625*this.windowSize_.width,480,this.windowSize_.height-185):B=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==B&&(this.watchWhileScrollThreshold_=B,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var B=_.Y9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&B){var c=this.windowSize_.height>=624,x=this.active?this.getScrollTop():0;!B.active&&c&&x>=this.watchWhileScrollThreshold_?(B.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):B.active&&(!c||x<this.watchWhileScrollThreshold_&&!_.cr())&&(B.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(B,c){if(B!==!0||c!==void 0){B=!_.T("live_chat_over_engagement_panels");c=_.Y9(this.hostElement).querySelector("#chat-container");var x=_.Y9(this.hostElement).querySelector("#plj-sidebar"),P=_.Y9(this.hostElement).querySelector("#panels"),Y=_.Y9(this.hostElement).querySelector("#plj-panels"),g=_.Y9(this.hostElement).querySelector("#plj-playlist"),k=_.Y9(this.hostElement).querySelector("#alerts"),n=_.Y9(this.hostElement).querySelector("#playlist"),b=_.Y9(this.hostElement).querySelector("#related"),
d=_.Y9(this.hostElement).querySelector("#donation-shelf"),q=_.Y9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(k=_.Y9(this.hostElement).querySelector("#secondary-inner"),k.appendChild(x),x.appendChild(g),g.appendChild(n),x.appendChild(Y),B&&k.appendChild(P),_.T("web_watch_theater_chat")||k.appendChild(c),B||k.appendChild(P),k.appendChild(d),k.appendChild(b)):(B&&_.lL(P,k),_.lL(n,k),_.T("web_watch_theater_chat")||_.lL(c,k),B||_.lL(P,k),_.lL(d,k),q&&(Y&&_.lL(Y,q),_.lL(b,q)));_.T("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.T("web_watch_theater_chat")){var B=_.Y9(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?_.T("web_watch_theater_chat_beside_player")?(c=_.Y9(this.hostElement).querySelector("#panels-full-bleed-container"),(B==null?void 0:B.parentElement)!==c&&c.append(B),this.panelsBesidePlayer=!0):_.T("web_watch_theater_fixed_chat")&&
(c=_.Y9(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==c&&c.append(B),this.fixedPanels=!0):(_.T("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.T("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),c=_.Y9(this.hostElement).querySelector("#playlist"),B&&c?_.EY(B,c):_.Ob(new _.mc("Missing element when updating chat location",{"chatContainer defined":!!B,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(B,c){return _.T("sw_metadata_vis_toggle_ks")?!0:!!B||!!c},
computeForceDarkPanelTheme:function(B){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&B:!1},
safeUpdateStyles:function(B){try{_.k9(this.hostElement,B)}catch(c){_.Ob(c)}},
videoHeightToWidthRatioChanged_:function(B,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(B){this.videoHeightToWidthRatio_=1/B},
computeIsVerticalVideo_:function(B){return B>=1},
computeIsFourThreeToSixteenNineVideo_:function(B){return B<=.7501&&B>=.5624},
computeIsExtraWideVideo_:function(B){return B<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.R2(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.R2(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Mjs(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(B){var c=_.$g(B)||0;_.Xj(B,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var B=_.$g("yt-fullerscreen-edu-button-click-count")||0,c=_.$g("yt-fullerscreen-edu-button-shown-count")||0,x=_.Yu("external_fullscreen_button_shown_threshold"),P=B>=_.Yu("external_fullscreen_button_click_threshold")||c>=x;_.R2(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(B,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.cp().resolve(_.vK).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var B=this;this.panelMaxHeightUpdateJob_&&_.EE.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.EE.addLowPriorityJob(function(){B.panelMaxHeightUpdateJob_=0;var c;!B.isTwoColumns_||B.theater||B.fullscreen?c=460:c=B.calculateNormalPlayerSize_().height;var x=c+"px";_.T("live_chat_taller_height")&&!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.T("live_chat_medium_height")&&
!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!B.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 238px)");B.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":x,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})})},
onYtShowEngagementPanelScrimAction_:function(B){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",B)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.XX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(B){var c=_.Y9(this.hostElement).querySelector("#engagement-panel-scrim");B?c.addEventListener("tap",_.$9(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.$9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(B){if(this.hostElement.contains(B)&&!this.scrollToAnimation_.isAnimating()){var c=B.offsetTop-24;B=B.offsetTop+B.offsetHeight+24;var x=this.getPageScrollingElement(),P=this.getScrollTop(),Y=P+x.clientHeight-56;if(c<P+56)c-=56;else if(B>Y)c=B-x.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var B=this.hostElement.querySelector("#comments");if(B&&!this.scrollToAnimation_.isAnimating()){B=B.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(B-=_.KH().height/3,B<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtEngagementPanelVisibleChanged:function(B,c,x){this.active&&this.trackEngagementPanelVisibility&&!_.lis.includes(x)&&(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(x),c!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(x),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(B){return B?"":"watch-active-metadata"},
computeNewMetadataClass:function(B){return B?"watch-active-metadata":""},
computeFullBleedPlayer:function(B,c){return B||c},
computeDefaultLayout:function(B){return!B},
computeDefaultTwoColumnLayout:function(B,c){return!B&&c},
computeWatchWhilePanelsActive:function(B,c){return B||c},
computeNoBorderOnChat:function(B){return _.T("web_watch_theater_chat_no_border")&&B},
computeLiveChatPresentAndExpanded:function(B,c){return B&&!c},
computePanelExpanded:function(B,c,x){return B||c||x},
onChangeMarkersVisibility:function(B){_.R2(this).getPlayerPromise().then(function(c){var x;(x=c.changeMarkerVisibility)==null||x.call(c,_.t(B,_.L1).isVisible||!1,_.t(B,_.L1).entityKeys||[],_.t(B,_.L1).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(B){this.liveChatCollapsed=B.detail;_.uG().dispatch(_.Wus(B.detail))},
provideRenderingData:function(B,c){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=c;break;case "DONATION_SHELF":this.donation=c;break;
case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=c}},
toggleCinematicsActive:function(B){this.cinematicsActive=B},
isMiniplayerActive:function(){return _.cp().resolve(_.Ge).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(B){return sqi.map(function(c){return B.find(function(x){var P;return(x==null?void 0:(P=x.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===c})}).filter(function(c){return c!==void 0})},
getNonLearningJourneyEngagementPanels:function(B){return B.filter(function(c){var x;return!sqi.includes((c==null?void 0:(x=c.engagementPanelSectionListRenderer)==null?void 0:x.targetId)||"")})}}];var pPr;var e7=function(){var B=_.z.apply(this,arguments)||this;B.flexy=!0;B.learningJourney=!0;B.roundedInfoPanel=!0;B.viewTransitionEnabled=_.T("enable_player_resize_transition");B.smallerChatMinHeight=_.T("live_chat_smaller_min_height");B.cinematicTheaterMode=_.T("web_cinematic_theater_mode");B.transparentTheaterMode=_.T("web_transparent_theater_mode");B.cinematicFullscreen=_.T("web_cinematic_fullscreen");B.useLargerMaxPlayerValue=_.T("kevlar_flexy_use_larger_player_value");B.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");
B.isDarkTheme=document.documentElement.hasAttribute("dark");B.theaterLargerPlayer=_.T("web_watch_theater_larger_player");B.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");return B};
_.w(e7,_.z);_.a=e7.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.a.ready=function(){var B=this,c=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(B){_.T("web_watch_update_narrow_width_killswitch")||_.uG().dispatch(_.wQl(!B.detail.value));this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.a.updateShownItemsFromBinding=function(B){B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value};
_.a.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20583_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20583_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.AJ.Object.defineProperties(e7.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(B=_.t(this.data.pageVisualEffects[c],_.T9))return c=void 0,(c=B.config)==null?void 0:c.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.learningJourneyEngagementPanels)==null?void 0:B.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.learningJourneyEngagementPanels)==null?void 0:B.find(function(h){var V;return(h==null?void 0:(V=h.engagementPanelSectionListRenderer)==null?void 0:V.panelIdentifier)==="learning-journey-engagement-panel"});
if(c){var x,P,Y,g,k,n,b,d,q;if(B=(d=((b=(k=((g=c==null?void 0:(x=c.engagementPanelSectionListRenderer)==null?void 0:(P=x.content)==null?void 0:(Y=P.sectionListRenderer)==null?void 0:Y.contents)!=null?g:[])[0])==null?void 0:(n=k.itemSectionRenderer)==null?void 0:n.contents)!=null?b:[])[0])==null?void 0:(q=d.accordionViewModel)==null?void 0:q.onTitleTap){var C=_.vH(B);if(C)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.bA.instance.resolveCommand(C)}}}}}}});
_.AJ.Object.defineProperties(e7,{template:{configurable:!0,enumerable:!0,get:function(){if(pPr===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-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>\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);pPr=B}B=pPr;return B}}});
e7.prototype.updateMiniplayerIsActiveValue=e7.prototype.updateMiniplayerIsActiveValue;e7.prototype.updateScrollTopValue=e7.prototype.updateScrollTopValue;e7.prototype.updateFullscreenValue=e7.prototype.updateFullscreenValue;e7.prototype.updateTheaterValue=e7.prototype.updateTheaterValue;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],e7.prototype,"ytComponentBehavior",void 0);
_.L([_.J(gj8.YtdLearningJourneyWatchBehavior),_.H("design:type",Object)],e7.prototype,"ytdWatchBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],e7.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],e7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],e7.prototype,"playerData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"flexy",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"learningJourney",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"roundedInfoPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"viewTransitionEnabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"smallerChatMinHeight",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"cinematicTheaterMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"transparentTheaterMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"cinematicFullscreen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"useLargerMaxPlayerValue",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"cinematicFullscreenV2",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"isDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],e7.prototype,"theaterLargerPlayer",void 0);_.L([_.F(),_.H("design:type",Object)],e7.prototype,"defaultCollapsePlaylist",void 0);_.L([_.F({selector:_.vv}),_.H("design:type",Object)],e7.prototype,"theaterValue",void 0);
_.L([_.F({selector:_.zj}),_.H("design:type",Object)],e7.prototype,"fullscreenValue",void 0);_.L([_.F({selector:_.wi}),_.H("design:type",Object)],e7.prototype,"scrollTopValue",void 0);_.L([_.F({selector:_.Ev}),_.H("design:type",Object)],e7.prototype,"miniplayerIsActiveValue",void 0);_.L([_.jr("#ytd-plj-player"),_.H("design:type",HTMLElement)],e7.prototype,"ytdPlayer",void 0);_.L([_.jr("#playlist"),_.H("design:type",HTMLElement)],e7.prototype,"JSC$20583_ytdPlaylistPanelRenderer",void 0);
_.L([_.DR("ytd-comments"),_.H("design:type",HTMLElement)],e7.prototype,"ytdComments",void 0);_.L([_.jr("#primary"),_.H("design:type",HTMLElement)],e7.prototype,"primary",void 0);_.L([_.jr("#secondary"),_.H("design:type",HTMLElement)],e7.prototype,"secondary",void 0);_.L([_.jr("#player-container"),_.H("design:type",HTMLElement)],e7.prototype,"playerContainer",void 0);_.L([_.jr("#cinematics"),_.H("design:type",HTMLElement)],e7.prototype,"JSC$20583_cinematics",void 0);
_.L([_.bF("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e7.prototype,"updateTheaterValue",null);_.L([_.bF("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e7.prototype,"updateFullscreenValue",null);_.L([_.bF("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e7.prototype,"updateScrollTopValue",null);
_.L([_.bF("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e7.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],e7.prototype,"cinematicLightTheme",null);_.L([_.F({reflectToAttribute:!0}),_.Q("learningJourneyEngagementPanels"),_.H("design:type",Object),_.H("design:paramtypes",[])],e7.prototype,"hasLearningJourneyPanels",null);
_.L([_.Q("learningJourneyEngagementPanels"),_.H("design:type",Object),_.H("design:paramtypes",[])],e7.prototype,"backButtonData",null);_.L([_.y({is:"ytd-watch-learning-journey"})],e7);_.gk.registerService(_.YS7,e7);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("Tm0L3c");
var DFz;var rpA;var Rrc=function(){return _.z.apply(this,arguments)||this};
_.w(Rrc,_.z);_.L([_.y({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Rrc);
_.G(Rrc,"ytd-ghost-comments-renderer",function(){if(rpA===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);rpA=B}B=rpA;return B},{mode:1});var er8;var BPo=function(){return _.z.apply(this,arguments)||this};
_.w(BPo,_.z);_.L([_.y({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],BPo);
_.G(BPo,"ytd-ghost-watch-metadata-renderer",function(){if(er8===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);er8=B}B=er8;return B},{mode:1});var R6=function(){var B=_.z.apply(this,arguments)||this;B.ghostGridRenderer={rows:6};B.roundedInfoPanel=!0;B.hideOfferModules=!0;B.smallerChatMinHeight=_.T("live_chat_smaller_min_height");B.cinematicTheaterMode=_.T("web_cinematic_theater_mode");B.transparentTheaterMode=_.T("web_transparent_theater_mode");B.darkerPanels=_.T("web_watch_darker_panels");B.cinematicFullscreen=_.T("web_cinematic_fullscreen");B.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");B.isDarkTheme=document.documentElement.hasAttribute("dark");
return B};
_.w(R6,_.z);_.a=R6.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.a.ready=function(){var B=this,c=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(B){this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.a.updateShownItemsFromBinding=function(B){_.T("swatcheroo_direct_use_rich_grid")||(B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value)};
_.a.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20571_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20571_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.AJ.Object.defineProperties(R6.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(B=_.t(this.data.pageVisualEffects[c],_.T9))return c=void 0,(c=B.config)==null?void 0:c.enableInLightTheme;return!1}}});
R6.prototype.updateMiniplayerIsActiveValue=R6.prototype.updateMiniplayerIsActiveValue;R6.prototype.updateScrollTopValue=R6.prototype.updateScrollTopValue;R6.prototype.updateFullscreenValue=R6.prototype.updateFullscreenValue;R6.prototype.updateTheaterValue=R6.prototype.updateTheaterValue;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.Apr.YtdWatchBehavior),_.H("design:type",Object)],R6.prototype,"ytdWatchBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],R6.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],R6.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],R6.prototype,"ghostGridRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],R6.prototype,"playerData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"roundedInfoPanel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"hideOfferModules",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"smallerChatMinHeight",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"cinematicTheaterMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"transparentTheaterMode",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"darkerPanels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"cinematicFullscreen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"cinematicFullscreenV2",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"isDarkTheme",void 0);_.L([_.F({selector:_.vv}),_.H("design:type",Object)],R6.prototype,"theaterValue",void 0);
_.L([_.F({selector:_.zj}),_.H("design:type",Object)],R6.prototype,"fullscreenValue",void 0);_.L([_.F({selector:_.wi}),_.H("design:type",Object)],R6.prototype,"scrollTopValue",void 0);_.L([_.F({selector:_.Ev}),_.H("design:type",Object)],R6.prototype,"miniplayerIsActiveValue",void 0);_.L([_.jr("#ytd-player"),_.H("design:type",HTMLElement)],R6.prototype,"ytdPlayer",void 0);_.L([_.jr("#playlist"),_.H("design:type",HTMLElement)],R6.prototype,"JSC$20571_ytdPlaylistPanelRenderer",void 0);
_.L([_.jr("#ytd-comments"),_.H("design:type",HTMLElement)],R6.prototype,"ytdComments",void 0);_.L([_.jr("#primary"),_.H("design:type",HTMLElement)],R6.prototype,"primary",void 0);_.L([_.jr("#secondary"),_.H("design:type",HTMLElement)],R6.prototype,"secondary",void 0);_.L([_.jr("#player-container"),_.H("design:type",HTMLElement)],R6.prototype,"playerContainer",void 0);_.L([_.jr("#cinematics"),_.H("design:type",HTMLElement)],R6.prototype,"JSC$20571_cinematics",void 0);
_.L([_.bF("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R6.prototype,"updateTheaterValue",null);_.L([_.bF("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R6.prototype,"updateFullscreenValue",null);_.L([_.bF("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R6.prototype,"updateScrollTopValue",null);
_.L([_.bF("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R6.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],R6.prototype,"cinematicLightTheme",null);
_.G(R6,"ytd-watch-grid",function(){if(DFz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);DFz=B}B=DFz;return B},{mode:2});_.gk.registerService(_.P0x,R6);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("CF909");
var uWl;var rw=function(){var B=_.z.apply(this,arguments)||this;B.flexy=!0;B.roundedInfoPanel=!0;B.viewTransitionEnabled=_.T("enable_player_resize_transition");B.smallerChatMinHeight=_.T("live_chat_smaller_min_height");B.cinematicTheaterMode=_.T("web_cinematic_theater_mode");B.transparentTheaterMode=_.T("web_transparent_theater_mode");B.cinematicFullscreen=_.T("web_cinematic_fullscreen");B.useLargerMaxPlayerValue=_.T("kevlar_flexy_use_larger_player_value");B.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");
B.isDarkTheme=document.documentElement.hasAttribute("dark");B.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");B.retroModeReduxValue=!1;return B};
_.w(rw,_.z);_.a=rw.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateRetroModeReduxValue=function(){_.T("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.a.ready=function(){var B=this,c=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(B){_.T("web_watch_update_narrow_width_killswitch")||_.uG().dispatch(_.wQl(!B.detail.value));this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.a.updateShownItemsFromBinding=function(B){B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value};
_.a.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20566_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20566_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.AJ.Object.defineProperties(rw.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(B=_.t(this.data.pageVisualEffects[c],_.T9))return c=void 0,(c=B.config)==null?void 0:c.enableInLightTheme;return!1}}});
_.AJ.Object.defineProperties(rw,{template:{configurable:!0,enumerable:!0,get:function(){if(uWl===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);uWl=B}B=uWl;return B}}});
rw.prototype.updateRetroModeReduxValue=rw.prototype.updateRetroModeReduxValue;rw.prototype.updateScrollTopValue=rw.prototype.updateScrollTopValue;rw.prototype.updateFullscreenValue=rw.prototype.updateFullscreenValue;rw.prototype.updateTheaterValue=rw.prototype.updateTheaterValue;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.Apr.YtdWatchBehavior),_.H("design:type",Object)],rw.prototype,"ytdWatchBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],rw.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rw.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],rw.prototype,"playerData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"flexy",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"roundedInfoPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"viewTransitionEnabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"smallerChatMinHeight",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"cinematicTheaterMode",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"transparentTheaterMode",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"cinematicFullscreen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"useLargerMaxPlayerValue",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"cinematicFullscreenV2",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"isDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],rw.prototype,"defaultCollapsePlaylist",void 0);_.L([_.F({selector:_.vv}),_.H("design:type",Object)],rw.prototype,"theaterValue",void 0);_.L([_.F({selector:_.zj}),_.H("design:type",Object)],rw.prototype,"fullscreenValue",void 0);_.L([_.F({selector:_.wi}),_.H("design:type",Object)],rw.prototype,"scrollTopValue",void 0);
_.L([_.F({selector:_.Ev}),_.H("design:type",Object)],rw.prototype,"miniplayerIsActive",void 0);_.L([_.F({selector:function(B){return B.watch.isWatchRetroMode}}),
_.H("design:type",Object)],rw.prototype,"retroModeReduxValue",void 0);_.L([_.DR("ytd-player"),_.H("design:type",HTMLElement)],rw.prototype,"ytdPlayer",void 0);_.L([_.jr("#playlist"),_.H("design:type",HTMLElement)],rw.prototype,"JSC$20566_ytdPlaylistPanelRenderer",void 0);_.L([_.DR("ytd-comments"),_.H("design:type",HTMLElement)],rw.prototype,"ytdComments",void 0);_.L([_.jr("#primary"),_.H("design:type",HTMLElement)],rw.prototype,"primary",void 0);
_.L([_.jr("#secondary"),_.H("design:type",HTMLElement)],rw.prototype,"secondary",void 0);_.L([_.jr("#player-container"),_.H("design:type",HTMLElement)],rw.prototype,"playerContainer",void 0);_.L([_.jr("#cinematics"),_.H("design:type",HTMLElement)],rw.prototype,"JSC$20566_cinematics",void 0);_.L([_.bF("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rw.prototype,"updateTheaterValue",null);
_.L([_.bF("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rw.prototype,"updateFullscreenValue",null);_.L([_.bF("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rw.prototype,"updateScrollTopValue",null);_.L([_.bF("retroModeReduxValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rw.prototype,"updateRetroModeReduxValue",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rw.prototype,"cinematicLightTheme",null);_.L([_.y({is:"ytd-watch-flexy"})],rw);_.gk.registerService(_.x1d,rw);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("nmfa2d");
var kdi;var yv=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;B.errorScreen=null;B.playlistData={};return B};
_.w(yv,_.z);_.a=yv.prototype;_.a.getPlayer=function(){return this.ytdPlayer};
_.a.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:_.or(["aa","eocs"])}}};
_.a.onActiveChanged=function(){_.uG().dispatch(_.xFz(this.ytPageBehavior.active))};
_.a.playerDataChanged=function(){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData)};
_.a.dataChanged=function(){var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data)};
_.a.sizeChanged=function(){var B,c;(c=(B=this.metadata).resize)==null||c.call(B)};
_.a.attached=function(){this.watchController=new _.zR(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.a.detached=function(){_.R3(this.watchController);this.watchController=void 0};
_.a.getPlayerContainer=function(){return this.playerContainer};
_.a.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20518_playlistPanel}};
_.a.provideRenderingData=function(B,c){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=c;break;case "ERROR_SCREEN":this.errorScreen=c!=null?c:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=c;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=c;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=c;break;case "RICH_METADATA":this.richMetadataRowContainer=c;break;case "CLARIFICATION":this.clarificationData=c;break;case "PLAYLIST":this.playlistData=
c!=null?c:{};break;case "MERCH_SHELF":this.merchShelf=c;break;case "TICKET_SHELF":this.ticketShelf=c;break;case "LIMITED_STATE":this.limitedState=c;break;case "DONATION_SHELF":this.donationShelf=c;break;case "ALERTS":this.alerts=c}};
_.AJ.Object.defineProperties(yv.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return!this.hidden&&!!((B=this.data)==null?0:(c=B.contents)==null?0:(x=c.twoColumnWatchNextResults)==null?0:x.conversationBar)}}});
yv.prototype.sizeChanged=yv.prototype.sizeChanged;yv.prototype.dataChanged=yv.prototype.dataChanged;yv.prototype.playerDataChanged=yv.prototype.playerDataChanged;yv.prototype.onActiveChanged=yv.prototype.onActiveChanged;_.L([_.J(_.N1.YtPageBehavior),_.H("design:type",Object)],yv.prototype,"ytPageBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],yv.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"playerData",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yv.prototype,"hidden",void 0);_.L([_.jr("#ytd-player"),_.H("design:type",HTMLElement)],yv.prototype,"ytdPlayer",void 0);_.L([_.jr("#player-container"),_.H("design:type",HTMLElement)],yv.prototype,"playerContainer",void 0);_.L([_.jr("#metadata"),_.H("design:type",Object)],yv.prototype,"metadata",void 0);_.L([_.jr("#playlist"),_.H("design:type",HTMLElement)],yv.prototype,"JSC$20518_playlistPanel",void 0);
_.L([_.F({selector:_.QKz,reflectToAttribute:!0}),_.H("design:type",Object)],yv.prototype,"fixie",void 0);_.L([_.F({selector:_.ohB,reflectToAttribute:!0}),_.H("design:type",Object)],yv.prototype,"singleColumn",void 0);_.L([_.F({selector:function(B){return _.vv(B)&&!_.zj(B)},
reflectToAttribute:!0}),_.H("design:type",Object)],yv.prototype,"theater",void 0);_.L([_.F({selector:_.zj,reflectToAttribute:!0}),_.H("design:type",Object)],yv.prototype,"fullscreen",void 0);_.L([_.F({selector:_.cpA}),_.H("design:type",Object)],yv.prototype,"windowSize",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"singleColumnContents",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"errorScreen",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"playlistData",void 0);
_.L([_.F(),_.H("design:type",Object)],yv.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"richMetadataRowContainer",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"clarificationData",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"ticketShelf",void 0);
_.L([_.F(),_.H("design:type",Object)],yv.prototype,"merchShelf",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"donationShelf",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"limitedState",void 0);_.L([_.F(),_.H("design:type",Object)],yv.prototype,"alerts",void 0);_.L([_.Q("playlistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],yv.prototype,"hasPlaylistData",null);
_.L([_.Q("data","hidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yv.prototype,"hasChat",null);_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yv.prototype,"onActiveChanged",null);_.L([_.bF("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yv.prototype,"playerDataChanged",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yv.prototype,"dataChanged",null);_.L([_.bF("windowSize","singleColumn"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yv.prototype,"sizeChanged",null);
_.G(yv,"ytd-watch-fixie",function(){if(kdi===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);kdi=B}B=kdi;return B},{mode:1});_.gk.registerService(_.cLY,yv);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("xwEKAe");
var NIr=function(B){var c=_.CW();if(c.getFlag(202))c=c.getFlag(201);else{var x;c=(B==null?void 0:(x=B.config)==null?void 0:x.settingOnByDefault)!==void 0?B.config.settingOnByDefault:!_.T("web_shorts_cinematics_disabled_by_default")}return c},IoB=function(B){var c=_.CW();
_.hi(0,201,B);_.hi(0,202,!0);c.save()},JQ8=function(B){return(B=_.eX$(B))?_.cN7(B):0},WMs=function(B){return B.shorts.isSmallScreenSqueezeback},lor=function(B){return B.shorts.isPlaybackStarted},oKN=function(B){var c=_.h2q(2),x=new Set;
_.lP(function(){return void x.forEach(function(P){return void P()})});
return function(P){var Y=_.e$(c);try{var g=EKy(O5A(B),P);x.add(g);return function(){g();x.delete(g)}}finally{_.e$(Y)}}},Qaz=function(B){var c=B.children;
var x=B.root;_.JR(function(){var P=oKN(x)(c);_.lP(P)});
return document.createTextNode("")},EKy=function(B,c){var x=FMF(B);
B=_.p(_.$ed(c,!0));c=B.next().value;var P=B.next().value;x.append.apply(x,_.wq(c));return function(){P();x.remove()}},O5A=function(B){if(typeof B==="string")return B=document.querySelector(B),_.bUi(B),B;
if(_.ss(B)&&B.nodeType===Node.ELEMENT_NODE)return B;try{if(!B.__hasErrored){if(B.__count&&B.__count>1)throw _.wD.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.ib);if(B.__value){if(_.ib!==_.ib){var c=B.__value.tagName.toLowerCase();if(c!==_.ib.toLowerCase())throw _.wD.USE_ELEMENT_UNEXPECTED_ELEMENT(_.ib,c);}}else throw _.wD.USE_ELEMENT_NOT_ASSIGNED(_.ib);}}catch(P){var x;(x=_.xD.handleError)==null||x.call.apply(x,[_.xD].concat(_.wq(_.zI(P,c))))}finally{B.__count=0}return B.value},FMF=function(B){var c=document.createElementNS(B.namespaceURI,
B.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return B.appendChild(c)},vKB=function(B,c,x,P){B=c-B;
x=P-x;return Math.sqrt(B*B+x*x)},zj8=function(B,c){B&&_.cp().resolve(_.xu).resolveCommand(B,{forceClickLogging:!0,
form:{element:c}})},SW6=function(B,c,x,P){B=c-B;
x=P-x;return Math.sqrt(B*B+x*x)},yQ8=function(B,c){B&&_.cp().resolve(_.xu).resolveCommand(B,{forceClickLogging:!0,
form:{element:c}})},G0r=function(B){B.unsubscribeFromStore=_.C0(B.storeWithShorts,_.Kc6,function(c){B.initOrDisposeActiveModules(c);
!c&&B.storeWithShorts.getState().shorts.isFullscreen&&(_.xC(document.documentElement),B.storeWithShorts.dispatch(_.dDB(!1)))});
B.initOrDisposeActiveModules(_.Kc6(B.storeWithShorts.getState()))},Myz=function(B){var c=_.cp().resolve(_.h2);
c.rootElement=B;G0r(c)},LMF=function(){return _.cp().resolve(_.h2).dismissedIndices},Z5y=function(B){return _.YN({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:B}})},H5z=function(B){return _.YN({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:B}})},aC=function(B){return _.YN({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:B}})};var gi=function(B,c){if(B instanceof gi)this.array_=B.array_;else{var x;if(x=_.R7(B))a:{for(var P=x=0;P<B.length;P++){if(!_.R7(B[P])||x>0&&B[P].length!=x){x=!1;break a}for(var Y=0;Y<B[P].length;Y++)if(typeof B[P][Y]!=="number"){x=!1;break a}x==0&&(x=B[P].length)}x=x!=0}if(x)this.array_=_.DA(B);else if(B instanceof _.nH)this.array_=foc(B.height,B.width);else if(typeof B==="number"&&typeof c==="number"&&B>0&&c>0)this.array_=foc(B,c);else throw Error("$l");}this.size_=new _.nH(this.array_[0].length,
this.array_.length)},i56=function(B,c,x){for(var P=0;P<B.getSize().height;P++)for(var Y=0;Y<B.getSize().width;Y++)c.call(x,B.array_[P][Y],P,Y,B)},AQc=function(B,c){var x=new gi(B.getSize());
i56(B,function(P,Y,g){x.array_[Y][g]=c.call(void 0,P,Y,g,B)});
return x},foc=function(B,c){for(var x=[],P=0;P<B;P++){x[P]=[];
for(var Y=0;Y<c;Y++)x[P][Y]=0}return x};
gi.prototype.add=function(B){if(!_.eCi(this.size_,B.getSize()))throw Error("am");return AQc(this,function(c,x,P){return c+B.array_[x][P]})};
gi.prototype.equals=function(B,c){if(this.size_.width!=B.size_.width||this.size_.height!=B.size_.height)return!1;c=c||0;for(var x=0;x<this.size_.height;x++)for(var P=0;P<this.size_.width;P++)if(!_.RCi(this.array_[x][P],B.array_[x][P],c))return!1;return!0};
gi.prototype.getSize=function(){return this.size_};
var sT=function(B,c,x){return c>=0&&c<B.size_.height&&x>=0&&x<B.size_.width?B.array_[c][x]:null};
gi.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var pB=function(B,c,x,P){if(!(c>=0&&c<B.size_.height&&x>=0&&x<B.size_.width))throw Error("bm`"+c+"`"+x+"`"+B.size_.height+"`"+B.size_.width);B.array_[c][x]=P};
gi.prototype.multiply=function(B){if(B instanceof gi){if(this.size_.width!=B.getSize().height)throw Error("cm");return uEF(this,B)}if(typeof B==="number")return Dty(this,B);throw Error("dm");};
var uEF=function(B,c){var x=new gi(B.size_.height,c.getSize().width);i56(x,function(P,Y,g){for(var k=P=0;k<this.size_.width;k++)P+=sT(this,Y,k)*sT(c,k,g);pB(x,Y,g,P)},B);
return x},Dty=function(B,c){return AQc(B,function(x){return x*c})};var rQi=new _.A("inlineSurveyRenderer");var Rji=new _.A("interstitialViewModel");var ejF=new _.A("reelNavigateCommand");var BNB=new _.A("reelNonVideoContentDismissalCommand");var ckr=new _.A("showReelsCommentsOverlayCommand");var xuN=new _.A("shortsSuggestedActionViewModel");var PsS=new _.A("videoInteractionPopUpRenderer");var Y8z;var aJF;var ghs;var kt=function(){var B=_.z.apply(this,arguments)||this;B.ctaVisualElement=null;B.currentCsn=null;return B};
_.w(kt,_.z);_.a=kt.prototype;_.a.onDataChanged=function(){this.maybeLogShows()};
_.a.computeButtonShape=function(){var B=this;if(this.data)return{buttonText:_.iG(this.data.text),state:"active",onTap:function(){B.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.a.maybeCreateCtaVe=function(){var B;if((B=this.data)!=null&&B.badgeInteractionLogging){var c;if(B=(c=this.data.badgeInteractionLogging)==null?void 0:c.trackingParams)this.ctaVisualElement=_.VF(B)}};
_.a.maybeLogClicks=function(){this.currentCsn=_.Wf(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.fW(this.currentCsn,this.ctaVisualElement)};
_.a.maybeLogShows=function(){this.currentCsn=_.Wf(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Z1(this.currentCsn,[this.ctaVisualElement])};
_.a.onTap=function(){var B;if((B=this.data)!=null&&B.onClickCommand){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand);this.maybeLogClicks()}};
kt.prototype.onDataChanged=kt.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],kt.prototype,"ytComponentBehavior",void 0);_.L([_.F({}),_.H("design:type",Object)],kt.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kt.prototype,"onDataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],kt);
_.G(kt,"ytd-shopping-overlay-badge-renderer",function(){if(ghs!==void 0)return ghs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ghs=B},{mode:1});_.xU(_.zQo,"reel-sound-metadata-view-model",{props:{data:_.cw,overlayDensity:_.cw}});_.xU(_.wNz,"player-disclosure-view-model",{props:{data:_.rk}});_.xU(_.eCZ,"pivot-button-view-model",{props:{data:_.cw,className:_.cw}});_.xU(_.BIW,"reel-action-bar-view-model",{props:{data:_.rk,buttonShapeOverrideables:_.rk}});_.xU(_.rM(function(B){function c(){var kI,Ul,wC,W$,El=(Ul=_.t((kI=f())==null?void 0:kI.command,_.VR))==null?void 0:(wC=Ul.item)==null?void 0:(W$=wC.notificationTextRenderer)==null?void 0:W$.successResponseText;if(El)_.gj(P.value,"yt-open-popup-action",[_.rL(El),P.value]);else if(Z())zj8(Z(),N.value);else{var H$;zj8((H$=f())==null?void 0:H$.command,N.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var x=B.data;var P=_.Ho("yt-player-overlay-video-interactions");B=_.p(_.$D("0px",void 0,"O1N7Ce"));var Y=B.next().value,g=B.next().value;B=_.p(_.$D("0px",void 0,"tTDBdb"));var k=B.next().value,n=B.next().value;B=_.p(_.$D(0,void 0,"fh8Zkc"));var b=B.next().value,d=B.next().value;B=_.p(_.$D(0,void 0,"CUjqGd"));var q=B.next().value,C=B.next().value,h=function(){var kI;if(((kI=_.kx())==null?void 0:kI.getPlayerState())!==-1){P.value.style.display="inherit";var Ul;(Ul=_.kx())==null||Ul.removeEventListener("onStateChange",
h)}V()},V=function(){var kI=document.querySelector("video");
if(kI){d(kI.getBoundingClientRect().width);C(kI.getBoundingClientRect().height);var Ul;g((kI==null?void 0:(Ul=kI.style)==null?void 0:Ul.left)||"0px");var wC;n((kI==null?void 0:(wC=kI.style)==null?void 0:wC.top)||"0px")}};
_.IO(function(){var kI,Ul,wC;if(((kI=_.kx())==null?void 0:kI.getPlayerState())===-1&&Math.round(((wC=(Ul=_.kx())==null?void 0:Ul.getVideoAspectRatio())!=null?wC:0)*100)!==Math.round(b()/q()*100)){P.value.style.display="none";var W$,El;C(b()/((El=(W$=_.kx())==null?void 0:W$.getVideoAspectRatio())!=null?El:1))}},"VB5m5");
_.JR(function(){var kI;(kI=_.kx())==null||kI.addEventListener("onStateChange",h);window.addEventListener("resize",V);V();var Ul,wC,W$;if((W$=(Ul=x())==null?void 0:(wC=Ul.regions)==null?void 0:wC[0])==null||!W$.transformationMatrix)throw Error("hm");var El;if((El=x())==null?0:El.trackingParams){var H$;_.q_().graftServerVe((H$=x().trackingParams)!=null?H$:"")}_.lP(function(){var yw;(yw=_.kx())==null||yw.removeEventListener("onStateChange",h);window.removeEventListener("resize",V)})});
var N=_.Ho("svg"),l=_.p(_.$D(!1,void 0,"TPsTce"));B=l.next().value;var E=l.next().value,S=_.p(_.$D(!1,void 0,"Uz6CHf"));l=S.next().value;var M=S.next().value,f=function(){var kI;return _.t((kI=x())==null?void 0:kI.popUp,PsS)},Z=function(){var kI;
return(kI=x())==null?void 0:kI.command},u=function(){return _.t(Z(),_.d$)!==void 0};
S=_.qe(function(){c();return!1});
var e={},px={};return _.U("yt-player-overlay-video-interactions",{el:P},_.U("svg",{"on:mouseover":_.qe(function(){u()&&E(!0);M(!0);return!1}),
"on:mouseout":_.qe(function(){E(!1);M(!1);return!1}),
"on:keydown":_.qe(function(kI){kI.key==="Enter"&&c();return!1}),
"on:focus":_.qe(function(){u()&&E(!0);return!1}),
"on:blur":_.qe(function(){u()&&E(!1);return!1}),
el:N,tabindex:0,"aria-label":function(){var kI;return(kI=x())==null?void 0:kI.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Kw("yt-player-overlay-video-interactions__interactions-svg",(e["yt-player-overlay-video-interactions__interactions-svg-hover"]=B,e),(px["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=l,px)),role:"button",style:function(){var kI,Ul,wC,W$=(wC=(kI=x())==null?void 0:(Ul=kI.regions)==null?void 0:Ul[0].transformationMatrix)!=null?wC:[];kI=b();Ul=q();wC=[];for(var El=0,H$=-1;El<W$.length;El++)El%3===0&&(H$++,wC[H$]=[]),wC[H$].push(W$[El]);
W$=new gi(wC);wC=new gi([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);wC=W$.multiply(wC);W$=new gi([[0,0],[0,0],[0,0],[0,0]]);for(El=0;El<wC.getSize().width;El++){H$=sT(wC,0,El);var yw=sT(wC,1,El);if(H$===null||yw===null)throw Error("gm`"+(El+1).toString());pB(W$,El,0,H$*kI);pB(W$,El,1,yw*Ul)}kI=sT(W$,0,0);El=sT(W$,1,0);Ul=sT(W$,0,1);H$=sT(W$,1,1);if(kI===null||El===null||Ul===null||H$===null)throw Error("em");wC=vKB(kI,El,Ul,H$);yw=sT(W$,3,0);W$=sT(W$,3,1);if(yw===null||W$===null)throw Error("fm");W$=vKB(kI,
yw,Ul,W$);H$=(Number((H$*-1).toFixed(2))-Number((Ul*-1).toFixed(2)))/(Number(El.toFixed(2))-Number(kI.toFixed(2)));yw=Math.atan(H$)*180/Math.PI;El=H$===Number.POSITIVE_INFINITY?-90:H$===Number.NEGATIVE_INFINITY?90:Object.is(H$,-0)?180:H$===0?0:H$>0?yw*-1:kI<El?yw*-1:Math.abs(yw)+180;return"left:calc("+kI+"px + "+Y()+"); top:calc("+(Ul+"px + "+k()+"); width:")+(wC+"px; height:")+(W$+"px; transform:rotate(")+(El+"deg);")},
"on:click":S}))},"Ni"),"yt-player-overlay-video-interactions",{props:{data:_.rk}});_.xU(_.lmi,"yt-reel-metapanel-view-model",{props:{data:_.rk,overlayDensity:_.rk}});var sKc=_.rM(function(B){var c=B.children;var x=B.region;B=_.p(_.$D(void 0,void 0,"rwJZyc"));var P=B.next().value,Y=B.next().value;B=_.p(_.$D("0px",void 0,"H14H5c"));var g=B.next().value,k=B.next().value;B=_.p(_.$D("0px",void 0,"Mn8Uvf"));var n=B.next().value,b=B.next().value;B=_.p(_.$D(0,void 0,"QQCIqc"));var d=B.next().value,q=B.next().value;B=_.p(_.$D(0,void 0,"HyEvh"));var C=B.next().value,h=B.next().value,V=function(){var f=P();if(f){var Z;if(((Z=_.kx())==null?void 0:Z.getPlayerState())!==-1){f.style.display=
"inherit";var u;(u=_.kx())==null||u.removeEventListener("onStateChange",V)}l()}},N=function(){var f=document.querySelectorAll("video");
return Array.from(f).find(function(Z){return Z==null?void 0:Z.style})},l=function(){var f=N();
if(f){q(f.getBoundingClientRect().width);h(f.getBoundingClientRect().height);var Z;k((f==null?void 0:(Z=f.style)==null?void 0:Z.left)||"0px");var u;b((f==null?void 0:(u=f.style)==null?void 0:u.top)||"0px")}};
_.IO(function(){var f=P();if(f){var Z,u,e;if(((Z=_.kx())==null?void 0:Z.getPlayerState())===-1&&Math.round(((e=(u=_.kx())==null?void 0:u.getVideoAspectRatio())!=null?e:0)*100)!==Math.round(d()/C()*100)){f.style.display="none";var px,kI;h(d()/((kI=(px=_.kx())==null?void 0:px.getVideoAspectRatio())!=null?kI:1))}}},"RdGxIf");
var E=function(){l()},S;
_.JR(function(){l();var f;if(!(x==null?0:(f=x())==null?0:f.transformationMatrix))throw Error("hm");var Z;(Z=_.kx())==null||Z.addEventListener("onStateChange",V);if(window.ResizeObserver){if(f=N())S=new ResizeObserver(E),S.observe(f)}else window.addEventListener("resize",l);_.lP(function(){var u;(u=_.kx())==null||u.removeEventListener("onStateChange",V);S?S.disconnect():window.removeEventListener("resize",l)})});
var M=function(){var f,Z,u=(Z=x==null?void 0:(f=x())==null?void 0:f.transformationMatrix)!=null?Z:[];f=d();Z=C();for(var e=[],px=0,kI=-1;px<u.length;px++)px%3===0&&(kI++,e[kI]=[]),e[kI].push(u[px]);u=new gi(e);e=new gi([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);e=u.multiply(e);u=new gi([[0,0],[0,0],[0,0],[0,0]]);for(px=0;px<e.getSize().width;px++){kI=sT(e,0,px);var Ul=sT(e,1,px);if(kI===null||Ul===null)throw Error("gm`"+(px+1).toString());pB(u,px,0,kI*f);pB(u,px,1,Ul*Z)}f=sT(u,0,0);px=sT(u,1,0);Z=sT(u,0,1);
kI=sT(u,1,1);if(f===null||px===null||Z===null||kI===null)throw Error("em");e=SW6(f,px,Z,kI);Ul=sT(u,3,0);u=sT(u,3,1);if(Ul===null||u===null)throw Error("fm");u=SW6(f,Ul,Z,u);kI=(Number((kI*-1).toFixed(2))-Number((Z*-1).toFixed(2)))/(Number(px.toFixed(2))-Number(f.toFixed(2)));Ul=Math.atan(kI)*180/Math.PI;px=kI===Number.POSITIVE_INFINITY?-90:kI===Number.NEGATIVE_INFINITY?90:Object.is(kI,-0)?180:kI===0?0:kI>0?Ul*-1:f<px?Ul*-1:Math.abs(Ul)+180;return"left:calc("+f+"px + "+g()+"); top:calc("+(Z+"px + "+
n()+"); width:")+(e+"px; height:")+(u+"px; transform:rotate(")+(px+"deg);")};
return _.U(Qaz,{root:"#sticker-layer"},function(){return _.U("yt-overlay-sticker",{el:_.Rm(Y),style:M,class:"ytOverlayStickerHost"},c)})},"Oi");var pgy=_.rM(function(B){function c(){var V,N,l,E,S=(N=_.t((V=b())==null?void 0:V.command,_.VR))==null?void 0:(l=N.item)==null?void 0:(E=l.notificationTextRenderer)==null?void 0:E.successResponseText;if(S)_.gj(P.value,"yt-open-popup-action",[_.rL(S),P.value]);else if(d())yQ8(d(),P.value);else{var M;yQ8((M=b())==null?void 0:M.command,P.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var x=B.data;var P=_.Ho("svg"),Y=_.p(_.$D(!1,void 0,"T9Bq7b"));B=Y.next().value;var g=Y.next().value,k=_.p(_.$D(!1,void 0,"iMHq9c"));Y=k.next().value;var n=k.next().value,b=function(){var V;return _.t((V=x())==null?void 0:V.popUp,PsS)},d=function(){var V;
return(V=x())==null?void 0:V.command},q=function(){return _.t(d(),_.d$)!==void 0};
k=_.qe(function(){c();return!1});
var C={},h={};return _.U("svg",{"on:mouseover":_.qe(function(){q()&&g(!0);n(!0);return!1}),
"on:mouseout":_.qe(function(){g(!1);n(!1);return!1}),
"on:keydown":_.qe(function(V){V.key==="Enter"&&c();return!1}),
"on:focus":_.qe(function(){q()&&g(!0);return!1}),
"on:blur":_.qe(function(){q()&&g(!1);return!1}),
el:P,tabindex:0,"aria-label":function(){var V;return(V=x())==null?void 0:V.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Kw("ytPlayerOverlayInteractionInteractionsSvg",(C.ytPlayerOverlayInteractionInteractionsSvgHover=B,C),(h.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Y,h)),role:"button","on:click":k})},"Qi");_.xU(_.rM(function(B){var c=B.data;_.JR(function(){var x;if((x=c())==null?0:x.trackingParams){var P;_.q_().graftServerVe((P=c().trackingParams)!=null?P:"")}});
return _.U("yt-player-overlay-interaction",null,_.U(sKc,{region:function(){var x,P;return(x=c())==null?void 0:(P=x.regions)==null?void 0:P[0]}},_.U(pgy,Object.assign({},B))))},"Pi"),"yt-player-overlay-interaction",{props:{data:_.rk}});var XW=function(){var B=_.z.apply(this,arguments)||this;B.showScrubber=!1;B.isWatchWhileMode=!1;B.enableRemixButton=_.T("web_enable_shorts_remix_handoff_ep");B.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");B.enableNewStickers=_.T("use_shorts_sticker_overlay_web");B.anchoredPanelActive=!1;B.enableLivingroomLayout=_.T("reels_enable_livingroom_layout");B.enablePlayerMetadataContainer=_.T("reels_web_enable_metadata_container");B.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");
B.useAspectRatio=_.T("web_use_aspect_ratio");B.isSqueezebackActive=!1;B.smallScreenSqueezeback=!1;B.isPlayerStarted=!1;B.overlayDensity=0;B.isOverlay=!1;B.isImmersive=!1;B.isImmersiveHorizontal=!1;B.isFullscreen=!1;B.onWindowResized=function(){var c;B.set("isImmersive",((c=window.getComputedStyle(B.hostElement))==null?void 0:c.getPropertyValue("--immersive-mode-on"))==="1");B.set("isImmersiveHorizontal",B.isImmersive&&B.enableLivingroomLayout&&!B.isWatchWhileMode)};
return B};
_.w(XW,_.z);_.a=XW.prototype;_.a.updateIsOverlay=function(B){this.isOverlay=B.detail.value};
_.a.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.T("web_enable_flexible_overlay")||_.T("web_enable_format_first")||_.T("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.a.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.a.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.a.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.a.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.a.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.a.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.a.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.aH("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.aH("reels_action_justified_content")||"flex-start")};
_.a.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}}};
_.a.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Up("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Up("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Up("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Up("SHARE_LABEL",
void 0,"Share")}}});_.T("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Up("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()};
_.a.setEmptyOverlayMetadata=function(){_.T("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}))};
_.AJ.Object.defineProperties(XW.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.infoPanel)}}});
XW.prototype.onIsActiveChanged=XW.prototype.onIsActiveChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],XW.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],XW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],XW.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],XW.prototype,"isActive",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],XW.prototype,"hidden",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],XW.prototype,"useShortsIcon",void 0);_.L([_.F({value:"left"}),_.H("design:type",String)],XW.prototype,"buttonTooltipPosition",void 0);
_.L([_.F({value:_.T("reels_enable_livingroom_layout")?"top":"left"}),_.H("design:type",String)],XW.prototype,"likeButtonTooltipPosition",void 0);_.L([_.F({value:"none"}),_.H("design:type",String)],XW.prototype,"textTransform",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"showScrubber",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"isWatchWhileMode",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.infoPanel"),_.H("design:type",Object),_.H("design:paramtypes",[])],XW.prototype,"hasInfoPanel",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"enableRemixButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"enableAnchoredPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"enableNewStickers",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"anchoredPanelActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"enableLivingroomLayout",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],XW.prototype,"enablePlayerMetadataContainer",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"enableSqueezebackPanels",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"useAspectRatio",void 0);_.L([_.F({selector:_.Ibx,reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"isSqueezebackActive",void 0);_.L([_.F({selector:WMs,reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"smallScreenSqueezeback",void 0);_.L([_.F({selector:lor}),_.H("design:type",Object)],XW.prototype,"isPlayerStarted",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"overlayDensity",void 0);_.L([_.F(),_.H("design:type",Object)],XW.prototype,"isOverlay",void 0);_.L([_.F({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.H("design:type",Boolean)],XW.prototype,"isShortsOverlay",void 0);_.L([_.F(),_.H("design:type",Object)],XW.prototype,"isImmersive",void 0);_.L([_.F(),_.H("design:type",Object)],XW.prototype,"isImmersiveHorizontal",void 0);
_.L([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.H("design:type",Boolean)],XW.prototype,"isShortsImmersive",void 0);_.L([_.F({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.H("design:type",Object)],XW.prototype,"buttonOverride",void 0);_.L([_.F({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.H("design:type",Object)],XW.prototype,"actionBarButtonOverride",void 0);
_.L([_.F({selector:_.qs,reflectToAttribute:!0}),_.H("design:type",Object)],XW.prototype,"isFullscreen",void 0);_.L([_.bF("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XW.prototype,"onIsActiveChanged",null);_.L([_.y({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],XW);
_.G(XW,"ytd-reel-player-overlay-renderer",function(){if(aJF!==void 0)return aJF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return aJF=B},{mode:1});var ksN;var $t=function(){var B=_.z.apply(this,arguments)||this;B.videoDuration=0;B.playedTime=0;B.isActive=!1;B.JSC$19779_playerEvents=new Map;return B};
_.w($t,_.z);_.a=$t.prototype;_.a.created=function(){this.JSC$19779_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19779_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.a.attached=function(){this.getPlayerAndInitializeListeners()};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19779_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.$9(this,this.onPageChanged))};
_.a.getPlayerAndInitializeListeners=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return c=_.e5(),c?_.K(x,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.$9(B,B.onPageChanged)),x.jumpTo(0));B.player=x.yieldResult;B.initializePlayerListeners();_.Kq(x)})};
_.a.onPageChanged=function(B){var c=this;return _.X(function(x){if(x.nextAddress==1)return B.detail.newPageType!=="ytd-shorts"?x.return():_.K(x,_.Bv().getPlayerPromise(),2);c.player=x.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.$9(c,c.onPageChanged));_.Kq(x)})};
_.a.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19779_playerEvents)};
_.a.onVideoDataChange=function(B){var c=this;return _.X(function(x){if(!c.player||B.type!=="newdata")return x.return();c.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(B.playertype).seekableEnd:c.player.getDuration(B.playertype);c.playedTime=0;_.Kq(x)})};
_.a.onVideoProgress=function(B){var c=this,x,P;return _.X(function(Y){if(!c.player)return Y.return();x=c.player.getPresentingPlayerType();P=c.player.getPlayerState();c.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(x).seekableEnd:c.player.getDuration(x);c.playedTime=P===0?c.videoDuration:B;_.Kq(Y)})};
_.a.getPercentPlayed=function(B,c){return B?_.vi(c/B,0,1):0};
_.AJ.Object.defineProperties($t.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 B="";return B=this.videoDuration&&this.playedTime?B+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):B+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],$t.prototype,"componentBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],$t.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$t.prototype,"player",void 0);_.L([_.F(),_.H("design:type",Object)],$t.prototype,"videoDuration",void 0);_.L([_.F(),_.H("design:type",Object)],$t.prototype,"playedTime",void 0);_.L([_.F(),_.H("design:type",Object)],$t.prototype,"isActive",void 0);
_.L([_.Q("videoDuration","playedTime"),_.H("design:type",Number),_.H("design:paramtypes",[])],$t.prototype,"percentPlayed",null);_.L([_.Q("videoDuration","playedTime"),_.H("design:type",Object),_.H("design:paramtypes",[])],$t.prototype,"percentPlayedStyle",null);_.L([_.Q("videoDuration","isActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$t.prototype,"hideProgressBar",null);
_.G($t,"ytd-progress-bar-line",function(){if(ksN===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);ksN=B}B=ksN;return B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var Xg6;_.xU(_.pFc,"ytm-closed-captioning-button",{props:{captionIconType:_.rk,onClick:_.cw,ariaLabel:_.rk,ariaPressed:_.rk,isOverlay:_.cw,isModern:_.cw}});_.xU(_.tJo,"desktop-shorts-volume-controls",{props:{orientation:_.rk}});var nB=function(){var B=_.z.apply(this,arguments)||this;B.playerState=null;B.isMuted=!1;B.shortsModernControlsEnabled=_.T("web_shorts_modern_controls");B.volumeControlsOrientationState=_.T("web_shorts_modern_controls")?"vertical_down":"horizontal_right";B.isOverlay=!0;B.captionIconType=-1;B.ariaLabel="";B.overlayDensity=0;B.JSC$19782_playerEvents=new Map;B.onClosedCaptionsButtonClick=function(){B.player&&_.vS(B.player)&&(B.player.toggleSubtitles(),B.updateCaptionIconType())};
return B};
_.w(nB,_.z);_.a=nB.prototype;_.a.created=function(){this.JSC$19782_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19782_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19782_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.a.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.JW(28662);this.playPauseButtonClientVE=_.JW(36842);this.fullscreenButtonToggleOffClientVE=_.JW(222256);this.fullscreenButtonToggleOnClientVE=_.JW(222257);var B=_.Wf(),c=_.Jg();B&&c&&(_.T("combine_ve_grafts")?(_.Xa(_.q_(),this.muteButtonClientVE,c),_.Xa(_.q_(),this.playPauseButtonClientVE,c)):_.M9(B,c,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19782_playerEvents),this.player=null)};
_.a.updateCaptionIconType=function(){var B=-1,c=void 0,x=_.Up("CLOSED_CAPTIONS_DISABLED");this.player&&_.vS(this.player)&&(_.Dgy(this.player)?(c=!0,x=_.Up("CLOSED_CAPTIONS_ON"),B=1):(c=!1,x=_.Up("CLOSED_CAPTIONS_OFF"),B=0));this.captionIconType=B;this.ariaPressedState=c;this.ariaLabel=x};
_.a.getPlayerAndInitializeListeners=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return c=_.e5(),c?_.K(x,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.$9(B,B.onPageChanged)),x.jumpTo(0));B.player=x.yieldResult;B.initializePlayerListeners();_.Kq(x)})};
_.a.onPageChanged=function(B){var c=this;return _.X(function(x){if(x.nextAddress==1)return B.detail.newPageType!=="ytd-shorts"?x.return():_.K(x,_.Bv().getPlayerPromise(),2);c.player=x.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.$9(c,c.onPageChanged));_.Kq(x)})};
_.a.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19782_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.a.onPlayerStateChange=function(B){this.playerState=B};
_.a.onPlayerVolumeChange=function(B){this.isMuted=B.muted};
_.a.onPlayPauseButtonClick=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.Bv().getPlayerPromise(),2);c=P.yieldResult;(x=_.Wf())&&B.playPauseButtonClientVE&&_.fW(x,B.playPauseButtonClientVE);c.getPlayerState()!==1?c.playVideo():c.pauseVideo();_.Kq(P)})};
_.a.computePlayPauseIcon=function(B){return B===2||B===-1||B===5?_.T("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.T("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.T("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.a.computeFullscreenLabel=function(B){return B?_.Up("FULLSCREEN_EXIT_LABEL"):_.Up("FULLSCREEN_ENTER_LABEL")};
_.a.computePlayPauseLabel=function(B){return B===1||B===3?_.Up("PLAYER_LABEL_PAUSE"):_.Up("PLAYER_LABEL_PLAY")};
_.a.onMuteButtonClick=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.Bv().getPlayerPromise(),2);c=P.yieldResult;(x=_.Wf())&&B.muteButtonClientVE&&_.fW(x,B.muteButtonClientVE);c.isMuted()?c.unMute(!0):c.mute(!0);_.Kq(P)})};
_.a.computeMuteIcon=function(B){return B?"miniplayer:volume-off":"miniplayer:volume-up"};
_.a.computeMuteLabel=function(B){return B?_.Up("PLAYER_LABEL_UNMUTE"):_.Up("PLAYER_LABEL_MUTE")};
_.a.onFullscreenButtonClick=function(){var B=_.Wf();B&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.fW(B,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.fW(B,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.q4l()};
_.AJ.Object.defineProperties(nB.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var B=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(){B.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?_.T("web_shorts_modern_controls")?"player_full_exit_alt":_.T("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.T("web_shorts_modern_controls")?"player_full_enter_alt":_.T("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],nB.prototype,"componentBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],nB.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"player",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"playerState",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"isMuted",void 0);
_.L([_.F({computed:"computePlayPauseIcon(playerState)"}),_.H("design:type",String)],nB.prototype,"playPauseIcon",void 0);_.L([_.F({computed:"computeMuteIcon(isMuted)"}),_.H("design:type",String)],nB.prototype,"muteIcon",void 0);_.L([_.F({selector:_.qs}),_.H("design:type",Boolean)],nB.prototype,"isFullscreen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],nB.prototype,"shortsModernControlsEnabled",void 0);
_.L([_.F(),_.H("design:type",Object)],nB.prototype,"volumeControlsOrientationState",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"isOverlay",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"captionIconType",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"ariaLabel",void 0);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"ariaPressedState",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],nB.prototype,"overlayDensity",void 0);
_.L([_.Q("playerState"),_.H("design:type",Object),_.H("design:paramtypes",[])],nB.prototype,"playPauseButtonData",null);_.L([_.Q("isFullscreen"),_.H("design:type",Object),_.H("design:paramtypes",[])],nB.prototype,"fullscreenButtonData",null);_.L([_.F(),_.H("design:type",Object)],nB.prototype,"onClosedCaptionsButtonClick",void 0);_.L([_.Q("isFullscreen"),_.H("design:type",String),_.H("design:paramtypes",[])],nB.prototype,"fullscreenIcon",null);
_.G(nB,"ytd-shorts-player-controls",function(){if(Xg6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);Xg6=B}B=Xg6;return B},{mode:1});var $u6;_.xU(_.tjZ,"yt-interstitial-view-model",{props:{data:_.rk}});var nhi=_.rM(function(B){var c=B.data;return _.U("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.U("h1",{class:"reelWatchBreakViewModelHostTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U("h2",{class:"reelWatchBreakViewModelHostBody"},_.U(_.RF,{text:function(){return c().body},
isOverlay:!0})),_.U(_.IF,{data:function(){return c().buttons}},{buttonViewModel:function(x,P){return _.U("div",{class:function(){return P()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.U(_.Q7,{data:x.data}))}}))},"Ri");
nhi.idomCompat=!0;_.xU(nhi,"reel-watch-break-view-model",{props:{data:_.rk}});var bx=function(){return _.z.apply(this,arguments)||this};
_.w(bx,_.z);bx.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}}};
_.AJ.Object.defineProperties(bx.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.t((B=this.data)==null?void 0:B.renderer,rQi)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.t((B=this.data)==null?void 0:B.renderer,Rji)}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bx.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bx.prototype,"isSurvey",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bx.prototype,"isInterstitialViewModel",null);_.L([_.y({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],bx);
_.G(bx,"ytd-reel-non-video-content-renderer",function(){if($u6!==void 0)return $u6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return $u6=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var bel;_.xU(_.VJN,"desktop-shorts-player-controls",{});var KB=function(){var B=_.z.apply(this,arguments)||this;B.isPlayerPaused=!1;B.isPlayerStarted=!1;B.showPlayerControls=!1;B.showScrubber=!1;B.autoHideJobId=0;B.modern=_.T("web_button_rework");B.overlayType=_.aH("web_shorts_expanded_overlay_type");B.panelData=void 0;B.isWatchWhileMode=!1;B.hasError=!1;B.panelShowDelayMs=1;B.scrubberComponent={};B.isFullscreen=!1;B.shouldHideOverlay=!1;B.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");B.enablePersistentAnchoredPanel=_.T("desktop_shorts_v2_persistent_anchored_panel");
B.hideWatchWhilePanel=_.T("web_shorts_hide_watch_while_panel");B.useAspectRatio=_.T("web_use_aspect_ratio");B.isPersistentPanelActive=!1;B.anchoredPanelActive=!1;B.isShortsPipActive=!1;B.smallScreenSqueezeback=!1;B.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");B.overlayDensity=0;B.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};B.onWindowResized=function(){_.yo(B,
"calculateOverlayDensity",function(){B.calculateOverlayDensity()},100)};
return B};
_.w(KB,_.z);_.a=KB.prototype;_.a.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.a.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.a.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var B=_.cp().resolve(_.TA);this.isWatchWhileMode&&(_.T("web_enable_shorts_new_carousel")?_.EE.addJob(function(){B.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):B.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.a.handleShowReelsCommentsOverlayCommand=function(B){B=_.t(B,ckr);this.isActive&&(B==null?0:B.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))};
_.a.updateEngagementPanelVisibility=function(B,c){B&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:c?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:B}})};
_.a.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.a.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.cp().resolve(_.h2).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.a.handleWatchWhilePanelScrimClick=function(){var B=_.cp().resolve(_.TA);this.activeWatchWhilePanel&&(B.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.a.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.a.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:_.T("web_enable_shorts_new_carousel")?0:void 0}}};
_.a.handlePlayerClick=function(B){var c=this,x,P;if((P=(x=window).matchMedia)!=null&&P.call(x,"(any-pointer: coarse)").matches||!B)this.showPlayerControls=!0,_.EE.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Vp(_.EE,function(){c.showPlayerControls=!1},4E3)};
_.a.isFirstReel=function(){return this.index===0};
_.a.handleMouseenter=function(){_.EE.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.a.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.a.handleScrubberEnter=function(){this.showScrubber=!0};
_.a.handleScrubberLeave=function(){this.showScrubber=!1};
_.a.maybeLogNonDefaultAspectRatio=function(){var B;(B=this.data)!=null&&B.thumbnail&&this.isActive&&.5625!==JQ8(this.data.thumbnail)&&_.y5x("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.a.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var B=document.querySelector("#shorts-container");if(B){B=B.offsetWidth/2-this.playerContainer.offsetWidth/2;B=B>=368?1:B>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&B===1&&(B=0);this.isPersistentPanelActive&&(B=0);window.innerWidth<=599&&(B=2);this.overlayDensity=B;var c;(c=this.onOverlayDensityChanged)==null||c.call(this,this.index,this.overlayDensity)}}};
_.a.onOverlayDensityChange=function(){var B;(B=this.onOverlayDensityChanged)==null||B.call(this,this.index,this.overlayDensity);(B=_.Y9(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&B.set("overlayDensity",this.overlayDensity);if(B=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))B.overlayDensity=this.overlayDensity};
_.a.isVideoContent=function(B){_.cp().resolve(_.h2);return!!_.t(B,_.TF)};
_.a.isNonVideoContent=function(B){_.cp().resolve(_.h2);return!!_.t(B,_.Fm)};
_.a.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.AJ.Object.defineProperties(KB.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var B,c;return _.T("web_enable_format_first")||((B=this.data)==null?void 0:B.adsOverlay)&&_.T("web_enable_format_first_ads_only")||((c=this.data)==null?void 0:c.reelPlayerOverlayRenderer)&&_.T("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var B;return!this.isActive||!this.isPlayerStarted||(B=this.data)!=null&&B.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.data)==null?0:B.command)&&this.isVideoContent(this.data.command)){var c,x;if(((c=this.data)==null?0:c.adsOverlay)&&Object.keys((x=this.data)==null?void 0:x.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var P,Y;if(((P=this.data)==null?0:P.reelPlayerOverlayRenderer)&&Object.keys((Y=this.data)==null?void 0:Y.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
KB.prototype.onOverlayDensityChange=KB.prototype.onOverlayDensityChange;KB.prototype.calculateOverlayDensity=KB.prototype.calculateOverlayDensity;KB.prototype.maybeLogNonDefaultAspectRatio=KB.prototype.maybeLogNonDefaultAspectRatio;KB.prototype.onEngagementPanelsChanged=KB.prototype.onEngagementPanelsChanged;KB.prototype.onScrubberDataChange=KB.prototype.onScrubberDataChange;KB.prototype.updateShouldHideOverlay=KB.prototype.updateShouldHideOverlay;
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],KB.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],KB.prototype,"index",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],KB.prototype,"isActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],KB.prototype,"isHiddenInDom",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"isPlayerPaused",void 0);_.L([_.F({selector:lor}),_.H("design:type",Object)],KB.prototype,"isPlayerStarted",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"showPlayerControls",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"showScrubber",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"autoHideJobId",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"overlayType",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"watchWhileEngagementPanels",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"panelData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"isWatchWhileMode",void 0);_.L([_.F(),_.H("design:type",String)],KB.prototype,"activeWatchWhilePanel",void 0);
_.L([_.F(),_.H("design:type",Object)],KB.prototype,"hasError",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"panelShowDelayMs",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"scrubberComponent",void 0);_.L([_.F({selector:_.qs,reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"isFullscreen",void 0);_.L([_.F(),_.H("design:type",Object)],KB.prototype,"shouldHideOverlay",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"enableAnchoredPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"enablePersistentAnchoredPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"hideWatchWhilePanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"useAspectRatio",void 0);
_.L([_.F({selector:_.Ibx,reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"isPersistentPanelActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"anchoredPanelActive",void 0);_.L([_.F({selector:_.C2,reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"isShortsPipActive",void 0);_.L([_.F({selector:WMs,reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"smallScreenSqueezeback",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],KB.prototype,"enableFormatFirst",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"enableFlexibleOverlay",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],KB.prototype,"overlayDensity",void 0);_.L([_.F(),_.H("design:type",Function)],KB.prototype,"onOverlayDensityChanged",void 0);
_.L([_.F(),_.Q("isActive","hasError"),_.H("design:type",Object),_.H("design:paramtypes",[])],KB.prototype,"shouldRenderPlayerElements",null);_.L([_.F(),_.Q("isActive","isWatchWhileMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],KB.prototype,"watchWhileOrPersistentActive",null);_.L([_.bF("isActive","hasError","showingExpandedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"updateShouldHideOverlay",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("isActive","isPlayerStarted","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],KB.prototype,"shouldRenderScrubber",null);_.L([_.bF("shouldRenderScrubber"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"onScrubberDataChange",null);_.L([_.Q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],KB.prototype,"overlayComponent",null);
_.L([_.bF("watchWhileEngagementPanels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"onEngagementPanelsChanged",null);_.L([_.jr("#player-container"),_.H("design:type",HTMLElement)],KB.prototype,"playerContainer",void 0);_.L([_.jr("#cinematic-container"),_.H("design:type",HTMLElement)],KB.prototype,"cinematicContainer",void 0);
_.L([_.bF("isPersistentPanelActive","data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"maybeLogNonDefaultAspectRatio",null);_.L([_.bF("isPersistentPanelActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"calculateOverlayDensity",null);_.L([_.bF("overlayDensity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KB.prototype,"onOverlayDensityChange",null);
_.L([_.y({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],KB);
_.G(KB,"ytd-reel-video-renderer",function(){if(bel!==void 0)return bel;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bel=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var jj=function(){var B=_.z.apply(this,arguments)||this;B.isPreviousPageShorts=!1;B.index=0;B.delayedActiveIndex=0;B.playablePreviousIndex=null;B.isPlayerPaused=!1;B.isPlayerStarted=!1;B.intersectionObserverThreshold=.6;B.fitToVisibleBounds=!1;B.pageSubtype="shorts";B.enablePreviousContinuation=_.T("shorts_in_playlists_web");B.shortsPipEnabled=_.T("web_shorts_pip");B.isDark=document.documentElement.hasAttribute("dark");B.shortsViewTransitions=_.T("web_shorts_view_transitions");B.isFullscreen=!1;B.isShortsPipActive=
!1;B.buttonOverride={iconPosition:"icon-only",size:"XL"};B.anchoredPanelActive=!1;B.isActive=!1;B.smallScreenPersistentPanel=!1;B.isPersistentPanelActive=!1;B.smallScreenSqueezeBack=!1;B.enableScrollIntoViewCenter=_.T("web_scroll_into_view_center");B.formatFirst=_.T("web_enable_format_first")||_.T("web_enable_format_first_ads_only")||_.T("web_enable_format_first_organic_only");B.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");B.useAspectRatio=_.T("web_use_aspect_ratio");B.isShortsInitialized=
!1;B.hidePreviousButtonImmediately=!1;B.showPreviousButtonImmediately=!1;B.endOfNextContinuation=!1;B.currentPlayerIndex=0;B.nextReelVe=_.JW(56921);B.prevReelVe=_.JW(56922);B.loopToggleOffVe=_.JW(198013);B.loopToggleOnVe=_.JW(198014);B.ambientModeToggleVe=_.JW(227860);B.reelPlayerPausedStateRendererVe=_.JW(141313);B.storedPlaybackSpeed=null;B.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"};B.onOverlayDensityChanged=function(c,x){var P;(P=B.getActiveReelVideo(c))==null||P.setAttribute("overlay-density",String(x))};
return B};
_.w(jj,_.z);_.a=jj.prototype;
_.a.deflateInactivePreviousSlides=function(){var B=_.Yu("web_shorts_deflate_inactive_slides_aggressive_distance");if(B>0&&this.shortsProcessedSequence&&this.activeIndex){B=this.activeIndex-B;for(var c=0;c<=B;c++){var x=void 0;((x=this.shortsProcessedSequence[c].reelPlayerOverlayRenderer)==null?0:x.metapanel)&&this.set("shortsProcessedSequence."+c+".reelPlayerOverlayRenderer",{});x=void 0;((x=this.shortsProcessedSequence[c].adsOverlay)==null?0:x.adSlotMetadata)&&this.set("shortsProcessedSequence."+c+
".adsOverlay",{})}}};
_.a.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.a.onResize=function(){var B=_.uG(),c=B.dispatch,x=this.calculateIsSmallWidth();c.call(B,_.YN({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:x}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.a.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:_.T("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}}};
_.a.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var B=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,c=B,x=0;B<250&&(c=B+this.shortsInnerContainer.clientWidth,x=24);_.k9(this.hostElement,{"--ytd-shorts-header-width":c+"px","--ytd-shorts-top-spacing":x+"px"})}};
_.a.isFirstShorts=function(B){return B?this.index===-B.length:this.index===0};
_.a.isActiveReel=function(B,c,x){x&&(c=this.calculatePrevIndex(c,x));return B===c};
_.a.onFullscreenChange=function(){if(_.T("web_fullscreen_shorts")){var B;(B=this.getActiveReelVideo(this.activeIndex))==null||B.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.cp().resolve(_.Ge).close(!0)}};
_.a.engagementPanelsChanged=function(){var B;this.watchWhileEngagementPanels=(B=this.data)==null?void 0:B.engagementPanels};
_.a.unregisterPanels=function(){var B=_.cp().resolve(_.TA);if(this.watchWhileEngagementPanels)for(var c=_.p(this.watchWhileEngagementPanels),x=c.next();!x.done;x=c.next()){var P=void 0,Y=void 0;x=(P=x.value.engagementPanelSectionListRenderer)==null?void 0:(Y=P.identifier)==null?void 0:Y.tag;B&&x&&B.panelMap.delete(x)}};
_.a.isVideoContent=function(B){return this.isVideoContentCommand(B==null?void 0:B.command)};
_.a.getActiveReelVideo=function(B){return _.Y9(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+B+'"]')};
_.a.calculatePrevIndex=function(B,c){return c?B-((c==null?void 0:c.length)||0):-1};
_.a.onKeydown=function(B){var c=_.AV(B)||[];if(!_.UDz(c))if(B.code==="ArrowUp")B.preventDefault(),this.handlePrevButtonClick();else if(B.code==="ArrowDown")B.preventDefault(),this.handleNextButtonClick();else if(B.code==="KeyM")this.toggleMuteUnmuteVideo();else if(B.code==="KeyK"||B.code==="Space")this.togglePlayPauseVideo();else if((B.code==="KeyA"||B.code==="ArrowLeft")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")){var x;(x=this.player)==null||x.seekBy(-5)}else if((B.code==="KeyD"||B.code===
"ArrowRight")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var P;(P=this.player)==null||P.seekBy(5)}};
_.a.onServiceRequestCompleted=function(B,c){B=c.data;B.continuationEndpoint&&B.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:B.entries,continuationEndpoint:B.continuationEndpoint}}):B.prevContinuationEndpoint&&B.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:B.prevEntries,prevContinuationEndpoint:B.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.a.handleEngagementPanelVisibilityChanged=function(B,c){var x=_.cp().resolve(_.TA);if(B&&x){var P,Y=((P=B.identifier)==null?void 0:P.tag)||B.panelIdentifier||B.targetId;if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Y){x.hidePanel(this.activePanel);var g;this.activePanel=((g=B.identifier)==null?void 0:g.tag)||B.panelIdentifier}else this.isPersistentPanelActive=!0,_.uG().dispatch(Z5y(!0)),this.anchoredPanelActive=!0,this.activePanel=Y;else c==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Y&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.uG().dispatch(Z5y(!1)))}};
_.a.handlePanelScrimClick=function(){var B=_.cp().resolve(_.TA);this.activePanel&&(B.hidePanel(this.activePanel),_.uG().dispatch(Z5y(!1)))};
_.a.getShortsLoopSetting=function(){var B,c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return _.T("kevlar_shorts_auto_advance")?_.K(g,_.Nm.getInstance(),2):g.return(!0);case 2:return(B=g.yieldResult)?_.K(g,B.get("sfvles"),3):g.return(!0);case 3:return x=(c=g.yieldResult)!=null?c:!1,_.K(g,B.get("sfvle"),4);case 4:return Y=(P=g.yieldResult)!=null?P:!0,x?g.return(Y):g.return(!0)}})};
_.a.handleSignalActionToggleLoopShortsOff=function(){var B=this,c,x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:if(!B.player)return Y.return();B.player.setLoopVideo(!1);c=_.q_();_.n0(c,B.loopToggleOffVe);return _.K(Y,_.Nm.getInstance(),2);case 2:return(x=Y.yieldResult)?_.K(Y,x.set("sfvle",!1),3):Y.return();case 3:return _.K(Y,x.set("sfvles",!0),4);case 4:P=_.CW(),_.hi(0,203,!1),_.hi(0,204,!0),P.save(),_.Kq(Y)}})};
_.a.handleSignalActionToggleLoopShortsOn=function(){var B=this,c,x,P;return _.X(function(Y){switch(Y.nextAddress){case 1:if(!B.player)return Y.return();B.player.setLoopVideo(!0);c=_.q_();_.n0(c,B.loopToggleOnVe);return _.K(Y,_.Nm.getInstance(),2);case 2:return(x=Y.yieldResult)?_.K(Y,x.set("sfvle",!0),3):Y.return();case 3:return _.K(Y,x.set("sfvles",!0),4);case 4:P=_.CW(),_.hi(0,203,!0),_.hi(0,204,!0),P.save(),_.Kq(Y)}})};
_.a.handleSignalActionToggleCinematicShortsOn=function(){IoB(!0);var B;(B=this.JSC$19806_cinematicController)==null||_.Vyi(B,!0);_.n0(_.q_(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.a.handleSignalActionToggleCinematicShortsOff=function(){IoB(!1);var B;(B=this.JSC$19806_cinematicController)==null||_.Vyi(B,!1);_.n0(_.q_(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.a.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.a.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.a.unhideCurrentOverlay=function(){if(this.overlayContainer){var B=this.overlayContainer.querySelector("#experiment-overlay");B&&_.EE.addLowPriorityJob(function(){B.style.display="unset"},100)}};
_.a.getCurrentShort=function(){if(this.currentEndpoint){var B=this.currentEndpoint;if(this.isNonVideoContentCommand(B)){var c=_.t(B,_.Fm);return{reelNonVideoContentRenderer:_.t(c==null?void 0:c.renderer,_.xlI),command:B}}if(this.data){var x;c=(x=_.t(this.currentEndpoint,_.TF))==null?void 0:x.thumbnail;var P;x=(P=this.data.overlay)==null?void 0:P.reelPlayerOverlayRenderer;_.cp().resolve(_.h2);B=this.data;var Y,g;P=(Y=B.overlay)==null?void 0:(g=Y.shortsAdsRenderer)==null?void 0:g.adSlots;if(P!==void 0)P.length===
0?(_.c8("Shorts ads returned no ad slots."),B=void 0):(P.length>1&&_.c8("Shorts ads has more than one ad slots."),B=_.t(P[0],_.ol3));else{var k,n;B=_.t((k=B.overlay)==null?void 0:(n=k.shortsAdsRenderer)==null?void 0:n.overlay,_.ol3)}k=B;B=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.t(this.currentEndpoint,_.TF),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:x,thumbnail:c,command:B,adsOverlay:k}}}};
_.a.created=function(){var B=this;this.scrollToVideoThrottle=new _.eA(function(c){var x;(x=B.getActiveReelVideo(c))==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.eA(function(c){var x;(x=B.getActiveReelVideo(c))==null||x.scrollIntoView({behavior:"auto",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.a.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.a.attached=function(){var B=this;Myz(this);this.pageScrollElement=_.Y9(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.$9(this,this.processResetAction));_.T("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.T("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var c=B.getActiveReelVideo(B.activeIndex);
B.maybeCreateIntersectionObserver();c==null||c.scrollIntoView({behavior:"instant",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"});B.shortsContainer.style.overflowY="scroll"}))};
_.a.calculateSqueezebackPanelSize=function(){var B=this,c=window.innerWidth-456-(window.innerHeight-106)*.5625;_.EE.addLowPriorityJob(function(){c<360?_.uG().dispatch(H5z(!0)):(B.hostElement.style.setProperty("--anchored-panel-width",Math.min(c,480)+"px"),_.uG().dispatch(H5z(!1)))})};
_.a.detached=function(){var B=_.cp().resolve(_.h2);B.rootElement=void 0;var c;(c=B.unsubscribeFromStore)==null||c.call(B);B.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.$9(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.a.onResizeFinished=function(B,c){var x=this,P=new ResizeObserver(function(){x.shortsContainer.style.overflowY="hidden";_.EE.addLowPriorityJob(function(){c()},100)});
P.observe(B);return P};
_.a.resetDocumentScrollTop=function(){var B,c;if((B=document)==null?0:(c=B.scrollingElement)==null?0:c.scrollTop)document.scrollingElement.scrollTop=0};
_.a.loadPage_=function(B){var c=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),B){var x;if((x=_.t(this.currentEndpoint,_.TF))==null?0:x.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=B;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){c.isPlayerStarted&&
(c.handleOnPlaybackCommand(),c.afterPlayerStarted=function(){})};
this.registerPanel(B)}};
_.a.afterPlayerStarted=function(){};
_.a.handleOnPlaybackCommand=function(){if(_.T("web_shorts_comment_stickers")&&this.isPlayerStarted){var B,c=(B=_.t(this.currentEndpoint,_.TF))==null?void 0:B.onPlaybackCommand;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.a.maybeCreateIntersectionObserver=function(){var B=this,c=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==c){this.intersectionObserverThreshold=c;var x={rootMargin:"0px",threshold:c},P;(P=this.intersectionObserver)==null||P.disconnect();this.intersectionObserver=new IntersectionObserver(function(Y){Y=_.p(Y);for(var g=Y.next();!g.done;g=Y.next())if(g=g.value,g.intersectionRatio>c){g=Number(g.target.id);if(isNaN(g))break;if(g===B.index)break;
_.DXI();B.loadVideo(g);_.Qj("r_vtc")}},x);
this.observeShorts()}};
_.a.observeShorts=function(){var B=[].concat(_.wq(_.Y9(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=void 0;(x=this.intersectionObserver)==null||x.observe(c)}};
_.a.initCsi=function(){_.wS("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var B={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"}},c,x;if((c=this.playerData)==null?0:(x=c.cacheMetadata)==null?0:x.isCacheHit)B.isCacheHit=!0;var P;if(c=(P=_.t(this.currentEndpoint,_.TF))==null?void 0:
P.prefetchTaskId)B.prefetchInfo={taskId:c};_.lg(B)};
_.a.isAd=function(){var B,c;return!!((B=_.t(this.currentEndpoint,_.TF))==null?0:(c=B.adClientParams)==null?0:c.isAd)};
_.a.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.a.getPlayerContainer=function(){var B;return(B=_.Y9(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:B.playerContainer};
_.a.onPlayerStateChange=function(B){var c=this;this.isPlayerPaused=B===2;B!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?B===1&&this.index===0&&(this.isPlayerStarted||_.uG().dispatch(aC(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.uG().dispatch(aC(!0)));this.player&&!this.player.getLoopVideo()&&_.EE.addLowPriorityJob(function(){c.getShortsLoopSetting().then(function(x){var P;(P=c.player)==null||P.setLoopVideo(x)})});
this.isPlayerPaused&&_.T("web_shorts_paused_state_logging")&&_.Z1(_.Wf(),[this.reelPlayerPausedStateRendererVe])};
_.a.isInBackground=function(){var B=window.document.visibilityState;return!(!B||B==="visible")};
_.a.isShortPlayable=function(){if(_.T("kevlar_playable_short_killswitch"))return!0;var B;return(B=this.playerData)!=null&&B.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.a.setNormalPlaybackSpeed=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.getPlayer().getPlayerPromise(),2);c=P.yieldResult;x=c.getPlaybackRate();x!==1&&(B.storedPlaybackSpeed=x,c.setPlaybackRate(1));_.Kq(P)})};
_.a.restorePlaybackSpeed=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1)return B.storedPlaybackSpeed===null?x.jumpTo(0):_.K(x,B.getPlayer().getPlayerPromise(),3);c=x.yieldResult;c.setPlaybackRate(B.storedPlaybackSpeed);B.storedPlaybackSpeed=null;_.Kq(x)})};
_.a.playerDataChanged=function(){var B=this,c,x,P,Y,g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1){c=B.getPlayer();(x=B.intersectionObserver)==null||x.disconnect();if(B.playerData){if(((P=B.playerData.videoDetails)==null?void 0:P.videoId)!==((Y=c.getPlayer())==null?void 0:Y.getVideoData().video_id)){g={};if(k=_.t(B.currentEndpoint,_.TF))g.watch_endpoint=k,k.endTimeSeconds&&(g.end=k.endTimeSeconds);c.loadVideoWithPlayerResponse(B.playerData,g)}}else return q.return();return B.player?q.jumpTo(2):
_.K(q,c.getPlayerPromise(),3)}q.nextAddress!=2&&(B.player=q.yieldResult,B.JSC$19806_playerStateChangeListener=B.onPlayerStateChange.bind(B),B.player.addEventListener("onStateChange",B.JSC$19806_playerStateChangeListener),_.T("kevlar_client_enable_shorts_player_bootstrap")&&_.rc(),B.scrollToVideoThrottle.fire(B.index),B.movePlayerToVideo(B.index),_.EE.addLowPriorityJob(function(){B.getShortsLoopSetting().then(function(C){var h;(h=B.player)==null||h.setLoopVideo(C)})}),_.MM9.resolve(B.player),B.player.syncVolume(),
B.getPlayer().focusOnPlayer());
_.EE.addLowPriorityJob(function(){B.observeShorts()},100);
n=B.player.getPlayerState(B.player.getPresentingPlayerType());n!==1||B.isPlayerStarted||_.uG().dispatch(aC(!0));B.updateBackNavContainerWidth();b=_.t(B.currentEndpoint,_.TF);((d=b)==null?0:d.startTimeSeconds)&&B.player.seekTo(b.startTimeSeconds);if(B.JSC$19806_cinematicController||B.cinematicsInitializeJobId)return q.return();B.cinematicsInitializeJobId=_.EE.addLowPriorityJob(function(){B.initCinematicController();B.cinematicsInitializeJobId=void 0});
_.Kq(q)})};
_.a.onShortUndoDismiss=function(){var B=this,c=LMF().pop();c!==void 0&&(_.fl(this,function(){B.showCardWithIndex(c)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.a.onShortsDismiss=function(B){if(B=B.detail.reelDismissalActionRenderer)(B=_.t(B.onDismissalCompletionRenderer,_.BIr))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:B}}}),this.scrollAndDismissCard()};
_.a.processReelNonVideoContentDismissalCommand=function(B){var c=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);B=_.t(B,BNB);this.activeDimissalTimeout=setTimeout(function(){c.scrollAndDismissCard()},Number(B==null?void 0:B.delayMs))};
_.a.scrollAndDismissCard=function(){var B=this,c=this.index;LMF().push(c);_.fl(this,function(){var x=B.getPlayableNextIndex();x!==null&&(x=B.getActiveReelVideo(x),B.hideCardWithIndex(c),x==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"}))})};
_.a.hideCardWithIndex=function(B){if(B=this.getActiveReelVideo(B))B.hidden=!0};
_.a.showCardWithIndex=function(B){if(B=this.getActiveReelVideo(B))B.hidden=!1};
_.a.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.a.activeChanged=function(B){_.uG().dispatch(_.YN({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:B}}));if(B)document.addEventListener("keydown",_.$9(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var c;(c=this.player)==null||c.sendAbandonmentPing()}var x;(x=this.player)==null||x.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.$9(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.a.graftClientVisualElements=function(){if(this.data){var B=_.q_();_.GO5(B,_.$C({response:this.reelWatchSequenceResponse}));_.Xa(B,this.nextReelVe);_.Xa(B,this.prevReelVe);_.T("kevlar_shorts_auto_advance")&&(_.Xa(B,this.loopToggleOffVe),_.Xa(B,this.loopToggleOnVe));_.Xa(B,this.ambientModeToggleVe);_.Z1(_.Wf(),[this.nextReelVe,this.prevReelVe]);_.T("web_shorts_paused_state_logging")&&_.Xa(B,this.reelPlayerPausedStateRendererVe)}};
_.a.graftNvcRenderer=function(){var B,c,x,P,Y=this.index<0?(B=this.shortsProcessedPrevSequence)==null?void 0:(c=B[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:c.command:(x=this.shortsProcessedSequence)==null?void 0:(P=x[this.index])==null?void 0:P.command;if(Y&&this.isNonVideoContentCommand(Y)){B=_.t(Y,_.Fm);var g,k;(B=(g=_.t(B==null?void 0:B.renderer,_.xlI))==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)&&_.q_().graftServerVe(B)}};
_.a.setActiveIndex=function(){_.cp().resolve(_.h2).setActiveIndex(this.index)};
_.a.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.a.lazyUpdateMiniplayerData=function(){var B=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.EE.addLowPriorityJob(function(){B.updateMiniplayerData();B.updateMiniplayerDataJobId=void 0}))};
_.a.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.EE.cancelJob(this.updateMiniplayerDataJobId)};
_.a.updateMiniplayerData=function(){var B,c,x,P=_.cp().resolve(_.Ge),Y={shortsData:this.getCurrentShort(),previousButtonDisabled:!((B=this.prevButtonData)==null||!B.isDisabled),nextButtonDisabled:!((c=this.nextButtonData)==null||!c.isDisabled),playabilityStatus:(x=this.playerData)==null?void 0:x.playabilityStatus};_.w3(P,Y)};
_.a.resetPlayerLocation=function(){var B=this.getPlayer();this.initialPlayerContainer&&B.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.a.movePlayerToVideo=function(B,c){var x=this;c=c===void 0?!0:c;var P=this.getActiveReelVideo(B),Y=this.getPlayer();if(P){this.overlayContainer?P.appendChild(this.overlayContainer):(this.overlayContainer=_.Y9(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,P.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Y.appendTo(this.overlayContainer.playerContainer,void 0,!0));var g;(g=this.player)==null||g.setSize(NaN,NaN);this.isActive||_.Vp(_.EE,function(){x.isActive=
!0});
Y.style.visibility="visible";_.T("reels_web_disable_rtr_tick")||_.T("reels_web_use_pbs_first_shorts")&&B===0||_.Op("r_tr");this.currentPlayerIndex=B;P.appendChild(this.errorScreenContainer);var k;(k=this.JSC$19806_cinematicController)==null||_.w1o(k)}else c?_.EE.addLowPriorityJob(function(){x.movePlayerToVideo(x.index,!1)}):Math.random()<=_.Yu("web_shorts_error_logging_threshold")&&_.Eb(new _.mc("Trying to movePlayerToVideo with undefined container.",{firstAttempt:c,
index:B}))};
_.a.enableFormatFirst=function(B){return _.T("web_enable_format_first")||B.adsOverlay&&_.T("web_enable_format_first_ads_only")||B.reelPlayerOverlayRenderer&&_.T("web_enable_format_first_organic_only")};
_.a.getAspectRatio=function(B){if(B!=null&&B.thumbnail&&this.enableFormatFirst(B))return"--ytd-shorts-player-ratio: "+JQ8(B.thumbnail)};
_.a.getBackgroundImage=function(B){if(B!=null&&B.thumbnail)return(B=_.YU(B.thumbnail.thumbnails))?'background-image:url("'+B+'");':"background-color:black;"};
_.a.onPersistentPanelActiveChanged=function(){var B=this.getCurrentShort();if(B&&this.enableFormatFirst(B)&&(B==null?0:B.thumbnail)&&JQ8(B.thumbnail)!==.5625){var c;(c=this.player)==null||c.setSize(NaN,NaN)}};
_.a.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.a.moveCinematicsToVideo=function(){var B=_.Y9(this.hostElement).querySelector("ytd-reel-video-renderer");(B==null?0:B.cinematicContainer)&&B.cinematicContainer!==this.shortsCinematicContainer.parentElement&&B.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.a.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.a.updatePrevButtonData=function(){var B=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(B){var c;this.prevButtonData=B=Object.assign({},B,{accessibility:{label:_.Up("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:B.isDisabled||this.index===-(((c=this.shortsProcessedPrevSequence)==null?void 0:c.length)||0),tooltip:this.isUpArrowHidden?"":_.Up("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=B=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.a.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.a.updateNextButtonData=function(){var B=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(B){var c;this.nextButtonData=B=Object.assign({},B,{accessibility:{label:_.Up("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:B.isDisabled||this.index===((c=this.shortsProcessedSequence)==null?void 0:c.length),tooltip:_.Up("NEXT_VIDEO_LABEL")||""})}};
_.a.getPlayablePreviousIndex=function(){for(var B,c=this.index-1;c>=-(((B=this.prevShortsSequence)==null?void 0:B.length)||0);c--)if(!LMF().includes(c))return c;return null};
_.a.getIndexInSequence=function(B,c){return B.findIndex(function(x){var P;return((P=_.t(x.command,_.TF))==null?void 0:P.videoId)===c})};
_.a.handlePrevButtonClick=function(B){var c=this,x,P;return _.X(function(Y){x=c.getPlayablePreviousIndex();if(x===null)return Y.return();c.gestureType=((P=B)==null?void 0:P.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";x===0&&(c.hidePreviousButtonImmediately=!0);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(x)}),Y.return();
c.scrollToVideoThrottle.fire(x);_.Kq(Y)})};
_.a.getPlayableNextIndex=function(){for(var B,c=this.index+1;c<(((B=this.shortsProcessedSequence)==null?void 0:B.length)||0);c++)if(!LMF().includes(c))return c;return null};
_.a.handleNextButtonClick=function(B,c){var x=this,P,Y;return _.X(function(g){P=x.getPlayableNextIndex();if(P===null)return g.return();P===1&&(x.showPreviousButtonImmediately=!0);x.gestureType=((Y=B)==null?void 0:Y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c&&(x.gestureType=c);if(x.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){x.transitionToVideoThrottle.fire(P)}),g.return();
x.scrollToVideoThrottle.fire(P);_.Kq(g)})};
_.a.handleReelNavigateCommand=function(B,c,x){(B=_.t(B,ejF))&&c&&B.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(x)};
_.a.loadVideo=function(B,c){c=c===void 0?!1:c;if(B!==this.currentPlayerIndex){_.uG().dispatch(aC(!1));if(this.isAd()&&!c){var x;(x=this.player)==null||x.notifyShortsAdSwipeEvent()}if((c=this.JSC$19806_cinematicController)!=null){var P;(P=c.currentCinematicEffect)==null||P.pause()}if((P=this.JSC$19806_cinematicController)!=null){var Y;(Y=P.currentCinematicEffect)==null||Y.clear()}P=B>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 g,k,n,b;Y=B<0?(g=this.shortsProcessedPrevSequence)==null?void 0:(k=g[this.shortsProcessedPrevSequence.length+B])==null?void 0:k.command:(n=this.shortsProcessedSequence)==null?void 0:(b=n[B])==null?void 0:b.command;this.index=B;this.gestureType||(this.gestureType=P?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Y&&this.isVideoContentCommand(Y)&&(this.ytComponentBehavior.resolveCommand(Y,{form:{createScreenConfig:{clickedVisualElement:P?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Y&&this.isNonVideoContentCommand(Y)){this.currentEndpoint=Y;this.data=void 0;g=_.q_();k=_.t(Y,_.Fm);var d,q;(k=(d=_.t(k==null?void 0:k.renderer,_.xlI))==null?void 0:(q=d.screenLoggingData)==null?void 0:q.screenVeType)&&_.kk(g,k);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(d=this.getActiveReelVideo(B))&&d.appendChild(this.overlayContainer)}var C,h;if(((C=this.reelWatchSequenceResponse)==null?0:C.continuationEndpoint)&&((h=this.reelWatchSequenceResponse)==null?0:h.entries)&&B===this.reelWatchSequenceResponse.entries.length-1){var V,N;C={contentPlaybackContext:_.w_({},(N=_.t((V=this.currentEndpoint)==null?void 0:V.commandMetadata,_.Br))==null?void 0:N.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:C})}var l,E,S;((l=this.reelWatchSequenceResponse)==null?0:l.prevContinuationEndpoint)&&B===-(((E=this.reelWatchSequenceResponse)==null?void 0:(S=E.prevEntries)==null?void 0:S.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.a.setMiniplayerPreview=function(B){B=(B===void 0?0:B)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var c,x,P=_.cp().resolve(_.Ge),Y={shortsData:void 0,shortsPreviewThumbnail:B?(c=this.shortsProcessedSequence)==null?void 0:(x=c[B])==null?void 0:x.thumbnail:void 0};_.w3(P,Y)};
_.a.updateTitle=function(B){var c,x;B=(B==null?0:B.adSlots)?"":(x=B==null?void 0:(c=B.videoDetails)==null?void 0:c.title)!=null?x:"";_.aJ(this.hostElement,"yt-update-title",B)};
_.a.registerPanel=function(B){var c=_.cp().resolve(_.TA);if(c){B=_.p(B.engagementPanels||[]);for(var x=B.next();!x.done;x=B.next()){x=x.value;var P=x.engagementPanelSectionListRenderer,Y=void 0,g=void 0,k=void 0,n=void 0,b=((Y=P)==null?void 0:Y.targetId)||((g=P)==null?void 0:g.panelIdentifier)||((k=P)==null?void 0:(n=k.identifier)==null?void 0:n.tag);Y=P=void 0;(Y=(P=c).registerPanelContent)==null||Y.call(P,b,x)}}};
_.a.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;_.uG().dispatch(aC(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.uG().dispatch(Z5y(!1));var B=_.cp().resolve(_.h2);B.dismissedIndices=[];B.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.cp().resolve(_.Ge).close(!0)};
_.a.processAppendReelWatchSequenceContinuationEntriesAction=function(B){var c=this,x;(x=this.intersectionObserver)==null||x.disconnect();B=B.appendReelWatchSequenceContinuationEntriesAction;if(B==null?0:B.entries){var P;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.wq(((P=this.reelWatchSequenceResponse)==null?void 0:P.entries)||[]),_.wq(B.entries)),continuationEndpoint:B.continuationEndpoint})}else if(B==null?0:B.prevEntries){var Y;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.wq(((Y=this.reelWatchSequenceResponse)==null?void 0:Y.prevEntries)||[]),_.wq(B.prevEntries)),prevContinuationEndpoint:B.prevContinuationEndpoint});_.EE.addLowPriorityJob(function(){c.movePlayerToVideo(c.index);var g;(g=c.getActiveReelVideo(c.index))==null||g.scrollIntoView({block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.EE.addLowPriorityJob(function(){c.observeShorts()},100)};
_.a.processWatchSequence=function(B){var c=this;return B.map(function(x){x=x.command;if(c.isVideoContentCommand(x)){var P=_.t(x,_.TF);return{reelPlayerOverlayRenderer:_.t(P==null?void 0:P.overlay,_.P9Z),thumbnail:P.thumbnail,command:x}}return c.isNonVideoContentCommand(x)?(P=_.t(x,_.Fm),{reelNonVideoContentRenderer:_.t(P==null?void 0:P.renderer,_.xlI),command:x}):{command:x}})};
_.a.calculateIntersectionObserverThreshold=function(){var B=_.Y9(this.hostElement).querySelector("ytd-reel-video-renderer"),c=1;(B==null?0:B.offsetHeight)&&(B==null?0:B.offsetWidth)&&(c=Math.min(B.offsetHeight,this.shortsContainer.offsetHeight)/B.offsetHeight*(Math.min(B.offsetWidth,this.shortsContainer.offsetWidth)/B.offsetWidth));return Math.round(c*.6*10)/10};
_.a.isVideoContentCommand=function(B){_.cp().resolve(_.h2);return!!_.t(B,_.TF)};
_.a.isNonVideoContentCommand=function(B){_.cp().resolve(_.h2);return!!_.t(B,_.Fm)};
_.a.initCinematicController=function(){var B=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19806_cinematicController=new _.Yt(this.shortsCinematicContainer,this.player);var c,x=_.t((c=this.data)==null?void 0:c.background,_.T9);_.tyz(this.JSC$19806_cinematicController,x);_.Vyi(this.JSC$19806_cinematicController,NIr(x));_.TI6(this.JSC$19806_cinematicController);_.EE.addLowPriorityJob(function(){B.moveCinematicsToVideo()})}};
_.a.handleMiniplayerNavigateShorts=function(B){B==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():B==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.a.handleSignalActionToggleShortsPictureInPicture=function(){if(_.cp().resolve(_.Ge).pictureInPictureSupported()){var B=_.cp().resolve(_.h2);if(_.T("web_shorts_pip")){var c=_.cp().resolve(_.Ge);B.isShortsPipActive()?c.deactivate():c.isMiniplayerActive()||(_.dd().shortsPipActivation=!0,_.QUs(c))}}else(B=this.player)==null||B.togglePictureInPicture()};
_.AJ.Object.defineProperties(jj.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.reelWatchSequenceResponse)!=null&&B.prevEntries)return this.processWatchSequence([].concat(_.wq(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var B=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!B)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var c=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.wq(this.prevShortsSequence.slice(0,c)),[B],_.wq(this.prevShortsSequence.slice(c+
1)))}c=this.index+this.shortsProcessedPrevSequence.length;B.thumbnail=this.shortsProcessedPrevSequence[c].thumbnail;return[].concat(_.wq(this.shortsProcessedPrevSequence.slice(0,c)),[B],_.wq(this.shortsProcessedPrevSequence.slice(c+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.reelWatchSequenceResponse)!=null&&B.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var B=this.getCurrentShort();if(!B||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[B];if(B==null||!B.reelNonVideoContentRenderer){var c=this.getIndexInSequence(this.shortsSequence,_.t(this.currentEndpoint,_.TF).videoId);if(this.index===0&&c!==-1)return this.currentPlayerIndex=this.index=c,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.wq(this.shortsSequence.slice(0,this.index)),[B],_.wq(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){B.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var x,P,Y,g;c=((P=_.t((x=this.shortsProcessedSequence[0])==null?void 0:x.command,_.TF))==null?void 0:P.videoId)===((g=_.t((Y=this.shortsSequence[0])==null?void 0:Y.command,_.TF))==null?void 0:g.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.wq(this.shortsProcessedSequence.slice(0,
this.index)),[B],_.wq(this.shortsSequence.slice(c)))}return[B].concat(_.wq(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var B=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;B&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(B)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 B,c;return this.index===((B=this.reelWatchSequenceResponse)==null?void 0:(c=B.entries)==null?void 0:c.length)}var x;return!((x=this.reelWatchSequenceResponse)==null?0:x.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var B;(B=this.delayedActiveIndexUpdateDebouncer)==null||B.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return this.isShortPlayable()||((c=_.t((B=this.data)==null?void 0:B.watchStatus,_.nvF))==null?void 0:(x=c.style)==null?void 0:x.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var B=this,c=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),x;if((this.data||c)&&(((x=this.data)==null?0:x.engagementPanels)||this.isAd()||c)){c=!1;this.activePanel="shorts-comments-panel";var P;x=_.p(((P=this.data)==null?void 0:P.engagementPanels)||[]);for(P=x.next();!P.done;P=x.next()){P=P.value.engagementPanelSectionListRenderer;var Y=void 0,g=void 0,k=void 0,n=void 0;if((((Y=P)==null?void 0:(g=Y.identifier)==
null?void 0:g.tag)||((k=P)==null?void 0:k.targetId)||((n=P)==null?void 0:n.panelIdentifier))===this.activePanel){c=!0;break}}if(this.isPersistentPanelActive){var b=_.cp().resolve(_.TA);_.Vp(_.EE,function(){b.showPanel(B.activePanel,void 0,void 0,void 0,null)},100)}var d;
x=[].concat(_.wq(Object.values(((d=this.data)==null?void 0:d.engagementPanels)||{})));if(_.T("enable_preview_panel_for_shorts_search_suggested_action")){var q,C,h,V,N;((V=_.t((q=this.data)==null?void 0:(C=q.overlay)==null?void 0:(h=C.reelPlayerOverlayRenderer)==null?void 0:h.metapanel,_.cU5))==null?void 0:(N=V.metadataItems)==null?void 0:N.find(function(l){var E,S;return((E=_.t(l,xuN))==null?void 0:(S=E.icon)==null?void 0:S.iconType)==="SEARCH"}))!==void 0&&x.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}d=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);q=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return d===void 0&&q===void 0||(d==null?0:d.isDisabled)||(q==null?void 0:q.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!c?(c=x==null?void 0:x.findIndex(function(l){var E,
S;return((E=l.engagementPanelSectionListRenderer)==null?void 0:(S=E.identifier)==null?void 0:S.tag)==="shorts-comments-panel"}),c===-1||c===void 0||x!=null&&x.splice(c,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Up("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Up("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:_.Up("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Up("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(_.wq(Object.values(x||
{})))):x}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.shortsProcessedSequence)==null?void 0:B[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x,P;if((c=this.playerData)==null?0:(x=c.playabilityStatus)==null?0:(P=x.errorScreen)==null?0:P.playerInterstitialRenderer)return _.EE.addLowPriorityJob(function(){B.movePlayerToVideo(B.index)}),this.playerData.playabilityStatus.errorScreen;
var Y,g;return((Y=this.data)==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.t(this.data.watchStatus,_.$fn)?(_.EE.addLowPriorityJob(function(){B.movePlayerToVideo(B.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.AJ.Object.defineProperties(jj,{template:{configurable:!0,enumerable:!0,get:function(){if(Y8z===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);Y8z=B}B=Y8z;return B}}});
jj.prototype.onNextButtonDataChange=jj.prototype.onNextButtonDataChange;jj.prototype.onPrevButtonDataChange=jj.prototype.onPrevButtonDataChange;jj.prototype.onPersistentPanelActiveChanged=jj.prototype.onPersistentPanelActiveChanged;jj.prototype.lazyUpdateMiniplayerData=jj.prototype.lazyUpdateMiniplayerData;jj.prototype.onShortsPipActiveChanged=jj.prototype.onShortsPipActiveChanged;jj.prototype.setActiveIndex=jj.prototype.setActiveIndex;jj.prototype.graftNvcRenderer=jj.prototype.graftNvcRenderer;
jj.prototype.graftClientVisualElements=jj.prototype.graftClientVisualElements;jj.prototype.onActiveChanged=jj.prototype.onActiveChanged;jj.prototype.onShortsDismiss=jj.prototype.onShortsDismiss;jj.prototype.onShortUndoDismiss=jj.prototype.onShortUndoDismiss;jj.prototype.playerDataChanged=jj.prototype.playerDataChanged;jj.prototype.afterPlayerStarted=jj.prototype.afterPlayerStarted;jj.prototype.unhideCurrentOverlay=jj.prototype.unhideCurrentOverlay;jj.prototype.onServiceRequestCompleted=jj.prototype.onServiceRequestCompleted;
jj.prototype.engagementPanelsChanged=jj.prototype.engagementPanelsChanged;jj.prototype.onFullscreenChange=jj.prototype.onFullscreenChange;jj.prototype.onResize=jj.prototype.onResize;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.N1.YtPageBehavior),_.H("design:type",Object)],jj.prototype,"ytPageBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],jj.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.Oc),_.H("design:type",Object)],jj.prototype,"ironResizableBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],jj.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],jj.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],jj.prototype,"ytdReduxBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],jj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"playerData",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"reelWatchSequenceResponse",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"cachedReelWatchSequenceResponse",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"currentEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"nextButtonData",void 0);
_.L([_.F(),_.H("design:type",Object)],jj.prototype,"prevButtonData",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"isPreviousPageShorts",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"index",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"delayedActiveIndex",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"playablePreviousIndex",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"player",void 0);
_.L([_.F(),_.H("design:type",Object)],jj.prototype,"isPlayerPaused",void 0);_.L([_.F({selector:lor}),_.H("design:type",Object)],jj.prototype,"isPlayerStarted",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"intersectionObserver",void 0);_.L([_.F(),_.H("design:type",Number)],jj.prototype,"cinematicsInitializeJobId",void 0);_.L([_.F(),_.H("design:type",Number)],jj.prototype,"updateMiniplayerDataJobId",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"fitToVisibleBounds",void 0);
_.L([_.F(),_.H("design:type",Object)],jj.prototype,"pageSubtype",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],jj.prototype,"enablePreviousContinuation",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"shortsPipEnabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"isDark",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"shortsViewTransitions",void 0);
_.L([_.F({selector:_.qs,reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"isFullscreen",void 0);_.L([_.F({selector:_.C2,reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"isShortsPipActive",void 0);_.L([_.jr("#shorts-inner-container"),_.H("design:type",HTMLElement)],jj.prototype,"shortsInnerContainer",void 0);_.L([_.jr("#back-nav-button ytd-button-renderer"),_.H("design:type",_.rG)],jj.prototype,"backNavButton",void 0);
_.L([_.jr("#shorts-container"),_.H("design:type",HTMLElement)],jj.prototype,"shortsContainer",void 0);_.L([_.DR("error-screen"),_.H("design:type",HTMLElement)],jj.prototype,"errorScreenContainer",void 0);_.L([_.DR("player"),_.H("design:type",Object)],jj.prototype,"playerElement",void 0);_.L([_.DR("shorts-cinematic-container"),_.H("design:type",HTMLElement)],jj.prototype,"shortsCinematicContainer",void 0);
_.L([_.DR("initial-player-container"),_.H("design:type",HTMLElement)],jj.prototype,"initialPlayerContainer",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"buttonOverride",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"anchoredPanelActive",void 0);_.L([_.F(),_.H("design:type",String)],jj.prototype,"activePanel",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"isActive",void 0);
_.L([_.F({selector:WMs,reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"smallScreenPersistentPanel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"isPersistentPanelActive",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"smallScreenSqueezeBack",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"enableScrollIntoViewCenter",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"formatFirst",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"enableFlexibleOverlay",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jj.prototype,"useAspectRatio",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"panelContainer",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"overlayContainer",void 0);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"isShortsInitialized",void 0);
_.L([_.Q("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"prevShortsSequence",null);_.L([_.Q("data","prevShortsSequence"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"shortsProcessedPrevSequence",null);_.L([_.Q("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"shortsSequence",null);
_.L([_.Q("data","shortsSequence"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"shortsProcessedSequence",null);_.L([_.F({reflectToAttribute:!0}),_.Q("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jj.prototype,"isUpArrowHidden",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("reelWatchSequenceResponse","index","endOfNextContinuation"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jj.prototype,"isDownArrowHidden",null);_.L([_.F(),_.Q("index"),_.H("design:type",Number),_.H("design:paramtypes",[])],jj.prototype,"activeIndex",null);_.L([_.Q("isShortPlayable","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jj.prototype,"shouldRenderOfflineContent",null);
_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onResize",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"anchoredEngagementPanels",null);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"watchWhileEngagementPanels",void 0);_.L([_.bF("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onFullscreenChange",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"engagementPanelsChanged",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],jj.prototype,"onServiceRequestCompleted",null);_.L([_.Q("data","shortsSequence","index"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"activeReel",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"unhideCurrentOverlay",null);_.L([_.bF("isPlayerStarted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"afterPlayerStarted",null);_.L([_.Q("playerData","reelWatchSequenceResponse","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],jj.prototype,"errorScreen",null);
_.L([_.Q("errorScreen"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],jj.prototype,"hasError",null);_.L([_.bF("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],jj.prototype,"playerDataChanged",null);_.L([_.nF("yt-dismissible-item-undo-feedback"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onShortUndoDismiss",null);
_.L([_.nF("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],jj.prototype,"onShortsDismiss",null);_.L([_.CF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onActiveChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"graftClientVisualElements",null);
_.L([_.bF("currentPlayerIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"graftNvcRenderer",null);_.L([_.bF("index"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"setActiveIndex",null);_.L([_.bF("isShortsPipActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onShortsPipActiveChanged",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"lazyUpdateMiniplayerData",null);_.L([_.F(),_.H("design:type",Object)],jj.prototype,"onOverlayDensityChanged",void 0);_.L([_.bF("isPersistentPanelActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onPersistentPanelActiveChanged",null);
_.L([_.bF("index","data","isUpArrowHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onPrevButtonDataChange",null);_.L([_.bF("index","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jj.prototype,"onNextButtonDataChange",null);_.L([_.y({is:"ytd-shorts"})],jj);_.gk.registerService(_.BSA,jj);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("JzFVk");
var IbA=function(B){return _.U("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Nv8(B.data.ctaButton,{buttonViewModel:{}}),_.U(_.RF,{text:B.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var JyN;var WOS;var o4=function(){return _.z.apply(this,arguments)||this};
_.w(o4,_.z);o4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
o4.prototype.computeBlueBottomLink=function(B){return B};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],o4.prototype,"data",void 0);_.L([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.H("design:type",String)],o4.prototype,"bottomIcon",void 0);
_.L([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.H("design:type",Boolean)],o4.prototype,"enableBlueBottomLink",void 0);_.L([_.y({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],o4);
_.G(o4,"ytd-web-answer-renderer",function(){if(WOS!==void 0)return WOS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WOS=B},{mode:_.sL("kevlar_poly_si_batch_j035")?1:2});var lbo;var Q1=function(){var B=_.z.apply(this,arguments)||this;B.hasChipBar=!1;return B};
_.w(Q1,_.z);Q1.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}}};
Q1.prototype.computeHasChipBar=function(B){return!(B==null||!B.chipBar)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Q1.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.H("design:type",Object)],Q1.prototype,"hasChipBar",void 0);_.L([_.y({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Q1);
_.G(Q1,"ytd-search-header-renderer",function(){if(lbo!==void 0)return lbo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lbo=B},{mode:1});var EoN;var Fn=function(){return _.z.apply(this,arguments)||this};
_.w(Fn,_.z);Fn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fn.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-page-continuation"})],Fn);
_.G(Fn,"ytd-page-continuation",function(){if(EoN!==void 0)return EoN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return EoN=B},{mode:1});var Ohl;var ooz;var QcB;var vO=function(){return _.z.apply(this,arguments)||this};
_.w(vO,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vO.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],vO);
_.G(vO,"ytd-watch-card-one-vs-one-event",function(){if(QcB!==void 0)return QcB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QcB=B},{mode:1});var zf=function(){return _.z.apply(this,arguments)||this};
_.w(zf,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zf.prototype,"data",void 0);_.L([_.y({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],zf);
_.G(zf,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ooz!==void 0)return ooz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ooz=B},{mode:1});var FOA;var SN=function(){return _.z.apply(this,arguments)||this};
_.w(SN,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],SN.prototype,"data",void 0);_.L([_.y({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],SN);
_.G(SN,"ytd-banner-and-box-hero-image-renderer",function(){if(FOA!==void 0)return FOA;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return FOA=B},{mode:1});var vor;var y1=function(){var B=_.z.apply(this,arguments)||this;B.modern=_.T("web_modern_buttons");return B};
_.w(y1,_.z);y1.prototype.computeIcon=function(){var B,c,x=(B=this.data)==null?void 0:(c=B.icon)==null?void 0:c.iconType;if(x)return _.$0(x)};
y1.prototype.computeButtonShape=function(){var B;return{buttonText:_.iG((B=this.data)==null?void 0:B.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.AJ.Object.defineProperties(y1.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"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],y1.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],y1.prototype,"modern",void 0);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],y1.prototype,"buttonColor",null);
_.L([_.y({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],y1);
_.G(y1,"ytd-call-to-action-button-renderer",function(){if(vor!==void 0)return vor;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vor=B},{mode:1});var zCF;var Gf=function(){return _.z.apply(this,arguments)||this};
_.w(Gf,_.z);Gf.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Y9(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Pw(this.data.leftThumbnail.thumbnails,216)+")")};
Gf.prototype.onLeftThumbnailChanged=Gf.prototype.onLeftThumbnailChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Gf.prototype,"data",void 0);_.L([_.bF("data.leftThumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gf.prototype,"onLeftThumbnailChanged",null);_.L([_.y({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Gf);
_.G(Gf,"ytd-collage-hero-image-renderer",function(){if(zCF!==void 0)return zCF;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return zCF=B},{mode:1});var StS;var MG=function(){return _.z.apply(this,arguments)||this};
_.w(MG,_.z);MG.prototype.computeStyle=function(B){return B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],MG.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],MG.prototype,"componentStyle",void 0);_.L([_.y({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],MG);
_.G(MG,"ytd-single-hero-image-renderer",function(){if(StS!==void 0)return StS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return StS=B},{mode:1});var yyz;var LT=function(){return _.z.apply(this,arguments)||this};
_.w(LT,_.z);_.a=LT.prototype;
_.a.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:_.T("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.a.computeSubtitle=function(B){if(this.data){var c;if(this.data.upcomingEventData){B=_.iG(B.subtitle);var x=Number(this.data.upcomingEventData.startTime);isNaN(x)||(c=_.fk(_.F5(B,x)))}else c=B.subtitle;return c}};
_.a.onHeroTap=function(B){B.preventDefault();var c=this.data&&this.data.navigationEndpoint;!c||!_.uv(_.AV(B),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.uv(_.AV(B),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.T("kevlar_watchcard_hero_video_renderer_killswitch")?_.aJ(this.hostElement,"yt-navigate",{navigationEndpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.a.computeHeroTabIndex=function(B){return B&&B.simpleText?-1:0};
_.a.computeHeroRole=function(B){return B&&B.simpleText?"":"link"};
_.a.computeIsReminderButtonPresent=function(B){return!(!B||!B.reminderButton)};
_.a.computeHideBottomItems=function(B){return!(this.computeIsReminderButtonPresent(B)||B.subtitle)};
_.a.dataChanged=function(){var B=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;((c=_.t(B==null?void 0:B.commandMetadata,_.W7))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(B)};
LT.prototype.dataChanged=LT.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],LT.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LT.prototype,"data",void 0);
_.L([_.F({computed:"computeSubtitle(data)"}),_.H("design:type",String)],LT.prototype,"subtitle",void 0);_.L([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],LT.prototype,"isReminderButtonPresent",void 0);_.L([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],LT.prototype,"hideBottomItems",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LT.prototype,"dataChanged",null);_.L([_.y({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],LT);
_.G(LT,"ytd-watch-card-hero-video-renderer",function(){if(yyz!==void 0)return yyz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yyz=B},{mode:1});var GtN;var Z2=function(){return _.z.apply(this,arguments)||this};
_.w(Z2,_.z);_.a=Z2.prototype;_.a.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"}}}};
_.a.computeTitleBadges=function(B){return B?[B]:[]};
_.a.computeHeaderStyle=function(B){return B?B.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.a.computeAvatarAriaLabel=function(B){if(B){var c,x,P,Y;return(Y=(c=B.avatar)==null?void 0:(x=c.accessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?Y:_.iG(B==null?void 0:B.title)}};
_.a.computeAvatarHeight=function(B){return B==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.a.computeBadgeRowClass=function(B){return(B==null?0:B[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Z2.prototype,"data",void 0);_.L([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.H("design:type",Array)],Z2.prototype,"titleBadges",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.H("design:type",String)],Z2.prototype,"headerStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.H("design:type",String)],Z2.prototype,"badgeRowClass",void 0);_.L([_.y({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Z2);
_.G(Z2,"ytd-watch-card-rich-header-renderer",function(){if(GtN!==void 0)return GtN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return GtN=B},{mode:1});var Msy;var LOi;var HO=function(){return _.z.apply(this,arguments)||this};
_.w(HO,_.z);HO.prototype.onMetadataTap=function(B){var c=this.data&&this.data.navigationEndpoint;c&&!_.uv(_.AV(B),this.hostElement,["A".toString()])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:c})};
_.AJ.Object.defineProperties(HO.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 B;if(this.data.upcomingEventData){var c=_.iG(this.data.subtitle),x=Number(this.data.upcomingEventData.startTime);isNaN(x)||(B=_.fk(_.F5(c,x)))}else B=this.data.subtitle;return B}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],HO.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data.style"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HO.prototype,"isCondensed",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HO.prototype,"subtitle",null);
_.L([_.y({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],HO);
_.G(HO,"ytd-watch-card-compact-video-renderer",function(){if(LOi!==void 0)return LOi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return LOi=B},{mode:1});var ZhA;var fT=function(){return _.z.apply(this,arguments)||this};
_.w(fT,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fT.prototype,"data",void 0);_.L([_.y({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],fT);
_.G(fT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(ZhA!==void 0)return ZhA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ZhA=B},{mode:1});var io=function(){return _.z.apply(this,arguments)||this};
_.w(io,_.z);io.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}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],io.prototype,"ytRendererStamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],io.prototype,"data",void 0);_.L([_.y({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],io);
_.G(io,"ytd-vertical-watch-card-list-renderer",function(){if(Msy!==void 0)return Msy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Msy=B},{mode:1});var HhF;var Aq=function(){var B=_.z.apply(this,arguments)||this;B.ariaExpanded="false";return B};
_.w(Aq,_.z);_.a=Aq.prototype;_.a.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.a.dataChanged=function(){var B;this.currentSeasonIndex=((B=this.data)==null?void 0:B.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.a.computeEpisodesInfo=function(B,c,x){if(B!==void 0&&c.length===B.length)return B[x]};
_.a.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.a.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.a.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.a.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.a.getUppercaseSimpleString=function(B){return this.ytRendererBehavior.getSimpleString(B).toUpperCase()};
_.a.updateCurrentSeasonIndexFromBinding=function(B){this.currentSeasonIndex=B.detail.value};
Aq.prototype.onIronOverlayClosed=Aq.prototype.onIronOverlayClosed;Aq.prototype.currentSeasonIndexChanged=Aq.prototype.currentSeasonIndexChanged;Aq.prototype.dataChanged=Aq.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Aq.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",String)],Aq.prototype,"label",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],Aq.prototype,"currentSeasonIndex",void 0);_.L([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.H("design:type",Object)],Aq.prototype,"episodesInfo",void 0);_.L([_.F({value:"false"}),_.H("design:type",Object)],Aq.prototype,"ariaExpanded",void 0);_.L([_.jr("#lists"),_.H("design:type",Object)],Aq.prototype,"lists",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Aq.prototype,"dataChanged",null);_.L([_.CF("currentSeasonIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Aq.prototype,"currentSeasonIndexChanged",null);_.L([_.nF("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Aq.prototype,"onIronOverlayClosed",null);
_.L([_.y({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Aq);
_.G(Aq,"ytd-watch-card-section-dropdown-renderer",function(){if(HhF!==void 0)return HhF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HhF=B},{mode:1});var fbF;var uo=function(){var B=_.z.apply(this,arguments)||this;B.isSearch=!1;return B};
_.w(uo,_.z);uo.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}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uo.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],uo.prototype,"isSearch",void 0);_.L([_.y({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],uo);
_.G(uo,"ytd-watch-card-section-sequence-renderer",function(){if(fbF!==void 0)return fbF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return fbF=B},{mode:1});var Nv8=_.mp({buttonViewModel:_.Q7});_.BX(IbA);_.XB(IbA,"ytd-button-banner-view-model",{propNames:["data"]});var D2=function(){var B=_.z.apply(this,arguments)||this;B.isSearch=!1;return B};
_.w(D2,_.z);
D2.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"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],D2.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],D2.prototype,"rounded",void 0);_.L([_.F(),_.H("design:type",Object)],D2.prototype,"isSearch",void 0);
_.L([_.y({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],D2);
_.G(D2,"ytd-universal-watch-card-renderer",function(){if(Ohl!==void 0)return Ohl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ohl=B},{mode:1});var ihy;_.xU(_.rM(function(B){var c=B.data;var x;B=!((x=_.cp().resolve(_.Bp(_.fL)))==null||!x());x={};return _.U("overview-message-view-model",{class:_.Kw("ytwOverviewMessageViewModelHost",(x.ytwOverviewMessageViewModelDarkBackground=B,x.ytwOverviewMessageViewModelLightBackground=!B,x))},_.U(_.m,{cond:function(){return c().primaryImage},
then:function(P){return _.U(_.D9,{data:P,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.U(_.m,{cond:function(){return c().primaryText},
then:function(){return _.U("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.U(_.RF,{text:function(){return c().primaryText}}))}}),_.U(_.m,{cond:function(){return c().secondaryText},
then:function(){return _.U("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.U(_.RF,{text:function(){return c().secondaryText}}))}}))},"Mi"),"overview-message-view-model",{props:{data:_.rk}});_.XB(_.rF4,"ytd-overview-answer-view-model",{propNames:["data"]});var ru=function(){return _.z.apply(this,arguments)||this};
_.w(ru,_.z);ru.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"}}}};
ru.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],ru.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ru.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ru.prototype,"isSearch",void 0);
_.L([_.y({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],ru);
_.G(ru,"ytd-secondary-search-container-renderer",function(){if(ihy!==void 0)return ihy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return ihy=B},{mode:1});var Ays;var R4=function(){var B=_.z.apply(this,arguments)||this;B.renderSecondarySearchContainer=!1;B.isSearch=!1;B.isSearchDova=_.T("dova_on_search");return B};
_.w(R4,_.z);_.a=R4.prototype;_.a.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.a.created=function(){var B=this;this.boundStampSecondarySearchContainerIfFits=function(){B.stampSecondarySearchContainerIfFits()};
_.FP("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.a.computeIsSearchFrictionPage=function(B){var c,x,P,Y,g;B=B==null?void 0:(c=B.primaryContents)==null?void 0:(x=c.sectionListRenderer)==null?void 0:(P=x.contents)==null?void 0:(Y=P[0])==null?void 0:(g=Y.itemSectionRenderer)==null?void 0:g.contents;if(!B)return!1;c=_.p(B);for(x=c.next();!x.done;x=c.next())if(P=void 0,(P=x.value)==null?0:P.searchFrictionViewModel)return!0;return!1};
_.a.computeShowSecondaryColumn=function(B,c){return!!(c&&c.secondaryContents&&B)};
_.a.activeChanged=function(){var B=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.$9(this,this.debounceStampSecondarySearchContainerIfFits)),_.Sr(function(){B.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.$9(this,this.debounceStampSecondarySearchContainerIfFits))};
_.a.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.a.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.a.debounceStampSecondarySearchContainerIfFits=function(){_.yo(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.a.onRetrieveLocation=function(B,c){c.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);B.stopPropagation()};
_.a.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
R4.prototype.dataChanged=R4.prototype.dataChanged;R4.prototype.onRetrieveLocation=R4.prototype.onRetrieveLocation;R4.prototype.persistentGuideChanged=R4.prototype.persistentGuideChanged;R4.prototype.activeChanged=R4.prototype.activeChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],R4.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],R4.prototype,"ironResizableBehavior",void 0);_.L([_.F(),_.H("design:type",Boolean)],R4.prototype,"active",void 0);_.L([_.F(),_.H("design:type",Object)],R4.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],R4.prototype,"useBiggerThumbs",void 0);_.L([_.F({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],R4.prototype,"biggerThumbsStyle",void 0);_.L([_.F(),_.H("design:type",Object)],R4.prototype,"renderSecondarySearchContainer",void 0);_.L([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.H("design:type",Boolean)],R4.prototype,"showSecondaryColumn",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.H("design:type",Boolean)],R4.prototype,"isSearchFrictionPage",void 0);
_.L([_.F(),_.H("design:type",Object)],R4.prototype,"isSearch",void 0);_.L([_.F(),_.H("design:type",Object)],R4.prototype,"isSearchDova",void 0);_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R4.prototype,"activeChanged",null);_.L([_.bF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R4.prototype,"persistentGuideChanged",null);
_.L([_.nF("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],R4.prototype,"onRetrieveLocation",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R4.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],R4);
_.G(R4,"ytd-two-column-search-results-renderer",function(){if(Ays!==void 0)return Ays;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ays=B},{mode:1});var eN=function(){var B=_.z.apply(this,arguments)||this;B.hasSearchHeader=!1;B.hasSecondaryContent=!1;B.hasBiggerThumbs=_.T("enable_desktop_search_bigger_thumbs");B.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return B};
_.w(eN,_.z);_.a=eN.prototype;_.a.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:_.or(["aa","eocs"])}}};
_.a.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.loadPage_=function(B){this.initCsi();B&&(this.data=B,_.FP("REFINEMENTS_TUPLE",["FromSearchResponse",B.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Aj(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.a.initCsi=function(){_.wS("results",["ol","cpt"])};
_.a.updateTitle=function(){var B=_.MH(window.location.href,"q");B||(B=_.MH(window.location.href,"search_query"));_.aJ(this.hostElement,"yt-update-title",B||"")};
_.a.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.a.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.T("web_srp_data_changed_terminate_imp_killswitch")||_.gj(this.hostElement,"yt-terminate-video-preview-action")};
_.a.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.a.computeHasSearchHeader=function(B){var c;B=B==null?void 0:(c=B.header)==null?void 0:c.searchHeaderRenderer;return!!B&&(!!B.searchFilterButton||!!B.chipBar)};
_.a.computeHasSecondaryContent=function(B){var c,x;return!!(B==null?0:(c=B.contents)==null?0:(x=c.twoColumnSearchResultsRenderer)==null?0:x.secondaryContents)};
_.AJ.Object.defineProperties(eN,{template:{configurable:!0,enumerable:!0,get:function(){if(JyN===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);JyN=B}B=JyN;return B}}});
eN.prototype.onReloadContinuationFinish=eN.prototype.onReloadContinuationFinish;eN.prototype.dataChanged=eN.prototype.dataChanged;_.L([_.J(_.N1.YtPageBehavior),_.H("design:type",Object)],eN.prototype,"ytPageBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],eN.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],eN.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eN.prototype,"data",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],eN.prototype,"monitorScroll",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eN.prototype,"hasSearchHeader",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eN.prototype,"hasSecondaryContent",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eN.prototype,"hasBiggerThumbs",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eN.prototype,"dataChanged",null);
_.L([_.nF("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eN.prototype,"onReloadContinuationFinish",null);_.L([_.y({is:"ytd-search"})],eN);_.gk.registerService(_.egA,eN);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("h8y2qb");
var lRy=function(B){if(B=_.eX$(B)){var c;(c=B.sources)!=null&&c[0]?(c=_.cN7(B),c=c<1?"VERTICAL":c>1?"HORIZONTAL":"SQUARE"):c=void 0;return c}},IP=function(B){_.VH.call(this,"upload");
this.opts.query=B},Ovr=function(B,c){return _.U(E$S,{data:B,
onYtNavigate:c})},o$i=function(B,c){return _.X9(B.entities,"pageHeaderEntity",c)},FJF=function(B,c){return B.map(function(x){if(x.tabRenderer)return QLc(x.tabRenderer);
if(x.expandableTabRenderer&&c){var P=x.expandableTabRenderer;return{customTabRenderable:function(){return c(P)}}}return{}})},QLc=function(B){return{identifier:B.tabIdentifier,
aTagConfig:_.S_({innertubeCommand:B.endpoint,forceNewState:!0}),title:B.title,selected:B.selected,disabled:B.unselectable,icon:B.icon}},v$6=function(B){return _.YN({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:B})},ziy=function(B){if(!_.cv(document,"gtm-noscript")){var c=document.createElement("noscript");
c.id="gtm-noscript";c.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+B+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(c)}};_.sZ(IP,_.VH);IP.prototype.JSC$8119_setLabel=function(B){IP.superClass_.JSC$8119_setLabel.call(this,B);return this};
IP.prototype.addUploadMetadata=function(B,c){IP.superClass_.addUploadMetadata.call(this,B,c);return this};var SDo=function(B){if(B!=="youtubebanner"&&B!=="youtube-channel-banner")throw Error("Wl");IP.call(this,B)};
_.w(SDo,IP);SDo.prototype.JSC$8119_setLabel=function(B){IP.prototype.JSC$8119_setLabel.call(this,B);return this};
SDo.prototype.addUploadMetadata=function(B,c){IP.prototype.addUploadMetadata.call(this,B,c);return this};var y_l=[_.Oc,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(B){_.m4(B).path[0]!==this&&(this.resetLayout(),B.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var B=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.s5(this._layoutDebouncer,_.N_,B);_.pg(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var B=this;requestAnimationFrame(function(){B.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(B){this.resizerShouldNotify(B)&&this._notifyDescendant(B)},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 GDB=[_.qL3,{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(B,c){var x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[B];if(!x)throw new ReferenceError(this._getUndefinedMsg(B));B=this._boundEffect(x,c||{});B.setUp();return B},
_effectsChanged:function(B,c,x){this._tearDownEffects();B&&x&&(B.split(" ").forEach(function(P){var Y;P!==""&&((Y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[P])?this._effects.push(this._boundEffect(Y,c[P])):console.warn(this._getUndefinedMsg(P)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(B,c){c=c||{};var x=parseFloat(c.startsAt||0),P=parseFloat(c.endsAt||1),Y=P-x,g=function(){};
P=x===0&&P===1?B.run:function(k,n){B.run.call(this,Math.max(0,(k-x)/Y),n)};
return{setUp:B.setUp?B.setUp.bind(this,c):g,run:B.run?P.bind(this):g,tearDown:B.tearDown?B.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(B){B.setUp()!==!1&&this._effectsRunFn.push(B.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(B){B.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(B,c){this._effectsRunFn&&this._effectsRunFn.forEach(function(x){x(B,c)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var B=this._clampedScrollTop;this._updateScrollState(B);this.threshold>0&&this._setThresholdTriggered(B>=this.threshold)}},
_getDOMRef:function(B){console.warn("_getDOMRef","`"+B+"` is undefined")},
_getUndefinedMsg:function(B){return"Scroll effect `"+B+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+B+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(B){var c={};B=parseFloat(B.scalar);c.background=this._getDOMRef("background");c.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");c.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");c.deltaBg=c.backgroundFrontLayer.offsetHeight-c.background.offsetHeight;c.deltaBg===0?(isNaN(B)&&(B=.8),c.deltaBg=(this._dHeight||0)*B):(isNaN(B)&&(B=
1),c.deltaBg*=B);this._fxParallaxBackground=c},
run:function(B){var c=this._fxParallaxBackground;this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,B)+"px, 0px)",c.backgroundFrontLayer);c.backgroundRearLayer&&this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,B)+"px, 0px)",c.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var MGo;var LJS;var Zv6=function(){};
_.a=Zv6.prototype;_.a._scrollTargetChanged=function(){};
_.a.scroll=function(){};
_.a._isValidScrollTarget=function(){};
_.a._toggleScrollListener=function(){};
_.a.toggleScrollListener=function(){};
_.a.createEffect=function(){};
_.a._effectsChanged=function(){};
_.a._layoutIfDirty=function(){};
_.a._boundEffect=function(){};
_.a._setUpEffect=function(){};
_.a._tearDownEffects=function(){};
_.a._runEffects=function(){};
_.a._scrollHandler=function(){};
_.a._scrollStateChanged=function(){};
_.a._getUndefinedMsg=function(){};
_.a.notifyResize=function(){};
_.a.assignParentResizable=function(){};
_.a.stopResizeNotificationsFor=function(){};
_.a._subscribeIronResize=function(){};
_.a._unsubscribeIronResize=function(){};
_.a.resizerShouldNotify=function(){};
_.a._onDescendantIronResize=function(){};
_.a._fireResize=function(){};
_.a._onIronRequestResizeNotifications=function(){};
_.a._parentResizableChanged=function(){};
_.a._notifyDescendant=function(){};
_.a._requestResizeNotifications=function(){};
_.a._findParent=function(){};
_.a._appResetLayoutHandler=function(){};
_.a.resetLayout=function(){};
_.a._notifyLayoutChanged=function(){};
_.a._notifyDescendantResize=function(){};
_.a._setThresholdTriggered=function(){};
Zv6=_.Ni({_template:function(){if(LJS!==void 0)return LJS;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;MGo===void 0&&(MGo=document.createElement("template"));var P=MGo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return LJS=B},
is:"tp-yt-app-header",behaviors:[GDB,y_l],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 B=_.m4(this.$.slot).getDistributedNodes(),c=0,x;x=B[c];c++)if(x.nodeType===Node.ELEMENT_NODE)if(x.hasAttribute("sticky")){this._stickyElRef=x;break}else this._stickyElRef||(this._stickyElRef=x);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var B=this._clampedScrollTop,c=this._height===0||B===0,x=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;c||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();c?this._updateScrollState(B,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=x}},
_updateScrollState:function(B,c){if(this._height!==0){var x=0,P=this._top;var Y=this._maxHeaderTop;var g=B-this._lastScrollTop,k=Math.abs(g),n=B>this._lastScrollTop,b=performance.now();this._mayMove()&&(x=this._clamp(this.reveals?P+g:B,0,Y));B>=this._dHeight&&(x=this.condenses&&!this.fixed?Math.max(this._dHeight,x):x,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&k<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==n)this._initScrollTop=B,this._initTimestamp=b;B>=Y&&
(Math.abs(this._initScrollTop-B)>30||k>10?(n&&B>=Y?x=Y:!n&&B>=this._dHeight&&(x=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((x-P)/(g/(b-this._lastTimestamp)),0,300)+"ms"):x=this._top)}Y=this._dHeight===0?B>0?1:0:x/this._dHeight;c||(this._lastScrollTop=B,this._top=x,this._wasScrollingDown=n,this._lastTimestamp=b);if(c||Y!==this._progress||P!==x||B===0)this._progress=Y,this._runEffects(Y,x),this._transformHeader(x)}},
_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(B){this.translate3d(0,-B+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&B>=this._stickyElTop?Math.min(B,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(B,c,x){return Math.min(x,Math.max(c,B))},
_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),_.m4(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(B){switch(B){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.m4(this).querySelector("[main-title]");case "condensedTitle":return _.m4(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Hv8;var fRz;_.Ni({_template:function(){if(fRz!==void 0)return fRz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Hv8===void 0&&(Hv8=document.createElement("template"));var P=Hv8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return fRz=B},
is:"tp-yt-app-header-layout",behaviors:[y_l],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.m4(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var B=this.header;if(this.isAttached&&B){this.$.wrapper.classList.remove("initializing");B.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)B.style.left=
"",B.style.right="";else{var c=this.getBoundingClientRect(),x=document.documentElement.clientWidth-c.right;B.style.left=c.left+"px";B.style.right=x+"px"}c=this.$.contentContainer.style;x=B.offsetHeight;B.fixed&&!B.condenses&&this.hasScrollingRegion?(c.marginTop=x+"px",c.paddingTop=""):(c.paddingTop=x+"px",c.marginTop="")}}});var iv8=new _.A("replaceFeedContentAction");var A_l=new _.A("alertCommand");var ubc=new _.A("manageLabsStateCommand");var DKr=new _.A("inlineFormRenderer");var JL=new _.A("playlistSidebarPrimaryInfoRenderer");var r_r=new _.A("productDetailsThumbnailRenderer"),Rii=new _.A("productDetailsVariantRenderer"),eiA=new _.A("productDetailsVariantOptionRenderer"),B66=new _.A("productDetailsOffersContainerRenderer"),cHr=new _.A("productDetailsOfferRenderer");var xLA=new _.A("shoppingFlaggingRenderer");var P$y=new _.A("playlistBylineRenderer");var Yec=new _.A("insertChannelTabCommand");var W9=function(){return _.dM.apply(this,arguments)||this};
_.w(W9,_.dM);_.a=W9.prototype;_.a.activeChanged=function(){if(this.active){var B=_.Y9(this.hostElement).querySelector("#header");B&&_.aJ(B,"iron-resize");window.addEventListener("scroll",_.$9(this,this.onScroll))}else window.removeEventListener("scroll",_.$9(this,this.onScroll)),_.aJ(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.a.guideVisibleChanged=function(){var B=_.Y9(this.hostElement).querySelector("#header");B&&_.aJ(B,"iron-resize")};
_.a.onScroll=function(){var B=this;_.yo(this,"onScroll",function(){var c=_.Y9(B.hostElement).querySelector("#header");c&&c.polymerController&&(c=c.polymerController.getScrollState().progress===1?"standard":"seamed",_.aJ(B.hostElement,"yt-request-panel-mode-change",{mode:c}))},10)};
_.a.tabsChanged=function(){if(this.tabs){for(var B=null,c=0,x=this.tabs.length;c<x;++c){var P=this.tabs[c].tabRenderer;if(P&&P.selected){B=c;break}}this.selected=B}};
_.a.onTabsActivate=function(B){_.aJ(this.hostElement,"yt-navigate",{endpoint:this.tabs[B.detail.selected].tabRenderer.endpoint})};
W9.prototype.tabsChanged=W9.prototype.tabsChanged;W9.prototype.guideVisibleChanged=W9.prototype.guideVisibleChanged;W9.prototype.activeChanged=W9.prototype.activeChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],W9.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.F(),_.H("design:type",Array)],W9.prototype,"tabs",void 0);
_.L([_.F(),_.H("design:type",Object)],W9.prototype,"selected",void 0);_.L([_.F(),_.H("design:type",Boolean)],W9.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],W9.prototype,"disableHeaderFluidWidth",void 0);_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W9.prototype,"activeChanged",null);
_.L([_.bF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W9.prototype,"guideVisibleChanged",null);_.L([_.bF("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W9.prototype,"tabsChanged",null);_.L([_.qi()],W9);var aXy=[_.R.YtRendererBehavior,_.SM.YtdGuideStateAwareBehavior,W9.prototype];var gLs=2/3,slz=_.JW(130749),pei=function(B,c){var x=this;this.element=B;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){x.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:gLs,moveAction:function(P){x.moveAction(P)},
triggerAction:function(){x.element.isReloading=!0;_.GU(_.q_(),{visualElement:slz});_.bA.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:x.element}})}}}};
_.$k(_.q_(),slz,this.layer);this.gesture=new _.$Q(B,c,this.refreshConfig,"pan-down");this.attach()};
_.a=pei.prototype;_.a.attach=function(){this.gesture.attach()};
_.a.detach=function(){this.gesture.detach()};
_.a.reset=function(){this.element.close()};
_.a.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.a.moveAction=function(B){this.element.rotation=B*360};var kho=_.JW(130750),l0=function(B,c,x,P,Y){var g=this;this.element=B;this.parent=x;this.channelHeader=P;this.ytdReduxDispatch=Y;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var k;(k=g.selectedTab)!=null&&k.title&&(k=_.cp().resolve(_.Bp(_.rV)))&&(k=k.getCurrentPage(),g.lastVisitedTabScrollPosition=k.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,k.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Xer(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(k,n){g.moveAction(k,n)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Xer(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(k,n){g.moveAction(k,n)}}}};
_.$k(_.q_(),kho,this.layer);this.gesture=new _.$Q(B,c,this.tabConfig);this.attach()};
l0.prototype.attach=function(){this.gesture.attach()};
l0.prototype.detach=function(){this.gesture.detach()};
l0.prototype.tabsChanged=function(B){if(B){var c=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;B=_.p(B);for(var x=B.next();!x.done;x=B.next()){x=x.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=x);var P=void 0;if((P=x)==null?0:P.selected)this.previousTab=c,this.selectedTab=x;c=x}c=this.gesture;B=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}});
c.config=B;this.scrollPositionNeedsUpdate=!0}};
l0.prototype.moveAction=function(B,c){if(!this.tabsElement){var x;this.tabsElement=(x=this.parent.header)==null?void 0:x.tabsElement;c==="right"&&this.previousTab?_.zAF(_.TC.instance,this.previousTab.endpoint,{},""):c==="left"&&this.nextTab&&_.zAF(_.TC.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}x=this.tabsElement._pos;c==="right"&&(B*=-1);this.tabsElement._positionBar(x.width,x.left*1+x.width*B)};
var Xer=function(){var B,c;return(c=(B=_.cp().resolve(_.rV).getCurrentPage())==null?void 0:B.clientWidth)!=null?c:0};
l0.prototype.navigate=function(B){this.element.data=void 0;if(B=B==null?void 0:B.endpoint)this.ytdReduxDispatch(v$6(!0)),_.GU(_.q_(),{visualElement:kho}),_.bA.instance.resolveCommand({navigateAction:{endpoint:B}},{form:{element:this.element}})};var $Ly;var nLc;var ES=function(){return _.z.apply(this,arguments)||this};
_.w(ES,_.z);ES.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ES.prototype,"data",void 0);_.L([_.y({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ES);
_.G(ES,"ytd-labs-edit-renderer",function(){if(nLc!==void 0)return nLc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nLc=B},{mode:1});var bZF;var OS=function(){var B=_.z.apply(this,arguments)||this;B.dark=!1;B.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";B.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(OS,_.z);OS.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
OS.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.setBackgroundImage(B);this.dark=B};
OS.prototype.onDarkModeToggledAction=function(B){this.setBackgroundImage(B);this.dark=B};
OS.prototype.setBackgroundImage=function(B){_.k9(this.hostElement,{"--yt-labs-header-background":"url("+(B?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OS.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],OS.prototype,"dark",void 0);
_.L([_.y({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],OS);
_.G(OS,"ytd-labs-header-renderer",function(){if(bZF!==void 0)return bZF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bZF=B},{mode:1});var KwF;var oP=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return B};
_.w(oP,_.z);oP.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"}}}}}};
oP.prototype.onYtToggleButton=function(B){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",B.detail.toggled)};
oP.prototype.onManageLabsState=function(B){if(B=_.t(B,ubc))B.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?B.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&B.labsItemId===this.data.labsItemId&&(B.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.gj(this.hostElement,"yt-check-labs-opted-in-state").some(function(c){return c})&&this.data.confirmationDialogCommand?_.XX(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.cp().resolve(_.xu).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&B.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.cp().resolve(_.xu).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
oP.prototype.onCheckLabsOptedInState=function(){var B=this.get("data.primaryButton.toggleButtonRenderer");return B?B.isToggled:!1};
_.AJ.Object.defineProperties(oP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
oP.prototype.onYtToggleButton=oP.prototype.onYtToggleButton;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],oP.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oP.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],oP.prototype,"itemStyle",null);_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oP.prototype,"onYtToggleButton",null);_.L([_.y({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],oP);
_.G(oP,"ytd-labs-item-renderer",function(){if(KwF!==void 0)return KwF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KwF=B},{mode:1});var jlA;var ULz;var QJ=function(){return _.z.apply(this,arguments)||this};
_.w(QJ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QJ.prototype,"data",void 0);_.L([_.y({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],QJ);
_.G(QJ,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(ULz!==void 0)return ULz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ULz=B},{mode:1});var dLc;var FG=function(){return _.z.apply(this,arguments)||this};
_.w(FG,_.z);FG.prototype.observeSuperchatChip=function(){if(this.data){var B={"--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)};_.k9(this.hostElement,B)}};
FG.prototype.colorFromDecimal=function(B){return _.SF(Number(B||0))};
FG.prototype.observeSuperchatChip=FG.prototype.observeSuperchatChip;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],FG.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FG.prototype,"observeSuperchatChip",null);_.L([_.y({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],FG);
_.G(FG,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(dLc!==void 0)return dLc;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return dLc=B},{mode:1});var v9=function(){return _.z.apply(this,arguments)||this};
_.w(v9,_.z);v9.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"}}}};
_.AJ.Object.defineProperties(v9.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Qz),_.H("design:type",Object)],v9.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],v9.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],v9.prototype,"hideMessageBlock",null);
_.L([_.y({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],v9);
_.G(v9,"ytd-live-chat-history-entry-renderer",function(){if(jlA!==void 0)return jlA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jlA=B},{mode:1});var qeN;var z9=function(){return _.z.apply(this,arguments)||this};
_.w(z9,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],z9.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],z9);
_.G(z9,"ytd-channel-options-renderer",function(){if(qeN!==void 0)return qeN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qeN=B},{mode:1});var C$F;var St=function(){return _.z.apply(this,arguments)||this};
_.w(St,_.z);St.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],St.prototype,"data",void 0);_.L([_.y({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],St);
_.G(St,"ytd-settings-email-item-renderer",function(){if(C$F!==void 0)return C$F;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return C$F=B},{mode:1});var h4r;var yJ=function(){return _.z.apply(this,arguments)||this};
_.w(yJ,_.z);yJ.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"}}}};
yJ.prototype.getExpansionIcon=function(B){return B?"COLLAPSE":"EXPAND"};
yJ.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.AJ.Object.defineProperties(yJ.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yJ.prototype,"data",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],yJ.prototype,"expanded",void 0);_.L([_.Q("expanded"),_.H("design:type",String),_.H("design:paramtypes",[])],yJ.prototype,"emailListExpanded",null);
_.L([_.jr("#options"),_.H("design:type",Object)],yJ.prototype,"options",void 0);_.L([_.y({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],yJ);
_.G(yJ,"ytd-settings-email-list-renderer",function(){if(h4r!==void 0)return h4r;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return h4r=B},{mode:1});var mLz;var G9=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return B};
_.w(G9,_.z);G9.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"}}}};
G9.prototype.handleSignalActionSubmitForm=function(){var B,c=(B=this.formRenderer)==null?void 0:B.getForm();c&&this.data.serviceEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},c,{element:this.hostElement})})};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],G9.prototype,"data",void 0);_.L([_.jr("yt-form-renderer"),_.H("design:type",Object)],G9.prototype,"formRenderer",void 0);
_.L([_.y({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],G9);
_.G(G9,"ytd-settings-gaia-link-renderer",function(){if(mLz!==void 0)return mLz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return mLz=B},{mode:1});var T68;var M1=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return B};
_.w(M1,_.z);M1.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.jdz()&&this.set("data.hidden",!1)};
M1.prototype.onSwitchReady=function(){var B=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.T("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.KXs().then(function(c){c&&(Notification.permission==="default"?B.set("data.hidden",!1):Notification.permission==="granted"&&_.BE("NotificationsDisabled").then(function(x){x||_.gj(B.hostElement,"yt-toggle-settings-switch",[B.data.id,!x]);B.set("data.hidden",!1)}).catch(function(){}))})})};
M1.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}}}}};
M1.prototype.handleUpdateOptionsCommand=function(B){(B=_.t(B,_.RFI))&&this.data&&this.data.id===B.id&&(this.set("data.hidden",B.hidden),B.text!==void 0&&this.set("data.text",B.text),B.clearOptions&&this.set("data.options",[]))};
M1.prototype.onSwitchReady=M1.prototype.onSwitchReady;M1.prototype.dataChanged=M1.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],M1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],M1.prototype,"data",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M1.prototype,"dataChanged",null);_.L([_.nF("yt-settings-switch-ready"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M1.prototype,"onSwitchReady",null);_.L([_.y({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],M1);
_.G(M1,"ytd-settings-options-renderer",function(){if(T68!==void 0)return T68;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return T68=B},{mode:1});var V0i;var LJ=function(){return _.z.apply(this,arguments)||this};
_.w(LJ,_.z);LJ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
LJ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
LJ.prototype.onYtExpanderMoreTapped=LJ.prototype.onYtExpanderMoreTapped;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],LJ.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LJ.prototype,"data",void 0);
_.L([_.nF("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"onYtExpanderMoreTapped",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],LJ);
_.G(LJ,"ytd-product-details-description-renderer",function(){if(V0i!==void 0)return V0i;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return V0i=B},{mode:1});var t0o;var ZH=function(){var B=_.z.apply(this,arguments)||this;B.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";B.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";B.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";B.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return B};
_.w(ZH,_.z);ZH.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.AJ.Object.defineProperties(ZH.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:(c=B.offerData)==null?void 0:c.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?void 0:B.purchaseButtonRenderers)!==void 0&&((c=this.data)==null?void 0:c.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.formattedFromMerchantText)&&(!((c=this.data)==null||!c.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ZH.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZH.prototype,"data",void 0);
_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],ZH.prototype,"shippingIcon",void 0);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],ZH.prototype,"shippingAddressIcon",void 0);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],ZH.prototype,"googleGuaranteeIcon",void 0);
_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],ZH.prototype,"returnPolicyIcon",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZH.prototype,"showAdditionalFees",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZH.prototype,"showMultiPurchaseButtons",null);
_.L([_.Q("data","showMultiPurchaseButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZH.prototype,"showPurchaseData",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ZH);
_.G(ZH,"ytd-product-details-hero-offer-renderer",function(){if(t0o!==void 0)return t0o;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return t0o=B},{mode:1});var wei;var N6F;var H9=function(){return _.z.apply(this,arguments)||this};
_.w(H9,_.z);_.a=H9.prototype;_.a.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.a.onKeyDown=function(B){B=B.keyCode;B!==13&&B!==32||this.handleSelection()};
_.a.onMouseEnterImage=function(){var B;((B=this.data)==null?void 0:B.thumbnailDetails)!==void 0&&_.sp(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.a.onMouseLeaveImage=function(){_.sp(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.a.handleSelection=function(){this.data&&_.aJ(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.AJ.Object.defineProperties(H9.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isSelected)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],H9.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],H9.prototype,"isSelected",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],H9);
_.G(H9,"ytd-product-details-thumbnail-renderer",function(){if(N6F!==void 0)return N6F;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return N6F=B},{mode:1});var fJ=function(){var B=_.z.apply(this,arguments)||this;var c={};B.actionMap=(c["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",c["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",c);B.selectedThumbnailIndex=0;B.selectItem=function(x){x.target.onKeyDown(x)};
return B};
_.w(fJ,_.z);_.a=fJ.prototype;_.a.handlePreviewImageSelect=function(B){this.hoverThumbnail=B};
_.a.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.a.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.a.onThumbnailSelected=function(B,c){this.selectedThumbnailIndex=c};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.a.updateOffset=function(){var B=_.Y9(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-B));this.ytdHorizontalListBehavior.reposition_()};
_.AJ.Object.defineProperties(fJ.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.imageRenderer){var c,x;return((c=this.data)==null?void 0:(x=c.imageRenderer)==null?void 0:x.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var B;if((B=this.data)==null?0:B.imageRenderer){var c;return(c=_.t(this.data.imageRenderer[this.selectedThumbnailIndex],r_r))==null?void 0:c.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x,P,Y=(P=(c=this.data)==null?void 0:(x=c.imageRenderer)==null?void 0:x.map(function(g,k){return{productDetailsThumbnailRenderer:Object.assign({},_.t(g,r_r),{index:k,isSelected:k===B.selectedThumbnailIndex})}}))!=null?P:[];
return Object.assign({},this.data,{imageRenderer:Y})}}});
fJ.prototype.updateOffset=fJ.prototype.updateOffset;fJ.prototype.dataChanged=fJ.prototype.dataChanged;fJ.prototype.onThumbnailSelected=fJ.prototype.onThumbnailSelected;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.cC.YtdHorizontalListBehavior),_.H("design:type",Object)],fJ.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],fJ.prototype,"componentBehavior",void 0);_.L([_.J([_.s2.YtActionHandlerBehavior]),_.H("design:type",Object)],fJ.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fJ.prototype,"data",void 0);_.L([_.F({value:"$.items.children"}),_.H("design:type",String)],fJ.prototype,"itemsPath",void 0);_.L([_.F({value:3}),_.H("design:type",Number)],fJ.prototype,"initialCount",void 0);
_.L([_.jr("#items"),_.H("design:type",Object)],fJ.prototype,"items",void 0);_.L([_.F(),_.H("design:type",Object)],fJ.prototype,"selectedThumbnailIndex",void 0);_.L([_.F(),_.H("design:type",Object)],fJ.prototype,"hoverThumbnail",void 0);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fJ.prototype,"showThumbnails",null);
_.L([_.nF("ytd-product-details-thumbnail-renderer-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Number]),_.H("design:returntype")],fJ.prototype,"onThumbnailSelected",null);_.L([_.Q("data","selectedThumbnailIndex","hoverThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],fJ.prototype,"thumbnailDetails",null);_.L([_.Q("data","selectedThumbnailIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],fJ.prototype,"populatedData",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fJ.prototype,"dataChanged",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fJ.prototype,"updateOffset",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],fJ);
_.G(fJ,"ytd-product-details-image-carousel-renderer",function(){if(wei!==void 0)return wei;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return wei=B},{mode:_.sL("kevlar_poly_si_batch_j079")?1:2});var IX8;var i0=function(){return _.z.apply(this,arguments)||this};
_.w(i0,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],i0.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],i0.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],i0);
_.G(i0,"ytd-product-details-offer-renderer",function(){if(IX8!==void 0)return IX8;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return IX8=B},{mode:1});var JHl;var AL=function(){var B=_.z.apply(this,arguments)||this;B.isOffersHidden=!0;return B};
_.w(AL,_.z);AL.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var B,c=_.t((B=this.data)==null?void 0:B.viewOffersButton,_.z3);c&&this.ytRendererBehavior.logExplicitClick(c)};
AL.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.AJ.Object.defineProperties(AL.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return(x=_.t((B=this.data)==null?void 0:(c=B.offers)==null?void 0:c[0],cHr))==null?void 0:(P=x.offerData)==null?void 0:P.vendorLogoUrl}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],AL.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AL.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],AL.prototype,"isOffersHidden",void 0);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],AL.prototype,"firstOfferVendorLogoUrl",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],AL);
_.G(AL,"ytd-product-details-offers-container-renderer",function(){if(JHl!==void 0)return JHl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return JHl=B},{mode:1});var Ww8;var lXl;var u0=function(){return _.z.apply(this,arguments)||this};
_.w(u0,_.z);u0.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
u0.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.sp(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
u0.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.sp(this,"ytd-product-details-variant-image-unselect")};
_.AJ.Object.defineProperties(u0.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 B;return((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?void 0:B.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var B;if(((B=this.data)==null?void 0:B.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var B,c;return this.isUnavailable?(B=this.data)==null?void 0:B.variantOptionUnavailableAccessibilityLabel:(c=this.data)==null?void 0:c.variantOptionAccessibilityLabel}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],u0.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],u0.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],u0.prototype,"displayType",void 0);
_.L([_.Q("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u0.prototype,"isImageButton",null);_.L([_.Q("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u0.prototype,"isPillButton",null);_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u0.prototype,"isActive",null);
_.L([_.Q("data"),_.F({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],u0.prototype,"isUnavailable",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],u0.prototype,"thumbnailDetails",null);_.L([_.Q("isUnavailable","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],u0.prototype,"accessibilityLabel",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],u0);
_.G(u0,"ytd-product-details-variant-option-renderer",function(){if(lXl!==void 0)return lXl;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lXl=B},{mode:1});var EL6;var DH=function(){var B=_.z.apply(this,arguments)||this;B.variantsExpanded=!1;B.hideShowMoreLessVariantButton=!0;B.initialized=!1;B.computeVariantsDebouncer=null;B.computeVariants=function(c){c=c===void 0?!1:c;B.variantsExpanded||B.showOptions()||!c||(B.variantsExpanded=!0);if(B.variantsExpanded){c=_.p(B.items.children);for(var x=c.next();!x.done;x=c.next())x.value.hidden=!1}B.initialized=!0};
return B};
_.w(DH,_.z);_.a=DH.prototype;_.a.ready=function(){var B=this;setTimeout(function(){B.computeVariants(!0)})};
_.a.showOptions=function(){for(var B=_.p(this.items.children),c=B.next();!c.done;c=B.next())c.value.hidden=!0;var x=this.container.getBoundingClientRect().width,P=0,Y=B=0;c=!1;for(var g=_.p(this.items.children),k=g.next();!k.done;k=g.next()){k=k.value;k.hidden=!1;var n=k.getBoundingClientRect().width;if(P+n<x)P+=n;else if(++Y<2)P=n;else break;B+=1;k.hasAttribute("is-active")&&(c=!0)}for(x=B;x<this.items.children.length;x++)this.items.children[x].hidden=!0;this.hideShowMoreLessVariantButton=B===this.items.children.length;
return c};
_.a.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.s5(this.computeVariantsDebouncer,_.uY.after(100),this.computeVariants)};
_.a.onShowMoreLessVariantsButtonClick=function(){var B;(B=this.data)!=null&&B.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.a.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.AJ.Object.defineProperties(DH.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.variantOptionRenderers)==null?void 0:c.find(function(g){return _.t(g,eiA).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),P,Y;
return(Y=(P=_.t(x,eiA))==null?void 0:P.name)!=null?Y:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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"}}}});
DH.prototype.debouncedComputeVariants=DH.prototype.debouncedComputeVariants;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],DH.prototype,"componentBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],DH.prototype,"ironResizableBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],DH.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],DH.prototype,"variantsExpanded",void 0);_.L([_.F(),_.H("design:type",Object)],DH.prototype,"hideShowMoreLessVariantButton",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DH.prototype,"initialized",void 0);_.L([_.jr("#items"),_.H("design:type",HTMLDivElement)],DH.prototype,"items",void 0);_.L([_.jr("#container"),_.H("design:type",HTMLDivElement)],DH.prototype,"container",void 0);
_.L([_.jr("#more-variants-button"),_.H("design:type",HTMLElement)],DH.prototype,"moreVariantsButton",void 0);_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],DH.prototype,"selectedOptionName",null);_.L([_.bF("data","variantsExpanded"),_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DH.prototype,"debouncedComputeVariants",null);
_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],DH.prototype,"displayType",null);_.L([_.Q("displayType"),_.H("design:type",Object),_.H("design:paramtypes",[])],DH.prototype,"variantItemsClassname",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],DH);
_.G(DH,"ytd-product-details-variant-renderer",function(){if(EL6!==void 0)return EL6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EL6=B},{mode:1});var rS=function(){return _.z.apply(this,arguments)||this};
_.w(rS,_.z);
rS.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"}}}};
_.AJ.Object.defineProperties(rS.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(c=_.t((B=this.data)==null?void 0:B.offersContainerRenderer,B66))==null?void 0:c.offers;return x!==void 0&&(x==null?void 0:x.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 B,c,x;return((x=(B=this.data)==null?void 0:(c=B.variants)==null?void 0:c.map(function(P){var Y,g;P=(g=(Y=_.t(P,Rii))==null?void 0:Y.variantOptionRenderers)==null?void 0:g.find(function(n){var b;return((b=_.t(n,eiA))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var k;return(k=_.t(P,eiA))==null?void 0:k.name}).filter(function(P){return typeof P==="string"}))!=null?x:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P=(c=_.t((B=this.data)==null?void 0:B.shoppingFlaggingRenderer,xLA))==null?void 0:(x=c.reportButton)==null?void 0:x.buttonRenderer;if(P)return{text:P.text,command:P.command,icon:{iconType:"FLAG"},accessibilityData:P.accessibilityData,trackingParams:P.trackingParams,loggingDirectives:P.loggingDirectives}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],rS.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rS.prototype,"data",void 0);_.L([_.jr("#image-carousel-renderer"),_.H("design:type",Object)],rS.prototype,"imageCarouselRenderer",void 0);
_.L([_.jr("#hero-offer-renderer"),_.H("design:type",Object)],rS.prototype,"productDetailsHeroOfferRenderer",void 0);_.L([_.jr("#variants"),_.H("design:type",Object)],rS.prototype,"productDetailsVariantRenderer",void 0);_.L([_.jr("#offers"),_.H("design:type",Object)],rS.prototype,"productDetailsOffersContainerRenderer",void 0);_.L([_.jr("#description-renderer"),_.H("design:type",Object)],rS.prototype,"productDetailsDescriptionRenderer",void 0);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showPurchaseData",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showHeroOfferRenderer",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showBrandText",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showOffers",null);
_.L([_.Q("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showBuySeparator",null);_.L([_.Q("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rS.prototype,"showBuyCard",null);_.L([_.Q("data"),_.H("design:type",String),_.H("design:paramtypes",[])],rS.prototype,"selectedVariantsText",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rS.prototype,"shoppingReportingButtonData",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],rS);
_.G(rS,"ytd-product-details-renderer",function(){if(Ww8!==void 0)return Ww8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ww8=B},{mode:1});var OZr;var oLy;var QlF;var RP=function(){return _.z.apply(this,arguments)||this};
_.w(RP,_.z);RP.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.AJ.Object.defineProperties(RP.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RP.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],RP.prototype,"formattedAmount",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],RP.prototype,"ariaLabel",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],RP.prototype,"vcBalanceWidgetStyle",null);_.L([_.Em({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],RP);
_.G(RP,"yt-vc-balance-renderer",function(){if(QlF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;oLy===void 0&&(oLy=document.createElement("template"));var P=oLy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);QlF=B}B=QlF;return B},{mode:2});_.o2("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var et=function(){return _.z.apply(this,arguments)||this};
_.w(et,_.z);_.AJ.Object.defineProperties(et.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:""}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],et.prototype,"data",void 0);_.L([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(B,c){return _.X9(B.entities,"vcBalanceEntity",c)}}),
_.H("design:type",Object)],et.prototype,"vcBalanceEntity",void 0);_.L([_.Q("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],et.prototype,"formattedAmount",null);_.L([_.Q("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],et.prototype,"vcBalanceAriaLabel",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],et);
_.G(et,"ytd-vc-balance-renderer",function(){if(OZr!==void 0)return OZr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return OZr=B},{mode:1});var Fwi;var BO=function(){var B=_.z.apply(this,arguments)||this;B.rotation=0;B.isReloading=!1;return B};
_.w(BO,_.z);BO.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
BO.prototype.reset=function(){this.hostElement.style.opacity=""};
BO.prototype.close=function(){var B=this;return _.X(function(c){if(c.nextAddress==1)return _.K(c,B.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.hostElement.style.opacity="0";_.Kq(c)})};
BO.prototype.rotationChanged=BO.prototype.rotationChanged;_.L([_.F(),_.H("design:type",Object)],BO.prototype,"rotation",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],BO.prototype,"isReloading",void 0);_.L([_.jr("#icon"),_.H("design:type",HTMLElement)],BO.prototype,"icon",void 0);_.L([_.bF("rotation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BO.prototype,"rotationChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-refresh"})],BO);
_.G(BO,"ytd-refresh",function(){if(Fwi!==void 0)return Fwi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Fwi=B},{mode:1});var vLo;var cO=function(){return _.z.apply(this,arguments)||this};
_.w(cO,_.z);cO.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"}}}};
cO.prototype.dataChanged=function(){if(this.data){var B=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var c=_.Pw(this.data.banner.thumbnails,this.hostElement.clientWidth);c&&(c.indexOf("//")===0&&(c="https:"+c),this.hasBannerArt=!0,_.k9(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+c+")"}))}this.hasBannerArt!==B&&_.Y9(this.hostElement).querySelector("#header").fire("iron-resize")}};
cO.prototype.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
cO.prototype.dataChanged=cO.prototype.dataChanged;_.L([_.J(aXy),_.H("design:type",Object)],cO.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.vD),_.H("design:type",Object)],cO.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],cO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],cO.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cO.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],cO.prototype,"selected",void 0);_.L([_.F(),_.H("design:type",Boolean)],cO.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],cO.prototype,"hasBannerArt",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cO.prototype,"dataChanged",null);_.L([_.y({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],cO);
_.G(cO,"ytd-interactive-tabbed-header-renderer",function(){if(vLo!==void 0)return vLo;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vLo=B},{mode:1});var z4F;var xe=function(){return _.z.apply(this,arguments)||this};
_.w(xe,_.z);xe.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xe.prototype.computeActionsAlignment=function(B){return(B==null?void 0:B.actionsAlignment)||""};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xe.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.H("design:type",String)],xe.prototype,"actionsAlignment",void 0);_.L([_.y({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],xe);
_.G(xe,"ytd-page-footer-renderer",function(){if(z4F!==void 0)return z4F;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return z4F=B},{mode:1});var Se8;var yHl;var PO=function(){var B=_.z.apply(this,arguments)||this;B.isEditing=!1;B.useSlot=!1;B.isMultiline=!1;return B};
_.w(PO,_.z);_.a=PO.prototype;_.a.onKeydown=function(B){if(B.keyCode===13&&!this.isMultiline)this.onSave();else if(B.keyCode===27)this.onCancel()};
_.a.computeComponentStyle=function(B){return(B==null?0:B.style)?B.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.a.computeisMultiline=function(B){if(this.multilineOverride!==void 0)return this.multilineOverride;var c,x;return!!(B==null?0:(c=B.formField)==null?0:(x=c.textInputFormFieldRenderer)==null?0:x.isMultiline)};
_.a.computeTextDisplayed=function(B,c){if(B)return B;if(c)return c};
_.a.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.a.onSave=function(){if(this.textForm.validate()){this.textForm.save();var B=this.textForm.value;if(B)this.set("data.textDisplayed",_.fk(B));else{var c;((c=this.data)==null?0:c.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.LQ("inline-form-changed",this.data));this.isEditing=!1}};
_.a.onCancel=function(){var B=_.iG(this.data.textDisplayed);B===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(B);this.isEditing=!1};
PO.prototype.onKeydown=PO.prototype.onKeydown;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],PO.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PO.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],PO.prototype,"isEditing",void 0);_.L([_.F(),_.H("design:type",Object)],PO.prototype,"useSlot",void 0);_.L([_.F(),_.H("design:type",Boolean)],PO.prototype,"multilineOverride",void 0);_.L([_.F(),_.H("design:type",Boolean)],PO.prototype,"enableOverlayTheme",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.H("design:type",String)],PO.prototype,"componentStyle",void 0);
_.L([_.F({computed:"computeisMultiline(data)"}),_.H("design:type",Object)],PO.prototype,"isMultiline",void 0);_.L([_.jr("#text-form"),_.H("design:type",Object)],PO.prototype,"textForm",void 0);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],PO.prototype,"onKeydown",null);_.L([_.y({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],PO);
_.G(PO,"ytd-inline-form-renderer",function(){if(yHl!==void 0)return yHl;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return yHl=B},{mode:1});var GhN;var Ye=function(){var B=_.z.apply(this,arguments)||this;B.previousSelectValue=void 0;B.selectedItemMessage=void 0;return B};
_.w(Ye,_.z);Ye.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ye.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var B,c,x,P,Y=(B=this.data)==null?void 0:(c=B.dropdown)==null?void 0:(x=c.dropdownRenderer)==null?void 0:(P=x.entries)==null?void 0:P.map(function(n){return n.privacyDropdownItemRenderer});
B=_.p(Y!=null?Y:[]);for(c=B.next();!c.done;c=B.next())if((c=c.value)&&c.int32Value===this.selectedValue){this.selectedItemMessage=c.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var k;(k=this.data)!=null&&k.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ye.prototype.onValueChangedForSelectedValue=function(B){this.selectedValue=B.detail.value};
Ye.prototype.selectedValueChanged=Ye.prototype.selectedValueChanged;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Ye.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Ye.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ye.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],Ye.prototype,"theme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Number)],Ye.prototype,"selectedValue",void 0);_.L([_.F(),_.H("design:type",Function)],Ye.prototype,"onValueChanged",void 0);
_.L([_.CF("selectedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ye.prototype,"selectedValueChanged",null);_.L([_.y({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ye);
_.G(Ye,"ytd-dropdown-form-field-renderer",function(){if(GhN!==void 0)return GhN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return GhN=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var M08;var a4=function(){return _.z.apply(this,arguments)||this};
_.w(a4,_.z);_.AJ.Object.defineProperties(a4.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var B=[],c=_.p(this.data||[]),x=c.next();!x.done;x=c.next())(x=_.t(x.value,P$y))&&B.push(x);return B}}});
_.L([_.F(),_.H("design:type",Array)],a4.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],a4.prototype,"byline",null);_.L([_.y({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],a4);
_.G(a4,"ytd-playlist-byline-renderer",function(){if(M08!==void 0)return M08;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return M08=B},{mode:1});var Lws;var gu=function(){var B=_.z.apply(this,arguments)||this;B.rtlBullet=_.T("web_playlist_stats_rtl_bullet_icon_killswitch");B.modern=_.T("web_modern_buttons");B.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return B};
_.w(gu,_.z);_.a=gu.prototype;_.a.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"}}}}};
_.a.attached=function(){};
_.a.computeIsCustomThumbnail=function(B){return B?!!B.playlistCustomThumbnailRenderer:!1};
_.a.onYtNavigate=function(B,c){if(c&&c.actions&&c.actions.indexOf("shuffle")>-1){B=_.cp().resolve(_.vK);var x=c.tempData||{};x.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);c.tempData=x;B.isShuffleNextPlaylist=!0}};
_.a.onUpdatePlaylistAction=function(B){var c;B=(c=_.t(B,_.Jd5))==null?void 0:c.updatedRenderer;if(c=_.t(B,JL))this.data=c};
_.a.computeStyleType=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeThumbnailWidth=function(B){return B==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.a.computeHideThumbnailAria=function(B){if(B==null?0:B.thumbnailOverlays)for(var c=0;c<B.thumbnailOverlays.length;c++){var x=void 0;if((x=B.thumbnailOverlays[c])==null?0:x.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
gu.prototype.onYtNavigate=gu.prototype.onYtNavigate;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],gu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],gu.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],gu.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gu.prototype,"rtlBullet",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.H("design:type",String)],gu.prototype,"styleType",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],gu.prototype,"thumbnailWidth",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],gu.prototype,"modern",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.H("design:type",Boolean)],gu.prototype,"isCustomThumbnail",void 0);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],gu.prototype,"onYtNavigate",null);_.L([_.y({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],gu);
_.G(gu,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Lws!==void 0)return Lws;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Lws=B},{mode:1});var ZZl;var sK=function(){return _.z.apply(this,arguments)||this};
_.w(sK,_.z);sK.prototype.computeOwnerVisibility=function(B){return!(!B.videoOwner&&!B.button)};
sK.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],sK.prototype,"data",void 0);_.L([_.y({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],sK);
_.G(sK,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ZZl!==void 0)return ZZl;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ZZl=B},{mode:1});var HZ6;var pT=function(){var B=_.z.apply(this,arguments)||this;B.expanded=!1;B.isCompact=!1;return B};
_.w(pT,_.z);_.a=pT.prototype;_.a.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.a.dataChanged=function(){this.data&&_.L6(_.Y9(this.text),_.TC9(_.w$5,_.iG(this.data.text||null)))};
_.a.computeAutoScrollEnabled=function(B,c){return B&&!c};
_.a.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.a.toggleOnTap=function(){this.expanded=!this.expanded};
pT.prototype.expandedChanged=pT.prototype.expandedChanged;pT.prototype.dataChanged=pT.prototype.dataChanged;_.L([_.J(_.A5z),_.H("design:type",Object)],pT.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],pT.prototype,"expanded",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],pT.prototype,"isCompact",void 0);_.L([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.H("design:type",Boolean)],pT.prototype,"autoScrollEnabled",void 0);_.L([_.jr("#text"),_.H("design:type",Object)],pT.prototype,"text",void 0);_.L([_.jr("#expander-icon"),_.H("design:type",Object)],pT.prototype,"expanderIcon",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pT.prototype,"dataChanged",null);_.L([_.bF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pT.prototype,"expandedChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],pT);
_.G(pT,"ytd-channel-legal-info-renderer",function(){if(HZ6!==void 0)return HZ6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return HZ6=B},{mode:1});var fXz;var iZz=_.Up("DOWNLOAD",{},"Download"),AHo=_.Up("DOWNLOADING",{},"Downloading"),uZB=_.Up("DOWNLOADED",{},"Downloaded"),ke=function(){var B=_.z.apply(this,arguments)||this;B.downloadProgress=0;B.isDownloadComplete=!1;B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.w(ke,_.z);_.a=ke.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.dataChanged=function(){var B;(B=this.data)!=null&&B.tooltip||(B=_.F9(_.uG().getState(),this.playlistId),this.updateButtonState(B))};
_.a.computePlaylistId=function(B){return B};
_.a.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.a.updateButtonState=function(B){if(this.data&&(this.data.tooltip!==AHo||!_.Ck(B))){this.isDownloadComplete=!1;switch(B){case "TRANSFER_STATE_UNKNOWN":B=iZz;var c="OFFLINE_DOWNLOAD";var x="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":B=uZB;c="OFFLINE_PIN";x="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":B=AHo;c="OFFLINE_DOWNLOADING_ZERO";x="ACTION_REMOVE_WITH_PROMPT";
break;default:B=iZz,c="OFFLINE_DOWNLOAD",x="ACTION_ADD"}var P=Object.assign({},this.data);P.tooltip=B;P.accessibilityData={accessibilityData:{label:B}};P.icon={iconType:c};P.size="SIZE_DEFAULT";_.t(P.command,_.bR)&&(_.t(P.command,_.bR).action=x);this.set("data",P)}};
_.a.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var B="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?B="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?B="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?B="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?B="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?B="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(B="OFFLINE_PIN",this.isDownloadComplete=!0);var c;B!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.tooltip=AHo,c.accessibilityData={accessibilityData:{label:AHo}},c.icon={iconType:B},_.t(c.command,_.bR)&&(_.t(c.command,_.bR).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
ke.prototype.updateProgress=ke.prototype.updateProgress;ke.prototype.onTransferStateChanged=ke.prototype.onTransferStateChanged;ke.prototype.dataChanged=ke.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],ke.prototype,"ytdReduxBehavior",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"forceIconButton",void 0);
_.L([_.F({value:!0}),_.H("design:type",Boolean)],ke.prototype,"forceIconOnly",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"overrides",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"buttonTooltipPosition",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"styleActionButton",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"disableTextTransform",void 0);
_.L([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.H("design:type",String)],ke.prototype,"playlistId",void 0);_.L([_.F(),_.H("design:type",Object)],ke.prototype,"data",void 0);_.L([_.F({selector:_.UV7,selectorArgs:["playlistId"]}),_.H("design:type",Object)],ke.prototype,"downloadProgress",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],ke.prototype,"isDownloadComplete",void 0);
_.L([_.F({selector:_.F9,selectorArgs:["playlistId"]}),_.H("design:type",String)],ke.prototype,"transferState",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],ke.prototype,"showTooltips",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],ke.prototype,"sendCommandWhenDisabled",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ke.prototype,"disabled",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ke.prototype,"dataChanged",null);_.L([_.CF("transferState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ke.prototype,"onTransferStateChanged",null);_.L([_.CF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ke.prototype,"updateProgress",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],ke);
_.G(ke,"ytd-download-playlist-button-renderer",function(){if(fXz!==void 0)return fXz;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fXz=B},{mode:1});var DLB;_.xU(_.J_F,"thumbnail-overlay-button-view-model",{props:{data:_.rk,lockupExperiments:_.rk}});var Xn=function(){var B=_.z.apply(this,arguments)||this;B.isSquare=!1;B.isVertical=!1;return B};
_.w(Xn,_.z);Xn.prototype.computeIsSquare=function(B){return B!=null&&B.thumbnail?lRy(B.thumbnail)==="SQUARE":!1};
Xn.prototype.computeIsVertical=function(B){return B!=null&&B.thumbnail?lRy(B.thumbnail)==="VERTICAL":!1};
Xn.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.H("design:type",Object)],Xn.prototype,"isSquare",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.H("design:type",Object)],Xn.prototype,"isVertical",void 0);
_.L([_.F(),_.H("design:type",Object)],Xn.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Xn);
_.G(Xn,"ytd-hero-playlist-thumbnail-renderer",function(){if(DLB!==void 0)return DLB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return DLB=B},{mode:1});var $e=function(){var B=_.z.apply(this,arguments)||this;B.isDarkTheme=!1;B.isUltraWide=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return B};
_.w($e,_.z);_.a=$e.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.cp();var B;(B=_.cp().resolve(_.Bp(_.ff)))!=null&&(B.headerElement=this.hostElement)};
_.a.detached=function(){var B;(B=_.cp().resolve(_.Bp(_.ff)))!=null&&(B.headerElement=void 0)};
_.a.onUpdateHeader=function(B){(B=B.detail)&&this.set("data",B)};
_.a.computeTextDisplayed=function(B){if(B)return B.textDisplayed?B.textDisplayed:B.placeholder};
_.a.gradientColorToLinearGradientStop=function(B){var c=this.isDarkTheme?B.darkThemeColor:B.lightThemeColor;return c?_.SF(c)+" "+((B==null?void 0:B.startLocation)||0)*100+"%":"transparent"};
_.a.onWindowResize=function(){var B;((B=this.data)==null?0:B.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.a.onIronResize=function(B){this.isUltraWide=!B.detail.value};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.onUpdatePlaylistName=function(B){var c=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},B.detail.value));_.fl(this,function(){var x;(x=c.editableTitle)==null||x.resize()})};
_.a.onUpdatePlaylistDescription=function(B){var c=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},B.detail.value));_.fl(this,function(){var x;(x=c.editableDescriptionInlineExpander)==null||x.resize()})};
_.a.getCinematicData=function(B){return _.t(B==null?void 0:B.cinematicContainer,_.T9)};
_.AJ.Object.defineProperties($e.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 B,c=(B=this.getCinematicData(this.data))==null?void 0:B.config;return(B=this.isDarkTheme?c==null?void 0:c.darkThemeBackgroundColor:c==null?void 0:c.lightThemeBackgroundColor)?"background-color:"+_.zF(B)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var B;return _.t((B=this.data)==null?void 0:B.descriptionForm,DKr)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x,P;return"background:linear-gradient(to bottom, "+(((P=(c=this.getCinematicData(this.data))==null?void 0:(x=c.gradientColorConfig)==null?void 0:x.map(function(Y){return B.gradientColorToLinearGradientStop(Y)}))==null?void 0:P.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var B;return _.iG((B=this.data)==null?void 0:B.descriptionTapText)}}});
$e.prototype.onUpdateHeader=$e.prototype.onUpdateHeader;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],$e.prototype,"actionHandlerBehavior",void 0);_.L([_.jr("#description-inline-expander"),_.H("design:type",Object)],$e.prototype,"descriptionInlineExpander",void 0);
_.L([_.jr("#editable-description-inline-expander"),_.H("design:type",Object)],$e.prototype,"editableDescriptionInlineExpander",void 0);_.L([_.F(),_.H("design:type",Object)],$e.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],$e.prototype,"isUltraWide",void 0);_.L([_.jr("#editable-title-display"),_.H("design:type",Object)],$e.prototype,"editableTitle",void 0);_.L([_.Q("isUltraWide"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"maxDescriptionLines",null);
_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"noCinematicData",null);_.L([_.nF("yt-new-playlist-header"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$e.prototype,"onUpdateHeader",null);_.L([_.Q("data","isDarkTheme"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"backgroundStyle",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"descriptionFormData",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"getDropdownTheme",null);_.L([_.Q("data","isDarkTheme"),_.H("design:type",String),_.H("design:paramtypes",[])],$e.prototype,"gradientStyle",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$e.prototype,"descriptionTapText",null);
_.L([_.y({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],$e);
_.G($e,"ytd-playlist-header-renderer",function(){if(Se8!==void 0)return Se8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Se8=B},{mode:_.sL("kevlar_poly_si_batch_j078")?1:2});var rHc;var R4N;var nT=function(){return _.z.apply(this,arguments)||this};
_.w(nT,_.z);nT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nT.prototype,"data",void 0);_.L([_.y({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],nT);
_.G(nT,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(R4N!==void 0)return R4N;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return R4N=B},{mode:1});var bo=function(){return _.z.apply(this,arguments)||this};
_.w(bo,_.z);
bo.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}}}}};
bo.prototype.computeUsePremiumShowStyle=function(B){if(!B||!B.items)return!1;for(var c=0;c<B.items.length;c++)if(_.t(B.items[c],JL)){var x=void 0;return((x=_.t(B.items[c],JL))==null?void 0:x.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bo.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.H("design:type",Boolean)],bo.prototype,"usePremiumShowStyle",void 0);
_.L([_.y({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],bo);
_.G(bo,"ytd-playlist-sidebar-renderer",function(){if(rHc!==void 0)return rHc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rHc=B},{mode:1});var e4F;var BvA;var cys=function(B,c,x,P,Y,g,k,n){this.minWidth=B;this.minHeight=c;this.recommendedWidth=x;this.recommendedHeight=P;this.JSC$19563_maxFileSize=Y;this.title=g;this.bannerGalleryTitle=k;this.channelId=n;this.picker_=null;B=_.nJo("yt-banner");c=B.addView;x=(new SDo("youtubebanner")).addUploadMetadata("silo_id","19");x.opts.ytMaxFileSize=this.JSC$19563_maxFileSize;P=this.recommendedHeight;x.opts.ytRecWidth=this.recommendedWidth;x.opts.ytRecHeight=P;c.call(B,x);B.addView(new _.NX);c=B.addView;x=new _.NX;
x.opts.type="ytbanner";c.call(B,x.JSC$8119_setLabel(this.bannerGalleryTitle));c=B.setTitle(this.title).setSize(1E3);c.urlParamMap_.set("thumbs","orig");x=this.minWidth;P=this.minHeight;if(isNaN(x)||isNaN(P))throw Error("lb`"+x+"`"+P);c.urlParamMap_.set("minSize",x+"x"+P);c.urlParamMap_.set("cropMode","ytcb");this.builder_=B};
cys.prototype.open=function(){var B=this;return new _.bb(function(c,x){_.XRm(B.builder_,function(P){P.action=="picked"?c(P):P.action=="cancel"&&x(Error("Yl"))});
B.picker_&&B.picker_.dispose();B.picker_=B.builder_.build();B.picker_.setVisible(!0)})};
cys.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var xSi=function(B){this.channelId=B},PZ6=function(B,c){var x="";
c.viewToken&&(x=c.viewToken[2].type);var P=c.docs[0];c=P.crop;B={channel_id:B.channelId,fife_url:P.thumbnails[0].url,photo_id:P.id,is_gallery_image:x=="ytbanner"};c&&(B.crop_top=c.top,B.crop_right=c.right,B.crop_bottom=c.bottom,B.crop_left=c.left);return _.zK7("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:B})};var KT=function(){var B=_.z.apply(this,arguments)||this;B.ariaLabel=null;return B};
_.w(KT,_.z);_.a=KT.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.detached=function(){this.picker&&this.picker.dispose()};
_.a.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.a.computeAriaLabel=function(B){return B};
_.a.onTap=function(){var B=this,c;if((c=this.data)==null||!c.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new cys(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 x;(x=this.picker)==null||x.open().then(function(P){B.handleBannerPicked(P)},function(){})}};
_.a.handleBannerPicked=function(B){var c=this;this.uploader||(this.uploader=new xSi(this.data.channelId||""));this.message=this.data.uploadingText;PZ6(this.uploader,B).then(function(x){c.handleBannerUploadSucceeded(x)},function(x){c.handleBannerUploadFailed(x)})};
_.a.handleBannerUploadSucceeded=function(B){B&&B.errors?this.handleBannerUploadFailed(B):(_.aJ(this.hostElement,"yt-banner-updated",B),this.message=null)};
_.a.handleBannerUploadFailed=function(B){this.message=B&&B.errors&&B.errors.length?B.errors[0]:null};
KT.prototype.dataChanged=KT.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],KT.prototype,"componentBehavior",void 0);_.L([_.J(_.QT),_.H("design:type",Object)],KT.prototype,"ironButtonState",void 0);_.L([_.F(),_.H("design:type",Object)],KT.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.H("design:type",Object)],KT.prototype,"ariaLabel",void 0);
_.L([_.F(),_.H("design:type",Object)],KT.prototype,"message",void 0);_.L([_.F(),_.H("design:type",Object)],KT.prototype,"picker",void 0);_.L([_.F(),_.H("design:type",Object)],KT.prototype,"uploader",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KT.prototype,"dataChanged",null);_.L([_.y({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],KT);
_.G(KT,"ytd-channel-banner-editor-renderer",function(){if(BvA!==void 0)return BvA;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return BvA=B},{mode:1});var Ytl;var abo=_.r2(["#"]),jN=function(){return _.z.apply(this,arguments)||this};
_.w(jN,_.z);jN.prototype.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B,!0)||_.w8(abo)};
jN.prototype.dataChanged=function(){var B=this.data;B&&B.targetId&&_.Bo4(_.wk(),B.targetId,this.moreIcon)};
jN.prototype.dataChanged=jN.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],jN.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jN.prototype,"data",void 0);_.L([_.jr("#more-icon"),_.H("design:type",Object)],jN.prototype,"moreIcon",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jN.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],jN);
_.G(jN,"ytd-channel-tagline-renderer",function(){if(Ytl!==void 0)return Ytl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ytl=B},{mode:1});var go6;var UK=function(){return _.z.apply(this,arguments)||this};
_.w(UK,_.z);_.a=UK.prototype;_.a.ready=function(){var B=this;_.Y9(this.hostElement).querySelector("#form").addEventListener("submit",function(c){B.onSubmit(c)})};
_.a.onDataChanged=function(){var B;((B=this.data)==null?0:B.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.a.onIconButtonKeydown=function(B){B.keyCode===13&&this.iconButton.click()};
_.a.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.a.openOnClickHandler=function(){this.input.focus()};
_.a.onSubmit=function(B){B.preventDefault();return!1};
_.a.submitOnEnterKeyUp=function(B){var c;if(B.keyCode===13&&((c=this.data)==null?0:c.expandedText)){B=this.data.endpoint;c=_.wW.unsafeClone(B);var x;((x=_.t(c==null?void 0:c.commandMetadata,_.Br))==null?0:x.url)?(_.t(c.commandMetadata,_.Br).url=_.FU(_.t(c.commandMetadata,_.Br).url,"query",this.data.expandedText),_.t(c,_.qA)&&(_.t(c,_.qA).query=this.data.expandedText),_.aJ(this.hostElement,"yt-navigate",{endpoint:c,tempData:{disableCache:!0}})):(x=new _.mc("Error: Trying to navigate to an endpoint without url",
B),_.lb(x))}};
_.a.updateDataExpandedTextFromBinding=function(B){this.set("data.expandedText",B.detail.value)};
_.AJ.Object.defineProperties(UK.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
UK.prototype.onDataChanged=UK.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.VxB),_.H("design:type",Object)],UK.prototype,"ytdExpandableInputBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UK.prototype,"data",void 0);_.L([_.jr("#input"),_.H("design:type",Object)],UK.prototype,"input",void 0);_.L([_.jr("#icon-button"),_.H("design:type",HTMLElement)],UK.prototype,"iconButton",void 0);
_.L([_.F(),_.H("design:type",String),_.H("design:paramtypes",[])],UK.prototype,"searchIcon",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UK.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],UK);
var E$S=_.gX()(UK,"ytd-expandable-tab-renderer",function(){if(go6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);go6=B}B=go6;return B},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var scr;var du=function(){var B=_.z.apply(this,arguments)||this;B.avatarSize=80;B.ariaLabel=_.Up("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return B};
_.w(du,_.z);du.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
du.prototype.computeHref=function(B){var c;return((c=_.t(B,_.yp))==null?0:c.url)?this.componentBehavior.computeHref_(B):null};
du.prototype.onTap=function(){var B,c;(B=this.data)==null||!B.editAvatarServiceEndpoint||((c=_.t(this.data.editAvatarServiceEndpoint,_.yp))==null?0:c.url)||_.cp().resolve(_.xu).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.L([_.J(_.QT),_.H("design:type",Object)],du.prototype,"ironButtonState",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],du.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],du.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],du.prototype,"avatarSize",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],du.prototype,"ariaLabel",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],du);
_.G(du,"ytd-channel-avatar-editor",function(){if(scr!==void 0)return scr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return scr=B},{mode:1});var pk6=_.rM(function(B){var c=B.data;var x=B.noPadding;var P=B.enableBanner;var Y=B.cinematicContainerTopbarOffset;var g=B.allowCinematicContainerOverflow;var k=B.displayAsSidebar;B=B.className;_.IO(function(){c().tagManagerId&&(_.Wl(c().tagManagerId,_.v5("GL")),ziy(c().tagManagerId))},"xVTVTe");
var n=_.jA(o$i,function(){return c().pageHeaderEntityKey});
return _.U("yt-page-header-renderer",{class:_.Kw("page-header-renderer-wiz",B)},_.U(_.IF,{data:function(){var b;return((b=n())==null?0:b.header)?n().header:(k==null?0:k())&&c().sidebarContent?c().sidebarContent:c().content}},{pageHeaderViewModel:function(b){return _.U(_.fQd,{data:b.data,
noPadding:x,enableBanner:P,cinematicContainerTopbarOffset:Y,allowCinematicContainerOverflow:g,displayAsSidebar:function(){return(k==null?void 0:k())&&c().enableSidebarView}})}}))},"Ki");
pk6.idomCompat=!0;_.xU(pk6,"yt-page-header-renderer",{props:{data:_.rk,noPadding:_.rk,enableBanner:_.rk,cinematicContainerTopbarOffset:_.rk,allowCinematicContainerOverflow:_.rk,displayAsSidebar:_.rk,className:_.rk}});_.xU(_.ZIy,"yt-image-banner-view-model",{props:{data:_.rk,isPositionRelative:_.rk}});_.xU(_.pnt,"yt-tab-group-shape",{props:{shape:_.rk}});var qG=function(){var B=_.z.apply(this,arguments)||this;B.expandableCustomTabRenderable=function(c){return Ovr(c,function(){return void B.onSearchNavigate()})};
B.isRichGrid=!1;B.isConstrainedList=!1;B.richGridMiniMode=!1;B.richGridStyle="RICH_GRID_STYLE_UNKNOWN";B.isRichGridShorts=!1;B.responsiveSizing="COMPACT";B.disableGridStateAware=!1;B.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return B};
_.w(qG,_.z);_.a=qG.prototype;_.a.computeHeaderDisabled=function(B,c){return c||!B||this.tabsHidden};
_.a.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.a.computeIsRichGridShorts=function(B){return B==="RICH_GRID_STYLE_SHORTS_GRID"||B==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.a.computeImageBannerViewModel=function(){var B,c;return _.t((c=_.t((B=this.data)==null?void 0:B.content,_.mVm))==null?void 0:c.banner,_.UV0)};
_.a.computeHasCinematicContainer=function(){var B,c;return!((c=_.t((B=this.data)==null?void 0:B.content,_.mVm))==null||!c.background)};
_.a.handleHeaderResize=function(){var B=_.Y9(this.hostElement).querySelector("#header");B&&_.aJ(B,"iron-resize")};
_.a.handleInsertTabCommand=function(B){var c=_.t(B,Yec);c&&(c.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(x){return x.tabRenderer&&x.tabRenderer.tabIdentifier===c.tabIdentifier})||this.splice("tabs",c.tabIndex||-1,0,c.tab))};
_.a.handleRefreshChannelTabAction=function(B){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===B&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.a.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.k9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.a.observerRichGridSlimItemsPerRow=function(){_.k9(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.a.updateCssVars=function(){this.richGridItemsPerRow&&_.k9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Yu("rich_grid_max_item_width",500))+16)-16+"px"})};
_.a.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.k9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.a.onDataChanged=function(){this.handleHeaderResize()};
_.a.onWindowResize=function(){this.handleHeaderResize()};
_.a.onFocusedChanged=function(B){(B=_.uI(B))&&B.is==="tp-yt-paper-tab"&&B.hasRipple()&&(B.getRipple().holdDown=!B.pointerDown&&B.focused)};
_.a.updateSelectedFromBinding=function(B){this.ytdTabbedHeaderBehavior.selected=B.detail.value};
_.a.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.AJ.Object.defineProperties(qG.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FJF(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.imageBannerViewModel)==null?void 0:B.style)==="IMAGE_BANNER_STYLE_INSET"}}});
qG.prototype.onDataChanged=qG.prototype.onDataChanged;qG.prototype.updateCssVarsForResponsiveGrid=qG.prototype.updateCssVarsForResponsiveGrid;qG.prototype.updateCssVars=qG.prototype.updateCssVars;qG.prototype.observerRichGridSlimItemsPerRow=qG.prototype.observerRichGridSlimItemsPerRow;qG.prototype.observerRichGridItemsPerRow=qG.prototype.observerRichGridItemsPerRow;_.L([_.J(_.vD),_.H("design:type",Object)],qG.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.J(aXy),_.H("design:type",Object)],qG.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],qG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],qG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],qG.prototype,"ytdReduxBehavior",void 0);_.L([_.jr("#tabs"),_.H("design:type",Object)],qG.prototype,"tabsElement",void 0);_.L([_.F(),_.H("design:type",Array)],qG.prototype,"tabs",void 0);_.L([_.F(),_.H("design:type",Object)],qG.prototype,"expandableCustomTabRenderable",void 0);_.L([_.Q("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],qG.prototype,"tabGroupShape",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qG.prototype,"isRichGrid",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qG.prototype,"isConstrainedList",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Object)],qG.prototype,"richGridMiniMode",void 0);_.L([_.F({selector:function(B){return B.ui.richGridStyle}}),
_.H("design:type",Object)],qG.prototype,"richGridStyle",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.H("design:type",Object)],qG.prototype,"isRichGridShorts",void 0);_.L([_.F({selector:_.lG}),_.H("design:type",Number)],qG.prototype,"richGridItemsPerRow",void 0);_.L([_.F({selector:function(B){return B.ui.richGridContainerWidth}}),
_.H("design:type",Number)],qG.prototype,"richGridContainerWidth",void 0);_.L([_.F({selector:_.PaX}),_.H("design:type",Number)],qG.prototype,"richGridSlimItemsPerRow",void 0);_.L([_.F(),_.H("design:type",Object)],qG.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qG.prototype,"responsiveSizing",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qG.prototype,"disableGridStateAware",void 0);
_.L([_.F({computed:"computeImageBannerViewModel(data)"}),_.H("design:type",Object)],qG.prototype,"imageBannerViewModel",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.H("design:type",Boolean)],qG.prototype,"hasCinematicContainer",void 0);_.L([_.F({selector:_.kEc,reflectToAttribute:!0}),_.H("design:type",Boolean)],qG.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],qG.prototype,"hasBanner",null);_.L([_.F({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],qG.prototype,"hasInsetBanner",null);_.L([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.H("design:type",Boolean)],qG.prototype,"tabsHidden",void 0);
_.L([_.bF("richGridItemsPerRow","isRichGrid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"observerRichGridItemsPerRow",null);_.L([_.bF("richGridSlimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"observerRichGridSlimItemsPerRow",null);
_.L([_.bF("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"updateCssVars",null);_.L([_.bF("richGridContainerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"updateCssVarsForResponsiveGrid",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"onDataChanged",null);
_.L([_.y({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],qG);
_.G(qG,"ytd-tabbed-page-header",function(){if(e4F!==void 0)return e4F;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return e4F=B},{mode:1});var kti;var CT=function(){return _.z.apply(this,arguments)||this};
_.w(CT,_.z);CT.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.k9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.AJ.Object.defineProperties(CT.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var B,c;return this.componentBehavior.computeIcon_(((c=_.t((B=this.data)==null?void 0:B.badge,_.k1n))==null?void 0:c.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.badge,_.k1n))==null?void 0:c.label}}});
CT.prototype.observerRichGridItemsPerRow=CT.prototype.observerRichGridItemsPerRow;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],CT.prototype,"componentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],CT.prototype,"ytdReduxBehavior",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.W3}),_.H("design:type",Boolean)],CT.prototype,"richGridMiniMode",void 0);
_.L([_.F({selector:_.lG}),_.H("design:type",Number)],CT.prototype,"richGridItemsPerRow",void 0);_.L([_.F(),_.H("design:type",Object)],CT.prototype,"data",void 0);_.L([_.bF("richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CT.prototype,"observerRichGridItemsPerRow",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],CT.prototype,"badgeIconName",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],CT.prototype,"badgeLabel",null);_.L([_.y({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],CT);
_.G(CT,"ytd-member-hub-profile-renderer",function(){if(kti!==void 0)return kti;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kti=B},{mode:1});var XkB;var hq=function(){return _.z.apply(this,arguments)||this};
_.w(hq,_.z);hq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hq.prototype,"data",void 0);_.L([_.y({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],hq);
_.G(hq,"ytd-settings-sidebar-renderer",function(){if(XkB!==void 0)return XkB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return XkB=B},{mode:1});var $Sy;var md=function(){var B=_.z.apply(this,arguments)||this;B.expandableCustomTabRenderable=function(c){return Ovr(c,function(){return void B.onSearchNavigate()})};
return B};
_.w(md,_.z);md.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
md.prototype.onSearchNavigate=function(){this.selected=void 0};
md.prototype.onTabsChange=function(){var B,c=(B=this.tabs)==null?void 0:B.findIndex(function(x){var P;return x==null?void 0:(P=x.tabRenderer)==null?void 0:P.selected});
c!==void 0&&(this.selected=c)};
md.prototype.onTabsActive=function(B){if(this.tabs!==void 0){var c,x;(B=(c=this.tabs[B.detail.selected])==null?void 0:(x=c.tabRenderer)==null?void 0:x.endpoint)&&_.aJ(this.hostElement,"yt-navigate",{endpoint:B})}};
_.AJ.Object.defineProperties(md.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FJF(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
md.prototype.onTabsChange=md.prototype.onTabsChange;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.vD),_.H("design:type",Object)],md.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],md.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],md.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],md.prototype,"tabs",void 0);_.L([_.F(),_.H("design:type",Number)],md.prototype,"selected",void 0);_.L([_.Q("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],md.prototype,"tabGroupShape",null);_.L([_.F(),_.H("design:type",Object)],md.prototype,"expandableCustomTabRenderable",void 0);
_.L([_.Q("tabs"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],md.prototype,"tabsEnabled",null);_.L([_.CF("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],md.prototype,"onTabsChange",null);_.L([_.y({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],md);
_.G(md,"ytd-topic-channel-details-renderer",function(){if($Sy!==void 0)return $Sy;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $Sy=B},{mode:1});var nol;var Tf=function(){var B=_.z.apply(this,arguments)||this;B.disableGridStateAware=!1;return B};
_.w(Tf,_.z);Tf.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]]"}}}}}};
Tf.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Tf.prototype.updateCssVars=function(){_.k9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Yu("rich_grid_max_item_width",500))+16)-16+"px"})};
Tf.prototype.updateCssVars=Tf.prototype.updateCssVars;Tf.prototype.activeChanged=Tf.prototype.activeChanged;_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Tf.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Tf.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Tf.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],Tf.prototype,"tabs",void 0);_.L([_.F(),_.H("design:type",Boolean)],Tf.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Tf.prototype,"disableGridStateAware",void 0);
_.L([_.F({selector:_.lG}),_.H("design:type",Number)],Tf.prototype,"richGridItemsPerRow",void 0);_.L([_.F({selector:_.W3}),_.H("design:type",Boolean)],Tf.prototype,"richGridMiniMode",void 0);_.L([_.jr("ytd-carousel-item-renderer"),_.H("design:type",Object)],Tf.prototype,"carousel",void 0);_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tf.prototype,"activeChanged",null);
_.L([_.bF("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tf.prototype,"updateCssVars",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Tf);
_.G(Tf,"ytd-carousel-header-renderer",function(){if(nol!==void 0)return nol;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return nol=B},{mode:1});var bh8;var KOs=_.r2(["https://www.google-analytics.com/analytics.js"]),V1=function(){var B=_.z.apply(this,arguments)||this;B.scriptAnalyticsAdded=!1;return B};
_.w(V1,_.z);V1.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var B,c=(B=this.data)==null?void 0:B.tagManagerId;c&&(_.Wl(c,_.v5("GL")),ziy(c))};
V1.prototype.sendGoogleAnalyticsPageview=function(B){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var x=_.ts.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(x)};
var c=window.ga;c("set","page",window.location.pathname);c.l=+new Date;c("set","forceSSL",!0);c("create",B,"'auto'");c("send","pageview")};
V1.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var B=_.df("SCRIPT");B.name="ga-analytics";var c=_.PM(KOs);_.Mg(B,c);B.async=!0;_.Y9(this.hostElement).appendChild(B)};
V1.prototype.dataChanged=V1.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],V1.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V1.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],V1);
_.G(V1,"ytd-channel-metadata-renderer",function(){if(bh8!==void 0)return bh8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bh8=B},{mode:1});var jcc;var US6;var tq=function(){return _.z.apply(this,arguments)||this};
_.w(tq,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tq.prototype,"data",void 0);_.L([_.y({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],tq);
_.G(tq,"ytd-sub-feed-option-renderer",function(){if(US6!==void 0)return US6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return US6=B},{mode:1});var dSA;var wu=function(){return _.z.apply(this,arguments)||this};
_.w(wu,_.z);wu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererStamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wu.prototype,"data",void 0);_.L([_.y({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],wu);
_.G(wu,"ytd-sub-feed-selector-renderer",function(){if(dSA!==void 0)return dSA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dSA=B},{mode:1});var NG=function(){return _.z.apply(this,arguments)||this};
_.w(NG,_.z);
NG.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}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],NG.prototype,"data",void 0);_.L([_.y({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],NG);
_.G(NG,"ytd-browse-feed-actions-renderer",function(){if(jcc!==void 0)return jcc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return jcc=B},{mode:1});var qtB;var CZ6;var I4=function(){return _.z.apply(this,arguments)||this};
_.w(I4,_.z);I4.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],I4.prototype,"data",void 0);_.L([_.y({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],I4);
_.G(I4,"ytd-mini-channel-renderer",function(){if(CZ6!==void 0)return CZ6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return CZ6=B},{mode:1});var hCz;var Jq=function(){return _.z.apply(this,arguments)||this};
_.w(Jq,_.z);Jq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Jq.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Jq);
_.G(Jq,"ytd-vertical-channel-section-renderer",function(){if(hCz!==void 0)return hCz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hCz=B},{mode:1});var WO=function(){return _.z.apply(this,arguments)||this};
_.w(WO,_.z);WO.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],WO.prototype,"data",void 0);_.L([_.y({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],WO);
_.G(WO,"ytd-browse-secondary-contents-renderer",function(){if(qtB!==void 0)return qtB;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return qtB=B},{mode:1});var mSN;var lo=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};B.notActive=!1;B.isConstrainedList=!1;return B};
_.w(lo,_.z);_.a=lo.prototype;
_.a.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(B){var c;return(B==null?void 0:(c=B.webComponentHint)==null?void 0:c.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}}}}};
_.a.getPath=function(B,c){var x="data.tabs.#"+c+".";B.tabs[c].tabRenderer?x+="tabRenderer.":B.tabs[c].expandableTabRenderer&&(x+="expandableTabRenderer.");return x+"content.sectionListRenderer"};
_.a.computeDisplayedContent=function(B){this.unlinkPaths("content");if(B&&B.tabs)for(var c=B.tabs.length,x=0;x<c;x++){var P=B.tabs[x].tabRenderer||B.tabs[x].expandableTabRenderer;if(P.selected&&P.content)return this.linkPaths("content",this.getPath(B,x)),P.content}return null};
_.a.computeHasSecondaryColumnData=function(B){return!!B&&!!B.secondaryContents};
_.a.onRetrieveLocation=function(B,c){c.locationRetrieved(c.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);B.stopPropagation()};
_.a.onYtServiceRequestSent=function(B,c){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.a.onYtServiceRequestCompleted=function(B,c){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.a.onReplaceFeedContentAction=function(B){if(!_.T("replace_feed_content_action_killswitch")&&!this.notActive){var c;(B=(c=_.t(B,iv8))==null?void 0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(B)}};
_.a.handleServiceRequestActions=function(B){if(B=B.actions){B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var x=void 0;((x=_.t(c,iv8))==null?0:x.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.t(c,iv8).items)}}};
lo.prototype.onYtServiceRequestCompleted=lo.prototype.onYtServiceRequestCompleted;lo.prototype.onYtServiceRequestSent=lo.prototype.onYtServiceRequestSent;lo.prototype.onRetrieveLocation=lo.prototype.onRetrieveLocation;_.L([_.J(_.vD),_.H("design:type",Object)],lo.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],lo.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lo.prototype,"data",void 0);_.L([_.F({computed:"computeDisplayedContent(data)"}),_.H("design:type",Object)],lo.prototype,"content",void 0);
_.L([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],lo.prototype,"hasSecondaryColumnData",void 0);_.L([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.H("design:type",Number)],lo.prototype,"initialCount",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],lo.prototype,"pageSubtype",void 0);_.L([_.jr("ytd-section-list-renderer"),_.H("design:type",Object)],lo.prototype,"listRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],lo.prototype,"notActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lo.prototype,"isConstrainedList",void 0);
_.L([_.F(),_.H("design:type",String)],lo.prototype,"responsiveSizing",void 0);_.L([_.nF("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],lo.prototype,"onRetrieveLocation",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],lo.prototype,"onYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],lo.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],lo);
_.G(lo,"ytd-two-column-browse-results-renderer",function(){if(mSN!==void 0)return mSN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return mSN=B},{mode:2});var Tvz;var Vsy;var EK=function(){var B=_.z.apply(this,arguments)||this;B.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"]);B.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"]);B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return B};
_.w(EK,_.z);_.a=EK.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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_]]"}}}}}};
_.a.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
_.a.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.a.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.a.computeAlertStyle_=function(B){return B};
_.a.observerElementsPerRow=function(){this.elementsPerRow&&_.k9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.a.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.a.requestElementsPerRow=function(){_.aJ(this.hostElement,"yt-request-elements-per-row")};
EK.prototype.onIsVisibleChanged_=EK.prototype.onIsVisibleChanged_;EK.prototype.observerElementsPerRow=EK.prototype.observerElementsPerRow;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],EK.prototype,"actionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],EK.prototype,"data",void 0);_.L([_.F({value:6,reflectToAttribute:!0}),_.H("design:type",Number)],EK.prototype,"elementsPerRow",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],EK.prototype,"wrapButtons",void 0);_.L([_.F({value:_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],EK.prototype,"isMusic",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.H("design:type",String)],EK.prototype,"alertStyle",void 0);_.L([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.H("design:type",Function)],EK.prototype,"dismissBoundButtonTap_",void 0);_.L([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.H("design:type",Function)],EK.prototype,"acceptBoundButtonTap_",void 0);_.L([_.bF("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EK.prototype,"observerElementsPerRow",null);_.L([_.bF("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EK.prototype,"onIsVisibleChanged_",null);_.L([_.Em({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],EK);
_.G(EK,"yt-alert-with-actions-renderer",function(){if(Vsy===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;Tvz===void 0&&(Tvz=document.createElement("template"));var P=Tvz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Vsy=B}B=Vsy;return B},{mode:2});_.xU(_.rM(function(B){function c(h){var V={};return _.U(_.RF,{text:h,className:_.Kw("ytPersonalGreetingViewModelHeadline",(V.ytPersonalGreetingViewModelHeadlineSmall=function(){return n()===48},V))})}
function x(h,V){return _.U("span",{el:h,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},c(V))}
var P=_.Ho("yt-personal-greeting-view-model"),Y=_.Ho("span"),g=_.Ho("span"),k=function(){return B.data().canvasPromoData},n=function(){var h;
return(h=B.data().bannerHeight)!=null?h:56},b=_.$uO(P,{throttleMs:100}),d=_.$uO(Y,{throttleMs:100}),q=_.$uO(g,{throttleMs:100}),C=function(){return d.width()-b.width()>1};
_.Hv(P,function(){var h;return(h=B.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0);
return _.U("yt-personal-greeting-view-model",{el:P,"aria-hidden":C,class:_.Kw(B.className,"ytPersonalGreetingViewModelHost"),style:_.TU({height:(0,_.Ih)(function(){return C()?0:n()})})},_.U(_.m,{cond:function(){return B.data().avatar&&!(q.width()+(B.data().avatar?48:0)-b.width()>1)},
then:function(){return _.U(_.IF,{data:function(){return B.data().avatar}},{decoratedAvatarViewModel:function(h){return _.U(_.Jf,{data:h.data,
className:_.Kw("ytPersonalGreetingViewModelAvatar")})}})}}),_.U("h1",null,c(function(){var h;
return(k==null?void 0:(h=k())==null?void 0:h.headline)||(q.width()+(B.data().avatar?48:0)-b.width()>1?B.data().shorterGreeting:B.data().greeting)})),x(g,function(){return B.data().greeting}),x(Y,function(){return B.data().shorterGreeting}))},"Li"),"yt-personal-greeting-view-model",{props:{data:_.rk,
className:_.rk}});var OK=function(){var B=_.z.apply(this,arguments)||this;B.hidden=!1;B.isConstrainedList=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.responsiveSizing="COMPACT";B.attachedPlayers=_.T("kevlar_channel_trailer_multi_attach")?[]:void 0;B.player=null;B.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return B};
_.w(OK,_.z);_.a=OK.prototype;
_.a.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}}}}};
_.a.created=function(){var B=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){B.disposeMastheadAd()}]};
_.a.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new pei(this.refresh,this.contents))};
_.a.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.a.activeChanged=function(){var B=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=B)};
_.a.tabsChanged=function(){var B=this,c,x;if(this.pageSubtype==="channels"||_.T("kevlar_tab_gestures_for_tabbed_header_data")&&((c=this.data)==null?0:(x=c.header)==null?0:x.carouselHeaderRenderer))this.tabGestures=new l0(this.contents,this.contents,this.hostElement,this.header,function(k){B.ytdReduxBehavior.dispatch(k)});
var P,Y,g;c=(P=this.data)==null?void 0:(Y=P.contents)==null?void 0:(g=Y.twoColumnBrowseResultsRenderer)==null?void 0:g.tabs;this.tabGestures&&this.tabGestures.tabsChanged(c)};
_.a.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.a.engagementPanelsChanged=function(){var B=_.cp().resolve(_.TA);if(B){if(this.engagementPanels)for(var c=_.p(this.engagementPanels),x=c.next();!x.done;x=c.next()){var P=void 0;(x=(P=x.value.identifier)==null?void 0:P.tag)&&B.panelMap.delete(x)}this.engagementPanels=[];var Y;c=_.p(((Y=this.data)==null?void 0:Y.panels)||[]);for(Y=c.next();!Y.done;Y=c.next()){Y=_.t(Y.value,_.y5A);var g=x=void 0,k=void 0,n=void 0;if(P=((x=Y)==null?void 0:x.targetId)||((g=Y)==null?void 0:g.panelIdentifier)||((k=Y)==
null?void 0:(n=k.identifier)==null?void 0:n.tag))g=x=void 0,(g=(x=B).registerPanelContent)==null||g.call(x,P,{engagementPanelSectionListRenderer:Y}),this.engagementPanels.push(Y)}}};
_.a.onStampFinished=function(){var B=this;_.fl(this,function(){if(B.tabGestures){var c=B.tabGestures;if(c.scrollPositionNeedsUpdate){var x=_.cp().resolve(_.Bp(_.rV)),P;if((P=c.selectedTab)!=null&&P.title&&x&&(P=x.getCurrentPage())){if(c.scrollPositionForTabs.has(c.selectedTab.title)){var Y,g;x=(g=(Y=x.getCurrentPage())==null?void 0:Y.clientHeight)!=null?g:0;Y=c.scrollPositionForTabs.get(c.selectedTab.title);P.setScrollTop(Y);x>Y+100&&(c.scrollPositionNeedsUpdate=!1)}else P.setScrollTop(Math.min(c.lastVisitedTabScrollPosition!==
void 0?c.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,c.tabsStartAtInPx)),c.scrollPositionNeedsUpdate=!1;c.ytdReduxDispatch(v$6(!1))}}}})};
_.a.loadPage_=function(B){this.initCsi();B&&(this.data=B);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.a.getTitle=function(B){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",B))return this.get("microformat.microformatDataRenderer.title",B);if(this.get("header.feedTabbedHeaderRenderer.title",B))return _.iG(this.get("header.feedTabbedHeaderRenderer.title",B));if(this.get("header.interactiveTabbedHeaderRenderer.title",B))return this.get("header.interactiveTabbedHeaderRenderer.title",B);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
B))return _.iG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",B));var c,x;return _.T("enable_page_header_page_title")&&(B==null?0:(c=B.header)==null?0:(x=c.pageHeaderRenderer)==null?0:x.pageTitle)?B.header.pageHeaderRenderer.pageTitle:""};
_.a.updateTitle=function(B){_.aJ(this.hostElement,"yt-update-title",this.getTitle(B))};
_.a.initCsi=function(){_.wS(this.pageSubtype||"browse",["ol","cpt"])};
_.a.getPlayer=function(){if(_.T("kevlar_channel_trailer_multi_attach")){for(var B=_.p(this.attachedPlayers),c=B.next();!c.done;c=B.next())if(c=c.value,c.isConnected||_.GP(this.hostElement,c))return c;return null}return this.player};
_.a.getPlayerContainer=function(){return null};
_.a.onPlayerAttached=function(B,c){_.T("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(c):this.player=c};
_.a.onPlayerDetached=function(B,c){_.T("kevlar_channel_trailer_multi_attach")?(B=this.attachedPlayers.indexOf(c),B<0||this.attachedPlayers.splice(B,1)):this.player=null};
_.a.getServiceTrackingParams=function(){var B,c;return((B=this.data)==null?void 0:(c=B.responseContext)==null?void 0:c.serviceTrackingParams)||[]};
_.a.setMastheadAd=function(B){B&&B.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=B&&B.mastheadAd};
_.a.dataChanged=function(){var B=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.hil();_.fl(this,function(){_.sp(B.hostElement,"ytd-update-grid-state-action")})};
_.a.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.a.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var B=this.data.alerts;return B&&B.find(function(c){return!!c.alertWithActionsRenderer})}};
_.a.computeGreetingData=function(){if(this.data&&this.data.alerts){var B=this.data.alerts;return B&&B.find(function(c){return!!c.personalGreetingViewModel})}};
_.a.computeHasMemberHubProfileRenderer=function(B){var c;return!!(B==null?0:(c=B.header)==null?0:c.memberHubProfileRenderer)};
_.a.handleAlertCommand=function(B){this.get("alertCommand.alert.alertWithActionsRenderer",B)&&(B=_.t(B,A_l),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",B.alert))};
_.a.handleYtPlaylistDeletionRedirect=function(B){B=this.get("playlistDeletionRedirectCommand.redirectEndpoint",B);_.aJ(this.hostElement,"yt-navigate",{endpoint:B})};
_.a.computeFluidWidth=function(B,c,x){if(c==="mini_app"||x)return!0;var P,Y,g;B=B==null?void 0:(P=B.contents)==null?void 0:(Y=P.twoColumnBrowseResultsRenderer)==null?void 0:(g=Y.tabs)==null?void 0:g.find(function(b){var d;return b==null?void 0:(d=b.tabRenderer)==null?void 0:d.selected});
if(!B)return!1;var k,n;return!!((k=B.tabRenderer)==null?0:(n=k.content)==null?0:n.richGridRenderer)&&!["channel","channels","playables"].includes(c)};
_.a.computeHeaderFluidWidth=function(B){return B==="hashtag-landing-page"};
_.a.computeHasSidebar=function(B){var c;return!!(B.sidebar||((c=B.header)==null?0:c.playlistHeaderRenderer))};
_.a.computeHasPageHeaderSidebar=function(B){var c,x;return!!((c=B.header)==null?0:(x=c.pageHeaderRenderer)==null?0:x.enableSidebarView)};
_.a.computeUseUnifiedShowPageLayout=function(B){if(!B||this.pageSubtype!=="show"||!B.sidebar||!B.sidebar.playlistSidebarRenderer)return!1;B=B.sidebar.playlistSidebarRenderer;if(!B.items)return!1;for(var c=0;c<B.items.length;c++)if(_.t(B.items[c],JL)){var x=void 0;return((x=_.t(B.items[c],JL))==null?void 0:x.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.a.computeIsConstrainedList=function(B){return _.T("web_enable_constrained_list_subscriptions_channels")&&B==="subscriptions-channels"};
_.a.computeResponsiveSizing=function(B){return B==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.AJ.Object.defineProperties(OK.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c;return((B=this.data)==null?0:(c=B.header)==null?0:c.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var B,c;if(!((B=this.data)==null?0:(c=B.sidebar)==null?0:c.playlistSidebarRenderer))return!1;var x;return(x=this.data)!=null&&x.header?!1:!0}}});
_.AJ.Object.defineProperties(OK,{template:{configurable:!0,enumerable:!0,get:function(){if($Ly===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);$Ly=B}B=$Ly;return B}}});
OK.prototype.dataChanged=OK.prototype.dataChanged;OK.prototype.onPlayerDetached=OK.prototype.onPlayerDetached;OK.prototype.onPlayerAttached=OK.prototype.onPlayerAttached;OK.prototype.onStampFinished=OK.prototype.onStampFinished;OK.prototype.engagementPanelsChanged=OK.prototype.engagementPanelsChanged;OK.prototype.scrollAtTopChanged=OK.prototype.scrollAtTopChanged;OK.prototype.tabsChanged=OK.prototype.tabsChanged;OK.prototype.activeChanged=OK.prototype.activeChanged;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],OK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],OK.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],OK.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.N1.YtPageBehavior),_.H("design:type",Object)],OK.prototype,"ytPageBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],OK.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],OK.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],OK.prototype,"hidden",void 0);
_.L([_.F(),_.H("design:type",Object)],OK.prototype,"mastheadAdData",void 0);_.L([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.H("design:type",Object)],OK.prototype,"alertBannerData",void 0);_.L([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.H("design:type",Object)],OK.prototype,"greetingData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],OK.prototype,"pageSubtype",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.H("design:type",Boolean)],OK.prototype,"hasMemberHubProfileRenderer",void 0);_.L([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],OK.prototype,"hasSidebar",void 0);_.L([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],OK.prototype,"hasPageHeaderSidebar",void 0);
_.L([_.F({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],OK.prototype,"roundedContainer",void 0);_.L([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],OK.prototype,"useUnifiedShowPageLayout",void 0);_.L([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.H("design:type",Object)],OK.prototype,"isConstrainedList",void 0);
_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],OK.prototype,"usePlaylistHeaderRenderer",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],OK.prototype,"useOldPlaylistSidebarRenderer",null);_.L([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.H("design:type",Boolean)],OK.prototype,"fluidWidth",void 0);_.L([_.F({selector:function(B){return B.ui.scrollAtTop}}),
_.H("design:type",Boolean)],OK.prototype,"scrollAtTop",void 0);_.L([_.F({selector:_.XFA}),_.H("design:type",Boolean)],OK.prototype,"tabGesturesIsActive",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],OK.prototype,"darkerDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.H("design:type",Boolean)],OK.prototype,"disableHeaderFluidWidth",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.H("design:type",String)],OK.prototype,"responsiveSizing",void 0);_.L([_.jr("ytd-two-column-browse-results-renderer"),_.H("design:type",HTMLElement)],OK.prototype,"contents",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],OK.prototype,"header",void 0);_.L([_.jr("ytd-refresh"),_.H("design:type",Object)],OK.prototype,"refresh",void 0);
_.L([_.bF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"activeChanged",null);_.L([_.bF("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"tabsChanged",null);_.L([_.bF("scrollAtTop"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"scrollAtTopChanged",null);
_.L([_.F(),_.H("design:type",Object)],OK.prototype,"engagementPanels",void 0);_.L([_.bF("data.panels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"engagementPanelsChanged",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"onStampFinished",null);
_.L([_.nF("yt-player-attached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],OK.prototype,"onPlayerAttached",null);_.L([_.nF("yt-player-detached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],OK.prototype,"onPlayerDetached",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OK.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-browse"})],OK);_.gk.registerService(_.Rgd,OK);
_.Oq();
}catch(e){_._DumpException(e)}
try{
_.Eq("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 xL=function(B){if(!B)return"browse";var c=B.page,x=B.url,P,Y,g,k=(P=B.response)==null?void 0:(Y=P.responseContext)==null?void 0:(g=Y.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(k)c=k.toLowerCase().replace(/_/g,"-");else if(c!=="watch"&&c!=="learning_journey_watch"){var n,b;if((c==="browse"||c==="settings")&&((n=B.response)==null?0:(b=n.sidebar)==null?0:b.settingsSidebarRenderer))c="WEB_PAGE_TYPE_SETTINGS";else{var d,q;c==="browse"&&((d=B.response)==null?0:(q=d.metadata)==null?
0:q.channelMetadataRenderer)?c="channel":x&&(c=_.Kr(x)||c)}}return c},mD6=function(){var B=_.Gu("yt.aba.att");
return B?B:_.B2.instance!==void 0?_.B2.instance.dji.bind(_.B2.instance):null},TrF=function(B,c){var x;
return _.X(function(P){return(x=mD6())?P.return(x(B,c,6E4)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},VRr=function(B,c,x,P,Y){c=c===void 0?[]:c;
Y=Y?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Y}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.c3(B),dialogMessages:c.map(function(g){return _.c3(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.c3(x),serviceEndpoint:Y}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.c3(P)}}}}}},tRB=function(B){var c=!!_.Mm().queueProxy;
var x,P,Y;B=B==null?void 0:(x=B.response)==null?void 0:(P=x.currentVideoEndpoint)==null?void 0:(Y=P.watchEndpoint)==null?void 0:Y.playlistId;return!(!c&&!B)},wp8=function(B,c){var x=_.dd();
if(tRB(B))return x.playlistWatchPageActivation=!0;switch(xL(c)){case "yts-products":return x.productDetailsPageActivation=!0;case "mini_app":return x.miniAppPageActivation=!0;case "playables":return x.playablesDestPageActivation=!0;default:return!1}},Nr6=function(B,c,x){for(var P=typeof B==="string"?B.split(""):B,Y=B.length-1;Y>=0;--Y)Y in P&&c.call(x,P[Y],Y,B)},ItN=function(B,c){c=_.dYQ(B,c);
c>=0&&_.iX(B,c)},JKr=function(B){return Array.prototype.concat.apply([],arguments)},Wcl=function(B){var c=0;
c=c===void 0?0:c;if(!_.CA(B))throw _.$F("uint64");var x=typeof B;switch(c){case 512:switch(x){case "string":return _.Xyd(B);case "bigint":return String((0,_.F6)(64,B));default:return _.pyx(B)}case 1024:switch(x){case "string":return _.$QX(B);case "bigint":return _.f4((0,_.F6)(64,B));default:return _.k5$(B)}case 0:switch(x){case "string":return _.Xyd(B);case "bigint":return _.f4((0,_.F6)(64,B));default:return _.s0C(B)}default:return _.kz(c,"Unknown format requested type for int64")}},ltB=function(B){B!=
null&&(B=B.JSC$6865_value_||"",B=typeof B==="string"?B:new Uint8Array(B));
return B},EuA=function(B){for(var c=_.ts.apply(1,arguments),x=B[0],P=0;P<B.length-1;P++)x+=String(c[P]),x+=B[P+1];
c=document.implementation.createHTMLDocument("");P=c.createElement("style");c.head.appendChild(P);c=P.sheet;c.insertRule(x,0);if(c.cssRules.length===1&&(x=c.cssRules[0],x instanceof CSSStyleRule))return new _.f6(x.cssText.replace(/</g,"\\3C "))},OU6=function(B,c){if(/-[a-z]/.test(c))return null;
if(_.G5d&&B.dataset){if(_.p$d()&&!(c in B.dataset))return null;B=B.dataset[c];return B===void 0?null:B}return B.getAttribute("data-"+_.bh(c))},QH6=function(){var B=ouz;
_.Gu("yt.ads.biscotti.getId_")||_.rr("yt.ads.biscotti.getId_",B)},FcB=function(B){_.rr("yt.ads.biscotti.lastId_",B)},z1A=function(){var B={};
for(_.ND=new vuS(B.handleError===void 0?_.Eb:B.handleError,B.logEvent===void 0?_.JP:B.logEvent);_.IH.length>0;)switch(B=_.IH.shift(),B.type){case "ERROR":_.ND.logError(B.payload);break;case "EVENT":_.ND.logEvent(B.eventType,B.payload)}},S4y=function(B,c,x){return _.Edo(function(P){return x?P.userIdentifier!==void 0&&!B.includes(P.userIdentifier)&&x.includes(P.publicName):P.userIdentifier!==void 0&&!B.includes(P.userIdentifier)},c)},yKy=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1)return c=_.CU("YtIdbMeta hasAnyMeta other"),_.K(P,_.Edo(function(Y){return Y.userIdentifier!==void 0&&Y.userIdentifier!==c},B),2);
x=P.yieldResult;return P.return(x.length>0)})},MRA=function(B,c){Gwi||(Gwi=_.EE.addLowPriorityJob(function(){var x,P,Y,g,k;
return _.X(function(n){switch(n.nextAddress){case 1:return _.K(n,_.RH(),2);case 2:x=n.yieldResult;if(!x)return n.return();P=!0;_.kM(n,3);return _.K(n,S4y(B,x,c),5);case 5:Y=n.yieldResult;if(!Y.length){P=!1;n.jumpTo(6);break}g=Y[0];return _.K(n,_.MD(g.actualName),7);case 7:return _.K(n,_.fU(g.actualName,x),6);case 6:_.Gw(n,4);break;case 3:k=_.be(n),_.JK(k),P=!1;case 4:_.EE.cancelJob(Gwi),Gwi=0,P&&MRA(B,c),_.Kq(n)}})}))},LcA=function(){var B;
return _.X(function(c){return c.nextAddress==1?_.K(c,_.RH(),2):(B=c.yieldResult)?c.return(yKy(B)):c.return(!1)})},ZUl=function(B){var c=100;
c=c===void 0?500:c;var x,P,Y,g,k,n;return _.X(function(b){return b.nextAddress==1?(x=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[x,(0,_.BA)()-2592E6],Y=[x,(0,_.BA)()],g=IDBKeyRange.bound(P,Y),_.K(b,_.Yiw(B),2)):b.nextAddress!=3?(k=b.yieldResult,n=[],_.K(b,_.Hp(k,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){n.length=0;return _.cA(d.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(q){if(q.getValue()&&n.length<c)return n.push(q.getValue()),
q.delete().then(function(){return q.continue()})})}),3)):b.return(n)})},HUc=function(){var B;
return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.RH(),2);B=c.yieldResult;if(!B||!_.hK()&&!_.T("nwl_init_require_datasync_id_killswitch")||!_.VFq())return c.jumpTo(0);_.wqX=!0;_.tFX.isNwlInitialized=_.wqX;return _.K(c,_.a63().awaitInitialization(),0)})},Pe=function(B,c){_.MFX[B]=!0;
var x=_.x4();x&&x.publish.apply(x,arguments);_.MFX[B]=!1},iUA=function(){if(_.CG7()&&!fts){var B=function(x){x=x.data;
if(x.op==="serializedGelBatch"){var P=_.LUC.get(x.key);P&&(_.HF$(x.serializedBatch,P.client,P.resolve,P.networklessOptions,P.isIsolated,P.useVSSEndpoint,P.dangerousLogToVisitorSession,P.requestsOutstanding),_.LUC.delete(x.key))}},c=_.qv7();
c&&(c.addEventListener("message",B),c.onerror=function(){_.LUC.clear()});
fts=!0}},YL=function(){this.relativeTimeStart_=_.gQ()},AKl=function(B,c){B!=null&&this.append.apply(this,arguments)},u4B=function(){return _.QD("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},DDs=function(B,c,x){x=x===void 0?!1:x;
var P,Y,g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:_.dr("SOCS",B,34128E3,"youtube.com",!0);if(_.j2)return Y=fetch(c,{method:"POST",mode:_.LN(c),credentials:_.Mp(c),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.LN("/upgrade_visitor_cookie?eom=1"),credentials:_.Mp("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.K(b,Promise.all([Y,g]).then(function(d){return d[1]}),5);
fetch(c,{method:"POST",mode:_.LN(c),credentials:_.Mp(c),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.K(b,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.LN("/upgrade_visitor_cookie?eom=1"),credentials:_.Mp("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:P=b.yieldResult;b.jumpTo(3);break;case 5:P=k=b.yieldResult;case 3:if(!P.ok)throw Error("nf");return _.K(b,P.text(),7);case 7:n=b.yieldResult,
!n.includes('"state_switch":true')&&!x||n.includes("skip_reload_for_test")||window.location.reload(),_.Kq(b)}})},rKl=function(B){return _.X(function(c){return c.nextAddress==1?_.K(c,DDs(B.socsCookie,B.savePreferenceUrl,!0),2):c.return()})},R1s=function(B){return _.X(function(c){return c.nextAddress==1?_.K(c,DDs(B.socsCookie,B.savePreferenceUrl),2):c.return()})},BKy=function(B){B=B.xhr.responseText;
if(!_.YI(B,")]}'"))throw new al;B=JSON.parse(B.substr(4));if((B.type||1)>1)throw new al;B=B.id;FcB(B);g6=_.ia(B);e1y(18E5,2);return B},x6F=function(B,c){c=new cjz(c);
FcB("");g6=_.O0n(c);B>0&&e1y(12E4,B-1);throw c;},e1y=function(B,c){_.pU(function(){_.Y4y().then(BKy,function(x){return x6F(c,x)}).thenCatch(_.qw)},B)},ouz=function(){var B=_.sH6();
if(B!==void 0)return _.Im(B);g6||(g6=_.Y4y().then(BKy).thenCatch(function(c){return x6F(2,c)}));
return g6},Prc=function(){var B=document;
return _.z7(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(c){return"on"+c.toLowerCase()in B})},YEr=function(B){B.addEventListener("click",function(c){var x=c.target;
x&&x.getAttribute("href")&&(x=x.getAttribute("href"),_.oW(window,x,"_blank"),c.preventDefault(),c.stopImmediatePropagation())})},a$N=function(B){var c,x,P,Y=(P=(x=((c=B.mainDownloadsListEntity)!=null?c:{})[_.r4I])==null?void 0:x.refresh)!=null?P:"",g;
B=(g=B.refresh)==null?void 0:g[Y];Y=B!=null?B:{};return(Y==null?0:Y.refreshTime)?Number(Y==null?void 0:Y.refreshTime):0},gry=function(B,c){var x=_.tm(B);
return c.every(function(P){var Y;P=P==null?void 0:(Y=P.playbackDataEntity)==null?void 0:Y.key;if(!P)return!1;Y=_.kN(_.gL(P).entityId,"mainVideoEntity");return!!x[Y]})},sxl=function(B){B=_.mk(B.entities);
return _.Q8X(B).length},pAA=function(B,c){if(c){var x;
B=(x=_.X9(B.entities,"downloadQualityPickerEntity",c))!=null?x:void 0}else B=void 0;return B},$66=function(){k6F||(_.H3=_.fYO,k6F=new XAS);
return k6F},nry=function(B){var c=document.getElementsByTagName("ytd-enforcement-message-view-model");
c.length===0||getComputedStyle(c[0]).display==="none"?B(0,"p.h_"):B(1,"p.h_")},bpS=function(){se=0;
var B=[_.mz(!0)];pZ&&_.sp(pZ,"yt-window-resized",B)},K1i=function(){se||(se=_.EE.addLowPriorityJob(bpS,200))},U6y=function(){kL=0;
jxo=_.MdW(document);var B=[jxo];pZ&&_.sp(pZ,"yt-window-scrolled",B)},d6l=function(){kL||(kL=_.EE.addLowPriorityJob(U6y,200))},CrB=function(B){B=B===void 0?null:B;
qEz.push(_.Rx(window,"resize",K1i));qEz.push(_.Rx(window,"scroll",d6l));B&&(pZ=B)},m6F=function(){var B={isWide:_.U4.get("wide","0")==="1"},c=_.CW();
if(c=c.getFlag(165)||c.getFlag(174))B.theme=_.Iu(!0);if(_.gJA()){var x=_.NA()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";B.systemTheme=x}!c&&_.T("parent_tools_enable_app_settings")&&_.fa(window.location.href).theme!==void 0&&(B.theme=_.Iu());if((c=XZ)?!_.wW.equals(c,B):B)c={currentValue:B},hUN&&(c.timeSinceLastSnapshotSecs=Math.round(((0,_.BA)()-hUN)/1E3)),XZ&&(c.previousValue=XZ),_.JP("appSettingsCaptured",c),XZ=B,hUN=(0,_.BA)()},TKF=function(B){_.X(function(c){if(c.nextAddress==1)return _.K(c,
B.delete("yt-appshell-assets"),2);
_.Kq(c)})},Vli=function(B){return _.LU((0,_.kGd)(),B)},wAN=function(){var B;
_.X(function(c){return c.nextAddress==1?_.K(c,$L.getInstance(),2):(B=c.yieldResult)?_.K(c,tl8(B),0):c.jumpTo(0)})},I$F=function(){var B;
_.X(function(c){return c.nextAddress==1?_.K(c,nZ.getInstance(),2):(B=c.yieldResult)?_.K(c,NKz(B),0):c.jumpTo(0)})},Jjz=function(B){TKF(B);
wAN();I$F()},W1c=function(B){var c,x;
return _.X(function(P){if(P.nextAddress==1)return _.K(P,_.J6C(B),2);if(c=P.yieldResult){var Y;a:{if(c.headers&&(Y=c.headers.get("date"))&&(Y=Date.parse(Y),!isNaN(Y))){Y=Math.round((0,_.BA)()-Y);break a}Y=-1}x=Y;if(x>-1)return P.return(x)}return P.return(-1)})},l$i=function(){var B=_.xI.caches,c=_.zu("IS_SHELL_LOAD"),x,P;
_.X(function(Y){if(Y.nextAddress==1)return x=-1,c?_.K(Y,W1c(B),3):(P=_.wj(),x=Math.round((0,_.BA)()-P),Y.jumpTo(2));Y.nextAddress!=2&&(x=Y.yieldResult);x>=0&&x<2147483648&&_.lg({appInstallDataAgeMs:x});_.Kq(Y)})},Erc=function(B){var c=_.ZM(_.xI.location.href),x={};
"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 Y=c.JSC$8077_queryData_.getValues(P);if(Y==null?0:Y.length)x[P]=Y});
return _.Y2(B,new Map(Object.entries(x)))},OpN=function(B){B=B.match(/(.*)::.*::.*/);
if(B!==null)return B[1]},orl=function(B){if(_.iQI()){var c=Object.keys(window.localStorage);
c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=OpN(x);P===void 0||B.includes(P)||self.localStorage.removeItem(x)}}},QxS=function(){if(!_.iQI())return!1;
var B=_.CU(),c=Object.keys(window.localStorage);c=_.p(c);for(var x=c.next();!x.done;x=c.next())if(x=OpN(x.value),x!==void 0&&x!==B)return!0;return!1},F1F=function(B){return _.A_("NotificationsDisabled",B)},vro=function(){return Notification.permission!="granted"?Promise.resolve():_.$8z().then(function(B){return B?B.pushManager.getSubscription().then(function(c){if(c)return Promise.resolve();
c={userVisibleOnly:!0,applicationServerKey:_.kF("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return B.pushManager.subscribe(c).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},zU6=function(B){return _.$8z().then(function(c){if(!c||!c.active)return Promise.reject(new _.mc("serviceworker.postMessage",B,c));
try{return c.active.postMessage(B),Promise.resolve()}catch(x){return Promise.reject(x)}})},SEF=function(){zU6({type:"notifications_register",
data:_.v5("ID_TOKEN")})},yjr=function(){if(!_.zu("LOGGED_IN"))return Promise.resolve(!1);
var B=_.aH("service_worker_push_force_notification_prompt_tag");return B?_.BE("PromptTags").then(function(c){if(!c)return!0;var x=[];try{x=JSON.parse(c)}catch(P){return!1}return x&&x.indexOf(B)==-1}):Promise.resolve(!1)},G6z=function(){var B=_.Yu("service_worker_push_prompt_delay_microseconds");
return B?_.BE("PromptTime").then(function(c){return Promise.resolve(Date.now()-B>(c||0))}):Promise.resolve(!0)},Ml6=function(){var B=_.Yu("service_worker_push_logged_out_prompt_watches");
return B==-1?Promise.resolve(!1):_.BE("WatchCount").then(function(c){return c>=B})},L1B=function(){var B=_.cv(document,"yt-push-prompt-modal-bg");
B&&_.qH(B)},ZpA=function(){return _.Yu("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.BE("PromptCount").then(function(B){B||(B=0);
return Promise.resolve(B<_.Yu("service_worker_push_prompt_cap"))})},Hpc=function(B){return _.zu("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.zu("LOGGED_IN")&&(B===void 0?0:B)?yjr().then(function(c){if(c)return!0;
c=[ZpA(),G6z()];_.zu("LOGGED_IN")||c.push(Ml6());return Promise.all(c).then(function(x){return x.every(function(P){return P})})}):Promise.resolve(!1)},f$l=function(){_.BE("PromptCount").then(function(B){return _.A_("PromptCount",B+1)}).then(function(){return _.A_("PromptTime",Date.now())}).then(function(){var B=_.aH("service_worker_push_force_notification_prompt_tag");
if(B)return _.BE("PromptTags").then(function(c){var x=[];if(c)try{x=JSON.parse(c)}catch(P){return!1}x||(x=[]);x.push(B);return _.A_("PromptTags",JSON.stringify(x))})})},AjS=function(){ipl||L1B()},u1l=function(B){B.style.zIndex=2147483648;
B.style.pointerEvents="auto";B.style.backgroundColor="rgba(0, 0, 0, 0.6)";B.style.width="100%";B.style.height="100vh";B.style.position="absolute";B.style.top="0";B.style.left="0";B.style.border="none"},D6z=function(){var B=_.cv(document,"yt-push-prompt-modal-bg");
ipl=_.T("service_worker_push_prompt_modal_ignore_click");B?u1l(B):(B=_.Nw("div",{id:"yt-push-prompt-modal-bg"}),u1l(B),document.body.appendChild(B),_.z6l(document,"click",AjS))},rjr=function(){var B=arguments;
_.T("service_worker_push_prompt_modal_enable")&&D6z();return Notification.requestPermission().then(function(c){L1B();var x=document.getElementById("ticker");x&&(x.className=x.classList.remove("show"));if(c=="granted")return vro().then(function(){F1F(!1);SEF();return Promise.resolve(!0)});
c=="denied"&&SEF();return Promise.resolve(!1)}).catch(function(){L1B();
return Promise.reject.apply(Promise,_.wq(B))})},RUc=function(B){B=B===void 0?!1:B;
var c=_.$3X().client;if(c&&c.browserVersion){var x=c.browserVersion,P=c.browserName=="CHROME"&&_.jd(x,"50.0.0")<0;c=c.browserName=="OPERA"&&_.jd(x,"42.0.0")<0;if(P||c)return Promise.resolve()}return _.KXs().then(function(Y){if(!Y)return Promise.resolve();Y=vro().then(function(){return zU6({type:"notifications_check_registration",data:_.v5("ID_TOKEN")})});
return Notification.permission!="default"?Y.catch(function(){}):Y.then(function(){return Hpc(B)}).then(function(g){if(g)return f$l(),rjr().then(function(){})}).catch(function(){})})},eUi=function(B){return _.nMF(B)?RUc():Promise.resolve()},BUl=function(B){var c=B.installing||B.waiting;
return B.active||!c?Promise.resolve(B):new Promise(function(x){var P=function(Y){Y=Y.target;if(Y.state==="activated"||Y.state==="redundant")c.removeEventListener("statechange",P),x(B)};
c.addEventListener("statechange",P)})},cPB=function(){var B=new _.Iu7("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.jX(B,{mainAppWeb:_.Z3()});var c=_.No0;_.T("service_worker_forward_exp_params")&&(c=Erc(c));try{var x=_.bjC(c).catch(function(){_.UB(B,"FAILURE");return new Promise(function(){})});
_.T("service_worker_push_enabled")&&x.then(function(P){_.UB(B,"SUCCESS");return P}).then(BUl).then(eUi)}catch(P){if(_.UB(B,"FAILURE"),P.name!=="SecurityError")throw P;
}},xac=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&cPB()},Pbi=function(B,c){var x={};
c&&(x.serializedYpcFamilyCreateLoggingParams=c);_.JP(B,x);_.Wo()},Ybz=function(B,c){var x={};
x.serializedYpcRefundFlowLoggingParams=c;B&&(x.eventType=B);_.JP("ypcRefundFlowEvent",x);_.Wo()},a6F=function(B){B&&_.jeX("transactionFlowSucceeded",B)},g4r=function(B){B&&_.OO("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},sGc=function(B){var c,x,P,Y,g,k,n;
_.X(function(b){if(b.nextAddress==1)return _.K(b,_.RGd(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);c=[];return _.K(b,_.pw.keys(),3)}x=b.yieldResult;P=_.p(x);for(Y=P.next();!Y.done;Y=P.next())g=Y.value,k=_.D5d(g),n=k.datasyncId,!n||B.includes(n)||c.push(_.pw.delete(g));return b.return(Promise.all(c).then(function(d){return d.some(function(q){return q})}))})},poN=function(){var B,c,x,P,Y,g,k;
return _.X(function(n){if(n.nextAddress==1)return _.K(n,_.RGd(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);B=_.CU("cache contains other");return _.K(n,_.pw.keys(),3)}c=n.yieldResult;x=_.p(c);for(P=x.next();!P.done;P=x.next())if(Y=P.value,g=_.D5d(Y),(k=g.datasyncId)&&k!==B)return n.return(!0);return n.return(!1)})},krs=function(){var B=_.cp().resolve(_.Bp(_.hN4));
return B?B.getCurrentTime():0},XoB=function(){var B,c,x,P,Y,g,k,n,b,d,q,C,h,V;
return _.X(function(N){switch(N.nextAddress){case 1:B={},c=_.AtQ(),x=_.p(Object.entries(c)),P=x.next();case 4:if(P.done){N.jumpTo(3);break}Y=P.value;g=_.p(Y);k=g.next().value;n=g.next().value;b=k;d=n;if(!d){N.jumpTo(5);break}return _.K(N,d(),8);case 8:B[b]=N.yieldResult;case 5:P=x.next();N.jumpTo(4);break;case 2:q=_.p(void 0),C=q.next();case 9:if(C.done){N.jumpTo(3);break}h=C.value;V=c[h];if(!V){N.jumpTo(10);break}return _.K(N,V(),13);case 13:B[h]=N.yieldResult;case 10:C=q.next();N.jumpTo(9);break;
case 3:return N.return(B)}})},$al=function(){var B;
_.X(function(c){if(c.nextAddress==1)return _.K(c,XoB(),2);B=c.yieldResult;return _.K(c,navigator.clipboard.writeText(JSON.stringify(B,null,2)),0)})},n4A=function(B,c){return _.X9(B.entities,"superThanksSelectedTierEntity",c)},bE8=function(B){var c;
return(c=B.sharedUi)==null?void 0:c.currentPageType},KD8=function(B,c){return{popup:{searchSuggestionReportDialog:{searchQuery:B,
title:_.Up("SBOX_INAPPROPRIATE_TITLE"),suggestions:c,categoryLabel:_.Up("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Up("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Up("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Up("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Up("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Up("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Up("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Up("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Up("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Up("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},jGs=function(B){var c,x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f;
return _.X(function(Z){switch(Z.nextAddress){case 1:return _.K(Z,_.bG(),2);case 2:return(c=Z.yieldResult)?_.K(Z,_.ILY(c),3):Z.return();case 3:x=Z.yieldResult;if(!x)return Z.return();Y=((P=x.offlineVideos)==null?void 0:P.length)||0;k=((g=x.offlinePlaylists)==null?void 0:g.length)||0;if(Y===0&&k===0)return Z.return();n=0;if(x.offlineVideos)for(b=_.p(x.offlineVideos),d=b.next();!d.done;d=b.next())q=d.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===q.videoState&&(n+=1);B.offline_videos_count=Y.toString();_.T("kevlar_log_offline_current_network_type_ks")||
(B.offline_current_network_type=(C=_.aaX())!=null?C:"CONN_INVALID");_.T("kevlar_log_updated_time_for_smart_downloads")&&(h=_.uG().getState().entities,V=_.Jm(h),N=a$N(h),B.offline_smart_downloads_last_sync_time_ms=V.toString(),B.offline_smart_downloads_next_sync_time_ms=N.toString());B.offline_videos_playable=n.toString();B.offline_playlists_count=k.toString();if(!_.T("woffle_used_state_report")){Z.jumpTo(4);break}x.offlineVideos&&(l=x.offlineVideos.reduce(function(u,e){e.downloadedBytes&&(u+=Number(e.downloadedBytes));
return u},0).toString())&&(B.offline_used_disk_space_bytes=l);
if(!((E=navigator)==null?0:(S=E.storage)==null?0:S.estimate)){Z.jumpTo(4);break}return _.K(Z,navigator.storage.estimate(),6);case 6:M=Z.yieldResult,B.offline_free_disk_space_bytes=(((f=M)==null?void 0:f.quota)||0).toString();case 4:B.offline_client_state=JSON.stringify(x),_.Kq(Z)}})},Ua6=function(B){B=B.match(/(.*)::.*::.*/);
if(B!==null)return B[1]},daA=function(B){if(_.OIw()){var c=Object.keys(window.sessionStorage);
c=_.p(c);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=Ua6(x);P===void 0||B.includes(P)||self.sessionStorage.removeItem(x)}}},qby=function(){if(!_.OIw())return!1;
var B=_.CU(),c=Object.keys(window.sessionStorage);c=_.p(c);for(var x=c.next();!x.done;x=c.next())if(x=Ua6(x.value),x!==void 0&&x!==B)return!0;return!1},b$=function(B,c,x){(_.T("desktop_keyboard_shortcut_usage_log")||x&&_.T("web_shorts_keyboard_shortcut_usage_log"))&&(c?_.eG.get(B):_.RL.get(B))&&(B=c?_.ce.get(B):_.Be.get(B))&&_.fW(_.Wf(),B)},CbA=function(){var B,c;
return typeof CSS!=="undefined"&&((c=(B=CSS).supports)==null?void 0:c.call(B,"selector(:has(*))"))},hq6=function(B){return B.visibility!=="hidden"&&B.display!=="none"},TUi=function(B){if(CbA()||B.tagName!=="DETAILS"?!B.matches(mai):B.querySelector("summary")!==null)return-1;
B=B.getAttribute("tabindex")||"0";return Number(B)},V3r=function(B){return B.some(function(c){return TUi(c)>0})},t3y=function(B){if(B.textContent)return!0;
if(B instanceof HTMLInputElement){if(!B.labels)return!1;B=_.p(B.labels);for(var c=B.next();!c.done;c=B.next())if(c.value.textContent)return!0}return!1},wol=function(B){return B.sort(function(c,x){return TUi(x)-TUi(c)})},NUi=function(B){B=Array.from(B.querySelectorAll(mai)).filter(function(c){return(hq6(c.style)?hq6(window.getComputedStyle(c)):!1)&&t3y(c)});
return V3r(B)?wol(B):B},I6s=function(B){B=NUi(B);
B.length>0&&B[0].focus()},JPS=function(B,c){c.stack&&(B.stack+="\n"+c.stack);
return B},E4B=function(B){var c=KZ(B,"Content-Type");
if(!c)return null;c=c.toLowerCase();if(c.startsWith("application/json"))return c.startsWith("application/json+protobuf")?new WDy:new _.sc;if(c.startsWith("application/x-protobuf")){B=KZ(B,"Content-Transfer-Encoding");if(!B)return new j0;if(B.toLowerCase()=="base64")return new l6y}return null},Gr8=function(B,c,x,P){var Y=new OEl(function(n,b){return o4o.has(b)?n.sentinel==="gal"&&n.event!==void 0:!1},function(n){n.event?(n=QGs(n.event),n=!n||FDB(P,n)?!0:_.To(B.lastEvent,Ue,2,d6)?!_.To(n,qL,1,d6)&&
!_.To(n,Ue,2,d6):!_.To(n,qL,1,d6)&&!_.To(n,Ue,3,d6)):n=!0;
return n});
x=_.Y2(B.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",v4z(x)]]));if(B.nestedOrigins!==void 0)for(var g=_.p(B.nestedOrigins),k=g.next();!k.done;k=g.next())x=_.Y2(x,new Map([["origin",k.value]]));return zqF(Y,x,c).then(function(n){n=Sb8(n.event);if(_.To(n,qL,1,d6)){var b,d=(b=_.vG(n,qL,1,d6))==null?void 0:_.og(b,2);d&&P.JSC$17198_logErrorEvent(yPr(d));b=_.vG(n,qL,1,d6);_.og(b,2)===4?(n=_.vG(n,qL,1,d6),n={statusCode:11,statusMessage:_.OZ(n,
3)}):(n=_.vG(n,qL,1,d6),n={statusCode:12,statusMessage:_.OZ(n,3)});return n}_.To(n,Ue,3,d6)?(n=_.vG(n,Ue,3,d6),n={statusCode:1,consentLanguageKeys:_.OZ(n,2)}):n={statusCode:1};return n}).catch(function(n){return n.errorCode!==void 0?{statusCode:n.errorCode,
statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},HEr=function(B){var c={};
if(B===void 0||B===null)return c;B.getToken()!==void 0&&M3z(B.getToken())&&M3z(B.getToken()).length>0&&(c.scopes=new Set(M3z(B.getToken())));B.getToken()!==void 0&&LDs(B.getToken())&&LDs(B.getToken()).length>0&&(c.capabilities=new Set(LDs(B.getToken())));_.OZ(B,3)!==void 0&&(c.consistencyKey=_.OZ(B,3));B.getName()!==void 0&&B.getName()!==""&&(c.linkName=B.getName());_.mF(B,ZE8,4)&&(B=_.PA(B,ZE8,4),B=Object.assign({},_.OZ(B,1)&&{userId:_.OZ(B,1)},_.OZ(B,2)&&{displayName:_.OZ(B,2)},_.OZ(B,3)&&{email:_.OZ(B,
3)},_.OZ(B,5)&&{username:_.OZ(B,5)},_.OZ(B,4)&&{profilePicture:_.OZ(B,4)}),c.profile=B);return c},f66=function(B,c){var x=B.flowParams;
return{serviceId:x.serviceId,sessionId:x.sessionId,currentFlow:B.currentFlow,googleScopesString:c,linkingSessionSerialized:B.session.serialize(),consentLanguageKeys:x.consentLanguageKeys,callerState:B.callerState,dynamicUrlParameters:x.dynamicUrlParameters,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp}},rP6=function(B){var c=B.googleScopes!==void 0?Array.from(B.googleScopes).join(","):"";
iEy(f66(B,c));c=APz(B);return c===null?Promise.resolve(uUN):c.start().then(function(x){var P,Y=(P=x.link)==null?void 0:P.consistencyKey;return x.statusCode===1&&B.googleScopes!==void 0&&B.googleScopes.size>0&&Y!==void 0?(P=B.flowParams,Dal(P.serviceId,P.sessionId,B.googleScopes,Y,P.galService,B.config,x)):x})},Rqz=function(B){var c=APz(B);
return c===null?Promise.resolve(CZ({statusCode:7,statusMessage:"Failed to create flow object"},B.callerState)):c.complete().then(function(x){var P,Y=(P=x.link)==null?void 0:P.consistencyKey;return x.statusCode===1&&B.googleScopes!==void 0&&B.googleScopes.size>0&&Y!==void 0?(P=B.flowParams,Dal(P.serviceId,P.sessionId,B.googleScopes,Y,P.galService,B.config,x)):CZ(x,B.callerState)},function(x){return CZ({statusCode:12,
statusMessage:"Failed to complete the flow: "+x.message},B.callerState)})},Dal=function(B,c,x,P,Y,g,k){return eq8(Y,{serviceId:B,
sessionId:c,googleScopes:x,consistencyKey:P}).then(function(){return k},function(n){return Y.deleteLink({serviceId:B,
sessionId:c,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+n.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})},APz=function(B){switch(B.currentFlow){case 1:var c=B.flowParams;
B=_.PA(B.session,BYN,1);return hH.createOAuthFlow(c,B);case 2:case 3:return c=B.flowParams,B=_.PA(B.session,cJs,6),mw.createStreamlinedFlow(c,B);default:return null}},xMi=function(B,c){B===2&&(B=3);
var x=0;Th.indexOf(B)!==-1&&(x=Th.indexOf(B)+1);for(B=x;B<Th.length;B++)if(c.has(Th[B]))return Th[B]},aFB=function(B){var c=B.serviceId;
var x=B.sessionId;var P=B.config;var Y=B.galService;var g=B.capabilities;var k=B.scopes;var n=B.loginHint;var b=B.callerState;var d=B.consentLanguageKeys;var q=B.linkName;var C=B.dynamicUrlParameters;var h=B.partnerConfigMinReadTimestamp;B=P.dataUsageNoticeConfig?P.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Y.startLinkingSession({serviceId:c,sessionId:x,capabilities:g,scopes:k,loginHint:n,callerState:b,supportedFlows:P4S(P.supportedFlows),completionUrl:P.completionUrl,accountLinkingEntryPoint:P.accountLinkingEntryPoint,
consentLanguageKeys:d,dataUsageNoticeConfig:B,linkName:q,dynamicUrlParameters:C,partnerConfigMinReadTimestamp:h}).then(function(V){return new Yko(c,x,P,Y,V,void 0,b,d,C,h)})},XX6=function(B,c,x){a:{var P=new gWA;
if(P.storage!==null)try{var Y=P.storage.get("SAVED_SESSION");if(Y===void 0){var g=null;break a}if(Y.serviceId===B){g=Y;break a}}catch(k){}g=null}if(g===null)return Promise.resolve({statusCode:2});s1l(B);P=pXl(g.linkingSessionSerialized);return kKz(new Yko(B,g.sessionId,c,x,P,g.googleScopesString!==""&&g.googleScopesString!==void 0?new Set(g.googleScopesString.split(",")):void 0,g.callerState,g.consentLanguageKeys,g.dynamicUrlParameters,g.partnerConfigMinReadTimestamp),g.currentFlow,g.consentLanguageKeys)},
iEy=function(B){var c=new gWA;
c.storage!==null&&c.storage.set("SAVED_SESSION",B)},s1l=function(B){var c=new gWA;
if(c.storage!==null){var x=c.storage.get("SAVED_SESSION");x!==void 0&&x.serviceId===B&&c.storage.remove("SAVED_SESSION")}},P4S=function(B){var c=new Set;
B=_.p(B);for(var x=B.next();!x.done;x=B.next())x=x.value,x!==1&&$MB.has(x)&&c.add($MB.get(x));return c},CZ=function(B,c){c!==void 0&&(B.callerState=c);
return B},nWz=function(B){switch(B){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},j1c=function(B){return new bls(B,new Key(B))},qkl=function(B,c){c=c===void 0?!1:c;
var x=document.createElement("div");B&&(x.style.transform="scaleX(-1)");x.style.backgroundColor=c?"rgba(138,180,248,.24)":"#e8f0fe";x.style.height="4px";x.style.overflow="hidden";x.style.position="absolute";x.style.top="0";x.style.width="100%";x.style.zIndex="1500";x.setAttribute("aria-label","Loading");x.setAttribute("aria-live","polite");B=document.createElement("style");B.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  }";
x.appendChild(B);B=UMF();B.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";B.style.left="-145.166611%";var P=dMA(c);P.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";B.appendChild(P);x.appendChild(B);B=UMF();B.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";B.style.left="-54.888891%";c=dMA(c);c.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
B.appendChild(c);x.appendChild(B);return x},UMF=function(){var B=document.createElement("div");
B.style.height="100%";B.style.position="absolute";B.style.transformOrigin="top left";B.style.width="100%";return B},dMA=function(B){var c=document.createElement("span");
c.style.borderTop=B?"4px solid #669df6":"4px solid #4285f4";c.style.display="inline-block";c.style.position="absolute";c.style.width="100%";return c},C4F=function(B){return B==null?void 0:_.AnW(B).valueOf()},VOl=function(B){var c=document.body,x=!1,P=function(){x||(x=!0,hhB(Y,g),setTimeout(function(){c.removeChild(g);
c.removeChild(Y)},150))},Y=mMc(B,getComputedStyle(c).direction==="rtl",P),g=TYc(P);
hhB(Y,g);c.appendChild(g);c.appendChild(Y);window.requestAnimationFrame(function(){g.style.opacity="1";Y.style.opacity="1";Y.style.transform="translate(-50%, -50%) scale(1)";Y.children[0].focus()})},mMc=function(B,c,x){var P=document.createElement("div");
P.style.position="fixed";P.style.alignItems="center";P.style.backgroundColor=B?"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(g){g.key==="Escape"&&x()});
c=tOs(B,c,x);P.appendChild(wXS(c));P.appendChild(c);var Y=document.createElement("img");Y.src=B?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";Y.style.height="72px";Y.style.width="72px";Y.style.color="#9aa0a6";Y.setAttribute("alt","");P.appendChild(Y);Y=document.createElement("h1");Y.textContent="Something went wrong.  Try again.";
Y.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Y.style.lineHeight="24px";Y.style.fontSize="16px";Y.style.textAlign="center";Y.style.letterSpacing="0.1px";Y.style.color=B?"rgb(232,234,237)":"#3c4043";P.appendChild(Y);P.appendChild(wXS(c));return P},tOs=function(B,c,x){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";c?P.style.right="0":P.style.left="0";P.addEventListener("focus",function(){P.style.backgroundColor=B?"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=B?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
P.addEventListener("mouseleave",function(){P.style.backgroundColor="transparent"});
P.addEventListener("click",x);P.addEventListener("keydown",function(Y){Y.key!=="Enter"&&Y.key!=="Space"||x()});
c=document.createElement("img");c.src=B?"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";c.style.display="block";c.style.height="24px";c.style.width="24px";c.setAttribute("alt","");P.appendChild(c);return P},wXS=function(B){var c=document.createElement("div");
c.setAttribute("tabindex","0");c.setAttribute("aria-hidden","true");c.addEventListener("focus",function(){return void B.focus()});
return c},TYc=function(B){var c=document.createElement("div");
c.style.backgroundColor="rgba(32,33,36,0.6)";c.style.bottom="0";c.style.left="0";c.style.position="fixed";c.style.right="0";c.style.top="0";c.style.transition=" opacity 150 ms linear";c.style.zIndex="2001";c.addEventListener("click",B);return c},hhB=function(B,c){c.style.opacity="0";
B.style.opacity="0";B.style.transform="translate(-50%, -50%) scale(0.8)"},NYz=function(B,c){B.sandbox&&B.sandbox.add&&(B.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),B.sandbox.add("allow-downloads"));
B.src=c},VK=function(B){IFF.call(this,B)},tH=function(B,c){c=c===void 0?!1:c;
this.parsedImageUrl_=null;B instanceof JJ8||(We8==void 0&&(We8=new lFr),B=We8.parse(B.toString(),c));B=this.parsedImageUrl_=B;B.JSC$17410_parsedOptions_==void 0&&((c=B.getOptions())||(c=""),B.JSC$17410_parsedOptions_=(new EWs).parse(c));IFF.call(this,B.JSC$17410_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;B=this.parsedImageUrl_;c=B.uri_.JSC$8077_port_;this.JSC$17412_domain_=B.uri_.JSC$8077_domain_+(c?":"+c:"");this.JSC$17412_query_=this.parsedImageUrl_.uri_.JSC$8077_queryData_.toString()},
OlS=function(B){this.mode=4;
this.data=B;this.parsedData=[];B=0;for(var c=this.data.length;B<c;B++){var x=[],P=this.data.charCodeAt(B);P>65536?(x[0]=240|(P&1835008)>>>18,x[1]=128|(P&258048)>>>12,x[2]=128|(P&4032)>>>6,x[3]=128|P&63):P>2048?(x[0]=224|(P&61440)>>>12,x[1]=128|(P&4032)>>>6,x[2]=128|P&63):P>128?(x[0]=192|(P&1984)>>>6,x[1]=128|P&63):x[0]=P;this.parsedData.push(x)}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))},oWz=function(B){this.typeNumber=0;
this.errorCorrectLevel=B===void 0?2:B;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},w6=function(B,c){if(B.length==void 0)throw Error("tk`"+B.length+"`"+c);
for(var x=0;x<B.length&&B[x]==0;)x++;this.num=Array(B.length-x+c);for(c=0;c<B.length-x;c++)this.num[c]=B[c+x]},Q1F=function(B,c){this.totalCount=B;
this.dataCount=c},Fez=function(){this.buffer=[];
this.length=0},vW8=function(){var B=!1;
if(_.nId()){B=_.dC();var c="";_.j7w()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(B=c.exec(B))?B[1]:"0.0"):_.Qw()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(B=c.exec(B))&&B[1].replace(/_/g,".")):_.KqC()?(c=/Mac OS X ([0-9_.]+)/,c=(B=c.exec(B))?B[1].replace(/_/g,"."):"10"):_.nx(_.dC(),"KaiOS")?(c=/(?:KaiOS)\/(\S+)/i,c=(B=c.exec(B))&&B[1]):_.nId()?(c=/Android\s+([^\);]+)(\)|;)/,c=(B=c.exec(B))&&B[1]):_.UYO()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(B=c.exec(B))&&B[1]);B=c||""}return B},Lei=function(B,
c){this.JSC$17435__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(c)for(var x in c)this.JSC$17435__htOption[x]=c[x];this.JSC$17435__htOption.useSVG&&(zhc=SkA);this.JSC$17435__android=vW8();this.JSC$17435__el=B;this._oQRCode=null;this._oDrawing=new zhc(this.JSC$17435__el,this.JSC$17435__htOption);this.JSC$17435__htOption.text&&(B=this.JSC$17435__htOption.text,this._oQRCode=new oWz(this.JSC$17435__htOption.correctLevel),yJo(this._oQRCode,B),c=this._oQRCode,GKA(c,!1,MON(c)),this.JSC$17435__el.title=
B,this._oDrawing.draw(this._oQRCode),this.makeImage())},Zlc=function(B,c,x,P,Y){B.save();
var g=new Path2D;g.roundRect(c,x,P*7,P*7,P*2);g.roundRect(c+P,x+P,P*5,P*5,P*1.3);g.roundRect(c+2*P,x+2*P,P*3,P*3,P);B.clip(g,"evenodd");B.fillStyle=Y;B.fillRect(0,0,B.canvas.width,B.canvas.height);B.restore()},NL=function(B,c){if(typeof B!=="function")throw Error("wk");
return _.xI.setTimeout(function(){B()},c)},Il=function(){},fFN=function(B,c,x,P,Y){(new Il).debug("TestLoadImageWithRetries: "+Y);
if(P==0)x(!1);else{var g=Y||0;P--;Hly(B,c,function(k){k?x(!0):_.xI.setTimeout(function(){fFN(B,c,x,P,g)},g)})}},Hly=function(B,c,x){var P=new Il;
P.debug("TestLoadImage: loading "+B);var Y=new Image;Y.onload=function(){try{P.debug("TestLoadImage: loaded"),ilc(Y),x(!0)}catch(g){}};
Y.onerror=function(){try{P.debug("TestLoadImage: error"),ilc(Y),x(!1)}catch(g){}};
Y.onabort=function(){try{P.debug("TestLoadImage: abort"),ilc(Y),x(!1)}catch(g){}};
Y.ontimeout=function(){try{P.debug("TestLoadImage: timeout"),ilc(Y),x(!1)}catch(g){}};
_.xI.setTimeout(function(){if(Y.ontimeout)Y.ontimeout()},c);
Y.src=B},ilc=function(B){B.onload=null;
B.onerror=null;B.onabort=null;B.ontimeout=null},AJc=function(){this.front_=[];
this.back_=[]},upz=function(B,c){_.tG.call(this);
this.delay_=new _.NH(this.JSC$17561_onTick_,0,this);_.bW(this,this.delay_);this.JSC$17559_interval_=5E3;this.nextTickTime_=0;if(typeof B==="function")c&&(B=(0,_.wf)(B,c));else if(B&&typeof B.handleEvent==="function")B=(0,_.wf)(B.handleEvent,B);else throw Error("Da");this.JSC$17561_listener_=B},JH=function(B,c,x,P,Y,g,k,n,b,d,q,C,h,V){x=x===void 0?!1:x;
P=P===void 0?function(){return""}:P;
Y=Y===void 0?!1:Y;g=g===void 0?!1:g;k=k===void 0?!1:k;n=n===void 0?function(){return _.$C({})}:n;
b=b===void 0?!1:b;q=q===void 0?!1:q;C=C===void 0?!1:C;h=h===void 0?!1:h;V=V===void 0?!1:V;this.JSC$17562_pathPrefix_=B;this.defaultQueryParams_=c;this.pubsub_=new _.KU;this.reconnectTimer_=new upz(this.safeReconnect_,this);this.JSC$17562_channel_=null;this.JSC$17562_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17562_pendingMessages_=[];this.enableAsyncTest_=x;this.JSC$17562_getXsrfToken_=P;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
n;this.getAuthorizationHeaderSync_=d;this.enableCachedUpdateAuthorizationHeader_=k;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.$C();this.enableLoungeTokenRefresh_=Y;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=b;this.disableMdxAuthForNonPlaybackMessages_=q;this.disableMdxAuthForAdMessages_=C;this.enableMdxAuthForConnectionOnly_=h;this.disableMdxAuthForShortsMessages_=V;this.JSC$17562_channelOpenedCounter=new DMl;this.JSC$17562_channelClosedCounter=new rJB;this.channelMessageSentCounter=
new RhS;this.JSC$17562_channelMessageReceivedCounter=new ehN;this.JSC$17562_channelErrorCounter=new Bxi;this.pendingMapsOnClosedCounter=new cg6;this.undeliveredMapsOnClosedCounter=new xpF},We=function(B){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;B=B||document.location.href;var c=Number(_.uk(B)[4]||null)||"";c&&(this.port=":"+c);this.domain=_.Dg(B)||"";B=_.dC();B.search("MSIE")>=0&&_.jd(B.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},l$=function(B){B=B||{};
this.name=B.name||"";this.id=B.id||B.screenId||"";this.token=B.token||B.loungeToken||"";this.uuid=B.uuid||B.dialId||"";this.idType=B.screenIdType||"normal"},Phr=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(B){var c=Math.random()*16|0;
return(B=="x"?c:c&3|8).toString(16)})},YnS=function(B){return _.I3(B,function(c){return{key:c.id,
name:c.name}})},aaz=function(B,c){return _.z7(B,function(x){return x||c?!x!=!c?!1:x.id==c.id:!0})},Oe=function(B,c){return _.z7(B,function(x){return Ee(x,c)})},Xfo=function(){var B=gdA(),c=ssy();
if(pfy()){var x=B,P=_.mYl(x,c);P<0&&_.hQX(x,-(P+1),0,c)}B=kkF(B);if(B.length==0)try{_.cgO("remote_sid")}catch(Y){}else try{_.dr("remote_sid",B.join(","),-1)}catch(Y){}},gdA=function(){var B=_.$g("yt-remote-connected-devices")||[];
B.sort(_.a0);return B},kkF=function(B){if(B.length==0)return[];
var c=B[0].indexOf("#"),x=c==-1?B[0]:B[0].substring(0,c);return _.I3(B,function(P,Y){return Y==0?P:P.substring(x.length)})},$pz=function(B){_.Xj("yt-remote-connected-devices",B,86400)},ssy=function(){if(ndS)return ndS;
var B=_.$g("yt-remote-device-id");B||(B=Phr(),_.Xj("yt-remote-device-id",B,31536E3));for(var c=gdA(),x=1,P=B;_.Lx(c,P);)x++,P=B+"#"+x;return ndS=P},bNi=function(){return _.$g("yt-remote-session-browser-channel")},pfy=function(){return _.$g("yt-remote-session-screen-id")},Ups=function(B){B.length>5&&(B=B.slice(B.length-5));
var c=_.I3(K4c(),function(P){return P.loungeToken}),x=_.I3(B,function(P){return P.loungeToken});
_.ZQx(x,function(P){return!_.Lx(c,P)})&&jss();
_.Xj("yt-remote-local-screens",B,31536E3)},K4c=function(){return _.$g("yt-remote-local-screens")||[]},jss=function(){_.Xj("yt-remote-lounge-token-expiration",!0,86400)},ol=function(B){B||(_.ny("yt-remote-session-screen-id"),_.ny("yt-remote-session-video-id"));
Xfo();B=gdA();_.Ao(B,ssy());$pz(B)},qnc=function(){dpr();
return QK?!!QK.get("yt-remote-use-staging-server"):!1},dpr=function(){if(!QK){var B=_.Xfq();
B&&(QK=new _.Tw(B))}},TxA=function(B,c,x,P,Y){x=x===void 0?function(){return""}:x;
var g=function(){return new JH(FZ(B,"/bc"),c,!1,x,P)};
return _.T("enable_mdx_web_channel_desktop")?new Ch8(function(){return new hkz(FZ(B,"/wc"),c,x)}):new mpr(g,Y)},Nxz=function(){var B=VWz;
tWF();ve.push(B);wfz()},zh=function(B,c){tWF();
var x=Iaz(B,String(c));ve.length==0?JgF(x):(wfz(),_.Zg(ve,function(P){P(x)}))},S0=function(B){zh("CP",B)},tWF=function(){ve||(ve=_.Gu("yt.mdx.remote.debug.handlers_")||[],_.rr("yt.mdx.remote.debug.handlers_",ve))},JgF=function(B){var c=(yK+1)%50;
yK=c;W4i[c]=B;lao||(lao=c==49)},wfz=function(){var B=ve;
if(W4i[0]){var c=lao?yK:-1,x={};do x={record$jscomp$13:void 0},c=(c+1)%50,x.record$jscomp$13=W4i[c],_.Zg(B,function(P){return function(Y){Y(P.record$jscomp$13)}}(x));
while(c!=yK);W4i=Array(50);yK=-1;lao=!1}},Iaz=function(B,c){var x=(Date.now()-Edc)/1E3;
x.toFixed&&(x=x.toFixed(3));var P=[];P.push("[",x+"s","] ");P.push("[","yt.mdx.remote","] ");P.push(B+": "+c,"\n");return P.join("")},Gh=function(B){_.rs.call(this);
this.JSC$17586_logName_=B;this.screens=[]},LZ=function(B){Gh.call(this,"LocalScreenService");
this.JSC$17593_http_=B;this.loungeTokenRefreshTimer_=NaN;ML(this);this.info("Initializing with "+ONi(this.screens))},ZX=function(B,c){c=c===void 0?!1:c;
Gh.call(this,"ScreenService");this.JSC$17599_http_=B;this.disableAutomaticScreenCache_=c;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};ods(this)},He=function(B,c,x){_.rs.call(this);
this.JSC$17603_logName_=x;this.JSC$17603_screenService_=B;this.receiver_=c;this.screen_=null},uTc=function(B,c,x){x.disableCastApi?fZ("Cannot initialize because disabled by Mdx config."):Qso()?F4B(B,x)&&(vdB(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?zki(c):(window.__onGCastApiAvailable=function(P,Y){P?zki(c):(i$("Failed to load cast API: "+Y),Snr(!1),vdB(!1),_.ny("yt-remote-cast-available"),_.ny("yt-remote-cast-receiver"),ygF(),c(!1))},x.loadCastApiSetupScript?_.vf("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?GkN()>=60&&MWF():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?L4s():GkN()>=89?ZNi():(HNs(),fac(iNz.map(Agy))))):fZ("Cannot initialize because not running Chrome")},ygF=function(){fZ("dispose");
var B=AH();B&&B.dispose();_.rr("yt.mdx.remote.cloudview.instance_",null);DpB(!1);_.LzY(rgi);rgi.length=0},Rks=function(){return!!_.$g("yt-remote-cast-installed")},ekA=function(){var B=_.$g("yt-remote-cast-receiver");
return B?B.friendlyName:null},Bji=function(){fZ("clearCurrentReceiver");
_.ny("yt-remote-cast-receiver")},cii=function(){return Rks()?AH()?AH().getCastSession():(i$("getCastSelector: Cast is not initialized."),null):(i$("getCastSelector: Cast API is not installed!"),null)},Pgz=function(B,c){x9r()?AH().setConnectedScreenStatus(B,c):i$("setConnectedScreenStatus called before ready.")},Qso=function(){var B=_.dC().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.UZ||B},F4B=function(B,c){var x=!1;
AH()||(B=new u$(B,c),B.subscribe("yt-remote-cast2-availability-change",function(P){_.Xj("yt-remote-cast-available",P);Pe("yt-remote-cast2-availability-change",P)}),B.subscribe("yt-remote-cast2-receiver-selected",function(P){fZ("onReceiverSelected: "+P.friendlyName);
_.Xj("yt-remote-cast-receiver",P);Pe("yt-remote-cast2-receiver-selected",P)}),B.subscribe("yt-remote-cast2-receiver-resumed",function(P){fZ("onReceiverResumed: "+P.friendlyName);
_.Xj("yt-remote-cast-receiver",P);Pe("yt-remote-cast2-receiver-resumed",P)}),B.subscribe("yt-remote-cast2-session-change",function(P){fZ("onSessionChange: "+YpF(P));
P||_.ny("yt-remote-cast-receiver");Pe("yt-remote-cast2-session-change",P)}),_.rr("yt.mdx.remote.cloudview.instance_",B),x=!0);
fZ("cloudview.createSingleton_: "+x);return x},AH=function(){return _.Gu("yt.mdx.remote.cloudview.instance_")},zki=function(B){Snr(!0);
vdB(!1);AH().init(!1,function(c){c?(DpB(!0),_.Zrq("yt-remote-cast2-api-ready")):(i$("Failed to initialize cast API."),Snr(!1),_.ny("yt-remote-cast-available"),_.ny("yt-remote-cast-receiver"),ygF());B(c)})},fZ=function(B){zh("cloudview",B)},i$=function(B){zh("cloudview",B)},Snr=function(B){fZ("setCastInstalled_ "+B);
_.Xj("yt-remote-cast-installed",B)},x9r=function(){return!!_.Gu("yt.mdx.remote.cloudview.apiReady_")},DpB=function(B){fZ("setApiReady_ "+B);
_.rr("yt.mdx.remote.cloudview.apiReady_",B)},vdB=function(B){_.rr("yt.mdx.remote.cloudview.initializing_",B)},DX=function(B){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(B)},a1i=function(){var B,c;
return _.X(function(x){if(x.nextAddress==1)return(_.N_O()||_.T("use_new_nwl"))&&_.T_7().isNetworkAvailable()?_.K(x,_.RH(),2):x.return();if(x.nextAddress!=3)return(B=x.yieldResult)?_.K(x,ZUl(B),3):x.return();c=x.yieldResult;if(!c.length)return x.return();c.forEach(function(P){var Y={timestamp:P.timestamp};P=P.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:P.appShellAssetLoadReport,options:Y}:P.clientError?{payloadName:"clientError",payload:P.clientError,options:Y}:void 0;P&&
_.JP(P.payloadName,P.payload,P.options)});
c.length===100&&_.EE.addLowPriorityJob(a1i);_.Kq(x)})},gCc=function(B){if(B.playerResponse){if(B=B.playerResponse,B.messages&&B.messages.length>0&&(B=B.messages.find(function(c){return!(!c||!c.mealbarPromoRenderer)}))&&B.mealbarPromoRenderer)return B.mealbarPromoRenderer}else if(B.response&&(B=B.response)&&B.overlay&&B.overlay.mealbarPromoRenderer)return B.overlay.mealbarPromoRenderer},sJ6=function(B){if(B.response){var c=B.response;
if(c&&c.overlay&&c.overlay.tooltipRenderer)return c.overlay.tooltipRenderer}if(B.playerResponse&&(B=B.playerResponse,B.messages&&B.messages.length>0&&(B=B.messages.find(function(x){return!(!x||!x.tooltipRenderer)}))&&B.tooltipRenderer))return B.tooltipRenderer},kqS=function(B){if(!pri&&(B=B||_.v5("ZWIEBACK_PING_URLS"))&&B.length){pri=!0;
for(var c=0;c<B.length;c++)_.M6(B[c])}},$9r=function(B){if(_.wW.get(_.v5("PLAYER_VARS",{}),"privembed",!1)!="1"){B&&QH6();
try{Xry().then(function(){},function(){}),_.pU($9r,18E5)}catch(c){_.SI(c)}}},nCF=function(){var B=_.CW(),c=B.getFlag(119),x=window.devicePixelRatio>1;
document.body&&_.Zu(document.body,"exp-invert-logo")&&(x&&!_.Zu(document.body,"inverted-hdpi")?_.rX(document.body,"inverted-hdpi"):!x&&_.Zu(document.body,"inverted-hdpi")&&_.uA(document.body,"inverted-hdpi"));c!=x&&(_.hi(0,119,x),B.save())},bWs=function(B){return B.filter(function(c){return"ypcGetCartEndpoint"in c||"ypcFixInstrumentEndpoint"in c})},K5i=function(B){return B.filter(function(c){return!_.t(c,_.Umt)})},U9o=function(B){B=_.p(B);
for(var c=B.next(),x={};!c.done;x={setter$jscomp$6:void 0},c=B.next()){var P=c.value;c=P.params;P=P.service;c&&P&&(x.setter$jscomp$6=jJs[P],x.setter$jscomp$6&&c.forEach(function(Y){return function(g){var k=g.key;g=g.value;k&&g&&(0,Y.setter$jscomp$6)(k,g)}}(x)))}},qpy=function(B,c){var x,P,Y,g,k,n,b;
_.X(function(d){switch(d.nextAddress){case 1:x=_.lI.getInstance();P=_.bA.instance;Y=_.Me.instance;if(!Y)return d9A(B,P,c),d.return();_.kM(d,2);B.onLoadingCommand&&P.resolveCommand(B.onLoadingCommand);return _.K(d,x.getCurrentPositionFromGeolocation(),4);case 4:g=d.yieldResult;if(!B.resolveLocationCommand){d.jumpTo(5);break}k=x.createLocationInfo(g);return _.K(d,_.Zn(Y,B.resolveLocationCommand,{locationInfo:k}),6);case 6:n=d.yieldResult;if(!n||"error"in n&&n.error||n.errorMetadata)return d9A(B,P,c),
d.return();var q;if(n==null?0:(q=n.onResponseReceivedActions)==null?0:q.length){q=_.p(n.onResponseReceivedActions);for(var C=q.next();!C.done;C=q.next())P.resolveCommand(C.value)}(_.t(B.onSuccessCommand,_.fN)||_.t(B.onSuccessCommand,_.qA))&&_.aJ(c.hostElement,"yt-navigate",{endpoint:B.onSuccessCommand,reload:!0});case 5:_.Gw(d,0);break;case 2:b=_.be(d);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return B.onDeniedCommand&&P.resolveCommand(B.onDeniedCommand),
d.return();d9A(B,P,c);_.Kq(d)}})},d9A=function(B,c,x){B.onFailureCommand&&(c.resolveCommand(B.onFailureCommand),_.gj(x.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},hd8=function(B,c){var x=_.t(B,_.WFm);
if(x&&c){B=x.videoIds||[x.videoId];var P;c=(P=_.aJ(c,"yt-lockup-requested",{videoIds:B}).detail)==null?void 0:P.returnValue;var Y;x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Y=c?c:B.map(function(g){return{videoId:g,navigationEndpoint:x.videoCommand}}):c&&(Y=c);
Y&&(P=Y.map(function(g){var k=Object,n=k.assign;var b=g.navigationEndpoint;if(!_.t(b,_.TF)){var d=_.t(b,_.fN);if(d){if(delete d.index,delete d.playlistId,d=_.t(b==null?void 0:b.commandMetadata,_.Br),d==null?0:d.url){var q=d.url;q=_.rx(q,"list");q=_.rx(q,"index");d.url=q}}else b=void 0}return n.call(k,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),CgA(P,x))}},m9z=function(B){var c=_.Mm();
if(B=_.t(B,_.lZn))B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&c.clearQueue(),B.closeMiniplayer&&_.cp().resolve(_.Ge).close(!0)},Vc8=function(B){Tjy(_.Mm(),B)},tcc=function(B){var c;
(B=(c=_.t(B,_.IZ5))==null?void 0:c.setVideoIds)&&B.forEach(function(x){_.WP0(_.Mm(),x)})},NjA=function(B){wro(_.Mm(),B)},I1c=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(B){return!1}},Jis=function(){var B,c;
return(c=(B=window).matchMedia)==null?void 0:c.call(B,"(prefers-reduced-motion: reduce)").matches},W58=function(B){var c=_.cp().resolve(_.Bp(_.po));
if(c){var x={beforeTransition:function(){B.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){B.style.viewTransitionName=""}};
r6(c,"slide",x);r6(c,"zoom",x)}},l1z=function(B,c,x){return{horizontalAlignment:B.x+x.width/2<c.width/2?"west":"east",
verticalAlignment:B.y+x.height/2<c.height/2?"north":"south"}},oCz=function(B,c,x,P,Y){Y=Y===void 0?new _.Jx(0,0):Y;
return ECz(OWA(B,c,x,P),Y)},OWA=function(B,c,x,P){return new _.Jx(B==="west"?16:x.width-P.width-16,c==="north"?16:x.height-P.height-16)},QJF=function(B,c){var x=0;
B&&(x+=76);c&&(x+=285);return x},F5c=function(B){var c=["h",
"m","s"],x=_.DA(c);x.reverse();var P={};B=(B.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(k){var n=(k.match(/[hms]/)||[""])[0];return n?(P[n]=parseInt(k.match(/\d+/)[0],10),!1):!0});
for(B.reverse();B.length&&x.length;){var Y=x.shift();Y in P||(P[Y]=parseInt(B.shift(),10))}if(B.length||P.s>59||P.m>59||P.h>9)return null;var g="";c.forEach(function(k){P[k]&&(g+=""+P[k]+k)});
return g||null},vCo=function(B){B=B.data;
return _.U("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.U("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.U(_.D9,{data:{thumbnails:[{url:B.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.U("div",{class:"profile-badge-view-model-wiz__content"},_.U("div",{class:"profile-badge-view-model-wiz__badge-description"},B.badgeDesc),B.badgeSubtitle?_.U("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},B.badgeSubtitle):null))},zdi=function(B){B=
B.data;
var c=_.Ho("yt-comment-interaction-view-model");_.aRq(c,B.rendererContext);return _.U("yt-comment-interaction-view-model",{el:c,class:"yt-comment-interaction-view-model-wiz"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":B.onTapA11yLabel,"on:keydown":_.ep$(),tabindex:0},_.U("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},B.headerPrefix,' "',B.videoTitle),_.U("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.U("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},B.commentContent),_.U("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.U(_.D9,{data:{thumbnails:[{url:B.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},yiA=function(B){B=B.data;
return _.U("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Spr(B.avatar),_.U("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},B.channelName))},Mcy=function(B){B=B.data;
var c;return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},_.U("div",{class:"yt-profile-info-view-model-wiz__header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title"},B.commentsInteractionTitle)),(c=B.comments)==null?void 0:c.map(function(x){return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},GqS(x))}))},L5o=function(B){B=B.data;
var c=_.S_({elementsCommand:B.subscriptionsAccessButtonCommand}),x=_.Ho("a");_.FJl(x,_.vH(B.subscriptionsAccessButtonCommand));var P;return _.U("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.U("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.U("a",{el:x,"on:click":_.qe(function(Y){if(c==null?0:c.onclick)c.onclick(Y);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},B.sharedSubscriptionsTitle),_.U("div",null,GqS(B.subscriptionsAccessButton)))),_.U("div",{class:"yt-profile-info-view-model-wiz__subs"},(P=B.sharedSubscriptions)==null?void 0:P.slice(0,5).map(function(Y){return _.U("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",GqS(Y))})))},ZWo=function(B){B=B.data;
var c;return _.U("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.U("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.U("h2",{class:"yt-profile-info-view-model-wiz__section-title"},B.sharedSubscriptionsTitle)),_.U("div",{class:"yt-profile-info-view-model-wiz__subs"},(c=B.sharedSubscriptions)==null?void 0:c.slice(0,5).map(function(x){return _.U("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",GqS(x))})))},HWA=function(B){B=B.data;
return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},[B.profileBadgeInfoYtWide,B.profileBadgeInfoChannelWide].map(function(c){var x,P,Y,g,k;return c?_.U(_.at,null,_.U("div",{class:"yt-profile-info-view-model-wiz__header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title"},c==null?void 0:c.profileSectionTitle),_.U("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(x=c.commentBadge)==
null?void 0:x.commentDesc),(c==null?0:(P=c.commentBadge)==null?0:P.blackHeartDesc)?_.U("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.U("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.U(_.D9,{data:{thumbnails:[{url:c==null?void 0:(Y=c.commentBadge)==null?void 0:Y.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.U("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(g=
c.commentBadge)==null?void 0:g.blackHeartDesc))),_.U("div",{class:"yt-profile-info-view-model-wiz__badge"},c==null?void 0:(k=c.badges)==null?void 0:k.map(function(n){return _.U(vCo,{data:n})}))):null}))},f1o=function(B){B=B.data;
return _.U("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.U(HWA,{data:B}),B.comments?_.U(Mcy,{data:B}):null,B.sharedSubscriptionsTitle?B.subscriptionsAccessButtonCommand?_.U(L5o,{data:B}):_.U(ZWo,{data:B}):null)},Ail=function(B){var c=B.data;
B=c?iWo(c.profileIdentityInfo):void 0;c=c?iWo(c.profileInfo):void 0;return _.U("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},B,c)},uXB=function(B,c){var x=_.ket(c,{},B,!0);
return new Promise(function(P,Y){x.listenOnce("n",function(){Y(Error("hl`"+x.JSC$25983_getErrorDescription()))});
x.listenOnce("l",function(){var g=x.getResponseCode();if(g!==200)Y(Error("il`"+c+"`"+B.type+"`"+B.size+"`"+g));else try{P(JSON.parse(x.getResponseText()).encryptedBlobId)}catch(k){Y(k)}});
x.run()})},D9F=function(B){return B.substring(B.indexOf(":")+1,B.indexOf(";"))},riB=function(B){return new Promise(function(c,x){var P=new FileReader;
P.onloadend=function(){try{var Y=new Uint8Array(P.result);Y.length<8&&x(void 0);var g=Y.subarray(0,8);Y="";for(var k=0;k<g.length;k++)Y+=("0"+g[k].toString(16)).substr(-2);Y.startsWith("ffd8ff")?c("image/jpeg"):Y.startsWith("47494638")?c("image/gif"):Y.startsWith("89504e470d0a1a0a")?c("image/png"):Y.startsWith("424d")?c("image/bmp"):c(void 0)}catch(n){x(n)}};
P.onerror=x;P.readAsArrayBuffer(B)})},RdB=function(B){return new Promise(function(c,x){var P=new Image;
P.crossOrigin="anonymous";P.onload=function(){var Y=document.createElement("canvas");Y.width=P.naturalWidth;Y.height=P.naturalHeight;var g=Y.getContext("2d");if(!g)throw Error("jl");g.drawImage(P,0,0);g=D9F(B);Y.toBlob(function(k){k?c(k):x()},g)};
P.src=B})},BLs=function(B,c){var x;
if(((x=_.t(B,_.TF))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var P;_.aJ((P=c.hostElement)!=null?P:c,"yt-shorts-reset");_.oR4(_.cp().resolve(_.h2),B).then(function(g){edo(g,c,B)})}else{var Y;
_.kC((Y=c.hostElement)!=null?Y:c,[B]).then(function(g){g&&edo(g.data,c,B)})}},edo=function(B,c,x){if(B){var P=_.t(B.replacementEndpoint,_.TF);
if(P){B.sequenceContinuation&&(P.sequenceParams=B.sequenceContinuation);var Y;_.aJ((Y=c.hostElement)!=null?Y:c,"yt-navigate",{endpoint:B.replacementEndpoint})}else if((B==null?void 0:B.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(B==null?0:B.watchStatus)&&_.t(B.watchStatus,_.$fn)){var g;_.aJ((g=c.hostElement)!=null?g:c,"yt-navigate",{endpoint:x})}}},cmB=function(B){var c=_.cp().resolve(_.GC),x=bE8(c.getState())||"";
c=_.MGq(c.getState())||"";x=x==="ytd-browse"&&c==="home";return _.T("web_guide_entry_enable_cache_for_non_home_pages")?(B=(B==null?void 0:B.navigationEndpoint)&&_.d_(B.navigationEndpoint)==="home",{disableCache:x&&B}):{disableCache:x}},xZr=function(B){if(!B)return!1;
try{if(B.host&&B.host.tagName==="YT-FORMATTED-STRING"&&B.host.id==="contenteditable-textarea"||B.nodeType===Node.ELEMENT_NODE&&B.tagName==="YTD-COMMENT-INPUT")return!0}catch(c){return!1}return xZr(B.parentNode)},Rl=function(B){return B?B.tagName==="A"&&B.href&&B.classList.contains("yt-simple-endpoint"):!1},PGz=function(B){return B?B.tagName==="IMG"&&B.classList.contains("emoji"):!1},YvA=function(B,c,x){if(!B)return null;
var P=Rl(B);if(P&&x)return c=B.pathname.substring(B.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(P&&!x)return document.createTextNode("");if(PGz(B))return x=B.alt,B=B.dataset.emojiId,!B&&c&&(c=_.mT(c,x))&&c.isCustomEmoji&&(B=c.emojiId),B?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+B+">"):document.createTextNode(x);P=B.cloneNode(!1);for(var Y=0;Y<B.childNodes.length;++Y){var g=YvA(B.childNodes[Y],c,x);g&&P.appendChild(g)}return P},e0=function(B){return B?Rl(B)?B:e0(B.lastChild):
null},ajS=function(B){return B?Rl(B)?B:ajS(B.firstChild):null},gNl=function(B){if(!B)return null;
for(var c=B.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=e0(c))?B=c:B=(B=B.parentNode)?e0(B.previousElementSibling):null;return B},swN=function(B){if(!B)return null;
for(var c=B.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=ajS(c))?c:swN(B.parentNode)},p3S=function(B){var c=_.V0(),x=c.JSC$9307_getStartNode();
if(!xZr(x.parentNode))return null;c=c.JSC$9307_getStartOffset();if(x.nodeType===Node.TEXT_NODE){var P=_.QE(x,Rl);if(P){if(B&&c===0||!B&&c===x.length)return P}else{if(B&&c===x.length)return!x||x.nodeName==="BR"||x.nextElementSibling&&_.ta(x.nextElementSibling,"display")==="block"?null:ajS(x.nextElementSibling);if(!B&&c===0)return x?e0(x.previousElementSibling):null}}if(x.nodeType===Node.ELEMENT_NODE)if(B){if(0<=c&&c<x.childNodes.length)return ajS(x.childNodes[c])}else if(0<c&&c<=x.childNodes.length)return e0(x.childNodes[c-
1]);return null},k$B=function(B,c,x){if(!B)return null;
if(B.nodeType===Node.TEXT_NODE)if(x){var P=gNl(B);if(P&&!/^\s+\S/.test(B.wholeText.substr(0,c)))return P}else if((P=swN(B))&&!/\S\s+/.test(B.wholeText.substr(c,B.wholeText.length)))return P;return B.nodeType===Node.ELEMENT_NODE?x?gNl(B.childNodes[c]):swN(B.childNodes[c]):k$B(B.parentNode,c,x)},X3o=function(B){if(B.hasChildNodes())switch(B.tagName){case "DIV":case "A":case "SPAN":var c="";
for(B=B.firstChild;B;B=B.nextSibling)c+=X3o(B);return c;default:return""}else switch(B.nodeType){case 3:return B.textContent;default:return""}},$ZS=function(B){B=B.data;
return _.U("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.U("div",null,_.U(_.RF,{text:B.title})),B.subtitle?_.U("div",{class:"ytd-menu-title-renderer__subtitle"},_.U(_.RF,{text:B.subtitle})):null)},nNz=function(B){switch(B){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"}},bkc=function(B){return B.map(function(c){return{settingsRadioOptionRenderer:{title:_.P3(c.name),
asideText:_.P3(c.approximateSize),id:nNz(c.format)}}})},jwr=function(B){if(B&&B.length!==0)return B.filter(Kkc()).map(function(c){return{settingsRadioOptionRenderer:{title:c.name,
asideText:c.approximateSize,id:nNz(c.formatType)}}})},Bk=function(B){if(B)return B.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},UZy=function(B,c){B=new Set(B!=null?B:[]);
if(B.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(B.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(B.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(B.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(B.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(c)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},dZ8=function(B){var c=B.indexOf("(");
return c!==-1?B.substring(c+1,B.length-1):B},qvy=function(B){switch(B){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},hlc=function(B,c,x,P,Y,g){var k=_.wW.clone(CGB);
k.locale=_.v5("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;k.report={description:Y||"<empty>"};Y=_.v5("SBOX_SETTINGS",{});c=c.join(",");var n=Date.now();B={choice_cc:P,choice_id_cc:x,choices_sc:c,gl:Y.REQUEST_DOMAIN,hl:Y.REQUEST_LANGUAGE,query:B,time:n};g&&(B.choice_additional_comment_cc=g);_.jE4(k,B)},mZB=function(B){var c=new Map;
c.set("authuser",_.v5("SESSION_INDEX","0"));return _.Y2(B,c)},VBr=function(B){var c;
return _.X(function(x){switch(x.nextAddress){case 1:if(!B||!TLF(B))return x.return(null);c=null;switch(_.v5("INNERTUBE_CLIENT_NAME")){case "WEB":return x.jumpTo(2);case "WEB_REMIX":c=B.getPlayer()}x.jumpTo(3);break;case 2:return _.K(x,B.getPlayerPromise(),4);case 4:c=x.yieldResult;x.jumpTo(3);break;case 3:return x.return(c)}})},TLF=function(B){return["ytd-player",
"ytmusic-player"].includes(String(B.tagName||"").toLowerCase())},tBl=function(B){B=Math.round(B);
return B%2?B-1:B},w3N=function(B){B=Math.round(B);
return B%2===0?B-1:B},NLA=function(B){var c,x,P;
if(B=(c=B.createPlaylistDialogFormSchema)==null?void 0:(x=c.fieldSchemas)==null?void 0:(P=x.title)==null?void 0:P.validationSchema)for(c=[B.syncStep,B.asyncStep].filter(function(Y){return Y!==void 0}),c=_.p(c),x=c.next();!x.done;x=c.next()){x=x.value.rules;
if(!x)break;x=_.p(x);for(x=x.next();!x.done;x=x.next())return _.t(x.value,_.WKF)}},Jmz=function(B){var c,x,P;
if(B=(c=B.createPlaylistDialogFormSchema)==null?void 0:(x=c.fieldSchemas)==null?void 0:(P=x.visibility)==null?void 0:P.validationSchema)for(c=[B.syncStep,B.asyncStep].filter(function(Y){return Y!==void 0}),c=_.p(c),x=c.next();!x.done;x=c.next()){x=x.value.rules;
if(!x)break;x=_.p(x);for(P=x.next();!P.done;P=x.next())if(P=_.t(P.value,Ijc))return c=void 0,(c=P.translations)==null?void 0:c.visibilityNotValidErrorMessage}},WkA=function(){var B,c;
return(c=(B=_.cp().resolve(_.Bp(_.fL)))==null?void 0:B())!=null?c:!1},lj6=function(B){var c=21;
if(!B)return c;c+=B.headerTitle?27:0;c+=B.headerTitle&&B.hasHeaderActionHeader?4:0;return c+=B.headerTitle&&B.headerSubtitle?16:0},ENz=function(B){var c=0;
if(!B)return c;c+=B.hasFooterPrimaryButton||B.hasFooterSecondaryButton?48:0;c+=B.footerTrailingLabel||B.footerLeadingLabel?30:0;return c+=B.hasFooterPrimaryButton||B.hasFooterSecondaryButton||!B.footerTrailingLabel&&!B.footerLeadingLabel?0:12},Oki=function(B){var c=new _.KU,x=B;
return{subscribe:function(P){c.subscribe("changed",P)},
dispatch:function(P,Y){var g=x;P==="Touch Start"?x=Object.assign({},g,{isAnimating:!1,initialY:Y.event.touches[0].clientY}):P==="Touch Move"?(P=Math.min(Y.fullContentWrapperHeight,Y.contentHeightMap[Y.contentWrapperId]+lj6(Y.header)-ENz(Y.footer)),x=Object.assign({},g,{currentY:Math.max(Y.contentScrollable?-1*(g.initialY-24):0,Y.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(P,Math.max(0,(g.isFullScreen?P:Y.contentWrapperHeight)-g.currentY))})):x=P==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Y.maxHeight}):P==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):P==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:Y.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):g;c.publish("changed",x)}}},oNN=function(B){return _.qe(function(c){B(c);
return!1})},QwN=function(){_.cp().resolve(_.Vi).closeSheet()},Fkr=function(B){var c,x,P,Y,g,k,n,b,d,q,C;
return{headerTitle:(c=B.headerTitle)==null?void 0:c.call(B),headerSubtitle:(x=B.headerSubtitle)==null?void 0:x.call(B),headerActionHeader:B.headerActionHeader,footerPrimaryButton:B.footerPrimaryButton,footerSecondaryButton:B.footerSecondaryButton,footerButtonType:(P=B.footerButtonType)==null?void 0:P.call(B),footerLeadingLabel:(Y=B.footerLeadingLabel)==null?void 0:Y.call(B),footerTrailingLabel:(g=B.footerTrailingLabel)==null?void 0:g.call(B),shouldShowIcons:(k=B.shouldShowIcons)==null?void 0:k.call(B),
skipContentClick:(n=B.skipContentClick)==null?void 0:n.call(B),additionalClassName:(b=B.additionalClassName)==null?void 0:b.call(B),onClosedCallback:B.onClosedCallback,focusOnClose:(d=B.focusOnClose)==null?void 0:d.call(B),isDisabled:(q=B.isDisabled)==null?void 0:q.call(B),disabledCommand:(C=B.disabledCommand)==null?void 0:C.call(B),headerFn:B.headerFn,contentFn:B.contentFn,footerFn:B.footerFn,hasHeaderFn:B.hasHeaderFn(),hasContentFn:B.hasContentFn(),hasFooterFn:B.hasFooterFn(),hasFooterPrimaryButton:B.hasFooterPrimaryButton(),
hasFooterSecondaryButton:B.hasFooterSecondaryButton(),hasHeaderActionHeader:B.hasHeaderActionHeader()}},vNA=function(B){switch(B){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""}},zll=function(B){switch(B){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""}},Svs=function(B){switch(B){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""}},ymN=function(B,c,x){c.forEach(function(P){_.bd(_.cp().resolve(_.N3),P)});
_.gj(B,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",x])},ZkB=function(B,c,x,P){var Y=_.t(x,_.LV).commandLifeCycleConfig;
Y&&Y.onStartCommand&&_.XX(B,[Y.onStartCommand],c);_.uj(c);var g=_.Me.instance;g&&_.Lw(g,x)?_.Zn(g,x,P).then(function(k){if(!k||(k==null?0:k.error))return k=_.t(x,_.LV).serializedTransactionFlowLoggingParams,_.Ds(c),_.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",k));_.Ds(c);return{data:k}}).then(function(k){_.Ds(c);
G$r(k.data);var n=k.data.command;n&&_.XX(B,[n],c);n=MBF(x,k.data);if(!n){var b=k.data;k=!1;if(b&&b.command&&_.t(b.command,_.nW)){var d;b=((d=_.t(b.command,_.nW))==null?void 0:d.commands)||[];for(d=0;d<b.length;d++)if(_.t(b[d],_.ee0)){k=!0;break}}k||_.l3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!n&&Y&&Y.onSuccessCommand?_.XX(B,[Y.onSuccessCommand],c):n&&Y&&Y.onFailureCommand&&_.XX(B,[Y.onFailureCommand],c)},function(){_.Ds(c);
Y&&Y.onFailureCommand&&_.XX(B,[Y.onFailureCommand],c);Lky(x)}):_.lb(Error("Al"),"ERROR")},Hky=function(B,c,x){var P=[c];
x&&P.push(x);return _.kC(B,P).then(function(Y){var g=_.t(c,_.LV).serializedTransactionFlowLoggingParams,k=Y.data,n=MBF(c,k);n?Y=_.Im(new ck(n,g)):G$r(k);return Y},function(){var Y=_.t(c,_.LV).serializedTransactionFlowLoggingParams;
Lky(c);return _.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y))})},MBF=function(B,c){B=_.t(B,_.LV).serializedTransactionFlowLoggingParams;
var x=null;switch(c.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":x="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":x="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":x="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}x?_.fr(x,B):a6F(B);return x},Lky=function(B){_.fr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.t(B,_.LV).serializedTransactionFlowLoggingParams)},
G$r=function(B){if(B.trackingParams){var c=_.Wf(),x=_.Jg();
c&&x&&_.Gq(c,x,_.VF(B.trackingParams))}},fj6=function(B,c,x){var P=_.Me.instance,Y=_.BgC(_.v5("YPC_MB_URL")),g=(new _.RJ7).init(),k=_.eJO(),n=_.t(x,_.um4).languageCode;
n===void 0?_.lb(Error("Ei"),"ERROR"):_.Nf([g,Y]).then(function(){var b={ctk:payments.business.integration.ClientTokenFactory.createClientToken(n,k)};P&&_.Lw(P,x)?_.Zn(P,x,b).then(function(d){return{data:d}}).then(function(d){_.aJ(c,"yt-service-request-completed",d);
d.code!=="ERROR"&&(d=d.data.command)&&_.XX(B,[d],c)}):_.lb(Error("Al"),"ERROR")})},u9i=function(B,c,x,P){var Y=_.Me.instance;
Y&&_.Lw(Y,x)?_.Zn(Y,x,P).then(function(g){return{data:g}}).then(function(g){iks(B,c,x,g)},function(){AmA(x)}):(Y=_.cp().resolve(_.Bp(_.Oi)))&&Y.requestDataForServiceEndpoint(x,P).then(function(g){iks(B,c,x,g)},function(){AmA(x)})},iks=function(B,c,x,P){_.aJ(c,"yt-service-request-completed",P);
if(P.code&&P.code=="ERROR")AmA(x);else{(P=P.data.commands)&&_.XX(B,P,c);var Y;(B=(Y=_.t(x,_.cvd))==null?void 0:Y.serializedYpcPauseFlowLoggingParams)&&B&&_.OO("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",B)}},AmA=function(B){var c;
(B=(c=_.t(B,_.cvd))==null?void 0:c.serializedYpcPauseFlowLoggingParams)&&B&&_.OO("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Rlc=function(B,c,x){var P=_.Me.instance;
P&&_.Lw(P,x)?_.Zn(P,x).then(function(Y){return{data:Y}}).then(function(Y){DZy(B,c,x,Y)},function(){rmS(x)}):(P=_.cp().resolve(_.Bp(_.Oi)))&&P.requestDataForServiceEndpoint(x).then(function(Y){DZy(B,c,x,Y)},function(){rmS(x)})},DZy=function(B,c,x,P){_.aJ(c,"yt-service-request-completed",P);
P.code&&P.code=="ERROR"?rmS(x):((P=P.data.commands)&&_.XX(B,P,c),(B=_.t(x,_.xmF).serializedYpcResumeFlowLoggingParams)&&B&&_.OO("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",B))},rmS=function(B){(B=_.t(B,_.xmF).serializedYpcResumeFlowLoggingParams)&&B&&_.OO("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},elr=function(B){B=B===void 0?{}:B;
_.cp().resolve(_.dFW).showFeedbackDialog(B.customProductData,B.feedbackContent,B.onFeedbackSubmitted,B.bucket)},B_y=function(B){B=B===void 0?{}:B;
_.cp().resolve(_.dFW).showHelpDialog(B.helpContext,B.articleId,B.productData)},cVl=function(){B_y()},xAc=function(){elr()},Yir=function(B,c,x){var P,Y,g,k,n,b,d;
return _.X(function(q){switch(q.nextAddress){case 1:P=_.t(B,PIy);if((Y=P)==null?0:Y.productId){b={productId:P.productId,bucket:P.bucket,enableAnonymousFeedback:(n=P.enableAnonymousFeedback)!=null?n:!0,allowNonLoggedInFeedback:!0};d={feedbackChoice:x.feedbackChoice};if(!_.T("web_collect_offline_state")){q.jumpTo(8);break}_.kM(q,9);return _.K(q,jGs(d),11)}k={bucket:(g=P)==null?void 0:g.bucket};if(!_.T("web_collect_offline_state")){q.jumpTo(4);break}k.customProductData={};_.kM(q,5);return _.K(q,jGs(k.customProductData),
7);case 7:_.Gw(q,4);break;case 5:_.be(q);case 4:elr(k);q.jumpTo(0);break;case 11:_.Gw(q,8);break;case 9:_.be(q);case 8:_.HXI(d),_.ZXO("GFEEDBACK",d),P.productId==="5295751"&&(d.client_attestation=Number(_.v5("CATSTAT",0))),P.productId==="5295751"&&(d.client_time=Date.now()/1E3/3600),P.productId==="5295751"&&(d.original_playback_id=_.GAm||""),_.jE4(b,d),_.Kq(q)}})},a3F=function(B){if(B=_.t(B,_.E3x)){var c={bucket:B.bucketIdentifier};
B.additionalDatas&&(c.customProductData={},B.additionalDatas.forEach(function(x){if(x=x.userFeedbackEndpointProductSpecificValueData)c.customProductData[x.key]=x.value}));
elr(c)}},gHA=function(B){var c=_.Gr.getInstance();
var x=_.Up("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var P=_.Up("DELETE",void 0,"Delete"),Y=_.Up("CANCEL",void 0,"Cancel");x=VRr(x,void 0,P,Y,{signal:"DELETE_ALL_DOWNLOADS"});_.Qb(c,[{openPopupAction:x}],B)},pqA=function(){return _.X(function(B){return B.nextAddress==1?_.K(B,_.cp().resolve(_.ev),2):_.K(B,suy(),0)})},kFF=function(B){var c,x;
return _.X(function(P){return P.nextAddress==1?(x=(c=_.t(B,_.zr))==null?void 0:c.targetId)?_.K(P,_.cp().resolve(_.ev),3):P.jumpTo(0):_.K(P,_.cp().resolve(_.Rb).deleteVideo(x),0)})},$AA=function(B){var c,x;
return _.X(function(P){return P.nextAddress==1?(x=(c=_.t(B,_.zr))==null?void 0:c.targetId)?_.K(P,_.cp().resolve(_.ev),3):P.jumpTo(0):_.K(P,Xqz(_.cp().resolve(_.Rb),x),0)})},brS=function(B){var c,x;
return _.X(function(P){return(x=(c=_.t(B,_.zr))==null?void 0:c.targetId)?_.K(P,nHz(x),0):P.jumpTo(0)})},juo=function(){_.T("kevlar_woffle_refresh_dl_load_killswitch")||Kzy()},dA6=function(){_.T("kevlar_woffle")&&_.Wq.instance&&UA6()},CIs=function(B){var c;
if((c=_.t(B,_.n3))==null||!c.videoId)return!1;qiz(_.cp().resolve(_.Rb),_.t(B,_.n3),B.clickTrackingParams);return!0},mAo=function(B){var c;
if((c=_.t(B,_.bR))==null||!c.playlistId)return!1;h6z(_.cp().resolve(_.Rb),_.t(B,_.bR),B.clickTrackingParams);return!0},VFo=function(B){var c=_.t(B,_.id4);
(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||T_y(_.cp().resolve(_.Rb),_.t(B,_.id4))},wqz=function(B){B=_.t(B,_.h5W);
var c;(B==null?0:(c=B.actions)==null?0:c.length)&&tFz(B)},JVF=function(B){var c,x;
return _.X(function(P){c=_.t(B,N_6);return(x=c)!=null&&x.localWatchHistoryCommandType?_.K(P,I3l(c),0):P.return()})},WzB=function(B){setTimeout(function(){requestAnimationFrame(B)},80)},l3z=function(B){return Object.entries(B).map(function(c){return c.join(":")}).join(";")},Orz=function(B){var c,x,P;
_.X(function(Y){if(Y.nextAddress==1)return _.K(Y,EH6(),2);c=Y.yieldResult;x=_.bA.instance;switch(c){case "granted":P=B.getLocationCommand;break;case "denied":P=B.openDeniedDialogAction;break;case "prompt":P=B.openCollectionDialogAction;break;default:P=B.openCollectionDialogAction}P&&x.resolveCommand(P);_.Kq(Y)})},EH6=function(){var B,c;
return _.X(function(x){if(x.nextAddress==1)return B="prompt",navigator.permissions?_.K(x,navigator.permissions.query({name:"geolocation"}),3):x.jumpTo(2);x.nextAddress!=2&&(c=x.yieldResult,B=c.state);return x.return(B)})},Qur=function(){_.X(function(B){return _.K(B,_.oHs(),0)})},Fzl=function(){var B,c,x;
return _.X(function(P){if(P.nextAddress==1)return B=_.cp().resolve(_.ou),B?_.K(P,_.Zn(B,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Ob(Error("Dl")),P.return(void 0));if(c=P.yieldResult){if(c.errorMetadata)return _.Ob(Error("El`"+c.errorMetadata.status+"`"+c.error)),P.return(void 0);x=c.datasyncIds;_.qR9=x.length;return P.return(x)}_.Ob(Error("Fl"));return P.return(void 0)})},vHB=function(){Fzl().then(function(B){B&&(MRA(B),sGc(B),orl(B),daA(B))})},z6F=function(B){_.EE.addLowPriorityJob(function(){var c,
x,P,Y,g;
return _.X(function(k){switch(k.nextAddress){case 1:if(_.T("ytidb_clear_optimizations_killswitch")){k.jumpTo(2);break}c=_.CU("clear");if(c.startsWith("V")&&c.endsWith("||")){var n=[c];MRA(n);sGc(n);orl(n);daA(n);return k.return()}x=QxS();P=qby();return _.K(k,poN(),3);case 3:return Y=k.yieldResult,_.K(k,LcA(),4);case 4:if(g=k.yieldResult,!(x||P||Y||g))return k.return();case 2:B.isNetworkAvailable()?vHB():B.listenOnce("publicytnetworkstatus-online",vHB),_.Kq(k)}})})},xo=function(B){B={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.fk(B)}}}};_.bA.instance&&_.bA.instance.resolveCommand(B)},Si6=function(B){if(B){var c=_.q_();
_.kk(c,3854,void 0,{layer:0,parentLayer:4});switch(B){case 1:var x=238708;break;case 2:x=238715;break;case 3:x=238710;break;case 6:x=238709}x&&(B=_.dX(c,{veType:x}))&&_.n0(c,B)}},yVA=function(B){if(B){var c=_.q_();
_.kk(c,3854,void 0,{layer:0,parentLayer:4});switch(B){case 1:var x=238714;break;case 2:x=238711;break;case 8:x=238709;break;case 7:x=238713;break;case 3:case 4:case 5:x=238712}x&&(B=_.dX(c,{veType:x}))&&_.n0(c,B)}},GFy=function(B){switch(B.latencyType){case 0:_.Ep("consent_primitive_flow");
_.Op("cpit",B.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Op("cpist",B.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Op("cprtif",B.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Op("cprtli",B.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Op("cprt",B.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Op("cpdt",B.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Op("cpjct",B.timestampEpochMillis,"consent_primitive_flow")}},
rVF=function(B,c){var x,P,Y,g,k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z,u;
return _.X(function(e){switch(e.nextAddress){case 1:_.kM(e,2);(P=(x=_.t(B,MFz))==null?void 0:x.serializedConsentRequest)||(P=(Y=_.t(B,LzN))==null?void 0:Y.serializedConsentRequest);P&&(g=Zro(_.kF(P)));if(g===void 0)return e.return();k=Hrr(g);k.latencyCallback=GFy;c&&f3F(k,function(){c.then(function(px){px.pauseVideo();(new iri).increment()})});
return((n=_.t(B,MFz))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.t(B,LzN))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?_.K(e,AVB(k),5):_.K(e,uI6(k),6);case 6:d=e.yieldResult;q=_.wQ(d,Pk);if(q===1){if(((C=_.vG(d,Yo,1,Pk))==null?void 0:_.og(C,1))===1||((h=_.vG(d,Yo,1,Pk))==null?void 0:_.og(h,1))===2||((V=_.vG(d,Yo,1,Pk))==null?void 0:_.og(V,1))===3)_.t(B,LzN)?xo(_.Up("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
xo(_.Up("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Si6((N=_.vG(d,Yo,1,Pk))==null?void 0:_.og(N,1),_.ch(d,DA8,3,_.xw()))}else q===2?(((l=ac(d))==null?void 0:_.og(l,1))===5?_.t(B,LzN)?xo(_.Up("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):xo(_.Up("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((E=ac(d))==null?void 0:_.og(E,1))===1||((S=ac(d))==null?void 0:_.og(S,1))===4?xo(_.Up("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((M=ac(d))==null?void 0:_.og(M,1))===7&&((f=g)==null?void 0:(Z=_.PA(f,gv,4))==null?void 0:_.og(Z,4))!==1&&xo(_.Up("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),yVA((u=ac(d))==null?void 0:_.og(u,1))):xo(_.Up("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));e.jumpTo(5);break;case 5:_.Gw(e,0);break;case 2:_.be(e),xo(_.Up("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Kq(e)}})},e6N=function(){if(!R6z.has("Worker")){R6z.set("Worker",
!0);
var B={api:"BROWSER_API_WEB_WORKER"};B.available="Worker"in window?!0:!1;_.JP("apiTest",B)}},BMs=function(B){return typeof B==="undefined"?"-1":String(Math.ceil(B/1048576))},Ymy=function(B,c){c9S(new xiS(_.t(c,PF6).addToken,_.t(c,PF6).commonToken)).then(function(){_.aJ(B,"yt-invoke-instrument-manager-action-completed")},function(x){_.aJ(B,"yt-invoke-instrument-manager-action-error",x)})},axr=function(B){return _.My(B)},g9c=function(B){var c=1;
B=B.split(":");for(var x=[];c>0&&B.length;)x.push(B.shift()),c--;B.length&&x.push(B.join(":"));return x},sBz=function(B,c){c=B.aspectRatio()<=c.aspectRatio()?c.width/B.width:c.height/B.height;
B.scale(c)},pWS=function(B,c){c=B.aspectRatio()>c.aspectRatio()?c.width/B.width:c.height/B.height;
return B.scale(c)},kZr=function(B){var c=new _.$c;
return _.zo(c,11,B)},XWr=function(B){var c={};
B=B.getAllResponseHeaders().split("\r\n");for(var x=0;x<B.length;x++)if(!_.sl(B[x])){var P=g9c(B[x]),Y=P[0];P=P[1];if(typeof P==="string"){P=P.trim();var g=c[Y]||[];c[Y]=g;g.push(P)}}return _.wW.map(c,function(k){return k.join(", ")})},KZ=function(B,c){return B.JSC$7842_xhr_?B.JSC$7842_xhr_.getResponseHeader(c):null},$iz=function(B,c){if(B.isDisposed())throw Error("Ja");
B.uD.hU("n");var x=_.Q4(B.uD,function(){return B.qmM([c.hY,c.iii,c.iOi,c.qIQ])},"n");
B.uD.l3b(x.length);B.uD.hF();return x},st=function(B,c,x){Array.isArray(x)||(x=[String(x)]);
_.AxZ(B.JSC$8077_queryData_,c,x);return B},UA6=function(){var B=_.Wq.instance;
_.X(function(c){return B.deferredInstallPrompt?_.K(c,B.deferredInstallPrompt.prompt(),0):c.jumpTo(0)})},n9F=function(B,c,x){if(_.R7(B))_.Zg(B,c,x);
else for(B=_.YEW(B);;){var P=B.next();if(P.done)break;c.call(x,P.value,void 0,B)}},bFr={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}"]},XHF,$_S,n0z,bLo,Klc,jm6,U_z,d_S,qLF,nHz,Xqz,suy,CAB,hYs,m_c,TXS,V_z,t_6,h6z,qiz,wHy,NX6,I9z,Kzy,T_y,JXo,tFz,WlA,I3l,l9N,E06,OLA,o0c,r6,QmS,Flz,v08,zYc,
SLr,yXS,GlA,M_F,Llz,Tjy,CgA,ZLl,bZ,Kh,js,Ut,HLF,f9c,iLz,AXz,uos,D_F,rXy,RYF,eYN,BVi;bFr={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 KUy=function(B,c){var x=[];n9F(c,function(P){try{var Y=_.Pf.prototype.getWrapper.call(this,P,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}Y===void 0?x.push(P):_.Prn(Y)&&x.push(P)},B);
return x},jBc=function(B,c){KUy(B,c).forEach(function(x){_.Pf.prototype.remove.call(this,x)},B)},UiF=function(B){var c=_.Hb;
c._minimumZ=Math.max(c._minimumZ,B)},dii=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],qmr=function(B,c){_.R3(B.eO);B.eO=c},CFs=function(B,c,x,P){B.setState(5);
var Y=!!B.xdT&&dii.includes(_.Dg(B.xdT)||"");try{var g=new _.FL({program:c,globalName:x,ue:{disable:!_.T("att_web_record_metrics")||!_.T("att_skip_metrics_for_cookieless_domains_ks")&&Y,qU:"aGIf"}});g.tOC.then(function(){B.setState(6);P&&P(c)});
qmr(B,g)}catch(k){B.setState(7),k instanceof Error&&_.Ob(k)}},hLs=function(B,c,x,P,Y,g){var k=k===void 0?"trayride":k;
x?(B.setState(2),_.vf(x,function(){if(window[k])CFs(B,P,k,Y);else{B.setState(3);var n=_.MQl(x),b=document.getElementById(n);b&&(_.f3l(n),b.parentNode.removeChild(b));_.Ob(new _.mc("BL:ULB",x))}},g)):c?(g=_.df("SCRIPT"),c instanceof _.zz?_.Gz(g,c):g.textContent=c,g.nonce=_.F_(document),document.head.appendChild(g),document.head.removeChild(g),window[k]?CFs(B,P,k,Y):(B.setState(4),_.Ob(new _.mc("BL:ULBJ")))):_.Ob(new _.mc("BL:ULV"))},mi8=function(){this.state=1;
this.eO=null;this.xdT=void 0};
_.a=mi8.prototype;_.a.initialize=function(B,c,x,P){this.xdT=P;if(B.program){var Y;P=(Y=B.interpreterUrl)!=null?Y:null;if(B.interpreterSafeScript)Y=_.Kko(B.interpreterSafeScript);else{var g;Y=(g=B.interpreterScript)!=null?g:null}B.interpreterSafeUrl&&(P=_.OE(B.interpreterSafeUrl).toString());hLs(this,Y,P,B.program,c,x)}else _.Ob(Error("lf"))};
_.a.isInitialized=function(){return!!this.eO};
_.a.getState=function(){return this.state};
_.a.isLoading=function(){return this.state===2};
_.a.invoke=function(B){B=B===void 0?{}:B;var c;this.eO?c=$iz(this.eO,{hY:B}):c=null;return c};
_.a.dispose=function(){qmr(this,null);this.setState(8)};
_.a.setState=function(B){this.state=B};
var TMy=function(B,c){return B.eO.snapshot(c)},Vro=function(B,c){var x=_.Yu("botguard_async_snapshot_timeout_ms",3E3);
c=c===void 0?{}:c;x=x===void 0?3E3:x;return B.eO?new Promise(function(P,Y){var g=!1,k=_.EE.addJob(function(){g=!0;Y(Error("mf"))},1,x);
B.eO?TMy(B,{hY:c}).then(function(n){_.EE.cancelJob(k);g||P(n)}).catch(function(n){_.EE.cancelJob(k);
g||Y(n)}):(_.EE.cancelJob(k),P(null))}):Promise.resolve(null)},wWr=["att/log"],NMi;
NMi={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Ixz={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},J9B=function(B,c){return _.Uv(B,{mode:"readwrite",enableRetries:!0},function(x){return _.C9X(x,c,"settingEntity")})},WUs=function(B,c,x){return _.Uv(B,{mode:"readonly",
enableRetries:!0},function(P){return _.wDQ(P,c,x)})},lxr=function(B){if(!B.storage)return!1;
a:{if(B.storage){try{var c=B.storage.get("TLPQtimestamp")}catch(x){}B=Number(c);if(!isNaN(B))break a}B=void 0}return B?Date.now()-B<864E5:!1},E9B=function(B){if(B.storage){try{var c=B.storage.get("TLPQindex")}catch(x){}B=Number(c);
if(!isNaN(B))return B}},OFy=function(B,c){B.queueProxy&&c.forEach(function(x){if(x.videoId&&x.trackingParams&&B.queueProxy instanceof _.ok){var P=_.Wf();
B.queueProxy.attributionData.set(x.videoId,{enqueueingVe:_.VF(x.trackingParams).getAsJson(),enqueueingCsn:P?P:void 0,clientEnqueueingTimeMs:Math.floor((0,_.BA)()).toString()})}})},o9r=function(B){var c=_.af4(B);
c!=B.currentSnapState_&&(B.currentSnapState_=c,B.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ph=function(B){this.JSC$11109_networkManager_=B;
this.partCallbacks_=[]};
ph.prototype.getCacheKeyForEndpoint=function(B){return _.RRC(B,!1)};
ph.prototype.onPartsCallback_=function(B){this.partCallbacks_.forEach(function(c){B&&c(B)})};
var ko=function(B,c,x){ph.call(this,B);this.player_=c;this.autoplayData_=x};
_.w(ko,ph);ko.prototype.getCacheKeyForEndpoint=function(B){return _.RRC(B,!!this.autoplayData_)};
ko.prototype.getTempData=function(B,c){c=c.timeBeforeNextVideo;B={itct:B.clickTrackingParams,lact:_.co(),pbis:c,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(B.autonav=1);return B};
ko.prototype.getXhrParams=function(B){return Object.assign({pbj:"prefetch"},B)};
ko.prototype.getParams=function(B){B={frags:B.fragmentsRequested.join(",")};_.T("kevlar_droppable_prefetchable_requests")&&(B.prefetch=1);return B};
var QBl=function(B){B.playerEvents_.forEach(function(c){B.player.removeEventListener(c.eventName,c.callback)});
B.playerEvents_.length=0},XY=function(B,c,x){this.player=B;
this.JSC$11119_taskManager=c;this.prefetchDelay=x;this.completionResolver_=null;this.playerEvents_=[]};
XY.prototype.start=function(){var B=this;this.completionResolver_=_.Hw();_.IZ(this.completionResolver_.promise,function(){QBl(B);B.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var FUr=function(B,c,x){B.player.addEventListener(c,x);B.playerEvents_.push({eventName:c,callback:x})},v9z={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},zLs={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},SmS=function(B,c,x){XY.call(this,B,c,x);this.cueId_="playbackTrigger-"+Math.random()};
_.w(SmS,XY);
SmS.prototype.prepareTrigger=function(B){var c=this,x=this.player.getDuration(),P=this.player.getVideoData(),Y=P.isLive&&P.hasProgressBarBoundaries;if(Y&&P.progressBarEndPositionUtcTimeMillis){var g=P.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(x=g)}var k=0;this.prefetchDelay>=0?Y?P.progressBarStartPositionUtcTimeMillis&&(P=P.progressBarStartPositionUtcTimeMillis/1E3,isNaN(P)||(k=P+this.prefetchDelay)):k=this.prefetchDelay:k=x+this.prefetchDelay;Y?this.player.addUtcCueRange(this.cueId_,k,x):
this.player.addCueRange(this.cueId_,k,x);_.IZ(B.promise,function(){c.player.removeCueRange(c.cueId_)});
FUr(this,"onCueRangeEnter",function(n){n==c.cueId_&&B.resolve(x-k)})};
var y9A=function(B,c){B.fragmentConfiguration_[c].requiredKeys.every(function(x){return!!B.prefetchedData_[x]})&&(B.validatedFragments_.push(c),c=B.missingFragments_.indexOf(c),c!==-1&&B.missingFragments_.splice(c,1))},GZz=function(B){B.prefetchedFragments_.forEach(function(c){y9A(B,c)})},MrN=function(B,c,x){this.pageFragments_=B;
this.prefetchedFragments_=c;this.fragmentConfiguration_=zLs;this.prefetchedData_=x;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;GZz(this)},LUl=function(){},ZFA=function(B){this.JSC$11133_playlistManager_=B};
_.w(ZFA,LUl);ZFA.prototype.getPrefetchEndpoint=function(){return this.JSC$11133_playlistManager_.getAutoplayEndpoint()};
var HFs=function(B){this.autonavEndpoints_=B};
_.w(HFs,LUl);HFs.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var fx6=function(B,c,x,P,Y){this.autonavEndpoints=B;this.foregroundTrigger=c;this.backgroundTrigger=x;this.pageType=P;this.isInPlaylist=Y},iFi=function(B,c){if(B.webPrefetchData&&B.webPrefetchData.navigationEndpoints&&B.webPrefetchData.navigationEndpoints.length){B=B.webPrefetchData.navigationEndpoints;
var x=_.t(B[0],_.fN);if(x.watchEndpointSupportedPrefetchConfig&&x.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var P=x.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;x=P.playbackRelativeSecondsPrefetchCondition;x=typeof x==="number"&&Math.abs(x)<c.videoDuration?x:void 0;P=P.countdownUiRelativeSecondsPrefetchCondition;P=typeof P!=="number"||_.T("prefetch_job_config_cleanup_ks")&&c.inPlaylist?void 0:P;if(typeof P==="number")return new fx6(B,c.makeUpNextTrigger(P),c.makePlaybackTrigger(P),
"watch",c.inPlaylist);if(typeof x==="number")return new fx6(B,c.makePlaybackTrigger(x),null,"watch",c.inPlaylist)}}},A9o=function(B){return B.prefetchJobConfig_.backgroundTrigger?_.ya(_.SNX)()==0?B.prefetchJobConfig_.backgroundTrigger:B.prefetchJobConfig_.foregroundTrigger:B.prefetchJobConfig_.foregroundTrigger},u2s=function(B){_.Ti(document,"visibilitychange",B.onVisibilityChange_,!1,B)},$o=function(B){ph.call(this,B)};
_.w($o,ph);$o.prototype.getCacheKeyForEndpoint=function(B){return ph.prototype.getCacheKeyForEndpoint.call(this,B)};
$o.prototype.getTempData=function(){return{}};
$o.prototype.getXhrParams=function(B){return B};
$o.prototype.getParams=function(){return{}};
var Diz=function(B,c,x){var P=B.prefetchDelay*1E3;if(Math.abs(P)>c)x.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Y=P,g=c-P;P<0&&(Y=c+P,g=Math.abs(P));var k=B.JSC$11119_taskManager.addJob(function(){x.resolve(g/1E3)},10,Y);
x.promise.thenCatch(function(){B.JSC$11119_taskManager.cancelJob(k)})}},r9o=function(B,c,x){XY.call(this,B,c,x)};
_.w(r9o,XY);r9o.prototype.prepareTrigger=function(B){var c=this;FUr(this,"onAutonavCoundownStarted",function(x){Diz(c,x,B)})};
var RLA=function(B){B.pendingPrefetchJob_&&(B.pendingPrefetchJob_.cancel(),B.pendingPrefetchJob_=null)},eL6=function(B,c,x){if(!B.triggeredTargets.has(c)){var P=_.eAy(B,c);
P.action=x;_.rft(B,c,P)}},BXA=function(B){_.Som();
_.eBx("cpt")&&_.Ob(Error("lh"));_.xI.requestAnimationFrame(function(){_.xI.setTimeout(function(){_.Op("cpt");var c=_.FX("vpl"),x=_.FX("cpt");c&&x&&_.Op("ol",Math.max(c,x))})});
try{_.Op("fr_s"),B()}catch(c){_.lb(c)}_.xI.requestAnimationFrame(function(){_.Op("bcp")})},cXy=function(B,c){B.serviceEndpointHandlers.push(c)},x_y=function(B,c){c=B.pendingPages_.indexOf(c);
c>-1&&B.pendingPages_.splice(c,1)},PAS=function(B,c){var x=_.gO0.indexOf(c);
x>-1&&_.gO0.splice(x,1);B.targetPage_==c?(B.abort(),_.pZ3(B)):x_y(B,c)},YLr=function(B,c,x,P){c={challenge:c};
x&&(c.webResponse=x);return _.Fa(B.innertubeTransportService,c,_.Dj(wWr),P)},a9l=function(B,c,x){if(!c.challenge)throw Error("ni");
if(c.botguardData&&c.botguardData.program){var P=new mi8;P.initialize(c.botguardData,function(){Vro(P,{atr_challenge:c.challenge}).then(function(Y){if(!Y)throw Error("oi");return YLr(B,c.challenge,Y,x)}).catch(function(Y){_.Ob(Y);
return YLr(B,c.challenge,void 0,x)})},void 0)}else YLr(B,c.challenge,void 0,x)},g06=function(B,c,x){var P={};
c.ids&&(P.ids=[].concat(_.wq(c.ids)));c.engagementType&&(P.engagementType=c.engagementType);return _.Fa(B.innertubeTransportService,P,_.Dj(_.MoI),x).then(function(Y){if(!Y)throw new _.mc("GetAttestationChallenge returned falsy");a9l(B,Y,x)}).thenCatch(function(Y){_.lb(Y)})},smz=function(B,c,x){return new _.bb(function(P,Y){var g;
return _.X(function(k){if(k.nextAddress==1){var n=c.engagementType,b=c.ids,d={};b=_.p(b!=null?b:[]);for(var q=b.next();!q.done;q=b.next())q=q.value,q.encryptedVideoId?d.encryptedVideoId=q.encryptedVideoId:q.externalChannelId?d.externalChannelId=q.externalChannelId:q.commentId?d.commentId=q.commentId:q.externalOwnerId?d.externalOwnerId=q.externalOwnerId:q.artistId?d.artistId=q.artistId:q.playlistId?d.playlistId=q.playlistId:q.externalPostId?d.externalPostId=q.externalPostId:q.shareId&&(d.shareId=q.shareId);
return _.K(k,TrF(n,d),2)}g=k.yieldResult;if(!g.challenge)return _.Ob(Error("pi")),g06(B,c,x).then(P,Y),k.return();n=g;d={challenge:n.challenge};d.webResponse=n.webResponse;d.engagementType=c.engagementType;d.ids=c.ids;_.Fa(B.innertubeTransportService,d,_.Dj(wWr),x).then(P,Y);_.Kq(k)})})},wro=function(B,c){var x,P,Y,g;
_.X(function(k){if(k.nextAddress==1){x=_.t(c,_.OYW);if(!(x&&x.listId&&B.response&&B.response.playingVideoId)||B.listId!==x.listId)return k.return();B.index===void 0&&(B.index=0);return _.K(k,_.sNy(B.JSC$10864_playlistNetworkManager,x.listId,B.index,B.response.playingVideoId),2)}P=k.yieldResult;if(!P)return k.return();Y=P.playlistId;g=P.playlistPanelRenderer;B.setPlaylistData(Y,g,P.autoplayRenderer);_.Kq(k)})},pHl=function(B,c,x){var P=B.getParams(x),Y=_.t_O(c,P),g=B.getTempData(c,x);
g.endpoint=JSON.stringify(c);_.T("enable_unknown_lact_fix_on_html5")&&(_.cp().resolve(_.lv),g.lact=_.co());var k={headers:{"X-YouTube-STS":_.v5("STS"),"x-youtube-csoc":1}};_.Da(Y,g);return new _.bb(function(n,b){var d=B.getXhrParams(P),q;_.T("kevlar_cache_on_ttl_player")&&(q=_.TC.instance);q&&_.W$W(q,c)?_.zAF(q,c,g,window.location.href).then(function(C){C?n(C):b()},b):_.xWQ(B.JSC$11109_networkManager_,c,d,B.onPartsCallback_.bind(B),k).then(function(C){C?n(C):b()},b)})},klB=function(B,c){B.triggerPromise_=
c.start();
B.triggerPromise_.then(function(x){var P=B.prefetchEndpointProvider_.getPrefetchEndpoint();if(P){var Y=v9z[B.prefetchJobConfig_.pageType].prefetchedFragments;B.prefetchRequestPromise_=pHl(B.JSC$11145_networkPrefetchRequest_,P,{fragmentsRequested:Y,timeBeforeNextVideo:x});B.prefetchResponseCacheKey_=B.JSC$11145_networkPrefetchRequest_.getCacheKeyForEndpoint(P);u2s(B);B.prefetchRequestPromise_.then(function(g){B.storePrefetchedDataCallback_(B.prefetchResponseCacheKey_,g);if(_.T("web_prefetch_preload_video")&&
Y.length===1&&Y[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var k=_.t(P,_.TF),n=k!=null,b={raw_player_response:g,watch_endpoint:k};(g=_.cp().resolve(n?_.LAy:_.Yx))&&P&&g.then(function(d){n&&_.T("web_queue_preload_video")?(b.prefer_gapless=!0,d.queueNextVideo(b)):d.preloadVideoByPlayerVars(b)})}})}})},nh=function(B,c,x,P){this.prefetchEndpointProvider_=B;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=c;this.prefetchJobConfig_=x;this.JSC$11145_networkPrefetchRequest_=P;this.prefetchResponseCacheKey_=null};
nh.prototype.enqueue=function(){this.triggerPromise_||(klB(this,A9o(this)),_.wX(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
nh.prototype.resolve=function(){this.cancel()};
nh.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.");u2s(this)};
nh.prototype.onVisibilityChange_=function(){var B=this;_.ya(_.SNX)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){B.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||klB(this,A9o(this))};
XHF=function(B,c,x,P,Y){c&&(c==null?0:c.videoId)&&x&&x.entries&&_.T("kevlar_enable_shorts_prefetch_in_sequence")&&(RLA(B),c=x.entries.map(function(g){var k;return(k=_.t(g.command,_.TF))==null?void 0:k.videoId}).indexOf(c.videoId),x=x.entries[c+1],x!=null&&x.command&&!_.t(x==null?void 0:x.command,_.Fm)&&(P=new fx6([x.command],new SmS(P,_.EE,1),null,"shorts",!1),B.pendingPrefetchJob_=new nh(new HFs(P.autonavEndpoints),function(){return!1},P,new $o(Y)),B.pendingPrefetchJob_.enqueue()))};
$_S=function(B,c,x,P,Y,g){var k=_.eP.getInstance();if(!_.T("block_all_player_prefetch_requests")){RLA(B);var n=!!x.getPlaylistId(),b=x.getVideoData().isLive&&x.getVideoData().hasProgressBarBoundaries;if((k.getState()==2||n||b)&&(!x.getVideoData().isLive||b)){k={inPlaylist:n,videoDuration:x.getDuration(),makeUpNextTrigger:function(q){return new r9o(x,_.EE,q)},
makePlaybackTrigger:function(q){return new SmS(x,_.EE,q)}};
var d=iFi(c,k);d&&(B.pendingPrefetchJob_=new nh(d.isInPlaylist?new ZFA(Y):new HFs(d.autonavEndpoints),function(q,C){C=new MrN(v9z[d.pageType].pageFragments,v9z[d.pageType].prefetchedFragments,C);return _.MSI(C)?(B.prefetchCache_.set(q,C),!0):!1},d,new ko(P,x,g,Y)),B.pendingPrefetchJob_.enqueue())}}};
n0z=function(){var B=_.Mm();B.signals.parkOrScheduleJob(function(){var c=B.storage;if(c.storage)if(lxr(c)){var x=c.getPlaylistId();c=E9B(c);x=!!x&&c!==void 0}else c.clear(),x=!1;else x=!1;if(x){x=B.pageManager.isOnWatch();a:{var P=B.storage;if(P.storage&&lxr(P)&&(c=P.getPlaylistId(),P=E9B(P),c&&P!==void 0)){x={recoverPlaylistCommand:{listId:c,index:P,openMiniplayer:!x,openListPanel:x,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}x=void 0}x&&_.Qb(B.JSC$10864_actionRouter,[x],null)}},0,"ma")};
bLo=function(B,c,x,P,Y,g){var k=_.JW(7111);_.Xa(B.JSC$16188_screenManager,k,g?_.VF(g):void 0);_.n0(B.JSC$16188_screenManager,k,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:P,offlineId:c,offlineabilityFormatType:x,isDefaultFormatType:Y==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Y}})};
Klc=function(B,c,x,P,Y){var g,k,n,b,d;return _.X(function(q){if(q.nextAddress==1)return _.K(q,B.JSC$16188_playerApiPromise,2);g=q.yieldResult;bLo(B,c,x,"OFFLINE_OBJECT_TYPE_PLAYLIST",P,Y);if(n=_.Ojn[B.entityTypeMap.listEntityType])d={},k=(d[n]={maximumDownloadQuality:(b=x)!=null?b:void 0},d);return _.K(q,g.queueOfflineAction(c,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)})};
jm6=function(B,c){var x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return _.K(k,B.JSC$16188_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){x=k.yieldResult;if(!x)return _.Ob(new _.mc("PES is undefined")),k.return();P=_.kN(c,"downloadStatusEntity");return _.K(k,WUs(x,P,"downloadStatusEntity"),3)}Y=k.yieldResult;return k.return((g=Y)==null?void 0:g.downloadState)})};
U_z=function(B,c,x,P,Y){var g,k,n,b,d,q;return _.X(function(C){switch(C.nextAddress){case 1:return _.K(C,B.JSC$16188_playerApiPromise,2);case 2:g=C.yieldResult;bLo(B,c,x,"OFFLINE_OBJECT_TYPE_VIDEO",P,Y);if(n=_.Ojn[B.entityTypeMap.singleEntityType])d={},k=(d[n]={maximumDownloadQuality:(b=x)!=null?b:void 0},d);return _.K(C,jm6(B,c),3);case 3:q=C.yieldResult;if(q!=="DOWNLOAD_STATE_USER_DELETED"){C.jumpTo(4);break}return _.K(C,B.deleteVideo(c),4);case 4:return _.K(C,g.queueOfflineAction(c,B.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)}})};
d_S=function(B,c,x,P,Y){return _.X(function(g){return g.nextAddress==1?_.K(g,B.deleteVideo(c,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.K(g,U_z(B,c,x,P,Y),0)})};
qLF=function(B,c,x){var P,Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.JSC$16188_playerApiPromise,2);P=g.yieldResult;Y=_.kN(c,"mainVideoDownloadStateEntity");return _.K(g,P.updateDownloadState(Y,x),0)})};
nHz=function(B){var c=_.cp().resolve(_.Rb);return _.X(function(x){if(x.nextAddress==1)return c.previousDownloadStateForVideo[B]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&c.previousDownloadStateForVideo[B]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?x.jumpTo(2):_.K(x,c.resumeVideoDownload(B),2);if(x.nextAddress!=4)return _.K(x,qLF(c,B,c.previousDownloadStateForVideo[B]),4);delete c.previousDownloadStateForVideo[B];_.Kq(x)})};
Xqz=function(B,c){var x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$16188_playerApiPromise,2);x=P.yieldResult;return _.K(P,x.queueOfflineAction(c,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
suy=function(){var B=_.cp().resolve(_.Rb),c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$16188_playerApiPromise,2);if(P.nextAddress!=3)return c=P.yieldResult,x={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.K(P,c.queueOfflineAction("!*$_ALL_ENTITIES_!*$",B.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",x),3);var Y=B.JSC$16188_commandHandler,g=Y.resolveCommand,k=_.Up("DELETING_ALL",void 0,"Downloads are being deleted");
g.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.c3(k)}},popupType:"TOAST"}});_.Kq(P)})};
CAB=function(B,c){var x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return _.K(b,B.JSC$16188_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return x=b.yieldResult,x?_.K(b,WUs(x,_.wL,"downloadsPageViewConfigurationEntity"),3):(_.Ob(new _.mc("PES is undefined")),b.return());Y=(P=b.yieldResult)!=null?P:{};n=(k=(g=Y)==null?void 0:g.downloadsUpsellBannerVisibility)!=null?k:{};return n.visibleWithConnection?_.K(b,c.refreshAllStaleEntities(0),0):b.jumpTo(0)})};
hYs=function(B){var c,x;return _.X(function(P){if(P.nextAddress==1)return _.K(P,B.JSC$16188_prefStorage,2);c=P.yieldResult;return P.return((x=c)==null?void 0:x.get("sdois"))})};
m_c=function(B){var c,x,P,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return _.K(n,B.JSC$16188_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3){c=n.yieldResult;if(!c)return _.Ob(new _.mc("PES is undefined")),n.return();x=_.kN("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.K(n,WUs(c,x,"settingEntity"),3)}P=n.yieldResult;return n.return((k=(Y=P)==null?void 0:(g=Y.settingOptionValue)==null?void 0:g.boolValue)!=null?k:!1)})};
TXS=function(B,c){var x,P,Y,g;return _.X(function(k){switch(k.nextAddress){case 1:return((x=c)==null?void 0:x.formatType)===void 0?k.return():_.K(k,B.JSC$16188_prefStorage,2);case 2:P=k.yieldResult;if(P===void 0)return k.return();if(((Y=c)==null?void 0:Y.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.K(k,P.set("lmqf",c.formatType),8);if(((g=c)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){k.jumpTo(0);break}return _.K(k,P.set("lmqf",c.formatType),
6);case 6:return _.K(k,P.set("lmqflst",Math.floor((0,_.BA)())),0);case 8:return _.K(k,P.remove("lmqflst"),0)}})};
V_z=function(B){var c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,B.JSC$16188_prefStorage,2);case 2:c=P.yieldResult;if(!c){P.jumpTo(3);break}return _.K(P,c.get("lmqflst"),4);case 4:if(x=P.yieldResult,x!==void 0)return P.return(x);case 3:return P.return(0)}})};
t_6=function(B){var c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,B.JSC$16188_prefStorage,2);case 2:c=P.yieldResult;if(c===void 0){P.jumpTo(3);break}return _.K(P,c.get("lmqf"),4);case 4:if(x=P.yieldResult,x!==void 0)return P.return(x);case 3:return P.return("SD")}})};
h6z=function(B,c,x){var P,Y,g,k,n,b,d,q;_.X(function(C){switch(C.nextAddress){case 1:return _.K(C,TXS(B,(P=c)==null?void 0:P.actionParams),2);case 2:Y=c.playlistId;if(!Y)return C.return();if(c.action==="ACTION_ADD")return((k=c.actionParams)==null?0:k.formatType)?_.K(C,Klc(B,Y,c.actionParams.formatType,(q=c.actionParams)==null?void 0:q.settingsAction,x),0):_.K(C,B.offlineWebClientEligibility,14);if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var h=B.JSC$16188_commandHandler,V=h.resolveCommand,N=_.v5("INNERTUBE_CLIENT_NAME");
var l=N==="WEB_REMIX"?_.Up("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Up("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var E=N==="WEB_REMIX"?[_.Up("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];N=N==="WEB_REMIX"?_.Up("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Up("DELETE",void 0,"Delete");var S=_.Up("CANCEL",void 0,"Cancel");l=VRr(l,E,N,S,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Y});V.call(h,{openPopupAction:l});
return C.return()}if(c.action==="ACTION_REMOVE")return _.K(C,Xqz(B,Y),0);if(c.action!=="ACTION_SYNC"){C.jumpTo(0);break}return _.K(C,B.JSC$16188_playerApiPromise,9);case 9:return g=C.yieldResult,_.K(C,g.queueOfflineAction(Y,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return n=C.yieldResult,_.K(C,t_6(B),15);case 15:return b=C.yieldResult,_.K(C,V_z(B),16);case 16:d=C.yieldResult,c.onAddCommand&&B.JSC$16188_commandHandler.resolveCommand(c.onAddCommand,{form:{preferredFormatType:b,
offlineWebClientEligibility:n,lastOfflineQualitySettingsSavedMs:d.toString()}}),C.jumpTo(0)}})};
qiz=function(B,c,x){var P,Y,g,k,n,b,d,q,C,h,V,N,l,E;_.X(function(S){switch(S.nextAddress){case 1:return _.K(S,TXS(B,(P=c)==null?void 0:P.actionParams),2);case 2:Y=c.videoId;if(!Y)return S.return();if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var M=B.JSC$16188_commandHandler,f=M.resolveCommand,Z=_.v5("INNERTUBE_CLIENT_NAME");var u=Z==="WEB_REMIX"?_.Up("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Up("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var e=Z==="WEB_REMIX"?[_.Up("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];Z=Z==="WEB_REMIX"?_.Up("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Up("DELETE",void 0,"Delete");var px=_.Up("CANCEL",void 0,"Cancel");u=VRr(u,e,Z,px,{signal:"DELETE_DOWNLOAD",targetId:Y});f.call(M,{openPopupAction:u});return S.return()}if(c.action==="ACTION_ADD")return((h=c.actionParams)==null?0:h.formatType)?_.K(S,U_z(B,Y,c.actionParams.formatType,(E=c.actionParams)==null?void 0:E.settingsAction,x),0):_.K(S,B.offlineWebClientEligibility,
23);if(c.action==="ACTION_RETRY")return _.K(S,t_6(B),19);if(c.action==="ACTION_PAUSE")return _.K(S,B.pauseVideoDownload(Y),0);if(c.action==="ACTION_RESUME")return _.K(S,B.resumeVideoDownload(Y),0);if(c.action!=="ACTION_REMOVE"){S.jumpTo(0);break}return _.K(S,jm6(B,Y),13);case 13:return g=S.yieldResult,B.previousDownloadStateForVideo[Y]=(k=g)!=null?k:"DOWNLOAD_STATE_UNKNOWN",_.K(S,qLF(B,Y,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(B.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
B.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){S.jumpTo(15);break}return _.K(S,B.pauseVideoDownload(Y),15);case 15:M=_.Up("DELETED_VIDEO",void 0,"Video deleted from downloads.");f=_.Up("UNDO_ACTION",void 0,"Undo");u=_.Up("CLOSE",void 0,"Close");n={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.c3(M),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.c3(f),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:M+" "+f}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:u}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};B.JSC$16188_commandHandler.resolveCommand(n);
S.jumpTo(0);break;case 19:b=S.yieldResult;b==="UNKNOWN_FORMAT_TYPE"&&(b="SD");d="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((q=c.actionParams)==null?0:q.formatType)b=c.actionParams.formatType,d=(C=c.actionParams)==null?void 0:C.settingsAction;return _.K(S,d_S(B,Y,b,d,x),20);case 20:return S.return();case 23:return V=S.yieldResult,_.K(S,t_6(B),24);case 24:return N=S.yieldResult,_.K(S,V_z(B),25);case 25:l=S.yieldResult,c.onAddCommand&&B.JSC$16188_commandHandler.resolveCommand(c.onAddCommand,
{form:{preferredFormatType:N,offlineWebClientEligibility:V,lastOfflineQualitySettingsSavedMs:l.toString()}}),S.jumpTo(0)}})};
wHy=function(B,c){var x,P,Y,g,k,n,b;return _.X(function(d){if(d.nextAddress==1)return _.K(d,B.JSC$16188_persistentStorePromiseAccessor(),2);x=d.yieldResult;if(!x)return _.Ob(new _.mc("PES is undefined")),d.return();if((P=c)==null||!P.settingItemId)return d.return();Y=c;g=Y.settingItemId;k=Y.boolValue;n=_.kN(g,"settingEntity");b={key:n,settingOptionValue:{boolValue:k}};return _.K(d,J9B(x,b),0)})};
NX6=function(B,c){var x,P,Y,g,k,n,b;return _.X(function(d){switch(d.nextAddress){case 1:return _.K(d,B.JSC$16188_prefStorage,2);case 2:return x=d.yieldResult,P=_.CW(),_.K(d,B.JSC$16188_persistentStorePromiseAccessor(),3);case 3:return Y=d.yieldResult,x?Y?_.K(d,x.get("sdois"),4):(_.Ob(new _.mc("PES is undefined")),d.return()):(_.Ob(new _.mc("prefStorage is undefined")),d.return());case 4:g=d.yieldResult;n=(k=c)==null?void 0:k.boolValue;n===void 0||_.T("kevlar_set_sd_enabled_flag_killswitch")||_.hi(0,
197,!0);g===void 0&&n===void 0&&(n=!1);if(n===void 0){d.jumpTo(0);break}return _.K(d,x.set("sdois",n),6);case 6:return _.T("kevlar_set_sd_enabled_flag_killswitch")||(_.hi(0,196,n),P.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:n},_.K(d,wHy(B,b),0)}})};
I9z=function(B,c,x){var P,Y,g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:return _.K(b,hYs(B),2);case 2:return P=b.yieldResult,_.K(b,NX6(B,x),3);case 3:return _.K(b,hYs(B),4);case 4:return Y=b.yieldResult,g=Y!==P,_.K(b,m_c(B),5);case 5:k=b.yieldResult&&!_.T("kevlar_modern_downloads_page");if((n=!Y&&!k)||g)return _.K(b,c.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})};
Kzy=function(){var B=_.cp().resolve(_.Rb),c;_.X(function(x){switch(x.nextAddress){case 1:return _.K(x,B.JSC$16188_playerApiPromise,2);case 2:c=x.yieldResult;if(!_.T("kevlar_force_refresh_smart_downloads")){x.jumpTo(3);break}return _.K(x,c.refreshAllStaleEntities(0),4);case 4:return x.return();case 3:return _.K(x,c.refreshAllStaleEntities(),5);case 5:return _.K(x,I9z(B,c),6);case 6:if(_.T("enable_download_pep_for_premium_countries"))return _.K(x,CAB(B,c),0);x.jumpTo(0)}})};
T_y=function(B,c){var x,P;_.X(function(Y){switch(Y.nextAddress){case 1:return _.K(Y,B.JSC$16188_playerApiPromise,2);case 2:x=Y.yieldResult;switch((P=c)==null?void 0:P.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Y.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Y.jumpTo(4)}Y.jumpTo(0);break;case 3:return _.K(Y,I9z(B,x,c),6);case 6:Y.jumpTo(0);break;case 4:return _.K(Y,wHy(B,c),7);case 7:Y.jumpTo(0)}})};
JXo=function(B,c){var x,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.K(g,B.JSC$16188_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){x=g.yieldResult;if(!x)return _.Ob(new _.mc("PES is undefined")),g.return(!1);if(!c)return g.return(!1);P=_.kN(c,"mainVideoEntity");return _.K(g,WUs(x,P,"mainVideoEntity"),3)}Y=g.yieldResult;return g.return(Y!==void 0)})};
tFz=function(B){var c=_.cp().resolve(_.Rb),x,P,Y,g,k,n,b,d,q,C,h;_.X(function(V){switch(V.nextAddress){case 1:return _.K(V,c.JSC$16188_playerApiPromise,2);case 2:x=V.yieldResult;Y=(P=B)==null?void 0:P.actions;if(!Y)return V.return();g=_.p(Y);k=g.next();case 3:if(k.done){V.jumpTo(0);break}n=k.value;d=b=void 0;if(!(((b=n)==null?0:b.entityKey)&&((d=n)==null?0:d.actionType))){V.jumpTo(4);break}q=_.gL(n.entityKey);C=q.entityId;h=q.entityType;return _.K(V,x.queueOfflineAction(C,h,n.actionType),4);case 4:k=
g.next(),V.jumpTo(3)}})};
WlA=function(B,c){var x,P,Y,g,k;return _.X(function(n){if(n.nextAddress==1)return _.K(n,B.JSC$16188_prefStorage,2);if(n.nextAddress!=3)return(x=n.yieldResult)?_.K(n,x.get("psi"),3):n.return();P=n.yieldResult;k={isPaused:c,lastSyncTimestamp:(g=(Y=P)==null?void 0:Y.lastSyncTimestamp)!=null?g:"0"};return _.K(n,x.set("psi",k),0)})};
I3l=function(B){var c=_.cp().resolve(_.Rb),x,P,Y,g,k,n,b,d;return _.X(function(q){switch(q.nextAddress){case 1:return _.K(q,c.JSC$16188_playerApiPromise,2);case 2:x=q.yieldResult;Y=((P=B)==null?void 0:P.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((n=B)==null?void 0:n.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return q.jumpTo(4)}q.jumpTo(5);break;case 3:return _.K(q,WlA(c,Y),6);case 6:q.jumpTo(5);break;case 4:return _.K(q,JXo(c,(b=B)==null?void 0:b.videoId),7);case 7:q.yieldResult&&(g=(d=B)==null?void 0:d.videoId,k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");q.jumpTo(5);break;case 5:if(g&&k)return _.K(q,x.queueOfflineAction(g,"videoPlaybackPositionEntity",k),0);q.jumpTo(0)}})};
l9N=function(B,c){var x;c!==1||((x=B.currentPersistentToast)==null?0:x.isOpened())?B.openToast():B.currentPersistentToast=void 0};
E06=function(B,c){var x;return(x=B.transitionTasksMap.get(c))!=null?x:[]};
OLA=function(B,c){var x=[];B.elementTasksMap.forEach(function(P){(P=P.get(c))&&x.push(P)});
return x};
o0c=function(B,c,x,P){P=P===void 0?{}:P;var Y=B.defaultViewTransitionOptions;return Object.assign({},Y,P,{beforeTransition:function(){x.forEach(function(b){b.beforeTransition()});
var g;(g=Y.beforeTransition)==null||g.call(Y);var k,n;(n=(k=P).beforeTransition)==null||n.call(k);c.forEach(function(b){b.beforeTransition()})},
afterTransition:function(){x.forEach(function(b){b.afterTransition()});
var g;(g=Y.afterTransition)==null||g.call(Y);var k,n;(n=(k=P).afterTransition)==null||n.call(k);c.forEach(function(b){b.afterTransition()})}})};
r6=function(B,c,x){B.transitionTasksMap.has(c)?B.transitionTasksMap.get(c).push(x):(B=new _.mc("Transition task registered for unknown transition type",c),_.lb(B))};
QmS=function(B,c,x){if(B.transitionTasksMap.has(c)){var P=B.transitionTasksMap.get(c).filter(function(Y){return Y!==x});
B.transitionTasksMap.set(c,P)}};
Flz=function(B,c){var x=E06(B,c);x=_.p(x);for(var P=x.next();!P.done;P=x.next())P=P.value,P.runOnce&&QmS(B,c,P);B.elementTasksMap.forEach(function(Y,g){Y.forEach(function(k,n){k.runOnce&&c===n&&(Y.delete(n),Y.size===0&&B.elementTasksMap.delete(g))})})};
v08=function(B,c,x){var P,Y,g,k,n,b,d,q,C;_.X(function(h){if(h.nextAddress==1){if(B.config.disableAllTransitions)return h.return(c());if((P=x)==null||!P.transitionType)return h.return(_.zPi(c,(Y=x)==null?void 0:Y.viewTransitionOptions));g=x;k=g.transitionType;n=g.viewTransitionOptions;b=B.config.transitionConfigs.get(k);if(!b)return h.return(c());d=E06(B,k);q=OLA(B,k);C=_.zPi(c,o0c(b,d,q,n));return _.K(h,C,2)}Flz(B,k);_.Kq(h)})};
zYc=function(){var B,c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return B=navigator,(c=B.storage)!=null&&c.persisted?_.K(Y,(x=B.storage)==null?void 0:x.persisted(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");P=Y.yieldResult;return Y.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
SLr=function(){var B,c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return B=navigator,(c=B.storage)!=null&&c.persist?_.K(Y,(x=B.storage)==null?void 0:x.persist(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");P=Y.yieldResult;return Y.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
yXS=function(){var B,c;return _.X(function(x){switch(x.nextAddress){case 1:return B="PERSISTED_STATE_NOT_SUPPORTED",_.kM(x,2),_.K(x,zYc(),4);case 4:B=x.yieldResult;if(B!=="PERSISTED_STATE_NOT_GRANTED"){x.jumpTo(5);break}return _.K(x,SLr(),6);case 6:B=x.yieldResult;case 5:_.Gw(x,3);break;case 2:c=_.be(x),c instanceof Error&&_.lb(c);case 3:return _.JP("persistentStorageStateChecked",{persistedState:B}),x.return(B)}})};
GlA=function(B,c){var x=[],P=!1;c=_.p(c);for(var Y=c.next();!Y.done;Y=c.next()){Y=B.moduleRegistry[Y.value];var g=void 0,k=void 0;((g=Y)==null?0:g.isFetching)&&((k=Y)==null?0:k.resolver)?(x.push(Y.resolver.promise),P=!0):(Y=new _.kH,Y.resolve(void 0),x.push(Y.promise))}return P?Promise.all(x):void 0};
M_F=function(B,c,x){if(B.isInitialized()){var P=xL(x),Y=P==="watch";P=P==="shorts";var g=xL(c)==="watch";if(Y)g||(B.backgroundPageData=c),B.watchPipMode&&g||B.deactivate(x.endpoint);else if(P){if(xL(c)!=="shorts"){var k;(k=B.getPlayerElement())==null||k.pause()}}else g&&!B.watchPipMode&&(wp8(c,x)?(B.watchWhileMode&&_.yOs(B,!1),_.oPr(B,c)):B.isMiniplayerActive()&&B.watchWhileMode&&B.deactivate());g&&_.MJN(B);B.shortsPipMode&&!P&&(window.focus(),B.deactivate());if(B.pictureInPictureEnabled())if(P&&
B.shortsPipEnabled||Y&&B.watchPipEnabled)_.FCY(B.handleMediaSessionPipActivation);else if(!B.isMiniplayerActive()&&(B.shortsPipEnabled||B.watchPipEnabled)&&window.documentPictureInPicture&&_.lX()&&_.$Yw("Chromium")>=120){B=_.QMd().mediaSession;try{B.setActionHandler("enterpictureinpicture",null)}catch(n){}}}};
Llz=function(B,c){var x,P;_.X(function(Y){if(Y.nextAddress==1){if(!B||!B.navigationEndpoint)return Y.return();_.dd().lockupActivation=!0;var g;c?g=_.fk(_.Up("QUEUE",void 0,"Queue")):g=B.longBylineText;P=(x=g)&&B.title?{miniplayerTitle:B.title,miniplayerSubtitle:x,playlistData:null}:void 0;return _.K(Y,_.ySd(_.cp().resolve(_.Ge),B.navigationEndpoint,!0,P),2)}_.dd().userActivation=!0;_.Kq(Y)})};
Tjy=function(B,c){var x,P,Y,g,k,n;_.X(function(b){if(b.nextAddress==1){x=_.t(c,_.EV5);if(!x||!x.listId)return b.return();B.index=x.index||B.index||0;P=B.response&&B.response.playingVideoId||void 0;return _.K(b,_.sNy(B.JSC$10864_playlistNetworkManager,x.listId,B.index,P),2)}Y=b.yieldResult;if(!Y)return b.return();g=Y.playlistId;k=Y.playlistPanelRenderer;!B.queueProxy&&g&&k&&g.startsWith("TLPQ")&&(B.queueProxy=new _.ok(B.JSC$10864_playlistNetworkManager,g,B.setPlaylistData.bind(B),B.clearQueue.bind(B),
_.Z0l(k),B.storage));if(x.openMiniplayer&&(n=_.H0o(k))&&!B.pageManager.isOnWatch()){var d=n,q=x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";B.isMiniplayerActive()?B.openToast(d):Llz(d,q)}B.setPlaylistData(g,k,Y.autoplayRenderer);_.Kq(b)})};
CgA=function(B,c){var x=_.Mm();x.index===void 0&&(x.index=0);x.temporaryItems.push.apply(x.temporaryItems,_.wq(B));if((c.videoId||c.videoIds)&&x.index!==void 0&&c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!x.queueProxy){var P=[];if(x.response){var Y=_.cp().resolve(_.Ge).isMiniplayerActive();if(x.response.playlistPanelRenderer&&x.response.playlistId&&!x.response.playlistId.startsWith("TLPQ")){if(x.pageManager.isOnWatch()||Y)P=_.Z0l(x.response.playlistPanelRenderer)}else x.response.playingVideoId&&
!c.openMiniplayer?P.push(x.response.playingVideoId):Y&&x.response.playingVideoId&&c.openMiniplayer&&P.push(x.response.playingVideoId)}x.queueProxy=new _.ok(x.JSC$10864_playlistNetworkManager,"",x.setPlaylistData.bind(x),x.clearQueue.bind(x),P,x.storage);x.queueProxy.JSC$10810_setCurrentIndex(x.index)}x.queueProxy.addVideos(c.videoIds||[c.videoId],c)}OFy(x,B);x.response&&_.L0(x,_.Zp(x,x.response.autoplayRenderer));x.pageManager.isOnWatch()?x.isMiniplayerActive()&&x.openToast(B[0]):(B=B[0],c=c.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",x.isMiniplayerActive()?x.openToast(B):Llz(B,c))};
ZLl=function(B){var c=_.nA(B);if(c=="object"||c=="array"){if(typeof B.clone==="function")return B.clone();if(typeof Map!=="undefined"&&B instanceof Map)return new Map(B);if(typeof Set!=="undefined"&&B instanceof Set)return new Set(B);c=c=="array"?[]:{};for(var x in B)c[x]=ZLl(B[x]);return c}return B};
bZ=function(B,c){return _.uOI(_.hd(B,c,void 0,_.CY))};
Kh=function(B,c){return _.wl(_.hd(B,c,void 0,_.CY))};
js=function(B,c){return _.KmA(_.hd(B,c,void 0,_.CY))};
Ut=function(B,c){return _.hd(B,c,void 0,_.CY,_.$z)};
HLF=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;_.f$(c,x,_.Go(B.decoder_,_.Ps));return!0},_.rt,_.ZZ);
f9c=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.Go(B.decoder_,_.Ps));return!0},_.rt,_.ZZ);
iLz=_.HN(function(B,c,x){if(B.nextWireType_!==1)return!1;var P=B.decoder_;B=_.LY(P);P=_.LY(P);B=_.Bs(B,P);_.f$(c,x,B);return!0},_.f87,_.otx);
AXz=_.HN(function(B,c,x){if(B.nextWireType_!==5)return!1;_.f$(c,x,_.LY(B.decoder_));return!0},function(B,c,x){c=_.NN(c);
c!=null&&(_.AO(B,x,5),_.Dm(B.encoder_,c))},_.OBQ);
uos=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;B=_.ntI(B.decoder_);_.f$(c,x,B===!1?void 0:B);return!0},_.iAl,_.Jpd);
D_F=_.HN(function(B,c,x){if(B.nextWireType_!==2)return!1;B=_.qTq(B);_.f$(c,x,B===""?void 0:B);return!0},_.DNA,_.Wu$);
rXy=_.HN(function(B,c,x){if(B.nextWireType_!==2)return!1;B=_.CxQ(B);_.f$(c,x,B===_.QW()?void 0:B);return!0},_.RS7,_.vt7);
RYF=_.zSI(function(B,c,x){if(B.nextWireType_!==0&&B.nextWireType_!==2)return!1;c=_.IU(c,c[_.mm]|0,x);B.nextWireType_==2?_.hrI(B,axr,c):c.push(_.My(B.decoder_));return!0},function(B,c,x){c=_.vzX(_.wl,c,!0);
if(c!=null&&c.length){x=_.bA7(B,x);for(var P=0;P<c.length;P++)_.Loq(B.encoder_,c[P]);_.Kod(B,x)}},_.zrO);
eYN=_.HN(function(B,c,x){if(B.nextWireType_!==0)return!1;B=_.My(B.decoder_);_.f$(c,x,B===0?void 0:B);return!0},_.eSw,_.zrO);
BVi=_.HN(function(B,c,x,P){if(B.nextWireType_!==0)return!1;_.td(c,x,P,_.My(B.decoder_));return!0},_.eSw,_.zrO);
_.f6=function(B){this.privateDoNotAccessOrElseWrappedStyleSheet=B};
_.f6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var ECz=function(B,c){return new _.Jx(B.x+c.x,B.y+c.y)},cWr=function(B){return B.previousElementSibling!==void 0?B.previousElementSibling:_.uOF(B.previousSibling,!1)},xel=function(B,c){var x=[];
for(c=c||0;c<B.length;c+=2)_.zIQ(B[c],B[c+1],x);return x.join("&")},PvS=function(B,c){var x=arguments.length==2?xel(arguments[1],0):xel(arguments,1);
return _.vFI(B,x)},Y9o=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Y9o,_.zL);Y9o.prototype.getValue=function(){var B=_.hd(this,2);if(Array.isArray(B)||B instanceof _.zL)throw Error("aa");return _.Vl(this,2)};
var DMl=function(){var B=_.au();this.JSC$7963_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.gf("channel_type"))};
DMl.prototype.increment=function(B){this.JSC$7963_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",B)};
var rJB=function(){var B=_.au();this.JSC$7966_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.gf("channel_type"))};
rJB.prototype.increment=function(B){this.JSC$7966_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",B)};
var ehN=function(){var B=_.au();this.JSC$7969_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.gf("channel_type"))};
ehN.prototype.increment=function(B){this.JSC$7969_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",B)};
var RhS=function(){var B=_.au();this.JSC$7972_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
RhS.prototype.increment=function(){this.JSC$7972_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Bxi=function(){var B=_.au();this.JSC$7975_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.gf("channel_type"),_.gf("error_type"))};
Bxi.prototype.increment=function(B,c){this.JSC$7975_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",B,c)};
var cg6=function(){var B=_.au();this.JSC$7978_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
cg6.prototype.increment=function(){this.JSC$7978_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var xpF=function(){var B=_.au();this.JSC$7981_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
xpF.prototype.increment=function(){this.JSC$7981_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var iri=function(){var B=_.au();this.JSC$7987_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
iri.prototype.increment=function(){this.JSC$7987_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var anN=function(B){return B.getCount&&typeof B.getCount=="function"?B.getCount():_.R7(B)||typeof B==="string"?B.length:_.wW.getCount(B)},gUl=function(B,c){if(typeof B.every=="function")return B.every(c,void 0);
if(_.R7(B)||typeof B==="string")return Array.prototype.every.call(B,c,void 0);for(var x=_.Sd9(B),P=_.eQ(B),Y=P.length,g=0;g<Y;g++)if(!c.call(void 0,P[g],x&&x[g],B))return!1;return!0},s2F=function(B,c,x,P){var Y=new _.ih(null);
B&&_.B_(Y,B);c&&_.c_(Y,c);x&&_.xf(Y,x);P&&_.P_(Y,P);return Y},pwy=function(){var B=_.QY&&_.jd(_.Rz3,10)>=0,c;
if(c=_.Nu7)c=_.jd(_.rMS,10)>=0;var x=_.UZ&&_.jd(_.Rz3,85)>=0;return _.nY||B||c||x},kUc=function(B){var c=_.dQy(B);
return c&&pwy()?-B.scrollLeft:c&&_.zP(B,"overflowX")!="visible"?B.scrollWidth-B.clientWidth-B.scrollLeft:B.scrollLeft},Xwi=function(B,c){c=Math.max(c,0);
_.dQy(B)?pwy()?B.scrollLeft=-c:B.scrollLeft=B.scrollWidth-c-B.clientWidth:B.scrollLeft=c},Gwi=0,fts=!1;
YL.prototype.set=function(B){this.relativeTimeStart_=B};
YL.prototype.reset=function(){this.set(_.gQ())};
YL.prototype.get=function(){return this.relativeTimeStart_};
var $ei=null,nUF=function(){$ei||($ei=new YL)},bwy=function(){$ei||($ei=new YL)};
_.sZ(bwy,nUF);_.a=AKl.prototype;_.a.JSC$9316_buffer_="";_.a.set=function(B){this.JSC$9316_buffer_=""+B};
_.a.append=function(B,c,x){this.JSC$9316_buffer_+=String(B);if(c!=null)for(var P=1;P<arguments.length;P++)this.JSC$9316_buffer_+=arguments[P];return this};
_.a.clear=function(){this.JSC$9316_buffer_=""};
_.a.getLength=function(){return this.JSC$9316_buffer_.length};
_.a.toString=function(){return this.JSC$9316_buffer_};
var Kgz=function(){var B={type:"unit",style:"narrow"};this.listType_=B&&B.type?B.type:"conjunction";this.listStyle_=B&&B.style?B.style:"long";this.listSymbols_=bFr;B=0;switch(this.listStyle_){case "short":B=1;break;case "narrow":B=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[B];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[B];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[B];this.listEndPattern_=
this.listSymbols_.AND_END[B];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[B];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[B];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[B];this.listEndPattern_=this.listSymbols_.OR_END[B];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[B],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[B],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[B],this.listEndPattern_=this.listSymbols_.UNIT_END[B]}};
Kgz.prototype.format=function(B){return j2s(this,B)};
var j2s=function(B,c){var x=c.length;switch(x){case 0:return"";case 1:return String(c[0]);case 2:return B.listTwoPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1]))}for(var P=B.listStartPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1])),Y=2;Y<x-1;++Y)P=B.listMiddlePattern_.replace("{0}",P).replace("{1}",String(c[Y]));return B.listEndPattern_.replace("{0}",P).replace("{1}",String(c[x-1]))},XAS=function(){var B={style:1};
this.style_=(B==null?void 0:B.style)||0;this.durationSymbols_=_.QeQ||_.FkW},Uer=function(B,c){switch(c){default:case "years":return B.durationSymbols_.YEAR;
case "months":return B.durationSymbols_.MONTH;case "weeks":return B.durationSymbols_.WEEK;case "days":return B.durationSymbols_.DAY;case "hours":return B.durationSymbols_.HOUR;case "minutes":return B.durationSymbols_.MINUTE;case "seconds":return B.durationSymbols_.SECOND}},dv=function(B,c,x){a:{x=Uer(B,x);
switch(B.style_){case 1:if(x.LONG!=void 0){B=x.LONG;break a}case 2:if(x.NARROW!=void 0){B=x.NARROW;break a}default:B=x.SHORT;break a}B=void 0}return B?(new _.YiW("{DURATION_VALUE,plural,"+B+"}")).format({DURATION_VALUE:c}):""};
XAS.prototype.format=function(B){var c=[],x=B.years,P=B.months,Y=B.weeks,g=B.days,k=B.hours,n=B.minutes;B=B.seconds;x!=null&&c.push(dv(this,x,"years"));P!=null&&c.push(dv(this,P,"months"));Y!=null&&c.push(dv(this,Y,"weeks"));g!=null&&c.push(dv(this,g,"days"));k!=null&&c.push(dv(this,k,"hours"));n!=null&&c.push(dv(this,n,"minutes"));B!=null&&c.push(dv(this,B,"seconds"));return(new Kgz).format(c)};
var dez=!1,cjz=function(B){_.B$.call(this,B.message||B.description||B.name);this.isMissing=B instanceof al;this.isTimeout=B instanceof _.i8&&B.errorCode=="net.timeout";this.isCanceled=B instanceof _.Aa};
_.w(cjz,_.B$);cjz.prototype.name="BiscottiError";var al=function(){_.B$.call(this,"Biscotti ID is missing from server")};
_.w(al,_.B$);al.prototype.name="BiscottiMissingError";var g6=null,Xry=function(){try{var B=_.Gu("yt.ads.biscotti.getId_");return B?B():ouz()}catch(c){return _.Im(c)}},k6F,q98=function(B,c){return _.YN({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:B,command:c}})},Cvz=function(B){return _.YN({type:"SET_GUIDE_IS_EXPANDED",
payload:B})},h_z=function(B){return _.YN({type:"SET_ONLINE_STATUS",
payload:B})},mei=function(B,c){return _.YN({type:"SET_TRANSCRIPTION_STATE",
payload:{high:B,low:c}})},TV6=function(B){return _.YN({type:"SET_OVERLAY_STATE",
payload:B})},V56=0,t5N=function(B,c,x){var P=this;
this.priority=c;this.delay=x;this.jobId=0;this.completionCallback=_.qw;this.wrappedJob=function(){B();P.completionCallback()};
this.id=++V56};
t5N.prototype.enqueue=function(B){this.completionCallback=B;this.jobId=_.EE.addJob(this.wrappedJob,this.priority,this.delay)};
var qS=function(){_.PL.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.w(qS,_.PL);qS.prototype.addJob=function(B,c,x){B=new t5N(B,c,x);this.taskIdToTask.set(B.id,B);this.isActive?wwo(this,B):this.suspendedTasks.add(B);return B.id};
var wwo=function(B,c){B.scheduledTasks.add(c);c.enqueue(function(){B.scheduledTasks.delete(c)})};
qS.prototype.cancelJob=function(B){(B=this.taskIdToTask.get(B))&&(this.scheduledTasks.delete(B)?_.EE.cancelJob(B.jobId):this.suspendedTasks.delete(B))};
qS.prototype.pause=function(){var B=this;this.isActive=!1;this.scheduledTasks.forEach(function(c){_.EE.cancelJob(c.jobId);B.suspendedTasks.add(c)});
this.scheduledTasks.clear()};
qS.prototype.start=function(){var B=this;this.isActive=!0;this.suspendedTasks.forEach(function(c){wwo(B,c)});
this.suspendedTasks.clear()};
qS.prototype.reset=function(){this.scheduledTasks.forEach(function(B){_.EE.cancelJob(B.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Ch=function(B,c){this.JSC$10993_networkService_=B;this.pageRequestPromise=c};
Ch.prototype.fetchData=function(B){NV8(this,this.JSC$10993_networkService_.fetchData(B))};
Ch.prototype.postData=function(B,c){NV8(this,this.JSC$10993_networkService_.postData(B,c))};
Ch.prototype.requestDataForServiceEndpoint=function(B,c){NV8(this,this.JSC$10993_networkService_.requestDataForServiceEndpoint(B,c))};
var NV8=function(B,c){c.then(B.pageRequestPromise.onSuccess,B.pageRequestPromise.onFailure,B.pageRequestPromise)};
Ch.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var hy=function(B){this.buildNetworkRequest_=B;this.pendingRequests_=new Set};
hy.prototype.reset=function(){this.pendingRequests_.forEach(function(B){B.cancel()});
this.pendingRequests_.clear()};
hy.prototype.fetchData=function(B){var c=Iny(this);c.fetchData(B);return c.pageRequestPromise};
hy.prototype.postData=function(B,c){var x=Iny(this);x.postData(B,c);return x.pageRequestPromise};
hy.prototype.requestDataForServiceEndpoint=function(B,c){var x=Iny(this);x.requestDataForServiceEndpoint(B,c);return x.pageRequestPromise};
var Iny=function(B){var c=B.buildNetworkRequest_();B.pendingRequests_.add(c);var x=function(){B.pendingRequests_.delete(c)};
c.pageRequestPromise.then(x,x);return c},JWN=function(B){var c=new qS;
this.JSC$11000_networkService_=B;this.JSC$11000_taskManager_=c;this.JSC$11000_networkManager_=new hy(this.networkRequestFactory_.bind(this))};
_.a=JWN.prototype;_.a.networkRequestFactory_=function(){return new Ch(this.JSC$11000_networkService_,new _.Pl(this.JSC$11000_taskManager_))};
_.a.reset=function(){this.JSC$11000_taskManager_.reset();this.JSC$11000_networkManager_.reset()};
_.a.start=function(){this.JSC$11000_taskManager_.start()};
_.a.pause=function(){this.JSC$11000_taskManager_.pause()};
_.a.getTaskManager=function(){return this.JSC$11000_taskManager_};
_.a.getNetworkManager=function(){return this.JSC$11000_networkManager_};
var jxo=null,qEz=[],se=0,kL=0,pZ=null,Wgz=!1,XZ=null,hUN=void 0,lnA=function(){var B=(0,_.hAQ)();B&&jBc(B,B.mechanism.__iterator__(!0))},nZ=function(B){this.token=B};
nZ.getInstance=function(){var B;return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.RH(),2);B=c.yieldResult;if(!B)return c.return();nZ.instance||(nZ.instance=new nZ(B));return c.return(nZ.instance)})};
var NKz=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,Vli(B.token),2);c=x.yieldResult;return x.return(c.clear("resource-manifest-assets"))})},$L=function(B){this.token=B};
$L.getInstance=function(){var B;return _.X(function(c){if(c.nextAddress==1)return _.K(c,_.RH(),2);B=c.yieldResult;if(!B)return c.return();$L.instance||($L.instance=new $L(B));return c.return($L.instance)})};
var tl8=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,Vli(B.token),2);c=x.yieldResult;return _.K(x,c.clear("auth"),0)})},ipl=!1,EUo=function(B){_.B$.call(this,B)};
_.w(EUo,_.iZt);var Owl="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(" ");CbA()&&Owl.push("details:not(:has(summary))");var mai=Owl.join(",");var GkN=function(){var B=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return B?parseInt(B[1],10):0},oUr=function(B){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+B)!=-1||document.currentScript.src.indexOf("&"+B)!=-1)},Q2c=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},fac=function(B){B.length?FgB(B.shift(),function(){fac(B)}):L4s()},Agy=function(B){return"chrome-extension://"+B+"/cast_sender.js"},FgB=function(B,
c,x){var P=document.createElement("script");
P.onerror=c;x&&(P.onload=x);_.Mg(P,_.ID(B));(document.head||document.documentElement).appendChild(P)},vU8=function(){var B=GkN(),c=[];
if(B>1){var x=B-1;c.push("//www.gstatic.com/eureka/clank/"+B+"/cast_sender.js");c.push("//www.gstatic.com/eureka/clank/"+x+"/cast_sender.js")}return c},L4s=function(){var B=Q2c();
B&&B(!1,"No cast extension found")},HNs=function(){if(z_A){var B=2,c=Q2c(),x=function(){B--;
B==0&&c&&c(!0)};
window.__onGCastApiAvailable=x;FgB("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",L4s,x)}},MWF=function(){HNs();
var B=vU8();B.push("//www.gstatic.com/eureka/clank/cast_sender.js");fac(B)},ZNi=function(){HNs();
var B=vU8();B.push.apply(B,_.wq(iNz.map(Agy)));B.push("//www.gstatic.com/eureka/clank/cast_sender.js");fac(B)},z_A=oUr("loadCastFramework")||oUr("loadCastApplicationFramework"),iNz=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var S9B=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(S9B,_.zL);var yWS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(yWS,_.zL);var GU8=function(){var B=new yWS;return _.S2(B,1,3)};var mO=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(mO,_.zL);var ZE8=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ZE8,_.zL);var M5N=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(M5N,_.zL);M5N.prototype.getToken=function(){return _.OZ(this,1)};
M5N.prototype.setToken=function(B){return _.en(this,1,B)};
var M3z=function(B){return _.TL(B,3,_.MN,_.xw())},LDs=function(B){return _.TL(B,6,_.MN,_.xw())};var Tt=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Tt,_.zL);Tt.prototype.getToken=function(){return _.PA(this,M5N,2)};
Tt.prototype.setToken=function(B){return _.Pa(this,2,B)};
Tt.prototype.getName=function(){return _.OZ(this,6)};
var LgF=_.ca(Tt);var ZwB=function(B,c,x){this.requestMessage=B;this.methodDescriptor=c;this.metadata=x};
ZwB.prototype.getMetadata=function(){return this.metadata};var HwB=function(B,c){c=c===void 0?{}:c;this.responseMessage=B;this.metadata=c;this.status=null};
HwB.prototype.getMetadata=function(){return this.metadata};
HwB.prototype.getStatus=function(){return this.status};var VC=function(B,c,x,P,Y){this.name=B;this.methodType="unary";this.requestType=c;this.responseType=x;this.requestSerializeFn=P;this.responseDeserializeFn=Y},fnr=function(B,c,x){x=x===void 0?{}:x;
return new ZwB(c,B,x)};
VC.prototype.getName=function(){return this.name};var ty=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(ty,_.zL);ty.prototype.setHeader=function(B){return _.Pa(this,1,B)};
ty.prototype.hasHeader=function(){return _.mF(this,mO,1)};var iwo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(iwo,_.zL);var AW6=new VC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ty,iwo,function(B){return B.serialize()},_.ca(iwo));var wv=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(wv,_.zL);wv.prototype.setHeader=function(B){return _.Pa(this,1,B)};
wv.prototype.hasHeader=function(){return _.mF(this,mO,1)};var uBc=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(uBc,_.zL);var DeB=new VC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",wv,uBc,function(B){return B.serialize()},_.ca(uBc));var NS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(NS,_.zL);NS.prototype.setHeader=function(B){return _.Pa(this,1,B)};
NS.prototype.hasHeader=function(){return _.mF(this,mO,1)};var rWo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(rWo,_.zL);rWo.prototype.getLink=function(){return _.PA(this,Tt,1)};var R_S=new VC("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",NS,rWo,function(B){return B.serialize()},_.ca(rWo));var Ic=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Ic,_.zL);Ic.prototype.setHeader=function(B){return _.Pa(this,1,B)};
Ic.prototype.hasHeader=function(){return _.mF(this,mO,1)};var e_F=new VC("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Ic,Tt,function(B){return B.serialize()},LgF);var B$z=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(B$z,_.zL);var cbs=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(cbs,_.zL);cbs.prototype.getUrl=function(){return _.OZ(this,2)};
cbs.prototype.setUrl=function(B){return _.en(this,2,B)};var xvi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xvi,_.zL);var PRB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(PRB,_.zL);var YyN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(YyN,_.zL);var cJs=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(cJs,_.zL);var BYN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(BYN,_.zL);var a_r=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(a_r,_.zL);var pXl=_.ca(a_r);var gxA=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(gxA,_.zL);var Jy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Jy,_.zL);Jy.prototype.setHeader=function(B){return _.Pa(this,1,B)};
Jy.prototype.hasHeader=function(){return _.mF(this,mO,1)};
Jy.prototype.getCompletionUrl=function(){return _.OZ(this,6)};
Jy.prototype.getDeviceId=function(){return _.OZ(this,11)};var sFS=new VC("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Jy,a_r,function(B){return B.serialize()},pXl);var pvN=new Set(["SAPISIDHASH","APISIDHASH"]);var kjS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(kjS,_.zL);kjS.prototype.getMessage=function(){return _.OZ(this,2)};
var XvS=_.ca(kjS);var Wk=function(B,c){this.xhrNodeReadableStream_=B.nodeReadableStream;this.grpcResponseDeserializeFn_=c;this.JSC$17125_xhr_=B.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17125_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&$v8(this)},dvN=function(B,c){var x=new nxN;
_.wX(B.JSC$17125_xhr_,"complete",function(){if(B.JSC$17125_xhr_.isSuccess()){var P=B.JSC$17125_xhr_.getResponseText();var Y;if(Y=c)Y=B.JSC$17125_xhr_,Y.JSC$7842_xhr_&&Y.isComplete()?(Y=Y.JSC$7842_xhr_.getResponseHeader("Content-Type"),Y=Y===null?void 0:Y):Y=void 0,Y=Y==="text/plain";if(Y){if(!atob)throw Error("Nj");P=atob(P)}try{var g=B.grpcResponseDeserializeFn_(P)}catch(n){lZ(B,JPS(new _.WB(13,"Error when deserializing response data; error: "+n+(", response: "+P)),x));return}P=_.$w(B.JSC$17125_xhr_.getStatus());
b3S(B,Kpc(B));P==0?jFS(B,g):lZ(B,JPS(new _.WB(P,"Xhr succeeded but the status code is not 200"),x))}else{P=B.JSC$17125_xhr_.getResponseText();g=Kpc(B);if(P){var k=Uvz(B,P);P=k.code;Y=k.details;k=k.metadata}else P=2,Y="Rpc failed due to xhr error. uri: "+String(B.JSC$17125_xhr_.JSC$7842_lastUri_)+", error code: "+B.JSC$17125_xhr_.JSC$7842_lastErrorCode_+", error: "+B.JSC$17125_xhr_.getLastError(),k=g;b3S(B,g);lZ(B,JPS(new _.WB(P,Y,k),x))}})},$v8=function(B){B.xhrNodeReadableStream_.on("data",function(c){if("1"in
c){var x=c["1"];
try{var P=B.grpcResponseDeserializeFn_(x)}catch(Y){lZ(B,new _.WB(13,"Error when deserializing response data; error: "+Y+(", response: "+x)))}P&&jFS(B,P)}if("2"in c)for(c=Uvz(B,c["2"]),x=0;x<B.onStatusCallbacks_.length;x++)B.onStatusCallbacks_[x](c)});
B.xhrNodeReadableStream_.on("end",function(){b3S(B,Kpc(B));for(var c=0;c<B.onEndCallbacks_.length;c++)B.onEndCallbacks_[c]()});
B.xhrNodeReadableStream_.on("error",function(){if(B.JSC$17125_onErrorCallbacks_.length!=0){var c=B.JSC$17125_xhr_.JSC$7842_lastErrorCode_;c!==0||B.JSC$17125_xhr_.isSuccess()||(c=6);var x=-1;switch(c){case 0:var P=2;break;case 7:P=10;break;case 8:P=4;break;case 6:x=B.JSC$17125_xhr_.getStatus();P=_.$w(x);break;default:P=14}b3S(B,Kpc(B));c=_.dg3(c)+", error: "+B.JSC$17125_xhr_.getLastError();x!=-1&&(c+=", http status code: "+x);lZ(B,new _.WB(P,c))}})},Kpc=function(B){var c={},x=XWr(B.JSC$17125_xhr_);
Object.keys(x).forEach(function(P){c[P]=x[P]});
return c},Uvz=function(B,c){var x=2,P={};
try{var Y=XvS(c);x=_.Ph(Y,1);var g=Y.getMessage();_.ch(Y,Y9o,3,_.xw()).length&&(P["grpc-web-status-details-bin"]=c)}catch(k){B.JSC$17125_xhr_&&B.JSC$17125_xhr_.getStatus()===404?(x=5,g="Not Found: "+String(B.JSC$17125_xhr_.JSC$7842_lastUri_)):(x=14,g="Unable to parse RpcStatus: "+k)}return{code:x,details:g,metadata:P}};
Wk.prototype.on=function(B,c){B=="data"?this.onDataCallbacks_.push(c):B=="metadata"?this.onMetadataCallbacks_.push(c):B=="status"?this.onStatusCallbacks_.push(c):B=="end"?this.onEndCallbacks_.push(c):B=="error"&&this.JSC$17125_onErrorCallbacks_.push(c);return this};
var Et=function(B,c){c=B.indexOf(c);c>-1&&B.splice(c,1)};
Wk.prototype.removeListener=function(B,c){B=="data"?Et(this.onDataCallbacks_,c):B=="metadata"?Et(this.onMetadataCallbacks_,c):B=="status"?Et(this.onStatusCallbacks_,c):B=="end"?Et(this.onEndCallbacks_,c):B=="error"&&Et(this.JSC$17125_onErrorCallbacks_,c);return this};
Wk.prototype.cancel=function(){this.JSC$17125_xhr_.abort()};
var jFS=function(B,c){for(var x=0;x<B.onDataCallbacks_.length;x++)B.onDataCallbacks_[x](c)},b3S=function(B,c){for(var x=0;x<B.onMetadataCallbacks_.length;x++)B.onMetadataCallbacks_[x](c)},lZ=function(B,c){for(var x=0;x<B.JSC$17125_onErrorCallbacks_.length;x++)B.JSC$17125_onErrorCallbacks_[x](c)};
Wk.prototype.cancel=Wk.prototype.cancel;Wk.prototype.removeListener=Wk.prototype.removeListener;Wk.prototype.on=Wk.prototype.on;var nxN=function(){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.w(nxN,Error);var Ot=function(B){this.JSC$17134_worker_=B.worker||null;this.JSC$17134_streamBinaryChunks_=B.streamBinaryChunks||!1;this.JSC$17134_credentialsMode_=void 0};
_.sZ(Ot,_.uCq);Ot.prototype.createInstance=function(){var B=new oc(this.JSC$17134_worker_,this.JSC$17134_streamBinaryChunks_);this.JSC$17134_credentialsMode_&&B.setCredentialsMode(this.JSC$17134_credentialsMode_);return B};
Ot.prototype.setCredentialsMode=function(B){this.JSC$17134_credentialsMode_=B};
var oc=function(B,c){_.V4.call(this);this.JSC$17138_worker_=B;this.JSC$17138_streamBinaryChunks_=c;this.JSC$17138_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$17138_responseHeaders_=null;this.JSC$17138_method_="GET";this.JSC$17138_url_="";this.inProgress_=!1;this.JSC$17138_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.sZ(oc,_.V4);oc.prototype.open=function(B,c){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$17138_method_=B;this.JSC$17138_url_=c;this.readyState=1;QC(this)};
oc.prototype.send=function(B){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var c={headers:this.requestHeaders_,method:this.JSC$17138_method_,credentials:this.JSC$17138_credentialsMode_,cache:void 0,signal:this.abortController_.signal};B&&(c.body=B);(this.JSC$17138_worker_||_.xI).fetch(new Request(this.JSC$17138_url_,c)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
oc.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,FY(this));this.readyState=0};
oc.prototype.handleResponse_=function(B){if(this.inProgress_&&(this.fetchResponse_=B,this.JSC$17138_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17138_responseHeaders_=B.headers,this.readyState=2,QC(this)),this.inProgress_&&(this.readyState=3,QC(this),this.inProgress_)))if(this.responseType==="arraybuffer")B.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.xI.ReadableStream!==
"undefined"&&"body"in B){this.currentReader_=B.body.getReader();if(this.JSC$17138_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$17138_textDecoder_=new TextDecoder;qyr(this)}else B.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var qyr=function(B){B.currentReader_.read().then(B.handleDataFromStream_.bind(B)).catch(B.handleSendFailure_.bind(B))};
oc.prototype.handleDataFromStream_=function(B){if(this.inProgress_){if(this.JSC$17138_streamBinaryChunks_&&B.value)this.response.push(B.value);else if(!this.JSC$17138_streamBinaryChunks_){var c=B.value?B.value:new Uint8Array(0);if(c=this.JSC$17138_textDecoder_.decode(c,{stream:!B.done}))this.response=this.responseText+=c}B.done?FY(this):QC(this);this.readyState==3&&qyr(this)}};
oc.prototype.handleResponseText_=function(B){this.inProgress_&&(this.response=this.responseText=B,FY(this))};
oc.prototype.handleResponseArrayBuffer_=function(B){this.inProgress_&&(this.response=B,FY(this))};
oc.prototype.handleSendFailure_=function(){this.inProgress_&&FY(this)};
var FY=function(B){B.readyState=4;B.fetchResponse_=null;B.currentReader_=null;B.JSC$17138_textDecoder_=null;QC(B)};
oc.prototype.setRequestHeader=function(B,c){this.requestHeaders_.append(B,c)};
oc.prototype.getResponseHeader=function(B){return this.JSC$17138_responseHeaders_?this.JSC$17138_responseHeaders_.get(B.toLowerCase())||"":""};
oc.prototype.getAllResponseHeaders=function(){if(!this.JSC$17138_responseHeaders_)return"";for(var B=[],c=this.JSC$17138_responseHeaders_.entries(),x=c.next();!x.done;)x=x.value,B.push(x[0]+": "+x[1]),x=c.next();return B.join("\r\n")};
oc.prototype.setCredentialsMode=function(B){this.JSC$17138_credentialsMode_=B};
var QC=function(B){B.onreadystatechange&&B.onreadystatechange.call(B)};
Object.defineProperty(oc.prototype,"withCredentials",{get:function(){return this.JSC$17138_credentialsMode_==="include"},
set:function(B){this.setCredentialsMode(B?"include":"same-origin")}});var CRc=function(B){var c="";_.wW.forEach(B,function(x,P){c+=P;c+=":";c+=x;c+="\r\n"});
return c},hmo=function(B,c,x){if(_.wW.isEmpty(x))return B;
x=CRc(x);if(typeof B==="string")return _.Mw(B,_.La(c),x);_.fS(B,c,x);return B};var mvr=function(){this.isInputValid_=!0;this.JSC$17143_streamPos_=0;this.leftoverInput_=""};
mvr.prototype.isInputValid=function(){return this.isInputValid_};var j0=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17146_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
j0.prototype.isInputValid=function(){return this.state_!=3};
var vk=function(B,c,x,P){B.state_=3;B.errorMessage_="The stream is broken @"+B.JSC$17146_streamPos_+"/"+x+". Error: "+P+". With input:\n"+c;throw Error(B.errorMessage_);};
j0.prototype.acceptsBinaryInput=function(){return!0};
j0.prototype.parse=function(B){function c(b){b&128&&vk(g,k,n,"invalid tag");(b&7)!=2&&vk(g,k,n,"invalid wire type");g.tag_=b>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&vk(g,k,n,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function x(b){g.countLengthBytes_++;g.countLengthBytes_==5&&b&240&&vk(g,k,n,"message length too long");g.length_|=(b&127)<<(g.countLengthBytes_-1)*7;b&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&Y())}
function P(b){g.messageBuffer_[g.countMessageBytes_++]=b;g.countMessageBytes_==g.length_&&Y()}
function Y(){if(g.tag_<15){var b={};b[g.tag_]=g.messageBuffer_;g.result_.push(b)}g.state_=0}
for(var g=this,k=B instanceof Array?B:new Uint8Array(B),n=0;n<k.length;){switch(g.state_){case 3:vk(g,k,n,"stream already broken");break;case 0:c(k[n]);break;case 1:x(k[n]);break;case 2:P(k[n]);break;default:throw Error("Tj`"+g.state_);}g.JSC$17146_streamPos_++;n++}B=g.result_;g.result_=[];return B.length>0?B:null};var l6y=function(){this.errorMessage_=null;this.JSC$17149_streamPos_=0;this.base64Decoder_=new mvr;this.pbParser_=new j0};
l6y.prototype.isInputValid=function(){return this.errorMessage_===null};
var T$B=function(B,c,x){B.errorMessage_="The stream is broken @"+B.JSC$17149_streamPos_+". Error: "+x+". With input:\n"+c;throw Error(B.errorMessage_);};
l6y.prototype.acceptsBinaryInput=function(){return!1};
l6y.prototype.parse=function(B){this.errorMessage_!==null&&T$B(this,B,"stream already broken");var c=null;try{var x=this.base64Decoder_;if(!x.isInputValid_)throw x.isInputValid_=!1,Error("Sj`"+x.JSC$17143_streamPos_+"`stream already broken`"+B);x.leftoverInput_+=B;var P=Math.floor(x.leftoverInput_.length/4);if(P==0)var Y=null;else{try{var g=_.av$(x.leftoverInput_.slice(0,P*4))}catch(b){var k=x.leftoverInput_,n=b.message;x.isInputValid_=!1;throw Error("Sj`"+x.JSC$17143_streamPos_+"`"+n+"`"+k);}x.JSC$17143_streamPos_+=
P*4;x.leftoverInput_=x.leftoverInput_.slice(P*4);Y=g}c=Y===null?null:this.pbParser_.parse(Y)}catch(b){T$B(this,B,b.message)}this.JSC$17149_streamPos_+=B.length;return c};var WDy=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17152_streamPos_=0;this.result_=[];this.statusParsed_=!1};
WDy.prototype.isInputValid=function(){return this.errorMessage_===null};
WDy.prototype.acceptsBinaryInput=function(){return!1};
WDy.prototype.parse=function(B){function c(b){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$17152_streamPos_+"/"+k+". Error: "+b+". With input:\n";throw Error(g.errorMessage_);}
function x(){g.jsonStreamParser_=new _.sc({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function P(b){if(b)for(var d=0;d<b.length;d++){var q={};q[1]=b[d];g.result_.push(q)}}
function Y(b){if(b){(g.statusParsed_||b.length>1)&&c("extra status: "+b);g.statusParsed_=!0;var d={};d[2]=b[0];g.result_.push(d)}}
for(var g=this,k=0;k<B.length;){var n;if(n=g.state_!==2){a:{for(;k<B.length;){if(!_.gy(B[k])){n=!0;break a}k++;g.JSC$17152_streamPos_++}n=!1}n=!n}if(n)return null;switch(g.state_){case 6:c("stream already broken");break;case 0:B[k]==="["?(g.state_=1,k++,g.JSC$17152_streamPos_++):c("unexpected input token");break;case 1:B[k]==="["?(g.state_=2,x()):B[k]===","||B.slice(k,k+5)=="null,"?g.state_=3:B[k]==="]"?(g.state_=5,k++,g.JSC$17152_streamPos_++):c("unexpected input token");break;case 2:n=g.jsonStreamParser_.parse(B.substring(k));
P(n);g.jsonStreamParser_.done()?(g.state_=3,n=g.jsonStreamParser_.JSC$9443_buffer_,g.JSC$17152_streamPos_+=B.length-k-n.length,B=n,k=0):(g.JSC$17152_streamPos_+=B.length-k,k=B.length);break;case 3:B[k]===","||B.slice(k,k+5)=="null,"?(g.state_=4,x(),g.jsonStreamParser_.parse("["),k+=B[k]===","?1:5,g.JSC$17152_streamPos_++):B[k]==="]"&&(g.state_=5,k++,g.JSC$17152_streamPos_++);break;case 4:n=g.jsonStreamParser_.parse(B.substring(k));Y(n);g.jsonStreamParser_.done()?(g.state_=5,n=g.jsonStreamParser_.JSC$9443_buffer_,
g.JSC$17152_streamPos_+=B.length-k-n.length,B=n,k=0):(g.JSC$17152_streamPos_+=B.length-k,k=B.length);break;case 5:c("extra input after stream end")}}return g.result_.length>0?(B=g.result_,g.result_=[],B):null};var VAo=function(B){this.JSC$17155_xhr_=B;this.JSC$17155_parser_=null;this.status_=this.JSC$17155_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17155_textDecoder_=null;this.JSC$17155_eventHandler_=new _.cf(this);this.JSC$17155_eventHandler_.listen(this.JSC$17155_xhr_,"readystatechange",this.JSC$17157_readyStateChangeHandler_)},zt=function(B,c){B.status_!=c&&(B.status_=c,B.statusHandler_&&B.statusHandler_())},Ss=function(B){B.JSC$17155_eventHandler_.removeAll();
if(B.JSC$17155_xhr_){var c=B.JSC$17155_xhr_;B.JSC$17155_xhr_=null;c.abort();c.dispose()}};
VAo.prototype.getStatus=function(){return this.status_};
VAo.prototype.JSC$17157_readyStateChangeHandler_=function(B){B=B.target;try{if(B==this.JSC$17155_xhr_)a:{var c=_.OV(this.JSC$17155_xhr_),x=this.JSC$17155_xhr_.JSC$7842_lastErrorCode_,P=this.JSC$17155_xhr_.getStatus(),Y=this.JSC$17155_xhr_.getResponseText();B=[];if(this.JSC$17155_xhr_.getResponse()instanceof Array){var g=this.JSC$17155_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,B=g)}if(!(c<3||c==3&&!Y&&B.length==0))if(P=P==200||P==206,c==4&&(x==8?zt(this,
7):x==7?zt(this,8):P||zt(this,3)),this.JSC$17155_parser_||(this.JSC$17155_parser_=E4B(this.JSC$17155_xhr_),this.JSC$17155_parser_==null&&zt(this,5)),this.status_>2)Ss(this);else{if(B.length>this.JSC$17155_pos_){var k=B.length;x=[];try{if(this.JSC$17155_parser_.acceptsBinaryInput())for(var n=0;n<k;n++){var b=this.JSC$17155_parser_.parse(Array.from(B[n]));b&&(x=x.concat(b))}else{b="";if(!this.JSC$17155_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$17155_textDecoder_=new TextDecoder}for(n=
0;n<k;n++)b+=this.JSC$17155_textDecoder_.decode(B[n],{stream:c==4&&n==k-1});x=this.JSC$17155_parser_.parse(b)}B.splice(0,k);x&&this.dataHandler_(x)}catch(q){zt(this,5);Ss(this);break a}}else if(Y.length>this.JSC$17155_pos_){n=Y.slice(this.JSC$17155_pos_);this.JSC$17155_pos_=Y.length;try{var d=this.JSC$17155_parser_.parse(n);d!=null&&this.dataHandler_&&this.dataHandler_(d)}catch(q){zt(this,5);Ss(this);break a}}c==4?(Y.length!=0||this.hasStreamingResponseData_?zt(this,2):zt(this,4),Ss(this)):zt(this,
1)}}}catch(q){zt(this,6),Ss(this)}};var tAy=function(B){B=this.xhrReader_=B;var c=(0,_.wf)(this.onData_,this);B.dataHandler_=c;B=this.xhrReader_;c=(0,_.wf)(this.onStatusChange_,this);B.statusHandler_=c;this.JSC$17159_callbackMap_={};this.callbackOnceMap_={}};
_.a=tAy.prototype;_.a.on=function(B,c){var x=this.JSC$17159_callbackMap_[B];x||(x=[],this.JSC$17159_callbackMap_[B]=x);x.push(c);return this};
_.a.addListener=function(B,c){this.on(B,c);return this};
_.a.removeListener=function(B,c){var x=this.JSC$17159_callbackMap_[B];x&&_.Ao(x,c);(B=this.callbackOnceMap_[B])&&_.Ao(B,c);return this};
_.a.once=function(B,c){var x=this.callbackOnceMap_[B];x||(x=[],this.callbackOnceMap_[B]=x);x.push(c);return this};
_.a.onData_=function(B){var c=this.JSC$17159_callbackMap_.data;c&&wv6(B,c);(c=this.callbackOnceMap_.data)&&wv6(B,c);this.callbackOnceMap_.data=[]};
var wv6=function(B,c){for(var x={},P=0;P<B.length;x={message$jscomp$970:void 0},P++)x.message$jscomp$970=B[P],c.forEach(function(Y){return function(g){try{g(Y.message$jscomp$970)}catch(k){}}}(x))};
tAy.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:N$F(this,"readable");break;case 5:case 6:case 4:case 7:case 3:N$F(this,"error");break;case 8:N$F(this,"close");break;case 2:N$F(this,"end")}};
var N$F=function(B,c){var x=B.JSC$17159_callbackMap_[c];x&&x.forEach(function(P){try{P()}catch(Y){}});
(x=B.callbackOnceMap_[c])&&x.forEach(function(P){P()});
B.callbackOnceMap_[c]=[]};var I_F=function(){var B={format:"jspb"};B=B===void 0?{}:B;this.suppressCorsPreflight=B.suppressCorsPreflight||_.Gu("suppressCorsPreflight",B)||!1;this.withCredentials=B.withCredentials||_.Gu("withCredentials",B)||!1;this.streamInterceptors=B.streamInterceptors||[];this.unaryInterceptors=B.unaryInterceptors||[];this.workerScope=B.workerScope;this.chunkedServerStreaming=B.useFetchDownloadStreams||!1},l_s=function(B,c,x,P,Y,g){g=g===void 0?{}:g;
var k=c.substring(0,c.length-Y.name.length),n,b=(n=g)==null?void 0:n.signal;return Jbz(function(d){return new Promise(function(q,C){if(b==null?0:b.aborted){var h=new _.WB(1,"Aborted");h.cause=b.reason;C(h)}else{var V={},N=Wpz(B,d,k);N.on("error",function(l){return void C(l)});
N.on("metadata",function(l){V=l});
N.on("data",function(l){var E=V;E=E===void 0?{}:E;q(new HwB(l,E))});
b&&b.addEventListener("abort",function(){N.cancel();var l=new _.WB(1,"Aborted");l.cause=b.reason;C(l)})}})},B.unaryInterceptors).call(B,fnr(Y,x,P)).then(function(d){return d.responseMessage})},yC=function(B,c,x,P,Y,g){g=g===void 0?{}:g;
return l_s(B,c,x,P,Y,g)};
I_F.prototype.serverStreaming=function(B,c,x,P){var Y=this,g=B.substring(0,B.length-P.name.length);return Exc(function(k){var n=k.methodDescriptor,b=k.getMetadata(),d=O3S(Y,!1);b=ox6(Y,b,d,g+n.getName());var q=QFF(d,n.responseDeserializeFn,!0);k=n.requestSerializeFn(k.requestMessage);d.send(b,"POST",k);return q},this.streamInterceptors).call(this,fnr(P,c,x))};
var Wpz=function(B,c,x){var P=c.methodDescriptor,Y=c.getMetadata(),g=O3S(B,!0);B=ox6(B,Y,g,x+P.getName());x=QFF(g,P.responseDeserializeFn,!1);dvN(x,Y["X-Goog-Encode-Response-If-Executable"]==="base64");c=P.requestSerializeFn(c.requestMessage);g.send(B,"POST",c);return x},O3S=function(B,c){c=B.chunkedServerStreaming&&!c;
return B.workerScope||c?new _.EV(new Ot({worker:B.workerScope,streamBinaryChunks:c})):new _.EV},ox6=function(B,c,x,P){c["Content-Type"]="application/json+protobuf";
c["X-User-Agent"]="grpc-web-javascript/0.1";var Y=c.Authorization;if(Y&&pvN.has(Y.split(" ")[0])||B.withCredentials)x.JSC$7842_withCredentials_=!0;if(B.suppressCorsPreflight)P=hmo(P,"$httpHeaders",c);else for(B=_.p(Object.keys(c)),Y=B.next();!Y.done;Y=B.next())Y=Y.value,x.headers.set(Y,c[Y]);return P},QFF=function(B,c,x){if(x){x=new VAo(B);
var P=new tAy(x)}return new Wk({xhr:B,nodeReadableStream:P},c)},Exc=function(B,c){return c.reduce(function(x,P){return function(Y){return P.intercept(Y,x)}},B)},Jbz=function(B,c){return c.reduce(function(x,P){return function(Y){return P.intercept(Y,x)}},B)};var Fp6=function(B){this.client_=new I_F;this.hostname_=B==void 0?B:B.replace(/\/+$/,"")};
_.a=Fp6.prototype;_.a.JSC$17177_depositGoogleCredential=function(B,c,x){return yC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",B,c||{},DeB,x)};
_.a.deleteLink=function(B,c,x){return yC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",B,c||{},AW6,x)};
_.a.JSC$17177_finishOAuth=function(B,c,x){return yC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",B,c||{},R_S,x)};
_.a.getLink=function(B,c,x){return yC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",B,c||{},e_F,x)};
_.a.startLinkingSession=function(B,c,x){return yC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",B,c||{},sFS,x)};var vxz=[0,uos,1,RYF,[0,_.uJ,[0,D_F,-1]],[0,rXy],[0,eYN,-1]];var zml=function(){this.storage=new Map},ybF=function(B,c,x,P,Y){if(!B.storage.has(c))return null;
B=_.p(B.storage.get(c));for(c=B.next();!c.done;c=B.next())if(c=c.value,!Y||c.linkName===Y)if(x&&c.scopes&&Syl(c.scopes,x)||P&&c.capabilities&&Syl(c.capabilities,P))return c;return null},Gj8=function(B,c,x){if(!x)B.storage.delete(c);
else if(B.storage.has(c)){var P=B.storage.get(c).filter(function(Y){return Y.linkName!==x});
P.length>0?B.storage.set(c,P):B.storage.delete(c)}},Syl=function(B,c){c=_.p(c);
for(var x=c.next();!x.done;x=c.next())if(!B.has(x.value))return!1;return!0};var MAS=function(){var B=_.v5("LINK_GAL_DOMAIN");this.alsDomain1p=_.v5("LINK_GAL_DOMAIN");this.alsDomain3p=B;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},Lpr=function(B,c){B.apiKey=c;
return B};
MAS.prototype.build=function(){var B={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");B.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");B.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(B.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)B.apiKey=
this.apiKey,B.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");B.oauthToken=this.oauthToken;B.alsDomain=this.alsDomain3p}B.clientXd3=this.clientXd3;B.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(B.authUser=this.authUser);this.bucket!==void 0&&(B.bucket=this.bucket);this.completionUrl!==void 0&&(B.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(B.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(B.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(B.locale=this.locale);B.loggerType=this.loggerType;B.clientEnvironment=this.clientEnvironment;B.colorScheme=this.colorScheme;B.showCloseOption=this.showCloseOption;return B};var Ue=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Ue,_.zL);var Z3c=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Z3c,_.zL);var H3y=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(H3y,_.zL);var qL=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(qL,_.zL);var f_z=function(B){return _.og(B,1)};var i3s=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(i3s,_.zL);var Sb8=_.ca(i3s),d6=[1,2,3,4,5];var QGs=function(B){try{return Sb8(B)}catch(c){return null}},Abo=function(){},FDB=function(B,c){switch(_.wQ(c,d6)){case 4:return(c=_.vG(c,H3y,4,d6))&&B.logStateTransition(_.og(c,1)),!0;
case 5:return(c=_.vG(c,Z3c,5,d6))&&B.logInternalEvent(_.og(c,1)),!0}return!1},yPr=function(B){switch(B){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.kz(B)}};var OEl=function(B,c){var x=this;this.validator=B;this.messageListener=c;this.dismissCallback=function(){u5A(x,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17206_receiveMessage=function(P){P.type==="message"&&(P=P.event_,P!==null&&(new URL(x.iframe.src)).origin===P.origin&&x.validator(P.data,P.origin)&&!x.messageListener(P.data)&&(x.JSC$17206_resolveCb!==void 0&&x.JSC$17206_resolveCb(P.data),Dvc(x)))}},zqF=function(B,c,x){B.uiHandler!==void 0&&u5A(B,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(P,Y){B.JSC$17206_resolveCb=P;B.JSC$17206_rejectCb=Y;B.iframe=document.createElement("iframe");_.EG(B.iframe,c);B.uiHandler=x.displayContent(B.iframe,B.dismissCallback);_.wX(window,"message",B.JSC$17206_receiveMessage,!1,B)})},u5A=function(B,c){B.JSC$17206_rejectCb!==void 0&&B.JSC$17206_rejectCb(c);
Dvc(B)},Dvc=function(B){B.uiHandler!==void 0&&B.uiHandler.hideContent();
_.Ti(window,"message",B.JSC$17206_receiveMessage,!1,B);B.JSC$17206_resolveCb=void 0;B.JSC$17206_rejectCb=void 0;B.uiHandler=void 0;B.iframe=void 0};var rbN=function(B){if(B===2){var c;B=((c=window)==null?0:c.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return B},v4z=function(B){B=rbN(B);
switch(B){case 0:return"light";case 1:return"dark";default:_.kz(B)}};var o4o=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Rmr=function(B,c){this.JSC$17218_linkingSession=B;this.noticeConfig=c;this.displayInfoMap=new Map;var x=new Map;if(_.mF(this.JSC$17218_linkingSession,xvi,7))for(B=_.PA(this.JSC$17218_linkingSession,xvi,7),B=_.ch(B,cbs,1,_.xw()),B=_.p(B),c=B.next();!c.done;c=B.next())c=c.value,x.set(_.og(c,1),_.kIx(_.PA(c,_.X4$,3)));if(x.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){c=this.noticeConfig.enabledDataUsageNoticeUis;B=c.has(0)?x.get(1):void 0;c=c.has(1)?x.get(2):void 0;x=B!==void 0&&c!==void 0?x.get(3):void 0;var P=this.noticeConfig.nestedOrigins;var Y=new i3s;var g=new Ue;Y=_.YX(Y,2,d6,g);g=new i3s;var k=new Ue;g=_.YX(g,3,d6,k);k=[];B!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:B,lastEvent:Y,nestedOrigins:P}]),k.push({trustedUrl:B,lastEvent:Y,nestedOrigins:P}));c!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:c,lastEvent:g,nestedOrigins:P}]),k.push({trustedUrl:c,lastEvent:g,nestedOrigins:P}));x!==void 0?this.displayInfoMap.set(3,[{trustedUrl:x,lastEvent:g,nestedOrigins:P}]):this.displayInfoMap.set(3,k)}};var emo=function(B){var c=new zml;this.galService=B;this.galCache=c};
emo.prototype.getLink=function(B){var c=B.serviceId;var x=B.scopes;var P=B.capabilities;var Y=B.linkName;var g=this,k;return _.X(function(n){if(P!==void 0&&x!==void 0)throw Error("Zj");k=ybF(g.galCache,c,x,P,Y);return k!==null?n.return(k):n.return(g.galService.getLink({serviceId:c,sessionId:Math.floor(Math.random()*2147483648),scopes:x,capabilities:P,linkName:Y}).then(function(b){b=HEr(b);var d=g.galCache;d.storage.has(c)?d.storage.get(c).push(b):d.storage.set(c,[b]);return b}))})};
emo.prototype.deleteLink=function(B,c,x){var P=this;return _.X(function(Y){Gj8(P.galCache,B,x);return Y.return(P.galService.deleteLink({serviceId:B,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:c,linkName:x}).then(function(){return!0}))})};var caA=function(B,c){var x=this;this.validator=B;this.msgHandler=c;this.closedPopupTimeout=this.JSC$17240_rejectCb=this.JSC$17240_resolveCb=this.popup=null;this.JSC$17240_receiveMessage=function(P){if(P!==null&&(P=P.event_,P.source===x.popup)){var Y=P.data;if(x.validator(Y,P.origin)){var g;(g=x.msgHandler)!=null&&g.call(x,Y)||(x.JSC$17240_resolveCb!==null&&x.JSC$17240_resolveCb(Y),Bc8(x))}}}};
caA.prototype.open=function(B,c){var x=this;this.popup!==null&&xs6(this);return new Promise(function(P,Y){x.JSC$17240_resolveCb=P;x.JSC$17240_rejectCb=Y;x.popup=_.oW(window,B,"",c);_.wX(window,"message",x.JSC$17240_receiveMessage,!1,x);Pji(x)})};
var xs6=function(B,c){B.JSC$17240_rejectCb!==null&&B.JSC$17240_rejectCb(c);Bc8(B)},Bc8=function(B){B.closedPopupTimeout&&(B.closedPopupTimeout.cancel(),B.closedPopupTimeout=null);
B.popup&&B.popup.close();_.Ti(window,"message",B.JSC$17240_receiveMessage,!1,B);B.popup=null;B.JSC$17240_resolveCb=null;B.JSC$17240_rejectCb=null},Pji=function(B){B.closedPopupTimeout=_.nX0(100).then(function(){B.popup?B.popup.closed?Yrl(B):Pji(B):xs6(B,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Yrl=function(B){B.closedPopupTimeout=_.nX0(100).then(function(){xs6(B,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var ass=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),gEF=function(B,c,x,P,Y,g,k,n,b,d){var q=this;this.serviceId=B;this.sessionId=c;this.galService=x;this.oauthDetails=P;this.galLogger=Y;this.interactionMode=g;this.redirectServiceUrl=k;this.consentLanguageKeys=n;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=d;this.started=!1;this.JSC$17246_dataValidator=function(C,
h){var V=ass.has(h);V||q.redirectServiceUrl===void 0||(V=q.redirectServiceUrl===h);return V?C.sentinel==="gdi":!1}};
gEF.prototype.complete=function(){var B=this,c;return _.X(function(x){if(B.interactionMode!==1)return x.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=hH.getRedirectStateFromUri();return c===null?x.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):x.return(svz(B,c))})};
gEF.prototype.start=function(){var B=this,c;return _.X(function(x){if(B.started)return x.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.OZ(B.oauthDetails,1))return x.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(B.interactionMode===1)return hH.setLocation(_.OZ(B.oauthDetails,1)),x.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));B.started=!0;B.galLogger.logStateTransition(5);
c=hH.getPostMessagePopup(B.JSC$17246_dataValidator);return x.return(c.open(_.OZ(B.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){B.started=!1;var Y=B.galLogger;if((P==null?void 0:P.error)!==void 0)throw Y.logInternalEvent(59),Error("$j");if((P==null?void 0:P.redirect_state)===void 0)throw Y.logInternalEvent(131),Error("ak");return svz(B,P.redirect_state)}).catch(function(P){B.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 svz=function(B,c){return _.X(function(x){return x.return(p8F(B.galService,{serviceId:B.serviceId,sessionId:B.sessionId,dynamicUrlParameters:B.dynamicUrlParameters,redirectState:c,consentLanguageKeys:B.consentLanguageKeys,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp}).then(function(P){var Y={statusCode:1,link:HEr(P.getLink())};ltB(_.Vl(P,3))!==void 0&&(Y.callerState=ltB(_.Vl(P,3)));B.galLogger.logInternalEvent(134);return Y}))})},hH={getPostMessagePopup:function(B){return new caA(B)},
getRedirectStateFromUri:function(){var B=_.ZM(hH.getLocation()).fragment_;return(new _.sN(B)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(B){_.iV(window.location,_.Tz(B))},
createOAuthFlow:function(B,c){return new gEF(B.serviceId,B.sessionId,B.galService,c,B.galLogger,B.interactionMode,B.redirectServiceUrl,B.consentLanguageKeys,B.dynamicUrlParameters,B.partnerConfigMinReadTimestamp)}};var k2F=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(k2F,_.zL);var X8z=_.ca(k2F);var $sy=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),nEF=function(B,c,x,P,Y,g,k,n,b){var d=this;this.serviceId=B;this.sessionId=c;this.galService=x;this.gsiWebFlowDetails=P;this.colorScheme=Y;this.showCloseOption=g;this.galLogger=k;this.interactionMode=n;this.redirectServiceUrl=b;this.started=!1;this.JSC$17258_dataValidator=function(q,C){var h=$sy.has(C);h||d.redirectServiceUrl===
void 0||(h=d.redirectServiceUrl===C);return h?q.sentinel==="gal":!1};
this.logEventProcessor=function(q){return q.result?(q=QGs(q.result))?FDB(d.galLogger,q):!1:!1}};
nEF.prototype.complete=function(){var B=this,c,x;return _.X(function(P){if(B.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=mw.getRedirectStateFromUri();if(c===void 0)return B.galLogger.JSC$17198_logErrorEvent(131),P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return x=b2c(B,c),P.return(KTN(B,x))}catch(Y){return P.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
nEF.prototype.start=function(){var B=this,c;return _.X(function(x){if(B.started)return x.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.OZ(B.gsiWebFlowDetails,1))return x.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(B.interactionMode===1)return mw.setLocation(jvS(B,_.OZ(B.gsiWebFlowDetails,1))),x.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
B.started=!0;c=mw.getPostMessagePopup(B.JSC$17258_dataValidator,B.logEventProcessor);return x.return(c.open(jvS(B,_.OZ(B.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){B.started=!1;if((P==null?void 0:P.result)===void 0)throw B.galLogger.JSC$17198_logErrorEvent(131),Error("ak");P=b2c(B,P.result);return KTN(B,P)}).catch(function(P){B.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 jvS=function(B,c){B=["result_channel",B.interactionMode===1?"2":"1","color_scheme",v4z(B.colorScheme),"show_close_option",B.showCloseOption];return PvS(c,B)},KTN=function(B,c){if(c!==null&&_.mF(c,qL,2)){var x,P=c==null?void 0:(x=_.PA(c,qL,2))==null?void 0:_.og(x,2);
P&&B.galLogger.JSC$17198_logErrorEvent(yPr(P));return f_z(_.PA(c,qL,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 B.galService.getLink({serviceId:B.serviceId,sessionId:B.sessionId,consistencyKey:_.OZ(c,1)}).then(function(Y){Y=HEr(Y);B.galLogger.logInternalEvent(134);return{statusCode:1,link:Y}})},b2c=function(B,c){c=X8z(c);
if(!_.mF(c,qL,2)&&_.OZ(c,1)==="")throw B.galLogger.JSC$17198_logErrorEvent(5),Error("bk");return c},mw={getPostMessagePopup:function(B,c){return new caA(B,c)},
getRedirectStateFromUri:function(){return _.Hh(_.ZM(mw.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(B){_.iV(window.location,_.Tz(B))},
createStreamlinedFlow:function(B,c){return new nEF(B.serviceId,B.sessionId,B.galService,c,B.colorScheme,B.showCloseOption,B.galLogger,B.interactionMode,B.redirectServiceUrl)}};var gWA=function(){var B=_.$pX("GAL");this.storage=B?new _.Tw(B):null};var Gt=function(){};
_.w(Gt,Abo);Gt.prototype.logStateTransition=function(){};
Gt.prototype.logInternalEvent=function(){};
Gt.prototype.JSC$17198_logErrorEvent=function(){};var Uso=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Uso,_.zL);Uso.prototype.getCompletionUrl=function(){return _.OZ(this,15)};var MS=function(B,c,x,P,Y,g){this.serviceId=B;this.environment=c;this.sessionId=x;this.colorSchemeSelected=P;this.colorThemeDisplayed=Y;this.JSC$17271_transport=g;this.currentState=1};
_.w(MS,Abo);MS.prototype.logStateTransition=function(B){var c=dsr(this);c=_.Yr(c,3,this.currentState);c=_.Yr(c,1,B);this.currentState=B;B=kZr(1);this.dispatch(c,B)};
MS.prototype.logInternalEvent=function(B){B=kZr(B);this.dispatch(dsr(this),B)};
MS.prototype.JSC$17198_logErrorEvent=function(B){var c=dsr(this);c=_.Yr(c,1,10);B=kZr(B);this.dispatch(c,B)};
var dsr=function(B){var c=new Uso;c=_.Yr(c,1,B.currentState);c=_.dW(c,7,B.serviceId);var x,P;var Y=((x=window)==null?0:(P=x.location)==null?0:P.href)?_.ZM(window.location.href).JSC$8077_domain_:"NO_PACKAGE_NAME";x=_.dW(c,8,Y);x=_.Yr(x,6,B.environment);x=_.dW(x,5,"100");x=_.Yr(x,11,B.colorSchemeSelected);return _.Yr(x,12,B.colorThemeDisplayed)};
MS.prototype.dispatch=function(B,c){c===void 0&&(c=new _.$c);var x=c;B=B.serialize();x=_.dW(x,8,B);_.mD(x,12,this.sessionId);this.JSC$17271_transport.dispatch(c)};var qrF=function(B,c){this.loggerType=B;this.sessionIndex=c!=null?c:0},Cjz;
qrF.prototype.create=function(B,c,x,P,Y){switch(this.loggerType){case 0:return new Gt;case 1:return Cjz||(Cjz=(new _.nS(555,this.sessionIndex.toString())).build()),new MS(B,c,x,P,Y,Cjz);default:_.kz(this.loggerType,"unknown logger type")}};var Th=[6,2,3,1],$MB=new Map([[4,1],[1,6],[2,2],[3,3]]),uUN={statusCode:7,statusMessage:"Failed to create flow object"},Yko=function(B,c,x,P,Y,g,k,n,b,d){this.serviceId=B;this.sessionId=c;this.config=x;this.galService=P;this.JSC$17278_linkingSession=Y;this.googleScopes=g;this.callerState=k;this.consentLanguageKeys=n;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=d;this.currentFlow=0;P=this.JSC$17278_linkingSession;Y=new Set;_.mF(P,BYN,1)&&Y.add(1);_.mF(P,YyN,2)&&_.mF(P,cJs,6)&&Y.add(2);
_.mF(P,PRB,3)&&_.mF(P,cJs,6)&&Y.add(3);_.mF(P,B$z,4)&&Y.add(6);this.supportedFlows=Y;P=x.loggerType;Y=x.clientEnvironment;a:{g=x.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.kz(g)}g=void 0}a:{k=x.colorScheme;k=rbN(k);switch(k){case 0:k=1;break a;case 1:k=2;break a;default:_.kz(k)}k=void 0}this.galLogger=(new qrF(P,x.authUser)).create(B,Y,c,g,k)},mss=function(B){return new Promise(function(c){var x,P,Y,g,k,n,b,d,q,C;
return _.X(function(h){switch(h.nextAddress){case 1:x=xMi(B.currentFlow,B.supportedFlows),P=!1,Y=new Rmr(B.JSC$17278_linkingSession,B.config.dataUsageNoticeConfig);case 2:if(x===void 0){h.jumpTo(4);break}_.kM(h,5);var V=Y,N=x,l=void 0;P?N===1&&(l=V.displayInfoMap.get(2)):N===2||N===3?l=V.displayInfoMap.get(1):N===1&&(l=V.displayInfoMap.get(3));g=l?l:[];k=B.consentLanguageKeys;n=_.p(g);b=n.next();case 7:if(b.done)return B.currentFlow=x,_.K(h,rP6(hbr(B,k)),11);d=b.value;return _.K(h,Gr8(d,B.config.dataUsageNoticeConfig.uiAdapter,
B.config.colorScheme,B.galLogger),10);case 10:q=h.yieldResult;if(q.statusCode!==1)return s1l(B.serviceId),B.currentFlow=0,c(CZ({statusCode:q.statusCode,statusMessage:q.statusMessage},B.callerState)),h.return();q.consentLanguageKeys!==void 0&&(k=q.consentLanguageKeys);b=n.next();h.jumpTo(7);break;case 11:C=h.yieldResult;if(C.statusCode!==10)return C.statusCode!==6&&(s1l(B.serviceId),B.currentFlow=0),C.statusCode!==1&&B.callerState!==void 0&&(C.callerState=B.callerState),c(C),h.return();_.Gw(h,6);break;
case 5:_.be(h);case 6:x=xMi(B.currentFlow,B.supportedFlows);P=!0;h.jumpTo(2);break;case 4:s1l(B.serviceId),B.currentFlow=0,c(CZ({statusCode:12,statusMessage:"Linking failed"},B.callerState)),_.Kq(h)}})})},kKz=function(B,c,x){B.currentFlow=c;
return Rqz(hbr(B,x)).then(function(P){return P.statusCode===10&&B.config.interactionMode===1&&xMi(B.currentFlow,B.supportedFlows)!==void 0?mss(B):P})},hbr=function(B,c){return{flowParams:{serviceId:B.serviceId,
sessionId:B.sessionId,galService:B.galService,galLogger:B.galLogger,interactionMode:B.config.interactionMode,redirectServiceUrl:B.config.redirectServiceUrl,colorScheme:B.config.colorScheme,consentLanguageKeys:c,dynamicUrlParameters:B.dynamicUrlParameters,showCloseOption:B.config.showCloseOption,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp},currentFlow:B.currentFlow,config:B.config,session:B.JSC$17278_linkingSession,googleScopes:B.googleScopes,callerState:B.callerState}};var bls=function(B,c){this.config=B;this.galService=c.getService();this.JSC$17291_galRepository=c.JSC$17309_galRepository};
bls.prototype.getLink=function(B,c){return Tcc(this,B,c)};
var Tcc=function(B,c,x){return B.JSC$17291_galRepository.getLink({serviceId:c,scopes:void 0,capabilities:void 0,linkName:x}).then(function(P){return{statusCode:1,link:P}}).catch(function(P){return{statusCode:nWz(P.code),
statusMessage:P.message}})};
bls.prototype.deleteLink=function(B,c){return this.JSC$17291_galRepository.deleteLink(B,this.config.accountLinkingEntryPoint,c).then(function(){return{statusCode:1}}).catch(function(x){return{statusCode:nWz(x.code),
statusMessage:x.message}})};
bls.prototype.startLinkingSession=function(B){var c=B.serviceId;var x=B.sessionId;return aFB({serviceId:c,sessionId:x!==void 0?x:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:B.loginHint,callerState:B.callerState,consentLanguageKeys:B.consentLanguageKeys,linkName:B.linkName,dynamicUrlParameters:B.dynamicUrlParameters,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp})};var Lh=function(B,c,x,P,Y,g,k){this.apiKey=c;this.authUser=x;this.oauthToken=P;this.bucket=Y;this.locale=g;this.galSdkEventHandler=k;if(P===void 0){if(c===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new Fp6(B)};
Lh.prototype.deleteLink=function(B){var c=B.serviceId;var x=B.sessionId;var P=B.accountLinkingEntryPoint;var Y=B.linkName;var g=this,k;return _.X(function(n){var b=(new ty).setHeader(Zb(g,x));var d=VnN({serviceId:c,linkName:Y});b=_.Pa(b,2,d);k=_.S2(b,3,P);return n.return(g.makeRequest(g.galServiceClient.deleteLink,k,[1,3],[2,4]))})};
var p8F=function(B,c){var x=c.serviceId;var P=c.sessionId;var Y=c.dynamicUrlParameters;var g=c.redirectState;var k=c.consentLanguageKeys;var n=c.partnerConfigMinReadTimestamp;var b;return _.X(function(d){var q=(new NS).setHeader(Zb(B,P,Y));q=_.en(q,2,x);b=_.en(q,4,g);k!==void 0&&_.en(b,5,k);n!==void 0&&_.Pa(b,6,n);return d.return(B.makeRequest(B.galServiceClient.JSC$17177_finishOAuth,b,[1,3],[2,4]))})};
Lh.prototype.getLink=function(B){var c=B.serviceId;var x=B.sessionId;var P=B.scopes;var Y=B.capabilities;var g=B.consistencyKey;var k=B.linkName;var n=this,b;return _.X(function(d){var q=(new Ic).setHeader(Zb(n,x)),C=VnN({serviceId:c,scopes:P,capabilities:Y,linkName:k});b=_.Pa(q,2,C);g!==void 0&&(q=GU8(),q=_.en(q,2,g),_.Pa(b,3,q));return d.return(n.makeRequest(n.galServiceClient.getLink,b,[1,3],[2,4]))})};
var eq8=function(B,c){var x=c.serviceId;var P=c.sessionId;var Y=c.googleScopes;var g=c.consistencyKey;var k;return _.X(function(n){var b=(new wv).setHeader(Zb(B,P));b=_.en(b,2,x);var d=Array.from(Y.values());b=_.wt(b,3,d,_.zB);d=GU8();d=_.en(d,2,g);k=_.Pa(b,4,d);return n.return(B.makeRequest(B.galServiceClient.JSC$17177_depositGoogleCredential,k,[1,3],[2,4]))})};
Lh.prototype.startLinkingSession=function(B){var c=B.serviceId;var x=B.sessionId;var P=B.scopes;var Y=B.capabilities;var g=B.loginHint;var k=B.supportedFlows;var n=B.completionUrl;var b=B.usePingPong;var d=B.twoWayLinking;var q=B.accountLinkingEntryPoint;var C=B.callerState;var h=B.consentLanguageKeys;var V=B.googleScopes;var N=B.dataUsageNoticeConfig;var l=B.linkName;var E=B.dynamicUrlParameters;var S=B.partnerConfigMinReadTimestamp;var M=this,f,Z;return _.X(function(u){if(Y!==void 0&&P!==void 0)throw Error("Zj");
var e=(new Jy).setHeader(Zb(M,x,E));f=_.en(e,2,c);l!==void 0&&_.en(f,14,l);if(Y!==void 0){e=f;var px=Array.from(Y.values());_.wt(e,5,px,_.zB)}else P!==void 0&&(e=f,px=Array.from(P.values()),_.wt(e,3,px,_.zB));n!==void 0&&_.en(f,6,n);b!==void 0&&_.wx(f,15,b);k!==void 0&&(e=f,px=Array.from(k.values()),_.wt(e,4,px,_.TB));if(d!==void 0){if(d&&(!V||V.size===0))throw Error("dk");_.wx(f,8,d)}q!==void 0&&_.S2(f,9,q);g!==void 0&&_.en(f,13,g);C!==void 0&&(e=f,px=(new TextEncoder).encode(C),_.N2(e,12,_.Fd(px,
!1),_.QW()));h!==void 0&&_.en(f,16,h);S!==void 0&&_.Pa(f,18,S);if(N!==void 0&&N.size>0||V!==void 0&&V.size>0)Z=new gxA,V!==void 0&&V.size>0&&(e=Z,px=Array.from(V.values()),_.wt(e,1,px,_.zB)),N!==void 0&&(N.has(0)&&_.syC(Z,2,_.TB,1,_.Vr),N.has(1)&&_.syC(Z,2,_.TB,2,_.Vr)),_.Pa(f,17,Z);return u.return(M.makeRequest(M.galServiceClient.startLinkingSession,f,[1],[2]))})};
Lh.prototype.getMetadata=function(){var B=this,c,x;return _.X(function(P){c={};B.useFpa?(c["X-Goog-Api-Key"]=B.apiKey,c["X-Goog-AuthUser"]=B.authUser!==void 0?B.authUser.toString():"0",(x=_.zlC([]))&&(c.Authorization=x)):c.Authorization="Bearer "+B.oauthToken;B.locale&&(c["accept-language"]=B.locale);return P.return(c)})};
Lh.prototype.makeRequest=function(B,c,x,P){var Y=this,g;return _.X(function(k){if(k.nextAddress==1)return _.K(k,Y.getMetadata(),2);g=k.yieldResult;tnl(Y,x);return k.return(B.bind(Y.galServiceClient)(c,g).finally(function(){tnl(Y,P)}))})};
var tnl=function(B,c){B.galSdkEventHandler!==void 0&&c.forEach(function(x){B.galSdkEventHandler.onEvent(x)})},Zb=function(B,c,x){var P=new mO;
c=_.N2(P,2,_.tc(c),0);c=_.S2(c,5,3);x=_.wt(c,8,x,_.zB);B.bucket!==void 0&&_.en(x,1,B.bucket);return x},VnN=function(B){var c=B.serviceId;
var x=B.scopes;var P=B.capabilities;B=B.linkName;if(P!==void 0&&x!==void 0)throw Error("Zj");var Y=new S9B;c=_.en(Y,1,c);P!==void 0?(x=Array.from(P.values()),_.wt(c,5,x,_.zB)):x!==void 0&&(x=Array.from(x.values()),_.wt(c,3,x,_.zB));B!==void 0&&_.en(c,6,B);return c};var Key=function(B){this.galService=new Lh(B.alsDomain,B.apiKey,B.authUser,B.oauthToken,B.bucket,B.locale,B.galSdkEventHandler);this.JSC$17309_galRepository=new emo(this.galService)};
Key.prototype.getService=function(){return this.galService};var w8y=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(w8y,_.zL);var NcS=function(B){var c=new w8y;return _.Yr(c,1,B)};
w8y.prototype.setErrorMessage=function(B){return _.dW(this,2,B)};var Isl=[0,_.rQ,_.Ad,_.rQ];var Hk=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Hk,_.zL);var Jac=[0,[1,2,3],_.DZ,[0,HLF,AXz,-1],_.DZ,[0,iLz,-1],_.uWC];var WT6=[0,_.fY,1,_.rQ,_.Ad,-1,1,_.Rro,_.HG,_.rQ,-1,Jac];var lsA=[0,_.rQ,[0,_.Rro,_.HG,[0,_.Ad]],_.iJ,[0,_.rQ,-1]];var gv=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(gv,_.zL);var EEs=[0,_.Ad,_.rQ,-2,_.fY,_.rQ,_.fY,_.rQ,-2,1,_.iJ];var O2A=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(O2A,_.zL);var oEc=[0,_.fY];var Qvc=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Qvc,_.zL);var FTA=[0,_.rQ,lsA,oEc,EEs,WT6];var Zro=_.RU(Qvc,FTA);var vE6=[0,vxz];var DA8=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(DA8,_.zL);var zbl=[0,[1,3],BVi,_.rQ,BVi];var Yo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(Yo,_.zL);var Sro=[0,_.rQ];var yar=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(yar,_.zL);var ac=function(B){return _.vG(B,w8y,2,Pk)},G28=function(B){var c=new yar;
return _.YX(c,2,Pk,B)},Pk=[1,
2];var Mn6=[0,Pk,_.DZ,Sro,_.DZ,Isl,_.uJ,zbl,1,_.rQ,vE6];var LTB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(LTB,_.zL);var H2l=function(B){var c=new LTB;return _.YX(c,3,Z2F,B)},Z2F=[2,
3];var fh=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(fh,_.zL);var fsF=function(B,c){return _.Pa(B,2,c)},i26=function(B,c){return _.Pa(B,8,c)},Aaz=function(B,c){return _.Pa(B,3,c)};var uFz=[0,_.rQ,Mn6,FTA,_.gzI,[0,[5,6],[0,_.rQ,-2],[0,_.fY,_.rQ,_.Ad],[0,Jac],[0,_.Ad,_.rQ,-1,_.a8F,_.rQ],_.DZ,[0,[0,_.fY],_.rQ,-1],_.DZ,[0,[3,4],_.rQ,-1,_.DZ,[0,[0,_.rQ,_.iJ]],_.DZ,[0,[0,[0,[1,2],_.DZ,[0],_.DZ,[0]]]]]],_.gzI,-1,[0,Z2F,_.rQ,_.DZ,Sro,_.DZ,Isl,_.uJ,zbl,[0,vxz]]];var Dsr=_.RU(fh,uFz),rai=_.eJ(uFz);var Rbz=function(){_.tG.call(this)};
_.w(Rbz,_.tG);Rbz.prototype.init=function(){};
new Rbz;var ebl=_.r2(["data-"]),B2r=_.r2(["aria-"]),cEl=_.r2(["aria-"]),iZ=function(B,c){this.isLatencyMeasurementExperiment=B===void 0?!1:B;this.enableDialogA11yFix=c===void 0?!1:c;this.JSC$17338_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.O40(_.xI.location.href)},f3F=function(B,c){B.onConsentPrimitiveShownCallback=c},xbr=function(B,c){return B.overriddenIframeLoadTimeout?B.overriddenIframeLoadTimeout:c!==void 0?c:5E3},AVB=function(B){if(B.prewarmPromise!==void 0)return B.prewarmPromise;
B.prewarmPromise=new Promise(function(c,x){Ay(B,1);PUc(B,YBN(B,!0),aO8(B));B.iframe?B.prewarmChannel||gl6(B,B.iframe,c):x(Error("ek"))});
B.prewarmPromise.finally(function(){B.prewarmPromise=void 0});
return B.prewarmPromise};
iZ.prototype.showPrimitive=function(){var B=this;if(this.consentPromise!==void 0)return this.consentPromise;var c=Date.now();sEs(this,c);this.consentPromise=new Promise(function(x,P){Ay(B,0,c);var Y=B.isDarkTheme();B.isLatencyMeasurementExperiment||B.initialLoadingStrategy===1||B.initialLoadingStrategy===2||(B.loadingBar||(B.loadingBar=qkl(getComputedStyle(document.body).direction==="rtl",Y),B.loadingBar.style.position="fixed",B.loadingBar.style.zIndex="15000"),document.body.appendChild(B.loadingBar));
PUc(B,YBN(B),aO8(B));B.iframe?B.channel||pis(B,B.iframe,x,P):(kez(B),P(Error("ek")))});
this.consentPromise.finally(function(){B.consentPromise=void 0});
return this.consentPromise};
var pis=function(B,c,x,P){var Y,g;_.X(function(k){switch(k.nextAddress){case 1:Ay(B,3);Y=!1;setTimeout(function(){if(!Y){kez(B);Xic(B);$bs(B);var n=NcS(7).setErrorMessage("Timeout connecting to iframe");x(i26(fsF(new fh,G28(n)),H2l(n)))}},xbr(B,nl8(B)));
if(!B.prewarmPromise){k.jumpTo(2);break}_.kM(k,3);return _.K(k,B.prewarmPromise,5);case 5:_.Gw(k,2);break;case 3:_.be(k),g=NcS(4).setErrorMessage("Error while prewarming."),x(i26(fsF(new fh,G28(g)),H2l(g)));case 2:B.prewarmChannel&&B.prewarmChannel.send(rai(Aaz(new fh,B.consentPrimitiveRequest))),B.channel=_.BJ({destination:B.JSC$17338_win,iframe:c,origin:bCN(B),channelName:"cpw",onEstablished:function(){Y=!0;kez(B);B.isLatencyMeasurementExperiment||(B.JSC$17338_previousBodyOverflow=document.body.style.overflow,
B.JSC$17338_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,B.JSC$17338_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",B.enableDialogA11yFix&&window.addEventListener("blur",B.focusChangeListener));var n=B.iframe;n.style.bottom="0";n.style.position="fixed";n.style.right="0";n.style.border="none";n.style.left="0";n.style.top=
"0";n.style.zIndex="5000";n.style.pointerEvents="";n.style.visibility="";B.initialLoadingStrategy===2||B.initialLoadingStrategy===3?Ay(B,4):Ay(B,6);var b;(b=B.onConsentPrimitiveShownCallback)==null||b.call(B)},
onMessage:function(n){n=Dsr(n.data);switch(_.og(n,1)){case 1:Xic(B);var b=C4F(_.PA(n,_.L2,7));b&&(B.initialLoadingStrategy!==2&&B.initialLoadingStrategy!==3||Ay(B,6,b),Ay(B,5,b));if(b=C4F(_.PA(n,_.L2,6)))Ay(B,7,b),Ay(B,8);var d,q;((d=_.PA(n,yar,2))==null?void 0:_.wQ(d,Pk))!==0&&((q=_.PA(n,LTB,8))==null?void 0:_.wQ(q,Z2F))!==0||P(Error("fk"));x(n);break;case 2:$bs(B)}}}),_.Kq(k)}})},gl6=function(B,c,x){B.prewarmChannel=_.BJ({destination:B.JSC$17338_win,
iframe:c,origin:bCN(B),channelName:"pwcp",onEstablished:function(){Ay(B,2);x()}})},bCN=function(B){var c=_.X_(B.src).toString();
return c&&c.indexOf("://")<0&&c.indexOf("//")!==0?B.origin:_.O40(c)},YBN=function(B,c){c=c===void 0?!1:c;
var x,P=new Map([["origin",B.origin],["hl",(x=KHo(B))!=null?x:null]]);c&&P.set("pw","1");c=_.p([["cpr",B.consentPrimitiveRequest.serialize()]]);for(x=c.next();!x.done;x=c.next()){var Y=_.p(x.value);x=Y.next().value;Y=Y.next().value;P.set(x,Y)}B.isDarkTheme()&&P.set("color_scheme","dark");return _.Y2(B.src,P)},kez=function(B){B.isLatencyMeasurementExperiment||B.loadingBar&&document.body.removeChild(B.loadingBar)};
iZ.prototype.getSrc=function(){var B=_.Dg(this.origin),c;var x=(c=_.PA(this.consentPrimitiveRequest,O2A,3))==null?void 0:_.Ph(c,1);c="consent.google.com";x=x?"/u/"+encodeURIComponent(x.toString()):"";(B==null?0:B.endsWith("youtube.com"))?c="consent.youtube.com":(B=B==null?void 0:B.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(c="consent.google."+((B[1]?"co.":"")+encodeURIComponent(B[2])));return _.kX("https://"+c+"/signedin"+x+"/landing")};
var PUc=function(B,c,x){B.iframe||(B.iframe=document.createElement("iframe"),B.iframe.style.width="100%",B.iframe.style.height="100%",x!==112496729&&(B.iframe.style.colorScheme="auto"),B.isLatencyMeasurementExperiment&&(B.iframe.style.display="none"),_.EG(B.iframe,c),B.iframe.setAttribute("jsname","C5o1O"),jEA(B.iframe),document.body.appendChild(B.iframe))},jEA=function(B){B.style.bottom="-200vh";
B.style.position="fixed";B.style.right="-200vw";B.style.border="";B.style.left="";B.style.top="";B.style.zIndex="";B.style.pointerEvents="none";B.style.visibility="hidden"},Xic=function(B){B.iframe&&(B.isLatencyMeasurementExperiment||(B.JSC$17338_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=B.JSC$17338_previousHtmlOverscroll),B.JSC$17338_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=B.JSC$17338_previousBodyOverscroll),B.JSC$17338_previousBodyOverflow!==
void 0&&(document.body.style.overflow=B.JSC$17338_previousBodyOverflow),B.enableDialogA11yFix&&Ubo(B,!1)),jEA(B.iframe))};
iZ.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Ubo(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Ubo=function(B,c){var x,P,Y=(x=B.iframe)==null?void 0:(P=x.parentElement)==null?void 0:P.children;if(Y)for(x=0;x<Y.length;x++)P=Y[x],P!==B.iframe&&(c?(P.hasAttribute("aria-hidden")&&_.Zz([_.cM(ebl)],P,"data-old-aria-hidden",P.getAttribute("aria-hidden")),_.Zz([_.cM(B2r)],P,"aria-hidden","true")):(P.removeAttribute("aria-hidden"),P.hasAttribute("data-old-aria-hidden")&&(_.Zz([_.cM(cEl)],P,"aria-hidden",P.getAttribute("data-old-aria-hidden")),P.removeAttribute("data-old-aria-hidden"))))},Ay=function(B,
c,x){var P;
(P=B.latencyCallback)==null||P.call(B,{latencyType:c,timestampEpochMillis:x!=null?x:Date.now()})};var dbo=function(B,c,x){iZ.call(this,c,x===void 0?!1:x);this.consentPrimitiveRequest=B;B=KHo(this);_.bUi(B);this.src=this.getSrc();var P;this.initialLoadingStrategy=(P=_.PA(this.consentPrimitiveRequest,gv,4))==null?void 0:_.og(P,4)},qBc;
_.w(dbo,iZ);var Hrr=function(B){var c=_.T("enable_primitive_dialog_aria_hide_siblings");B={request:B,enableDialogA11yFix:c===void 0?!1:c};qBc||(qBc=new dbo(B.request,B.isLatencyMeasurementExperiment||_.og(B.request,1)===2,B.enableDialogA11yFix));return qBc},KHo=function(B){var c;
return(c=_.PA(B.consentPrimitiveRequest,gv,4))==null?void 0:_.OZ(c,1)},sEs=function(B,c){if(!_.mF(B.consentPrimitiveRequest,Hk,5)){var x=B.consentPrimitiveRequest,P=new Hk;
_.Pa(x,5,P)}var Y;if((Y=_.PA(B.consentPrimitiveRequest,Hk,5))==null||_.nFq(_.hd(Y,8))==null){var g;(g=_.PA(B.consentPrimitiveRequest,Hk,5))!=null&&_.mD(g,8,c)}},aO8=function(B){var c;
return(c=_.PA(B.consentPrimitiveRequest,Hk,5))==null?void 0:_.Ph(c,1)};
dbo.prototype.isDarkTheme=function(){var B;return((B=_.PA(this.consentPrimitiveRequest,gv,4))==null?void 0:_.og(B,2))===2};
var nl8=function(B){var c;return((c=_.PA(B.consentPrimitiveRequest,gv,4))==null?void 0:_.Ph(c,5))||void 0},$bs=function(B){B.channel=void 0;
B.prewarmChannel=void 0;B.iframe&&(document.body.contains(B.iframe)&&document.body.removeChild(B.iframe),B.iframe=void 0);qBc=void 0},uI6=function(B){return iZ.prototype.showPrimitive.call(B).then(function(c){return _.PA(c,yar,2)})};for(var uZ={},CUz=(uZ[64]="ma",uZ[73]="ogb",uZ[89]="cr",uZ[21]="test",uZ[0]="unkn",uZ[137]="con",uZ[155]="hl",uZ[78]="yt",uZ[171]="lp",uZ[172]="ap",uZ[177]="amo",uZ[178]="pqe",uZ[74]="gg",uZ[1]="gm",uZ[140]="am",uZ[193]="sc",uZ),hvl=_.p(Object.keys(CUz)),mbS=hvl.next();!mbS.done;mbS=hvl.next());var T2l=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(T2l,_.zL);var VXz=[0,[2,3,4],_.rQ,f9c,BVi,_.uWC];var tXi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(tXi,_.zL);var wiz=_.RU(tXi,[0,eYN,_.Ad,_.rQ,_.Ad,_.rQ,VXz]);var N2o=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(N2o,_.zL);N2o.prototype.getCommand=function(){return _.og(this,1)};
var IOF=function(){var B=new N2o;return _.S2(B,1,0)};var JEB=_.eJ([0,eYN,_.Ad,[0,_.rQ,_.Ad,-1]]);var WHo=new _.da("s"),lOS=new _.da("t"),Elc=new _.da("u"),OCS=new _.da("v"),olF=function(B,c,x){_.qf.call(this,WHo);this.mediaKey=B;this.photoUrl=c;this.photoSource=x};
_.w(olF,_.qf);var QEF=function(){_.qf.call(this,lOS)};
_.w(QEF,_.qf);var FHF=function(B){B=B===void 0?!1:B;_.qf.call(this,Elc);this.isError=B};
_.w(FHF,_.qf);var vll=function(){_.qf.call(this,OCS)};
_.w(vll,_.qf);var zvz=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,MXo=function(B){if(typeof B=="string"){if(B.charAt(0)==".")return SBz(B.substr(1));if(B.charAt(0)=="["){var c=zvz.exec(B);B=B.indexOf("=")==-1?void 0:c[3];return yEz(c[1],B)}return Gez(B)}return B},SBz=function(B){return function(c){return c.getAttribute&&_.Zu(c,B)}},yEz=function(B,c){return function(x){return c!==void 0?x.getAttribute&&x.getAttribute(B)==c:x.hasAttribute&&x.hasAttribute(B)}},Gez=function(B){B=B.toUpperCase();
return function(c){return(c=c.tagName)&&c.toUpperCase()==B}},LHl=function(){return!0};var Db=function(B,c){this.JSC$17366_key_=B;this.JSC$17366_value_=c},rv=function(B){throw Error("gk`"+B.JSC$17366_key_);
},ZCF=function(B,c){return new TypeError("hk`"+c+"`"+B.JSC$17366_key_+"`"+B.JSC$17366_value_+"`"+typeof B.JSC$17366_value_)};
Db.prototype.string=function(B){if(arguments.length==0)var c=HCz(this);else{var x;c=(x=fOz(this))!=null?x:B}return c};
var HCz=function(B){var c=fOz(B);c===null&&rv(B);return c},fOz=function(B){var c=B.JSC$17366_value_;
if(c==null)return null;if(typeof c==="string")return c;throw ZCF(B,"string");};
Db.prototype.bool=function(B){if(arguments.length==0){var c=this.optionalBool();c===null&&rv(this)}else{var x;c=(x=this.optionalBool())!=null?x:B}return c};
Db.prototype.optionalBool=function(){var B=this.JSC$17366_value_;if(B==null)return null;if(typeof B==="boolean")return B;if(typeof B==="string"){B=B.toLowerCase();if(B==="true"||B==="1")return!0;if(B==="false"||B==="0")return!1}throw ZCF(this,"boolean");};
Db.prototype.number=function(B){if(arguments.length==0){var c=iCl(this);c===null&&rv(this)}else{var x;c=(x=iCl(this))!=null?x:B}return c};
var iCl=function(B){var c=B.JSC$17366_value_;if(c==null)return null;if(typeof c==="number")return c;if(typeof c==="string"){var x=Number(c);if(!isNaN(x)&&(x!==0||c.trim().length!==0))return x}throw ZCF(B,"number");};
Db.prototype.toString=function(){return HCz(this)};
Db.prototype.array=function(B){if(arguments.length==0){var c=AEN(this);c===null&&rv(this);return c}c=AEN(this);return c==null?B:c};
var AEN=function(B){var c=B.JSC$17366_value_;if(c==null)return null;Array.isArray(c)||(typeof c!=="string"?c=[c]:(c=c.trim(),c=c==""?[]:c.split(",").map(function(x){return x.trim()})));
return uso(B,c)},uso=function(B,c){var x=B.JSC$17366_key_+"[";
return Array.from(c,function(P,Y){return new Db(x+Y+"]",P)})};
Db.prototype.object=function(B){var c=this.JSC$17366_value_;if(c==null)return B===void 0&&rv(this),B;if(typeof c==="object"&&c.constructor===Object){B={};var x=this.JSC$17366_key_+".",P;for(P in c)B[P]=new Db(x+P,c[P]);return B}throw ZCF(this,"object");};var Rc=function(B){this.list_=Dbr(B)},Dbr=function(B){if(B instanceof Rc)B=B.list_;
else if(B[0]instanceof Rc){for(var c=new Set,x=0;x<B.length;x++)for(var P=_.p(B[x].list_),Y=P.next();!Y.done;Y=P.next())c.add(Y.value);B=c}return[].concat(_.wq(B))};
_.a=Rc.prototype;_.a.each=function(B,c,x){((x===void 0?0:x)?Nr6:_.Zg)(this.list_,B,c);return this};
_.a.size=function(){return this.list_.length};
_.a.isEmpty=function(){return this.list_.length===0};
_.a.get=function(B){return this.list_[B]||null};
_.a.el=function(){return this.list_[0]||null};
_.a.map=function(B,c){return _.I3(this.list_,B,c)};
_.a.equals=function(B){return this===B||_.p4(this.list_,B.list_)};
_.a.first=function(){return this.list_.length==0?null:new es(this.list_[0])};
_.a.find=function(B){var c=[];this.each(function(x){x=x.querySelectorAll(String(B));for(var P=0;P<x.length;P++)c.push(x[P])});
return new Rc(c)};
_.a.parent=function(){var B=[];this.each(function(c){(c=c.parentElement||null)&&!_.Lx(B,c)&&B.push(c)});
return new Rc(B)};
_.a.children=function(){var B=[];this.each(function(c){c=_.OY(c);for(var x=0;x<c.length;x++)B.push(c[x])});
return new Rc(B)};
_.a.filter=function(B){B=_.kV(this.list_,MXo(B));return new Rc(B)};
_.a.closest=function(B){var c=[],x=MXo(B),P=function(Y){return _.ur(Y)&&x(Y)};
this.each(function(Y){(Y=_.QE(Y,P,!0))&&!_.Lx(c,Y)&&c.push(Y)});
return new Rc(c)};
_.a.next=function(B){return rEo(this,_.DY9,B)};
_.a.prev=function(B){return rEo(this,cWr,B)};
var rEo=function(B,c,x){var P=[];var Y=x?MXo(x):LHl;B.each(function(g){(g=c(g))&&Y(g)&&P.push(g)});
return new Rc(P)};
Rc.prototype.setClass=function(B){return this.each(function(c){_.LR(c,B)})};
var Rvs=function(B,c){return B.each(function(x){_.rX(x,c)})},evA=function(B,c){return B.each(function(x){_.uA(x,c)})};
Rc.prototype.toggleClass=function(B,c){return c===!0?Rvs(this,B):c===!1?evA(this,B):this.each(function(x){_.Zu(x,B)?_.uA(x,B):_.rX(x,B)})};
Rc.prototype.setText=function(B){return this.each(function(c){_.of(c,B)})};
var BQF=function(B){B.each(function(c){c.removeAttribute("aria-hidden")})};
Rc.prototype.getStyle=function(B){if(this.list_.length>0){var c=this.list_[0],x=c.style[_.KN(B)];return typeof x!=="undefined"?x:c.style[_.k5y(c,B)]||""}};
Rc.prototype.getData=function(B){if(this.list_.length===0)return new Db(B,null);var c=OU6(this.list_[0],B);return new Db(B,c)};
Rc.prototype.focus=function(B){try{B?this.el().focus(B):this.el().focus()}catch(c){}return this};
Rc.prototype.click=function(){var B=_.ly(this.el());if(B.createEvent){var c=B.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,B.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(c)}else B=B.createEventObject(),B.clientX=0,B.clientY=0,B.screenX=0,B.screenY=0,B.altKey=!1,B.ctrlKey=!1,B.shiftKey=!1,B.button=0,this.el().fireEvent("onclick",B)};
var B1=function(B,c,x,P){function Y(n,b,d){var q=b;b&&b.parentNode&&(q=b.cloneNode(!0));n(q,d)}
P=P===void 0?!1:P;if(B.list_.length==1){var g=B.list_[0],k=function(n){return c(n,g)};
x instanceof Rc?x.each(k,void 0,P):Array.isArray(x)?(P?Nr6:_.Zg)(x,k):k(x);return B}return B.each(function(n){x instanceof Rc?x.each(function(b){Y(c,b,n)}):Array.isArray(x)?_.Zg(x,function(b){Y(c,b,n)}):Y(c,x,n)})};
_.a=Rc.prototype;_.a.append=function(B){return B1(this,function(c,x){c&&x.appendChild(c)},B)};
_.a.appendTo=function(B){(new Rc([B])).append(this);return this};
_.a.remove=function(){return B1(this,function(B,c){_.qH(c)},null)};
_.a.empty=function(){return B1(this,function(B,c){_.WJ(c)},null)};
_.a.after=function(B,c){return B1(this,function(x,P){x&&_.EY(x,P)},B,!(c===void 0||c))};
_.a.before=function(B){return B1(this,function(c,x){c&&_.lL(c,x)},B)};
_.a.replaceWith=function(B){return B1(this,function(c,x){c&&_.ix9(c,x)},B)};
_.a.toggle=function(B){return this.each(function(c){_.iW(c,B)})};
_.a.show=function(){return this.toggle(!0)};
_.a.hide=function(){return this.toggle(!1)};
_.a.trigger=function(B,c,x,P){return cdz(this,B,c,x,P)};
var cdz=function(B,c,x,P,Y){return B.each(function(g){_.UR$(_.ly(g)).triggerWizEventInternal(g,c,x,P,Y)})},es=function(B,c){B instanceof Rc&&(c=B.list_,B=null);
this.list_=Dbr(B!=null?[B]:c)};
_.sZ(es,Rc);_.a=es.prototype;_.a.children=function(){return new Rc(Array.prototype.slice.call(_.OY(this.list_[0])))};
_.a.each=function(B,c){B.call(c,this.list_[0],0);return this};
_.a.size=function(){return 1};
_.a.el=function(){return this.list_[0]};
_.a.first=function(){return this};var c1=function(B,c){c=c===void 0?window:c;this.hostId=B;this.JSC$17377_win=c;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$17377_previousHtmlOverscroll=this.JSC$17377_previousBodyOverscroll=this.JSC$17377_previousBodyOverflow="";this.eventTarget=new _.V4;this.JSC$17377_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
YZ8=function(B){var c=xyy(xyy(xyy(new PJS(78),"po"),"hppp"),"hhc");
c.authUser=Number(_.v5("SESSION_INDEX","0"));c.colorScheme=B;return c};
c1.prototype.getOrigin=function(){return this.origin?this.origin:_.xf(_.c_(_.B_(new _.ih,this.JSC$17377_win.location.protocol),this.JSC$17377_win.location.hostname),this.JSC$17377_win.location.port).toString()};
c1.prototype.getTargetOrigin=function(){return _.xf(_.c_(_.B_(new _.ih,this.scheme),this.domain),this.port)};
c1.prototype.preloadIframe=function(B){var c=this;if(this.iframeLoadPromise===void 0){var x=document.createElement("iframe");this.iframe=x;NYz(x,B);this.iframeLoadPromise=new Promise(function(P,Y){var g=!1,k=function(n){n.stopPropagation();x.removeEventListener("error",k);x.removeEventListener("securitypolicyviolation",k);Y(Error("ik",{cause:n}))};
x.addEventListener("error",k);x.addEventListener("securitypolicyviolation",k);setTimeout(function(){g||Y(Error("jk"))},3E4);
aZz(c,x,function(){g=!0;x.removeEventListener("error",k);x.removeEventListener("securitypolicyviolation",k);P()})});
gV6(this);B=this.getTargetOrigin().toString();x.setAttribute("allow","camera "+B+"; display-capture "+B);this.parentElement.appendChild(x)}return this.iframeLoadPromise};
var kol=function(B,c){var x,P;return _.X(function(Y){if(Y.nextAddress==1)return x=qkl(getComputedStyle(B.parentElement).direction==="rtl"),B.parentElement.appendChild(x),document.activeElement instanceof HTMLElement&&(B.elementToFocusAfterClose=document.activeElement),_.kM(Y,2),_.K(Y,B.preloadIframe(c),4);if(Y.nextAddress!=2){B.parentElement.removeChild(x);B.JSC$17377_previousBodyOverflow=B.parentElement.style.overflow;B.JSC$17377_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
B.JSC$17377_previousBodyOverscroll=B.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";B.parentElement.style.overscrollBehavior="contain";B.parentElement.style.overflow="hidden";var g=B.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=B.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
B.opened=!0;sgF(B);return _.Gw(Y,0)}P=_.be(Y);B.parentElement.removeChild(x);VOl(B.isDarkTheme());pG8(B,!1);throw Error("kk",{cause:P});})},pG8=function(B,c){c=c===void 0?!0:c;
B.iframe!==void 0&&(XGi(B),document.documentElement.style.overscrollBehavior=B.JSC$17377_previousHtmlOverscroll,B.parentElement.style.overscrollBehavior=B.JSC$17377_previousBodyOverscroll,B.parentElement.style.overflow=B.JSC$17377_previousBodyOverflow,B.elementToFocusAfterClose!==void 0&&(B.elementToFocusAfterClose.focus(),B.elementToFocusAfterClose=void 0),c?gV6(B):(B.parentElement.removeChild(B.iframe),B.iframe=void 0,B.iframeLoadPromise=void 0,B.mainChannel=void 0),B.opened=!1)},XGi=function(B){B.backgroundElementsAriaHiddenIsNull&&
(BQF(B.backgroundElementsAriaHiddenIsNull),B.backgroundElementsAriaHiddenIsNull=void 0);
B.backgroundElementsAriaHiddenIsFalse&&(B.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","false")}),B.backgroundElementsAriaHiddenIsFalse=void 0);
B.backgroundElementsWithoutInert&&(B.backgroundElementsWithoutInert.each(function(c){c.removeAttribute("inert")}),B.backgroundElementsWithoutInert=void 0)},sgF=function(B){B.backgroundElementsAriaHiddenIsNull=(new es(B.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")===null&&c!==B.iframe});
B.backgroundElementsAriaHiddenIsNull.each(function(c){c.setAttribute("aria-hidden","true")});
B.backgroundElementsAriaHiddenIsFalse=(new es(B.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")==="false"&&c!==B.iframe});
B.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","true")});
B.backgroundElementsWithoutInert=(new es(B.iframe.parentElement)).children().filter(function(c){return!c.hasAttribute("inert")&&c!==B.iframe});
B.backgroundElementsWithoutInert.each(function(c){c.setAttribute("inert","true")})},gV6=function(B){B=B.iframe;
B.style.bottom="-1000px";B.style.position="fixed";B.style.right="-1000px";B.style.border="";B.style.height="";B.style.left="";B.style.top="";B.style.width="";B.style.zIndex="";B.setAttribute("aria-hidden","true");B.setAttribute("aria-modal","false")};
c1.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var PJS=function(B,c){c1.call(this,CUz[B],c);this.options=[];this.style=""};
_.w(PJS,c1);var $yo=function(B){B.style="youtube";return B},nVl=function(B,c){B.eventTarget.listen(Elc,c);
return B},bYl=function(B,c){B.eventTarget.listen(WHo,c);
return B},xyy=function(B,c){B.options.push(c);
return B},KFl=function(B){var c=[B.getOrigin()];
B.ancestorOrigins&&c.push.apply(c,_.wq(B.ancestorOrigins));var x=new _.ih(B.JSC$17377_win.location.href),P=B.startUrl?B.startUrl:B.options.includes("po")?"profile-picture/art":"profile-picture";c=st(_.P_(B.getTargetOrigin(),P),"origin",c);B.startUrl&&_.fS(c,"startPath",B.startUrl);B.authUser>0&&_.fS(c,"authuser",B.authUser);B.pageId!==void 0&&_.fS(c,"pageId",B.pageId);_.fS(c,"hostId",B.hostId);B.jsMode!==void 0&&_.fS(c,"jsmode",B.jsMode);B.rectangleRatio!==void 0&&_.fS(c,"rectangleRatio",B.rectangleRatio);
B.options.length>0&&_.fS(c,"opts",B.options.join(","));try{for(var Y=_.p(["utm_source","utm_medium","utm_campaign","utm_content"]),g=Y.next();!g.done;g=Y.next()){var k=g.value;_.Hh(x,k)&&_.fS(c,k,_.Hh(x,k))}var n,b=(n=B.hl)!=null?n:_.Hh(x,"hl");b!==void 0&&_.fS(c,"hl",b)}catch(d){if(!(d instanceof URIError))throw d;}B.colorScheme&&_.fS(c,"theme",B.colorScheme);B.style&&_.fS(c,"style",B.style);return c},jg6=function(B,c){B.mainChannel=_.BJ({destination:B.JSC$17377_win,
iframe:c,origin:B.getTargetOrigin().toString(),channelName:"ow",onMessage:function(x){x=wiz(x.data);if(c===B.iframe)switch(_.og(x,1)){case 1:B.eventTarget.dispatchEvent(new FHF);pG8(B);break;case 2:B.eventTarget.dispatchEvent(new olF(_.OZ(x,4),_.OZ(x,2),_.og(x,5),_.PA(x,T2l,6)));break;case 0:var P;B.eventTarget.dispatchEvent(new QEF(_.OZ(x,2),(P=_.og(x,3))!=null?P:0));break;case 3:B.eventTarget.dispatchEvent(new FHF(!0));pG8(B,!1);break;case 4:B.eventTarget.dispatchEvent(new vll)}}})},aZz=function(B,
c,x){_.BJ({destination:B.JSC$17377_win,
iframe:c,origin:_.xf(_.c_(_.B_(new _.ih,B.scheme),B.domain),B.port).toString(),channelName:"owi",onMessage:function(P){c===B.iframe&&(x!==void 0&&x(),jg6(B,c),B.opened&&B.mainChannel.send(JEB(IOF())),P.reply(),aZz(B,c))}})};
PJS.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?c1.prototype.preloadIframe.call(this,KFl(this).toString()):this.iframeLoadPromise};
PJS.prototype.openPicker=function(B){var c=this;return _.X(function(x){if(x.nextAddress==1)return c.startUrl=B?B:c.options.includes("po")?"profile-picture/art":"profile-picture",_.K(x,kol(c,KFl(c).toString()),2);if(c.mainChannel){var P=c.mainChannel,Y=P.send;var g=IOF();g=_.dW(g,2,c.startUrl);Y.call(P,JEB(g))}_.Kq(x)})};var UyB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(UyB,_.zL);_.a=UyB.prototype;_.a.getSize=function(){return Kh(this,1)};
_.a.setSize=function(B){return _.zo(this,1,B)};
_.a.getWidth=function(){return Kh(this,12)};
_.a.getHeight=function(){return Kh(this,13)};
_.a.setCenterCrop=function(B){return _.sq(this,20,B)};
_.a.getHtml=function(){return _.WG(this,4)};
_.a.getToken=function(){return _.Uq(this,24)};
_.a.setToken=function(B){return _.dW(this,24,B)};
_.a.getBackgroundColor=function(){return Kh(this,87)};
_.a.hasBackgroundColor=function(){return _.wl(_.hd(this,87))!=null};
_.a.getStoryboardLevel=function(){return Kh(this,109)};var xK=function(B){this.JSC$17385_value_=void 0;this.childNodes_={};if(B){var c=_.Sd9(B);B=_.eQ(B);for(var x=0;x<c.length;x++)this.set(c[x],B[x])}};
xK.prototype.set=function(B,c){dyN(this,B,c,!1)};
xK.prototype.add=function(B,c){dyN(this,B,c,!0)};
var dyN=function(B,c,x,P){for(var Y=0;Y<c.length;Y++){var g=c.charAt(Y);B.childNodes_[g]||(B.childNodes_[g]=new xK);B=B.childNodes_[g]}if(P&&B.JSC$17385_value_!==void 0)throw Error("lk`"+c);B.JSC$17385_value_=x},qZA=function(B,c){for(var x=0;x<c.length;x++)if(B=B.childNodes_[c.charAt(x)],!B)return;
return B};
xK.prototype.get=function(B){return(B=qZA(this,B))?B.JSC$17385_value_:void 0};
xK.prototype.getValues=function(){var B=[];CJc(this,B);return B};
var CJc=function(B,c){B.JSC$17385_value_!==void 0&&c.push(B.JSC$17385_value_);for(var x in B.childNodes_)CJc(B.childNodes_[x],c)};
xK.prototype.getKeys=function(B){var c=[];if(B){for(var x=this,P=0;P<B.length;P++){var Y=B.charAt(P);if(!x.childNodes_[Y])return[];x=x.childNodes_[Y]}hFr(x,B,c)}else hFr(this,"",c);return c};
var hFr=function(B,c,x){B.JSC$17385_value_!==void 0&&x.push(c);for(var P in B.childNodes_)hFr(B.childNodes_[P],c+P,x)};
_.a=xK.prototype;_.a.containsKey=function(B){return this.get(B)!==void 0};
_.a.containsValue=function(B){if(this.JSC$17385_value_===B)return!0;for(var c in this.childNodes_)if(this.childNodes_[c].containsValue(B))return!0;return!1};
_.a.clear=function(){this.childNodes_={};this.JSC$17385_value_=void 0};
_.a.remove=function(B){for(var c=this,x=[],P=0;P<B.length;P++){var Y=B.charAt(P);if(!c.childNodes_[Y])throw Error("mk`"+B);x.push([c,Y]);c=c.childNodes_[Y]}B=c.JSC$17385_value_;for(delete c.JSC$17385_value_;x.length>0;)if(P=x.pop(),c=P[0],P=P[1],c.childNodes_[P].isEmpty())delete c.childNodes_[P];else break;return B};
_.a.clone=function(){return new xK(this)};
_.a.getCount=function(){return anN(this.getValues())};
_.a.isEmpty=function(){return this.JSC$17385_value_===void 0&&_.wW.isEmpty(this.childNodes_)};var EWs=function(){if(!myS){var B=myS=new xK,c;for(c in TQS)B.add(c,TQS[c])}},myS,P1=function(B,c){this.types=B;
this.setters=c},TQS={a:new P1([3,
0],[function(B,c){_.sq(B,21,c)},
function(B,c){_.zo(B,56,c)}]),
al:new P1([3],[function(B,c){_.sq(B,74,c)}]),
b:new P1([3,0],[function(B,c){_.sq(B,23,c)},
function(B,c){_.zo(B,38,c)}]),
ba:new P1([0],[function(B,c){_.zo(B,85,c)}]),
bc:new P1([0],[function(B,c){_.zo(B,87,c)}]),
br:new P1([0],[function(B,c){_.zo(B,86,c)}]),
c:new P1([3,0],[function(B,c){_.sq(B,2,c)},
function(B,c){_.zo(B,39,c)}]),
cc:new P1([3],[function(B,c){_.sq(B,51,c)}]),
ci:new P1([3],[function(B,c){_.sq(B,32,c)}]),
ckm:new P1([3],[function(B,c){_.sq(B,104,c)}]),
cp:new P1([0],[function(B,c){_.zo(B,92,c)}]),
cr:new P1([3],[function(B,c){_.sq(B,108,c)}]),
cv:new P1([0],[function(B,c){_.zo(B,94,c)}]),
d:new P1([3],[function(B,c){_.sq(B,3,c)}]),
dc:new P1([5],[function(B,c){_.dW(B,99,c)}]),
df:new P1([3],[function(B,c){_.sq(B,80,c)}]),
dv:new P1([3],[function(B,c){_.sq(B,90,c)}]),
e:new P1([0],[function(B,c){_.zo(B,15,c)}]),
em:new P1([0],[function(B,c){_.zo(B,107,c)}]),
f:new P1([4],[function(B,c){_.dW(B,16,c)}]),
fg:new P1([3],[function(B,c){_.sq(B,34,c)}]),
fh:new P1([3],[function(B,c){_.sq(B,30,c)}]),
fm:new P1([3],[function(B,c){_.sq(B,84,c)}]),
fo:new P1([2],[function(B,c){_.ax(B,79,_.X6(c))}]),
ft:new P1([3],[function(B,c){_.sq(B,50,c)}]),
fv:new P1([3],[function(B,c){_.sq(B,31,c)}]),
g:new P1([3],[function(B,c){_.sq(B,14,c)}]),
gce:new P1([4],[function(B,c){_.dW(B,112,c)}]),
gd:new P1([3],[function(B,c){_.sq(B,83,c)}]),
gm:new P1([3],[function(B,c){_.sq(B,105,c)}]),
h:new P1([3,0],[function(B,c){_.sq(B,4,c)},
function(B,c){_.zo(B,13,c)}]),
i:new P1([3],[function(B,c){_.sq(B,22,c)}]),
ic:new P1([0],[function(B,c){_.zo(B,71,c)}]),
id:new P1([3],[function(B,c){_.sq(B,70,c)}]),
il:new P1([3],[function(B,c){_.sq(B,96,c)}]),
ip:new P1([3],[function(B,c){_.sq(B,54,c)}]),
iv:new P1([0],[function(B,c){_.mD(B,75,c)}]),
j:new P1([1],[function(B,c){c=c==null?c:Wcl(c);_.ax(B,29,c)}]),
k:new P1([3,0],[function(B,c){_.sq(B,17,c)},
function(B,c){_.zo(B,42,c)}]),
l:new P1([0],[function(B,c){_.zo(B,44,c)}]),
lf:new P1([3],[function(B,c){_.sq(B,65,c)}]),
lo:new P1([3],[function(B,c){_.sq(B,97,c)}]),
m:new P1([0],[function(B,c){_.zo(B,63,c)}]),
md:new P1([3],[function(B,c){_.sq(B,91,c)}]),
mm:new P1([4],[function(B,c){_.dW(B,81,c)}]),
mo:new P1([3],[function(B,c){_.sq(B,73,c)}]),
mv:new P1([3],[function(B,c){_.sq(B,66,c)}]),
n:new P1([3],[function(B,c){B.setCenterCrop(c)}]),
nc:new P1([3],[function(B,c){_.sq(B,55,c)}]),
nd:new P1([3],[function(B,c){_.sq(B,53,c)}]),
ng:new P1([3],[function(B,c){_.sq(B,95,c)}]),
ngm:new P1([3],[function(B,c){_.sq(B,106,c)}]),
no:new P1([3],[function(B,c){_.sq(B,37,c)}]),
ns:new P1([3],[function(B,c){_.sq(B,40,c)}]),
nt0:new P1([4],[function(B,c){_.dW(B,36,c)}]),
ntm:new P1([3],[function(B,c){_.sq(B,114,c)}]),
nu:new P1([3],[function(B,c){_.sq(B,46,c)}]),
nw:new P1([3],[function(B,c){_.sq(B,48,c)}]),
o:new P1([1,3],[function(B,c){c=c==null?c:Wcl(c);_.ax(B,7,c)},
function(B,c){_.sq(B,27,c)}]),
p:new P1([3,0],[function(B,c){_.sq(B,19,c)},
function(B,c){_.zo(B,43,c)}]),
pa:new P1([3],[function(B,c){_.sq(B,61,c)}]),
pc:new P1([0],[function(B,c){_.zo(B,88,c)}]),
pd:new P1([3],[function(B,c){_.sq(B,60,c)}]),
pf:new P1([3],[function(B,c){_.sq(B,67,c)}]),
pg:new P1([3],[function(B,c){_.sq(B,72,c)}]),
pi:new P1([2],[function(B,c){_.ax(B,76,_.X6(c))}]),
pp:new P1([3],[function(B,c){_.sq(B,52,c)}]),
pt:new P1([4],[function(B,c){_.dW(B,111,c)}]),
q:new P1([4],[function(B,c){_.dW(B,28,c)}]),
r:new P1([3,0],[function(B,c){_.sq(B,6,c)},
function(B,c){_.zo(B,26,c)}]),
ra:new P1([3],[function(B,c){_.sq(B,103,c)}]),
rf:new P1([3],[function(B,c){_.sq(B,100,c)}]),
rg:new P1([3],[function(B,c){_.sq(B,59,c)}]),
rh:new P1([3],[function(B,c){_.sq(B,49,c)}]),
rj:new P1([3],[function(B,c){_.sq(B,57,c)}]),
ro:new P1([2],[function(B,c){_.ax(B,78,_.X6(c))}]),
rp:new P1([3],[function(B,c){_.sq(B,58,c)}]),
rw:new P1([3],[function(B,c){_.sq(B,35,c)}]),
rwa:new P1([3],[function(B,c){_.sq(B,64,c)}]),
rwu:new P1([3],[function(B,c){_.sq(B,41,c)}]),
s:new P1([3,0],[function(B,c){_.sq(B,33,c)},
function(B,c){B.setSize(c)}]),
sb:new P1([0],[function(B,c){_.zo(B,110,c)}]),
sc:new P1([0],[function(B,c){_.zo(B,89,c)}]),
sg:new P1([3],[function(B,c){_.sq(B,82,c)}]),
sl:new P1([0],[function(B,c){_.zo(B,109,c)}]),
sm:new P1([3],[function(B,c){_.sq(B,93,c)}]),
t:new P1([4],[function(B,c){B.setToken(c)}]),
tm:new P1([3],[function(B,c){_.sq(B,113,c)}]),
u:new P1([3],[function(B,c){_.sq(B,18,c)}]),
ut:new P1([3],[function(B,c){_.sq(B,45,c)}]),
v:new P1([0],[function(B,c){_.zo(B,62,c)}]),
vb:new P1([0],[function(B,c){_.mD(B,68,c)}]),
vf:new P1([4],[function(B,c){_.dW(B,102,c)}]),
vl:new P1([0],[function(B,c){_.mD(B,69,c)}]),
vm:new P1([3],[function(B,c){_.sq(B,98,c)}]),
w:new P1([0],[function(B,c){_.zo(B,12,c)}]),
x:new P1([0],[function(B,c){_.zo(B,9,c)}]),
y:new P1([0],[function(B,c){_.zo(B,10,c)}]),
ya:new P1([2],[function(B,c){_.ax(B,77,_.X6(c))}]),
z:new P1([0],[function(B,c){_.zo(B,11,c)}])};
EWs.prototype.parse=function(B){var c=new UyB,x=new UyB;if(B=="")B=!0;else{B=B.split("-");for(var P=!0,Y=0;Y<B.length;Y++){var g=B[Y];if(g.length==0)P=!1;else{var k=g,n=!1;var b=k;var d=k.charAt(0);d!=d.toLowerCase()&&(n=!0,b=k.charAt(0).toLowerCase()+k.substring(1));var q=myS;for(d=1;d<=b.length;++d){var C=q,h=b.substring(0,d);if(h.length==0?C.isEmpty():!qZA(C,h))break}b=d==1?null:(b=q.get(b.substring(0,d-1)))?{option:k.substring(0,d-1),value:k.substring(d-1),signed:n,attributes:b}:null;if(b){k=
[];n=[];d=!1;for(q=0;q<b.attributes.types.length;q++){C=b.attributes.types[q];var V=b.value;h=Y;if(b.signed&&C==1)for(var N=V.length;N<12&&h<B.length-1;)V+="-"+B[h+1],N=V.length,++h;else if(C==2)for(;h<B.length-1&&B[h+1].match(/^[\d\.]/);)V+="-"+B[h+1],++h;N=b.attributes.setters[q];V=V2z(this,C)(b.option,V,c,x,N);if(V===null){d=!0;Y=h;break}else k.push(C),n.push(V)}if(!d)for(b=0;b<n.length;b++)q=k[b],V=n[b],t26(this,q)(g,V);P=P&&d}else P=!1}}B=P}return new jzs(c,x,B)};
var YK=function(B,c,x,P,Y,g){Y(x,c);B=B.charAt(0);g=g(B==B.toUpperCase());Y(P,g)};
_.a=EWs.prototype;_.a.parseAndSetIntOption_=function(B,c,x,P,Y){if(c=="")return 0;isFinite(c)&&(c=String(c));c=typeof c==="string"?/^\s*-?0x/i.test(c)?parseInt(c,16):parseInt(c,10):NaN;if(isNaN(c))return 1;YK(B,c,x,P,Y,Number);return null};
_.a.logIntParseError_=function(){};
_.a.parseAndSetFloatOption_=function(B,c,x,P,Y){if(c=="")return 0;var g=Number(c);c=g==0&&_.sl(c)?NaN:g;if(isNaN(c))return 1;YK(B,c,x,P,Y,Number);return null};
_.a.logFloatParseError_=function(){};
_.a.parseAndSetBoolOption_=function(B,c,x,P,Y){if(c!="")return 2;YK(B,!0,x,P,Y,Boolean);return null};
_.a.logBoolParseError_=function(){};
_.a.parseAndSetStringOption_=function(B,c,x,P,Y){if(c=="")return 0;YK(B,c,x,P,Y,function(g){return g?"1":""});
return null};
_.a.logStringParseError_=function(){};
_.a.parseAndSetUint64Base64Option_=function(B,c,x,P,Y){if(c=="")return 0;YK(B,c,x,P,Y,function(g){return g?1:0});
return null};
var V2z=function(B,c){switch(c){case 0:return(0,_.wf)(B.parseAndSetIntOption_,B);case 2:return(0,_.wf)(B.parseAndSetFloatOption_,B);case 3:return(0,_.wf)(B.parseAndSetBoolOption_,B);case 4:return(0,_.wf)(B.parseAndSetStringOption_,B);case 1:return(0,_.wf)(B.parseAndSetUint64Base64Option_,B);default:return function(){}}},t26=function(B,c){switch(c){case 0:return(0,_.wf)(B.logIntParseError_,B);
case 2:return(0,_.wf)(B.logFloatParseError_,B);case 3:return(0,_.wf)(B.logBoolParseError_,B);case 4:case 1:return(0,_.wf)(B.logStringParseError_,B);default:return function(){}}},jzs=function(B,c,x){this.valueProto_=B;
this.signatureFlagProto_=c;this.JSC$17397_valid_=x};
jzs.prototype.isValid=function(){return this.JSC$17397_valid_};var IFF=function(B){this.JSC$17398_parser_=null;this.JSC$17398_components_=[];this.JSC$17398_parsedOptions_=null;UXs(this,B)},dXS=function(B){B.JSC$17398_parser_==null&&(B.JSC$17398_parser_=new EWs);
return B.JSC$17398_parser_},UXs=function(B,c){B.JSC$17398_parsedOptions_=c?typeof c==="string"?dXS(B).parse(c):c:dXS(B).parse("")},aa=function(B,c){return B==c?!1:!0};
_.a=IFF.prototype;_.a.JSC$17400_setCrop=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,_.WG(x,2),_.WG(c.signatureFlagProto_,2))&&_.sq(x,2,B);return this};
_.a.JSC$17400_setCircleCrop=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,bZ(x,51),bZ(c.signatureFlagProto_,51))&&_.sq(x,51,B);return this};
_.a.JSC$17400_setImageCrop=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,bZ(x,32),bZ(c.signatureFlagProto_,32))&&_.sq(x,32,B);return this};
_.a.JSC$17400_setHeight=function(B){var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,x.getHeight(),c.signatureFlagProto_.getHeight())&&_.zo(x,13,B);return this};
_.a.setCenterCrop=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,_.WG(x,20),_.WG(c.signatureFlagProto_,20))&&x.setCenterCrop(B);return this};
_.a.JSC$17400_setSmartCrop=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,_.WG(x,19),_.WG(c.signatureFlagProto_,19))&&_.sq(x,19,B);return this};
_.a.JSC$17400_setPad=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,bZ(x,60),bZ(c.signatureFlagProto_,60))&&_.sq(x,60,B);return this};
_.a.JSC$17400_setSmartCropUseFace=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,_.WG(x,67),_.WG(c.signatureFlagProto_,67))&&_.sq(x,67,B);return this};
_.a.JSC$17400_setSmartCropNoClip=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,_.WG(x,52),_.WG(c.signatureFlagProto_,52))&&_.sq(x,52,B);return this};
_.a.setSize=function(B){var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,x.getSize(),c.signatureFlagProto_.getSize())&&x.setSize(B);return this};
_.a.setToken=function(B){B=B||void 0;var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,x.getToken(),c.signatureFlagProto_.getToken())&&x.setToken(B);return this};
_.a.JSC$17400_setWidth=function(B){var c=this.JSC$17398_parsedOptions_,x=c.valueProto_;aa(B,x.getWidth(),c.signatureFlagProto_.getWidth())&&_.zo(x,12,B);return this};
_.a.clearOptions=function(){UXs(this,"");return this};
_.a.build=function(){this.JSC$17398_components_.length=0;var B=this.JSC$17398_parsedOptions_,c=B.valueProto_;B=B.signatureFlagProto_;gI(this,"s",c.getSize(),B.getSize());gI(this,"w",c.getWidth(),B.getWidth());sW(this,"c",_.WG(c,2),_.WG(B,2));sW(this,"d",_.WG(c,3),_.WG(B,3));gI(this,"h",c.getHeight(),B.getHeight());sW(this,"s",bZ(c,33),bZ(B,33));sW(this,"h",c.getHtml(),B.getHtml());sW(this,"p",_.WG(c,19),_.WG(B,19));sW(this,"pp",_.WG(c,52),_.WG(B,52));sW(this,"pf",_.WG(c,67),_.WG(B,67));sW(this,"n",
_.WG(c,20),_.WG(B,20));gI(this,"r",Kh(c,26),Kh(B,26));sW(this,"r",_.WG(c,6),_.WG(B,6));sW(this,"o",bZ(c,27),bZ(B,27));var x=_.Jd(c,7,_.CY);p5(this,"o",x,_.Jd(B,7,_.CY));x=_.Jd(c,29,_.CY);p5(this,"j",x,_.Jd(B,29,_.CY));gI(this,"x",Kh(c,9),Kh(B,9));gI(this,"y",Kh(c,10),Kh(B,10));gI(this,"z",Kh(c,11),Kh(B,11));sW(this,"g",_.WG(c,14),_.WG(B,14));gI(this,"e",Kh(c,15),Kh(B,15));p5(this,"f",_.Uq(c,16),_.Uq(B,16));sW(this,"k",bZ(c,17),bZ(B,17));sW(this,"u",bZ(c,18),!0);sW(this,"ut",bZ(c,45),!0);sW(this,"i",
bZ(c,22),!0);sW(this,"a",bZ(c,21),bZ(B,21));sW(this,"b",_.WG(c,23),_.WG(B,23));gI(this,"b",Kh(c,38),Kh(B,38));gI(this,"c",Kh(c,39),Kh(B,39),16,8);p5(this,"q",_.Uq(c,28),_.Uq(B,28));sW(this,"fh",bZ(c,30),bZ(B,30));sW(this,"fv",bZ(c,31),bZ(B,31));sW(this,"fg",_.WG(c,34),_.WG(B,34));sW(this,"ci",bZ(c,32),bZ(B,32));p5(this,"t",c.getToken(),B.getToken());p5(this,"nt0",_.Uq(c,36),_.Uq(B,36));sW(this,"rw",_.WG(c,35),_.WG(B,35));sW(this,"rwu",_.WG(c,41),_.WG(B,41));sW(this,"rwa",_.WG(c,64),_.WG(B,64));sW(this,
"nw",_.WG(c,48),_.WG(B,48));sW(this,"rh",_.WG(c,49),_.WG(B,49));sW(this,"no",_.WG(c,37),_.WG(B,37));sW(this,"ns",bZ(c,40),bZ(B,40));gI(this,"k",Kh(c,42),Kh(B,42));gI(this,"p",Kh(c,43),Kh(B,43));gI(this,"l",Kh(c,44),Kh(B,44));gI(this,"v",Kh(c,62),Kh(B,62));sW(this,"nu",bZ(c,46),bZ(B,46));sW(this,"ft",bZ(c,50),bZ(B,50));sW(this,"cc",bZ(c,51),bZ(B,51));sW(this,"nd",bZ(c,53),bZ(B,53));sW(this,"ip",bZ(c,54),bZ(B,54));sW(this,"nc",bZ(c,55),bZ(B,55));gI(this,"a",Kh(c,56),Kh(B,56));sW(this,"rj",bZ(c,57),
bZ(B,57));sW(this,"rp",bZ(c,58),bZ(B,58));sW(this,"rg",bZ(c,59),bZ(B,59));sW(this,"pd",bZ(c,60),bZ(B,60));sW(this,"pa",bZ(c,61),bZ(B,61));gI(this,"m",Kh(c,63),Kh(B,63));gI(this,"vb",js(c,68),js(B,68));gI(this,"vl",js(c,69),js(B,69));sW(this,"lf",bZ(c,65),bZ(B,65));sW(this,"mv",bZ(c,66),bZ(B,66));sW(this,"id",bZ(c,70),bZ(B,70));gI(this,"ic",Kh(c,71),!0);sW(this,"pg",_.WG(c,72),_.WG(B,72));sW(this,"mo",bZ(c,73),bZ(B,73));sW(this,"al",bZ(c,74),bZ(B,74));gI(this,"iv",js(c,75),js(B,75));gI(this,"pi",Ut(c,
76),Ut(B,76));gI(this,"ya",Ut(c,77),Ut(B,77));gI(this,"ro",Ut(c,78),Ut(B,78));gI(this,"fo",Ut(c,79),Ut(B,79));sW(this,"df",bZ(c,80),bZ(B,80));p5(this,"mm",_.Uq(c,81),_.Uq(B,81));sW(this,"sg",bZ(c,82),bZ(B,82));sW(this,"gd",bZ(c,83),bZ(B,83));sW(this,"fm",bZ(c,84),bZ(B,84));gI(this,"ba",Kh(c,85),Kh(B,85));gI(this,"br",Kh(c,86),Kh(B,86));gI(this,"bc",c.getBackgroundColor(),B.getBackgroundColor(),16,8);gI(this,"pc",Kh(c,88),Kh(B,88),16,8);gI(this,"sc",Kh(c,89),Kh(B,89),16,8);sW(this,"dv",bZ(c,90),bZ(B,
90));sW(this,"md",bZ(c,91),bZ(B,91));gI(this,"cp",Kh(c,92),Kh(B,92));sW(this,"sm",bZ(c,93),bZ(B,93));gI(this,"cv",Kh(c,94),Kh(B,94));sW(this,"ng",bZ(c,95),bZ(B,95));sW(this,"il",bZ(c,96),bZ(B,96));sW(this,"lo",bZ(c,97),bZ(B,97));sW(this,"vm",bZ(c,98),bZ(B,98));p5(this,"dc",_.Uq(c,99),_.Uq(B,99));sW(this,"rf",bZ(c,100),bZ(B,100));p5(this,"vf",_.Uq(c,102),_.Uq(B,102));sW(this,"ra",_.WG(c,103),_.WG(B,103));sW(this,"ckm",bZ(c,104),bZ(B,104));sW(this,"gm",bZ(c,105),bZ(B,105));sW(this,"ngm",bZ(c,106),bZ(B,
106));gI(this,"em",Kh(c,107),Kh(B,107));sW(this,"cr",bZ(c,108),bZ(B,108));gI(this,"sl",c.getStoryboardLevel(),B.getStoryboardLevel());gI(this,"sb",Kh(c,110),Kh(B,110));p5(this,"pt",_.Uq(c,111),_.Uq(B,111));p5(this,"gce",_.Uq(c,112),_.Uq(B,112));sW(this,"tm",bZ(c,113),bZ(B,113));sW(this,"ntm",bZ(c,114),bZ(B,114));return this.JSC$17398_components_.join("-")};
var gI=function(B,c,x,P,Y,g){if(x!=null){var k=Y==void 0||Y!=10&&Y!=16?10:Y;x=Number(x).toString(k);Y=new AKl;Y.append(k==16?"0x":"");k=Y.append;g==void 0?g="":(g-=x.length,g=g<=0?"":(0,_.O1o)("0",g));k.call(Y,g);Y.append(x);qNs(B,c,Y.toString(),!!Number(P))}},sW=function(B,c,x,P){x&&qNs(B,c,"",!!P)},p5=function(B,c,x,P){x&&qNs(B,c,String(x),!!Number(P))},qNs=function(B,c,x,P){P&&(c=c.charAt(0).toUpperCase()+c.substring(1));
B.JSC$17398_components_.push(c+x)};_.sZ(VK,IFF);_.a=VK.prototype;_.a.JSC$17400_setCrop=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setCrop.call(this,B)};
_.a.JSC$17400_setHeight=function(B){B=B==null||B<0?void 0:B;B!=null&&this.setSize();return VK.superClass_.JSC$17400_setHeight.call(this,B)};
_.a.JSC$17400_setImageCrop=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setImageCrop.call(this,B)};
_.a.JSC$17400_setCircleCrop=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setCircleCrop.call(this,B)};
_.a.setSize=function(B){_.xF(B)&&(B=Math.max(B.width,B.height));B=B==null||B<0?void 0:B;B!=null&&(this.JSC$17400_setWidth(),this.JSC$17400_setHeight());return VK.superClass_.setSize.call(this,B)};
_.a.JSC$17400_setSmartCrop=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setSmartCrop.call(this,B)};
_.a.JSC$17400_setSmartCropNoClip=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setSmartCropNoClip.call(this,B)};
_.a.JSC$17400_setSmartCropUseFace=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setSmartCropUseFace.call(this,B)};
_.a.setCenterCrop=function(B){B&&kK(this);return VK.superClass_.setCenterCrop.call(this,B)};
_.a.JSC$17400_setPad=function(B){B&&kK(this);return VK.superClass_.JSC$17400_setPad.call(this,B)};
_.a.JSC$17400_setWidth=function(B){B=B==null||B<0?void 0:B;B!=null&&this.setSize();return VK.superClass_.JSC$17400_setWidth.call(this,B)};
var CMz=function(B){B.clearOptions();var c=B.JSC$17398_parsedOptions_,x=c.valueProto_;aa(!0,_.WG(x,3),_.WG(c.signatureFlagProto_,3))&&_.sq(x,3,!0);return B},kK=function(B){B.setCenterCrop();
B.JSC$17400_setCircleCrop();B.JSC$17400_setCrop();B.JSC$17400_setImageCrop();B.JSC$17400_setPad();B.JSC$17400_setSmartCrop();B.JSC$17400_setSmartCropNoClip();B.JSC$17400_setSmartCropUseFace()};
VK.prototype.build=function(){var B=this.JSC$17398_parsedOptions_.valueProto_;bZ(B,18)||bZ(B,45)?B.getSize()||this.setSize(0):(B=this.JSC$17398_parsedOptions_.valueProto_,B.getSize()||B.getWidth()||B.getHeight()||(this.setSize(),this.JSC$17400_setHeight(),this.JSC$17400_setWidth(),kK(this)));return VK.superClass_.build.call(this)};var hBo=/^[^\/]*\/\//,XE=function(B,c){c=c===void 0?!1:c;this.original_=B;this.originalPrefix_="";(B=this.original_.match(hBo))&&B[0]?(this.originalPrefix_=B[0],B=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):B="http://"+this.original_;this.uri_=_.ZM(B,!0);this.isFreeformUrl_=c;this.JSC$17404_valid_=!0;this.obfuscated_=!1},mXB=function(B,c){B.JSC$17406_pathPrefix_=B.JSC$17406_pathPrefix_?B.JSC$17406_pathPrefix_+("/"+c):c},$K=function(B){if(B.JSC$17406_components_==
void 0){var c=B.uri_.getPath().substring(1);
B.JSC$17406_pathPrefix_=null;if(B.isFreeformUrl_){B.JSC$17406_components_=[];if((c.match(/=/g)||[]).length>1)return B.JSC$17404_valid_=!1,B.JSC$17406_components_;var x=c.indexOf("=");x!=-1?(B.JSC$17406_components_.push(c.substr(0,x)),B.JSC$17406_components_.push(c.substr(x+1))):B.JSC$17406_components_.push(c);return B.JSC$17406_components_}B.JSC$17406_components_=c.split("/");c=B.JSC$17406_components_.length;c>2&&B.JSC$17406_components_[0]=="u"&&(mXB(B,B.JSC$17406_components_[0]+"/"+B.JSC$17406_components_[1]),
B.JSC$17406_components_.shift(),B.JSC$17406_components_.shift(),c-=2);if(c==0||c==4||c>7)return B.JSC$17404_valid_=!1,B.JSC$17406_components_;if(c==2)mXB(B,B.JSC$17406_components_[0]);else if(B.JSC$17406_components_[0]=="image")mXB(B,B.JSC$17406_components_[0]);else if(c==7||c==3)return B.JSC$17404_valid_=!1,B.JSC$17406_components_;if(c<=3){B.obfuscated_=!0;c==3&&(mXB(B,B.JSC$17406_components_[1]),B.JSC$17406_components_.shift(),--c);--c;x=B.JSC$17406_components_[c];var P=x.indexOf("=");P!=-1&&(B.JSC$17406_components_[c]=
x.substr(0,P),B.JSC$17406_components_.push(x.substr(P+1)))}}return B.JSC$17406_components_};
XE.prototype.isValid=function(){$K(this);return this.JSC$17404_valid_};
XE.prototype.isObfuscated=function(){$K(this);return this.obfuscated_};
var TBz=function(B){$K(B);return B.isFreeformUrl_},n5=function(B){$K(B);
B.JSC$17406_pathPrefix_==void 0&&(B.JSC$17406_pathPrefix_=null);return B.JSC$17406_pathPrefix_},VmA=function(B){switch($K(B).length){case 7:return!0;
case 6:return n5(B)==null;case 5:return!1;case 3:return!0;case 2:return n5(B)==null;case 1:return!1;default:return!1}},bw=function(B,c){if(TBz(B))a:{switch(c){case 7:c=0;
break;case 4:if(!VmA(B)){B=null;break a}c=1;break;default:B=null;break a}B=$K(B)[c]}else if(B.isObfuscated())a:{var x=n5(B)!=null?1:0;switch(c){case 6:c=x;break;case 4:if(!VmA(B)){B=null;break a}c=1+x;break;default:B=null;break a}B=$K(B)[c]}else a:{x=n5(B)!=null?1:0;switch(c){case 0:c=x;break;case 1:c=1+x;break;case 2:c=2+x;break;case 3:c=3+x;break;case 4:if(!VmA(B)){B=null;break a}c=4+x;break;case 5:c=VmA(B)?1:0;c=4+x+c;break;default:B=null;break a}B=$K(B)[c]}return B};
XE.prototype.getOptions=function(){this.options_==void 0&&(this.options_=bw(this,4));return this.options_};var lFr=function(){};
lFr.prototype.parse=function(B,c){return new JJ8(B,c===void 0?!1:c)};
var JJ8=function(B,c){XE.call(this,B,c===void 0?!1:c)};
_.w(JJ8,XE);_.sZ(tH,VK);var We8;tH.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
tH.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var B=tH.superClass_.build.call(this),c=[];n5(this.parsedImageUrl_)!=null&&c.push(n5(this.parsedImageUrl_));var x=TBz(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var P=this.parsedImageUrl_;P.obfuscatedData_==void 0&&(P.obfuscatedData_=bw(P,6));c.push(P.obfuscatedData_+(B?"="+B:""))}else if(x){P=c.push;var Y=this.parsedImageUrl_;Y.freeformUrlPath_===void 0&&(Y.freeformUrlPath_=bw(Y,
7));P.call(c,Y.freeformUrlPath_);B&&c.push(B)}else P=c.push,Y=this.parsedImageUrl_,Y.obfuscatedGaiaId_==void 0&&(Y.obfuscatedGaiaId_=bw(Y,0)),P.call(c,Y.obfuscatedGaiaId_),P=c.push,Y=this.parsedImageUrl_,Y.photoId_==void 0&&(Y.photoId_=bw(Y,1)),P.call(c,Y.photoId_),P=c.push,Y=this.parsedImageUrl_,Y.imageVersion_==void 0&&(Y.imageVersion_=bw(Y,2)),P.call(c,Y.imageVersion_),P=c.push,Y=this.parsedImageUrl_,Y.signature_==void 0&&(Y.signature_=bw(Y,3)),P.call(c,Y.signature_),B&&c.push(B),B=c.push,P=this.parsedImageUrl_,
P.filename_==void 0&&(P.filename_=bw(P,5)),B.call(c,P.filename_);c=x?c.join("="):c.join("/");c=_.ZM(this.protocolPrefix_+this.JSC$17412_domain_+"/"+c+(this.JSC$17412_query_?"?"+this.JSC$17412_query_:"")).toString();c.startsWith("%3a//")&&(c=c.replace("%3a//","://"));return c};var tmS=_.r2(["viewBox"]),w_S=_.r2(["width"]),NB6=_.r2(["height"]),I0i=_.r2(["fill"]),JrF=_.r2(["id"]),Wtl=_.r2(["x"]),l06=_.r2(["y"]);OlS.prototype.getLength=function(){return this.parsedData.length};
OlS.prototype.write=function(B){for(var c=0,x=this.parsedData.length;c<x;c++)B.put(this.parsedData[c],8)};
var yJo=function(B,c){var x=new OlS(c);B.dataList.push(x);x=B.errorCorrectLevel;var P=1,Y=encodeURI(c).toString().replace(/%[0-9a-fA-F]{2}/g,"a");c=Y.length+(Y.length!=c?3:0);Y=0;for(var g=K5.length;Y<=g;Y++){var k=0;switch(x){case 1:k=K5[Y][0];break;case 0:k=K5[Y][1];break;case 3:k=K5[Y][2];break;case 2:k=K5[Y][3]}if(c<=k)break;else P++}if(P>K5.length)throw Error("vk");B.typeNumber=P;B.dataCache=null};
oWz.prototype.isDark=function(B,c){if(B<0||this.moduleCount<=B||c<0||this.moduleCount<=c)throw Error("nk`"+B+"`"+c);return this.modules[B][c]};
for(var GKA=function(B,c,x){B.moduleCount=B.typeNumber*4+17;B.modules=Array(B.moduleCount);for(var P=0;P<B.moduleCount;P++){B.modules[P]=Array(B.moduleCount);for(var Y=0;Y<B.moduleCount;Y++)B.modules[P][Y]=null}EfF(B,0,0);EfF(B,B.moduleCount-7,0);EfF(B,0,B.moduleCount-7);P=OOA[B.typeNumber-1];for(Y=0;Y<P.length;Y++)for(var g=0;g<P.length;g++){var k=P[Y],n=P[g];if(B.modules[k][n]==null)for(var b=-2;b<=2;b++)for(var d=-2;d<=2;d++)B.modules[k+b][n+d]=b==-2||b==2||d==-2||d==2||b==0&&d==0?!0:!1}for(P=
8;P<B.moduleCount-8;P++)B.modules[P][6]==null&&(B.modules[P][6]=P%2==0);for(P=8;P<B.moduleCount-8;P++)B.modules[6][P]==null&&(B.modules[6][P]=P%2==0);P=B.errorCorrectLevel<<3|x;for(Y=P<<10;jy(Y)-jy(1335)>=0;)Y^=1335<<jy(Y)-jy(1335);P=(P<<10|Y)^21522;for(Y=0;Y<15;Y++)g=!c&&(P>>Y&1)==1,Y<6?B.modules[Y][8]=g:Y<8?B.modules[Y+1][8]=g:B.modules[B.moduleCount-15+Y][8]=g;for(Y=0;Y<15;Y++)g=!c&&(P>>Y&1)==1,Y<8?B.modules[8][B.moduleCount-Y-1]=g:Y<9?B.modules[8][15-Y-1+1]=g:B.modules[8][15-Y-1]=g;B.modules[B.moduleCount-
8][8]=!c;if(B.typeNumber>=7){P=B.typeNumber;for(Y=P<<12;jy(Y)-jy(7973)>=0;)Y^=7973<<jy(Y)-jy(7973);P=P<<12|Y;for(Y=0;Y<18;Y++)g=!c&&(P>>Y&1)==1,B.modules[Math.floor(Y/3)][Y%3+B.moduleCount-8-3]=g;for(Y=0;Y<18;Y++)g=!c&&(P>>Y&1)==1,B.modules[Y%3+B.moduleCount-8-3][Math.floor(Y/3)]=g}if(B.dataCache==null){Y=B.typeNumber;g=B.dataList;c=B.errorCorrectLevel;P=ofo(Y,c);if(P==void 0)throw Error("uk`"+Y+"`"+c);k=P.length/3;c=[];for(n=0;n<k;n++){b=P[n*3];d=P[n*3+1];for(var q=P[n*3+2],C=0;C<b;C++)c.push(new Q1F(d,
q))}P=new Fez;for(k=0;k<g.length;k++)n=g[k],P.put(n.mode,4),P.put(n.getLength(),Qz8(n.mode,Y)),n.write(P);for(k=Y=0;k<c.length;k++)Y+=c[k].dataCount;if(P.length>Y*8)throw Error("ok`"+P.length+"`"+Y*8);for(P.length+4<=Y*8&&P.put(0,4);P.length%8!=0;)Ft6(P,!1);for(;!(P.length>=Y*8);){P.put(236,8);if(P.length>=Y*8)break;P.put(17,8)}g=Y=d=0;k=Array(c.length);n=Array(c.length);for(b=0;b<c.length;b++){C=c[b].dataCount;var h=c[b].totalCount-C;Y=Math.max(Y,C);g=Math.max(g,h);k[b]=Array(C);for(q=0;q<k[b].length;q++)k[b][q]=
255&P.buffer[q+d];d+=C;q=h;C=new w6([1],0);for(h=0;h<q;h++)C=C.multiply(new w6([1,vfA(h)],0));q=C;C=(new w6(k[b],q.getLength()-1)).mod(q);n[b]=Array(q.getLength()-1);for(q=0;q<n[b].length;q++)h=q+C.getLength()-n[b].length,n[b][q]=h>=0?C.get(h):0}for(q=P=0;q<c.length;q++)P+=c[q].totalCount;P=Array(P);for(q=d=0;q<Y;q++)for(b=0;b<c.length;b++)q<k[b].length&&(P[d++]=k[b][q]);for(q=0;q<g;q++)for(b=0;b<c.length;b++)q<n[b].length&&(P[d++]=n[b][q]);B.dataCache=P}c=B.dataCache;P=-1;Y=B.moduleCount-1;g=7;k=
0;for(n=B.moduleCount-1;n>0;n-=2)for(n==6&&n--;;){for(b=0;b<2;b++)B.modules[Y][n-b]==null&&(d=!1,k<c.length&&(d=(c[k]>>>g&1)==1),zBA(x,Y,n-b)&&(d=!d),B.modules[Y][n-b]=d,g--,g==-1&&(k++,g=7));Y+=P;if(Y<0||B.moduleCount<=Y){Y-=P;P=-P;break}}},EfF=function(B,c,x){for(var P=-1;P<=7;P++)if(!(c+P<=-1||B.moduleCount<=c+P))for(var Y=-1;Y<=7;Y++)x+Y<=-1||B.moduleCount<=x+Y||(B.modules[c+P][x+Y]=0<=P&&P<=6&&(Y==0||Y==6)||0<=Y&&Y<=6&&(P==0||P==6)||2<=P&&P<=4&&2<=Y&&Y<=4?!0:!1)},MON=function(B){for(var c=0,
x=0,P=0;P<8;P++){GKA(B,!0,P);
var Y=B;for(var g=Y.moduleCount,k=0,n=0;n<g;n++)for(var b=0;b<g;b++){for(var d=0,q=Y.isDark(n,b),C=-1;C<=1;C++)if(!(n+C<0||g<=n+C))for(var h=-1;h<=1;h++)b+h<0||g<=b+h||(C!=0||h!=0)&&q==Y.isDark(n+C,b+h)&&d++;d>5&&(k+=3+d-5)}for(n=0;n<g-1;n++)for(b=0;b<g-1;b++)if(d=0,Y.isDark(n,b)&&d++,Y.isDark(n+1,b)&&d++,Y.isDark(n,b+1)&&d++,Y.isDark(n+1,b+1)&&d++,d==0||d==4)k+=3;for(n=0;n<g;n++)for(b=0;b<g-6;b++)Y.isDark(n,b)&&!Y.isDark(n,b+1)&&Y.isDark(n,b+2)&&Y.isDark(n,b+3)&&Y.isDark(n,b+4)&&!Y.isDark(n,b+5)&&
Y.isDark(n,b+6)&&(k+=40);for(b=0;b<g;b++)for(n=0;n<g-6;n++)Y.isDark(n,b)&&!Y.isDark(n+1,b)&&Y.isDark(n+2,b)&&Y.isDark(n+3,b)&&Y.isDark(n+4,b)&&!Y.isDark(n+5,b)&&Y.isDark(n+6,b)&&(k+=40);for(b=d=0;b<g;b++)for(n=0;n<g;n++)Y.isDark(n,b)&&d++;Y=k+=Math.abs(100*d/g/g-50)/5*10;if(P==0||c>Y)c=Y,x=P}return x},OOA=[[],
[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]],jy=function(B){for(var c=0;B!=0;)c++,B>>>=1;return c},zBA=function(B,c,x){switch(B){case 0:return(c+x)%2==0;
case 1:return c%2==0;case 2:return x%3==0;case 3:return(c+x)%3==0;case 4:return(Math.floor(c/2)+Math.floor(x/3))%2==0;case 5:return c*x%2+c*x%3==0;case 6:return(c*x%2+c*x%3)%2==0;case 7:return(c*x%3+(c+x)%2)%2==0;default:throw Error("pk`"+B);}},Qz8=function(B,c){if(1<=c&&c<10)switch(B){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+B);}else if(c<27)switch(B){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+B);}else if(c<41)switch(B){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+B);}else throw Error("rk`"+c);},UW=function(B){if(B<1)throw Error("sk`"+B);
return SNz[B]},vfA=function(B){for(;B<0;)B+=255;
for(;B>=256;)B-=255;return dI[B]},dI=Array(256),SNz=Array(256),yr6=0;yr6<8;yr6++)dI[yr6]=1<<yr6;
for(var qt=8;qt<256;qt++)dI[qt]=dI[qt-4]^dI[qt-5]^dI[qt-6]^dI[qt-8];for(var G4o=0;G4o<255;G4o++)SNz[dI[G4o]]=G4o;w6.prototype.get=function(B){return this.num[B]};
w6.prototype.getLength=function(){return this.num.length};
w6.prototype.multiply=function(B){for(var c=Array(this.getLength()+B.getLength()-1),x=0;x<this.getLength();x++)for(var P=0;P<B.getLength();P++)c[x+P]^=vfA(UW(this.get(x))+UW(B.get(P)));return new w6(c,0)};
w6.prototype.mod=function(B){if(this.getLength()-B.getLength()<0)return this;for(var c=UW(this.get(0))-UW(B.get(0)),x=Array(this.getLength()),P=0;P<this.getLength();P++)x[P]=this.get(P);for(P=0;P<B.getLength();P++)x[P]^=vfA(UW(B.get(P))+c);return(new w6(x,0)).mod(B)};
var Mmy=[[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]],ofo=function(B,c){switch(c){case 1:return Mmy[(B-1)*4];case 0:return Mmy[(B-1)*4+1];case 3:return Mmy[(B-1)*4+2];case 2:return Mmy[(B-1)*4+3]}};
Fez.prototype.get=function(B){return(this.buffer[Math.floor(B/8)]>>>7-B%8&1)==1};
Fez.prototype.put=function(B,c){for(var x=0;x<c;x++)Ft6(this,(B>>>c-x-1&1)==1)};
var Ft6=function(B,c){var x=Math.floor(B.length/8);B.buffer.length<=x&&B.buffer.push(0);c&&(B.buffer[x]|=128>>>B.length%8);B.length++},K5=[[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]],SkA=function(){var B=function(c,x){this.JSC$17432__el=c;this.JSC$17432__htOption=x};
B.prototype.draw=function(c){function x(q,C){q=document.createElementNS("http://www.w3.org/2000/svg",q);for(var h in C)C.hasOwnProperty(h)&&(h==="href"?_.SIs(q,C[h]):_.Zz([_.cM(tmS),_.cM(w_S),_.cM(NB6),_.cM(I0i),_.cM(JrF),_.cM(Wtl),_.cM(l06)],q,h,C[h]));return q}
var P=this.JSC$17432__htOption,Y=this.JSC$17432__el,g=c.moduleCount;this.clear();var k=x("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:P.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Y.appendChild(k);k.appendChild(x("rect",{fill:P.colorLight,width:"100%",height:"100%"}));k.appendChild(x("rect",{fill:P.colorDark,width:"1",height:"1",id:"template"}));for(var n=0;n<g;n++)for(var b=0;b<g;b++)if(c.isDark(n,b)){var d=x("use",{x:String(n),y:String(b),href:"#template"});
k.appendChild(d)}};
B.prototype.clear=function(){for(;this.JSC$17432__el.hasChildNodes();)this.JSC$17432__el.removeChild(this.JSC$17432__el.lastChild)};
return B}(),zhc=document.documentElement.tagName.toLowerCase()==="svg"?SkA:typeof CanvasRenderingContext2D!="undefined"?function(){var B=function(c,x){this._bIsPainted=!1;
vW8();this.JSC$17432__htOption=x;this._elCanvas=document.createElement("canvas");this._elCanvas.width=x.width;this._elCanvas.height=x.height;c.appendChild(this._elCanvas);this.JSC$17432__el=c;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$17432__el.appendChild(this._elImage);this._bSupportDataURI=null};
B.prototype._onMakeImage=function(){var c=this._elCanvas.toDataURL("image/png");this._elImage.src=c;this._elImage.style.display="block";this._elCanvas.style.display="none"};
B.prototype._safeSetDataURI=function(c,x){var P=this;P._fFail=x;P._fSuccess=c;P._bSupportDataURI===null?(c=_.df("IMG"),x=function(){P._bSupportDataURI=!1;P._fFail&&P._fFail.call(P)},c.onabort=x,c.onerror=x,c.onload=function(){P._bSupportDataURI=!0;
P._fSuccess&&P._fSuccess.call(P)},c.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)};
B.prototype.draw=function(c){var x=this._oContext,P=this.JSC$17432__htOption,Y=c.moduleCount,g=P.width/Y,k=P.height/Y,n=Math.round(g),b=Math.round(k);this._elImage.style.display="none";this.clear();for(var d=0;d<Y;d++)for(var q=0;q<Y;q++){var C=c.isDark(d,q),h=q*g,V=d*k;x.strokeStyle=C?P.colorDark:P.colorLight;x.lineWidth=1;x.fillStyle=C?P.colorDark:P.colorLight;x.fillRect(h,V,g,k);x.strokeRect(Math.floor(h)+.5,Math.floor(V)+.5,n,b);x.strokeRect(Math.ceil(h)-.5,Math.ceil(V)-.5,n,b)}this._bIsPainted=
!0};
B.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
B.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
B.prototype.round=function(c){return c?Math.floor(c*1E3)/1E3:c};
return B}():function(){var B=function(c,x){this.JSC$17432__el=c;
this.JSC$17432__htOption=x};
B.prototype.draw=function(c){for(var x=this.JSC$17432__htOption,P=this.JSC$17432__el,Y=c.moduleCount,g=Math.floor(x.width/Y),k=Math.floor(x.height/Y),n=['<table style="border:0;border-collapse:collapse;">'],b=0;b<Y;b++){n.push("<tr>");for(var d=0;d<Y;d++)n.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+k+"px;background-color:"+(c.isDark(b,d)?x.colorDark:x.colorLight)+';"></td>');n.push("</tr>")}n.push("</table>");c=n.join("");c=_.TC9(_.tdW,c);_.L6(P,c);
c=P.childNodes[0];Y=(x.width-c.offsetWidth)/2;g=(x.height-c.offsetHeight)/2;Y>0&&g>0&&(c.style.margin=g+"px "+Y+"px")};
B.prototype.clear=function(){this.JSC$17432__el.textContent=""};
return B}();
Lei.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17435__android||this.JSC$17435__android>=3)&&this._oDrawing.makeImage()};
Lei.prototype.clear=function(){this._oDrawing.clear()};
_.xI.QRCode=Lei;var LtF={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var C5=function(){};
C5.prototype.stringify=function(B){return _.xI.JSON.stringify(B,void 0)};
C5.prototype.parse=function(B){return _.xI.JSON.parse(B,void 0)};var ZO8=function(){_.qf.call(this,"z")};
_.sZ(ZO8,_.qf);var HOl=function(){_.qf.call(this,"y")};
_.sZ(HOl,_.qf);var f0S=null,iO8=function(){return f0S=f0S||new _.V4},ArB=function(B){_.qf.call(this,"serverreachability",B)};
_.sZ(ArB,_.qf);var hQ=function(B){var c=iO8();c.dispatchEvent(new ArB(c,B))},ufS=function(B){_.qf.call(this,"statevent",B)};
_.sZ(ufS,_.qf);var mM=function(B){var c=iO8();c.dispatchEvent(new ufS(c,B))},DXz=function(B,c,x,P){_.qf.call(this,"timingevent",B);
this.size=c;this.rtt=x;this.retries=P};
_.sZ(DXz,_.qf);var rrs=function(B,c,x){var P=iO8();P.dispatchEvent(new DXz(P,B,c,x))},T0=function(B,c){if(typeof B!=="function")throw Error("wk");
return _.xI.setTimeout(function(){B()},c)};var Vk=function(){this.redactEnabled_=!0};
Vk.prototype.disableRedact=function(){this.redactEnabled_=!1};
var RBB=function(B,c,x,P,Y,g){B.info(function(){if(B.redactEnabled_)if(g){var k="";for(var n=g.split("&"),b=0;b<n.length;b++){var d=n[b].split("=");if(d.length>1){var q=d[0];d=d[1];var C=q.split("_");k=C.length>=2&&C[1]=="type"?k+(q+"="+d+"&"):k+(q+"=redacted&")}}}else k=null;else k=g;return"XMLHTTP REQ ("+P+") [attempt "+Y+"]: "+c+"\n"+x+"\n"+k})},eBA=function(B,c,x,P,Y,g,k){B.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+Y+"]: "+c+"\n"+x+"\n"+g+" "+k})},tQ=function(B,c,x,P){B.info(function(){return"XMLHTTP TEXT ("+
c+"): "+BRN(B,x)+(P?" "+P:"")})},cZo=function(B,c){B.info(function(){return"TIMEOUT: "+c})};
Vk.prototype.debug=function(){};
Vk.prototype.info=function(){};
Vk.prototype.warning=function(){};
var BRN=function(B,c){if(!B.redactEnabled_)return c;if(!c)return null;try{var x=JSON.parse(c);if(x)for(var P=0;P<x.length;P++)if(Array.isArray(x[P])){var Y=x[P];if(!(Y.length<2)){var g=Y[1];if(Array.isArray(g)&&!(g.length<1)){var k=g[0];if(k!="noop"&&k!="stop"&&k!="close")for(var n=1;n<g.length;n++)g[n]=""}}}return(0,_.lK)(x)}catch(b){return B.debug("Exception parsing expected JS array - probably was not JS"),c}};var wI=function(B,c,x,P,Y){this.JSC$17457_channel_=B;this.JSC$17457_channelDebug_=c;this.sid_=x;this.JSC$17457_rid_=P;this.JSC$17457_retryId_=Y||1;this.JSC$17457_eventHandler_=new _.cf(this);this.timeout_=45E3;this.JSC$17457_extraHeaders_=null;this.JSC$17457_successful_=!1;this.JSC$17457_postData_=this.JSC$17457_requestUri_=this.JSC$17457_baseUri_=this.JSC$17457_type_=this.JSC$17457_requestStartTime_=this.JSC$17457_watchDogTimeoutTime_=this.JSC$17457_watchDogTimerId_=null;this.JSC$17457_pendingMessages_=
[];this.JSC$17457_xmlHttp_=null;this.JSC$17457_xmlHttpChunkStart_=0;this.JSC$17457_lastError_=this.JSC$17457_verb_=null;this.JSC$17457_lastStatusCode_=-1;this.JSC$17457_cancelled_=!1;this.JSC$17457_readyStateChangeThrottleMs_=0;this.JSC$17457_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new xcB},xcB=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},PYi=function(B,c){switch(B){case 0:return"Non-200 return code ("+c+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},YhN={},aWl={};
wI.prototype.setTimeout=function(B){this.timeout_=B};
var sXF=function(B,c,x){B.JSC$17457_type_=1;B.JSC$17457_baseUri_=_.kf(c.clone());B.JSC$17457_postData_=x;B.decodeChunks_=!0;gbi(B,null)},gbi=function(B,c){B.JSC$17457_requestStartTime_=Date.now();
pLr(B);B.JSC$17457_requestUri_=B.JSC$17457_baseUri_.clone();st(B.JSC$17457_requestUri_,"t",B.JSC$17457_retryId_);B.JSC$17457_xmlHttpChunkStart_=0;var x=B.JSC$17457_channel_.JSC$17476_supportsCrossDomainXhrs_;B.fetchResponseState_=new xcB;B.JSC$17457_xmlHttp_=kx6(B.JSC$17457_channel_,x?c:null,!B.JSC$17457_postData_);B.JSC$17457_readyStateChangeThrottleMs_>0&&(B.JSC$17457_readyStateChangeThrottle_=new _.eA((0,_.wf)(B.JSC$17461_xmlHttpHandler_,B,B.JSC$17457_xmlHttp_),B.JSC$17457_readyStateChangeThrottleMs_));
B.JSC$17457_eventHandler_.listen(B.JSC$17457_xmlHttp_,"readystatechange",B.JSC$17461_readyStateChangeHandler_);c=B.JSC$17457_extraHeaders_?_.wW.clone(B.JSC$17457_extraHeaders_):{};B.JSC$17457_postData_?(B.JSC$17457_verb_||(B.JSC$17457_verb_="POST"),c["Content-Type"]="application/x-www-form-urlencoded",B.JSC$17457_xmlHttp_.send(B.JSC$17457_requestUri_,B.JSC$17457_verb_,B.JSC$17457_postData_,c)):(B.JSC$17457_verb_="GET",B.JSC$17457_xmlHttp_.send(B.JSC$17457_requestUri_,B.JSC$17457_verb_,null,c));hQ(1);
RBB(B.JSC$17457_channelDebug_,B.JSC$17457_verb_,B.JSC$17457_requestUri_,B.JSC$17457_rid_,B.JSC$17457_retryId_,B.JSC$17457_postData_)};
wI.prototype.JSC$17461_readyStateChangeHandler_=function(B){B=B.target;var c=this.JSC$17457_readyStateChangeThrottle_;c&&_.OV(B)==3?(this.JSC$17457_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17461_xmlHttpHandler_(B)};
wI.prototype.JSC$17461_xmlHttpHandler_=function(B){try{B==this.JSC$17457_xmlHttp_?XLo(this):this.JSC$17457_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$17457_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),$cz(this)}finally{}};
var XLo=function(B){var c=_.OV(B.JSC$17457_xmlHttp_),x=B.JSC$17457_xmlHttp_.JSC$7842_lastErrorCode_,P=B.JSC$17457_xmlHttp_.getStatus();if(!(c<3||c==3&&!$cz(B))){B.JSC$17457_cancelled_||c!=4||x==7||(x==8||P<=0?hQ(3):hQ(2));nbz(B);var Y=B.JSC$17457_xmlHttp_.getStatus();B.JSC$17457_lastStatusCode_=Y;x=bm6(B);$cz(B)||B.JSC$17457_channelDebug_.debug(function(){return"No response text for uri "+B.JSC$17457_requestUri_+" status "+Y});
B.JSC$17457_successful_=Y==200;eBA(B.JSC$17457_channelDebug_,B.JSC$17457_verb_,B.JSC$17457_requestUri_,B.JSC$17457_rid_,B.JSC$17457_retryId_,c,Y);if(B.JSC$17457_successful_){if(B.decodeInitialResponse_&&!B.initialResponseDecoded_)if(P=KE6(B))tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,P,"Initial handshake response via X-HTTP-Initial-Response"),B.initialResponseDecoded_=!0,jXy(B,P);else{B.JSC$17457_successful_=!1;B.JSC$17457_lastError_=3;mM(12);B.JSC$17457_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
B.JSC$17457_rid_+")");Nt(B);Ia(B);return}B.decodeChunks_?Ucc(B,c,x):(tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,x,null),jXy(B,x));c==4&&Nt(B);B.JSC$17457_successful_&&!B.JSC$17457_cancelled_&&(c==4?dcA(B.JSC$17457_channel_,B):(B.JSC$17457_successful_=!1,pLr(B)))}else XWr(B.JSC$17457_xmlHttp_),Y==400&&x.indexOf("Unknown SID")>0?(B.JSC$17457_lastError_=3,mM(12),B.JSC$17457_channelDebug_.warning("XMLHTTP Unknown SID ("+B.JSC$17457_rid_+")")):(B.JSC$17457_lastError_=0,mM(13),B.JSC$17457_channelDebug_.warning("XMLHTTP Bad status "+
Y+" ("+B.JSC$17457_rid_+")")),Nt(B),Ia(B)}},KE6=function(B){return B.JSC$17457_xmlHttp_&&(B=KZ(B.JSC$17457_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.sl(B)?B:null},bm6=function(B){if(!qho(B))return B.JSC$17457_xmlHttp_.getResponseText();
var c=B.JSC$17457_xmlHttp_.getResponse();if(c==="")return"";var x="",P=c.length,Y=_.OV(B.JSC$17457_xmlHttp_)==4;if(!B.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Nt(B),Ia(B),"";B.fetchResponseState_.textDecoder=new _.xI.TextDecoder}for(var g=0;g<P;g++)B.fetchResponseState_.responseArrivedForFetch=!0,x+=B.fetchResponseState_.textDecoder.decode(c[g],{stream:!(Y&&g==P-1)});c.length=0;B.fetchResponseState_.responseBuffer+=x;B.JSC$17457_xmlHttpChunkStart_=0;return B.fetchResponseState_.responseBuffer},
$cz=function(B){return B.JSC$17457_xmlHttp_?B.fetchResponseState_.responseArrivedForFetch?!0:!(!B.JSC$17457_xmlHttp_.getResponseText()&&!B.JSC$17457_xmlHttp_.getResponse()):!1},qho=function(B){return B.JSC$17457_xmlHttp_?B.JSC$17457_verb_=="GET"&&B.JSC$17457_type_!=2&&B.JSC$17457_channel_.usesFetchStreams_:!1},Ucc=function(B,c,x){for(var P=!0,Y;!B.JSC$17457_cancelled_&&B.JSC$17457_xmlHttpChunkStart_<x.length;)if(Y=CYc(B,x),Y==aWl){c==4&&(B.JSC$17457_lastError_=4,mM(14),P=!1);
tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,null,"[Incomplete Response]");break}else if(Y==YhN){B.JSC$17457_lastError_=4;mM(15);tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,x,"[Invalid Chunk]");P=!1;break}else tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,Y,null),jXy(B,Y);qho(B)&&B.JSC$17457_xmlHttpChunkStart_!=0&&(B.fetchResponseState_.responseBuffer=B.fetchResponseState_.responseBuffer.slice(B.JSC$17457_xmlHttpChunkStart_),B.JSC$17457_xmlHttpChunkStart_=0);c!=4||x.length!=0||B.fetchResponseState_.responseArrivedForFetch||
(B.JSC$17457_lastError_=1,mM(16),P=!1);B.JSC$17457_successful_=B.JSC$17457_successful_&&P;P?x.length>0&&!B.firstByteReceived_&&(B.firstByteReceived_=!0,c=B.JSC$17457_channel_,c.JSC$17476_backChannelRequest_==B&&c.detectBufferingProxy_&&!c.bpDetectionDone_&&(c.JSC$17476_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+x.length),h5r(c),c.bpDetectionDone_=!0,mM(11))):(tQ(B.JSC$17457_channelDebug_,B.JSC$17457_rid_,x,"[Invalid Chunked Response]"),Nt(B),Ia(B))},CYc=function(B,c){var x=
B.JSC$17457_xmlHttpChunkStart_,P=c.indexOf("\n",x);
if(P==-1)return aWl;x=Number(c.substring(x,P));if(isNaN(x))return YhN;P+=1;if(P+x>c.length)return aWl;c=c.slice(P,P+x);B.JSC$17457_xmlHttpChunkStart_=P+x;return c};
wI.prototype.cancel=function(){this.JSC$17457_cancelled_=!0;Nt(this)};
var pLr=function(B){B.JSC$17457_watchDogTimeoutTime_=Date.now()+B.timeout_;mcl(B,B.timeout_)},mcl=function(B,c){if(B.JSC$17457_watchDogTimerId_!=null)throw Error("xk");
B.JSC$17457_watchDogTimerId_=T0((0,_.wf)(B.JSC$17461_onWatchDogTimeout_,B),c)},nbz=function(B){B.JSC$17457_watchDogTimerId_&&(_.xI.clearTimeout(B.JSC$17457_watchDogTimerId_),B.JSC$17457_watchDogTimerId_=null)};
wI.prototype.JSC$17461_onWatchDogTimeout_=function(){this.JSC$17457_watchDogTimerId_=null;var B=Date.now();B-this.JSC$17457_watchDogTimeoutTime_>=0?(cZo(this.JSC$17457_channelDebug_,this.JSC$17457_requestUri_),this.JSC$17457_type_!=2&&(hQ(3),mM(17)),Nt(this),this.JSC$17457_lastError_=2,Ia(this)):(this.JSC$17457_channelDebug_.warning("WatchDog timer called too early"),mcl(this,this.JSC$17457_watchDogTimeoutTime_-B))};
var Ia=function(B){B.JSC$17457_channel_.state_==0||B.JSC$17457_cancelled_||dcA(B.JSC$17457_channel_,B)},Nt=function(B){nbz(B);
_.R3(B.JSC$17457_readyStateChangeThrottle_);B.JSC$17457_readyStateChangeThrottle_=null;B.JSC$17457_eventHandler_.removeAll();if(B.JSC$17457_xmlHttp_){var c=B.JSC$17457_xmlHttp_;B.JSC$17457_xmlHttp_=null;c.abort();c.dispose()}};
wI.prototype.getLastError=function(){return this.JSC$17457_lastError_};
var jXy=function(B,c){try{var x=B.JSC$17457_channel_;if(x.state_!=0&&(x.JSC$17476_backChannelRequest_==B||TRA(x.forwardChannelRequestPool_,B)))if(!B.initialResponseDecoded_&&TRA(x.forwardChannelRequestPool_,B)&&x.state_==3){try{var P=x.wireCodec_.JSC$17471_parser_.parse(c)}catch(n){P=null}if(Array.isArray(P)&&P.length==3){c=P;if(c[0]==0)a:if(x.JSC$17476_channelDebug_.debug("Server claims our backchannel is missing."),x.JSC$17476_backChannelTimerId_)x.JSC$17476_channelDebug_.debug("But we are currently starting the request.");
else{if(x.JSC$17476_backChannelRequest_)if(x.JSC$17476_backChannelRequest_.JSC$17457_requestStartTime_+3E3<B.JSC$17457_requestStartTime_)VV6(x),tVS(x);else break a;else x.JSC$17476_channelDebug_.warning("We do not have a BackChannel established");wLi(x);mM(18)}else{x.JSC$17476_lastPostResponseArrayId_=c[1];var Y=x.JSC$17476_lastPostResponseArrayId_-x.JSC$17476_lastArrayId_;if(0<Y){var g=c[2];x.JSC$17476_channelDebug_.debug(g+" bytes (in "+Y+" arrays) are outstanding on the BackChannel");g<37500&&
x.enableStreaming_&&x.JSC$17476_backChannelRetryCount_==0&&!x.JSC$17476_deadBackChannelTimerId_&&(x.JSC$17476_deadBackChannelTimerId_=T0((0,_.wf)(x.JSC$17478_onBackChannelDead_,x),6E3))}}if(NR8(x.forwardChannelRequestPool_)<=1&&x.forwardChannelFlushedCallback_){try{x.forwardChannelFlushedCallback_()}catch(n){}x.forwardChannelFlushedCallback_=void 0}}else x.JSC$17476_channelDebug_.debug("Bad POST response data returned"),JQ(x,11)}else if((B.initialResponseDecoded_||x.JSC$17476_backChannelRequest_==
B)&&VV6(x),!_.sl(c)){var k=x.wireCodec_.JSC$17471_parser_.parse(c);x.onInput_(k,B)}hQ(4)}catch(n){}};var IW8=function(B,c){this.JSC$17464_mapId=B;this.map=c;this.context=null};var JZl=function(B){this.maxPoolSizeConfigured_=B||10;_.xI.PerformanceNavigationTiming?(B=_.xI.performance.getEntriesByType("navigation"),B=B.length>0&&(B[0].nextHopProtocol=="hq"||B[0].nextHopProtocol=="h2")):B=!!(_.xI.chrome&&_.xI.chrome.loadTimes&&_.xI.chrome.loadTimes()&&_.xI.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17467_maxSize_=B?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17467_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17467_request_=null;this.JSC$17467_pendingMessages_=
[]},WEN=function(B){return B.JSC$17467_request_?!0:B.requestPool_?B.requestPool_.size>=B.JSC$17467_maxSize_:!1},NR8=function(B){return B.JSC$17467_request_?1:B.requestPool_?B.requestPool_.size:0},TRA=function(B,c){return B.JSC$17467_request_?B.JSC$17467_request_==c:B.requestPool_?B.requestPool_.has(c):!1},lWA=function(B,c){B.requestPool_?B.requestPool_.add(c):B.JSC$17467_request_=c},Ebz=function(B,c){B.JSC$17467_request_&&B.JSC$17467_request_==c?B.JSC$17467_request_=null:B.requestPool_&&B.requestPool_.has(c)&&
B.requestPool_.delete(c)};
JZl.prototype.cancel=function(){this.JSC$17467_pendingMessages_=Omz(this);if(this.JSC$17467_request_)this.JSC$17467_request_.cancel(),this.JSC$17467_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var B=_.p(this.requestPool_.values()),c=B.next();!c.done;c=B.next())c.value.cancel();this.requestPool_.clear()}};
var Omz=function(B){if(B.JSC$17467_request_!=null)return B.JSC$17467_pendingMessages_.concat(B.JSC$17467_request_.JSC$17457_pendingMessages_);if(B.requestPool_!=null&&B.requestPool_.size!==0){var c=B.JSC$17467_pendingMessages_;B=_.p(B.requestPool_.values());for(var x=B.next();!x.done;x=B.next())c=c.concat(x.value.JSC$17457_pendingMessages_);return c}return _.DA(B.JSC$17467_pendingMessages_)},obz=function(B,c){B.JSC$17467_pendingMessages_=B.JSC$17467_pendingMessages_.concat(c)};var QXo=function(B,c){var x=new Vk;x.debug("TestLoadImage: loading "+B);if(_.xI.Image){var P=new Image;P.onload=_.q9(W1,x,"TestLoadImage: loaded",!0,c,P);P.onerror=_.q9(W1,x,"TestLoadImage: error",!1,c,P);P.onabort=_.q9(W1,x,"TestLoadImage: abort",!1,c,P);P.ontimeout=_.q9(W1,x,"TestLoadImage: timeout",!1,c,P);_.xI.setTimeout(function(){if(P.ontimeout)P.ontimeout()},1E4);
P.src=B}else c(!1)},FEs=function(B,c){var x=new Vk,P=new AbortController,Y=setTimeout(function(){P.abort();
W1(x,"TestPingServer: timeout",!1,c)},1E4);
fetch(B,{signal:P.signal}).then(function(g){clearTimeout(Y);g.ok?W1(x,"TestPingServer: ok",!0,c):W1(x,"TestPingServer: server error",!1,c)}).catch(function(){clearTimeout(Y);
W1(x,"TestPingServer: error",!1,c)})},W1=function(B,c,x,P,Y){try{B.debug(c),Y&&(Y.onload=null,Y.onerror=null,Y.onabort=null,Y.ontimeout=null),P(x)}catch(g){}};var vbc=function(){this.JSC$17471_parser_=new C5};var lw=function(B,c,x){return x&&x.internalChannelParams?x.internalChannelParams[B]||c:c},EW=function(B){this.serverVersion_=0;
this.JSC$17476_outgoingMaps_=[];this.JSC$17476_channelDebug_=new Vk;this.JSC$17476_hostPrefix_=this.JSC$17476_backChannelUri_=this.JSC$17476_forwardChannelUri_=this.JSC$17476_path_=this.JSC$17476_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17476_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17476_extraHeaders_=null;this.JSC$17476_nextMapId_=this.JSC$17476_nextRid_=0;this.JSC$17476_failFast_=lw("failFast",!1,B);this.enableStreaming_=this.JSC$17476_deadBackChannelTimerId_=
this.JSC$17476_backChannelTimerId_=this.JSC$17476_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17476_lastPostResponseArrayId_=this.JSC$17476_lastArrayId_=-1;this.JSC$17476_backChannelAttemptId_=this.JSC$17476_backChannelRetryCount_=this.JSC$17476_forwardChannelRetryCount_=0;this.JSC$17476_baseRetryDelayMs_=lw("baseRetryDelayMs",5E3,B);this.JSC$17476_retryDelaySeedMs_=lw("retryDelaySeedMs",1E4,B);this.JSC$17476_forwardChannelMaxRetries_=
lw("forwardChannelMaxRetries",2,B);this.JSC$17476_forwardChannelRequestTimeoutMs_=lw("forwardChannelRequestTimeoutMs",2E4,B);this.JSC$17476_xmlHttpFactory_=B&&B.xmlHttpFactory||void 0;this.networkTestUrl_=B&&B.networkTestUrl||void 0;this.usesFetchStreams_=B&&B.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17476_supportsCrossDomainXhrs_=B&&B.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new JZl(B&&B.concurrentRequestLimit);this.wireCodec_=new vbc;this.fastHandshake_=
B&&B.fastHandshake||!1;this.encodeInitMessageHeaders_=B&&B.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17476_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=B&&B.blockingHandshake||!1;B&&B.disableRedact&&this.JSC$17476_channelDebug_.disableRedact();B&&B.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
B&&B.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;B&&B.longPollingTimeout&&B.longPollingTimeout>0&&(this.longPollingTimeout_=B.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
EW.prototype.JSC$17478_channelVersion_=8;EW.prototype.state_=1;
EW.prototype.connect=function(B,c,x,P){this.JSC$17476_channelDebug_.debug("connect()");mM(0);this.JSC$17476_path_=B;this.JSC$17476_extraParams_=c||{};x&&P!==void 0&&(this.JSC$17476_extraParams_.OSID=x,this.JSC$17476_extraParams_.OAID=P);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17476_channelDebug_.debug("connectChannel_()");B=z5z(this,null,this.JSC$17476_path_);this.JSC$17476_channelDebug_.debug("GetForwardChannelUri: "+B);this.JSC$17476_forwardChannelUri_=B;Shi(this)};
EW.prototype.disconnect=function(){this.JSC$17476_channelDebug_.debug("disconnect()");yZ6(this);if(this.state_==3){var B=this.JSC$17476_nextRid_++,c=this.JSC$17476_forwardChannelUri_.clone();_.fS(c,"SID",this.sid_);_.fS(c,"RID",B);_.fS(c,"TYPE","terminate");OW(this,c);B=new wI(this,this.JSC$17476_channelDebug_,this.sid_,B);B.JSC$17457_type_=2;B.JSC$17457_baseUri_=_.kf(c.clone());c=!1;if(_.xI.navigator&&_.xI.navigator.sendBeacon)try{c=_.xI.navigator.sendBeacon(B.JSC$17457_baseUri_.toString(),"")}catch(x){}!c&&
_.xI.Image&&((new Image).src=B.JSC$17457_baseUri_,c=!0);c||(B.JSC$17457_xmlHttp_=kx6(B.JSC$17457_channel_,null),B.JSC$17457_xmlHttp_.send(B.JSC$17457_baseUri_));B.JSC$17457_requestStartTime_=Date.now();pLr(B)}GxA(this)};
var tVS=function(B){B.JSC$17476_backChannelRequest_&&(h5r(B),B.JSC$17476_backChannelRequest_.cancel(),B.JSC$17476_backChannelRequest_=null)},yZ6=function(B){tVS(B);
B.JSC$17476_backChannelTimerId_&&(_.xI.clearTimeout(B.JSC$17476_backChannelTimerId_),B.JSC$17476_backChannelTimerId_=null);VV6(B);B.forwardChannelRequestPool_.cancel();B.JSC$17476_forwardChannelTimerId_&&(typeof B.JSC$17476_forwardChannelTimerId_==="number"&&_.xI.clearTimeout(B.JSC$17476_forwardChannelTimerId_),B.JSC$17476_forwardChannelTimerId_=null)};
EW.prototype.getState=function(){return this.state_};
var Shi=function(B){WEN(B.forwardChannelRequestPool_)||B.JSC$17476_forwardChannelTimerId_||(B.JSC$17476_forwardChannelTimerId_=!0,_.wa(B.JSC$17478_onStartForwardChannelTimer_,B),B.JSC$17476_forwardChannelRetryCount_=0)},LEl=function(B,c){if(NR8(B.forwardChannelRequestPool_)>=B.forwardChannelRequestPool_.JSC$17467_maxSize_-(B.JSC$17476_forwardChannelTimerId_?1:0))return!1;
if(B.JSC$17476_forwardChannelTimerId_)return B.JSC$17476_channelDebug_.debug("Use the retry request that is already scheduled."),B.JSC$17476_outgoingMaps_=c.JSC$17457_pendingMessages_.concat(B.JSC$17476_outgoingMaps_),!0;if(B.state_==1||B.state_==2||B.JSC$17476_forwardChannelRetryCount_>=(B.JSC$17476_failFast_?0:B.JSC$17476_forwardChannelMaxRetries_))return!1;B.JSC$17476_channelDebug_.debug("Going to retry POST");B.JSC$17476_forwardChannelTimerId_=T0((0,_.wf)(B.JSC$17478_onStartForwardChannelTimer_,
B,c),MV6(B,B.JSC$17476_forwardChannelRetryCount_));B.JSC$17476_forwardChannelRetryCount_++;return!0};
EW.prototype.JSC$17478_onStartForwardChannelTimer_=function(B){if(this.JSC$17476_forwardChannelTimerId_)if(this.JSC$17476_forwardChannelTimerId_=null,this.JSC$17476_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!B){this.JSC$17476_channelDebug_.debug("open_()");this.JSC$17476_nextRid_=Math.floor(Math.random()*1E5);B=this.JSC$17476_nextRid_++;var c=new wI(this,this.JSC$17476_channelDebug_,"",B),x=this.JSC$17476_extraHeaders_;this.initHeaders_&&(x?(x=_.wW.clone(x),_.wW.extend(x,this.initHeaders_)):
x=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(c.JSC$17457_extraHeaders_=x,x=null);var P;if(this.fastHandshake_)a:{for(var Y=P=0;Y<this.JSC$17476_outgoingMaps_.length;Y++){b:{var g=this.JSC$17476_outgoingMaps_[Y];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;P+=g;if(P>4096){P=Y;break a}if(P===4096||Y===this.JSC$17476_outgoingMaps_.length-1){P=Y+1;break a}}P=1E3}else P=1E3;P=Zm6(this,c,P);
Y=this.JSC$17476_forwardChannelUri_.clone();_.fS(Y,"RID",B);_.fS(Y,"CVER",22);this.httpSessionIdParam_&&_.fS(Y,"X-HTTP-Session-Id",this.httpSessionIdParam_);OW(this,Y);x&&(this.encodeInitMessageHeaders_?P="headers="+_.La(CRc(x))+"&"+P:this.httpHeadersOverwriteParam_&&hmo(Y,this.httpHeadersOverwriteParam_,x));lWA(this.forwardChannelRequestPool_,c);this.blockingHandshake_&&_.fS(Y,"TYPE","init");this.fastHandshake_?(_.fS(Y,"$req",P),_.fS(Y,"SID","null"),c.decodeInitialResponse_=!0,sXF(c,Y,null)):sXF(c,
Y,P);this.state_=2}}else this.state_==3&&(B?Hmo(this,B):this.JSC$17476_outgoingMaps_.length==0?this.JSC$17476_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):WEN(this.forwardChannelRequestPool_)||(Hmo(this),this.JSC$17476_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Hmo=function(B,c){var x;c?x=c.JSC$17457_rid_:x=B.JSC$17476_nextRid_++;var P=B.JSC$17476_forwardChannelUri_.clone();_.fS(P,"SID",B.sid_);_.fS(P,"RID",x);_.fS(P,"AID",B.JSC$17476_lastArrayId_);OW(B,P);B.httpHeadersOverwriteParam_&&B.JSC$17476_extraHeaders_&&hmo(P,B.httpHeadersOverwriteParam_,B.JSC$17476_extraHeaders_);x=new wI(B,B.JSC$17476_channelDebug_,B.sid_,x,B.JSC$17476_forwardChannelRetryCount_+1);B.httpHeadersOverwriteParam_===null&&(x.JSC$17457_extraHeaders_=B.JSC$17476_extraHeaders_);c&&
(B.JSC$17476_outgoingMaps_=c.JSC$17457_pendingMessages_.concat(B.JSC$17476_outgoingMaps_));c=Zm6(B,x,1E3);x.setTimeout(Math.round(B.JSC$17476_forwardChannelRequestTimeoutMs_*.5)+Math.round(B.JSC$17476_forwardChannelRequestTimeoutMs_*.5*Math.random()));lWA(B.forwardChannelRequestPool_,x);sXF(x,P,c)},OW=function(B,c){B.JSC$17476_extraParams_&&_.wW.forEach(B.JSC$17476_extraParams_,function(x,P){_.fS(c,P,x)});
B.handler_&&_.wW.forEach({},function(x,P){_.fS(c,P,x)})},Zm6=function(B,c,x){x=Math.min(B.JSC$17476_outgoingMaps_.length,x);
var P=B.handler_?(0,_.wf)(B.handler_.JSC$17482_badMapError,B.handler_,B):null;a:{for(var Y=B.JSC$17476_outgoingMaps_,g=-1;;){var k=["count="+x];g==-1?x>0?(g=Y[0].JSC$17464_mapId,k.push("ofs="+g)):g=0:k.push("ofs="+g);for(var n=!0,b=0;b<x;b++){var d=Y[b].JSC$17464_mapId,q=Y[b].map;d-=g;if(d<0)g=Math.max(0,Y[b].JSC$17464_mapId-100),n=!1;else try{d="req"+d+"_"||"";try{var C=q instanceof Map?q:Object.entries(q);for(var h=_.p(C),V=h.next();!V.done;V=h.next()){var N=_.p(V.value),l=N.next().value,E=N.next().value,
S=E;_.xF(E)&&(S=(0,_.lK)(E));k.push(d+l+"="+encodeURIComponent(S))}}catch(M){throw k.push(d+"type="+encodeURIComponent("_badmap")),M;}}catch(M){P&&P(q)}}if(n){C=k.join("&");break a}}C=void 0}B=B.JSC$17476_outgoingMaps_.splice(0,x);c.JSC$17457_pendingMessages_=B;return C},fWS=function(B){B.JSC$17476_backChannelRequest_||B.JSC$17476_backChannelTimerId_||(B.JSC$17476_backChannelAttemptId_=1,_.wa(B.JSC$17478_onStartBackChannelTimer_,B),B.JSC$17476_backChannelRetryCount_=0)},wLi=function(B){if(B.JSC$17476_backChannelRequest_||
B.JSC$17476_backChannelTimerId_||B.JSC$17476_backChannelRetryCount_>=3)return!1;
B.JSC$17476_channelDebug_.debug("Going to retry GET");B.JSC$17476_backChannelAttemptId_++;B.JSC$17476_backChannelTimerId_=T0((0,_.wf)(B.JSC$17478_onStartBackChannelTimer_,B),MV6(B,B.JSC$17476_backChannelRetryCount_));B.JSC$17476_backChannelRetryCount_++;return!0};
EW.prototype.JSC$17478_onStartBackChannelTimer_=function(){this.JSC$17476_backChannelTimerId_=null;iml(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17476_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17476_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17476_backChannelRequest_+" "+this.handshakeRttMs_);else{var B=2*this.handshakeRttMs_;this.JSC$17476_channelDebug_.info("BP detection timer enabled: "+B);this.bpDetectionTimerId_=T0((0,_.wf)(this.onBpDetectionTimer_,
this),B)}};
EW.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17476_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17476_backChannelRequest_.JSC$17457_xmlHttp_!=null){var B=this.JSC$17476_backChannelRequest_.JSC$17457_xmlHttp_.getResponseText();B&&this.JSC$17476_channelDebug_.warning("Timer should have been cancelled : "+B)}this.JSC$17476_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mM(10);tVS(this);iml(this)}else this.JSC$17476_channelDebug_.warning("Invalid operation.")};
var h5r=function(B){B.bpDetectionTimerId_!=null&&(B.JSC$17476_channelDebug_.debug("Cancel the BP detection timer."),_.xI.clearTimeout(B.bpDetectionTimerId_),B.bpDetectionTimerId_=null)},iml=function(B){B.JSC$17476_channelDebug_.debug("Creating new HttpRequest");
B.JSC$17476_backChannelRequest_=new wI(B,B.JSC$17476_channelDebug_,B.sid_,"rpc",B.JSC$17476_backChannelAttemptId_);B.httpHeadersOverwriteParam_===null&&(B.JSC$17476_backChannelRequest_.JSC$17457_extraHeaders_=B.JSC$17476_extraHeaders_);B.JSC$17476_backChannelRequest_.JSC$17457_readyStateChangeThrottleMs_=0;var c=B.JSC$17476_backChannelUri_.clone();_.fS(c,"RID","rpc");_.fS(c,"SID",B.sid_);_.fS(c,"AID",B.JSC$17476_lastArrayId_);_.fS(c,"CI",B.enableStreaming_?"0":"1");!B.enableStreaming_&&B.longPollingTimeout_&&
_.fS(c,"TO",B.longPollingTimeout_);_.fS(c,"TYPE","xmlhttp");OW(B,c);B.httpHeadersOverwriteParam_&&B.JSC$17476_extraHeaders_&&hmo(c,B.httpHeadersOverwriteParam_,B.JSC$17476_extraHeaders_);B.backChannelRequestTimeoutMs_&&B.JSC$17476_backChannelRequest_.setTimeout(B.backChannelRequestTimeoutMs_);var x=B.JSC$17476_backChannelRequest_,P=B.JSC$17476_hostPrefix_;x.JSC$17457_type_=1;x.JSC$17457_baseUri_=_.kf(c.clone());x.JSC$17457_postData_=null;x.decodeChunks_=!0;gbi(x,P);B.JSC$17476_channelDebug_.debug("New Request created")};
EW.prototype.JSC$17478_onBackChannelDead_=function(){this.JSC$17476_deadBackChannelTimerId_!=null&&(this.JSC$17476_deadBackChannelTimerId_=null,tVS(this),wLi(this),mM(19))};
var VV6=function(B){B.JSC$17476_deadBackChannelTimerId_!=null&&(_.xI.clearTimeout(B.JSC$17476_deadBackChannelTimerId_),B.JSC$17476_deadBackChannelTimerId_=null)},dcA=function(B,c){B.JSC$17476_channelDebug_.debug("Request complete");
var x=null;if(B.JSC$17476_backChannelRequest_==c){VV6(B);h5r(B);B.JSC$17476_backChannelRequest_=null;var P=2}else if(TRA(B.forwardChannelRequestPool_,c))x=c.JSC$17457_pendingMessages_,Ebz(B.forwardChannelRequestPool_,c),P=1;else return;if(B.state_!=0)if(c.JSC$17457_successful_)P==1?(rrs(c.JSC$17457_postData_?c.JSC$17457_postData_.length:0,Date.now()-c.JSC$17457_requestStartTime_,B.JSC$17476_forwardChannelRetryCount_),Shi(B)):fWS(B);else{var Y=c.JSC$17457_lastStatusCode_,g=c.getLastError();if(g==3||
g==0&&Y>0)B.JSC$17476_channelDebug_.debug("Not retrying due to error type"),Y>200&&(B.errorResponseStatusCode_=c.JSC$17457_lastStatusCode_);else{B.JSC$17476_channelDebug_.debug(function(){return"Maybe retrying, last error: "+PYi(g,B.errorResponseStatusCode_)});
if(P==1&&LEl(B,c)||P==2&&wLi(B))return;B.JSC$17476_channelDebug_.debug("Exceeded max number of retries")}x&&x.length>0&&obz(B.forwardChannelRequestPool_,x);B.JSC$17476_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:JQ(B,5);break;case 4:JQ(B,10);break;case 3:JQ(B,6);break;default:JQ(B,2)}}},MV6=function(B,c){var x=B.JSC$17476_baseRetryDelayMs_+Math.floor(Math.random()*B.JSC$17476_retryDelaySeedMs_);
B.isActive()||(B.JSC$17476_channelDebug_.debug("Inactive channel"),x*=2);return x*c};
EW.prototype.onInput_=function(B,c){for(var x=0;x<B.length;x++){var P=B[x];this.JSC$17476_lastArrayId_=P[0];P=P[1];if(this.state_==2)if(P[0]=="c"){this.sid_=P[1];this.JSC$17476_hostPrefix_=P[2];var Y=P[3];Y!=null&&(this.JSC$17478_channelVersion_=Y,this.JSC$17476_channelDebug_.info("VER="+this.JSC$17478_channelVersion_));Y=P[4];Y!=null&&(this.serverVersion_=Y,this.JSC$17476_channelDebug_.info("SVER="+this.serverVersion_));P=P[5];P!=null&&typeof P==="number"&&P>0&&(this.backChannelRequestTimeoutMs_=
P*=1.5,this.JSC$17476_channelDebug_.info("backChannelRequestTimeoutMs_="+P));if(P=c.JSC$17457_xmlHttp_){var g=KZ(P,"X-Client-Wire-Protocol");g&&(Y=this.forwardChannelRequestPool_,!Y.requestPool_&&(_.$I(g,"spdy")||_.$I(g,"quic")||_.$I(g,"h2"))&&(Y.JSC$17467_maxSize_=Y.maxPoolSizeConfigured_,Y.requestPool_=new Set,Y.JSC$17467_request_&&(lWA(Y,Y.JSC$17467_request_),Y.JSC$17467_request_=null)));this.httpSessionIdParam_&&((P=KZ(P,"X-HTTP-Session-Id"))?(this.httpSessionId_=P,_.fS(this.JSC$17476_forwardChannelUri_,
this.httpSessionIdParam_,P)):this.JSC$17476_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17482_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-c.JSC$17457_requestStartTime_,this.JSC$17476_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));P=c;Y=z5z(this,this.JSC$17476_supportsCrossDomainXhrs_?this.JSC$17476_hostPrefix_:null,this.JSC$17476_path_);this.JSC$17476_channelDebug_.debug("GetBackChannelUri: "+
Y);this.JSC$17476_backChannelUri_=Y;P.initialResponseDecoded_?(this.JSC$17476_channelDebug_.debug("Upgrade the handshake request to a backchannel."),Ebz(this.forwardChannelRequestPool_,P),Y=P,(g=this.backChannelRequestTimeoutMs_)&&Y.setTimeout(g),Y.JSC$17457_watchDogTimerId_&&(nbz(Y),pLr(Y)),this.JSC$17476_backChannelRequest_=P):fWS(this);this.JSC$17476_outgoingMaps_.length>0&&Shi(this)}else P[0]!="stop"&&P[0]!="close"||JQ(this,7);else this.state_==3&&(P[0]=="stop"||P[0]=="close"?P[0]=="stop"?JQ(this,
7):this.disconnect():P[0]!="noop"&&this.handler_&&this.handler_.JSC$17482_channelHandleArray(P),this.JSC$17476_backChannelRetryCount_=0)}};
var JQ=function(B,c){B.JSC$17476_channelDebug_.info("Error code "+c);if(c==2){var x=(0,_.wf)(B.testNetworkCallback_,B),P=B.networkTestUrl_,Y=!P;P=new _.ih(P||"//www.google.com/images/cleardot.gif");_.xI.location&&_.xI.location.protocol=="http"||_.B_(P,"https");_.kf(P);Y?QXo(P.toString(),x):FEs(P.toString(),x)}else mM(2);B.onError_(c)};
EW.prototype.testNetworkCallback_=function(B){B?(this.JSC$17476_channelDebug_.info("Successfully pinged google.com"),mM(2)):(this.JSC$17476_channelDebug_.info("Failed to ping google.com"),mM(1))};
EW.prototype.onError_=function(B){this.JSC$17476_channelDebug_.debug("HttpChannel: error - "+B);this.state_=0;this.handler_&&this.handler_.JSC$17482_channelError(B);GxA(this);yZ6(this)};
var GxA=function(B){B.state_=0;B.nonAckedMapsAtChannelClose_=[];if(B.handler_){var c=Omz(B.forwardChannelRequestPool_);if(c.length!=0||B.JSC$17476_outgoingMaps_.length!=0)B.JSC$17476_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+c.length+", outgoing: "+B.JSC$17476_outgoingMaps_.length}),_.ed(B.nonAckedMapsAtChannelClose_,c),_.ed(B.nonAckedMapsAtChannelClose_,B.JSC$17476_outgoingMaps_),B.forwardChannelRequestPool_.JSC$17467_pendingMessages_.length=0,_.DA(B.JSC$17476_outgoingMaps_),
B.JSC$17476_outgoingMaps_.length=0;
B.handler_.JSC$17482_channelClosed()}},AZs=function(B){if(B.state_==0)return B.nonAckedMapsAtChannelClose_;
var c=[];_.ed(c,Omz(B.forwardChannelRequestPool_));_.ed(c,B.JSC$17476_outgoingMaps_);return c},z5z=function(B,c,x){var P=_.ZM(x);
P.JSC$8077_domain_!=""?(c&&_.c_(P,c+"."+P.JSC$8077_domain_),_.xf(P,P.JSC$8077_port_)):(P=_.xI.location,P=s2F(P.protocol,c?c+"."+P.hostname:P.hostname,+P.port,x));c=B.httpSessionIdParam_;x=B.httpSessionId_;c&&x&&_.fS(P,c,x);_.fS(P,"VER",B.JSC$17478_channelVersion_);OW(B,P);return P},kx6=function(B,c,x){if(c&&!B.JSC$17476_supportsCrossDomainXhrs_)throw Error("yk");
c=B.usesFetchStreams_&&!B.JSC$17476_xmlHttpFactory_?new _.EV(new Ot({streamBinaryChunks:x})):new _.EV(B.JSC$17476_xmlHttpFactory_);c.JSC$7842_withCredentials_=B.JSC$17476_supportsCrossDomainXhrs_;return c};
EW.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var uHS=function(){};
_.a=uHS.prototype;_.a.JSC$17482_channelOpened=function(){};
_.a.JSC$17482_channelHandleArray=function(){};
_.a.JSC$17482_channelError=function(){};
_.a.JSC$17482_channelClosed=function(){};
_.a.isActive=function(){return!0};
_.a.JSC$17482_badMapError=function(){};var Dc8=function(){},Qk=function(B,c){_.V4.call(this);
this.JSC$17485_channel_=new EW(c);this.JSC$17485_url_=B;this.messageUrlParams_=c&&c.messageUrlParams||null;B=c&&c.messageHeaders||null;c&&c.clientProtocolHeaderRequired&&(B?_.wW.set(B,"X-Client-Protocol","webchannel"):B=_.wW.create("X-Client-Protocol","webchannel"));this.JSC$17485_channel_.JSC$17476_extraHeaders_=B;B=c&&c.initMessageHeaders||null;c&&c.messageContentType&&(B?_.wW.set(B,"X-WebChannel-Content-Type",c.messageContentType):B=_.wW.create("X-WebChannel-Content-Type",c.messageContentType));
c&&c.clientProfile&&(B?_.wW.set(B,"X-WebChannel-Client-Profile",c.clientProfile):B=_.wW.create("X-WebChannel-Client-Profile",c.clientProfile));this.JSC$17485_channel_.initHeaders_=B;(B=c&&c.httpHeadersOverwriteParam)&&!_.sl(B)&&(this.JSC$17485_channel_.httpHeadersOverwriteParam_=B);this.supportsCrossDomainXhr_=c&&c.supportsCrossDomainXhr||!1;this.sendRawJson_=c&&c.sendRawJson||!1;(c=c&&c.httpSessionIdParam)&&!_.sl(c)&&(this.JSC$17485_channel_.httpSessionIdParam_=c,_.wW.containsKey(this.messageUrlParams_,
c)&&_.wW.remove(this.messageUrlParams_,c));this.channelHandler_=new oa(this)};
_.sZ(Qk,_.V4);Qk.prototype.open=function(){this.JSC$17485_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17485_channel_.JSC$17476_supportsCrossDomainXhrs_=!0);this.JSC$17485_channel_.connect(this.JSC$17485_url_,this.messageUrlParams_||void 0)};
Qk.prototype.close=function(){this.JSC$17485_channel_.disconnect()};
Qk.prototype.send=function(B){var c=this.JSC$17485_channel_;if(typeof B==="string"){var x={};x.__data__=B;B=x}else this.sendRawJson_&&(x={},x.__data__=(0,_.lK)(B),B=x);c.JSC$17476_outgoingMaps_.push(new IW8(c.JSC$17476_nextMapId_++,B));c.state_==3&&Shi(c)};
Qk.prototype.disposeInternal=function(){this.JSC$17485_channel_.handler_=null;delete this.channelHandler_;this.JSC$17485_channel_.disconnect();delete this.JSC$17485_channel_;Qk.superClass_.disposeInternal.call(this)};
var rZ6=function(B){ZO8.call(this);B.__headers__&&(this.headers=B.__headers__,this.statusCode=B.__status__,delete B.__headers__,delete B.__status__);var c=B.__sm__;c?this.data=(this.metadataKey=_.wW.getAnyKey(c))?_.wW.get(c,this.metadataKey):c:this.data=B};
_.sZ(rZ6,ZO8);var R5r=function(B){HOl.call(this);this.status=1;this.errorCode=B};
_.sZ(R5r,HOl);var oa=function(B){this.JSC$17492_channel_=B};
_.sZ(oa,uHS);oa.prototype.JSC$17482_channelOpened=function(){this.JSC$17492_channel_.dispatchEvent("w")};
oa.prototype.JSC$17482_channelHandleArray=function(B){this.JSC$17492_channel_.dispatchEvent(new rZ6(B))};
oa.prototype.JSC$17482_channelError=function(B){this.JSC$17492_channel_.dispatchEvent(new R5r(B))};
oa.prototype.JSC$17482_channelClosed=function(){this.JSC$17492_channel_.dispatchEvent("x")};
var e5y=function(B,c){this.transportChannel_=B;this.JSC$17495_channel_=c},B7B=function(B){return AZs(B.JSC$17495_channel_).map(function(c){var x=B.transportChannel_;
c=c.map;"__data__"in c?(c=c.__data__,x=x.sendRawJson_?(0,_.UgF)(c):c):x=c;return x})};var FE=function(B){cUB.dispatchEvent(new xlS(cUB,B))},cUB=new _.V4,xlS=function(B){_.qf.call(this,"statevent",B)};
_.w(xlS,_.qf);var v1=function(B,c,x,P,Y){this.JSC$17500_channel_=B;this.JSC$17500_channelDebug_=c;this.sid_=x;this.JSC$17500_rid_=P;this.JSC$17500_retryId_=Y||1;this.timeout_=45E3;this.JSC$17500_eventHandler_=new _.cf(this);this.pollingTimer_=new _.Bf;this.pollingTimer_.setInterval(250)};
_.a=v1.prototype;_.a.JSC$17502_extraHeaders_=null;_.a.JSC$17502_successful_=!1;_.a.JSC$17502_watchDogTimerId_=null;_.a.JSC$17502_watchDogTimeoutTime_=null;_.a.JSC$17502_requestStartTime_=null;_.a.JSC$17502_type_=null;_.a.JSC$17502_baseUri_=null;_.a.JSC$17502_requestUri_=null;_.a.JSC$17502_postData_=null;_.a.JSC$17502_xmlHttp_=null;_.a.JSC$17502_xmlHttpChunkStart_=0;_.a.trident_=null;_.a.JSC$17502_verb_=null;_.a.JSC$17502_lastError_=null;_.a.JSC$17502_lastStatusCode_=-1;_.a.sendClose_=!0;
_.a.JSC$17502_cancelled_=!1;_.a.JSC$17502_readyStateChangeThrottleMs_=0;_.a.JSC$17502_readyStateChangeThrottle_=null;var P9i=function(B,c){switch(B){case 0:return"Non-200 return code ("+c+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Y5s={},aEF={};
v1.prototype.setTimeout=function(B){this.timeout_=B};
var s8l=function(B,c,x){B.JSC$17502_type_=1;B.JSC$17502_baseUri_=_.kf(c.clone());B.JSC$17502_postData_=x;B.decodeChunks_=!0;gvF(B,null)},p6S=function(B,c,x,P,Y){B.JSC$17502_type_=1;
B.JSC$17502_baseUri_=_.kf(c.clone());B.JSC$17502_postData_=null;B.decodeChunks_=x;Y&&(B.sendClose_=!1);gvF(B,P)},gvF=function(B,c){B.JSC$17502_requestStartTime_=Date.now();
kgB(B);B.JSC$17502_requestUri_=B.JSC$17502_baseUri_.clone();st(B.JSC$17502_requestUri_,"t",B.JSC$17500_retryId_);B.JSC$17502_xmlHttpChunkStart_=0;B.JSC$17502_xmlHttp_=B.JSC$17500_channel_.JSC$17509_createXhrIo(B.JSC$17500_channel_.JSC$17509_shouldUseSecondaryDomains()?c:null);B.JSC$17502_readyStateChangeThrottleMs_>0&&(B.JSC$17502_readyStateChangeThrottle_=new _.eA((0,_.wf)(B.JSC$17502_xmlHttpHandler_,B,B.JSC$17502_xmlHttp_),B.JSC$17502_readyStateChangeThrottleMs_));B.JSC$17500_eventHandler_.listen(B.JSC$17502_xmlHttp_,
"readystatechange",B.JSC$17502_readyStateChangeHandler_);c=B.JSC$17502_extraHeaders_?_.wW.clone(B.JSC$17502_extraHeaders_):{};B.JSC$17502_postData_?(B.JSC$17502_verb_="POST",c["Content-Type"]="application/x-www-form-urlencoded",B.JSC$17502_xmlHttp_.send(B.JSC$17502_requestUri_,B.JSC$17502_verb_,B.JSC$17502_postData_,c)):(B.JSC$17502_verb_="GET",B.sendClose_&&!_.bJ&&(c.Connection="close"),B.JSC$17502_xmlHttp_.send(B.JSC$17502_requestUri_,B.JSC$17502_verb_,null,c));B.JSC$17500_channel_.notifyServerReachabilityEvent(1);
c=B.JSC$17500_channelDebug_;var x=B.JSC$17502_postData_;if(x){var P="";x=x.split("&");for(var Y=0;Y<x.length;Y++){var g=x[Y].split("=");if(g.length>1){var k=g[0];g=g[1];var n=k.split("_");P=n.length>=2&&n[1]=="type"?P+(k+"="+g+"&"):P+(k+"=redacted&")}}}else P=null;c.info("XMLHTTP REQ ("+B.JSC$17500_rid_+") [attempt "+B.JSC$17500_retryId_+"]: "+B.JSC$17502_verb_+"\n"+B.JSC$17502_requestUri_+"\n"+P)};
v1.prototype.JSC$17502_readyStateChangeHandler_=function(B){B=B.target;var c=this.JSC$17502_readyStateChangeThrottle_;c&&_.OV(B)==3?(this.JSC$17500_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17502_xmlHttpHandler_(B)};
v1.prototype.JSC$17502_xmlHttpHandler_=function(B){try{if(B==this.JSC$17502_xmlHttp_)a:{var c=_.OV(this.JSC$17502_xmlHttp_),x=this.JSC$17502_xmlHttp_.JSC$7842_lastErrorCode_,P=this.JSC$17502_xmlHttp_.getStatus();if(_.bJ&&!_.KY("420+")){if(c<4)break a}else if(c<3||c==3&&!this.JSC$17502_xmlHttp_.getResponseText())break a;this.JSC$17502_cancelled_||c!=4||x==7||(x==8||P<=0?this.JSC$17500_channel_.notifyServerReachabilityEvent(3):this.JSC$17500_channel_.notifyServerReachabilityEvent(2));X6S(this);var Y=
this.JSC$17502_xmlHttp_.getStatus();this.JSC$17502_lastStatusCode_=Y;var g=this.JSC$17502_xmlHttp_.getResponseText();g||this.JSC$17500_channelDebug_.debug("No response text for uri "+this.JSC$17502_requestUri_+" status "+Y);this.JSC$17502_successful_=Y==200;this.JSC$17500_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17500_rid_+") [ attempt "+this.JSC$17500_retryId_+"]: "+this.JSC$17502_verb_+"\n"+this.JSC$17502_requestUri_+"\n"+c+" "+Y);if(this.JSC$17502_successful_){c==4&&z0(this);if(this.decodeChunks_){for(B=
!0;!this.JSC$17502_cancelled_&&this.JSC$17502_xmlHttpChunkStart_<g.length;){var k=$lr(this,g);if(k==aEF){c==4&&(this.JSC$17502_lastError_=4,FE(15),B=!1);Sy(this.JSC$17500_channelDebug_,this.JSC$17500_rid_,null,"[Incomplete Response]");break}else if(k==Y5s){this.JSC$17502_lastError_=4;FE(16);Sy(this.JSC$17500_channelDebug_,this.JSC$17500_rid_,g,"[Invalid Chunk]");B=!1;break}else Sy(this.JSC$17500_channelDebug_,this.JSC$17500_rid_,k,null),nvz(this,k)}c==4&&g.length==0&&(this.JSC$17502_lastError_=1,
FE(17),B=!1);this.JSC$17502_successful_=this.JSC$17502_successful_&&B;B||(Sy(this.JSC$17500_channelDebug_,this.JSC$17500_rid_,g,"[Invalid Chunked Response]"),z0(this),bgN(this))}else Sy(this.JSC$17500_channelDebug_,this.JSC$17500_rid_,g,null),nvz(this,g);this.JSC$17502_successful_&&!this.JSC$17502_cancelled_&&(c==4?this.JSC$17500_channel_.JSC$17509_onRequestComplete(this):(this.JSC$17502_successful_=!1,kgB(this)))}else Y==400&&g.indexOf("Unknown SID")>0?(this.JSC$17502_lastError_=3,FE(13),this.JSC$17500_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17500_rid_+")")):(this.JSC$17502_lastError_=0,FE(14),this.JSC$17500_channelDebug_.warning("XMLHTTP Bad status "+Y+" ("+this.JSC$17500_rid_+")")),z0(this),bgN(this)}else this.JSC$17500_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(n){this.JSC$17500_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var $lr=function(B,c){var x=B.JSC$17502_xmlHttpChunkStart_,P=c.indexOf("\n",x);if(P==-1)return aEF;x=Number(c.substring(x,P));if(isNaN(x))return Y5s;P+=1;if(P+x>c.length)return aEF;c=c.slice(P,P+x);B.JSC$17502_xmlHttpChunkStart_=P+x;return c};
v1.prototype.cancel=function(){this.JSC$17502_cancelled_=!0;z0(this)};
var kgB=function(B){B.JSC$17502_watchDogTimeoutTime_=Date.now()+B.timeout_;K0l(B,B.timeout_)},K0l=function(B,c){if(B.JSC$17502_watchDogTimerId_!=null)throw Error("xk");
B.JSC$17502_watchDogTimerId_=NL((0,_.wf)(B.JSC$17502_onWatchDogTimeout_,B),c)},X6S=function(B){B.JSC$17502_watchDogTimerId_&&(_.xI.clearTimeout(B.JSC$17502_watchDogTimerId_),B.JSC$17502_watchDogTimerId_=null)};
v1.prototype.JSC$17502_onWatchDogTimeout_=function(){this.JSC$17502_watchDogTimerId_=null;var B=Date.now();B-this.JSC$17502_watchDogTimeoutTime_>=0?(this.JSC$17500_channelDebug_.info("TIMEOUT: "+this.JSC$17502_requestUri_),this.JSC$17502_type_!=2&&this.JSC$17500_channel_.notifyServerReachabilityEvent(3),z0(this),this.JSC$17502_lastError_=2,FE(18),bgN(this)):(this.JSC$17500_channelDebug_.warning("WatchDog timer called too early"),K0l(this,this.JSC$17502_watchDogTimeoutTime_-B))};
var bgN=function(B){B.JSC$17500_channel_.JSC$17509_isClosed()||B.JSC$17502_cancelled_||B.JSC$17500_channel_.JSC$17509_onRequestComplete(B)},z0=function(B){X6S(B);
_.R3(B.JSC$17502_readyStateChangeThrottle_);B.JSC$17502_readyStateChangeThrottle_=null;B.pollingTimer_.stop();B.JSC$17500_eventHandler_.removeAll();if(B.JSC$17502_xmlHttp_){var c=B.JSC$17502_xmlHttp_;B.JSC$17502_xmlHttp_=null;c.abort();c.dispose()}B.trident_&&(B.trident_=null)};
v1.prototype.getLastError=function(){return this.JSC$17502_lastError_};
var nvz=function(B,c){try{B.JSC$17500_channel_.JSC$17509_onRequestData(B,c),B.JSC$17500_channel_.notifyServerReachabilityEvent(4)}catch(x){}};var Sy=function(B,c,x,P){var Y=B.info;a:if(x&&x!="y2f%"){try{var g=JSON.parse(x);if(g)for(var k=0;k<g.length;k++)if(Array.isArray(g[k])){var n=g[k];if(!(n.length<2)){var b=n[1];if(Array.isArray(b)&&!(b.length<1)){var d=b[0];if(d!="noop"&&d!="stop")for(var q=1;q<b.length;q++)b[q]=""}}}var C=(0,_.lK)(g);break a}catch(h){B.debug("Exception parsing expected JS array - probably was not JS");C=x;break a}C=void 0}else C=x;Y.call(B,"XMLHTTP TEXT ("+c+"): "+C+(P?" "+P:""))};
Il.prototype.debug=function(B){this.info(B)};
Il.prototype.info=function(){};
Il.prototype.warning=function(){};var j8z=function(B,c){this.JSC$17507_channel_=B;this.JSC$17507_channelDebug_=c;this.JSC$17507_parser_=new C5};
_.a=j8z.prototype;_.a.JSC$17509_extraHeaders_=null;_.a.JSC$17509_request_=null;_.a.receivedIntermediateResult_=!1;_.a.JSC$17509_path_=null;_.a.state_=null;_.a.JSC$17509_lastStatusCode_=-1;_.a.JSC$17509_hostPrefix_=null;_.a.blockedPrefix_=null;
_.a.connect=function(B){this.JSC$17509_path_=B;B=Uly(this.JSC$17507_channel_,this.JSC$17509_path_);FE(3);Date.now();var c=this.JSC$17507_channel_.firstTestResults_;c!=null?(this.JSC$17509_hostPrefix_=c[0],(this.blockedPrefix_=c[1])?(this.state_=1,dls(this)):(this.state_=2,q58(this))):(st(B,"MODE","init"),this.JSC$17509_request_=new v1(this,this.JSC$17507_channelDebug_),this.JSC$17509_request_.JSC$17502_extraHeaders_=this.JSC$17509_extraHeaders_,p6S(this.JSC$17509_request_,B,!1,null,!0),this.state_=
0)};
var dls=function(B){var c=C9z(B.JSC$17507_channel_,B.blockedPrefix_,"/mail/images/cleardot.gif");_.kf(c);fFN(c.toString(),5E3,(0,_.wf)(B.checkBlockedCallback_,B),3,2E3);B.notifyServerReachabilityEvent(1)};
j8z.prototype.checkBlockedCallback_=function(B){if(B)this.state_=2,q58(this);else{FE(4);var c=this.JSC$17507_channel_;c.JSC$17510_channelDebug_.debug("Test Connection Blocked");c.JSC$17514_lastStatusCode_=c.connectionTest_.JSC$17509_lastStatusCode_;yk(c,9)}B&&this.notifyServerReachabilityEvent(2)};
var q58=function(B){B.JSC$17507_channelDebug_.debug("TestConnection: starting stage 2");var c=B.JSC$17507_channel_.secondTestResults_;c!=null?(B.JSC$17507_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+c?"Buffered":"Unbuffered"),FE(5),c?(FE(11),G0(B.JSC$17507_channel_,B,!1)):(FE(12),G0(B.JSC$17507_channel_,B,!0))):(B.JSC$17509_request_=new v1(B,B.JSC$17507_channelDebug_),B.JSC$17509_request_.JSC$17502_extraHeaders_=B.JSC$17509_extraHeaders_,c=h3r(B.JSC$17507_channel_,
B.JSC$17509_hostPrefix_,B.JSC$17509_path_),FE(5),st(c,"TYPE","xmlhttp"),p6S(B.JSC$17509_request_,c,!1,B.JSC$17509_hostPrefix_,!1))};
_.a=j8z.prototype;_.a.JSC$17509_createXhrIo=function(B){return this.JSC$17507_channel_.JSC$17509_createXhrIo(B)};
_.a.abort=function(){this.JSC$17509_request_&&(this.JSC$17509_request_.cancel(),this.JSC$17509_request_=null);this.JSC$17509_lastStatusCode_=-1};
_.a.JSC$17509_isClosed=function(){return!1};
_.a.JSC$17509_onRequestData=function(B,c){this.JSC$17509_lastStatusCode_=B.JSC$17502_lastStatusCode_;if(this.state_==0)if(this.JSC$17507_channelDebug_.debug("TestConnection: Got data for stage 1"),c){try{var x=this.JSC$17507_parser_.parse(c)}catch(P){mlN(this.JSC$17507_channel_,this);return}this.JSC$17509_hostPrefix_=x[0];this.blockedPrefix_=x[1]}else this.JSC$17507_channelDebug_.debug("TestConnection: Null responseText"),mlN(this.JSC$17507_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(FE(7),Date.now()):c=="11111"?(FE(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17509_lastStatusCode_=200,this.JSC$17509_request_.cancel(),this.JSC$17507_channelDebug_.debug("Test connection succeeded; using streaming connection"),FE(12),G0(this.JSC$17507_channel_,this,!0)):(FE(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.a.JSC$17509_onRequestComplete=function(){this.JSC$17509_lastStatusCode_=this.JSC$17509_request_.JSC$17502_lastStatusCode_;this.JSC$17509_request_.JSC$17502_successful_?this.state_==0?(this.JSC$17507_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,dls(this)):(this.state_=2,q58(this))):this.state_==2&&(this.JSC$17507_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17507_channelDebug_.debug("Test connection succeeded; using streaming connection"),
FE(12),G0(this.JSC$17507_channel_,this,!0)):(this.JSC$17507_channelDebug_.debug("Test connection failed; not using streaming"),FE(11),G0(this.JSC$17507_channel_,this,!1))):(this.JSC$17507_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?FE(9):this.state_==2&&FE(10),mlN(this.JSC$17507_channel_,this,this.JSC$17509_request_.getLastError()))};
_.a.JSC$17509_shouldUseSecondaryDomains=function(){return this.JSC$17507_channel_.JSC$17509_shouldUseSecondaryDomains()};
_.a.isActive=function(){return this.JSC$17507_channel_.isActive()};
_.a.notifyServerReachabilityEvent=function(B){this.JSC$17507_channel_.notifyServerReachabilityEvent(B)};var Mt=function(B,c,x){this.state_=1;this.JSC$17510_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17510_channelDebug_=new Il;this.JSC$17510_parser_=new C5;this.firstTestResults_=B||null;this.secondTestResults_=c!=null?c:null;this.asyncTest_=x||!1},T7B=function(B,c){this.JSC$17512_mapId=B;
this.map=c;this.context=null};
_.a=Mt.prototype;_.a.JSC$17514_extraHeaders_=null;_.a.JSC$17514_extraParams_=null;_.a.forwardChannelRequest_=null;_.a.JSC$17514_backChannelRequest_=null;_.a.JSC$17514_path_=null;_.a.JSC$17514_forwardChannelUri_=null;_.a.JSC$17514_backChannelUri_=null;_.a.JSC$17514_hostPrefix_=null;_.a.JSC$17514_nextRid_=0;_.a.JSC$17514_nextMapId_=0;_.a.handler_=null;_.a.JSC$17514_forwardChannelTimerId_=null;_.a.JSC$17514_backChannelTimerId_=null;_.a.JSC$17514_deadBackChannelTimerId_=null;_.a.connectionTest_=null;
_.a.useChunked_=null;_.a.JSC$17514_lastArrayId_=-1;_.a.JSC$17514_lastPostResponseArrayId_=-1;_.a.JSC$17514_lastStatusCode_=-1;_.a.JSC$17514_forwardChannelRetryCount_=0;_.a.JSC$17514_backChannelRetryCount_=0;_.a.JSC$17514_channelVersion_=8;var VEz={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},tEz=function(B,c,x,P){_.qf.call(this,"timingevent",B);this.size=c;this.rtt=x;this.retries=P};
_.sZ(tEz,_.qf);var w6A=function(B){_.qf.call(this,"serverreachability",B)};
_.sZ(w6A,_.qf);Mt.prototype.connect=function(B,c,x,P,Y){this.JSC$17510_channelDebug_.debug("connect()");FE(0);this.JSC$17514_path_=c;this.JSC$17514_extraParams_=x||{};P&&Y!==void 0&&(this.JSC$17514_extraParams_.OSID=P,this.JSC$17514_extraParams_.OAID=Y);this.asyncTest_?(NL((0,_.wf)(this.connectTest_,this,B),100),N7o(this)):this.connectTest_(B)};
Mt.prototype.disconnect=function(){this.JSC$17510_channelDebug_.debug("disconnect()");IES(this);if(this.state_==3){var B=this.JSC$17514_nextRid_++,c=this.JSC$17514_forwardChannelUri_.clone();_.fS(c,"SID",this.sid_);_.fS(c,"RID",B);_.fS(c,"TYPE","terminate");L5(this,c);B=new v1(this,this.JSC$17510_channelDebug_,this.sid_,B);B.JSC$17502_type_=2;B.JSC$17502_baseUri_=_.kf(c.clone());(new Image).src=B.JSC$17502_baseUri_.toString();B.JSC$17502_requestStartTime_=Date.now();kgB(B)}JUS(this)};
Mt.prototype.connectTest_=function(B){this.JSC$17510_channelDebug_.debug("connectTest_()");this.connectionTest_=new j8z(this,this.JSC$17510_channelDebug_);this.connectionTest_.JSC$17509_extraHeaders_=this.JSC$17514_extraHeaders_;this.connectionTest_.JSC$17507_parser_=this.JSC$17510_parser_;this.connectionTest_.connect(B)};
var N7o=function(B){B.JSC$17510_channelDebug_.debug("connectChannel_()");B.JSC$17514_ensureInState_(1,0);B.JSC$17514_forwardChannelUri_=Uly(B,B.JSC$17514_path_);W08(B)},IES=function(B){B.connectionTest_&&(B.connectionTest_.abort(),B.connectionTest_=null);
B.JSC$17514_backChannelRequest_&&(B.JSC$17514_backChannelRequest_.cancel(),B.JSC$17514_backChannelRequest_=null);B.JSC$17514_backChannelTimerId_&&(_.xI.clearTimeout(B.JSC$17514_backChannelTimerId_),B.JSC$17514_backChannelTimerId_=null);lEB(B);B.forwardChannelRequest_&&(B.forwardChannelRequest_.cancel(),B.forwardChannelRequest_=null);B.JSC$17514_forwardChannelTimerId_&&(_.xI.clearTimeout(B.JSC$17514_forwardChannelTimerId_),B.JSC$17514_forwardChannelTimerId_=null)},Evy=function(B,c){if(B.state_==0)throw Error("Ak");
B.JSC$17510_outgoingMaps_.length==1E3&&B.JSC$17510_parser_.stringify(c);B.JSC$17510_outgoingMaps_.push(new T7B(B.JSC$17514_nextMapId_++,c));B.state_!=2&&B.state_!=3||W08(B)};
Mt.prototype.JSC$17509_isClosed=function(){return this.state_==0};
Mt.prototype.getState=function(){return this.state_};
var W08=function(B){B.forwardChannelRequest_||B.JSC$17514_forwardChannelTimerId_||(B.JSC$17514_forwardChannelTimerId_=NL((0,_.wf)(B.JSC$17514_onStartForwardChannelTimer_,B),0),B.JSC$17514_forwardChannelRetryCount_=0)};
Mt.prototype.JSC$17514_onStartForwardChannelTimer_=function(B){this.JSC$17514_forwardChannelTimerId_=null;Ogz(this,B)};
var Ogz=function(B,c){B.JSC$17510_channelDebug_.debug("startForwardChannel_");if(B.state_==1){if(!c){B.JSC$17510_channelDebug_.debug("open_()");B.JSC$17514_nextRid_=Math.floor(Math.random()*1E5);c=B.JSC$17514_nextRid_++;var x=new v1(B,B.JSC$17510_channelDebug_,"",c);x.JSC$17502_extraHeaders_=B.JSC$17514_extraHeaders_;var P=ovA(B),Y=B.JSC$17514_forwardChannelUri_.clone();_.fS(Y,"RID",c);_.fS(Y,"CVER","1");L5(B,Y);s8l(x,Y,P);B.forwardChannelRequest_=x;B.state_=2}}else B.state_==3&&(c?Q8z(B,c):B.JSC$17510_outgoingMaps_.length==
0?B.JSC$17510_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):B.forwardChannelRequest_||(Q8z(B),B.JSC$17510_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Q8z=function(B,c){if(c)if(B.JSC$17514_channelVersion_>6){B.JSC$17510_outgoingMaps_=B.pendingMaps_.concat(B.JSC$17510_outgoingMaps_);
B.pendingMaps_.length=0;var x=B.JSC$17514_nextRid_-1;c=ovA(B)}else x=c.JSC$17500_rid_,c=c.JSC$17502_postData_;else x=B.JSC$17514_nextRid_++,c=ovA(B);var P=B.JSC$17514_forwardChannelUri_.clone();_.fS(P,"SID",B.sid_);_.fS(P,"RID",x);_.fS(P,"AID",B.JSC$17514_lastArrayId_);L5(B,P);x=new v1(B,B.JSC$17510_channelDebug_,B.sid_,x,B.JSC$17514_forwardChannelRetryCount_+1);x.JSC$17502_extraHeaders_=B.JSC$17514_extraHeaders_;x.setTimeout(1E4+Math.round(1E4*Math.random()));B.forwardChannelRequest_=x;s8l(x,P,c)},
L5=function(B,c){B.handler_&&(B=B.handler_.JSC$17521_getAdditionalParams())&&_.wW.forEach(B,function(x,P){_.fS(c,P,x)})},ovA=function(B){var c=Math.min(B.JSC$17510_outgoingMaps_.length,1E3),x=["count="+c];
if(B.JSC$17514_channelVersion_>6&&c>0){var P=B.JSC$17510_outgoingMaps_[0].JSC$17512_mapId;x.push("ofs="+P)}else P=0;for(var Y={},g=0;g<c;Y={mapId$jscomp$3:void 0},g++){Y.mapId$jscomp$3=B.JSC$17510_outgoingMaps_[g].JSC$17512_mapId;var k=B.JSC$17510_outgoingMaps_[g].map;Y.mapId$jscomp$3=B.JSC$17514_channelVersion_<=6?g:Y.mapId$jscomp$3-P;try{_.wW.forEach(k,function(n){return function(b,d){x.push("req"+n.mapId$jscomp$3+"_"+d+"="+encodeURIComponent(b))}}(Y))}catch(n){x.push("req"+Y.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}B.pendingMaps_=B.pendingMaps_.concat(B.JSC$17510_outgoingMaps_.splice(0,c));
return x.join("&")},F0S=function(B){B.JSC$17514_backChannelRequest_||B.JSC$17514_backChannelTimerId_||(B.JSC$17514_backChannelAttemptId_=1,B.JSC$17514_backChannelTimerId_=NL((0,_.wf)(B.JSC$17514_onStartBackChannelTimer_,B),0),B.JSC$17514_backChannelRetryCount_=0)},z3A=function(B){if(B.JSC$17514_backChannelRequest_||B.JSC$17514_backChannelTimerId_||B.JSC$17514_backChannelRetryCount_>=3)return!1;
B.JSC$17510_channelDebug_.debug("Going to retry GET");B.JSC$17514_backChannelAttemptId_++;B.JSC$17514_backChannelTimerId_=NL((0,_.wf)(B.JSC$17514_onStartBackChannelTimer_,B),vvc(B,B.JSC$17514_backChannelRetryCount_));B.JSC$17514_backChannelRetryCount_++;return!0};
Mt.prototype.JSC$17514_onStartBackChannelTimer_=function(){this.JSC$17514_backChannelTimerId_=null;this.JSC$17510_channelDebug_.debug("Creating new HttpRequest");this.JSC$17514_backChannelRequest_=new v1(this,this.JSC$17510_channelDebug_,this.sid_,"rpc",this.JSC$17514_backChannelAttemptId_);this.JSC$17514_backChannelRequest_.JSC$17502_extraHeaders_=this.JSC$17514_extraHeaders_;this.JSC$17514_backChannelRequest_.JSC$17502_readyStateChangeThrottleMs_=0;var B=this.JSC$17514_backChannelUri_.clone();_.fS(B,
"RID","rpc");_.fS(B,"SID",this.sid_);_.fS(B,"CI",this.useChunked_?"0":"1");_.fS(B,"AID",this.JSC$17514_lastArrayId_);L5(this,B);_.fS(B,"TYPE","xmlhttp");p6S(this.JSC$17514_backChannelRequest_,B,!0,this.JSC$17514_hostPrefix_,!1);this.JSC$17510_channelDebug_.debug("New Request created")};
var G0=function(B,c,x){B.JSC$17510_channelDebug_.debug("Test Connection Finished");B.useChunked_=B.secondTestResults_==null?x:!B.secondTestResults_;B.JSC$17514_lastStatusCode_=c.JSC$17509_lastStatusCode_;B.asyncTest_||N7o(B)},mlN=function(B,c){B.JSC$17510_channelDebug_.debug("Test Connection Failed");
B.JSC$17514_lastStatusCode_=c.JSC$17509_lastStatusCode_;yk(B,2)};
Mt.prototype.JSC$17509_onRequestData=function(B,c){if(this.state_!=0&&(this.JSC$17514_backChannelRequest_==B||this.forwardChannelRequest_==B))if(this.JSC$17514_lastStatusCode_=B.JSC$17502_lastStatusCode_,this.forwardChannelRequest_==B&&this.state_==3)if(this.JSC$17514_channelVersion_>7){try{var x=this.JSC$17510_parser_.parse(c)}catch(P){x=null}if(Array.isArray(x)&&x.length==3)if(c=x,c[0]==0)a:if(this.JSC$17510_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17514_backChannelTimerId_)this.JSC$17510_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17514_backChannelRequest_)if(this.JSC$17514_backChannelRequest_.JSC$17502_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17502_requestStartTime_)lEB(this),this.JSC$17514_backChannelRequest_.cancel(),this.JSC$17514_backChannelRequest_=null;else break a;else this.JSC$17510_channelDebug_.warning("We do not have a BackChannel established");z3A(this);FE(19)}else this.JSC$17514_lastPostResponseArrayId_=c[1],B=this.JSC$17514_lastPostResponseArrayId_-this.JSC$17514_lastArrayId_,0<
B&&(c=c[2],this.JSC$17510_channelDebug_.debug(c+" bytes (in "+B+" arrays) are outstanding on the BackChannel"),c<37500&&this.useChunked_&&this.JSC$17514_backChannelRetryCount_==0&&!this.JSC$17514_deadBackChannelTimerId_&&(this.JSC$17514_deadBackChannelTimerId_=NL((0,_.wf)(this.JSC$17514_onBackChannelDead_,this),6E3)));else this.JSC$17510_channelDebug_.debug("Bad POST response data returned"),yk(this,11)}else c!="y2f%"&&(this.JSC$17510_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
yk(this,11));else this.JSC$17514_backChannelRequest_==B&&lEB(this),_.sl(c)||(B=this.JSC$17510_parser_.parse(c),this.onInput_(B))};
Mt.prototype.JSC$17514_onBackChannelDead_=function(){this.JSC$17514_deadBackChannelTimerId_!=null&&(this.JSC$17514_deadBackChannelTimerId_=null,this.JSC$17514_backChannelRequest_.cancel(),this.JSC$17514_backChannelRequest_=null,z3A(this),FE(20))};
var lEB=function(B){B.JSC$17514_deadBackChannelTimerId_!=null&&(_.xI.clearTimeout(B.JSC$17514_deadBackChannelTimerId_),B.JSC$17514_deadBackChannelTimerId_=null)};
Mt.prototype.JSC$17509_onRequestComplete=function(B){this.JSC$17510_channelDebug_.debug("Request complete");if(this.JSC$17514_backChannelRequest_==B){lEB(this);this.JSC$17514_backChannelRequest_=null;var c=2}else if(this.forwardChannelRequest_==B)this.forwardChannelRequest_=null,c=1;else return;this.JSC$17514_lastStatusCode_=B.JSC$17502_lastStatusCode_;if(this.state_!=0)if(B.JSC$17502_successful_)if(c==1){c=B.JSC$17502_postData_?B.JSC$17502_postData_.length:0;B=Date.now()-B.JSC$17502_requestStartTime_;
var x=cUB;x.dispatchEvent(new tEz(x,c,B,this.JSC$17514_forwardChannelRetryCount_));W08(this);this.handler_&&this.handler_.JSC$17521_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else F0S(this);else{x=B.getLastError();if(x==3||x==7||x==0&&this.JSC$17514_lastStatusCode_>0)this.JSC$17510_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17510_channelDebug_.debug("Maybe retrying, last error: "+P9i(x,this.JSC$17514_lastStatusCode_));var P;if(P=c==1)this.forwardChannelRequest_||
this.JSC$17514_forwardChannelTimerId_||this.state_==1||this.JSC$17514_forwardChannelRetryCount_>=2?P=!1:(this.JSC$17510_channelDebug_.debug("Going to retry POST"),this.JSC$17514_forwardChannelTimerId_=NL((0,_.wf)(this.JSC$17514_onStartForwardChannelTimer_,this,B),vvc(this,this.JSC$17514_forwardChannelRetryCount_)),this.JSC$17514_forwardChannelRetryCount_++,P=!0);if(P||c==2&&z3A(this))return;this.JSC$17510_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17510_channelDebug_.debug("Error: HTTP request failed");
switch(x){case 1:yk(this,5);break;case 4:yk(this,10);break;case 3:yk(this,6);break;case 7:yk(this,12);break;default:yk(this,2)}}};
var vvc=function(B,c){var x=5E3+Math.floor(Math.random()*1E4);B.isActive()||(B.JSC$17510_channelDebug_.debug("Inactive channel"),x*=2);return x*c};
Mt.prototype.onInput_=function(B){for(var c=0;c<B.length;c++){var x=B[c];this.JSC$17514_lastArrayId_=x[0];x=x[1];this.state_==2?x[0]=="c"?(this.sid_=x[1],this.JSC$17514_hostPrefix_=x[2],x=x[3],x!=null?this.JSC$17514_channelVersion_=x:this.JSC$17514_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17521_channelOpened(),this.JSC$17514_backChannelUri_=h3r(this,this.JSC$17514_hostPrefix_,this.JSC$17514_path_),F0S(this)):x[0]=="stop"&&yk(this,7):this.state_==3&&(x[0]=="stop"?yk(this,7):
x[0]!="noop"&&this.handler_&&this.handler_.JSC$17521_channelHandleArray(x),this.JSC$17514_backChannelRetryCount_=0)}};
Mt.prototype.JSC$17514_ensureInState_=function(B){if(!_.Lx(arguments,this.state_))throw Error("Bk`"+this.state_);};
var yk=function(B,c){B.JSC$17510_channelDebug_.info("Error code "+c);if(c==2||c==9){var x=null;B.handler_&&(x=null);var P=(0,_.wf)(B.testGoogleComCallback_,B);x||(x=new _.ih("//www.google.com/images/cleardot.gif"),_.kf(x));Hly(x.toString(),1E4,P)}else FE(2);B.onError_(c)};
Mt.prototype.testGoogleComCallback_=function(B){B?(this.JSC$17510_channelDebug_.info("Successfully pinged google.com"),FE(2)):(this.JSC$17510_channelDebug_.info("Failed to ping google.com"),FE(1),this.onError_(8))};
Mt.prototype.onError_=function(B){this.JSC$17510_channelDebug_.debug("HttpChannel: error - "+B);this.state_=0;this.handler_&&this.handler_.JSC$17521_channelError(B);JUS(this);IES(this)};
var JUS=function(B){B.state_=0;B.JSC$17514_lastStatusCode_=-1;if(B.handler_)if(B.pendingMaps_.length==0&&B.JSC$17510_outgoingMaps_.length==0)B.handler_.JSC$17521_channelClosed();else{B.JSC$17510_channelDebug_.debug("Number of undelivered maps, pending: "+B.pendingMaps_.length+", outgoing: "+B.JSC$17510_outgoingMaps_.length);var c=_.DA(B.pendingMaps_),x=_.DA(B.JSC$17510_outgoingMaps_);B.pendingMaps_.length=0;B.JSC$17510_outgoingMaps_.length=0;B.handler_.JSC$17521_channelClosed(c,x)}},Uly=function(B,
c){c=C9z(B,null,c);
B.JSC$17510_channelDebug_.debug("GetForwardChannelUri: "+c);return c},h3r=function(B,c,x){c=C9z(B,B.JSC$17509_shouldUseSecondaryDomains()?c:null,x);
B.JSC$17510_channelDebug_.debug("GetBackChannelUri: "+c);return c},C9z=function(B,c,x){var P=_.ZM(x);
if(P.JSC$8077_domain_!="")c&&_.c_(P,c+"."+P.JSC$8077_domain_),_.xf(P,P.JSC$8077_port_);else{var Y=window.location;P=s2F(Y.protocol,c?c+"."+Y.hostname:Y.hostname,+Y.port,x)}B.JSC$17514_extraParams_&&_.wW.forEach(B.JSC$17514_extraParams_,function(g,k){_.fS(P,k,g)});
_.fS(P,"VER",B.JSC$17514_channelVersion_);L5(B,P);return P};
Mt.prototype.JSC$17509_createXhrIo=function(B){if(B)throw Error("yk");B=new _.EV;B.JSC$7842_withCredentials_=!1;return B};
Mt.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Mt.prototype.notifyServerReachabilityEvent=function(B){var c=cUB;c.dispatchEvent(new w6A(c,B))};
Mt.prototype.JSC$17509_shouldUseSecondaryDomains=function(){return!1};
new bwy;var S5z=function(){};
_.a=S5z.prototype;_.a.JSC$17521_channelOpened=function(){};
_.a.JSC$17521_channelHandleArray=function(){};
_.a.JSC$17521_channelSuccess=function(){};
_.a.JSC$17521_channelError=function(){};
_.a.JSC$17521_channelClosed=function(){};
_.a.JSC$17521_getAdditionalParams=function(){return{}};
_.a.isActive=function(){return!0};var yUB=function(B){B.front_.length===0&&(B.front_=B.back_,B.front_.reverse(),B.back_=[])};
_.a=AJc.prototype;_.a.enqueue=function(B){this.back_.push(B)};
_.a.peek=function(){yUB(this);return _.v$(this.front_)};
_.a.getCount=function(){return this.front_.length+this.back_.length};
_.a.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.a.clear=function(){this.front_=[];this.back_=[]};
_.a.contains=function(B){return _.Lx(this.front_,B)||_.Lx(this.back_,B)};
_.a.remove=function(B){var c=this.front_;var x=Array.prototype.lastIndexOf.call(c,B,c.length-1);x>=0?(_.iX(c,x),c=!0):c=!1;return c||_.Ao(this.back_,B)};
_.a.getValues=function(){for(var B=[],c=this.front_.length-1;c>=0;--c)B.push(this.front_[c]);c=this.back_.length;for(var x=0;x<c;++x)B.push(this.back_[x]);return B};var Zo=function(B){this.JSC$17525_map_=new _.XV;this.size=0;B&&this.addAll(B)},GgS=function(B){var c=typeof B;
return c=="object"&&B||c=="function"?"o"+_.Py(B):c.charAt(0)+B};
_.a=Zo.prototype;_.a.getCount=function(){return this.JSC$17525_map_.size};
_.a.add=function(B){this.JSC$17525_map_.set(GgS(B),B);this.size=this.JSC$17525_map_.size};
_.a.addAll=function(B){B=_.eQ(B);for(var c=B.length,x=0;x<c;x++)this.add(B[x]);this.size=this.JSC$17525_map_.size};
_.a.removeAll=function(B){B=_.eQ(B);for(var c=B.length,x=0;x<c;x++)this.remove(B[x]);this.size=this.JSC$17525_map_.size};
_.a.delete=function(B){B=this.JSC$17525_map_.remove(GgS(B));this.size=this.JSC$17525_map_.size;return B};
_.a.remove=function(B){return this.delete(B)};
_.a.clear=function(){this.JSC$17525_map_.clear();this.size=0};
_.a.isEmpty=function(){return this.JSC$17525_map_.size===0};
_.a.has=function(B){return this.JSC$17525_map_.containsKey(GgS(B))};
_.a.contains=function(B){return this.JSC$17525_map_.containsKey(GgS(B))};
_.a.getValues=function(){return this.JSC$17525_map_.getValues()};
_.a.values=function(){return this.JSC$17525_map_.values()};
_.a.clone=function(){return new Zo(this)};
_.a.equals=function(B){return this.getCount()==anN(B)&&MEF(this,B)};
var MEF=function(B,c){var x=anN(c);if(B.getCount()>x)return!1;!(c instanceof Zo)&&x>5&&(c=new Zo(c));return gUl(B,function(P){var Y=c;return Y.contains&&typeof Y.contains=="function"?Y.contains(P):Y.containsValue&&typeof Y.containsValue=="function"?Y.containsValue(P):_.R7(Y)||typeof Y==="string"?_.Lx(Y,P):_.wW.containsValue(Y,P)})};
Zo.prototype.__iterator__=function(){return this.JSC$17525_map_.__iterator__(!1)};
Zo.prototype[Symbol.iterator]=function(){return this.values()};var L0c={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(B){return(this._clampValue(B)-this.min)/(this.max-this.min)},
_clampValue:function(B){return Math.min(this.max,Math.max(this.min,this._calcStep(B)))},
_calcStep:function(B){B=parseFloat(B);if(!this.step)return B;B=Math.round((B-this.min)/this.step);return this.step<1?B/(1/this.step)+this.min:B*this.step+this.min},
_validateValue:function(){var B=this._clampValue(this.value);this.value=this.oldValue=isNaN(B)?this.oldValue:B;return this.value!==B},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ZgS;var Hgs;_.Ni({_template:function(){if(Hgs!==void 0)return Hgs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;ZgS===void 0&&(ZgS=document.createElement("template"));var P=ZgS;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return Hgs=B},
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(){_.fl(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(B){B.keyCode===27&&(B.preventDefault(),this.close())},
_track:function(B){if(!this.persistent&&!this.disableSwipe)switch(B.preventDefault(),B.detail.state){case "start":this._trackStart(B);break;case "track":this._trackMove(B);break;case "end":this._trackEnd(B)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var B=this.$.contentContainer.getBoundingClientRect();this._savedWidth=B.width;this._translateOffset=this.position==="left"?B.left:B.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(B){this._trackDetails&&(this._translateDrawer(B.detail.dx+this._translateOffset),this._trackDetails.push({dx:B.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(B){if(this._trackDetails){var c=B.detail.dx+this._translateOffset,x=this.getWidth();c=this.position==="left"?c>=0||c<=-x:c<=0||c>=x;if(!c){var P=this._trackDetails;this._trackDetails=null;this._flingDrawer(B,P);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}x/=2;B.detail.dx<-x?this.opened=this.position==="right":B.detail.dx>x&&(this.opened=this.position==="left");c?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(B,c){for(var x=Date.now(),P=x-100,Y,g=0,k=c.length-1;g<=k;){var n=g+k>>1,b=c[n];b.timeStamp>=P?(Y=b,k=n-1):g=n+1}return Y?(B.detail.dx-Y.dx)/(x-Y.timeStamp||1):0},
_flingDrawer:function(B,c){c=this._calculateVelocity(B,c);if(!(Math.abs(c)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;B=B.detail.dx+this._translateOffset;var x=this.getWidth(),P=this.position==="left",Y=c>0;Y?(c=Math.max(c,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(c=Math.min(c,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");c=this._FLING_INITIAL_SLOPE*(!Y&&P?-(B+x):Y&&!P?x-B:-B)/c;this._styleTransitionDuration(c);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,c)}},
_styleTransitionDuration:function(B){this.style.transitionDuration=B+"ms";this.$.contentContainer.style.transitionDuration=B+"ms";this.$.scrim.style.transitionDuration=B+"ms"},
_styleTransitionTimingFunction:function(B){this.$.contentContainer.style.transitionTimingFunction=B;this.$.scrim.style.transitionTimingFunction=B},
_translateDrawer:function(B){var c=this.getWidth();this.position==="left"?(B=Math.max(-c,Math.min(B,0)),this.$.scrim.style.opacity=1+B/c):(B=Math.max(0,Math.min(B,c)),this.$.scrim.style.opacity=1-B/c);this.translate3d(B+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var B=this._drawerState;B===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;B!==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=""),B!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var B=_.m4(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"])');B.length>0?(this._firstTabStop=B[0],this._lastTabStop=B[B.length-1]):
this._lastTabStop=this._firstTabStop=null;(B=this.getAttribute("tabindex"))&&parseInt(B,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(B){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||B.keyCode!==9||(B.shiftKey?this._firstTabStop&&_.m4(B).localTarget===this._firstTabStop&&(B.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.m4(B).localTarget===this._lastTabStop&&(B.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(B,c){this.toggleClass("visible",B&&!c,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 fEo;var igA;_.Ni({_template:function(){if(igA!==void 0)return igA;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;fEo===void 0&&(fEo=document.createElement("template"));var P=fEo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return igA=B},
is:"tp-yt-paper-progress",behaviors:[L0c],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(B){this.toggleClass("indeterminate",B,this.$.primaryProgress)},
_transformProgress:function(B,c){B.style.transform=B.style.webkitTransform="scaleX("+c/100+")"},
_mainRatioChanged:function(B){this._transformProgress(this.$.primaryProgress,B)},
_progressChanged:function(B,c,x,P,Y){B=this._clampValue(B);c=this._clampValue(c);var g=this._calcRatio(B)*100,k=this._calcRatio(c)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,k);this.secondaryProgress=B;Y?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",c);this.setAttribute("aria-valuemin",x);this.setAttribute("aria-valuemax",P)},
_disabledChanged:function(B){this.setAttribute("aria-disabled",B?"true":"false")},
_hideSecondaryProgress:function(B){return B===0}});var AUz;var uyN;var Dli=function(){};
_.a=Dli.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._buttonStateChanged=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._calcRatio=function(){};
_.a._clampValue=function(){};
_.a._calcStep=function(){};
_.a._validateValue=function(){};
_.a._update=function(){};
_.a._setImmediateValue=function(){};
_.a._setExpand=function(){};
_.a._setDragging=function(){};
_.a._setTransiting=function(){};
_.a._setMarkers=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
_.a._setRatio=function(){};
Dli=_.Ni({_template:function(){if(uyN!==void 0)return uyN;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;AUz===void 0&&(AUz=document.createElement("template"));var P=AUz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return uyN=B},
is:"tp-yt-paper-slider",behaviors:[_.VT,_.II,_.xvZ,L0c],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&&_.WX(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(B,c,x){this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",x);this.setAttribute("aria-valuenow",B);this._positionKnob(this._calcRatio(B)*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(B){this._setImmediateValue(this._calcStep(this._calcKnobPosition(B)));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(B){return(this.max-this.min)*B/100+this.min},
_onTrack:function(B){B.stopPropagation();switch(B.detail.state){case "start":this._trackStart(B);break;case "track":this._trackX(B);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(B){this.dragging||this._trackStart(B);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,B.detail.dx*(this._isRTL?-1:1)));B=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(B);B=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(B+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var B=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;B.transform=B.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(B){this._expandKnob();B.preventDefault();this.focus()},
_bartrack:function(B){this._allowBarEvent(B)&&this._onTrack(B)},
_barclick:function(B){this._w=this.$.sliderBar.offsetWidth;var c=this.$.sliderBar.getBoundingClientRect();c=(B.detail.x-c.left)/this._w*100;this._isRTL&&(c=100-c);var x=this.ratio;this._setTransiting(!0);this._positionKnob(c);x===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
B.preventDefault();this.focus()},
_bardown:function(B){this._allowBarEvent(B)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(B))},
_knobTransitionEnd:function(B){B.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(B,c,x,P){P||this._setMarkers([]);c=Math.round((x-c)/this.step);c>B&&(c=B);if(c<0||!isFinite(c))c=0;this._setMarkers(Array(c))},
_mergeClasses:function(B){return Object.keys(B).filter(function(c){return B[c]}).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(B){return!this.ignoreBarTouch||B.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(B){this._isRTL?this._incrementKey(B):this._decrementKey(B)},
_rightKey:function(B){this._isRTL?this._decrementKey(B):this._incrementKey(B)},
_incrementKey:function(B){this.disabled||(B.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),B.preventDefault())},
_decrementKey:function(B){this.disabled||(B.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),B.preventDefault())},
_changeValue:function(B){this.value=B.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(B){B.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.cby._createRipple.call(this)},
_focusedChanged:function(B){B&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=B?"":"none",this._ripple.holdDown=B)}});var rUz;var R3B;var H1=null,e3l=function(){};
_.a=e3l.prototype;_.a.fit=function(){};
_.a._discoverInfo=function(){};
_.a.resetFit=function(){};
_.a.refit=function(){};
_.a.position=function(){};
_.a.constrain=function(){};
_.a._sizeDimension=function(){};
_.a.__sizeDimension=function(){};
_.a.center=function(){};
_.a.__getNormalizedRect=function(){};
_.a.__getOffscreenArea=function(){};
_.a.__getPosition=function(){};
_.a.notifyResize=function(){};
_.a.assignParentResizable=function(){};
_.a.stopResizeNotificationsFor=function(){};
_.a._subscribeIronResize=function(){};
_.a._unsubscribeIronResize=function(){};
_.a.resizerShouldNotify=function(){};
_.a._onDescendantIronResize=function(){};
_.a._fireResize=function(){};
_.a._onIronRequestResizeNotifications=function(){};
_.a._parentResizableChanged=function(){};
_.a._notifyDescendant=function(){};
_.a._requestResizeNotifications=function(){};
_.a._findParent=function(){};
_.a.toggle=function(){};
_.a.open=function(){};
_.a.close=function(){};
_.a.cancel=function(){};
_.a.invalidateTabbables=function(){};
_.a._ensureSetup=function(){};
_.a._canceledChanged=function(){};
_.a._withBackdropChanged=function(){};
_.a._prepareRenderOpened=function(){};
_.a._finishRenderOpened=function(){};
_.a._finishRenderClosed=function(){};
_.a._preparePositioning=function(){};
_.a._finishPositioning=function(){};
_.a._applyFocus=function(){};
_.a._onCaptureClick=function(){};
_.a._onCaptureFocus=function(){};
_.a._onCaptureEsc=function(){};
_.a._onCaptureTab=function(){};
_.a._onIronResize=function(){};
_.a._onNodesChange=function(){};
_.a.__ensureFirstLastFocusables=function(){};
_.a.__openedChanged=function(){};
_.a.__deraf=function(){};
_.a.__updateScrollObservers=function(){};
_.a.__addScrollListeners=function(){};
_.a.__removeScrollListeners=function(){};
_.a.__isValidScrollAction=function(){};
_.a.__onCaptureScroll=function(){};
_.a.__saveScrollPosition=function(){};
_.a.__restoreScrollPosition=function(){};
_.a._setCanceled=function(){};
e3l=_.Ni({_template:function(){if(R3B!==void 0)return R3B;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;rUz===void 0&&(rUz=document.createElement("template"));var P=rUz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);return R3B=B},
is:"tp-yt-paper-toast",behaviors:[_.ii],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(){_.V8._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Mk.requestAvailability()},
show:function(B){typeof B=="string"&&(B={text:B});for(var c in B)c.indexOf("_")===0?_.V8._warn('The property "'+c+'" is private and was not set.'):c in this?this[c]=B[c]:_.V8._warn('The property "'+c+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(B){B&&B.target===this&&B.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(H1&&H1!==this&&H1.close(),H1=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):H1===this&&(H1=null);_.fd._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(B){this.positionTarget=B},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Byc=new _.A("disablePersonalizationAction");var MFz=new _.A("showDmaConsentFlowCommand");var LzN=new _.A("showMmgNoticeCommand");var c4i=new _.A("saveConsentAction");var xkA=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.s0(B)};
_.w(xkA,_.zL);var Pi8=_.Ba(xkA);var Yc8=new _.A("updateTopbarAvatarAction");var ays=new _.A("channelHandleValidationResultRenderer");var gYs=new _.A("generateHandleFromNameResultRenderer");var sIS=new _.A("channelHandleInputRenderer");var pbS=new _.A("copyLinkRenderer");var kV6=new _.A("timedCommand");var Xb6=new _.A("clearCookieAction");var $kB=new _.A("getMultiPageMenuAction");var nYy=new _.A("addToGuideSectionAction"),bdr=new _.A("removeFromGuideSectionAction");var Kaz=new _.A("updateNotificationsUnseenCountAction");var jIr=new _.A("resetChannelUnreadCountCommand");var Ukl=new _.A("resetSubscriptionsUnreadDotCommand");var dkA=new _.A("selectLanguageCommand");var PIy=new _.A("sendFeedbackAction");var qci=new _.A("uploadImageToScottyCommand");var CiB=new _.A("registerPromoCommand");var h7z=new _.A("setPushNotificationsEnabledCommand");var mk6=new _.A("desktopTopbarRenderer");var TyF=new _.A("surveyFollowUpRenderer");var VgN=new _.A("handlesClaimingRadioOptionRenderer");var tg6=new _.A("hotkeyDialogRenderer");var wbo=new _.A("modifyReportFormCommand");var Ny8=new _.A("accountLinkCommand");var IyF=new _.A("accountUnlinkCommand");var J4l=new _.A("logAccountLinkingEventCommand");var WaF=new _.A("guideCollapsibleEntryRenderer");var lyz=new _.A("guideDownloadsEntryRenderer");var f5=new _.A("guideEntryRenderer");var EY8=new _.A("getLocationCommand");var Od8=new _.A("locationCollectionCommand");var oYS=new _.A("storiesItemViewModel");var QIo=new _.A("addToRemoteQueueAction");var FaS=new _.A("insertInRemoteQueueAction");var vYr=new _.A("removeFromRemoteQueueAction");var z7i=new _.A("notificationRenderer");var N_6=new _.A("localWatchHistoryCommand");var ScA=new _.A("pdgBuyFlowHeaderRenderer");var y4z=new _.A("pdgColorSliderRenderer");var GVN=new _.A("pdgCommentOptionRenderer");var MgS=new _.A("pdgCommentPreviewRenderer");var Laz=new _.A("superVodSelectableItemButtonRenderer");var Zdl=new _.A("switchButtonRenderer");var Hdz=new _.A("upsellDialogRenderer");var fyi=new _.A("feedbackQuestionRenderer"),idA=new _.A("feedbackOptionRenderer");var A4z=new _.A("sponsorshipsTierRenderer"),uVl=new _.A("sponsorshipsPromotionChannelRenderer");var Dks=new _.A("simpleSurveyMessageRenderer");var PF6=new _.A("invokeInstrumentManagerAction");var r4z=new _.A("logYpcFlowDismissCommand");var R7i=new _.A("logYpcFlowStartCommand");var e7B=new _.A("unlimitedCreateFamilyEndpoint");var BJA=new _.A("iconBadgeRenderer");var Ijc=new _.A("collaborativePlaylistVisibilityValidationRule");var c36=function(B){_.qf.call(this,"channelMessage");this.message=B};
_.w(c36,_.qf);var xVc=function(B){_.qf.call(this,"channelError");this.error=B};
_.w(xVc,_.qf);var Paz={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"},YPS={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},aYz={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},g56={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},sA8={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var iw=function(B){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 _.XV;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;B&&(this.id=B.id||B.name,this.name=B.name,this.clientName=B.clientName?B.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=B.app,this.type=B.type||"REMOTE_CONTROL",this.username=B.user||"",this.avatar=B.userAvatarUri||"",this.obfuscatedGaiaId=B.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=B.ownerObfuscatedGaiaId||"",this.castUserId=B.castUserId||"",this.theme=B.theme||"u",p7z(this,B.capabilities||""),k3l(this,
B.compatibleSenderThemes||""),X7o(this,B.experiments||""),this.remoteControllerUrl=B.remoteControllerUrl||"",this.localChannelEncryptionKey=B.localChannelEncryptionKey||"",this.deviceContext=B.deviceContext,this.brand=B.brand||"",this.model=B.model||"",this.year=B.year||0,this.os=B.os||"",this.osVersion=B.osVersion||"",this.chipset=B.chipset||"",this.mdxDialServerType=B.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=B.pairingType||"unknown",B=B.deviceInfo)&&(B=JSON.parse(B),this.brand=
B.brand||"",this.model=B.model||"",this.year=B.year||0,this.os=B.os||"",this.osVersion=B.osVersion||"",this.chipset=B.chipset||"",this.clientName=B.clientName?B.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=B.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
iw.prototype.copy=function(){var B={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&&(B.brand=this.brand);
this.model&&(B.model=this.model);this.year&&(B.year=this.year);this.os&&(B.os=this.os);this.osVersion&&(B.osVersion=this.osVersion);this.chipset&&(B.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(B.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(B.mdxDialServerType=this.mdxDialServerType);B=new iw(B);B.connected=this.connected;B.remoteControllerUrl=this.remoteControllerUrl;B.localChannelEncryptionKey=this.localChannelEncryptionKey;B.deviceContext=
this.deviceContext;B.castUserId=this.castUserId;return B};
iw.prototype.equals=function(B){return B?this.id==B.id:!1};
var p7z=function(B,c){B.capabilities.clear();_.kV(c.split(","),_.q9(_.wW.contains,Paz)).forEach(function(x){B.capabilities.add(x)})},k3l=function(B,c){B.compatibleSenderThemes.clear();
_.kV(c.split(","),_.q9(_.wW.contains,YPS)).forEach(function(x){B.compatibleSenderThemes.add(x)})},X7o=function(B,c){B.experiments.clear();
c.split(",").forEach(function(x){B.experiments.add(x)})};var $VS=function(B,c){this.action=B;this.params=c||{}};_.sZ(upz,_.tG);_.a=upz.prototype;_.a.JSC$17561_onTick_=function(){this.JSC$17559_interval_=Math.min(3E5,this.JSC$17559_interval_*2);this.JSC$17561_listener_();this.nextTickTime_&&this.start()};
_.a.start=function(){var B=this.JSC$17559_interval_+15E3*Math.random(),c=this.delay_;c.isActive()||c.start(B);this.nextTickTime_=Date.now()+B};
_.a.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.a.isActive=function(){return this.delay_.isActive()};
_.a.reset=function(){this.delay_.stop();this.JSC$17559_interval_=5E3};_.sZ(JH,S5z);_.a=JH.prototype;_.a.subscribe=function(B,c,x){return this.pubsub_.subscribe(B,c,x)};
_.a.unsubscribe=function(B,c,x){return this.pubsub_.unsubscribe(B,c,x)};
_.a.unsubscribeByKey=function(B){return this.pubsub_.unsubscribeByKey(B)};
_.a.publish=function(B,c){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.a.dispose=function(){this.JSC$17562_disposed_||(this.JSC$17562_disposed_=!0,_.R3(this.pubsub_),this.disconnect(),_.R3(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17562_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.$C({})})};
_.a.isDisposed=function(){return this.JSC$17562_disposed_};
_.a.connect=function(B,c,x){var P=this,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return _.$M(b,2),P.useAsyncBrowserChannelHandler_?_.K(b,P.connectPromise_,2):b.jumpTo(2);_.Xt(b);if(P.JSC$17562_disposed_||P.JSC$17562_channel_&&P.JSC$17562_channel_.getState()==2)return b.return();P.sCookie_="";P.reconnectTimer_.stop();P.connectionParams_=B||null;P.connectUi_=c||0;Y=P.JSC$17562_pathPrefix_+"/test";g=P.JSC$17562_pathPrefix_+"/bind";k=new Mt(x?x.firstTestResults:null,x?x.secondTestResults:null,
P.enableAsyncTest_);if(n=P.JSC$17562_channel_)n.handler_=null;k.handler_=P;P.JSC$17562_channel_=k;if(P.useAsyncBrowserChannelHandler_)return P.connectPromise_=n5r(P).then(function(){return bVN(P,Y,g,n,x)}),b.return(P.connectPromise_.then(function(){P.connectPromise_=_.$C()}));
bVN(P,Y,g,n,x);return _.nq(b,0)})};
var bVN=function(B,c,x,P,Y){KQz(B);if(B.JSC$17562_channel_){var g=_.v5("ID_TOKEN"),k=B.JSC$17562_channel_.JSC$17514_extraHeaders_||{};g?k["x-youtube-identity-token"]=g:delete k["x-youtube-identity-token"];B.JSC$17562_channel_.JSC$17514_extraHeaders_=k}jAo(B);P?(P.getState(),B.JSC$17562_channel_.connect(c,x,B.defaultQueryParams_,P.sid_,P.JSC$17514_lastArrayId_)):Y?B.JSC$17562_channel_.connect(c,x,B.defaultQueryParams_,Y.sessionId,Y.arrayId):B.JSC$17562_channel_.connect(c,x,B.defaultQueryParams_)};
JH.prototype.disconnect=function(B){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.$C())}finally{this.disconnectUi_=B||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),KQz(this),this.JSC$17562_channel_&&(this.JSC$17562_channel_.getState()==3&&Ogz(this.JSC$17562_channel_),this.JSC$17562_channel_.disconnect()),this.disconnectUi_=0}};
JH.prototype.sendMessage=function(B,c){var x=this,P;return _.X(function(Y){switch(Y.nextAddress){case 1:_.$M(Y,2);if(!x.useAsyncBrowserChannelHandler_){Y.jumpTo(2);break}return _.K(Y,x.connectPromise_,2);case 2:_.Xt(Y);if(x.JSC$17562_disposed_)return Y.return();P={_sc:B};c&&_.wW.extend(P,c);if(x.reconnectTimer_.isActive()||(x.JSC$17562_channel_?x.JSC$17562_channel_.getState():0)==2){x.JSC$17562_pendingMessages_.push(P);Y.jumpTo(6);break}if(!x.isChannelOpened()){Y.jumpTo(6);break}_.$M(Y,8);if(!x.useAsyncBrowserChannelHandler_||
UVy(x,B)){Y.jumpTo(8);break}return _.K(Y,n5r(x),8);case 8:_.Xt(Y,0,0,1);x.isChannelOpened()&&(UVy(x,B)||jAo(x),KQz(x),Evy(x.JSC$17562_channel_,P));_.nq(Y,6,1);break;case 6:_.nq(Y,0)}})};
var UVy=function(B,c){return B.enableMdxAuthForConnectionOnly_?!0:B.disableMdxAuthForAdMessages_?Object.values(aYz).includes(c):B.disableMdxAuthForNonPlaybackMessages_?!Object.values(g56).includes(c):B.disableMdxAuthForShortsMessages_?Object.values(sA8).includes(c):!1};
JH.prototype.JSC$17521_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17562_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)dVo(this);else{var B=this.JSC$17562_pendingMessages_;this.JSC$17562_pendingMessages_=[];var c=B.length;jAo(this);qPN(this,B,c);Cai(this)}else Cai(this)};
var dVo=function(B){var c,x;_.X(function(P){if(P.nextAddress==1)return _.$M(P,2),_.K(P,n5r(B),2);_.Xt(P);c=B.JSC$17562_pendingMessages_;B.JSC$17562_pendingMessages_=[];x=c.length;qPN(B,c,x);Cai(B);return _.nq(P,0)})},qPN=function(B,c,x){for(var P=0;P<x;++P)Evy(B.JSC$17562_channel_,c[P]);
Cai(B)},Cai=function(B){B.publish("handlerOpened");
B.JSC$17562_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.a=JH.prototype;_.a.JSC$17521_channelError=function(B){var c=B==2&&this.JSC$17562_channel_.JSC$17514_lastStatusCode_==401;B==4||c||this.reconnectTimer_.start();this.publish("handlerError",B,c);c=Object.keys(VEz).find(function(x){return VEz[x]===B});
this.JSC$17562_channelErrorCounter.increment("BROWSER_CHANNEL",c!=null?c:"UNKNOWN")};
_.a.JSC$17521_channelClosed=function(B,c){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(c)for(var x=c.length,P=0;P<x;++P){var Y=c[P].map;Y&&this.JSC$17562_pendingMessages_.push(Y)}this.JSC$17562_channelClosedCounter.increment("BROWSER_CHANNEL");B&&this.pendingMapsOnClosedCounter.JSC$7978_streamzService.JSC$7833_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",B.length);c&&this.undeliveredMapsOnClosedCounter.JSC$7981_streamzService.JSC$7833_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
c.length)};
_.a.JSC$17521_channelSuccess=function(B,c){c!=null&&B!=null&&this.channelMessageSentCounter.increment()};
_.a.JSC$17521_getAdditionalParams=function(){var B={v:2};this.sCookie_&&(B.gsessionid=this.sCookie_);this.connectUi_!=0&&(B.ui=""+this.connectUi_);this.disconnectUi_!=0&&(B.ui=""+this.disconnectUi_);this.connectionParams_&&_.wW.extend(B,this.connectionParams_);return B};
_.a.JSC$17521_channelHandleArray=function(B){B[0]=="S"?this.sCookie_=B[1]:B[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17562_channel_.disconnect()):this.publish("handlerMessage",new $VS(B[0],B[1]));this.JSC$17562_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.a.isChannelOpened=function(){return!!this.JSC$17562_channel_&&this.JSC$17562_channel_.getState()==3};
var KQz=function(B){if(B.JSC$17562_channel_){var c=B.JSC$17562_getXsrfToken_(),x=B.JSC$17562_channel_.JSC$17514_extraHeaders_||{};c?x["x-youtube-lounge-xsrf-token"]=c:delete x["x-youtube-lounge-xsrf-token"];B.JSC$17562_channel_.JSC$17514_extraHeaders_=x}},n5r=function(B){if(B.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.$C();
if(!B.enableCachedUpdateAuthorizationHeader_)return hey(B);B.updateAuthorizationHeaderPromise_===null&&(B.updateAuthorizationHeaderPromise_=hey(B));return B.updateAuthorizationHeaderPromise_},hey=function(B){return _.IZ(B.getAuthorizationHeader_().then(function(c){mVo(B,c)}).thenCatch(function(){}),function(){B.updateAuthorizationHeaderPromise_=null})},mVo=function(B,c){if(B.JSC$17562_channel_){var x=B.JSC$17562_channel_.JSC$17514_extraHeaders_||{};
c&&Object.keys(c).length>0?x=Object.assign({},x,c):delete x.Authorization;B.JSC$17562_channel_.JSC$17514_extraHeaders_=x}},jAo=function(B){B.getAuthorizationHeaderSync_&&!B.useAsyncBrowserChannelHandler_&&mVo(B,B.getAuthorizationHeaderSync_())};
_.a=JH.prototype;_.a.setLoungeToken=function(B){(this.defaultQueryParams_.loungeIdToken=B)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17562_channel_){var c=this.JSC$17562_channel_.JSC$17514_extraHeaders_||{};B?c["X-YouTube-LoungeId-Token"]=B:delete c["X-YouTube-LoungeId-Token"];this.JSC$17562_channel_.JSC$17514_extraHeaders_=c}};
_.a.getDeviceId=function(){return this.defaultQueryParams_.id};
_.a.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.a.reconnect=function(){var B=this.reconnectTimer_;B.delay_.fire();B.start()};
_.a.safeReconnect_=function(){var B=this.JSC$17562_channel_,c=0;B.JSC$17514_backChannelRequest_&&c++;B.forwardChannelRequest_&&c++;c==0&&this.connect(this.connectionParams_,this.connectUi_)};var FZ=function(B,c){var x=B.basePath;B.supportCors&&(x=B.scheme+"://"+B.domain+B.port+B.basePath);return _.AR(x+c,{})};
We.prototype.sendRequest=function(B,c,x,P,Y,g,k){B={format:g?"RAW":"JSON",method:B,context:this,timeout:5E3,withCredentials:!!k,onSuccess:_.q9(this.JSC$17567_onSuccess_,P,!g),onError:_.q9(this.onError_,Y),onTimeout:_.q9(this.JSC$17567_onTimeout_,Y)};x&&(B.postParams=x,B.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.nU(c,B)};
We.prototype.JSC$17567_onSuccess_=function(B,c,x,P){c?B(P):B({text:x.responseText})};
We.prototype.onError_=function(B,c){B(Error("Ck`"+c.status))};
We.prototype.JSC$17567_onTimeout_=function(B){B(Error("Dk"))};var Ee=function(B,c){return!!c&&(B.id==c||B.uuid==c)},TJB=function(B){return{name:B.name,
screenId:B.id,loungeToken:B.token,dialId:B.uuid,screenIdType:B.idType}},VPi=function(B){return new l$(B)},tPi=function(B){return Array.isArray(B)?_.I3(B,VPi):[]},YpF=function(B){if(!B)return"null";
var c=B.token?".."+B.token.slice(-6):"-",x=B.uuid?".."+B.uuid.slice(-6):"-";return'{name:"'+B.name+'",id:'+B.id.substr(0,6)+"..,token:"+(c+",uuid:"+x+",idType:"+B.idType+"}")},ONi=function(B){return Array.isArray(B)?"["+_.I3(B,YpF).join(",")+"]":"null"};var ndS="",QK=null;var mpr=function(B,c){_.V4.call(this);var x=this;this.handler=B();this.handler.subscribe("handlerOpened",this.JSC$17574_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(P,Y){x.onError(Y)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=c};
_.w(mpr,_.V4);_.a=mpr.prototype;_.a.connect=function(B,c,x){this.handler.connect(B,c,x)};
_.a.disconnect=function(B){this.handler.disconnect(B)};
_.a.reconnect=function(){this.handler.reconnect()};
_.a.getDeviceId=function(){return this.handler.getDeviceId()};
_.a.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.a.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.a.JSC$17574_onOpened=function(){this.dispatchEvent("channelOpened");var B=this.handler,c=this.currentScreenId;_.Xj("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!B.JSC$17562_channel_.useChunked_,sessionId:B.JSC$17562_channel_.sid_,arrayId:B.JSC$17562_channel_.JSC$17514_lastArrayId_});_.Xj("yt-remote-session-screen-id",c);B=gdA();c=ssy();_.Lx(B,c)||B.push(c);$pz(B);Xfo()};
_.a.onClosed=function(){this.dispatchEvent("channelClosed")};
_.a.onMessage=function(B){this.dispatchEvent(new c36(B))};
_.a.onError=function(B){this.dispatchEvent(new xVc(B?1:0))};
_.a.sendMessage=function(B,c){this.handler.sendMessage(B,c)};
_.a.setLoungeToken=function(B){this.handler.setLoungeToken(B)};
_.a.dispose=function(){this.handler.dispose()};var hkz=function(B,c,x){var P=this;x=x===void 0?function(){return""}:x;
var Y=Y===void 0?new Dc8:Y;var g=g===void 0?new _.KU:g;this.pathPrefix=B;this.defaultQueryParams=c;this.getXsrfToken=x;this.JSC$17577_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new upz(function(){var k;((k=P.channel)==null?void 0:NR8((new e5y(k,k.JSC$17485_channel_)).JSC$17495_channel_.forwardChannelRequestPool_))===0&&P.connect(P.connectionParams,P.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17577_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17577_channelOpenedCounter=new DMl;this.JSC$17577_channelClosedCounter=new rJB;this.JSC$17577_channelMessageReceivedCounter=new ehN;this.JSC$17577_channelErrorCounter=new Bxi};
hkz.prototype.connect=function(B,c){B=B===void 0?{}:B;c=c===void 0?0:c;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=B,this.connectUi=c,w7l(this),(B=_.v5("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=B: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 Qk(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,NJc(this))};
var NJc=function(B){_.wX(B.channel,"w",function(){B.channelState=3;B.reconnectTimer.reset();B.connectionParams=null;B.connectUi=0;for(var c=_.p(B.nonAckedMessagesOnChannelClosed),x=c.next();!x.done;x=c.next())x=x.value,B.channel&&B.channel.send(x);B.nonAckedMessagesOnChannelClosed=[];B.publish("webChannelOpened");B.JSC$17577_channelOpenedCounter.increment("WEB_CHANNEL")});
_.wX(B.channel,"x",function(){B.channelState=0;B.reconnectTimer.isActive()||B.publish("webChannelClosed");var c,x=(c=B.channel)==null?void 0:B7B(new e5y(c,c.JSC$17485_channel_));x&&(B.nonAckedMessagesOnChannelClosed=[].concat(_.wq(x)));B.JSC$17577_channelClosedCounter.increment("WEB_CHANNEL")});
_.wX(B.channel,"z",function(c){var x=c.data;x[0]==="gracefulReconnect"?(B.reconnectTimer.start(),B.channel&&B.channel.close()):B.publish("webChannelMessage",new $VS(x[0],x[1]));B.lastStatusCode=c.statusCode;B.JSC$17577_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.wX(B.channel,"y",function(){B.lastStatusCode===401||B.reconnectTimer.start();B.publish("webChannelError");B.JSC$17577_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.a=hkz.prototype;_.a.disconnect=function(B){this.disconnectUi=B===void 0?0:B;this.reconnectTimer.stop();w7l(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.a.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.a.reconnect=function(){var B=this.reconnectTimer;B.delay_.fire();B.start()};
_.a.sendMessage=function(B,c){this.channel&&(w7l(this),B=Object.assign({},{_sc:B},c),this.channel.send(B))};
_.a.setLoungeToken=function(B){B||this.reconnectTimer.stop();B?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=B:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var w7l=function(B){var c=B.getXsrfToken();c?B.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=c:delete B.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.a=hkz.prototype;_.a.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.a.publish=function(B){return this.JSC$17577_pubsub.publish.apply(this.JSC$17577_pubsub,[B].concat(_.wq(_.ts.apply(1,arguments))))};
_.a.subscribe=function(B,c,x){return this.JSC$17577_pubsub.subscribe(B,c,x)};
_.a.unsubscribe=function(B,c,x){return this.JSC$17577_pubsub.unsubscribe(B,c,x)};
_.a.unsubscribeByKey=function(B){return this.JSC$17577_pubsub.unsubscribeByKey(B)};
_.a.dispose=function(){this.JSC$17577_disposed||(this.JSC$17577_disposed=!0,_.R3(this.JSC$17577_pubsub),this.disconnect(),_.R3(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.a.isDisposed=function(){return this.JSC$17577_disposed};var Ch8=function(B){_.V4.call(this);this.webChannelService=B();this.webChannelService.subscribe("webChannelOpened",this.JSC$17585_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.w(Ch8,_.V4);_.a=Ch8.prototype;_.a.connect=function(B,c){this.webChannelService.connect(B,c)};
_.a.disconnect=function(B){this.webChannelService.disconnect(B)};
_.a.reconnect=function(){this.webChannelService.reconnect()};
_.a.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.a.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.a.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.a.JSC$17585_onOpened=function(){this.dispatchEvent("channelOpened")};
_.a.onClosed=function(){this.dispatchEvent("channelClosed")};
_.a.onMessage=function(B){this.dispatchEvent(new c36(B))};
_.a.onError=function(){this.dispatchEvent(new xVc(this.webChannelService.lastStatusCode===401?1:0))};
_.a.sendMessage=function(B,c){this.webChannelService.sendMessage(B,c)};
_.a.setLoungeToken=function(B){this.webChannelService.setLoungeToken(B)};
_.a.dispose=function(){this.webChannelService.dispose()};var Edc=Date.now(),ve=null,W4i=Array(50),yK=-1,lao=!1;_.sZ(Gh,_.rs);Gh.prototype.getScreens=function(){return this.screens};
Gh.prototype.contains=function(B){return!!aaz(this.screens,B)};
Gh.prototype.get=function(B){return B?Oe(this.screens,B):null};
var IYc=function(B,c){var x=B.get(c.uuid)||B.get(c.id);if(x)return B=x.name,x.id=c.id||x.id,x.name=c.name,x.token=c.token,x.uuid=c.uuid||x.uuid,x.name!=B;B.screens.push(c);return!0},J3c=function(B,c){var x=B.screens.length!=c.length;
B.screens=_.kV(B.screens,function(g){return!!aaz(c,g)});
for(var P=c.length,Y=0;Y<P;Y++)x=IYc(B,c[Y])||x;return x},WQ8=function(B,c){var x=B.screens.length;
B.screens=_.kV(B.screens,function(P){return!(P||c?!P!=!c?0:P.id==c.id:1)});
return B.screens.length<x};
Gh.prototype.info=function(B){zh(this.JSC$17586_logName_,B)};var lY6=function(B,c,x,P,Y){_.rs.call(this);this.JSC$17589_http_=B;this.pairingCode_=c;this.deviceId_=x;this.friendlyName_=P;this.enableShortLivedLoungeToken_=Y;this.pollIndex_=0;this.JSC$17589_xhr_=null;this.JSC$17589_timer_=NaN};
_.w(lY6,_.rs);_.a=lY6.prototype;_.a.start=function(){!this.JSC$17589_xhr_&&isNaN(this.JSC$17589_timer_)&&this.poll_()};
_.a.stop=function(){this.JSC$17589_xhr_&&(this.JSC$17589_xhr_.abort(),this.JSC$17589_xhr_=null);isNaN(this.JSC$17589_timer_)||(_.X4(this.JSC$17589_timer_),this.JSC$17589_timer_=NaN)};
_.a.disposeInternal=function(){this.stop();_.rs.prototype.disposeInternal.call(this)};
_.a.poll_=function(){this.JSC$17589_timer_=NaN;this.JSC$17589_xhr_=_.nU(FZ(this.JSC$17589_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.wf)(this.JSC$17591_onSuccess_,this),onError:(0,_.wf)(this.onError_,this),onTimeout:(0,_.wf)(this.JSC$17591_onTimeout_,this)})};
_.a.JSC$17591_onSuccess_=function(B,c){this.JSC$17589_xhr_=null;B=c.screen||{};B.dialId=this.deviceId_;B.name=this.friendlyName_;c=-1;this.enableShortLivedLoungeToken_&&B.shortLivedLoungeToken&&B.shortLivedLoungeToken.value&&B.shortLivedLoungeToken.refreshIntervalMs&&(B.screenIdType="shortLived",B.loungeToken=B.shortLivedLoungeToken.value,c=B.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new l$(B),c)};
_.a.onError_=function(B){this.JSC$17589_xhr_=null;B.status&&B.status==404?this.pollIndex_>=E5i.length?this.publish("pairingFailed",Error("Ek")):(B=E5i[this.pollIndex_],this.JSC$17589_timer_=_.pU((0,_.wf)(this.poll_,this),B),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+B.status))};
_.a.JSC$17591_onTimeout_=function(){this.JSC$17589_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var E5i=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.sZ(LZ,Gh);_.a=LZ.prototype;_.a.start=function(){ML(this)&&this.publish("screenChange");!_.$g("yt-remote-lounge-token-expiration")&&OVz(this);_.X4(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.pU((0,_.wf)(this.start,this),1E4)};
_.a.add=function(B,c){ML(this);IYc(this,B);o5F(this,!1);this.publish("screenChange");c(B);B.token||OVz(this)};
_.a.remove=function(B,c){var x=ML(this);WQ8(this,B)&&(o5F(this,!1),x=!0);c(B);x&&this.publish("screenChange")};
_.a.updateName=function(B,c,x,P){var Y=ML(this),g=this.get(B.id);g?(g.name!=c&&(g.name=c,o5F(this,!1),Y=!0),x(B)):P(Error("Hk"));Y&&this.publish("screenChange")};
_.a.disposeInternal=function(){_.X4(this.loungeTokenRefreshTimer_);LZ.superClass_.disposeInternal.call(this)};
var OVz=function(B){if(B.screens.length){var c=_.I3(B.screens,function(P){return P.id}),x=FZ(B.JSC$17593_http_,"/pairing/get_lounge_token_batch");
B.JSC$17593_http_.sendRequest("POST",x,{screen_ids:c.join(",")},(0,_.wf)(B.handleLoungeTokens_,B),(0,_.wf)(B.handleLoungeTokenError_,B))}};
LZ.prototype.handleLoungeTokens_=function(B){ML(this);var c=this.screens.length;B=B&&B.screens||[];for(var x=B.length,P=0;P<x;++P){var Y=B[P],g=this.get(Y.screenId);g&&(g.token=Y.loungeToken,--c)}o5F(this,!c);c&&zh(this.JSC$17586_logName_,"Missed "+c+" lounge tokens.")};
LZ.prototype.handleLoungeTokenError_=function(B){zh(this.JSC$17586_logName_,"Requesting lounge tokens failed: "+B)};
var ML=function(B){if(_.T("deprecate_pair_servlet_enabled"))return J3c(B,[]);var c=tPi(K4c());c=_.kV(c,function(x){return!x.uuid});
return J3c(B,c)},o5F=function(B,c){Ups(_.I3(B.screens,TJB));
c&&jss()};var AQ=function(B,c){_.rs.call(this);this.getScreensToCheck_=c;c=(c=_.$g("yt-remote-online-screen-ids")||"")?c.split(","):[];for(var x={},P=this.getScreensToCheck_(),Y=P.length,g=0;g<Y;++g){var k=P[g].id;x[k]=_.Lx(c,k)}this.screenIdSet_=x;this.JSC$17596_http_=B;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;QAi("Initialized with "+(0,_.lK)(this.screenIdSet_))};
_.w(AQ,_.rs);AQ.prototype.isOnline=function(B){return!!this.screenIdSet_[B]};
AQ.prototype.start=function(){var B=parseInt(_.$g("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.gQ()-144E5<B?0:B)?FQB(this):(this.fastCheckEndTime_=_.gQ()+3E5,_.Xj("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
AQ.prototype.isEmpty=function(){return _.wW.isEmpty(this.screenIdSet_)};
AQ.prototype.update=function(){QAi("Updating availability on schedule.");var B=this.getScreensToCheck_(),c=_.wW.filter(this.screenIdSet_,function(x,P){return x&&!!Oe(B,P)},this);
v5N(this,c)};
var zez=function(B,c,x){var P=FZ(B.JSC$17596_http_,"/pairing/get_screen_availability");B.JSC$17596_http_.sendRequest("POST",P,{lounge_token:c.token},(0,_.wf)(function(Y){Y=Y.screens||[];for(var g=Y.length,k=0;k<g;++k)if(Y[k].loungeToken==c.token){x(Y[k].status=="online");return}x(!1)},B),(0,_.wf)(function(){x(!1)},B))};
AQ.prototype.disposeInternal=function(){_.X4(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.rs.prototype.disposeInternal.call(this)};
var v5N=function(B,c){a:if(_.wW.getCount(c)!=_.wW.getCount(B.screenIdSet_))var x=!1;else{x=_.wW.getKeys(c);for(var P=x.length,Y=0;Y<P;++Y)if(!B.screenIdSet_[x[Y]]){x=!1;break a}x=!0}x||(QAi("Updated online screens: "+(0,_.lK)(B.screenIdSet_)),B.screenIdSet_=c,B.publish("screenChange"));SPS(B)},FQB=function(B){isNaN(B.refreshTimer_)||_.X4(B.refreshTimer_);
B.refreshTimer_=_.pU((0,_.wf)(B.requestScreenAvailability_,B),B.fastCheckEndTime_>0&&B.fastCheckEndTime_<_.gQ()?2E4:1E4)};
AQ.prototype.requestScreenAvailability_=function(){_.X4(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var B=y3l(this);if(_.wW.getCount(B)){var c=FZ(this.JSC$17596_http_,"/pairing/get_screen_availability"),x={lounge_token:_.wW.getKeys(B).join(",")};this.currentRequest_=this.JSC$17596_http_.sendRequest("POST",c,x,(0,_.wf)(this.onScreenAvailability_,this,B),(0,_.wf)(this.onScreenAvailabilityError_,this))}else v5N(this,{}),FQB(this)};
AQ.prototype.onScreenAvailability_=function(B,c){this.currentRequest_=null;var x=_.wW.getKeys(y3l(this));if(_.p4(x,_.wW.getKeys(B))){c=c.screens||[];x={};for(var P=c.length,Y=0;Y<P;++Y)x[B[c[Y].loungeToken]]=c[Y].status=="online";v5N(this,x);FQB(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
AQ.prototype.onScreenAvailabilityError_=function(B){this.warn_("Screen availability failed: "+B);this.currentRequest_=null;FQB(this)};
var QAi=function(B){zh("OnlineScreenService",B)};
AQ.prototype.warn_=function(B){zh("OnlineScreenService",B)};
var y3l=function(B){var c={};_.Zg(B.getScreensToCheck_(),function(x){x.token?c[x.token]=x.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return c},SPS=function(B){B=_.wW.getKeys(_.wW.filter(B.screenIdSet_,function(c){return c}));
B.sort(_.a0);B.length?_.Xj("yt-remote-online-screen-ids",B.join(","),60):_.ny("yt-remote-online-screen-ids")};_.sZ(ZX,Gh);_.a=ZX.prototype;_.a.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.a.add=function(B,c,x){this.localScreenService_.add(B,c,x)};
_.a.remove=function(B,c,x){this.localScreenService_.remove(B,c,x);this.onlineScreenService_.update()};
_.a.updateName=function(B,c,x,P){this.localScreenService_.contains(B)?this.localScreenService_.updateName(B,c,x,P):(B="Updating name of unknown screen: "+B.name,zh(this.JSC$17586_logName_,B),P(Error(B)))};
_.a.getScreens=function(B){return B?this.screens:JKr(this.screens,_.kV(this.automaticScreens_,function(c){return!this.contains(c)},this))};
_.a.JSC$17601_getOnlineScreens=function(){return _.kV(this.getScreens(!0),function(B){return this.onlineScreenService_.isOnline(B.id)},this)};
var MPF=function(B,c,x,P,Y,g){B.info("getAutomaticScreenByIds "+x+" / "+c);x||(x=B.deviceToScreenId_[c]);var k=B.getScreens(),n=x?Oe(k,x):null;x&&(B.disableAutomaticScreenCache_||n)||(n=Oe(k,c));if(n){n.uuid=c;var b=uw(B,n);zez(B.onlineScreenService_,b,function(d){Y(d?b:null)})}else x?G3y(B,x,(0,_.wf)(function(d){var q=uw(this,new l$({name:P,
screenId:x,loungeToken:d,dialId:c||""}));zez(this.onlineScreenService_,q,function(C){Y(C?q:null)})},B),g):Y(null)};
ZX.prototype.JSC$17601_getScreenByPollingPairingCode=function(B,c,x,P,Y,g){var k=this;this.info("getDialScreenByPairingCode "+B+" / "+c);var n=new lY6(this.JSC$17599_http_,B,c,x,P);n.subscribe("pairingComplete",function(b,d){_.R3(n);Y(uw(k,b),d)});
n.subscribe("pairingFailed",function(b){_.R3(n);g(b)});
n.start();return(0,_.wf)(n.stop,n)};
var LQz=function(B,c){for(var x=B.screens.length,P=0;P<x;++P)if(B.screens[P].name==c)return B.screens[P];return null};
ZX.prototype.JSC$17601_getScreenByPairingCode=function(B,c,x,P){_.nU(FZ(this.JSC$17599_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:B},timeout:5E3,onSuccess:(0,_.wf)(function(Y,g){Y=new l$(g.screen||{});if(!Y.name||LQz(this,Y.name)){a:{g=Y.name;for(var k=2,n=c(g,k);LQz(this,n);){k++;if(k>20)break a;n=c(g,k)}g=n}Y.name=g}x(uw(this,Y))},this),
onError:(0,_.wf)(function(Y){P(Error("Ik`"+Y.status))},this),
onTimeout:(0,_.wf)(function(){P(Error("Jk"))},this)})};
var ZVc=function(B,c,x){zez(B.onlineScreenService_,c,x)};
ZX.prototype.disposeInternal=function(){_.R3(this.localScreenService_);_.R3(this.onlineScreenService_);ZX.superClass_.disposeInternal.call(this)};
var G3y=function(B,c,x,P){B.info("requestLoungeToken_ for "+c);var Y={postParams:{screen_ids:c},method:"POST",context:B,onSuccess:function(g,k){g=k&&k.screens||[];g[0]&&g[0].screenId==c?x(g[0].loungeToken):P(Error("Kk"))},
onError:function(){P(Error("Lk"))}};
_.nU(FZ(B.JSC$17599_http_,"/pairing/get_lounge_token_batch"),Y)},HVz=function(B){B.screens=B.localScreenService_.getScreens();
for(var c=_.wW.transpose(B.deviceToScreenId_),x=B.screens.length,P=0;P<x;++P){var Y=B.screens[P];Y.uuid=c[Y.id]||""}B.info("Updated manual screens: "+ONi(B.screens))};
ZX.prototype.handleScreenChange_=function(){HVz(this);this.publish("screenChange");this.onlineScreenService_.update()};
var ods=function(B){fY6(B);B.localScreenService_=new LZ(B.JSC$17599_http_);B.localScreenService_.subscribe("screenChange",(0,_.wf)(B.handleScreenChange_,B));HVz(B);B.disableAutomaticScreenCache_||(B.automaticScreens_=tPi(_.$g("yt-remote-automatic-screen-cache")||[]));fY6(B);B.info("Initializing automatic screens: "+ONi(B.automaticScreens_));B.onlineScreenService_=new AQ(B.JSC$17599_http_,(0,_.wf)(B.getScreens,B,!0));B.onlineScreenService_.subscribe("screenChange",(0,_.wf)(function(){this.publish("onlineScreenChange")},
B))},uw=function(B,c){var x=B.get(c.id);
x?(x.uuid=c.uuid,c=x):((x=Oe(B.automaticScreens_,c.uuid))?(x.id=c.id,x.token=c.token,c=x):B.automaticScreens_.push(c),B.disableAutomaticScreenCache_||iVz(B));fY6(B);B.deviceToScreenId_[c.uuid]=c.id;_.Xj("yt-remote-device-id-map",B.deviceToScreenId_,31536E3);return c},iVz=function(B){B=_.kV(B.automaticScreens_,function(c){return c.idType!="shortLived"});
_.Xj("yt-remote-automatic-screen-cache",_.I3(B,TJB))},fY6=function(B){B.deviceToScreenId_=_.$g("yt-remote-device-id-map")||{}};
ZX.prototype.dispose=ZX.prototype.dispose;_.sZ(He,_.rs);var Do=function(B,c){B.screen_=c;B.publish("sessionScreen",B.screen_)},A3r=function(B,c){B.screen_&&(B.screen_.token=c,uw(B.JSC$17603_screenService_,B.screen_));
B.publish("sessionScreen",B.screen_)};
He.prototype.onSessionStopped=function(B){this.isDisposed()||(B&&(rI(this,""+B),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
He.prototype.info=function(B){zh(this.JSC$17603_logName_,B)};
var rI=function(B,c){zh(B.JSC$17603_logName_,c)};
He.prototype.JSC$17605_getCastSession=function(){return null};
He.prototype.setDisplayStatus=function(B){var c=this.receiver_;B?(c.displayStatus=new chrome.cast.ReceiverDisplayStatus(B,[]),c.displayStatus.showStop=!0):c.displayStatus=null;chrome.cast.setReceiverDisplayStatus(c,(0,_.wf)(function(){this.info("Updated receiver status for "+c.friendlyName+": "+B)},this),(0,_.wf)(function(){rI(this,"Failed to update receiver status for: "+c.friendlyName)},this))};
He.prototype.disposeInternal=function(){this.setDisplayStatus("");He.superClass_.disposeInternal.call(this)};var Ra=function(B,c,x){He.call(this,B,c,"CastSession");var P=this;this.config_=x;this.JSC$17608_session_=null;this.JSC$17608_boundSessionUpdate_=(0,_.wf)(this.JSC$17610_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.wf)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.pU(function(){umA(P,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17608_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17608_isInitLoungeToken_=!1;this.JSC$17608_lastLoungeTokenRefreshError_="unknown"};
_.w(Ra,He);_.a=Ra.prototype;
_.a.setCastSession=function(B){if(this.JSC$17608_session_){if(this.JSC$17608_session_==B)return;rI(this,"Overriding cast session with new session object");DVN(this);this.JSC$17608_isInitLoungeToken_=!1;this.JSC$17608_lastLoungeTokenRefreshError_="unknown";this.JSC$17608_session_.removeUpdateListener(this.JSC$17608_boundSessionUpdate_);this.JSC$17608_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17608_session_=B;this.JSC$17608_session_.addUpdateListener(this.JSC$17608_boundSessionUpdate_);this.JSC$17608_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);r3s(this,"getMdxSessionStatus")};
_.a.launchWithParams=function(B){this.info("launchWithParams no-op for Cast: "+(0,_.lK)(B))};
_.a.stop=function(){if(this.JSC$17608_session_)this.JSC$17608_session_.stop((0,_.wf)(function(){this.onSessionStopped()},this),(0,_.wf)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.a.setDisplayStatus=function(){};
_.a.disposeInternal=function(){this.info("disposeInternal");DVN(this);this.JSC$17608_session_&&(this.JSC$17608_session_.removeUpdateListener(this.JSC$17608_boundSessionUpdate_),this.JSC$17608_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17608_session_=null;He.prototype.disposeInternal.call(this)};
var eey=function(B,c){_.X4(B.getLoungeTokenTimeoutKey_);B.getLoungeTokenTimeoutKey_=0;c==0?Re6(B):B.getLoungeTokenTimeoutKey_=_.pU(function(){Re6(B)},c)},Re6=function(B){r3s(B,"getLoungeToken");
_.X4(B.onLoungeTokenTimeoutKey_);B.onLoungeTokenTimeoutKey_=_.pU(function(){BdA(B,null)},3E4)},r3s=function(B,c){B.info("sendYoutubeMessage_: "+c+" "+(0,_.lK)(void 0));
var x={};x.type=c;B.JSC$17608_session_?B.JSC$17608_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",x,function(){},(0,_.wf)(function(){rI(this,"Failed to send message: "+c+".")},B)):rI(B,"Sending yt message without session: "+(0,_.lK)(x))};
Ra.prototype.onYoutubeMessage_=function(B,c){if(!this.isDisposed())if(c)if(c=(0,_.tg)(c),_.xF(c))switch(B=""+c.type,c=c.data||{},this.info("onYoutubeMessage_: "+B+" "+(0,_.lK)(c)),B){case "mdxSessionStatus":umA(this,c);break;case "loungeToken":BdA(this,c);break;default:rI(this,"Unknown youtube message: "+B)}else rI(this,"Unable to parse message.");else rI(this,"No data in message.")};
var cv6=function(B,c){if(c)B.info("onConnectedScreenId_: Received screenId: "+c),B.screen_&&B.screen_.id==c||B.getScreen_(c,function(x){Do(B,x)},function(){return B.onSessionStopped()},5);
else B.onSessionStopped(Error("Ok"))},Pds=function(B,c,x){B.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(c));
var P=new l$(c);xmz(B,P,function(Y){Y?(B.JSC$17608_isInitLoungeToken_=!0,uw(B.JSC$17603_screenService_,P),Do(B,P),B.JSC$17608_lastLoungeTokenRefreshError_="unknown",eey(B,x)):(_.SI(Error("Pk`"+JSON.stringify(c))),B.onSessionStopped())},5)},umA=function(B,c){_.X4(B.sessionStatusTimeoutKey_);
B.sessionStatusTimeoutKey_=0;if(c)B.config_.enableCastLoungeToken&&c.loungeToken?c.deviceId?B.screen_&&B.screen_.uuid==c.deviceId||(c.loungeTokenRefreshIntervalMs?Pds(B,{name:B.receiver_.friendlyName,screenId:c.screenId,loungeToken:c.loungeToken,dialId:c.deviceId,screenIdType:"shortLived"},c.loungeTokenRefreshIntervalMs):(_.SI(Error("Rk`"+JSON.stringify(c))),cv6(B,c.screenId))):(_.SI(Error("Qk`"+JSON.stringify(c))),cv6(B,c.screenId)):cv6(B,c.screenId);else B.onSessionStopped(Error("Ok"))},BdA=function(B,
c){_.X4(B.onLoungeTokenTimeoutKey_);
B.onLoungeTokenTimeoutKey_=0;var x=null;if(c)if(c.loungeToken){var P;((P=B.screen_)==null?void 0:P.token)==c.loungeToken&&(x="staleLoungeToken")}else x="missingLoungeToken";else x="noLoungeTokenResponse";x?(B.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(c)+", error: "+x)),B.JSC$17608_lastLoungeTokenRefreshError_=x,eey(B,3E4)):(A3r(B,c.loungeToken),B.JSC$17608_isInitLoungeToken_=!1,B.JSC$17608_lastLoungeTokenRefreshError_="unknown",eey(B,c.loungeTokenRefreshIntervalMs))};
Ra.prototype.getScreen_=function(B,c,x,P){_.X4(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;MPF(this.JSC$17603_screenService_,this.receiver_.label,B,this.receiver_.friendlyName,(0,_.wf)(function(Y){Y?c(Y):P>=0?(rI(this,"Screen "+B+" appears to be offline. "+P+" retries left."),this.getScreenTimeoutKey_=_.pU((0,_.wf)(this.getScreen_,this,B,c,x,P-1),300)):x(Error("Sk"))},this),x)};
var xmz=function(B,c,x,P){_.X4(B.JSC$17608_checkScreenAvailabilityTimeoutKey_);B.JSC$17608_checkScreenAvailabilityTimeoutKey_=0;ZVc(B.JSC$17603_screenService_,c,function(Y){Y||P<0?x(Y):B.JSC$17608_checkScreenAvailabilityTimeoutKey_=_.pU(function(){xmz(B,c,x,P-1)},300)})};
Ra.prototype.JSC$17605_getCastSession=function(){return this.JSC$17608_session_};
Ra.prototype.JSC$17610_onSessionUpdate_=function(B){this.isDisposed()||B||(rI(this,"Cast session died."),this.onSessionStopped())};
var DVN=function(B){_.X4(B.getScreenTimeoutKey_);B.getScreenTimeoutKey_=0;_.X4(B.JSC$17608_checkScreenAvailabilityTimeoutKey_);B.JSC$17608_checkScreenAvailabilityTimeoutKey_=0;_.X4(B.sessionStatusTimeoutKey_);B.sessionStatusTimeoutKey_=0;_.X4(B.onLoungeTokenTimeoutKey_);B.onLoungeTokenTimeoutKey_=0;_.X4(B.getLoungeTokenTimeoutKey_);B.getLoungeTokenTimeoutKey_=0};var ey=function(B,c,x,P){He.call(this,B,c,"DialSession");this.config_=P;this.JSC$17612_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17612_theme_=x;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17612_deferredLaunchDeadlineTimer_=NaN;this.JSC$17612_boundSessionUpdate_=(0,_.wf)(this.JSC$17614_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17612_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17612_isInitLoungeToken_=!1;this.JSC$17612_lastLoungeTokenRefreshError_="unknown"};
_.w(ey,He);ey.prototype.setCastSession=function(B){this.JSC$17612_session_=B;this.JSC$17612_session_.addUpdateListener(this.JSC$17612_boundSessionUpdate_)};
ey.prototype.launchWithParams=function(B){this.connectData_=B;this.deferredLaunch_()};
ey.prototype.stop=function(){YMz(this);if(this.JSC$17612_session_)this.JSC$17612_session_.stop((0,_.wf)(this.onSessionStopped,this,null),(0,_.wf)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
ey.prototype.disposeInternal=function(){YMz(this);this.JSC$17612_session_&&this.JSC$17612_session_.removeUpdateListener(this.JSC$17612_boundSessionUpdate_);this.JSC$17612_session_=null;He.prototype.disposeInternal.call(this)};
var apz=function(B){var c;return!!(B.config_.enableDialLoungeToken&&((c=B.JSC$17612_session_)==null?0:c.getDialAppInfo))},gkS=function(B){B.cancelPolling_=B.JSC$17603_screenService_.JSC$17601_getScreenByPollingPairingCode(B.reversePairingCode_,B.receiver_.label,B.receiver_.friendlyName,apz(B),function(c,x){B.cancelPolling_=function(){};
B.JSC$17612_isInitLoungeToken_=!0;Do(B,c);c.idType=="shortLived"&&x>0&&Bg(B,x)},function(c){B.cancelPolling_=function(){};
B.onSessionStopped(c)})};
ey.prototype.JSC$17614_onSessionUpdate_=function(B){this.isDisposed()||B||(rI(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var skF=function(B){var c={};c.pairingCode=B.reversePairingCode_;c.theme=B.JSC$17612_theme_;qnc()&&(c.env_useStageMdx=1);return _.bp(c)},pKl=function(B){return new Promise(function(c){B.reversePairingCode_=Phr();
if(B.connectData_){var x=new chrome.cast.DialLaunchResponse(!0,skF(B));c(x);gkS(B)}else B.deferredLaunch_=function(){_.X4(B.JSC$17612_deferredLaunchDeadlineTimer_);B.deferredLaunch_=function(){};
B.JSC$17612_deferredLaunchDeadlineTimer_=NaN;var P=new chrome.cast.DialLaunchResponse(!0,skF(B));c(P);gkS(B)},B.JSC$17612_deferredLaunchDeadlineTimer_=_.pU(function(){B.deferredLaunch_()},100)})},XKz=function(B,c,x){B.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(c));
var P=new l$(c);return(new Promise(function(Y){kQF(B,P,function(g){g?(B.JSC$17612_isInitLoungeToken_=!0,uw(B.JSC$17603_screenService_,P),Do(B,P),Bg(B,x)):_.SI(Error("Uk`"+JSON.stringify(c)));Y(g)},5)})).then(function(Y){return Y?new chrome.cast.DialLaunchResponse(!1):pKl(B)})},$m8=function(B,c){var x=B.launchData_.receiver.label,P=B.receiver_.friendlyName;
return(new Promise(function(Y){MPF(B.JSC$17603_screenService_,x,c,P,function(g){g&&g.token&&Do(B,g);Y(g)},function(g){rI(B,"Failed to get DIAL screen: "+g);
Y(null)})})).then(function(Y){return Y&&Y.token?new chrome.cast.DialLaunchResponse(!1):pKl(B)})},kQF=function(B,c,x,P){_.X4(B.JSC$17612_checkScreenAvailabilityTimeoutKey_);
B.JSC$17612_checkScreenAvailabilityTimeoutKey_=0;ZVc(B.JSC$17603_screenService_,c,function(Y){Y||P<0?x(Y):B.JSC$17612_checkScreenAvailabilityTimeoutKey_=_.pU(function(){kQF(B,c,x,P-1)},300)})},Bg=function(B,c){B.info("getDialAppInfoWithTimeout_ "+c);
apz(B)&&(_.X4(B.getDialAppInfoTimeoutKey_),B.getDialAppInfoTimeoutKey_=0,c==0?nkl(B):B.getDialAppInfoTimeoutKey_=_.pU(function(){nkl(B)},c))},nkl=function(B){apz(B)&&B.JSC$17612_session_.getDialAppInfo(function(c){B.info("getDialAppInfo dialLaunchData: "+JSON.stringify(c));
c=c.extraData||{};var x=null;if(c.loungeToken){var P;((P=B.screen_)==null?void 0:P.token)==c.loungeToken&&(x="staleLoungeToken")}else x="missingLoungeToken";x?(B.JSC$17612_lastLoungeTokenRefreshError_=x,Bg(B,3E4)):(B.JSC$17612_isInitLoungeToken_=!1,B.JSC$17612_lastLoungeTokenRefreshError_="unknown",A3r(B,c.loungeToken),Bg(B,c.loungeTokenRefreshIntervalMs))},function(c){B.info("getDialAppInfo error: "+c);
B.JSC$17612_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Bg(B,3E4)})},YMz=function(B){_.X4(B.JSC$17612_checkScreenAvailabilityTimeoutKey_);
B.JSC$17612_checkScreenAvailabilityTimeoutKey_=0;_.X4(B.getDialAppInfoTimeoutKey_);B.getDialAppInfoTimeoutKey_=0;B.cancelPolling_();B.cancelPolling_=function(){};
_.X4(B.JSC$17612_deferredLaunchDeadlineTimer_)};var cg=function(B,c){He.call(this,B,c,"ManualSession");this.JSC$17616_deferredLaunchDeadlineTimer_=_.pU((0,_.wf)(this.launchWithParams,this,null),150)};
_.w(cg,He);cg.prototype.stop=function(){this.onSessionStopped()};
cg.prototype.setCastSession=function(){};
cg.prototype.launchWithParams=function(){_.X4(this.JSC$17616_deferredLaunchDeadlineTimer_);this.JSC$17616_deferredLaunchDeadlineTimer_=NaN;var B=Oe(this.JSC$17603_screenService_.getScreens(),this.receiver_.label);if(B)Do(this,B);else this.onSessionStopped(Error("Vk"))};
cg.prototype.disposeInternal=function(){_.X4(this.JSC$17616_deferredLaunchDeadlineTimer_);this.JSC$17616_deferredLaunchDeadlineTimer_=NaN;He.prototype.disposeInternal.call(this)};var u$=function(B,c){_.rs.call(this);this.config_=c;this.JSC$17619_screenService_=B;this.JSC$17619_appId_=c.appId||"233637DE";this.JSC$17619_theme_=c.theme||"cl";this.disableDial_=c.disableCastApi||!1;this.forceMirroring_=c.forceMirroring||!1;this.JSC$17619_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.wf)(this.onReceiverAction_,this)};
_.w(u$,_.rs);
u$.prototype.init=function(B,c){chrome.cast.timeout.requestSession=3E4;var x=new chrome.cast.SessionRequest(this.JSC$17619_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.T("desktop_enable_cast_connect")&&(x.androidReceiverCompatible=!0);this.disableDial_||(x.dialRequest=new chrome.cast.DialRequest("YouTube"));var P=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;B=B||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Y=(0,_.wf)(this.onReceiverUpdated_,
this);x=new chrome.cast.ApiConfig(x,(0,_.wf)(this.onSessionEstablished_,this),Y,P,B);x.customDialLaunchCallback=(0,_.wf)(this.onDialLaunchRequested_,this);chrome.cast.initialize(x,(0,_.wf)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Nxz(),this.JSC$17619_screenService_.subscribe("onlineScreenChange",(0,_.wf)(this.JSC$17621_onScreenChange_,this)),this.customReceivers_=b0z(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.wf)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.lK)(g))},this)),this.publish("yt-remote-cast2-availability-change",xh(this)),c(!0))},this),(0,_.wf)(function(g){this.warn_("Failed to initialize API: "+(0,_.lK)(g));
c(!1)},this))};
u$.prototype.setConnectedScreenStatus=function(B,c){Pg("Setting connected screen ID: "+B+" -> "+c);if(this.JSC$17619_session_){var x=this.JSC$17619_session_.screen_;if(!B||x&&x.id!=B)Pg("Unsetting old screen status: "+this.JSC$17619_session_.receiver_.friendlyName),s8(this,null)}if(B&&c){if(!this.JSC$17619_session_){B=Oe(this.JSC$17619_screenService_.getScreens(),B);if(!B){Pg("setConnectedScreenStatus: Unknown screen.");return}if(B.idType=="shortLived"){Pg("setConnectedScreenStatus: Screen with id type to be short lived.");
return}x=KjN(this,B);x||(Pg("setConnectedScreenStatus: Connected receiver not custom..."),x=new chrome.cast.Receiver(B.uuid?B.uuid:B.id,B.name),x.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(x),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wf)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.lK)(P))},this)));
Pg("setConnectedScreenStatus: new active receiver: "+x.friendlyName);s8(this,new cg(this.JSC$17619_screenService_,x),!0)}this.JSC$17619_session_.setDisplayStatus(c)}else Pg("setConnectedScreenStatus: no screen.")};
var KjN=function(B,c){return c?_.z7(B.customReceivers_,function(x){return Ee(c,x.label)},B):null};
u$.prototype.setLaunchParams=function(B){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17619_session_?this.JSC$17619_session_.launchWithParams(B):this.warn_("Setting connection data without a session")};
u$.prototype.JSC$17621_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17619_session_?(this.JSC$17619_session_.stop(),s8(this,null)):Pg("Stopping non-existing session")};
u$.prototype.requestSession=function(){chrome.cast.requestSession((0,_.wf)(this.onSessionEstablished_,this),(0,_.wf)(this.onSessionRequestFailed_,this))};
u$.prototype.disposeInternal=function(){this.JSC$17619_screenService_.unsubscribe("onlineScreenChange",(0,_.wf)(this.JSC$17621_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Ao(_.Gu("yt.mdx.remote.debug.handlers_")||[],VWz);_.R3(this.JSC$17619_session_);_.rs.prototype.disposeInternal.call(this)};
var Pg=function(B){zh("Controller",B)};
u$.prototype.warn_=function(B){zh("Controller",B)};
var VWz=function(B){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(B)},xh=function(B){return B.hasCastReceiver_||!!B.customReceivers_.length||!!B.JSC$17619_session_},s8=function(B,c,x){c!=B.JSC$17619_session_&&(_.R3(B.JSC$17619_session_),(B.JSC$17619_session_=c)?(x?B.publish("yt-remote-cast2-receiver-resumed",c.receiver_):B.publish("yt-remote-cast2-receiver-selected",c.receiver_),c.subscribe("sessionScreen",(0,_.wf)(B.onSessionScreen_,B,c)),c.subscribe("sessionFailed",
function(){return jk6(B,c)}),c.screen_?B.publish("yt-remote-cast2-session-change",c.screen_):x&&B.JSC$17619_session_.launchWithParams(null)):B.publish("yt-remote-cast2-session-change",null))},jk6=function(B,c){B.JSC$17619_session_==c&&B.publish("yt-remote-cast2-session-failed")};
_.a=u$.prototype;_.a.onSessionScreen_=function(B,c){this.JSC$17619_session_==B&&(c||s8(this,null),this.publish("yt-remote-cast2-session-change",c))};
_.a.onReceiverAction_=function(B,c){if(!this.isDisposed())if(B)switch(B.friendlyName=chrome.cast.unescape(B.friendlyName),Pg("onReceiverAction_ "+B.label+" / "+B.friendlyName+"-- "+c),c){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17619_session_)if(this.JSC$17619_session_.receiver_.label!=B.label)Pg("onReceiverAction_: Stopping active receiver: "+this.JSC$17619_session_.receiver_.friendlyName),this.JSC$17619_session_.stop();else{Pg("onReceiverAction_: Casting to active receiver.");this.JSC$17619_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17619_session_.screen_);break}switch(B.receiverType){case chrome.cast.ReceiverType.CUSTOM:s8(this,new cg(this.JSC$17619_screenService_,B));break;case chrome.cast.ReceiverType.DIAL:s8(this,new ey(this.JSC$17619_screenService_,B,this.JSC$17619_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:s8(this,new Ra(this.JSC$17619_screenService_,B,this.config_));break;default:this.warn_("Unknown receiver type: "+B.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17619_session_&&
this.JSC$17619_session_.receiver_.label==B.label?this.JSC$17619_session_.stop():this.warn_("Stopping receiver w/o session: "+B.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.a.onDialLaunchRequested_=function(B){if(this.isDisposed())return Promise.reject(Error("Wk"));var c=B.receiver;c.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+c.friendlyName),c.receiverType=chrome.cast.ReceiverType.DIAL);var x=this.JSC$17619_session_?this.JSC$17619_session_.receiver_:null;if(!x||x.label!=c.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+c.friendlyName),Promise.reject(Error("Xk"));if(x&&x.label==c.label&&x.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17619_session_.screen_)return Pg("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17619_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+x.receiverType+'" to "dial" for '+c.friendlyName);s8(this,new ey(this.JSC$17619_screenService_,c,this.JSC$17619_theme_,this.config_))}c=this.JSC$17619_session_;c.launchData_=B;c.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(B=c.launchData_.extraData||{},x=B.screenId||null,apz(c)&&B.loungeToken?B.loungeTokenRefreshIntervalMs?B=XKz(c,{name:c.receiver_.friendlyName,screenId:B.screenId,loungeToken:B.loungeToken,dialId:c.launchData_.receiver.label,screenIdType:"shortLived"},B.loungeTokenRefreshIntervalMs):(_.SI(Error("Tk`"+JSON.stringify(B))),B=$m8(c,x)):B=$m8(c,x)):B=pKl(c);return B};
_.a.onSessionEstablished_=function(B){var c=this;if(!this.isDisposed()&&!this.forceMirroring_){Pg("New cast session ID: "+B.sessionId);var x=B.receiver;if(x.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17619_session_)if(x.receiverType==chrome.cast.ReceiverType.CAST)Pg("Got resumed cast session before resumed mdx connection."),x.friendlyName=chrome.cast.unescape(x.friendlyName),s8(this,new Ra(this.JSC$17619_screenService_,x,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var P=this.JSC$17619_session_.receiver_,Y=Oe(this.JSC$17619_screenService_.getScreens(),P.label);Y&&Ee(Y,x.label)&&P.receiverType!=chrome.cast.ReceiverType.CAST&&x.receiverType==chrome.cast.ReceiverType.CAST&&(Pg("onSessionEstablished_: manual to cast session change "+x.friendlyName),_.R3(this.JSC$17619_session_),this.JSC$17619_session_=new Ra(this.JSC$17619_screenService_,x,this.config_),this.JSC$17619_session_.subscribe("sessionScreen",(0,_.wf)(this.onSessionScreen_,this,this.JSC$17619_session_)),
this.JSC$17619_session_.subscribe("sessionFailed",function(){return jk6(c,c.JSC$17619_session_)}),this.JSC$17619_session_.launchWithParams(null));
this.JSC$17619_session_.setCastSession(B)}}};
_.a.JSC$17621_getCastSession=function(){return this.JSC$17619_session_?this.JSC$17619_session_.JSC$17605_getCastSession():null};
_.a.onSessionRequestFailed_=function(B){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.lK)(B)),B.code!=chrome.cast.ErrorCode.CANCEL&&s8(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.a.onReceiverUpdated_=function(B){Pg("Receiver availability updated: "+B);if(!this.isDisposed()){var c=xh(this);this.hasCastReceiver_=B==chrome.cast.ReceiverAvailability.AVAILABLE;xh(this)!=c&&this.publish("yt-remote-cast2-availability-change",xh(this))}};
var b0z=function(B){var c=B.JSC$17619_screenService_.JSC$17601_getOnlineScreens(),x=B.JSC$17619_session_&&B.JSC$17619_session_.receiver_;B=_.I3(c,function(P){x&&Ee(P,x.label)&&(x=null);var Y=P.uuid?P.uuid:P.id,g=KjN(this,P);g?(g.label=Y,g.friendlyName=P.name):(g=new chrome.cast.Receiver(Y,P.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},B);
x&&(x.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(x=new chrome.cast.Receiver(x.label,x.friendlyName),x.receiverType=chrome.cast.ReceiverType.CUSTOM),B.push(x));return B};
u$.prototype.JSC$17621_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=b0z(this),Pg("Updating custom receivers: "+(0,_.lK)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wf)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",xh(this)))};
u$.prototype.setLaunchParams=u$.prototype.setLaunchParams;u$.prototype.setConnectedScreenStatus=u$.prototype.setConnectedScreenStatus;u$.prototype.stopSession=u$.prototype.JSC$17621_stopSession;u$.prototype.getCastSession=u$.prototype.JSC$17621_getCastSession;u$.prototype.requestSession=u$.prototype.requestSession;u$.prototype.init=u$.prototype.init;u$.prototype.dispose=u$.prototype.dispose;var rgi=[];var Umz=function(B){B.audioTrackId=null;B.trackData=null;B.playerState=-1;B.hasPrevious=!1;B.hasNext=!1;B.playerTime_=0;B.playerTimeAt_=_.gQ();B.seekableStart_=0;B.seekableEnd_=0;B.duration_=0;B.loadedTime=0;B.liveIngestionTime_=NaN;B.isLive_=!1};
_.a=DX.prototype;
_.a.reset=function(B){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;B&&(this.index=B.index,this.listId=B.listId,this.videoId=B.videoId,this.playerState=B.playerState,this.volume=B.volume,this.muted=B.muted,this.audioTrackId=B.audioTrackId,this.trackData=B.trackData,this.hasPrevious=B.hasPrevious,this.hasNext=B.hasNext,this.playerTime_=B.playerTime,this.playerTimeAt_=B.playerTimeAt,this.seekableStart_=B.seekableStart,this.seekableEnd_=B.seekableEnd,this.duration_=B.duration,this.loadedTime=
B.loadedTime,this.liveIngestionTime_=B.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.a.stopPlayer=function(){this.index=-1;this.videoId="";Umz(this)};
_.a.isPlaying=function(){return this.playerState==1};
_.a.isBuffering=function(){return this.playerState==3};
_.a.isAdPlaying=function(){return this.playerState==1081};
var pe=function(B,c){B.playerTime_=c;B.playerTimeAt_=_.gQ()},dm6=function(B){switch(B.playerState){case 1:case 1081:return(_.gQ()-B.playerTimeAt_)/1E3+B.playerTime_;
case -1E3:return 0}return B.playerTime_};
DX.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.gQ()-this.playerTimeAt_)/1E3:0):this.duration_};
var qMS=function(B,c,x){var P=B.videoId;B.videoId=c;B.index=x;c!=P&&Umz(B)},Cdr=function(B){var c={};
c.index=B.index;c.listId=B.listId;c.videoId=B.videoId;c.playerState=B.playerState;c.volume=B.volume;c.muted=B.muted;c.audioTrackId=B.audioTrackId;c.trackData=_.wW.unsafeClone(B.trackData);c.hasPrevious=B.hasPrevious;c.hasNext=B.hasNext;c.playerTime=B.playerTime_;c.playerTimeAt=B.playerTimeAt_;c.seekableStart=B.seekableStart_;c.seekableEnd=B.seekableEnd_;c.duration=B.duration_;c.loadedTime=B.loadedTime;c.liveIngestionTime=B.liveIngestionTime_;return c};
DX.prototype.clone=function(){return new DX(Cdr(this))};var kh=function(B,c){_.rs.call(this);var x=this;this.state_=0;this.connection_=B;this.contextSubscriptions_=[];this.actionQueue_=new AJc;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.wf)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.wf)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.wf)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.wf)(this.onCloudviewAvailabilityChange_,this);var P=0;B?(P=B.getProxyState(),
P!=3&&(B.subscribe("proxyStateChange",this.setState_,this),hTo(this))):P=3;P!=0&&(c?this.setState_(P):_.pU(function(){x.setState_(P)},0));
(B=cii())&&mmi(this,B);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.w(kh,_.rs);kh.prototype.getState=function(){return this.state_};
kh.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
kh.prototype.reconnect=function(){this.connection_.reconnect()};
var Xl=function(B){return new DX(B.connection_.getPlayerContextData())};
_.a=kh.prototype;_.a.play=function(){$h(this)?(this.castMedia_?this.castMedia_.play(null,_.qw,Tdr(this,"play")):ne(this,"play"),Voo(this,1,dm6(Xl(this))),this.publish("remotePlayerChange")):bs(this,this.play)};
_.a.pause=function(){$h(this)?(this.castMedia_?this.castMedia_.pause(null,_.qw,Tdr(this,"pause")):ne(this,"pause"),Voo(this,2,dm6(Xl(this))),this.publish("remotePlayerChange")):bs(this,this.pause)};
_.a.seekTo=function(B){if($h(this)){if(this.castMedia_){var c=Xl(this),x=new chrome.cast.media.SeekRequest;x.currentTime=B;c.isPlaying()||c.isBuffering()?x.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:x.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(x,_.qw,Tdr(this,"seekTo",{newTime:B}))}else ne(this,"seekTo",{newTime:B});Voo(this,3,B);this.publish("remotePlayerChange")}else bs(this,_.q9(this.seekTo,B))};
_.a.stop=function(){if($h(this)){this.castMedia_?this.castMedia_.stop(null,_.qw,Tdr(this,"stopVideo")):ne(this,"stopVideo");var B=Xl(this);B.stopPlayer();Ke(this,B);this.publish("remotePlayerChange")}else bs(this,this.stop)};
_.a.setVolume=function(B,c){if($h(this)){var x=Xl(this);if(this.castSession_){if(x.volume!=B){var P=Math.round(B)/100;this.castSession_.setReceiverVolumeLevel(P,(0,_.wf)(function(){S0("set receiver volume: "+P)},this),(0,_.wf)(function(){this.warn_("failed to set receiver volume.")},this))}x.muted!=c&&this.castSession_.setReceiverMuted(c,(0,_.wf)(function(){S0("set receiver muted: "+c)},this),(0,_.wf)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Y={volume:B,
muted:c};x.volume!=-1&&(Y.delta=B-x.volume);ne(this,"setVolume",Y)}x.muted=c;x.volume=B;Ke(this,x)}else bs(this,_.q9(this.setVolume,B,c))};
_.a.setAudioTrack=function(B,c){$h(this)?(c=c.getLanguageInfo().getId(),ne(this,"setAudioTrack",{videoId:B,audioTrackId:c}),B=Xl(this),B.audioTrackId=c,Ke(this,B)):bs(this,_.q9(this.setAudioTrack,B,c))};
_.a.addVideo=function(B){$h(this)?ne(this,"addVideo",{videoId:B}):bs(this,_.q9(this.addVideo,B))};
_.a.addPlaylist=function(B){$h(this)?ne(this,"addVideos",{listId:B}):bs(this,_.q9(this.addPlaylist,B))};
_.a.addVideos=function(B){B.length==0?this.warn_("Ignore add videos request due to empty list"):$h(this)?ne(this,"addVideos",{videoIds:B.join(",")}):bs(this,_.q9(this.addVideos,B))};
_.a.JSC$17631_removeVideo=function(B){$h(this)?ne(this,"removeVideo",{videoId:B}):bs(this,_.q9(this.JSC$17631_removeVideo,B))};
_.a.JSC$17631_insertVideo=function(B){$h(this)?ne(this,"insertVideo",{videoId:B}):bs(this,_.q9(this.JSC$17631_insertVideo,B))};
_.a.playVideo=function(B,c,x,P,Y,g,k){P=P===void 0?null:P;Y=Y===void 0?null:Y;g=g===void 0?null:g;k=k===void 0?null:k;var n=Xl(this),b={videoId:B};x!==void 0&&(b.currentIndex=x);qMS(n,B,x||0);c!==void 0&&(pe(n,c),b.currentTime=c);P&&(b.listId=P);Y&&(b.playerParams=Y);g&&(b.clickTrackingParams=g);k&&(b.locationInfo=(0,_.lK)(k));ne(this,"setPlaylist",b);P||Ke(this,n)};
_.a.nextVideo=function(B,c){if($h(this)){if(B&&c){var x=Xl(this);qMS(x,B,c);Ke(this,x)}ne(this,"next")}else bs(this,_.q9(this.nextVideo,B,c))};
_.a.clearPlaylist=function(){if($h(this)){ne(this,"clearPlaylist");var B=Xl(this);B.reset();Ke(this,B);this.publish("remotePlayerChange")}else bs(this,this.clearPlaylist)};
_.a.dispose=function(){if(this.state_!=3){var B=this.state_;this.state_=3;this.publish("proxyStateChange",B,this.state_)}_.rs.prototype.dispose.call(this)};
_.a.disposeInternal=function(){tos(this);this.connection_=null;this.actionQueue_.clear();mmi(this,null);_.rs.prototype.disposeInternal.call(this)};
var hTo=function(B){_.Zg("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(c){this.contextSubscriptions_.push(this.connection_.subscribe(c,_.q9(this.onProxyEvent_,c),this))},B)},tos=function(B){_.Zg(B.contextSubscriptions_,function(c){this.connection_.unsubscribeByKey(c)},B);
B.contextSubscriptions_.length=0},$h=function(B){return B.getState()==1},bs=function(B,c){B.actionQueue_.getCount()<50&&B.actionQueue_.enqueue(c)},Voo=function(B,c,x){var P=Xl(B);
pe(P,x);P.playerState!=-1E3&&(P.playerState=c);Ke(B,P)},ne=function(B,c,x){B.connection_.sendMessage(c,x)},Ke=function(B,c){tos(B);
B.connection_.setPlayerContextData(Cdr(c));hTo(B)};
kh.prototype.setState_=function(B){if((B!=this.state_||B==2)&&this.state_!=3&&B!=0){var c=this.state_;this.state_=B;this.publish("proxyStateChange",c,B);if(B==1)for(;!this.actionQueue_.isEmpty();)B=this.actionQueue_,yUB(B),B.front_.pop().apply(this);else B==3&&this.dispose()}};
kh.prototype.onProxyEvent_=function(B,c){this.publish(B,c)};
var mmi=function(B,c){B.castSession_&&(B.castSession_.removeUpdateListener(B.boundCastStatusListener_),B.castSession_.removeMediaListener(B.boundCastMediaListener_),B.onCastMediaChange_(null));B.castSession_=c;if(B.castSession_&&(S0("Setting cast session: "+B.castSession_.sessionId),B.castSession_.addUpdateListener(B.boundCastStatusListener_),B.castSession_.addMediaListener(B.boundCastMediaListener_),B.castSession_.media.length))B.onCastMediaChange_(B.castSession_.media[0])};
kh.prototype.onCastStatusUpdate_=function(B){if(!B)this.onCastMediaChange_(null),mmi(this,null);else if(this.castSession_.receiver.volume){B=this.castSession_.receiver.volume;var c=Xl(this),x=Math.round(100*B.level||0);if(c.volume!=x||c.muted!=B.muted)S0("Cast volume update: "+B.level+(B.muted?" muted":"")),c.volume=x,c.muted=!!B.muted,Ke(this,c)}};
kh.prototype.onCastMediaChange_=function(B){S0("Cast media: "+!!B);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=B)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),wKr(this),this.publish("remotePlayerChange")};
var wKr=function(B){var c=B.castMedia_.media,x=B.castMedia_.customData;if(c&&x){var P=Xl(B);c.contentId!=P.videoId&&S0("Cast changing video to: "+c.contentId);P.videoId=c.contentId;P.playerState=x.playerState;pe(P,B.castMedia_.getEstimatedTime());Ke(B,P)}else S0("No cast media video. Ignoring state update.")};
kh.prototype.onCastMediaUpdate_=function(B){if(B)wKr(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
kh.prototype.onCloudviewAvailabilityChange_=function(){var B=cii();B&&mmi(this,B)};
kh.prototype.warn_=function(B){zh("CP",B)};
var Tdr=function(B,c,x){return(0,_.wf)(function(P){this.warn_("Failed to "+c+" with cast v2 channel. Error code: "+P.code);P.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+c+" using MDx browser channel."),ne(this,c,x))},B)};var U8=function(B,c,x,P){P=P===void 0?!1:P;_.rs.call(this);var Y=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17638_http_=B;this.enableConnectWithInitialState_=P;this.listeners_.push(_.Rx(window,"beforeunload",function(){Y.JSC$17641_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new DX;this.currentScreenId_=c.id;this.currentScreenIdType_=c.idType;this.channelService=TxA(this.JSC$17638_http_,x,this.JSC$17641_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Ndo(Y)});
this.channelService.listen("channelClosed",function(){jH("Channel closed");isNaN(Y.connectTimerId_)?ol(!0):ol();Y.dispose()});
this.channelService.listen("channelError",function(g){ol();isNaN(Y.getReconnectTimeout_())?(g==1&&Y.currentScreenIdType_=="shortLived"&&Y.publish("browserChannelAuthError",g),jH("Channel error: "+g+" without reconnection"),Y.dispose()):(Y.reconnecting_=!0,jH("Channel error: "+g+" with reconnection in "+Y.getReconnectTimeout_()+" ms"),Ipy(Y,2))});
this.channelService.listen("channelMessage",function(g){Jvs(Y,g)});
this.channelService.setLoungeToken(c.token);this.subscribe("remoteQueueChange",function(){var g=Y.playerContext_.videoId;pfy()&&_.Xj("yt-remote-session-video-id",g)})};
_.w(U8,_.rs);
U8.prototype.connect=function(B,c){if(c){var x=c.listId,P=c.videoId,Y=c.videoIds,g=c.playerParams,k=c.clickTrackingParams,n=c.index,b={videoId:P},d=c.currentTime,q=c.locationInfo;c=c.loopMode;d!==void 0&&(b.currentTime=d<=5?0:d);g&&(b.playerParams=g);q&&(b.locationInfo=q);k&&(b.clickTrackingParams=k);x&&(b.listId=x);Y&&Y.length>0&&(b.videoIds=Y.join(","));n!==void 0&&(b.currentIndex=n);this.enableConnectWithInitialState_&&(b.loopMode=c||"LOOP_MODE_OFF");x&&(this.playerContext_.listId=x);this.playerContext_.videoId=
P;this.playerContext_.index=n||0;this.playerContext_.state=3;pe(this.playerContext_,d);this.autoplayMode_="UNSUPPORTED";x=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";jH("Connecting with "+x+" and params: "+(0,_.lK)(b));this.channelService.connect({method:x,params:(0,_.lK)(b)},B,bNi())}else jH("Connecting without params"),this.channelService.connect({},B,bNi());Wjs(this)};
U8.prototype.setLoungeToken=function(B){this.channelService.setLoungeToken(B)};
U8.prototype.dispose=function(){this.isDisposed()||(_.rr("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Ipy(this,3));_.rs.prototype.dispose.call(this)};
U8.prototype.disposeInternal=function(){lpz(this);EkA(this);O0c(this);_.X4(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.X4(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.vH7(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.rs.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var okz=function(B){return _.z7(B.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"})},jH=function(B){zh("conn",B)},Ipy=function(B,c){B.publish("proxyStateChange",c)},Wjs=function(B){B.connectTimerId_=_.pU(function(){jH("Connecting timeout");
B.JSC$17641_disconnect_(1)},2E4)},lpz=function(B){_.X4(B.connectTimerId_);
B.connectTimerId_=NaN},O0c=function(B){_.X4(B.reconnectedCheckScreenTimeout_);
B.reconnectedCheckScreenTimeout_=NaN},QkB=function(B){EkA(B);
B.playingSyncTimerId_=_.pU(function(){dN(B,"getNowPlaying")},2E4)},EkA=function(B){_.X4(B.playingSyncTimerId_);
B.playingSyncTimerId_=NaN},Ndo=function(B){jH("Channel opened");
B.reconnecting_&&(B.reconnecting_=!1,O0c(B),B.reconnectedCheckScreenTimeout_=_.pU(function(){jH("Timing out waiting for a screen.");B.JSC$17641_disconnect_(1)},15E3))},vkF=function(B,c){var x=null;
if(c){var P=okz(B);P&&(x={clientName:P.clientName,deviceMake:P.brand,deviceModel:P.model,osVersion:P.osVersion})}_.rr("yt.mdx.remote.remoteClient_",x);c&&(lpz(B),O0c(B));x=B.channelService.isChannelOpened()&&isNaN(B.connectTimerId_);c==x?c&&(Ipy(B,1),dN(B,"getSubtitlesTrack")):c?(B.getOtherConnectedRemoteId_()&&B.playerContext_.reset(),Ipy(B,1),dN(B,"getNowPlaying"),Fjr(B)):B.JSC$17641_disconnect_(1)},zTr=function(B,c){var x=c.params.videoId;
delete c.params.videoId;x==B.playerContext_.videoId&&(_.wW.isEmpty(c.params)?B.playerContext_.trackData=null:B.playerContext_.trackData=c.params,B.publish("remotePlayerChange"))},SMo=function(B,c,x){var P=c.params.videoId||c.params.video_id,Y=parseInt(c.params.currentIndex,10);
B.playerContext_.listId=c.params.listId||B.playerContext_.listId;qMS(B.playerContext_,P,Y);B.publish("remoteQueueChange",x)},yvo=function(B,c){c.params=c.params||{};
SMo(B,c,"NOW_PLAYING_MAY_CHANGE");B.onStateChange_(c);B.publish("autoplayDismissed")};
U8.prototype.onStateChange_=function(B){var c=parseInt(B.params.currentTime||B.params.current_time,10);pe(this.playerContext_,isNaN(c)?0:c);c=parseInt(B.params.state,10);c=isNaN(c)?-1:c;c==-1&&this.playerContext_.playerState==-1E3&&(c=-1E3);this.playerContext_.playerState=c;c=Number(B.params.loadedTime);this.playerContext_.loadedTime=isNaN(c)?0:c;c=Number(B.params.duration);this.playerContext_.duration_=isNaN(c)?0:c;c=this.playerContext_;var x=Number(B.params.liveIngestionTime);c.liveIngestionTime_=
x;c.isLive_=isNaN(x)?!1:!0;c=this.playerContext_;x=Number(B.params.seekableStartTime);B=Number(B.params.seekableEndTime);c.seekableStart_=isNaN(x)?0:x;c.seekableEnd_=isNaN(B)?0:B;this.playerContext_.playerState==1?QkB(this):EkA(this);this.publish("remotePlayerChange")};
U8.prototype.onAdStateChange_=function(B){if(this.playerContext_.playerState!=-1E3){var c=1085;switch(parseInt(B.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}this.playerContext_.playerState=c;B=parseInt(B.params.currentTime,10);pe(this.playerContext_,isNaN(B)?0:B);this.publish("remotePlayerChange")}};
var GQB=function(B,c){var x=c.params.muted=="true";B.playerContext_.volume=parseInt(c.params.volume,10);B.playerContext_.muted=x;B.publish("remotePlayerChange")},MoS=function(B,c){B.autoplayVideoId_=c.params.videoId;
B.publish("nowAutoplaying",parseInt(c.params.timeout,10))},Lji=function(B,c){B.autoplayVideoId_=c.params.videoId||null;
B.publish("autoplayUpNext",B.autoplayVideoId_)},Z0F=function(B,c){B.autoplayMode_=c.params.autoplayMode;
B.publish("autoplayModeChange",B.autoplayMode_);B.autoplayMode_=="DISABLED"&&B.publish("autoplayDismissed")},H0c=function(B,c){var x=c.params.hasNext=="true";
B.playerContext_.hasPrevious=c.params.hasPrevious=="true";B.playerContext_.hasNext=x;B.publish("previousNextChange")};
U8.prototype.isCapabilitySupportedOnConnectedDevices_=function(B){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var c=_.p(this.connectedDevices_),x=c.next();!x.done;x=c.next())if(!x.value.capabilities.has(B))return!1;return!0};
var Jvs=function(B,c){c=c.message;c.params?jH("Received: action="+c.action+", params="+(0,_.lK)(c.params)):jH("Received: action="+c.action+" {}");switch(c.action){case "loungeStatus":c=(0,_.tg)(c.params.devices);B.connectedDevices_=_.I3(c,function(P){return new iw(P)});
c=!!_.z7(B.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
vkF(B,c);c=B.isCapabilitySupportedOnConnectedDevices_("mlm");B.publish("multiStateLoopEnabled",c);break;case "loungeScreenDisconnected":ItN(B.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
vkF(B,!1);break;case "remoteConnected":var x=new iw((0,_.tg)(c.params.device));_.z7(B.connectedDevices_,function(P){return P.equals(x)})||_.fx(B.connectedDevices_,x);
break;case "remoteDisconnected":x=new iw((0,_.tg)(c.params.device));ItN(B.connectedDevices_,function(P){return P.equals(x)});
break;case "gracefulDisconnect":break;case "playlistModified":SMo(B,c,"QUEUE_MODIFIED");break;case "nowPlaying":yvo(B,c);break;case "onStateChange":B.onStateChange_(c);break;case "onAdStateChange":B.onAdStateChange_(c);break;case "onVolumeChanged":GQB(B,c);break;case "onSubtitlesTrackChanged":zTr(B,c);break;case "nowAutoplaying":MoS(B,c);break;case "autoplayDismissed":B.publish("autoplayDismissed");break;case "autoplayUpNext":Lji(B,c);break;case "onAutoplayModeChanged":Z0F(B,c);break;case "onHasPreviousNextChanged":H0c(B,
c);break;case "requestAssistedSignIn":B.publish("assistedSignInRequested",c.params.authCode);break;case "onLoopModeChanged":B.publish("loopModeChange",c.params.loopMode);break;default:jH("Unrecognized action: "+c.action)}};
_.a=U8.prototype;_.a.getProxyState_=function(){var B=3;this.isDisposed()||(B=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(B=1):B=2);return B};
_.a.JSC$17641_disconnect_=function(B){jH("Disconnecting with "+B);_.rr("yt.mdx.remote.remoteClient_",null);lpz(this);this.publish("beforeDisconnect",B);B==1&&ol();this.channelService.disconnect(B);this.dispose()};
_.a.getPlayerContextData_=function(){var B=this.playerContext_;this.clientVideoId_&&(B=this.playerContext_.clone(),qMS(B,this.clientVideoId_,B.index));return Cdr(B)};
_.a.setPlayerContextData_=function(B){var c=this,x=new DX(B);x.videoId&&x.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=x.videoId,_.X4(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.pU(function(){if(c.clientVideoId_){var Y=c.clientVideoId_;c.clientVideoId_=null;c.playerContext_.videoId!=Y&&dN(c,"getNowPlaying")}},5E3));
var P=[];this.playerContext_.listId==x.listId&&this.playerContext_.videoId==x.videoId&&this.playerContext_.index==x.index||P.push("remoteQueueChange");this.playerContext_.playerState==x.playerState&&this.playerContext_.volume==x.volume&&this.playerContext_.muted==x.muted&&dm6(this.playerContext_)==dm6(x)&&(0,_.lK)(this.playerContext_.trackData)==(0,_.lK)(x.trackData)||P.push("remotePlayerChange");this.playerContext_.reset(B);_.Zg(P,function(Y){this.publish(Y)},this)};
_.a.getOtherConnectedRemoteId_=function(){var B=this.channelService.getDeviceId(),c=_.z7(this.connectedDevices_,function(x){return x.type=="REMOTE_CONTROL"&&x.id!=B});
return c?c.id:""};
_.a.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.a.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.a.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.a.JSC$17641_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Fjr=function(B){_.X4(B.idleDisconnectTimerId_);B.idleDisconnectTimerId_=_.pU(function(){B.JSC$17641_disconnect_(1)},864E5)},dN=function(B,c,x){x?jH("Sending: action="+c+", params="+(0,_.lK)(x)):jH("Sending: action="+c);
B.channelService.sendMessage(c,x)};
U8.prototype.sendMessageWithUserAction_=function(B,c){dN(this,B,c);Fjr(this)};
U8.prototype.JSC$17641_getXsrfToken_=function(){var B=_.U4.get("SAPISID","")||_.U4.get("__Secure-1PAPISID",void 0)||"",c=_.U4.get("__Secure-3PAPISID","")||"";if(!B&&!c)return"";B=_.PN(_.V_(B),2);c=_.PN(_.V_(c),2);return _.PN(_.V_(","+B+","+c),2)};
U8.prototype.subscribe=U8.prototype.subscribe;U8.prototype.unsubscribeByKey=U8.prototype.unsubscribeByKey;U8.prototype.getProxyState=U8.prototype.getProxyState_;U8.prototype.disconnect=U8.prototype.JSC$17641_disconnect_;U8.prototype.getPlayerContextData=U8.prototype.getPlayerContextData_;U8.prototype.setPlayerContextData=U8.prototype.setPlayerContextData_;U8.prototype.getOtherConnectedRemoteId=U8.prototype.getOtherConnectedRemoteId_;U8.prototype.getReconnectTimeout=U8.prototype.getReconnectTimeout_;
U8.prototype.getAutoplayMode=U8.prototype.getAutoplayMode_;U8.prototype.getAutoplayVideoId=U8.prototype.getAutoplayVideoId_;U8.prototype.reconnect=U8.prototype.JSC$17641_reconnect_;U8.prototype.sendMessage=U8.prototype.sendMessageWithUserAction_;U8.prototype.getXsrfToken=U8.prototype.JSC$17641_getXsrfToken_;U8.prototype.isCapabilitySupportedOnConnectedDevices=U8.prototype.isCapabilitySupportedOnConnectedDevices_;var fpc=function(B){Gh.call(this,"ScreenServiceProxy");this.instance_=B;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.wf)(this.JSC$17644_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.wf)(this.onOnlineScreenChange_,this)))};
_.w(fpc,Gh);_.a=fpc.prototype;_.a.getScreens=function(B){return this.instance_.$_gs(B)};
_.a.contains=function(B){return!!this.instance_.$_c(B)};
_.a.get=function(B){return this.instance_.$_g(B)};
_.a.start=function(){this.instance_.$_st()};
_.a.add=function(B,c,x){this.instance_.$_a(B,c,x)};
_.a.remove=function(B,c,x){this.instance_.$_r(B,c,x)};
_.a.updateName=function(B,c,x,P){this.instance_.$_un(B,c,x,P)};
_.a.disposeInternal=function(){for(var B=this.subscriptionKeys_.length,c=0;c<B;++c)this.instance_.$_ubk(this.subscriptionKeys_[c]);this.subscriptionKeys_.length=0;this.instance_=null;Gh.prototype.disposeInternal.call(this)};
_.a.JSC$17644_onScreenChange_=function(){this.publish("screenChange")};
_.a.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
ZX.prototype.$_st=ZX.prototype.start;ZX.prototype.$_gspc=ZX.prototype.JSC$17601_getScreenByPairingCode;ZX.prototype.$_gsppc=ZX.prototype.JSC$17601_getScreenByPollingPairingCode;ZX.prototype.$_c=ZX.prototype.contains;ZX.prototype.$_g=ZX.prototype.get;ZX.prototype.$_a=ZX.prototype.add;ZX.prototype.$_un=ZX.prototype.updateName;ZX.prototype.$_r=ZX.prototype.remove;ZX.prototype.$_gs=ZX.prototype.getScreens;ZX.prototype.$_gos=ZX.prototype.JSC$17601_getOnlineScreens;ZX.prototype.$_s=ZX.prototype.subscribe;
ZX.prototype.$_ubk=ZX.prototype.unsubscribeByKey;var eT6=function(B){dpr();if(!QK||!QK.get("yt-remote-disable-remote-module-for-dev")){B=_.v5("MDX_CONFIG")||B;lnA();Xfo();qu||(qu=new We(B?B.loungeApiHost:void 0),qnc()&&(qu.basePath="/api/loungedev"));Ce||(Ce=_.Gu("yt.mdx.remote.deferredProxies_")||[],_.rr("yt.mdx.remote.deferredProxies_",Ce));i0B();var c=hk();if(!c){var x=new ZX(qu,B?B.disableAutomaticScreenCache||!1:!1);_.rr("yt.mdx.remote.screenService_",x);c=hk();var P={};B&&(P={appId:B.appId,disableDial:B.disableDial,theme:B.theme,loadCastApiSetupScript:B.loadCastApiSetupScript,
disableCastApi:B.disableCastApi,enableDialLoungeToken:B.enableDialLoungeToken,enableCastLoungeToken:B.enableCastLoungeToken,forceMirroring:B.forceMirroring});_.rr("yt.mdx.remote.enableConnectWithInitialState_",B?B.enableConnectWithInitialState||!1:!1);uTc(x,function(g){g?mZ()&&Pgz(mZ(),"YouTube TV"):x.subscribe("onlineScreenChange",function(){Pe("yt-remote-receiver-availability-change")})},P)}if(B&&!_.Gu("yt.mdx.remote.initialized_")){_.rr("yt.mdx.remote.initialized_",!0);
Ts("Initializing: "+(0,_.lK)(B));VV.push(_.aG("yt-remote-cast2-api-ready",function(){Pe("yt-remote-api-ready")}));
VV.push(_.aG("yt-remote-cast2-availability-change",function(){Pe("yt-remote-receiver-availability-change")}));
VV.push(_.aG("yt-remote-cast2-receiver-selected",function(){Avr();Pe("yt-remote-auto-connect","cast-selector-receiver")}));
VV.push(_.aG("yt-remote-cast2-receiver-resumed",function(){Pe("yt-remote-receiver-resumed","cast-selector-receiver")}));
VV.push(_.aG("yt-remote-cast2-session-change",uai));VV.push(_.aG("yt-remote-connection-change",function(g){g?Pgz(mZ(),"YouTube TV"):Dmy()||(Pgz(null,null),Bji())}));
VV.push(_.aG("yt-remote-cast2-session-failed",function(){Pe("yt-remote-connection-failed")}));
P=rv6();B.isAuto&&(P.id+="#dial");var Y=B.capabilities||[];Y.length>0&&(P.capabilities=Y);P.name=B.device;P.app=B.app;(B=B.theme)&&(P.theme=B);Ts(" -- with channel params: "+(0,_.lK)(P));P?(_.Xj("yt-remote-session-app",P.app),_.Xj("yt-remote-session-name",P.name)):(_.ny("yt-remote-session-app"),_.ny("yt-remote-session-name"));_.rr("yt.mdx.remote.channelParams_",P);c.start();mZ()||RT6()}}},c2i=function(){var B=hk().instance_.$_gos();
var c=BkF();c&&tk()&&(aaz(B,c)||B.push(c));return YnS(B)},x4r=function(){var B=c2i(),c=BkF();
c||(c=Dmy());return _.z7(B,function(x){return c&&Ee(c,x.key)?!0:!1})},BkF=function(){var B=mZ();
if(!B)return null;var c=hk().getScreens();return Oe(c,B)},uai=function(B){Ts("remote.onCastSessionChange_: "+YpF(B));
if(B){var c=BkF();c&&c.id==B.id?(Pgz(c.id,"YouTube TV"),B.idType=="shortLived"&&(B=B.token)&&(c=tk())&&c.setLoungeToken(B)):(c&&P38(),YQr(B,1))}else tk()&&P38()},P38=function(){x9r()?AH().stopSession():i$("stopSession called before API ready.");
var B=tk();B&&(B.disconnect(1),a5l(null))},gg8=function(){var B=tk();
return B&&B.getProxyState()!=3?new kh(tk(),void 0):null},Ts=function(B){zh("remote",B)},hk=function(){if(!s$z){var B=_.Gu("yt.mdx.remote.screenService_");
s$z=B?new fpc(B):null}return s$z},mZ=function(){return _.Gu("yt.mdx.remote.currentScreenId_")},plN=function(B){_.rr("yt.mdx.remote.currentScreenId_",B)},Avr=function(){_.rr("yt.mdx.remote.connectData_",null)},tk=function(){return _.Gu("yt.mdx.remote.connection_")},a5l=function(B){var c=tk();
Avr();B||plN("");_.rr("yt.mdx.remote.connection_",B);Ce&&(_.Zg(Ce,function(x){x(B)}),Ce.length=0);
c&&!B?Pe("yt-remote-connection-change",!1):!c&&B&&Pe("yt-remote-connection-change",!0)},Dmy=function(){var B=pfy();
if(!B)return null;var c=hk();if(!c)return null;c=c.getScreens();return Oe(c,B)},YQr=function(B,c){plN(B.id);
B=new U8(qu,B,rv6(),_.Gu("yt.mdx.remote.enableConnectWithInitialState_")||!1);B.connect(c,_.Gu("yt.mdx.remote.connectData_"));B.subscribe("beforeDisconnect",function(x){Pe("yt-remote-before-disconnect",x)});
B.subscribe("beforeDispose",function(){tk()&&a5l(null)});
B.subscribe("browserChannelAuthError",function(){var x=BkF();x&&x.idType=="shortLived"&&(x9r()?AH().handleBrowserChannelAuthError():i$("refreshLoungeToken called before API ready."))});
a5l(B)},RT6=function(){var B=Dmy();
B?(Ts("Resume connection to: "+YpF(B)),YQr(B,0)):(ol(),Bji(),Ts("Skipping connecting because no session screen found."))},qu=null,Ce=null,s$z=null,i0B=function(){var B=rv6();
if(_.wW.isEmpty(B)){B=ssy();var c=_.$g("yt-remote-session-name")||"",x=_.$g("yt-remote-session-app")||"";B={device:"REMOTE_CONTROL",id:B,name:c,app:x,mdxVersion:3};B.authuser=String(_.v5("SESSION_INDEX","0"));(c=_.v5("DELEGATED_SESSION_ID"))&&(B.pageId=String(c));_.rr("yt.mdx.remote.channelParams_",B)}},rv6=function(){return _.Gu("yt.mdx.remote.channelParams_")||{}},VV=[];var kCz=new _.vA("yt-menu"),XlF=function(){},ng6=function(B,c,x){B=c=="right-click"?x.rightClickMenuPopupHint:x.menuPopupHint;
if(!($4N(c)>10))return c=c||"default",kCz.set(c+"-impression",$4N(c)+1),B},$4N=function(B){return parseInt(kCz.get((B||"default")+"-impression")||0,10)};
_.ag(XlF);var bys=function(){this.contexts_=new WeakMap;this.JSC$17650_networkService_=this.activeContext_=null},K8F=function(B,c,x){var P=B.contexts_.get(c);
P||(P=new JWN(B.JSC$17650_networkService_),B.contexts_.set(c,P));B.activeContext_=P;x&&B.activeContext_.reset();B.activeContext_.start();return B.activeContext_};var wN=function(){};
wN.prototype.enqueue=function(){var B=this,c;return _.X(function(x){if(B.isCounterfactual())return(c=B.getCounterfactualData())&&B.shouldLogCounterfactualImpression()&&B.sendImpressionEndpoints(c),x.return();B.doEnqueue();_.Kq(x)})};
wN.prototype.sendImpressionEndpoints=function(B){_.Gr.getInstance().triggerOptionalAction("yt-service-request",{},B[0])};var Nu=function(B,c){this.renderer=B;this.page=c};
_.w(Nu,wN);Nu.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Nu.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Nu.prototype.shouldLogCounterfactualImpression=function(){return!0};
Nu.prototype.doEnqueue=function(){var B=_.R2(this.page);B&&B.pause();this.renderer.impressionCommand&&_.Gr.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Qb(_.Gr.getInstance(),[this.renderer.promoCommand],this.page)};var j$z=function(B,c){this.renderer=B;this.resolver=_.Hw();this.JSC$17662_enforcementCounter=new _.SIy;c?this.JSC$17662_playerManager=_.R2(c):this.JSC$17662_playerManager=null;_.bI(1,!0)};
_.w(j$z,wN);_.a=j$z.prototype;_.a.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var B=[];this.renderer.impressionEndpoints.forEach(function(c){(c=_.vH(c))&&B.push(c)});
return B}};
_.a.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.a.shouldLogCounterfactualImpression=function(){var B=_.eKQ();B?(this.JSC$17662_enforcementCounter.increment("POPUP"),_.bI(3)):_.bI(2);return B};
_.a.cancel=function(){this.resolver.promise.cancel()};
_.a.doEnqueue=function(){var B=this;_.eKQ()?(this.JSC$17662_enforcementCounter.increment("POPUP"),_.bI(3),U4z(this)):this.JSC$17662_playerManager?(this.resolver.promise.then(function(){U4z(B)}),d46(this.resolver,this.JSC$17662_playerManager)):_.bI(2)};
var d46=function(B,c){var x=_.Hw();c.getPlayerPromise().then(function(P){x.resolve(P)});
x.promise.then(function(P){P.addEventListener("onAbnormalityDetected",B.resolve);_.IZ(B.promise,function(){P.removeEventListener("onAbnormalityDetected",B.resolve)})});
B.promise.thenCatch(function(){x.promise.cancel()})},U4z=function(B){_.bI(3);
var c={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:B.renderer}};c=_.Gr.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});Promise.all(c).then(function(){qQr();B.JSC$17662_playerManager&&B.JSC$17662_playerManager.pause()})},qQr=function(){nry(function(B,c){_.kwF(B,c);
B===0?_.bI(7):_.bI(4)})};var C3l=function(B,c){this.renderer=B;this.page=c;this.resolver=_.Hw()};
_.w(C3l,wN);_.a=C3l.prototype;_.a.cancel=function(){this.resolver.promise.cancel()};
_.a.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.a.isCounterfactual=function(){return!this.renderer.isVisible};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var B=this;this.resolver.promise.then(function(){var x={popup:{mealbarPromoRenderer:B.renderer},popupType:"MEALBAR"};_.Gr.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var c=_.R2(this.page);c&&hRr(this.resolver,c)}break;default:this.resolver.resolve()}};
var hRr=function(B,c){var x=_.Hw();c.getPlayerPromise().then(function(P){x.resolve(P)});
x.promise.then(function(P){P.addEventListener("onAdEnd",B.resolve);_.IZ(B.promise,function(){P.removeEventListener("onAdEnd",B.resolve)})});
B.promise.thenCatch(function(){x.promise.cancel()})};var m4s=function(B,c){this.renderer=B;this.page=c};
_.w(m4s,wN);_.a=m4s.prototype;_.a.cancel=function(){this.JSC$17670_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17670_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17670_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.a.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.a.isCounterfactual=function(){return!this.renderer.isVisible};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var B=this,c,x;((c=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(x=c.playbackUpsellDialogTriggerConditionData)==null?void 0:x.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17670_downloadedVideosCountSelectorUnsubscriber=_.C0(_.uG(),sxl,function(P,Y){P>Y&&(TkF(B),B.cancel())}):TkF(this)};
var TkF=function(B){var c={popup:{upsellDialogRenderer:B.renderer},popupType:"MODAL"};_.Gr.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});(B=_.R2(B.page))&&B.pause()};var IK={},VqS=(IK.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",IK.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",IK.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",IK.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",IK.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",IK.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",IK.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",IK),tqA=function(B,c){this.renderer=B;this.targetManager=
c};
_.w(tqA,wN);_.a=tqA.prototype;_.a.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17677_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17677_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17677_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.a.getCounterfactualData=function(){if(this.isCounterfactual()){var B;return(B=this.renderer.promoConfig)==null?void 0:B.impressionEndpoints}};
_.a.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var B=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17677_downloadedVideosCountSelectorUnsubscriber=_.C0(_.uG(),sxl,function(c,x){B.renderer.targetId&&c>x&&(eL6(B.targetManager,B.renderer.targetId,wlS(B)),B.cancel())});
break;default:eL6(this.targetManager,this.renderer.targetId,wlS(this))}};
var wlS=function(B){var c;if((c=B.renderer.suggestedPosition)==null?0:c.type)var x=VqS[B.renderer.suggestedPosition.type];x||(x="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:B.renderer},popupType:"HINT",position:x}}};var Nko=function(){this.previousPage=null},I5z;
Nko.prototype.registerPromoCommand=function(B,c){J2F(this,void 0,void 0,_.t(B.roadblock,Hdz),void 0,void 0,c)};
var J2F=function(B,c,x,P,Y,g,k){B.previousPage!==k&&B.pendingTooltipPromo&&B.pendingTooltipPromo.cancel();B.previousPage=k;Y?(B.pendingEnforcementPromo&&B.pendingEnforcementPromo.cancel(),B.pendingEnforcementPromo=new j$z(Y,k),B.pendingEnforcementPromo.enqueue()):g?(B.pendingCommandWrapperPromo=new Nu(g,k),B.pendingCommandWrapperPromo.enqueue()):P?(B.pendingRoadblockPromo&&B.pendingRoadblockPromo.cancel(),B.pendingRoadblockPromo=new m4s(P,k),B.pendingRoadblockPromo.enqueue()):c?(B.pendingMealbarPromo&&
B.pendingMealbarPromo.cancel(),B.pendingMealbarPromo=new C3l(c,k),B.pendingMealbarPromo.enqueue()):x&&(B.pendingTooltipPromo&&B.pendingTooltipPromo.cancel(),B.pendingTooltipPromo=new tqA(x,_.wk()),B.pendingTooltipPromo.enqueue())},W8l=function(){I5z||(I5z=new Nko);
return I5z};var pri=!1;var xiS=function(B,c){var x=_.v5("SESSION_INDEX");this.actionToken_=B;this.commonToken_=c;this.sessionIndex_=x},c9S=function(B){var c=_.Hw(),x=_.Gu("payments.business.integration.bootstrap"),P=_.Gu("payments.business.integration"),Y=P.Style.create().withMaterialDesignStyle(),g=P.mashupMode.popup("instrument-manager");
x.asMashupMode(g).usingUserIndex(B.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Y).inStandaloneContext(P.standaloneContextAuthId.forUserId()).instrumentManager(B.actionToken_,B.commonToken_.length>0?B.commonToken_:void 0,function(k){var n=k.instrumentId;n?c.resolve(n):(n=_.Gu("payments.business.integration.scenario.InstrumentManager"),c.reject(k.errorCode&&k.errorCode===n.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(k){_.SI(k);
c.reject("instrumentManagerLoadError")});
return c.promise};var ck=function(B,c,x){this.payloadName="transactionFlowFailed";this.payload={errorType:B,serializedTransactionFlowLoggingParams:c,isUserDismiss:x===void 0?!1:x}};
_.rr("yt.ypc.shared.YpcTransactionFlowError",ck);var Jk=function(){return _.dM.apply(this,arguments)||this};
_.w(Jk,_.dM);Jk.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Jk.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Jk.prototype.onErrorMessageDismiss=Jk.prototype.onErrorMessageDismiss;_.L([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.H("design:type",Object)],Jk.prototype,"errorRenderer",void 0);_.L([_.nF("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jk.prototype,"onErrorMessageDismiss",null);_.L([_.qi()],Jk);var l5i=[Jk.prototype];var EgB;var Oys;var ogz=new _.vA("yt-live-chat"),Q$z=new Map;Q$z.set("timestamp_toggle","show-timestamps");Q$z.set("reactions_toggle","allow-reactions");var Wg=function(){return _.z.apply(this,arguments)||this};
_.w(Wg,_.z);_.a=Wg.prototype;_.a.menuItemIdentifierChanged=function(){var B;(B=this.data)!=null&&B.menuItemIdentifier&&(B=Q$z.get(this.data.menuItemIdentifier))&&(_.T("enable_lwe_web_mute")?(B=ogz.get(B),this.isToggled=!(B===void 0?!this.data.isToggled:!B)):this.isToggled=ogz.get(B))};
_.a.onFocus=function(){this.toggleButton.focus()};
_.a.onTap=function(){var B=this.data.command;B&&this.componentBehavior.resolveCommand(B)};
_.a.computeText=function(B,c,x){return this.componentBehavior.getSimpleString(B?x:c)};
_.a.computeIcon=function(B,c,x){return(B=B?x:c)&&B.iconType?_.$0(B.iconType):""};
Wg.prototype.onTap=Wg.prototype.onTap;Wg.prototype.onFocus=Wg.prototype.onFocus;Wg.prototype.menuItemIdentifierChanged=Wg.prototype.menuItemIdentifierChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Wg.prototype,"componentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wg.prototype,"data",void 0);
_.L([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],Wg.prototype,"icon",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Wg.prototype,"isToggled",void 0);_.L([_.jr("tp-yt-paper-toggle-button"),_.H("design:type",Object)],Wg.prototype,"toggleButton",void 0);_.L([_.bF("data.menuItemIdentifier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wg.prototype,"menuItemIdentifierChanged",null);
_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wg.prototype,"onFocus",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wg.prototype,"onTap",null);_.L([_.Em({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Wg);
_.G(Wg,"yt-live-chat-toggle-renderer",function(){if(Oys===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;EgB===void 0&&(EgB=document.createElement("template"));var P=EgB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Oys=B}B=Oys;return B},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var F8i=new _.BL("NAVIGATION_PROGRESS_TOKEN");_.FP("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var vgF={},jJs=(vgF.CSI=function(B,c){var x={};x[B]=c;B=_.ya(_.yrO)(x);Object.keys(B).length>0&&_.lg(B)},vgF.ECATCHER=function(B){return function(c,x){_.v5(B)[c]=x}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),vgF);var zRz={},SQS={},y2B=(SQS[Od8.name]=!0,SQS),ls=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;B.tabGesturesIsActive=!1;B.actionRouterIsRoot=!0;B.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"};B.pageTitle="";B.titleSuffix="YouTube";B.unseenNotificationCount=
0;B.hasNavigated=!1;B.hasSetScrollTopForNavigation=!1;B.pagePreparer=null;B.zwiebackInitJobId=0;B.dataUpdatePromise=null;B.loadDepsPromise=_.$C();B.hasPendingNavigation=!1;B.pendingPlayerOnResponseReceivedActions=[];return B};
_.w(ls,_.dM);ls.prototype.attached=function(){GCz(this);document.addEventListener("yt-navigate-cache",_.$9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var B=E8();B.init();B.dispatchElement=this.hostElement};
var GCz=function(B,c){c=c===void 0?0:c;var x=_.cp().resolve(_.Bp(_.t2));if(x)MqS(B,x);else{if(c>=5)throw Error("Yk");setTimeout(function(){GCz(B,c+1)},0)}},MqS=function(B,c){c.addEventListener("yt-navigate-start",_.$9(B,B.onYtNavigateStart));
c.addEventListener("yt-navigate-finish",_.$9(B,B.onYtNavigateFinish));c.addEventListener("yt-navigate-error",_.$9(B,B.onYtNavigateError));c.addEventListener("yt-page-data-fetched",_.$9(B,B.onYtPageDataFetched))};
_.a=ls.prototype;_.a.detached=function(){var B=_.cp().resolve(_.t2);B.removeEventListener("yt-navigate-start",_.$9(this,this.onYtNavigateStart));B.removeEventListener("yt-navigate-finish",_.$9(this,this.onYtNavigateFinish));B.removeEventListener("yt-navigate-error",_.$9(this,this.onYtNavigateError));B.removeEventListener("yt-page-data-fetched",_.$9(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.$9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.a.setPageOffset=function(B,c){B?_.gj(this.hostElement,"yt-set-page-offset",[B,c]):_.lb(Error("Zk"))};
_.a.setPageOffsetForNavigation=function(B,c){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(B,c))};
_.a.onYtNavigateSetPageOffset=function(B,c){this.setPageOffsetForNavigation(c.page,c.offset)};
_.a.getPageOffset=function(){var B=_.Y9(this.hostElement).querySelector("#page-manager").getCurrentPage(),c=0;B&&(c=_.gj(this.hostElement,"yt-get-page-offset",[B])[0]);return c};
_.a.onYtHistoryPop=function(B,c){if(_.zu("DISABLE_WARM_LOADS"))B.preventDefault(),window.location.reload();else{var x=_.cp().resolve(_.t2);x.hasPendingNavigation()&&B.preventDefault();x.cancelPendingNavigation();_.sp(this.hostElement,"yt-pending-navigation-cancelled");c.errorMsg&&(B=c.errorMsg.split(" - "),c=Error(B[0]),B.length==2&&B[1]&&(_.oG(c,B[1]),_.Ob(c)),window.location.reload())}};
_.a.onYtHistoryLoad=function(B,c){var x=this;if(_.zu("DISABLE_WARM_LOADS"))window.location.reload();else{(B=c.endpoint)&&Object.keys(B).length||(B=null);var P=c.historyEntry,Y=_.cp().resolve(_.t2),g=_.cp().resolve(_.rV),k=null;P&&P.rootData&&(k=P.rootData);var n=k&&L8z(k);!k||n||k.filler?B?(Y.navigate(B,!0),Zyo(this,B)):(c.legacyBorder||n||(c.JSC$26684_savedComponentState==null&&k==null?_.Ob(new _.mc("Incomplete history entry",c.forward)):_.Eb(new _.mc("Malformed history entry",c.JSC$26684_savedComponentState,
c.forward,k))),window.location.reload()):(_.DXI({isHot:!0}),_.lg({webInfo:{navigationReason:"h"}}),_.P2x(),_.Op("srt"),_.Op("pdc"),this.cancelPendingTasks(),Hyi(this,c.forward,k),k.player&&(k.player.loaded=!1),Zyo(this,B),_.HP5(Y,B||{},k,2,{},!1,c).then(function(){x.setPageOffset(g.getCurrentPage(),P.scrollTop||0)}))}};
_.a.initHistoryManager=function(B){if(!this.hasNavigated){this.hasNavigated=!0;var c=_.Y9(this.hostElement).querySelector("#page-manager").getCurrentData();B=isNaN(B)?this.getPageOffset():B;var x=_.cp().resolve(_.t2).currentEndpoint;this.replaceState(x,c,B)}};
_.a.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.a.onYtNavigateStart=function(B,c){this.cancelPendingTasks();c.noProgressBar||(B=_.cp().resolve(_.Bp(F8i)))&&B.start();B=this.hasPendingNavigation?null:this.data;var x=_.cp().resolve(_.rV),P,Y,g;_.T("kevlar_use_vimio_behavior")&&!((P=c.endpoint)==null?0:(Y=P.commandMetadata)==null?0:(g=Y.webCommandMetadata)==null?0:g.ignoreNavigation)&&(P=x.getCurrentPage())&&P.disconnectVisibilityRoot();x.prepareForNavigation(c.pageType,c.endpoint);_.T("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.YJ(1,
"pcl"),_.ai(this.pagePreparer,x.preparePage.bind(x,c.pageType,c.endpoint)));P=this.getPageOffset();this.initHistoryManager(P);c.reload||this.hasPendingNavigation?this.replaceState(c.endpoint,B,P):(B==null?void 0:B.page)==="watch"&&c.pageType==="watch"&&_.T("kevlar_replace_watch_to_watch_history_state")?this.replaceState(c.endpoint,B,P):(B==null?void 0:B.page)!=="shorts"||c.pageType!=="shorts"||c.endpoint.reelWatchEndpoint.sequenceParams||_.T("short_to_short_back_nav_killswitch")?c.type!="navigate-back"&&
c.type!="navigate-forward"&&(c.pageType==="shorts"&&_.aJ(this.hostElement,"yt-shorts-reset"),this.saveAndPush(c.url,c.endpoint,B,P)):this.replaceState(c.endpoint,B,0);this.hasPendingNavigation=!0};
var f5z=function(B){B.hasPendingNavigation=!1;(B=_.cp().resolve(_.Bp(F8i)))&&B.finish()};
ls.prototype.onYtNavigateError=function(B,c){f5z(this);B=this.get("endpoint.commandMetadata.webCommandMetadata.url",c);var x=_.fa(window.location.href);B&&!x.pbjreload&&(c=c.navigationErrorReason||"10",_.T("kevlar_parent_on_pbjreload")&&(x={csn:_.Wf()},this.get("data.endpoint.clickTrackingParams")&&(x.itct=this.data.endpoint.clickTrackingParams),_.Da(B,x)),_.Lr(_.ik(B,{pbjreload:c})))};
ls.prototype.onYtNavigateCache=function(B,c){var x=this,P=c.url,Y=c.endpoint,g=c.data;B=!!c.miniplayer;c=!!c.skipHistory;if(P&&Y&&g){var k=this.getPageOffset(),n=this.data||null;c||this.saveAndPush(P,Y,n,k);P=_.HP5(_.cp().resolve(_.t2),Y,g,B?4:3,{},B);B&&P.then(function(){x.dataUpdatePromise&&x.dataUpdatePromise.then(function(){var b=_.cp().resolve(_.rV);x.setPageOffset(b.getCurrentPage(),0)})})}};
ls.prototype.onYtNavigateFinish=function(B,c){var x=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){iyN(x,c.fromHistory)})};
var iyN=function(B,c){f5z(B);if(B.pendingPlayerOnResponseReceivedActions){for(var x=_.p(B.pendingPlayerOnResponseReceivedActions),P=x.next();!P.done;P=x.next())_.KL(P.value,B.hostElement);B.pendingPlayerOnResponseReceivedActions=[]}x=_.cp().resolve(_.rV);!c&&B.hasNavigated&&((c=x.getCurrentPage())?c.is==="ytd-shorts"||B.tabGesturesIsActive||B.setPageOffsetForNavigation(c,0):_.Ob(Error("$k")));_.Sr(function(){_.Sr(function(){_.Op("pda")})})};
ls.prototype.onYtNavigate=function(B){if(!B.detail.endpoint){var c=new _.mc("Error: Missing yt-navigate endpoint from target:",B.target,B.target.nodeName);_.lb(c)}if(c=_.T("cold_missing_history"))c=E8(),c.init(!1),c=!(c.browserHistory.boundHistoryReplaceState&&c.browserHistory.boundHistoryPushState);if(c){_.FP("DISABLE_WARM_LOADS",!0);c=new _.mc("Failed to initialize history manager",this.getDebugString());var x=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
x?_.Ob(c):_.lb(c)}c=B.detail.endpoint;var P,Y;_.T("debug_forward_web_query_parameters")&&((P=c.commandMetadata)==null?0:(Y=P.webCommandMetadata)==null?0:Y.url)&&(c=JSON.parse(JSON.stringify(c)),c.commandMetadata.webCommandMetadata.url=_.FeX(c.commandMetadata.webCommandMetadata.url,window.location.search));B={type:0,command:c,form:{params:B.detail.params,tempData:B.detail.tempData||{},requestType:B.detail.type,createScreenConfig:B.detail.createScreenConfig,reload:B.detail.reload?B.detail.reload:!1,
requestForm:B.detail}};_.T("kevlar_yt_navigate_command_handler")?(P=_.cp().resolve(_.xu),B.form.skipDefaultElement=!0,P.resolveCommand(c,{form:B.form})):this.handleNavigate(B)};
ls.prototype.handleNavigate=function(B){this.hasSetScrollTopForNavigation=!1;var c=_.cp().resolve(_.t2),x=B.form||{};c.navigate(B.command,x.reload,x.params,x.tempData,x.requestType,x.createScreenConfig,x.ignoreConfirmation,x.requestForm)&&Zyo(this,B.command,x.tempData)};
ls.prototype.onYtPageDataFetched=function(B,c){try{_.Som().reset();this.data=c.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.cp().resolve(_.rV).updatePageData(this.data);var x=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);x&&U9o(x);var P=this.get("response.responseContext.serviceTrackingParams",this.data);P&&U9o(P);var Y=
this.get("playerResponse.onResponseReceivedActions",this.data);Y&&(Y=A2l(this,Y));Y&&_.XX(this.hostElement,Y,this.hostElement);var g=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),k=this.get("response.responseContext.consistencyTokenJar",this.data);if(g||k){var n=_.XVA(),b=(0,_.wW.getValues)(n.tokenJars);g&&n.replace(b,g);k&&n.replace(b,k)}}catch(d){_.lb(d)}};
var Zyo=function(B,c,x){try{B.onYtEndpointChangeHandler(c,x)}catch(P){_.lb(P)}};
_.a=ls.prototype;_.a.onYtEndpointChangeHandler=function(){};
_.a.setPageTitle=function(B){B=(this.pageTitle=B)?B+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+B};
_.a.onYtUpdateTitle=function(B,c){this.setPageTitle(c)};
_.a.setUnseenNotificationCount=function(B){this.unseenNotificationCount=B;this.setPageTitle(this.pageTitle)};
_.a.handleUpdateNotificationsUnseenCountAction=function(B){_.t(B,Kaz)&&((B=_.t(B,Kaz).unseenCount)?this.setUnseenNotificationCount(B):this.setUnseenNotificationCount(0))};
_.a.handleClearCookieAction=function(B){var c;(B=(c=_.t(B,Xb6))==null?void 0:c.cookieName)&&_.cgO(B)};
_.a.onYtUpdateUnseenNotificationCount=function(B,c){this.setUnseenNotificationCount(c)};
_.a.loadData=function(B){var c=this;this.loadDepsPromise.then(function(){var x=_.cp().resolve(_.Bp(_.t2));x||_.lb(Error("al"));if(B&&B.response){if(!B.endpoint){var P=_.SW(window.document.location.href)||"/",Y="";if(P==="/"||P.startsWith("/?"))Y="WEB_PAGE_TYPE_BROWSE";B.endpoint={commandMetadata:{webCommandMetadata:{url:P,webPageType:Y,rootVe:3854}}}}_.HP5(x,B.endpoint,B,5,{})}else B.endpoint?x.navigate(B.endpoint):x.navigate(_.qm);_.EE.cancelJob(c.zwiebackInitJobId);c.zwiebackInitJobId=_.EE.addLowPriorityJob(kqS)})};
var E8=function(){return _.cp().resolve(_.$S)};
ls.prototype.getDebugString=function(){return E8().getDebugString()};
ls.prototype.getThirdPartyManipulationSuspected=function(){return E8().getThirdPartyManipulationSuspected()};
ls.prototype.replaceState=function(B,c,x){E8().saveAndReplace(B,c,x)};
ls.prototype.saveAndPush=function(B,c,x,P){E8().saveAndPush(B,c,x,P)};
var L8z=function(B){return _.t(B.endpoint,_.fN)||_.t(B.endpoint,_.TF)?!0:!B||isNaN(B.expirationTime)?!1:(0,_.BA)()>B.expirationTime},Hyi=function(B,c,x){var P=B.get("response.trackingParams",x),Y=_.Jg(),g=_.Wf();
if(P&&Y&&g&&(P=B.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",x),!P&&x.rootVe&&(P=x.rootVe),Y=c?"forwardButton":"backButton",c=B.get("playerResponse.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",B.data),B=B.get("response.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",B.data),c=(B=c||B)?_.VF(B):void 0,B=_.q_(),Y=[_.$C(x)],_.kk(B,P,c,{dataPromises:Y,csnToClone:x.csn}),x.graftedVes))for(x=
_.p(x.graftedVes),P=x.next();!P.done;P=x.next())_.Xa(B,P.value)};
ls.prototype.onStoreGraftedVeAction=function(B){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(B)):_.Ob(Error("bl"))};
var A2l=function(B,c){return c.filter(function(x){for(var P in x)if(y2B[P])return B.pendingPlayerOnResponseReceivedActions.push(x),!0;return!1})};
_.AJ.Object.defineProperties(ls.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
ls.prototype.onStoreGraftedVeAction=ls.prototype.onStoreGraftedVeAction;ls.prototype.loadData=ls.prototype.loadData;ls.prototype.onYtUpdateUnseenNotificationCount=ls.prototype.onYtUpdateUnseenNotificationCount;ls.prototype.handleClearCookieAction=ls.prototype.handleClearCookieAction;ls.prototype.handleUpdateNotificationsUnseenCountAction=ls.prototype.handleUpdateNotificationsUnseenCountAction;ls.prototype.setUnseenNotificationCount=ls.prototype.setUnseenNotificationCount;
ls.prototype.onYtUpdateTitle=ls.prototype.onYtUpdateTitle;ls.prototype.setPageTitle=ls.prototype.setPageTitle;ls.prototype.onYtEndpointChangeHandler=ls.prototype.onYtEndpointChangeHandler;ls.prototype.onYtPageDataFetched=ls.prototype.onYtPageDataFetched;ls.prototype.handleNavigate=ls.prototype.handleNavigate;ls.prototype.onYtNavigate=ls.prototype.onYtNavigate;ls.prototype.onYtNavigateFinish=ls.prototype.onYtNavigateFinish;ls.prototype.onYtNavigateCache=ls.prototype.onYtNavigateCache;
ls.prototype.onYtNavigateError=ls.prototype.onYtNavigateError;ls.prototype.onYtNavigateStart=ls.prototype.onYtNavigateStart;ls.prototype.cancelPendingTasks=ls.prototype.cancelPendingTasks;ls.prototype.initHistoryManager=ls.prototype.initHistoryManager;ls.prototype.onYtHistoryLoad=ls.prototype.onYtHistoryLoad;ls.prototype.onYtHistoryPop=ls.prototype.onYtHistoryPop;ls.prototype.onYtNavigateSetPageOffset=ls.prototype.onYtNavigateSetPageOffset;ls.prototype.setPageOffset=ls.prototype.setPageOffset;
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],ls.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ls.prototype,"data",void 0);_.L([_.nF("yt-navigate-set-page-offset"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ls.prototype,"onYtNavigateSetPageOffset",null);
_.L([_.nF("yt-history-pop"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ls.prototype,"onYtHistoryPop",null);_.L([_.nF("yt-history-load"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.$05]),_.H("design:returntype")],ls.prototype,"onYtHistoryLoad",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ls.prototype,"onYtNavigate",null);
_.L([_.nF("yt-update-title"),_.H("design:type",Function),_.H("design:paramtypes",[Event,String]),_.H("design:returntype")],ls.prototype,"onYtUpdateTitle",null);_.L([_.nF("yt-update-unseen-notification-count"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Number]),_.H("design:returntype")],ls.prototype,"onYtUpdateUnseenNotificationCount",null);_.L([_.qi()],ls);zRz.YtdAppBehavior=[_.s2.YtActionHandlerBehavior,ls.prototype];var O8=function(){var B=_.dM.apply(this,arguments)||this;B._noAccessors=!0;return B};
_.w(O8,_.dM);O8.prototype.ready=function(){var B=this;_.Y9(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){B.onChange_()})};
O8.prototype.dataChanged_=function(){_.Y9(this.hostElement).querySelector("#checkbox").checked=!1};
O8.prototype.onChange_=function(){var B=_.Y9(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.aJ(this.hostElement,"yt-dismissal-reason-"+B,this.data.feedbackToken)};
O8.prototype.dataChanged_=O8.prototype.dataChanged_;_.L([_.F(),_.H("design:type",Object)],O8.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O8.prototype,"dataChanged_",null);_.L([_.qi()],O8);var ujz=[O8.prototype];var oK=function(){var B=_.dM.apply(this,arguments)||this;B.timeoutJobId=0;B.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return B};
_.w(oK,_.dM);oK.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
oK.prototype.startTimeout=function(){var B=this,c=this.data&&this.data.displayDurationSeconds;c&&!this.timeoutJobId&&(this.timeoutJobId=_.Vp(_.EE,function(){_.gj(B.hostElement,"yt-close-popup-action",[B.is]);B.timeoutJobId=0},c*1E3))};
oK.prototype.cancelTimeout=function(){_.EE.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
oK.prototype.ytdHatsSurveyBehaviorDataChanged=oK.prototype.ytdHatsSurveyBehaviorDataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oK.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.L([_.qi()],oK);var D4c=[_.s2.YtActionHandlerBehavior,oK.prototype];var r2z=function(B,c){var x;return((x=B.prefixMapping)==null?0:x[c])?B.prefixMapping[c]:B.SHARED_RENDERERS_.hasOwnProperty(c)?"yt":B.prefix},QV={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}};QV.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.T("kevlar_mealbar_above_player"),modern:_.T("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"}};
QV.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};QV.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};QV.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
QV.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)"}};
QV.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};
QV.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};
QV.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};
QV.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};QV.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"}};
QV.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};QV.TOAST={component:null,properties:{}};var RRl=new function(B,c,x){this.supportedPopups=B;this.navigationEndpointPopupMap=c;this.popupTypeMap=x;this.supportedPopups=B;this.navigationEndpointPopupMap=c;this.popupTypeMap=x}({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:_.T("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"}),eRs=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$17729_popupConfig=QV;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 BGS=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.WD.getInstance()},Fl=function(B,c){var x=B.pageNameToElement.get(c);
if(!x){switch(c){case "watch":var P=_.T("web_watch_force_learning_journey_for_testing")?_.PV("ytd-watch-learning-journey"):_.T("kevlar_watch_fixie")?_.PV("ytd-watch-fixie"):_.T("kevlar_watch_grid")?_.PV("ytd-watch-grid"):_.PV("ytd-watch-flexy");break;case "learning_journey_watch":P=_.PV("ytd-watch-learning-journey");break;case "shorts":P=_.PV("ytd-shorts");break;case "search":P=_.PV("ytd-search");break;case "channel":P=_.PV("ytd-browse");P.pageSubtype="channels";break;case "trending":P=_.PV("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=
_.PV("ytd-browse");P.pageSubtype=c;break;case "browse":P=_.PV("ytd-browse");break;default:_.Ob(new _.mc("Error getting page element for type",c))}x=P;B.pageNameToElement.set(c,x)}return x};
BGS.prototype.preparePage=function(B,c,x){x&&(B=_.d_(x)||B);if(B!=="watch"&&B!=="learning_journey_watch"){var P=this.elementPoolPopulator,Y=B;Y!=P.targetPage_&&P.pendingPages_.indexOf(Y)>-1&&(P.targetPage_&&(P.pendingPages_.unshift(P.targetPage_),P.abort()),x_y(P,Y),_.sYZ(P,Y))}if((P=Fl(this,B))||!_.t(x,_.yp)){P.isAttached||P===c||(P.hidden=!0);if(!P.data&&(B!=="watch"&&B!=="learning_journey_watch"||!_.T("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(B=(g=_.v5("FILLER_DATA",{})[B])==
null?void 0:g.response)P.data=B}return P}};var c6s=function(B){this.JSC$28575_clientRoot=B;this.playlistHandlerActionMap={"yt-add-to-playlist-command":hd8,"yt-end-playlist-command":m9z,"yt-recover-playlist-command":Vc8,"yt-refresh-playlist-command":NjA,"yt-playlist-remove-videos-action":tcc};_.Ma(_.Gr.getInstance(),this.playlistHandlerActionMap,this.JSC$28575_clientRoot);n0z()},x3B;var vg=function(B,c,x){this.apiKey=B;this.endpoint=c;this.confidenceThreshold=x===void 0?.5:x;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=c==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
c==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Dc8};
_.a=vg.prototype;
_.a.start=function(B){if(this.state===0)if(this.isOnline()){B.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=B.supportsHttpHeadersOverwriteParam);B.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=B.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ep("voice_assistant");_.oJ("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=B.languageCode||"en-US";this.supportsCrossDomainXhr=B.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=B.youtubeAssistantRequest||null;this.listeningHandler=B.listeningHandler||this.listeningHandler;this.audioDetectedHandler=B.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=B.stopHandler||this.stopHandler;this.completeHandler=B.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=B.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=B.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
B.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=B.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=B.accessToken;this.additionalHeaders=B.additionalHeaders||{};var c;this.prefetchResponseTimeoutMs=(c=B.prefetchResponseTimeoutMs)!=null?c:this.prefetchResponseTimeoutMs;PDN(this);this.startAudio();Y2o(this)}else this.errorHandler("OFFLINE")};
_.a.stop=function(B){var c=B===void 0?{}:B;B=c.logCancel===void 0?!0:c.logCancel;var x=c.logMicClosed===void 0?!0:c.logMicClosed;var P=c.handleError===void 0?!0:c.handleError;c=c.handleStop===void 0?!0:c.handleStop;this.state!==0&&(B&&zs("voz_cx"),SH(this,{logMicClosed:x,handleStop:c}),P&&this.errorHandler("ABORTED"))};
_.a.getState=function(){return this.state};
_.a.isSupported=function(){return!0};
_.a.stopAudio=function(B){(B===void 0||B)&&zs("voz_mf")};
_.a.startAudio=function(){zs("voz_vp");return _.$C(null)};
var aPc=function(B,c){B.channelOpen&&(B.state!==2&&(B.state=2,zs("voz_ss"),B.listeningHandler()),c=new Uint8Array(c),c='{ "audioIn": "'+_.PN(c)+'" }',B.channel.send(c))},SH=function(B,c){var x=c===void 0?{}:c;
c=x.logMicClosed===void 0?!0:x.logMicClosed;x=x.handleStop===void 0?!0:x.handleStop;B.vozEndOfDataTimeout>-1&&(clearTimeout(B.vozEndOfDataTimeout),B.vozEndOfDataTimeout=-1);gJ8(B);B.stopAudio(c);B.channel&&(B.channelOpen=!1,B.manuallyClosedChannel=!0,B.channel.close(),B.channel=void 0);B.transcribedSpeechResults=[];B.state=0;x&&B.stopHandler()},PDN=function(B){var c={httpHeadersOverwriteParam:B.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},B.additionalHeaders,B.accessToken&&B.isUsingVoz?{Authorization:"Bearer "+B.accessToken}:{"x-goog-api-key":B.apiKey}),supportsCrossDomainXhr:B.supportsCrossDomainXhr};B.channel=new Qk(B.endpoint,c);B.channel.open();_.wX(B.channel,"w",function(){var x=B.channel,P=x.send,Y=B.isUsingVoz?"PLACEHOLDER":"example";Y={config:{dialogStateIn:{languageCode:B.languageCode},deviceConfig:{deviceId:Y,deviceModelId:Y},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!B.isUsingVoz)Y.config.requestType=4;else if(B.isUsingVoz&&B.youtubeAssistantRequest){var g=JSON.stringify(B.youtubeAssistantRequest);Y.config.internalIn={youtubeAssistantS3InputJson:g}}P.call(x,Y);B.channelOpen=!0;B.manuallyClosedChannel=!1});
_.wX(B.channel,"x",function(){B.manuallyClosedChannel||(B.channelOpen=!1,B.channel=void 0,SH(B))});
_.wX(B.channel,"z",function(x){if(x.data){gJ8(B);for(var P=0;P<x.data.length;P++){var Y=B,g=x.data[P],k=g.speechResults;if(k)a:{var n=[];g=[];var b=!1;k=_.p(k);for(var d=k.next();!d.done;d=k.next()){d=d.value;if(d.noSpeech){SH(Y);Y.errorHandler("NO_SPEECH");break a}d.transcript!==void 0&&d.stability!==void 0&&(d.stability<Y.confidenceThreshold&&(b=!0),b?g.push(d.transcript):n.push(d.transcript))}if(n.length!==0||g.length!==0)n=n.join(" "),g=g.join(" "),Y.receivedEndOfUtterance&&!Y.isUsingVoz?Y.isUsingVoz||
Y.completeHandler([n,g]):(b=Y,k=n,d=g,zs("voz_sf"),b.transcriptionUpdateHandler(k,d),b.transcribedSpeechResults=[k,d]),Y.receivedEndOfUtterance&&(zs("voz_eou"),Y.transcriptionCompleteHandler([n,g]),Y.isUsingVoz&&(Y.prefetchResponseTimeoutMs===0?SH(Y,{logMicClosed:!1,handleStop:!0}):Y.prefetchResponseTimeoutMs>0&&sil(Y)))}else Y.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?Y.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(pVS(Y),g&&(n=Y.transcribedSpeechResults,zs("voz_rqf"),Y.completeHandler(n,g)))):g.eventType==="END_OF_UTTERANCE"?Y.receivedEndOfUtterance=!0:(zs("voz_err"),Y.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Ob(Error("cl")))}}});
_.wX(B.channel,"y",function(x){SH(B);switch(x.status){case 1:x="WEBCHANNEL_NETWORK_ERROR";break;case 2:x="WEBCHANNEL_SERVER_ERROR";break;default:x="WEBCHANNEL_UNKNOWN_ERROR"}B.errorHandler(x);B.logError(Error(x))})};
vg.prototype.logError=function(B){_.lb(B)};
vg.prototype.isOnline=function(){return!0};
var sil=function(B){pVS(B);B.prefetchResponseSetTimeoutId=setTimeout(function(){SH(B,{logMicClosed:!1,handleStop:!0})},B.prefetchResponseTimeoutMs)},pVS=function(B){B.prefetchResponseSetTimeoutId>-1&&(clearTimeout(B.prefetchResponseSetTimeoutId),B.prefetchResponseSetTimeoutId=-1)},Y2o=function(B){gJ8(B);
B.noResponseReceivedTimeout=window.setTimeout(function(){SH(B);B.errorHandler("NO_SPEECH")},11E3)},gJ8=function(B){B.noResponseReceivedTimeout>-1&&(window.clearTimeout(B.noResponseReceivedTimeout),B.noResponseReceivedTimeout=-1)},zs=function(B){_.Op(B,void 0,"voice_assistant")};var yV=function(){vg.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.w(yV,vg);yV.prototype.isSupported=function(){return I1c()};
yV.prototype.startAudio=function(){var B=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Im(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(P){kON(B,P)};
this.processor.connect(this.audioContext.destination);var c=function(P){B.stream=P;if(!B.audioContext)return _.$C(null);P=B.audioContext.createMediaStreamSource(P);B.processor&&P.connect(B.processor);return _.$C(null)},x={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?c(this.stream):(x=navigator.mediaDevices.getUserMedia(x))?x.then(c).catch(function(P){SH(B);P.name&&P.name==="NotAllowedError"?B.errorHandler("NO_MICROPHONE_PERMISSION"):(B.errorHandler("AUDIO_ERROR"),B.logError(P));return _.Im(null)}):(SH(this),this.errorHandler("AUDIO_ERROR"),_.Ob(Error("dl")));
return vg.prototype.startAudio.call(this)};
yV.prototype.stopAudio=function(B){B=B===void 0?!0:B;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(c){c.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;vg.prototype.stopAudio.call(this,B)};
yV.prototype.isOnline=function(){return navigator.onLine};
var kON=function(B,c){if(B.audioContext)if(window.OfflineAudioContext){var x=B.audioContext.sampleRate,P=c.inputBuffer.getChannelData(0);c=new window.OfflineAudioContext(1,P.length,16E3);for(var Y=c.createBuffer(1,P.length,x),g=Y.getChannelData(0),k=0,n=0;n<P.length;n++)g[n]=P[n],k+=g[n]*g[n];!B.audioDetected&&Math.sqrt(k/P.length)>.01&&(B.audioDetected=!0,B.audioDetectedHandler());P=c.createBufferSource();P.buffer=Y;P.connect(c.destination);P.start(0);c.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var d=Math.floor(16384E3/x),q=new Int16Array(d),C=0;C<d;++C)q[C]=Math.max(-1,Math.min(1,b[C]))*32767;aPc(B,q.buffer)};
c.startRendering()}else XV8(B,c)},XV8=function(B,c){var x=B.audioContext.sampleRate,P=c.inputBuffer.getChannelData(0),Y=Math.floor((x+8E3)/16E3);
x=P.length/Y;c=new Float32Array(x);for(var g=0;g<x;++g)c[g]=P[g*Y];P=new Int16Array(x);for(Y=0;Y<x;++Y)P[Y]=Math.max(-1,Math.min(1,c[Y]))*32767;aPc(B,P.buffer)};var $3z={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var nJc=function(){this.JSC$17794_audioEnabled=!0;this.audioFeedbackHolder={}};
nJc.prototype.isPlaying=function(B){return B.currentTime>0&&!B.paused&&!B.ended&&B.readyState>2};
var bQN=function(B){for(var c=_.p(Object.values($3z)),x=c.next();!x.done;x=c.next())x=x.value,B.audioFeedbackHolder[x]=new Audio,B.audioFeedbackHolder[x].src="/s/search/audio/"+x+".mp3",B.audioFeedbackHolder[x].load()},Gs=function(B,c){if(B.JSC$17794_audioEnabled!==!1&&c in B.audioFeedbackHolder){for(var x=_.p(Object.values(B.audioFeedbackHolder)),P=x.next();!P.done;P=x.next())P=P.value,B.isPlaying(P)&&P.pause();
B.audioFeedbackHolder[c].currentTime=0;B.audioFeedbackHolder[c].play().catch(function(){})}};var KWi=function(B,c){var x=this;this.store=B;this.service=c;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){x.setState("offline");x.stop()};
this.audioPlayer=new nJc;var P;(P=this.audioPlayer)==null||bQN(P)};
_.a=KWi.prototype;_.a.getService=function(){return this.service};
_.a.isEnabled=function(){return!!this.service};
_.a.isSupported=function(){var B;return(B=this.service)==null?void 0:B.isSupported()};
_.a.start=function(){var B=this,c,x,P,Y,g,k,n,b,d,q,C,h,V;return _.X(function(N){switch(N.nextAddress){case 1:B.store.dispatch(mei("",""));if(!navigator.onLine)return B.setState("offline"),N.return();window.addEventListener("offline",B.handleOfflineEvent);B.stream=null;if(!B.permissionsSupported){N.jumpTo(2);break}_.kM(N,3);return _.K(N,jii(B),5);case 5:c=N.yieldResult;if(!c)return(x=B.audioPlayer)==null||Gs(x,"failure"),N.return();B.service.stream=B.stream;B.setState("listening");_.Gw(N,2);break;
case 3:_.be(N),B.permissionsSupported=!1;case 2:P={context:_.prd(_.xr())},P.youtubeAssistantParams={searchParams:{inlineSearchResponse:B.enableInlineSearchResponse}},Y=function(l,E){B.store.dispatch(TV6("transcribing"));B.store.dispatch(mei(l,E))},g=function(){var l;
(l=B.audioPlayer)==null||Gs(l,"open");B.setState("listening")},k=function(){B.setState("transcribing")},n=function(l){B.setErrorState(l)},b=function(l,E){var S;
(S=B.audioPlayer)==null||Gs(S,"success");E&&(_.T("kevlar_voice_search_inline_search")&&(B.responseProcessor=_.cp().resolve(_.X9d),B.responseProcessor&&(S=E.navigationAction,l=E.prefetchedSearchResponse,S&&l&&(S=(new _.nqI).JSC$11064_getStoreKey(S),_.Hi(B.responseProcessor,l,S)))),B.JSC$17812_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",E))},d=function(){window.removeEventListener("offline",B.handleOfflineEvent)},q=_.d9x(!1),C=q.Authorization!=null,h=B.enableFirstPartyAuth||
B.enableFPAForSignedInUsers&&C?q:{"X-Goog-Visitor-Id":q["X-Goog-Visitor-Id"]},V={completeHandler:b,
errorHandler:n,listeningHandler:g,audioDetectedHandler:k,stopHandler:d,transcriptionUpdateHandler:Y,youtubeAssistantRequest:P,languageCode:U3A(),additionalHeaders:h,supportsCrossDomainXhr:B.enableFirstPartyAuth||B.enableFPAForSignedInUsers&&C,supportsHttpHeadersOverwriteParam:!B.disableHttpHeadersOverwrite},B.service.start(V),_.Kq(N)}})};
_.a.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.a.reset=function(){this.store.dispatch(_.YN({type:"RESET_VOICE_SEARCH_STATE"}))};
_.a.setState=function(B){this.store.dispatch(TV6(B))};
_.a.setErrorState=function(B){switch(B){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var c;(c=this.audioPlayer)==null||Gs(c,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)jii(this);else{var x;(x=this.audioPlayer)==null||Gs(x,"failure");this.setState("permission-denied")}break;case "ABORTED":var P;(P=this.audioPlayer)==null||Gs(P,"no_input");break;default:var Y;(Y=this.audioPlayer)==
null||Gs(Y,"no_input");this.setState("timeout")}};
var jii=function(B){var c,x;return _.X(function(P){switch(P.nextAddress){case 1:return _.K(P,navigator.permissions.query({name:"microphone"}),2);case 2:c=P.yieldResult;if(c.state==="granted")return P.return(!0);if(c.state==="denied")return B.setState("permission-denied"),P.return(!1);B.setState("permission");x={audio:{sampleSize:16,channelCount:1},video:!1};_.kM(P,3);return _.K(P,navigator.mediaDevices.getUserMedia(x),5);case 5:return B.stream=P.yieldResult,P.return(!0);case 3:return _.be(P),B.setState("permission-denied"),
P.return(!1)}})},U3A=function(){var B=_.v5("INNERTUBE_CONTEXT_HL"),c=_.v5("INNERTUBE_CONTEXT_GL");
return B.indexOf("-")>-1?B:B+"-"+c};var d3r=function(B,c,x){KWi.call(this,c,x);this.JSC$17812_actionRouter=B;this.enableInlineSearchResponse=_.T("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.T("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.T("kevlar_voice_search_enable_fpa_signedin_users")},q2y;
_.w(d3r,KWi);
var CDl=function(){if(!q2y){var B="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.T("kevlar_voice_search_auth_enabled")||_.T("kevlar_voice_search_use_yt_endpoint")?B="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.T("kevlar_voice_search_use_fp_endpoint")&&(B="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");q2y=
new d3r(_.Gr.getInstance(),_.uG(),new yV(_.v5("VOZ_API_KEY"),B,.5))}return q2y};var hVy=function(B){this.JSC$17816_clientRoot=B;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$17816_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)]]));B=_.p(this.eventListeners);for(var c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;x=_.p(x);for(var P=x.next();!P.done;P=x.next()){var Y=
_.p(P.value);P=Y.next().value;Y=Y.next().value;c.addEventListener(P,Y)}}_.Ma(_.Gr.getInstance(),this.autonavPauseActionMap,this.JSC$17816_clientRoot)},m3F,TG6=function(B){return _.T("kevlar_autonav_popup_filtering")?(B=_.uI(B))?B.hasAttribute("prevent-autonav"):!0:!0};
_.a=hVy.prototype;_.a.onIronOverlayOpened=function(B){TG6(B)&&(this.autonavPauseReasons.overlayOpen=!0,Mu(this))};
_.a.onIronOverlayClosed=function(B){TG6(B)&&(this.autonavPauseReasons.overlayOpen=!1,Mu(this))};
_.a.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Mu(this)};
_.a.onYtAutonavPauseBlur=function(){var B=this;_.EE.addJob(function(){B.isInBackground()||(B.autonavPauseReasons.inputBoxFocus=!1,Mu(B))},8,0)};
_.a.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Mu(this)};
_.a.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Mu(this)};
_.a.onYtAutonavPauseScroll=function(){var B=_.cp().resolve(_.rV);B.isOnWatch()&&(B=B.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=B.getBoundingClientRect().top<-200,Mu(this))};
_.a.onYtAutonavPauseUserEngagement=function(B){var c=this;if(_.T("user_engagement_enable_autoplay_pause_feature")){var x=Number(B.lowEngagementThresholdMs);isNaN(x)||x<=0||B.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.cp().resolve(_.lv),_.co()<x?_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.$D8()?(this.userEngagementCsn=_.Wf(),_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
c.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Mu(this)):_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.m_o(Error("el`"+JSON.stringify(B)))};
_.a.onYtAutonavPausePlayer=function(B){this.autonavPauseReasons.requestedByPlayer=!!B.detail;Mu(this)};
_.a.onYtAutonavVisibilityChanged=function(){var B=this,c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return(c=_.e5())?_.K(Y,c.getPlayerPromise(),2):Y.return();x=Y.yieldResult;P=x.isMuted()||x.getVolume()===0;B.autonavPauseReasons.backgroundAndMute=B.isInBackground()&&P;Mu(B);_.Kq(Y)})};
_.a.onYtAutonavPausePlayerEnded=function(){_.cp().resolve(_.lv);var B=144E5;_.T("user_engagement_enable_autoplay_pause_feature")||_.T("is_part_of_any_user_engagement_experiment")||(B=45E5);this.autonavPauseReasons.longIdle=_.co()>B;Vpy(this);Mu(this)};
_.a.onYtUserActivity=function(){var B=this;this.autonavPauseReasons.userEngagement&&(_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",B.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Mu(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",B.userEngagementCsn);_.Wo()}),this.autonavPauseReasons.youthereLactExperiment=!1,Mu(this));
this.autonavPauseReasons.longIdle&&!_.T("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Mu(this))};
_.a.isInBackground=function(){var B=window.document.visibilityState;return!(!B||B==="visible")};
var Mu=function(B){for(var c=!1,x=_.p(Object.values(B.autonavPauseReasons)),P=x.next();!P.done;P=x.next())P=P.value,c=c||P;c?_.eP.getInstance().pause(B.autonavPauseReasons):(B=_.eP.getInstance(),B.autonavState_==3?(B.setState(2,!1,!1),B.autonavPauseReason_=void 0):B.autonavState_==1&&(B.disabledAutonavPauseReason_=void 0))},Vpy=function(B){var c=!1;
if(_.T("enable_autoplay_pause_by_lact")){_.cp().resolve(_.lv);c=_.Yu("autoplay_pause_by_lact_sec")*1E3;var x=_.Yu("autoplay_pause_by_lact_sampling_fraction");(c=_.co()>=c&&Math.random()<x)&&!_.$D8()&&(_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),c=!1)}c!==B.autonavPauseReasons.youthereLactExperiment&&(B.autonavPauseReasons.youthereLactExperiment=c)&&(B.userEngagementCsn=_.Wf(),_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",B.userEngagementCsn)}));
B.autonavPauseReasons.userEngagement&&_.Vp(_.EE,function(){_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",B.userEngagementCsn)})};
hVy.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.u8("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Wo(),this.autonavPauseReasons.youthereLactExperiment=!1,Mu(this));this.autonavPauseReasons.userEngagement&&(_.u8("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Mu(this))};
hVy.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Le=function(){var B=_.z.apply(this,arguments)||this;B.miniGuideVisible=!1;B.guideOpened=_.T("disable_initial_guide_state_fix")?!1:B.canFitPersistentGuide(B.initialBodyClientWidth);B.guideUserStateOpened=B.getInitialGuideUserStateOpened();B.isFullscreenShorts=!1;B.miniGuideWidthThreshold=_.Yu("kevlar_mini_guide_width_threshold",791);B.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");B.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
B.persistentGuideBlockedPagePathRegex=new RegExp(B.persistentGuideBlockedPagesPatterns.join("|"));B.animationTransitionDuration=0;B.lateDataResolver=_.Hw();B.initialGuideDataFetchFailed=!1;B.initialLoad=!0;B.guideRenderers=new Set;B.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return B};
_.w(Le,_.z);_.a=Le.prototype;_.a.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.a.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.a.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.a.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.a.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.a.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.a.ready=function(){_.cp().addProvider({provide:_.zH,useValue:this.hostElement})};
_.a.attached=function(){var B=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.$9(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.$9(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.$9(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.$9(this,this.onYtGuideShow));_.fl(this,function(){B.animationTransitionDuration=200})};
_.a.detached=function(){document.removeEventListener("yt-navigate-finish",_.$9(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.$9(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.$9(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.$9(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.$9(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.$9(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.$9(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.a.getData=function(){return this.data};
_.a.load=function(){var B=this,c,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=B.lateDataResolver.resolve.bind(B),g.return(B.lateDataResolver.promise);if(window.ytInitialGuideData)return c=_.Hw(),c.resolve(window.ytInitialGuideData),g.return(c.promise);P=!1;_.kM(g,2);return _.K(g,B.fetchGuideData(),4);case 4:x=g.yieldResult;_.Gw(g,3);break;case 2:Y=_.be(g),Y.message==="Returned error"&&(P=!0);
case 3:if(x)return g.return(x);B.onYtGuideClose();P||(B.initialGuideDataFetchFailed=!0);return g.return(B.lateDataResolver.promise)}})};
_.a.fetchGuideData=function(){var B=this,c,x,P,Y,g,k,n;return _.X(function(b){if(b.nextAddress==1)return c=_.cp(),B.guidePromise||(x=c.resolve(_.ou),B.guidePromise=_.Zn(x,Ixz)),_.K(b,B.guidePromise,2);if(b.nextAddress!=3)return P=b.yieldResult,Y=c.resolve(_.Zd),_.K(b,Y(),3);(g=b.yieldResult)&&((k=P)==null?void 0:(n=k.responseContext)==null?void 0:n.maxAgeSeconds)!==0&&g.put("service:guide:fallback",new _.sf({innertubeResponse:P}));return b.return(P)})};
_.a.initializeGuideDataIfEmpty=function(){var B=this,c,x;return _.X(function(P){if(P.nextAddress==1){if(!B.initialGuideDataFetchFailed||B.data)return P.return();_.kM(P,2);return _.K(P,B.fetchGuideData(),4)}if(P.nextAddress!=2)return(c=P.yieldResult)&&B.lateDataResolver.resolve(c),_.Gw(P,0);x=_.be(P);_.Ob(x);_.Kq(P)})};
_.a.initializeGuideData=function(){var B=this,c;return _.X(function(x){switch(x.nextAddress){case 1:return _.jX(u4B(),{mainAppWeb:_.Z3()}),_.kM(x,2),_.K(x,B.load(),4);case 4:B.data=x.yieldResult;_.Gw(x,3);break;case 2:_.be(x),_.UB(u4B(),"FAILURE");case 3:c=B.data&&B.data.items&&B.data.items.length>0?"SUCCESS":"FAILURE",_.UB(u4B(),c),_.Kq(x)}})};
_.a.setGuideData=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1)return c.disabled?Y.return():c.data?(B.data=c.data,c.guideRenderers.add(B),Y.return()):_.K(Y,c.initializeGuideData(),2);c.graftGuideToPage();x=_.zu("IS_HOMEPAGE_COLD")?"eop":void 0;_.T("disable_element_pool_populator")?c.setGuideDataAfterInit(B):(P=new _.YJ(1,x),_.ai(P,c.setGuideDataAfterInit.bind(c,B)));_.Kq(Y)})};
_.a.setGuideDataAfterInit=function(B){B.data=this.data;B.markDirty();this.guideRenderers.add(B);_.Sr(function(){_.Op("gle")});
_.fl(this,function(){_.Op("gpe")})};
_.a.graftGuideToPage=function(){if(this.data){var B=this.data&&this.data.trackingParams;B&&(B=_.VF(B),_.$k(_.q_(),B))}};
_.a.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.$9(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.a.onDrawerOpenedChanged=function(B,c){!c.value&&this.guideOpened&&(this.guideOpened=!1)};
_.a.onYtGuideToggle=function(B){var c=this.guideOpened;this.guideOpened=!c;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var x=_.CW();_.hi(0,109,!this.guideUserStateOpened);x.save()}this.updateGuideDrawerElementState();if(this.guideElement){var P;this.guideOpened&&((P=B.detail)==null?0:P.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.$9(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.$9(this,
this.onAppDrawerTransitioned))}c||this.initializeGuideDataIfEmpty()};
_.a.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.$9(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Aj(this.guideElement)};
_.a.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.$9(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Cvz(this.guideOpened))};
_.a.guidePersistentAndVisibleChanged=function(){_.sp(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.a.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.YN({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.a.miniGuideVisibleChanged=function(){_.sp(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.a.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Cvz(this.guideOpened)),this.initialLoad=!1);_.sp(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.a.activeEndpointChanged=function(){_.sp(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.a.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.a.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()};
_.a.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var B=this.canFitPersistentGuide(this.cachedClientWidth);B?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=B}this.updateGuideDrawerElementState()};
_.a.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.a.getGuideOpened=function(){return this.guideOpened};
_.a.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.a.getActiveEndpoint=function(){return this.activeEndpoint};
_.a.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.a.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&&_.aJ(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.a.computeGuidePersistentAndVisible=function(){var B=this;_.yo(this,"computeGuidePersistentAndVisible",function(){B.guidePersistentAndVisible=B.guideOpened&&B.guidePersistent;B.guideIsVisibleButNotPersistent=!(!B.guideOpened||B.guidePersistent)})};
_.a.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.a.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.a.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.a.startLoadingWatch=function(){this.closeGuide()};
_.a.startLoadingShorts=function(){_.T("web_hide_guide_on_shorts")&&this.closeGuide()};
_.a.onYtNavigateFinish=function(B,c){if(!_.$V||c){this.activeEndpoint=c.endpoint;this.pageType=c.pageType;this.pageUrl=c.response.url;var x,P;B=(P=_.t((x=c.endpoint)==null?void 0:x.commandMetadata,_.Br))==null?void 0:P.url;!this.pageUrl&&B&&(this.pageUrl=B);_.T("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.a.getVisibleGuideRenderer=function(){for(var B=_.p(this.guideRenderers),c=B.next();!c.done;c=B.next())if(c=c.value,this.miniGuideVisible&&c.is==="ytd-mini-guide-renderer"||this.guideOpened&&c.is==="ytd-guide-renderer")return c;return null};
_.a.markGuideRendererDirty=function(B){if(B){typeof B.markDirty==="function"&&B.markDirty();B=_.p([].concat(_.wq(_.Y9(B).children)));for(var c=B.next();!c.done;c=B.next())this.markGuideRendererDirty(c.value)}};
_.a.persistentGuideEnabled=function(B,c){if(!c||B==="watch"||B==="settings"||B==="shorts"&&this.isFullscreenShorts||_.T("reels_web_disable_persistent_guide_shorts")&&B==="shorts")return!1;var x=_.$u(c)||"";return _.T("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(P){return x===P}):!this.persistentGuideBlockedPagePathRegex.test(x)};
_.a.canFitPersistentGuide=function(B){var c=_.Yu("kevlar_persistent_guide_width_threshold",1312);return c===-1||_.T("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:B>c};
_.a.canFitMiniGuide=function(B){return this.miniGuideWidthThreshold===-1?!1:B>this.miniGuideWidthThreshold};
_.a.onResize=function(){var B=this;_.yo(this,"calculateGuideState",function(){B.onResizeDebounced()})};
_.a.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.a.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.a.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.a.getInitialGuideUserStateOpened=function(){return!_.CW().getFlag(109)};
_.AJ.Object.defineProperties(Le.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.v5("initialBodyClientWidth")||window.innerWidth}}});
Le.prototype.onResize=Le.prototype.onResize;Le.prototype.observeForMiniGuideVisible=Le.prototype.observeForMiniGuideVisible;Le.prototype.computeGuidePersistentAndVisible=Le.prototype.computeGuidePersistentAndVisible;Le.prototype.cachedClientWidthChanged=Le.prototype.cachedClientWidthChanged;Le.prototype.resetGuide=Le.prototype.resetGuide;Le.prototype.activeEndpointChanged=Le.prototype.activeEndpointChanged;Le.prototype.guideOpenedChanged=Le.prototype.guideOpenedChanged;
Le.prototype.miniGuideVisibleChanged=Le.prototype.miniGuideVisibleChanged;Le.prototype.guideIsVisibleButNotPersistentChanged=Le.prototype.guideIsVisibleButNotPersistentChanged;Le.prototype.guidePersistentAndVisibleChanged=Le.prototype.guidePersistentAndVisibleChanged;Le.prototype.onGuideElementChanged=Le.prototype.onGuideElementChanged;Le.prototype.onGuidePersistentChanged=Le.prototype.onGuidePersistentChanged;Le.prototype.onRenderGuideChanged=Le.prototype.onRenderGuideChanged;
Le.prototype.onActiveEndpointChanged=Le.prototype.onActiveEndpointChanged;Le.prototype.onMiniGuideVisibleChanged=Le.prototype.onMiniGuideVisibleChanged;Le.prototype.onGuideIsVisibleButNotPersistentChanged=Le.prototype.onGuideIsVisibleButNotPersistentChanged;Le.prototype.onGuidePersistendAndVisibleChanged=Le.prototype.onGuidePersistendAndVisibleChanged;_.L([_.J(_.Oc),_.H("design:type",Object)],Le.prototype,"ironResizableBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Le.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Le.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Le.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"disabled",void 0);
_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"guidePersistentAndVisible",void 0);_.L([_.bF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onGuidePersistendAndVisibleChanged",null);_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.bF("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.L([_.F(),_.H("design:type",Object)],Le.prototype,"miniGuideVisible",void 0);_.L([_.bF("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onMiniGuideVisibleChanged",null);_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"forceMiniGuideClose",void 0);
_.L([_.F(),_.H("design:type",Object)],Le.prototype,"activeEndpoint",void 0);_.L([_.bF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onActiveEndpointChanged",null);_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"renderGuide",void 0);_.L([_.bF("renderGuide"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onRenderGuideChanged",null);
_.L([_.F(),_.H("design:type",Object)],Le.prototype,"guideOpened",void 0);_.L([_.F(),_.H("design:type",Boolean)],Le.prototype,"guidePersistent",void 0);_.L([_.bF("guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onGuidePersistentChanged",null);_.L([_.F(),_.H("design:type",Object)],Le.prototype,"guideUserStateOpened",void 0);_.L([_.F(),_.H("design:type",String)],Le.prototype,"pageUrl",void 0);
_.L([_.F(),_.H("design:type",String)],Le.prototype,"pageType",void 0);_.L([_.F(),_.H("design:type",Number)],Le.prototype,"cachedClientWidth",void 0);_.L([_.F(),_.H("design:type",Object)],Le.prototype,"guideElement",void 0);_.L([_.F({selector:_.qs}),_.H("design:type",Object)],Le.prototype,"isFullscreenShorts",void 0);_.L([_.bF("guideElement"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onGuideElementChanged",null);
_.L([_.bF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"guidePersistentAndVisibleChanged",null);_.L([_.CF("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.L([_.bF("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"miniGuideVisibleChanged",null);_.L([_.CF("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"guideOpenedChanged",null);_.L([_.bF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"activeEndpointChanged",null);
_.L([_.CF("pageUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"resetGuide",null);_.L([_.CF("cachedClientWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"cachedClientWidthChanged",null);_.L([_.bF("guideOpened","guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"computeGuidePersistentAndVisible",null);
_.L([_.CF("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"observeForMiniGuideVisible",null);_.L([_.nF("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Le.prototype,"onResize",null);_.L([_.y({disableElementRegistration:!0,is:"yt-guide-manager"})],Le);var tpB=_.G(Le,"yt-guide-manager",void 0,{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var ZJ=function(){var B=_.z.apply(this,arguments)||this;B.JSC$17826_keyboardInUse=!1;B.boundHandleCapturedKeydownEvent=function(c){B.handleCapturedKeydownEvent(c)};
return B};
_.w(ZJ,_.z);_.a=ZJ.prototype;_.a.attached=function(){this.listenToDocument(document)};
_.a.listenToDocument=function(B){B.addEventListener("keydown",_.$9(this,this.onKeyDownEvent));B.addEventListener("keyup",_.$9(this,this.onKeyUpEvent));B.addEventListener("mousedown",_.$9(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||B.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);B.addEventListener("yt-page-data-updated",_.$9(this,this.onPageUpdate))};
_.a.detached=function(){this.unlistenFromDocument(document)};
_.a.unlistenFromDocument=function(B){B.removeEventListener("keydown",_.$9(this,this.onKeyDownEvent));B.removeEventListener("keyup",_.$9(this,this.onKeyUpEvent));B.removeEventListener("mousedown",_.$9(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||B.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);B.removeEventListener("yt-page-data-updated",_.$9(this,this.onPageUpdate))};
_.a.ready=function(){_.cp().addProvider({provide:_.Xr,useValue:this})};
_.a.isKeyBoardInUse=function(){return this.JSC$17826_keyboardInUse};
_.a.handleCapturedKeydownEvent=function(B){if(B.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(B)};
_.a.onMouseDownEvent=function(){this.JSC$17826_keyboardInUse=!1};
_.a.onPageUpdate=function(){if(_.T("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.T("web_shorts_keyboard_shortcut_usage_log")){_.Be.clear();for(var B=_.p(_.RL),c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;x=_.JW(x);_.Be.set(c,x);_.Gq(_.Wf(),_.Jg(),x)}_.ce.clear();B=_.p(_.eG);for(c=B.next();!c.done;c=B.next())x=_.p(c.value),c=x.next().value,x=x.next().value,x=_.JW(x),_.ce.set(c,x),_.Gq(_.Wf(),_.Jg(),x);_.M9(_.Wf(),_.Jg(),[].concat(_.wq(_.ce.values()),
_.wq(_.Be.values())));_.Z1(_.Wf(),[].concat(_.wq(_.ce.values()),_.wq(_.Be.values())))}};
_.a.onMiniplayerActiveChange=function(){var B;(B=_.cp().resolve(_.Ge).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(B.document):this.unlistenFromDocument(B.document))};
_.a.ignoreKeyEvent=function(B){if(B.ctrlKey||B.altKey)if(_.T("kevlar_macro_markers_keyboard_shortcut")){if(B.keyCode!==37&&B.keyCode!==39)return!0}else return!0;var c=_.AV(B)||[];return _.UDz(c)?!0:B.defaultPrevented?(b$(B.keyCode,B.shiftKey,this.isShortsPage),!0):B.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(B):!1};
_.a.isSpacebarClick=function(B){var c=B||window.event;var x;c.composedPath&&typeof c.composedPath==="function"?x=c.composedPath():x=c.path;x&&x.length?c=x[0]:(c=c||window.event,c=c.target||c.srcElement,c.nodeType==3&&(c=c.parentNode));return c&&B.keyCode===32&&(B=c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT",c=(c=c.getAttribute("role"))&&(c==="option"||c==="button"||c.indexOf("menuitem")===0),B||c)?!0:!1};
_.a.onKeyDownEvent=function(B){if(!this.ignoreKeyEvent(B)&&(B.keyCode===191&&(B.shiftKey||B.metaKey?B.repeat!=null&&B.repeat||(this.openHotkeyDialog(),b$(B.keyCode,B.shiftKey,this.isShortsPage)):(this.focusSearchBox(),B.preventDefault())),!B.metaKey)){var c=_.cp().resolve(_.Ge);switch(B.keyCode){case 9:this.JSC$17826_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(B);break;case 84:c.pipController.getWindow()&&window.focus();this.toggleTheaterMode(B.keyCode,B.shiftKey);break;case 73:c.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(B.keyCode,B.shiftKey);break;case 70:if(this.isShortsPage&&_.T("web_fullscreen_shorts")){_.q4l();break}this.isMiniplayerActive()?c.pipController.getWindow()&&(c.close(!0),window.focus()):this.passEventToPlayer(B);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(B.keyCode,B.shiftKey):this.closeMiniplayer(B.keyCode,B.shiftKey)||this.passEventToPlayer(B);break;case 13:B.shiftKey&&_.T("web_ephemeral_actions")&&_.cp().resolve(_.bT).activate(B);break;
default:this.passEventToPlayer(B)}}};
_.a.onKeyUpEvent=function(B){if(!this.ignoreKeyEvent(B))if(_.T("web_speedmaster_spacebar_control")&&B.keyCode===32)this.handlePlayerSpaceKey(B,!0);else{var c=this.getPlayerManager();c&&(c=c.getPlayer())&&c.handleGlobalKeyUp(B.keyCode,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code)}};
_.a.getPlayerManager=function(){var B=_.e5(),c=_.cp().resolve(_.Bp(_.rV));return B&&c&&c.isOnWatch()?B:null};
_.a.passEventToPlayer=function(B,c){var x=this,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return!_.T("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&x.isMiniplayerActive()?P=_.cp().resolve(_.Ge).getPlayerElement():x.inlinePreviewIsActive?(Y=_.sp(x.hostElement,"yt-get-inline-preview-player-action"))&&Y[0]&&(P=Y[0]):P=_.e5(),P?_.K(k,P.getPlayerPromise(),3):k.jumpTo(0);g=k.yieldResult;c?g.handleGlobalKeyUp(B.keyCode,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code,B.repeat):g.handleGlobalKeyDown(B.keyCode,
B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code,B.repeat);B.keyCode!==38&&B.keyCode!==40&&b$(B.keyCode,B.shiftKey,x.isShortsPage);_.Kq(k)})};
_.a.focusSearchBox=function(){_.aJ(this.hostElement,"yt-focus-searchbox")};
_.a.openHotkeyDialog=function(){_.aJ(this.hostElement,"yt-open-hotkey-dialog")};
_.a.isMiniplayerActive=function(){return _.cp().resolve(_.Ge).isMiniplayerActive()};
_.a.closeMiniplayer=function(B,c){return this.isMiniplayerActive()?(_.cp().resolve(_.Ge).close(),b$(B,c,this.isShortsPage),!0):!1};
_.a.toggleTheaterMode=function(B,c){var x=_.vv(_.uG().getState()),P=this.getPlayerManager(),Y=_.T("disable_theater_mode_keyboard")||_.zu("START_IN_FULL_WINDOW_MODE");P&&!Y&&(x=!x,_.cr()&&_.T("external_fullscreen")&&(x=!0),_.gj(this.hostElement,"yt-toggle-theater-mode",[x]),b$(B,c,this.isShortsPage))};
_.a.toggleMiniplayer=function(B,c){var x=this.getPlayerManager();if(this.isMiniplayerActive()){var P;((P=_.cp().resolve(_.Bp(_.rV)))==null?0:P.isOnWatch())?_.cp().resolve(_.Ge).close(!0):_.mB(_.cp().resolve(_.Ge));b$(B,c,this.isShortsPage)}else x&&(_.gj(this.hostElement,"yt-activate-miniplayer-from-watch-action"),b$(B,c,this.isShortsPage))};
_.a.handlePlayerSpaceKey=function(B,c){var x=!!_.e5()||this.isMiniplayerActive();x=_.T("disable_space_scroll_fix")||x;_.T("global_spacebar_pause")&&!this.isKeyBoardInUse()&&x&&(B.preventDefault(),this.passEventToPlayer(B,c))};
_.a.isPresentingTheaterMode=function(){return _.T("web_watch_enable_tm_esc_key")?_.vv(_.uG().getState())&&!_.cr():!1};
ZJ.prototype.onMiniplayerActiveChange=ZJ.prototype.onMiniplayerActiveChange;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],ZJ.prototype,"ytdReduxBehavior",void 0);_.L([_.F({selector:_.sAA}),_.H("design:type",Boolean)],ZJ.prototype,"inlinePreviewIsActive",void 0);_.L([_.F({selector:_.Kc6}),_.H("design:type",Boolean)],ZJ.prototype,"isShortsPage",void 0);
_.L([_.F({selector:_.Ev}),_.H("design:type",Boolean)],ZJ.prototype,"miniplayerIsActive",void 0);_.L([_.bF("miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZJ.prototype,"onMiniplayerActiveChange",null);_.L([_.y({disableElementRegistration:!0,is:"yt-hotkey-manager"})],ZJ);_.G(ZJ,"yt-hotkey-manager",void 0,{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var Hg=function(){var B=_.z.apply(this,arguments)||this;B.loopStateEntityKey_=null;B.playlistLoopStateEntity_=null;B.isShuffleNextPlaylist=!1;B.PLAYER_EVENTS_=new Map;B.playerListenersSetup_=!1;B.videoSkipJob_=0;B.canAutoAdvance_=!1;B.playerManager_=null;B.TEST_ONLY={};return B};
_.w(Hg,_.z);_.a=Hg.prototype;_.a.ready=function(){_.cp().addProvider({provide:_.vK,useValue:this.hostElement})};
_.a.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_)};
_.a.attached=function(){document.addEventListener("yt-navigate-start",_.$9(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.$9(this,this.onYtNavigateFinish_))};
_.a.detached=function(){document.removeEventListener("yt-navigate-start",_.$9(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.$9(this,this.onYtNavigateFinish_))};
_.a.updatePlaylistEventListeners=function(B,c){c&&!this.playerListenersSetup_?(this.playerManager_=B,this.registerPlaylistEventListeners_(B)):!c&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(B))};
_.a.setPlayer=function(B){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=B};
_.a.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.a.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.a.registerPlaylistEventListeners_=function(B){var c=this;B.getPlayerPromise().then(function(x){c.playerListenersSetup_||(c.ytPlayerListenerBehavior.listenToPlayerEvents(x,c.PLAYER_EVENTS_),c.playerListenersSetup_=!0)})};
_.a.removePlaylistEventListeners_=function(B){var c=this;B.getPlayerPromise().then(function(x){c.playerListenersSetup_&&(c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x,c.PLAYER_EVENTS_),c.playerListenersSetup_=!1)})};
_.a.setPlaylistComponent=function(B){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.$9(this,this.onPlaylistYtNavigate_)),B&&(B.data&&this.playlistComponent.data&&B.data.playlistId==this.playlistComponent.data.playlistId?(B.loopOn=this.playlistComponent.loopOn,B.shuffleOn=this.playlistComponent.shuffleOn):(B.loopOn=!1,B.shuffleOn=!1),this.isShuffleNextPlaylist&&(B.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=B;this.playlistComponent.addEventListener("yt-navigate",
_.$9(this,this.onPlaylistYtNavigate_))};
_.a.setAutoplayRenderer=function(B){this.autoplayData=B};
_.a.setPlaylistData=function(B){this.currentPlaylistData_=B;_.aJ(this.hostElement,"yt-playlist-data-updated");_.wW.isEmpty(B)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(B)};
_.a.setPlayerPlaybackControlData=function(B){this.playerManager_&&this.playerManager_.updatePlayerComponents(B.playlistPanelRenderer)};
_.a.getPlaylistData=function(){return this.currentPlaylistData_};
_.a.getTempData_=function(B,c){if(this.playlistComponent==null)return null;B={};this.playlistComponent.shuffleOn&&(B.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(B.loop_on=this.playlistComponent.loopOn);c&&(B.autonav="1",_.cp().resolve(_.lv),c=_.co(),c>0&&(B.lact=c),this.playerManager_&&(c=this.playerManager_.getPlayer())&&c.shouldSendVisibilityState()&&(c=c.getVisibilityState(),c!=0&&(B.vis=c)));_.T("enable_unknown_lact_fix_on_html5")&&(_.cp().resolve(_.lv),B.lact=
_.co());return B};
_.a.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.a.setLoopStateEntityKey_=function(B){var c;this.loopStateEntityKey_=((c=this.getPlaylistLoopData_(B))==null?void 0:c.playlistLoopStateEntityKey)||null};
_.a.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.a.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.a.skipVideo=function(){var B=this,c=_.T("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||c)c=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.C3(_.EE,function(){B.onPlaylistNext();B.videoSkipJob_=0},c)};
_.a.cancelVideoSkip=function(){this.videoSkipJob_&&(_.EE.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.a.isInBackground_=function(){var B=window.document.visibilityState;return!(!B||B=="visible")};
_.a.onPlaylistIndex_=function(B){this.playlistComponent&&(B=this.playlistComponent.data.contents[B].playlistPanelVideoRenderer.navigationEndpoint,_.aJ(this.hostElement,"yt-navigate",{endpoint:B,tempData:this.getTempData_(B)}))};
_.a.onPlayerStateChange_=function(B){if(B=B==0&&this.playlistComponent&&this.canAutoAdvance_)B=_.eP.getInstance(),B=!(B.autonavState_===3?B.autonavPauseReason_&&B.autonavPauseReason_.inputBoxFocus===!0:B.autonavState_===1&&B.disabledAutonavPauseReason_&&B.disabledAutonavPauseReason_.inputBoxFocus===!0);B&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.a.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.a.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.a.navigateToAutoplayWatchEndpoint_=function(B,c,x){var P=this.playlistComponent.data.currentIndex,Y=this.getNumPlayableVideos_();B=="NORMAL"&&c=="autoplayVideo"&&P+1>=Y&&x||!(B=this.getVideoEndpoint_(B,c))||(x=this.getTempData_(B,x),_.aJ(this.hostElement,"yt-navigate",{endpoint:B,tempData:x}))};
_.a.getNumPlayableVideos_=function(){for(var B=0,c=_.p(this.playlistComponent.data.contents||[]),x=c.next();!x.done;x=c.next())x.value.playlistPanelVideoRenderer&&(B+=1);return B};
_.a.getVideoEndpoint_=function(B,c){if(this.autoplayData&&this.autoplayData.sets)for(var x=0,P=this.autoplayData.sets.length;x<P;x++){var Y=this.autoplayData.sets[x];if(Y.mode==B){if(Y[c])return Y[c];break}}else B=new _.mc("AutoplayData is undefined in playlist manager","Mode: "+B+" endpoint: "+c),_.Ob(B)};
_.a.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.a.onPlaylistYtNavigate_=function(B){if(B.detail.endpoint){B.stopPropagation();var c=B.detail;c.tempData=this.getTempData_(B.detail.endpoint);_.aJ(this.hostElement,"yt-navigate",c)}};
_.a.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.a.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.a.playlistLoopStateEntityChanged_=function(B){var c=this,x,P,Y;return _.X(function(g){if(g.nextAddress==1){if(!B)return g.return();x=B.state==="PLAYLIST_LOOP_STATE_ONE";return c.playerManager_?_.K(g,c.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(P=g.yieldResult,P.setLoopVideo(x));Y=B.state==="PLAYLIST_LOOP_STATE_ALL";c.playlistComponent&&(c.playlistComponent.loopOn=Y);_.Kq(g)})};
_.a.getPlaylistLoopData_=function(B){var c,x;if(B=B==null?void 0:(c=B.playlistButtons)==null?void 0:(x=c.menuRenderer)==null?void 0:x.topLevelButtons)for(c=_.p(B),x=c.next();!x.done;x=c.next())if(x=x.value,x.playlistLoopButtonRenderer)return x.playlistLoopButtonRenderer};
_.a.getLoopStateCommand_=function(B){var c=this.getPlaylistData(),x;c=((x=this.getPlaylistLoopData_(c))==null?void 0:x.states)||[];var P;B=(P=_.t(c[B?1:2],_.$wW))==null?void 0:P.button;var Y;return(Y=_.t(B,_.z3))==null?void 0:Y.command};
_.a.onPlayerLoopChange_=function(B){this.playlistLoopStateEntity_&&(B?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(B=this.getLoopStateCommand_(B))&&this.ytComponentBehavior.resolveCommand(B)};
_.a.onSleepTimerSettingsChanged_=function(B){this.canAutoAdvance_=B!=="End of video"};
Hg.prototype.onPlaylistLoopStateEntityChanged=Hg.prototype.onPlaylistLoopStateEntityChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Hg.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],Hg.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Hg.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Hg.prototype,"loopStateEntityKey_",void 0);
_.L([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.m0Q}),_.H("design:type",Object)],Hg.prototype,"playlistLoopStateEntity_",void 0);_.L([_.bF("playlistLoopStateEntity_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hg.prototype,"onPlaylistLoopStateEntityChanged",null);_.L([_.y({disableElementRegistration:!0,is:"yt-playlist-manager"})],Hg);_.G(Hg,"yt-playlist-manager",void 0,{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var wVs,NGF=function(){if(wVs!==void 0)return wVs;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return wVs=B};var fe=function(){var B=_.z.apply(this,arguments)||this;B.lastCallback=null;B.getAccountLinkPromises={};B.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);B.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return B};
_.w(fe,_.z);_.a=fe.prototype;_.a.getLocation=function(){return window.location.href};
_.a.getCompletionUrl=function(){return _.uh(this.getLocation())};
_.a.containsRedirectState=function(B){return(B=_.lU(_.BE7(B)))?(new URLSearchParams(B)).get("redirect_state")!==null:!1};
_.a.createGalConfig=function(B,c){var x=new MAS;B=x=c?this.getPopupOrRedirectSetting(x,_.v5("LINK_API_KEY"),_.v5("LINK_API_KEY_REDIRECT"),B):Lpr(x,_.v5("LINK_API_KEY"));B.authUser=_.v5("SESSION_INDEX")||0;B.supportedFlows=new Set([4]);return B.build()};
_.a.getPopupOrRedirectSetting=function(B,c,x,P){this.isGalInteractionPopupMode(P)?(B.interactionMode=0,B=Lpr(B,c)):(B.interactionMode=1,c=this.getCompletionUrl(),B.completionUrl=c,B=Lpr(B,x));return B};
_.a.isGalInteractionPopupMode=function(B){if(this.redirectModeProviderAllowlist.has(B))switch(B){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.a.getStatusEntityKeyForProviderId=function(B){return _.kN(B+":all","accountLinkStatusEntity")};
_.a.findNestedPropValue=function(B,c){var x=!1,P=null;JSON.stringify(B,function(Y,g){x||Y!==c||(x=!0,P=g);return x?null:g});
return P};
_.a.findAccountLinkButtonViewModel=function(B,c){var x=null,P=!1;JSON.stringify(B,function(Y,g){P||g.accountLinkStatusEntityKey!==c||g.accountLinkStatusSecondaryEntityKey||(P=!0,x=g);return P?null:g});
return x};
_.a.executeLinkingSuccessOrFailureCommands=function(B,c,x){var P=null,Y;(c==null?0:(Y=c.url)==null?0:Y.includes("account_sharing"))?P=c==null?void 0:c.response:P=c==null?void 0:c.response;(c=this.findAccountLinkButtonViewModel(P,B))?(B=x?this.findNestedPropValue(c,"onSuccessCommand"):this.findNestedPropValue(c,"onFailureCommand"))?_.bg([B],this.hostElement):_.MR(Error("fl")):_.MR(Error("gl`"+B))};
_.a.handleInitializeRequest=function(B,c){var x=this,P=j1c(this.createGalConfig(B,!0));this.containsRedirectState(this.getLocation())?XX6(B,P.config,P.galService).then(function(Y){var g=x.getStatusEntityKeyForProviderId(B);if(Y.statusCode===1)c&&x.executeLinkingSuccessOrFailureCommands(g,c,!0),Y=x.getLocation().indexOf("#"),Y!==-1&&window.history.pushState(null,"",x.getLocation().substring(0,Y));else return c&&x.executeLinkingSuccessOrFailureCommands(g,c,!1),Promise.reject(Error(Y.statusMessage))}).catch(function(Y){_.Ob(Y);
_.JP("gamingAccountLinkStatusChanged",{serviceId:B,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Y)}):this.getAccountLinkPromises[B]=P.startLinkingSession({serviceId:B})};
_.a.handleAccountLinkCommand=function(B){_.t(B,Ny8)&&this.handleLinkRequest(_.t(B,Ny8))};
_.a.handleLinkRequest=function(B){var c=this,x=B.thirdPartyId;if(x)if(this.isGalInteractionPopupMode(x)){var P=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",B.onFailureCommand)},Y=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",B.onSuccessCommand)};
this.lastCallback=Y;this.getAccountLinkPromises[x].then(function(g){mss(g).then(function(k){k.statusCode===1?Y():P()})}).catch(function(){P()})}else this.getAccountLinkPromises[x].then(function(g){mss(g).then(function(k){if(k.statusCode!==1)return Promise.reject(Error(k.statusMessage))})}).catch(function(g){_.Ob(g);
_.JP("gamingAccountLinkStatusChanged",{serviceId:x,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.a.closeAndFire=function(B,c){_.gj(this.hostElement,"yt-close-popup-action",[B]);c&&_.bg([c],this.hostElement)};
_.a.handleAccountUnlinkCommand=function(B){_.t(B,IyF)&&this.handleUnlinkRequest(_.t(B,IyF))};
_.a.handleUnlinkRequest=function(B){var c=this,x=B.thirdPartyId;if(x){var P=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",B.onFailureCommand)},Y=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",B.onSuccessCommand)};
this.lastCallback=Y;var g=j1c(this.createGalConfig(x,!1));this.unlinkUserGal(g,x).then(function(k){k.statusCode===1?Y():P()}).catch(function(){P()})}};
_.a.unlinkUserGal=function(B,c){return B.deleteLink(c)};
_.a.handleLogAccountLinkingEventCommand=function(B){_.T("enable_gel_log_commands")&&_.t(B,J4l)&&(B=_.t(B,J4l).event)&&_.JP("gamingAccountLinkStatusChanged",B)};
_.AJ.Object.defineProperties(fe,{template:{configurable:!0,enumerable:!0,get:function(){return NGF()}}});
_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],fe.prototype,"ytOpenPopupBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],fe.prototype,"ytActionHandlerBehavior",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-third-party-manager"})],fe);_.G(fe,"ytd-third-party-manager",function(){return NGF()},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var IPz,J6l=function(){return IPz!==void 0?IPz:IPz=document.createElement("template")};
document.head.appendChild(J6l().content);var WWl,lPy=function(){if(WWl!==void 0)return WWl;var B=document.createElement("template");_.I(B,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");B.content.insertBefore(J6l().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WWl=B};var EJS=_.r2(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),is=function(){var B=_.z.apply(this,arguments)||this;B.currentPage=void 0;B.renderLoadingStateJobId=0;B.updatePageDataJobId=0;B.pageDisposeJobsets=new WeakMap;B.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"};B.applyZoomTransition=_.aH("web_page_transition_type")==="zoom";B.applySlideTransition=_.aH("web_page_transition_type")==="slide"||_.T("enable_plj_landing_page");B.TEST_ONLY=void 0;return B};
_.w(is,_.z);_.a=is.prototype;_.a.ready=function(){var B=_.cp();B.addProvider({provide:_.rV,useValue:this});B.addProvider({provide:_.oe4,useValue:this})};
_.a.created=function(){this.pagePool=new BGS;this.contextSwitcher=new bys};
_.a.attached=function(){_.aJ(this.hostElement,"attached");var B=_.cp().resolve(_.Bp(_.Oi));B&&(this.contextSwitcher.JSC$17650_networkService_=B);this.viewTransitionCoordinator=_.cp().resolve(_.Bp(_.po));this.setupPageTransitionAnimation()};
_.a.getPageOffset=function(B){return B.getScrollTop()};
_.a.setPageOffset=function(B,c){try{B.setScrollTop(c)}catch(x){}};
_.a.setPageOffsetForNavigation=function(B,c){_.aJ(this.hostElement,"yt-navigate-set-page-offset",{page:B,offset:c===void 0?0:c})};
_.a.pauseActiveContext=function(){var B=this.contextSwitcher;B.activeContext_&&B.activeContext_.pause()};
_.a.getModuleNameForType=function(B){return B==="watch"?_.T("kevlar_watch_fixie")?"watchFixie":_.T("kevlar_watch_grid")?"watchGrid":"watchFlexy":B==="shorts"||B==="search"?B:"browse"};
_.a.attachPage=function(B){var c,x=!_.T("pc_is_attached_ks")&&(B==null?void 0:(c=B.polymerController)==null?void 0:c.isAttached);if(!B.isAttached&&!x)try{_.Y9(this.hostElement).appendChild(B)}catch(Y){var P;_.Ob(new _.mc("Error attaching page element for component",{origin:(P=this.currentPage)==null?void 0:P.is,component:B.is}))}};
_.a.setActivePage=function(B){var c=this,x=!1,P=function(){var Y=c.isOnWatch(),g=c.currentPage;if(B)if(B!==c.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));c.currentPage=B;var k,n=_.d_((k=c.data)==null?void 0:k.endpoint);g&&_.aJ(c.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:B.is,newPageSubtype:n});_.HW().dispatch(_.YN({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:B.is}));_.HW().dispatch(_.YN({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:n||""}));B.hidden=
!1;c.attachPage(B);B.active=!0;B.setAttribute("role","main");g&&c.setPageOffsetForNavigation(B,0);_.T("kevlar_remove_page_dom_on_switch")&&!Y&&g&&_.Y9(c.hostElement).removeChild(g)}else x=!0;else Y=new _.mc("Unable to set active page",g?g.is:"unknown origin",(n=c.data)==null?void 0:n.endpoint),_.lb(Y)};
this.viewTransitionCoordinator?v08(this.viewTransitionCoordinator,P,this.viewTransitionConfigForSetActivePage(this.currentPage,B)):P();return x};
_.a.viewTransitionConfigForSetActivePage=function(B,c){return _.T("web_thumbnail_to_watch_transition")&&(B==null?void 0:B.is)==="ytd-browse"&&this.isWatchPage(c)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(B==null?void 0:B.is)==="ytd-browse"&&(c==null?void 0:c.is)==="ytd-browse"&&B!==c?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(B==null?void 0:B.is)!=="ytd-browse"||(c==null?void 0:c.is)!=="ytd-watch-learning-journey"&&
(c==null?void 0:c.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.a.updatePageData=function(B){var c=this,x=this.data;this.updatePageDataJobId&&_.EE.cancelJob(this.updatePageDataJobId);this.data=B;return new _.bb(function(P){var Y=function(){B.filler?c.performDataUpdate(B,x):BXA(function(){c.performDataUpdate(B,x)});
var b=_.So();_.yO(b,"cr")||b.processSignal("cr");P()},g=function(){B&&B.page==="watch"?c.updatePageDataJobId=_.C3(_.EE,Y):Y()};
if(_.T("kevlar_enable_mss_page_modules_client")&&B){var k=_.cp().resolve(_.LC),n=c.getModuleNameForType(B.page);(k=GlA(k,[n]))?k.then(g):g()}else g()})};
_.a.isDownloadsPage=function(B){var c,x;return(B==null?void 0:(c=B.endpoint)==null?void 0:(x=c.browseEndpoint)==null?void 0:x.browseId)==="FEdownloads"};
_.a.setPlayerSyncInterval=function(B){var c;return _.X(function(x){if(x.nextAddress==1)return _.K(x,_.cp().resolve(_.Yx),2);c=x.yieldResult;c.setUpPositionSyncInterval(B);_.Kq(x)})};
_.a.performDataUpdate=function(B,c){_.T("kevlar_early_popup_close")||_.gj(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var x=!B.filler;x&&(_.Op("lps"),_.T("config_age_report_killswitch")||l$i());var P=xL(B),Y,g=!1;if(_.T("kevlar_remove_page_dom_on_switch")){var k=c&&xL(c);P===k&&(Y=this.getCurrentPage())}Y||(Y=Fl(this.pagePool,P));x&&PAS(this.pagePool.elementPoolPopulator,P);x&&!this.renderLoadingStateJobId&&(g=this.setActivePage(Y));if(Y){k=P==="watch";var n=
P==="shorts",b=P==="learning_journey_watch";_.T("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Y);if(k||n||b)Y.playerData=B.playerResponse;if(n){B.reelWatchSequenceResponse?Y.reelWatchSequenceResponse=B.reelWatchSequenceResponse:B.cachedReelWatchSequenceResponse?Y.reelWatchSequenceResponse=B.cachedReelWatchSequenceResponse:_.T("web_enable_cached_reel_sequence_fix")&&Y.cachedReelWatchSequenceResponse&&!Y.reelWatchSequenceResponse&&(Y.reelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse);
Y.currentEndpoint=B.endpoint;var d;Y.isPreviousPageShorts=!!(c==null?0:(d=c.endpoint)==null?0:d.reelWatchEndpoint);B.cachedReelWatchSequenceResponse=B.reelWatchSequenceResponse||B.cachedReelWatchSequenceResponse||(c==null?void 0:c.cachedReelWatchSequenceResponse);Y.cachedReelWatchSequenceResponse=B.cachedReelWatchSequenceResponse}d=this.isDownloadsPage(B);var q=this.isDownloadsPage(c);d&&!q?this.setPlayerSyncInterval(6E5):!d&&q&&this.setPlayerSyncInterval();_.T("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(B,Y,x,k,n,b);M_F(_.cp().resolve(_.Ge),c,B);_.rZ(_.cp().resolve(_.lv));_.T("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Y);x?(x=typeof Y.loadPage,x==="function"?(Y.pageContext=K8F(this.contextSwitcher,Y,Y.data!==B.response),x=function(){Y.loadPage(B.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&Y.is==="ytd-browse"&&g&&(P==="learning"||this.isDifferentBrowseId(B==null?void 0:B.endpoint,
c==null?void 0:c.endpoint))?this.applySlideTransition?v08(this.viewTransitionCoordinator,x,{transitionType:"slide"}):v08(this.viewTransitionCoordinator,x,{transitionType:"zoom"}):x()):_.Eb(new _.mc("b/38014653 ",[P,
Y.is,Y.nodeName,x,Y.isAttached,c&&xL(c),this.hostElement.children.length])),_.Op("pdl")):(Y.hidden=!0,B.response.filler=!0,Y.data=B.response,this.attachPage(Y));_.aJ(this.hostElement,"yt-page-data-updated",{pageType:P})}_.Vp(_.EE,function(){_.T("logging_avoid_blocking_during_navigation")&&_.iFd().transition("none");var C=W8l(),h=Y;if(B){var V=gCc(B),N=sJ6(B),l;a:{if(B.playerResponse){var E=B.playerResponse,S;if((l=E.auxiliaryUi)==null?0:(S=l.messageRenderers)==null?0:S.upsellDialogRenderer){l=E.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(B.response&&(l=B.response,(E=l.overlay)==null?0:E.upsellDialogRenderer)){l=l.overlay.upsellDialogRenderer;break a}l=void 0}var M;var f;S=(M=B.playerResponse)==null?void 0:(f=M.auxiliaryUi)==null?void 0:f.messageRenderers;M=(S==null?void 0:S.enforcementMessageViewModel)||(S==null?void 0:S.bkaEnforcementMessageViewModel);M=(M==null?void 0:M.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?M:void 0;var Z;a:{if(B.response&&(f=B.response,(Z=f.overlay)==null?0:Z.commandWrapperPromoRenderer)){Z=
f.overlay.commandWrapperPromoRenderer;break a}Z=void 0}J2F(C,V,N,l,M,Z,h)}})};
_.a.preparePrefetchRequest=function(B,c,x,P,Y,g){var k,n,b,d,q,C,h,V,N,l,E,S,M,f,Z;return _.X(function(u){if(u.nextAddress==1)return!x||!(P||Y||g)||_.T("kevlar_disable_background_prefetch")&&_.ya(_.SNX)()===0?u.return():(k=_.R2(c))?_.K(u,k.getPlayerPromise(),2):u.return();n=u.yieldResult;b=_.cp().resolve(_.Bp(_.Oi));if(!b)return u.return();if(Y)return d=_.pC(_.Vt),XHF(d,(q=B.endpoint)==null?void 0:q.reelWatchEndpoint,c.reelWatchSequenceResponse,n,b),u.return();V=(C=B.response)==null?void 0:(h=C.responseContext)==
null?void 0:h.webResponseContextExtensionData;if(!V)return u.return();M=(N=B.response)==null?void 0:(l=N.contents)==null?void 0:(E=l.twoColumnWatchNextResults)==null?void 0:(S=E.autoplay)==null?void 0:S.autoplay;f=_.cp().resolve(_.vK);Z=_.pC(_.Vt);$_S(Z,V,n,b,f,M);_.Kq(u)})};
_.a.movePlayerToWatch=function(B){var c=this,x,P;return _.X(function(Y){x=Fl(c.pagePool,"watch");P=x.getPlayerContainer();B.appendTo(P);_.Kq(Y)})};
_.a.movePlayerToShorts=function(B){var c=this,x,P,Y;return _.X(function(g){x=Fl(c.pagePool,"shorts");P=x.getPlayerContainer();(Y=B)==null||Y.appendTo(P,void 0,!0);_.Kq(g)})};
_.a.getPlayerFromWatch=function(){var B=Fl(this.pagePool,"watch");return _.R2(B)};
_.a.getPlayerFromShorts=function(){var B=Fl(this.pagePool,"shorts");return _.R2(B)};
_.a.startLoadingWatch=function(){var B=Fl(this.pagePool,"watch");this.renderLoadingStateJobId?(_.EE.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(B)};
_.a.startLoadingShorts=function(){var B=Fl(this.pagePool,"shorts");this.setActivePage(B)};
_.a.startLoadingLearningJourney=function(){var B=Fl(this.pagePool,"learning_journey_watch");this.setActivePage(B)};
_.a.getCurrentPage=function(){return this.currentPage};
_.a.getDestinationPageType=function(){return this.destinationPageType};
_.a.getCurrentData=function(){return this.data};
_.a.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.a.isOnShorts=function(){var B;return((B=this.currentPage)==null?void 0:B.is)==="ytd-shorts"};
_.a.isWatchPage=function(B){return!!B&&(B.is==="ytd-watch-flexy"||B.is==="ytd-watch-fixie"||B.is==="ytd-watch-grid")};
_.a.preparePage=function(B,c){var x=this,P=function(){var k=x.pagePool.preparePage(B,x.currentPage,c);k&&x.attachPage(k)},Y=function(k){_.oG(k,c);
_.Ob(k)};
if(_.T("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(B);if(g=GlA(_.cp().resolve(_.LC),[g])){g.then(P.bind(this)).catch(Y.bind(this));return}}try{P()}catch(k){Y(k)}};
_.a.lazyPrepareCriticalPages=function(B,c){B=_.d_(c)||B;_.T("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(B).then(this.maybePrepareWatchPage.bind(this,B)):this.maybePrepareWatchPage(B)};
_.a.maybePrepareWatchPage=function(B){B!=="watch"&&_.Vp(_.EE,this.preparePage.bind(this,"watch"))};
_.a.downloadPageModules=function(B){B=this.getModuleNameForType(B);var c=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);c.delete(B);var x=_.cp().resolve(_.LC);x.JSC$16411_loadModules(B);return x.JSC$16411_loadModules.apply(x,_.wq(c))};
_.a.renderPageLoadingState=function(B,c){this.preparePage(B,c);var x=Fl(this.pagePool,B);x.loadingData&&(x.loadingData.endpoint=c);x.loading=!0;this.setActivePage(x);B!=="watch"&&B!=="learning_journey_watch"||_.aJ(this.hostElement,"yt-guide-close")};
_.a.prepareForNavigation=function(B,c){var x=this;if(this.currentPage&&this.data){var P=_.d_(c)||B;this.destinationPageType=P;xL(this.data)==P&&_.aJ(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((B==="watch"||B==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.EE.cancelJob(this.renderLoadingStateJobId);_.cp().resolve(_.Ge).deactivate(c);var Y=this.data;this.renderLoadingStateJobId=_.Nv(_.EE,function(){if(x.data!=
Y){var g=Fl(x.pagePool,B);x.setActivePage(g)}else x.renderPageLoadingState(B,c);x.renderLoadingStateJobId=0},150)}};
_.a.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var B=new _.YJ(1);this.currentPage.pageDisposeJobs.forEach(function(c){_.ai(B,c)});
this.pageDisposeJobsets.set(this.currentPage,B)}};
_.a.flushPageDisposeJobset=function(B){var c=this.pageDisposeJobsets.get(B);c&&(c.flushJobs(),this.pageDisposeJobsets.delete(B))};
_.a.onYtStopOldPlayer=function(B,c){c=c===void 0?!1:c;var x,P=_.gr("kevlar_new_stop_old_player_logic_pages");if(_.T("kevlar_check_current_page_on_stop_old_player")&&(P.length===0||this.currentPage&&P.includes(this.currentPage.is)))if(this.data&&(x=xL(this.data)),xL(B)===x&&this.currentPage&&xL(this.currentPage.data)!==x)var Y=_.R2(this.currentPage);else x=xL(this.data),Y=Fl(this.pagePool,x),Y=_.R2(Y);else this.data&&(x=xL(this.data),Y=Fl(this.pagePool,x),Y=_.R2(Y));if(Y)if(B=xL(B),P=Fl(this.pagePool,
B),P=_.R2(P),Y==P)c&&!_.T("kevlar_disable_preemptive_player_reset")&&Y.resetForNewPlayback();else if(c=x==="watch"&&B!=="watch",!c||B==="shorts"||_.BZd()&&!tRB(this.data)&&B!=="yts-products"&&B!="mini_app"&&B!="playables")x=_.cp().resolve(_.Ge),c&&x.isMiniplayerActive()&&x.pipController.getWindow()||Y.stop()};
_.a.setupPageTransitionAnimation=function(){var B=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){r6(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){B.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){B.hostElement.style.viewTransitionName=""}});
r6(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){B.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){B.hostElement.style.viewTransitionName=""}});
var c=_.Yu("web_page_transition_exit_ms"),x=_.Yu("web_page_transition_wait_ms"),P=_.Yu("web_page_transition_enter_ms");if(!isNaN(c)||!isNaN(x)||!isNaN(P))if(c=EuA(EJS,c,x,P))x=document.createElement("style"),x.textContent=_.VJY(c),document.head.appendChild(x)}};
_.a.isDifferentBrowseId=function(B,c){B=_.t(B,_.qA);c=_.t(c,_.qA);return(B==null?void 0:B.browseId)!==(c==null?void 0:c.browseId)};
_.AJ.Object.defineProperties(is,{template:{configurable:!0,enumerable:!0,get:function(){return lPy()}}});
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],is.prototype,"ytActionHandlerBehavior",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-page-manager"})],is);_.G(is,"ytd-page-manager",function(){return lPy()},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var Ak=function(B,c,x){x=x===void 0?!1:x;_.tG.call(this);this.draggableElement=B;this.callbacks=c;this.allowClicks=x;this.dragOccurred=!1;this.internalDragger=new _.z4(this.draggableElement);this.dragDelay=new _.rY(this.delayedDrag.bind(this));OQy(this);this.allowClicks&&(_.g6Z(this.internalDragger,5),B.addEventListener("click",_.$9(this,this.validateClick),{capture:!0}))};
_.w(Ak,_.tG);var OQy=function(B){_.wX(B.internalDragger,"earlycancel",function(){B.allowClicks&&(B.dragOccurred=!1)});
_.wX(B.internalDragger,"start",function(c){var x,P;(P=(x=B.callbacks).onStartDrag)==null||P.call(x,c);!c.defaultPrevented&&B.allowClicks&&(B.dragOccurred=!0)});
_.wX(B.internalDragger,"beforedrag",function(c){c.preventDefault();B.lastOffset=new _.Jx(c.clientX-B.internalDragger.startX,c.clientY-B.internalDragger.startY);B.dragDelay.start()});
_.wX(B.internalDragger,"end",function(){B.dragDelay.stop();var c,x;(x=(c=B.callbacks).onEndDrag)==null||x.call(c);B.lastOffset=void 0})};
Ak.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
Ak.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.$9(this,this.validateClick),{capture:!0})};
Ak.prototype.validateClick=function(B){this.dragOccurred&&(this.dragOccurred=!1,B.stopPropagation(),B.preventDefault())};var us=function(B,c){_.tG.call(this);this.JSC$17851_resizeContainer=B;this.callbacks=c;this.aspectRatio=16/9;this.JSC$17851_resizers=[];B=_.p(this.JSC$17851_resizeContainer.children);for(c=B.next();!c.done;c=B.next())oJi(this,c.value)};
_.w(us,_.tG);us.prototype.disposeInternal=function(){for(var B=_.p(this.JSC$17851_resizers),c=B.next();!c.done;c=B.next())c.value.dispose();B=_.p(this.JSC$17851_resizeContainer.children);for(c=B.next();!c.done;c=B.next())c.value.setAttribute("disabled","");this.JSC$17851_resizers.length=0};
us.prototype.setSize=function(B){this.currentMiniplayerSize=B};
us.prototype.setAspectRatio=function(B){this.aspectRatio=B};
us.prototype.update=function(B,c){for(var x=_.p(this.JSC$17851_resizeContainer.children),P=x.next();!P.done;P=x.next()){P=P.value;var Y=P.getAttribute("alignment");_.sm(P,"disabled",Y===B||Y===c)}};
var oJi=function(B,c){var x=c.getAttribute("alignment"),P=new Ak(c,{onStartDrag:function(Y){if(c.hasAttribute("disabled"))Y.preventDefault();else{B.dragStartSize=B.currentMiniplayerSize;var g,k;(k=(g=B.callbacks).onStartResize)==null||k.call(g)}},
onDrag:function(Y){if(B.dragStartSize){x!=="north"&&x!=="west"||Y.scale(-1);var g=x==="north"||x==="south";Y=g?Y.y:Y.x;g&&B.aspectRatio>=1?Y*=B.aspectRatio:!g&&B.aspectRatio<1&&(Y/=B.aspectRatio);B.callbacks.onResize(B.dragStartSize+Y)}}});
B.JSC$17851_resizers.push(P)};var Qiz,FWs=function(){return Qiz!==void 0?Qiz:Qiz=document.createElement("template")};
document.head.appendChild(FWs().content);var vJy;var zVN=_.rM(function(B){var c=_.Ho("yt-draggable"),x=B.onDrag,P=B.onDragStart,Y=B.onDragEnd,g=_.uF(B,{allowClicks:!1,dragThreshold:5}),k=g.dragThreshold,n=g.allowClicks;B=g.children;g=g.className;var b=void 0,d=void 0,q=new _.Jx(0,0),C=!1;_.lk(function(){b=new _.z4(c.value);d=new _.rY(V);h(b,d);if(n()){_.g6Z(b,k());var l;(l=c.value)==null||l.addEventListener("click",N,{capture:!0})}_.lP(function(){var E;(E=b)==null||E.dispose();if(n()){var S;(S=c.value)==null||S.removeEventListener("click",N,{capture:!0})}})});
var h=function(l,E){_.wX(l,"earlycancel",function(){n()&&(C=!1)});
_.wX(l,"start",function(S){P==null||P(S);S.defaultPrevented||n()&&(C=!0)});
_.wX(l,"beforedrag",function(S){b&&d&&(S.preventDefault(),q=new _.Jx(S.clientX-b.startX,S.clientY-b.startY),d.start())});
_.wX(l,"end",function(){E.stop();Y==null||Y();q=new _.Jx(0,0)})},V=function(){q&&x(q)},N=function(l){C&&(C=!1,l.stopPropagation(),l.preventDefault())};
return _.U("yt-draggable",{el:c,class:_.Kw("ytDraggableComponentHost",g)},B)},"og");var S2B=_.rM(function(B){var c=_.p(_.$D(0,void 0,"CvAwBd")),x=c.next().value,P=c.next().value;c=function(Y){var g={},k={};return _.U(zVN,{className:_.Kw("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return Y===B.horizontalAlignment()||Y===B.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=Y==="north",g.ytdMiniplayerComponentResizerEast=Y==="east",g.ytdMiniplayerComponentResizerSouth=Y==="south",g.ytdMiniplayerComponentResizerWest=Y==="west",g)),
onDragStart:function(){P(B.currentMiniplayerSize());if(B.onResizeStart)B.onResizeStart()},
onDrag:function(n){Y!=="north"&&Y!=="west"||n.scale(-1);var b;n=(b=Y==="north"||Y==="south")?n.y:n.x;var d=B.currentAspectRatio();b&&d>=1?n*=d:!b&&d<1&&(n/=d);b=n;B.onResize(x()+b)}},_.U("div",{class:_.Kw("ytdMiniplayerComponentResizerCorner",(k.ytdMiniplayerComponentResizerNorthCorner=Y==="north",k.ytdMiniplayerComponentResizerEastCorner=Y==="east",k.ytdMiniplayerComponentResizerSouthCorner=Y==="south",k.ytdMiniplayerComponentResizerWestCorner=Y==="west",k))}))};
return _.U("div",{class:"ytdMiniplayerComponentResizers"},c("north"),c("east"),c("south"),c("west"))},"pg");var y6s=16/9,GOB=_.rM(function(){var B=_.Ho("ytd-miniplayer"),c=_.p(_.$D(new _.nH(NaN,NaN),void 0,"YeKki")),x=c.next().value,P=c.next().value;c=_.p(_.$D(!1,void 0,"DcXgUd"));var Y=c.next().value,g=c.next().value;c=_.p(_.$D(!1,void 0,"aDeXOc"));var k=c.next().value,n=c.next().value;c=_.p(_.$D(!1,void 0,"JpZfjb"));var b=c.next().value,d=c.next().value;c=_.p(_.$D(!1,void 0,"EmCWpc"));var q=c.next().value,C=c.next().value;c=_.p(_.$D(!1,void 0,"ovvtt"));var h=c.next().value,V=c.next().value;c=_.p(_.$D(!1,
void 0,"wPIoNd"));var N=c.next().value,l=c.next().value;c=_.p(_.$D(y6s,void 0,"AmisJf"));var E=c.next().value,S=c.next().value,M=_.p(_.$D(!1,void 0,"uNKP1c"));c=M.next().value;var f=M.next().value;M=_.p(_.$D(!1,void 0,"n9hvIf"));var Z=M.next().value,u=M.next().value;M=_.p(_.$D(void 0,void 0,"Sjx4Dc"));var e=M.next().value,px=M.next().value;M=_.p(_.$D(_.v5("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var kI=M.next().value,Ul=M.next().value;M=_.p(_.$D("south",void 0,"jyzxy"));var wC=M.next().value,
W$=M.next().value;M=_.p(_.$D(400,void 0,"JFUs2d"));var El=M.next().value,H$=M.next().value,yw=_.cp().resolve(_.Ge).miniplayerPropSignalMap[0],r9=yw.data,cs=yw.externalPlaylistData;M=yw.toastData;var NQ=yw.playabilityStatus,n4=yw.isReadyToResume,L4=yw.isDisabled,UF=yw.watchWhile,uX=yw.playerVe,yr=yw.expandVe,uz=yw.closeVe,XO=yw.readyToResumeVe,qQ=yw.readyToResumeCloseVe,lt=yw.repositionVe,D8=yw.resizeVe;yw=_.p(_.mg(n4));var VW=yw.next().value,ut=yw.next().value,M8=!1,An=!1,g9;_.lk(function(){P(_.mz());
B.value.addEventListener("animationend",function(G5){G5.target===B.value&&(V(!1),l(!1))});
W58(B.value)});
_.Z6("yt-window-resized",function(G5){G5&&P(G5)});
var SZ=function(){g9&&S(g9.getVideoAspectRatio())},hc=function(){if(g9){var G5=g9.getPlayerState()===1;
VW()&&G5&&ut(!1)}},C4=function(){var G5=yr();
if(G5){var Jc=_.Wf(3);Jc&&_.fW(Jc,G5)}},I0=function(){var G5=uz(),Jc=qQ();
G5&&_.fW(_.Wf(3),G5);n4()&&Jc&&_.fW(_.Wf(3),Jc)};
_.Z6("yt-activate-miniplayer",function(G5){var Jc;return _.X(function(cN){if(cN.nextAddress==1)return Y()?cN.return():_.K(cN,(Jc=_.cp().resolve(_.Ge).getPlayerElement())==null?void 0:Jc.getPlayerPromise(),2);g9=cN.yieldResult;if(!g9)return cN.return();!Z()&&_.T("kevlar_watch_while_v2")&&(W$(G5&&!_.T("kevlar_watch_while_bottom_align")?"north":"south"),Ul(_.v5("HTML_DIR")==="rtl"?"west":"east"));var xP=g9;xP.addEventListener("onVideoDataChange",SZ);xP.addEventListener("onStateChange",hc);xP.addEventListener("onExpandMiniplayer",
C4);xP.addEventListener("onCloseMiniplayer",I0);S(g9.getVideoAspectRatio());g(!0);Jis()||V(!0);_.Kq(cN)})});
_.Z6("yt-deactivate-miniplayer",function(G5){return _.X(function(Jc){if(!Y())return Jc.return();g(!1);ut(!1);l(G5);C(!1);n(!1);if(g9){var cN=g9;cN.removeEventListener("onVideoDataChange",SZ);cN.removeEventListener("onStateChange",hc);cN.removeEventListener("onExpandMiniplayer",C4);cN.removeEventListener("onCloseMiniplayer",I0)}Jis()||V(!0);_.Kq(Jc)})});
var bz=function(){return!(UF()&&_.T("kevlar_watch_while_modern"))},sG=function(){var G5;
return!((G5=cs())==null||!G5.contents)},sF=function(){var G5=El();
var Jc=x();Jc=Math.min(Math.min(Jc.width,Jc.height)-32,720);var cN=E(),xP=bz(),CS=sG()&&k(),Ft=Math.min(G5,Jc);G5=new _.nH(192,xP?116:192);cN=pWS(new _.nH(CS?y6s:cN,1),new _.nH(Ft,xP?Ft-76:Ft));G5.width<=cN.width&&G5.height<=cN.height||(sBz(cN,G5),cN.width=Math.min(cN.width,Jc),cN.height=Math.min(cN.height,Jc));return new _.nH(cN.width,_.vi(192,cN.height+QJF(xP,CS),720))},h0=function(){var G5=sF(),Jc=bz(),cN=sG()&&k();
return new _.nH(G5.width,G5.height-QJF(Jc,cN))},yD=function(){var G5=function(Jc){Jc.target===B.value&&q()&&(C(!1),B.value.removeEventListener("transitionend",G5))};
Jis()||(B.value.addEventListener("transitionend",G5),C(!0));n(!k())};
_.IO(function(){var G5=uX(),Jc=_.Wf(3),cN=_.Jg(3);if(Jc&&cN&&G5){_.Gq(Jc,cN,G5);cN=lt();var xP=D8(),CS=yr(),Ft=uz(),JM=qQ();CS&&Ft&&JM&&(_.M9(Jc,G5,[CS,Ft,JM]),_.Z1(Jc,[CS,Ft]));cN&&xP&&_.M9(Jc,G5,[cN,xP])}},"yiTJkc");
_.IO(function(){var G5=XO();if(G5){var Jc=_.Wf(0),cN=_.Jg(0);Jc&&cN&&(_.Gq(Jc,cN,G5),_.Z1(Jc,[G5]))}},"fy89qe");
yw={};return _.U("ytd-miniplayer",{el:B,class:_.Kw("ytdMiniplayerComponentHost",(yw.ytdMiniplayerComponentVisible=function(){return Y()||h()},yw.ytdMiniplayerComponentAnimatingSnap=b,yw.ytdMiniplayerComponentAnimatingPlaylistExpand=q,yw.ytdMiniplayerComponentAnimatingFade=h,yw),function(){if(h()){var G5=wC();
var Jc=Y(),cN=N();G5=Jc?G5==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":cN?G5==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":G5==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else G5="";return G5}),
style:_.TU({top:function(){return wC()==="north"?"16px":""},
right:function(){return kI()==="east"?"16px":""},
bottom:function(){return wC()==="south"?"16px":""},
left:function(){return kI()==="west"?"16px":""},
width:function(){return sF().width+"px"},
height:function(){return sF().height+"px"},
transform:function(){var G5=e();return G5?"translate("+G5.x+"px, "+G5.y+"px)":""}})},_.U("div",{class:"ytdMiniplayerComponentContent"},_.U(zVN,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(G5){var Jc=oCz(kI(),wC(),x(),sF(),e()),cN=h0();Math.abs(G5.clientY-(Jc.y+cN.height))>15?(f(!0),G5=_.Wf(3),Jc=lt(),M8||(M8=!0,G5&&Jc&&_.Z1(G5,[Jc])),G5&&Jc&&_.fW(G5,Jc)):G5.preventDefault()},
onDrag:function(G5){px(G5)},
onDragEnd:function(){var G5=l1z(oCz(kI(),wC(),x(),sF(),e()),x(),sF()),Jc=OWA(kI(),wC(),x(),sF()),cN=OWA(G5.horizontalAlignment,G5.verticalAlignment,x(),sF());cN=new _.Jx(cN.x-Jc.x,cN.y-Jc.y);var xP;Jc=Jc.y+(((xP=e())==null?void 0:xP.y)||0)+sF().height/2;var CS=function(){kI()===G5.horizontalAlignment&&wC()===G5.verticalAlignment||u(!0);Ul(G5.horizontalAlignment);W$(G5.verticalAlignment);px(void 0)},Ft=function(JM){JM.target===B.value&&b()&&(d(!1),CS(),B.value.removeEventListener("transitionend",Ft))};
f(!1);wC()==="south"&&Jc>x().height?(CS(),_.cp().resolve(_.Ge).close()):(B.value.addEventListener("transitionend",Ft),d(!0),px(cN))}},_.U(_.m,{cond:Y,
then:function(){return _.U(_.SF8,{isDisabled:L4,playabilityStatus:NQ,size:h0})}}),_.U(_.m,{cond:bz,
then:function(){return _.U(_.vzz,{isReadyToResume:VW,data:r9,expanded:k,onExpandClick:yD,playlistData:cs})}}),_.U(_.m,{cond:c,
then:function(){return _.U("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.U(_.m,{cond:function(){return sG()&&k()||q()},
then:function(){return _.U(_.Pxm,{className:"ytdMiniplayerComponentPlaylistPanel",data:cs,hideHeaderText:!0,withinMiniplayer:!0})}}),_.U("div",{class:"ytdMiniplayerComponentToast"},_.U(_.ycz,{toastData:M}))),_.U(S2B,{onResize:function(G5){H$(_.vi(192,G5,720))},
onResizeStart:function(){var G5=_.Wf(3),Jc=D8();An||(An=!0,G5&&Jc&&_.Z1(G5,[Jc]));G5&&Jc&&_.fW(G5,Jc)},
currentAspectRatio:E,currentMiniplayerSize:El,horizontalAlignment:kI,verticalAlignment:wC}))},"qg");_.T("ytd_miniplayer_to_wiz")&&_.xU(GOB,"ytd-miniplayer",{});_.xU(_.ycz,"ytd-miniplayer-toast",{props:{toastData:_.rk}});var Mpy=16/9,LWz=new _.nH(400,400/Mpy),DJ=function(){var B=_.z.apply(this,arguments)||this;B.active=!1;B.hasNoData=!1;B.enabled=!1;B.expanded=!1;B.readyToResume=!1;B.isDisabled=!1;B.externalPlaylistData={};B.premiumBadges=[];B.watchWhile=!1;B.playerState=null;B.verticalAttachment="south";B.horizontalAttachment=_.v5("HTML_DIR")==="rtl"?"west":"east";B.isAnimatingFade=!1;B.isAnimatingSnap=!1;B.isAnimatingExpand=!1;B.isDragging=!1;B.playerHidden=!1;B.hasPlaylistData=!1;B.closed=!1;B.expandedClosed=!1;
B.isForReadyToResume=!1;B.watchResponse=null;B.player=null;B.playerVe=null;B.expandVe=null;B.closeVe=null;B.readyToResumeCloseVe=null;B.disabledInitialStateIsPlaying=!1;B.PLAYER_EVENTS=new Map;B.aspectRatio=Mpy;B.currentMiniplayerSize=400;B.userSetSize=!1;B.userSetPosition=!1;B.userHasDragged=!1;B.maxMiniplayerSize=720;B.transform=new _.Jx(0,0);B.windowDimensions=new _.nH(NaN,NaN);B.dimensions=LWz;B.screenLayer=3;B.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return B};
_.w(DJ,_.z);_.a=DJ.prototype;_.a.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.a.ready=function(){this.setUpDragging();this.setUpResizing()};
_.a.attached=function(){this.onWindowResized(_.mz());this.hostElement.addEventListener("animationend",_.$9(this,this.resetFadingAnimation))};
_.a.detached=function(){this.hostElement.removeEventListener("animationend",_.$9(this,this.resetFadingAnimation))};
_.a.resetFadingAnimation=function(B){B.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.a.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.a.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.a.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var B=_.Wf(this.screenLayer);this.readyToResumeCloseVe&&B&&_.Z1(B,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.a.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var B=_.Wf(0),c=_.Jg(0);B&&c&&(_.Gq(B,c,this.readyToResumeVe),_.Z1(B,[this.readyToResumeVe]))}};
_.a.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var B=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=B===-1||B===1||B===3)&&this.player.pauseVideo()}};
_.a.activate=function(B,c){c=c===void 0?!1:c;var x=this,P;return _.X(function(Y){if(Y.nextAddress==1)return x.setInitialActivatePositioning(c),x.enabled=!0,x.active=!0,x.expanded=!1,x.closed=!1,x.expandedClosed=!1,x.watchWhileHidden||(x.isAnimatingFade=!0),_.cp().resolve(_.vK).setPlaylistComponent(x.JSC$17862_playlistPanel),B.appendTo(x.playerContainer),_.K(Y,B.getPlayerPromise(),2);P=Y.yieldResult;P.setSizeStyle(!1,!0);x.ytPlayerListenerBehavior.listenToPlayerEvents(P,x.PLAYER_EVENTS);x.player=P;
x.watchWhile&&_.T("kevlar_watch_while_minimum_size")&&x.setMiniplayerSize(192);x.setAspectRatio(x.player.getVideoAspectRatio());x.onIsDisabledChanged();_.Kq(Y)})};
_.a.setInitialActivatePositioning=function(B){if(!this.userSetPosition&&_.T("kevlar_watch_while_v2")){this.verticalAttachment=B&&!_.T("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.v5("HTML_DIR")==="rtl"?"west":"east";var c;(c=this.JSC$17862_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)}};
_.a.deactivate=function(B,c){var x=this;return _.X(function(P){if(!x.active)return P.return();B||(x.expanded?x.expandedClosed=!0:x.closed=!0);x.active=!1;x.isForReadyToResume=!1;c&&_.T("kevlar_watch_while_counterfactual")||(x.isAnimatingFade=!0);x.player&&x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x.player,x.PLAYER_EVENTS);x.player=null;_.Kq(P)})};
_.a.onMetadataTap=function(B){this.expandVe&&(B===void 0||B)&&(B=_.Wf(this.screenLayer))&&_.fW(B,this.expandVe);_.mB(_.cp().resolve(_.Ge))};
_.a.onDisabledTap=function(B){B.target===_.Y9(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.a.onPlaylistExpandTap=function(B){if(this.hasPlaylistData){B=_.AV(B)||[];B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;if(c===this.hostElement)break;if(c.classList&&c.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.a.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.$9(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.a.animatedResizePlaylist=function(B){B.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.$9(this,this.animatedResizePlaylist)))};
_.a.getExpandIcon=function(B){return B?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.a.onPlayerVideoDataChange=function(){var B,c=(B=this.player)==null?void 0:B.getVideoAspectRatio();c&&c!==this.aspectRatio&&this.setAspectRatio(c)};
_.a.setAspectRatio=function(B){if(this.active){this.aspectRatio=B;this.updateDimensionsAndResize();var c;(c=this.JSC$17862_resizers)==null||c.setAspectRatio(B)}};
_.a.updateDimensionsAndResize=function(){var B=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),c=this.expanded?Mpy:this.aspectRatio,x=new _.nH(192,this.showInfoBar?116:192);B=pWS(new _.nH(c,1),new _.nH(B,this.showInfoBar?B-76:B));x.width<=B.width&&x.height<=B.height||(sBz(B,x),B.width=Math.min(B.width,this.maxMiniplayerSize),B.height=Math.min(B.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&c<=1?Math.max(B.width,B.height)+76:Math.max(B.width,B.height)));this.dimensions=
new _.nH(B.width,this.clamp(B.height+this.getNonPlayerHeight()));this.resize()};
_.a.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var B=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=B.height+"px";var c;(c=this.player)==null||c.setInternalSize(B.width,B.height)};
_.a.getPlayerSize=function(B){var c=Math.max(0,B.height-this.getNonPlayerHeight());return new _.nH(B.width,c)};
_.a.getNonPlayerHeight=function(){var B=0;this.showInfoBar&&(B+=76);this.expanded&&(B+=285);return B};
_.a.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.cp().resolve(_.Ge).close()};
_.a.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.a.logClosingClick=function(){this.closeVe&&_.fW(_.Wf(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.fW(_.Wf(this.screenLayer),this.readyToResumeCloseVe)};
_.a.onPlayerExpandMiniplayer=function(){if(this.expandVe){var B=_.Wf(this.screenLayer);B&&_.fW(B,this.expandVe)}};
_.a.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var B=this.playerState===1;this.continueWatching&&B&&(this.continueWatching=!1);this.premiumBadges.length&&B&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.a.getScreenLayer=function(){return this.screenLayer};
_.a.logMiniplayer=function(){var B=_.Wf(this.screenLayer),c=_.Jg(this.screenLayer);B&&c&&this.playerVe&&(_.Gq(B,c,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.M9(B,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Z1(B,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.M9(B,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.a.computePlaylistData=function(B,c){return c};
_.a.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.a.computeExpandButtonHidden=function(B,c,x){return!B||!c||x};
_.a.computePlaylistIndexHidden=function(B,c){return!B||c};
_.a.computePlaylistPanelHidden=function(B,c){return!c&&!B};
_.a.computeExpandButtonLabel=function(B){return B?_.Up("MINIPLAYER_COLLAPSE_LABEL"):_.Up("MINIPLAYER_EXPAND_LABEL")};
_.a.computeDisabledStateCloseButtonLabel=function(){return _.Up("MINIPLAYER_CLOSE",void 0,"Close")};
_.a.onWindowResized=function(B){B&&(B=this.windowDimensions=B,this.maxMiniplayerSize=Math.min(Math.min(B.width,B.height)-32,720),this.updateDimensionsAndResize())};
_.a.setUpResizing=function(){var B=this;this.JSC$17862_resizers||(this.JSC$17862_resizers=new us(this.JSC$17862_resizeContainer,{onStartResize:function(){B.handleResizeStart()},
onResize:function(c){B.handleResize(c)}}),this.JSC$17862_resizers.setSize(this.currentMiniplayerSize),this.JSC$17862_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.a.handleResizeStart=function(){var B=_.Wf(this.screenLayer);this.userSetSize||(this.userSetSize=!0,B&&this.resizeVe&&_.Z1(B,[this.resizeVe]));B&&this.resizeVe&&_.fW(B,this.resizeVe)};
_.a.handleResize=function(B){this.setMiniplayerSize(B);this.updateDimensionsAndResize()};
_.a.setUpDragging=function(){var B=this;this.JSC$17862_dragger||(this.JSC$17862_dragger=new Ak(this.draggableContainer,{onStartDrag:function(c){!B.isSafeToDrag(c)||B.isAnimatingSnap?c.preventDefault():B.handleDragStart()},
onDrag:function(c){B.transform=c;B.setTransform(B.transform)},
onEndDrag:function(){B.handleDragEnd()}},!0))};
_.a.handleDragStart=function(){this.isDragging=!0;var B=_.Wf(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,B&&this.repositionVe&&_.Z1(B,[this.repositionVe]));B&&this.repositionVe&&_.fW(B,this.repositionVe)};
_.a.handleDragEnd=function(){this.isDragging=!1;var B=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&B>this.windowDimensions.height&&_.cp().resolve(_.Ge).close();this.animateSnapToCorner()};
_.a.animateSnapToCorner=function(){var B=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),c=this.getNearestAttachments();c=this.getGlobalPositionFromAttachments(c.horizontalAttachment,c.verticalAttachment);B=new _.Jx(c.x-B.x,c.y-B.y);this.isAnimatingSnap=!0;this.setTransform(B);this.hostElement.addEventListener("transitionend",_.$9(this,this.endSnapAnimation))};
_.a.endSnapAnimation=function(B){B.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.$9(this,this.endSnapAnimation)),this.endDrag())};
_.a.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.a.setTransform=function(B){this.hostElement.style.transform=B?"translate("+B.x+"px, "+B.y+"px)":""};
_.a.getGlobalPositionFromAttachments=function(B,c){return new _.Jx(B==="west"?16:this.windowDimensions.width-this.dimensions.width-16,c==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.a.updateAttachments=function(){var B=this.getNearestAttachments();if(this.horizontalAttachment!==B.horizontalAttachment||this.verticalAttachment!==B.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=B.horizontalAttachment;this.verticalAttachment=B.verticalAttachment;var c;(c=this.JSC$17862_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)};
_.a.getNearestAttachments=function(){var B=this.getCurrentGlobalPosition();return{horizontalAttachment:B.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:B.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.a.getCurrentGlobalPosition=function(){var B=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return ECz(B,this.transform)};
_.a.isSafeToDrag=function(B){var c=this.playerContainer.getBoundingClientRect();return Math.abs(B.clientY-(c.y+c.height))>15};
_.a.setMiniplayerSize=function(B){this.currentMiniplayerSize=this.clamp(B);var c;(c=this.JSC$17862_resizers)==null||c.setSize(this.currentMiniplayerSize)};
_.a.clamp=function(B){return _.vi(192,B,720)};
_.a.registerViewTransitionTasks=function(){var B=this,c=_.cp().resolve(_.Bp(_.po));if(c){var x={beforeTransition:function(){B.hostElement&&(B.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){B.hostElement&&(B.hostElement.style.viewTransitionName="")}};
r6(c,"slide",x);r6(c,"zoom",x)}};
_.AJ.Object.defineProperties(DJ.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.T("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.Up("CONTINUE_WATCHING",void 0,"Continue watching")};var B;if((B=this.externalPlaylistData)==null?0:B.contents)return this.externalPlaylistData.titleText;var c;return(c=this.data)==null?void 0:c.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.externalPlaylistData)==null?0:B.contents){var c;return(c=_.H0o(this.externalPlaylistData))==null?void 0:c.title}var x;return(x=this.data)==null?void 0:x.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var B,c,x,P;return((B=this.externalPlaylistData)==null?void 0:B.currentIndex)!==void 0&&((c=this.externalPlaylistData)==null?0:c.totalVideos)&&!((x=this.data)==null?0:(P=x.playlistData)==null?0:P.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.BFx(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.T("kevlar_watch_while_counterfactual")}}});
DJ.prototype.onIsDisabledChanged=DJ.prototype.onIsDisabledChanged;DJ.prototype.readyToResumeVeChanged=DJ.prototype.readyToResumeVeChanged;DJ.prototype.premiumBrandingChanged=DJ.prototype.premiumBrandingChanged;DJ.prototype.onPlayerVeChange=DJ.prototype.onPlayerVeChange;DJ.prototype.hasPlaylistDataChanged=DJ.prototype.hasPlaylistDataChanged;_.L([_.J(_.Z4.YtPlayerListenerBehavior),_.H("design:type",_.HD)],DJ.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],DJ.prototype,"ytdReduxBehavior",void 0);_.L([_.jr("#draggable"),_.H("design:type",HTMLDivElement)],DJ.prototype,"draggableContainer",void 0);
_.L([_.jr("#resize-container"),_.H("design:type",HTMLDivElement)],DJ.prototype,"JSC$17862_resizeContainer",void 0);_.L([_.jr("#video-container"),_.H("design:type",HTMLDivElement)],DJ.prototype,"videoContainer",void 0);_.L([_.jr("#player-container"),_.H("design:type",HTMLDivElement)],DJ.prototype,"playerContainer",void 0);_.L([_.jr("#playlist"),_.H("design:type",HTMLDivElement)],DJ.prototype,"JSC$17862_playlistPanel",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"active",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"hasNoData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"enabled",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"expanded",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"readyToResume",void 0);
_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"isDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"externalPlaylistData",void 0);_.L([_.F(),_.H("design:type",Array)],DJ.prototype,"premiumBadges",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"toastData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"watchWhile",void 0);_.L([_.F(),_.H("design:type",Boolean)],DJ.prototype,"premiumBranding",void 0);
_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"playerState",void 0);_.L([_.F(),_.H("design:type",Boolean)],DJ.prototype,"continueWatching",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],DJ.prototype,"verticalAttachment",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],DJ.prototype,"horizontalAttachment",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"isAnimatingFade",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"isAnimatingSnap",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"isAnimatingExpand",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"isDragging",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"playerHidden",void 0);
_.L([_.F({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.H("design:type",Object)],DJ.prototype,"playlistData",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.H("design:type",Object)],DJ.prototype,"hasPlaylistData",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"closed",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"expandedClosed",void 0);
_.L([_.F({selector:_.aYX}),_.H("design:type",Boolean)],DJ.prototype,"isSingleOptionSurveyActive",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.Ov}),_.H("design:type",Boolean)],DJ.prototype,"isWatchPage",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("watchWhile"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"showInfoBar",null);_.L([_.Q("premiumBadges","showInfoBar"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"showOverlayPremiumBadges",null);
_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"watchResponse",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"miniplayerRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"playabilityStatus",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"playerVe",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"expandVe",void 0);_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"closeVe",void 0);
_.L([_.F(),_.H("design:type",Object)],DJ.prototype,"readyToResumeCloseVe",void 0);_.L([_.F(),_.H("design:type",_.Is)],DJ.prototype,"readyToResumeVe",void 0);_.L([_.F(),_.H("design:type",_.Is)],DJ.prototype,"resizeVe",void 0);_.L([_.F(),_.H("design:type",_.Is)],DJ.prototype,"repositionVe",void 0);_.L([_.bF("hasPlaylistData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"hasPlaylistDataChanged",null);
_.L([_.bF("playerVe"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"onPlayerVeChange",null);_.L([_.bF("premiumBranding"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"premiumBrandingChanged",null);_.L([_.bF("readyToResumeVe"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"readyToResumeVeChanged",null);
_.L([_.bF("isDisabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"onIsDisabledChanged",null);_.L([_.Q("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"miniplayerSubtitle",null);_.L([_.Q("data.miniplayerTitle","externalPlaylistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"miniplayerTitle",null);
_.L([_.Q("externalPlaylistData","continueWatching"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"playlistIndexMessage",null);_.L([_.F({reflectToAttribute:!0}),_.Q("playabilityStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"showErrorScreen",null);_.L([_.F({reflectToAttribute:!0}),_.Q("watchWhile"),_.H("design:type",Object),_.H("design:paramtypes",[])],DJ.prototype,"watchWhileHidden",null);
_.T("ytd_miniplayer_to_wiz")||_.G(DJ,"ytd-miniplayer",function(){if(vJy===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
B.content.insertBefore(FWs().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);vJy=B}B=vJy;return B},{mode:2});var ZQA;var rN=function(){var B=_.z.apply(this,arguments)||this;B.useListItemStyles=_.T("web_list_item_style_for_menu_items");B.systemIcons=_.T("kevlar_system_icons");return B};
_.w(rN,_.z);_.a=rN.prototype;_.a.ready=function(){this.hostElement.addEventListener("tap",_.$9(this,this.onEndpointTapExtra))};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){var B;(B=_.Y9(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.a.onEndpointTapExtra=function(B){_.aJ(this.hostElement,"iron-activate");var c=this.data.navigationEndpoint;c&&_.t(c,_.E3x)&&(B.stopPropagation(),_.XX(this.hostElement,[c],this.hostElement))};
_.a.computeIcon=function(B){return B&&B.iconType?_.$0(B.iconType):""};
_.a.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.k9(this.hostElement)};
rN.prototype.forceUpdateStylesOnLegacyBrowsers=rN.prototype.forceUpdateStylesOnLegacyBrowsers;rN.prototype.onFocus=rN.prototype.onFocus;_.L([_.J(_.uD),_.H("design:type",Object)],rN.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.gtW.YtConditionalRendererBehavior),_.H("design:type",Object)],rN.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],rN.prototype,"ytEndpointBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],rN.prototype,"data",void 0);_.L([_.F({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],rN.prototype,"icon",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],rN.prototype,"useIcons",void 0);_.L([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],rN.prototype,"hasSeparator",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rN.prototype,"useListItemStyles",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],rN.prototype,"systemIcons",void 0);_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rN.prototype,"onFocus",null);_.L([_.bF("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rN.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(rN,"ytd-menu-navigation-item-renderer",function(){if(ZQA===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);ZQA=B}B=ZQA;return B},{mode:1});var HQF;var fPS=_.fk(_.Up("DOWNLOAD",{},"Download")),iQz=_.fk(_.Up("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),A6r=_.fk(_.Up("RETRY",{},"Retry")),urr=_.fk(_.Up("PAUSE_DOWNLOADING",{},"Pause downloading")),D38=_.fk(_.Up("RESUME_DOWNLOAD",{},"Resume download")),RK=function(){var B=_.z.apply(this,arguments)||this;B.primaryText=fPS;B.primaryIconType="OFFLINE_DOWNLOAD";B.hasSecondaryContent=!1;B.hasSeparator=!1;B.transferState="TRANSFER_STATE_UNKNOWN";B.isVideoDeletedByUser=!1;B.isHidden=!1;B.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return B};
_.w(RK,_.z);_.a=RK.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){this.primaryEntry.focus()};
_.a.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.a.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.a.getRemoveAction=function(){return"ACTION_REMOVE"};
_.a.sendOfflineAction=function(B){var c=this.data.serviceEndpoint;if(c){var x=_.t(c,_.n3);x&&B&&(x.action=B);this.ytComponentBehavior.resolveCommand(c)}};
_.a.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=fPS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=fPS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=A6r;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=iQz;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=D38;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=iQz;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
urr;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=iQz;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=iQz;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=fPS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.a.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.a.isSecondaryEntryHidden=function(B,c){return B?!0:!c};
_.a.computeHasSeparator=function(){var B;return!((B=this.data)==null||!B.hasSeparator)};
RK.prototype.showHideButton=RK.prototype.showHideButton;RK.prototype.onTransferStateChange=RK.prototype.onTransferStateChange;RK.prototype.onFocus=RK.prototype.onFocus;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],RK.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],RK.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],RK.prototype,"primaryText",void 0);_.L([_.F(),_.H("design:type",String)],RK.prototype,"primaryIconType",void 0);_.L([_.F(),_.H("design:type",String)],RK.prototype,"primaryAction",void 0);_.L([_.F(),_.H("design:type",Object)],RK.prototype,"secondaryText",void 0);_.L([_.F(),_.H("design:type",String)],RK.prototype,"secondaryIconType",void 0);
_.L([_.F(),_.H("design:type",String)],RK.prototype,"secondaryAction",void 0);_.L([_.F(),_.H("design:type",Object)],RK.prototype,"hasSecondaryContent",void 0);_.L([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Object)],RK.prototype,"hasSeparator",void 0);_.L([_.F({selector:_.QI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",String)],RK.prototype,"transferState",void 0);
_.L([_.F({selector:_.tPd,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],RK.prototype,"isVideoDeletedByUser",void 0);_.L([_.F(),_.H("design:type",Object)],RK.prototype,"isHidden",void 0);_.L([_.F({selector:_.qPY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],RK.prototype,"offlineabilityState",void 0);_.L([_.jr("#primary-entry"),_.H("design:type",Object)],RK.prototype,"primaryEntry",void 0);
_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RK.prototype,"onFocus",null);_.L([_.CF("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RK.prototype,"onTransferStateChange",null);_.L([_.CF("offlineabilityState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RK.prototype,"showHideButton",null);
_.G(RK,"ytd-menu-service-item-download-renderer",function(){if(HQF===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);HQF=B}B=HQF;return B},{mode:1});var r6F;var eH=function(){var B=_.z.apply(this,arguments)||this;B.useIcons=!1;B.systemIcons=_.T("kevlar_system_icons");B.useListItemStyles=_.T("web_list_item_style_for_menu_items");return B};
_.w(eH,_.z);_.a=eH.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){var B;(B=_.Y9(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.a.onTap=function(){_.sp(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var B=this.data.serviceEndpoint,c=this.data.command;if(B){var x,P=(x=this.data)==null?void 0:x.trackingParams;x=!!_.t(B,_.jX0);P&&x&&_.uG().dispatch(_.YN({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:P}}));this.ytComponentBehavior.resolveCommand(B)||_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}})}c&&(this.ytComponentBehavior.resolveCommand(c)||_.XX(this.hostElement,
[c],this.hostElement))};
_.a.computeIcon=function(B){return B&&B.iconType?_.$0(B.iconType):""};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.computeHasSeparator=function(){var B;return!((B=this.data)==null||!B.hasSeparator)};
_.a.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.k9(this.hostElement)};
_.a.computeIsSelected=function(){var B;return!((B=this.data)==null||!B.isSelected)};
eH.prototype.forceUpdateStylesOnLegacyBrowsers=eH.prototype.forceUpdateStylesOnLegacyBrowsers;eH.prototype.onTap=eH.prototype.onTap;eH.prototype.onFocus=eH.prototype.onFocus;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],eH.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.gtW.YtConditionalRendererBehavior),_.H("design:type",Object)],eH.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eH.prototype,"data",void 0);_.L([_.F({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],eH.prototype,"icon",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eH.prototype,"useIcons",void 0);
_.L([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eH.prototype,"hasSeparator",void 0);_.L([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eH.prototype,"isSelected",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eH.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],eH.prototype,"useListItemStyles",void 0);
_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eH.prototype,"onFocus",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],eH.prototype,"onTap",null);_.L([_.bF("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eH.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(eH,"ytd-menu-service-item-renderer",function(){if(r6F===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);r6F=B}B=r6F;return B},{mode:2});var RVo;var BQ=function(){return _.z.apply(this,arguments)||this};
_.w(BQ,_.z);_.a=BQ.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onDataChanged=function(){var B=this;_.fl(this,function(){B.postbox.openDialog();B.focus();_.aJ(B.hostElement,"yt-refit")})};
_.a.focus=function(){this.postbox.focus()};
_.a.closePopup=function(){_.gj(this.hostElement,"yt-close-popup-action")};
_.a.onYtCommentboxDismiss=function(){this.closePopup()};
BQ.prototype.onYtCommentboxDismiss=BQ.prototype.onYtCommentboxDismiss;BQ.prototype.onDataChanged=BQ.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],BQ.prototype,"data",void 0);_.L([_.F({value:function(){return _.Up("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],BQ.prototype,"closeButtonAriaLabel",void 0);_.L([_.jr("#postbox"),_.H("design:type",Object)],BQ.prototype,"postbox",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BQ.prototype,"onDataChanged",null);_.L([_.nF("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BQ.prototype,"onYtCommentboxDismiss",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],BQ);
_.G(BQ,"ytd-backstage-post-dialog-popup-renderer",function(){if(RVo!==void 0)return RVo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return RVo=B},{mode:1});var eVi;var cQ=function(){return _.z.apply(this,arguments)||this};
_.w(cQ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cQ.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],cQ);
_.G(cQ,"ytd-sender-id-section-renderer",function(){if(eVi!==void 0)return eVi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return eVi=B},{mode:1});var BZ6;var cuz;var xzl;var xA=function(){return _.z.apply(this,arguments)||this};
_.w(xA,_.z);xA.prototype.closePopup=function(){_.gj(this.hostElement,"yt-close-popup-action")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xA.prototype,"data",void 0);_.L([_.Em({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],xA);
_.G(xA,"yt-community-post-section-renderer",function(){if(xzl===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;cuz===void 0&&(cuz=document.createElement("template"));var P=cuz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);xzl=B}B=xzl;return B},{mode:2});var P6o;var YUr;var a4r;var gGl;var se8;var pDr;var PQ=function(){return _.z.apply(this,arguments)||this};
_.w(PQ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],PQ.prototype,"data",void 0);_.L([_.Em({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],PQ);
_.G(PQ,"yt-share-start-time-with-context-renderer",function(){if(pDr===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;se8===void 0&&(se8=document.createElement("template"));var P=se8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);pDr=B}B=pDr;return B},{mode:2});var YA=function(){return _.z.apply(this,arguments)||this};
_.w(YA,_.z);YA.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],YA.prototype,"data",void 0);_.L([_.Em({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],YA);
_.G(YA,"yt-share-panel-title-v15-renderer",function(){if(gGl===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;a4r===void 0&&(a4r=document.createElement("template"));var P=a4r;x.call(c,P.content.cloneNode(!0),B.content.firstChild);gGl=B}B=gGl;return B},{mode:2});var aQ=function(){return _.z.apply(this,arguments)||this};
_.w(aQ,_.z);aQ.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aQ.prototype,"data",void 0);_.L([_.Em({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],aQ);
_.G(aQ,"yt-share-panel-header-renderer",function(){if(YUr===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;P6o===void 0&&(P6o=document.createElement("template"));var P=P6o;x.call(c,P.content.cloneNode(!0),B.content.firstChild);YUr=B}B=YUr;return B},{mode:2});var kHl;var XDN;var gO=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-open-popup-action":"onOpen"};return B};
_.w(gO,_.z);_.a=gO.prototype;_.a.attached=function(){this.onOpen()};
_.a.updateTimeSecs=function(B){this.currentTimeSecs=B};
_.a.computeTimeString=function(B){B=B.toString();var c=Math.floor(Number(B)/3600),x=Math.floor(Number(B)%3600%60);return(c>0?c+":":"")+_.PJ(Math.floor(Number(B)%3600/60),c>0?2:1)+":"+_.PJ(x,2)};
_.a.computeTimeStringA11y=function(B){B=_.NJo({seconds:B});var c=B.hours===void 0?0:B.hours,x=B.minutes===void 0?0:B.minutes,P=B.seconds===void 0?0:B.seconds;B=[];if(c>0){var Y=$66().format({hours:c});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.SB)||c>9999)Y=Y.replace(c.toString(),_.IYo(c)),_.SB==="km"&&(Y=Y.replace(".",","));B.push(Y)}x>0&&B.push($66().format({minutes:x}));P>0&&B.push($66().format({seconds:P}));c="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");x=_.SB==
"am"?"{0}\u1363 ":_.SB=="fa"?"{0}\u060c\u200f ":_.SB=="my"?"{0} - ":_.SB=="ne"?"{0},":_.SB=="th"?"{0} ":_.SB=="ur"?"{0}\u060c ":_.SB=="ar"||_.SB=="ar-XB"?"{0} \u0648":_.SB=="ja"||_.SB=="zh-CN"||_.SB=="zh-HK"||_.SB=="zh-TW"?"{0}\u3001":"{0}, ";P=_.SB=="am"?"\u1363 ":_.SB=="fa"?"\u060c\u200f ":_.SB=="my"?" - ":_.SB=="th"?" ":_.SB=="ur"?"\u060c ":_.SB=="ar"||_.SB=="ar-XB"?" \u0648":_.SB=="ja"||_.SB=="zh-CN"||_.SB=="zh-HK"||_.SB=="zh-TW"?"\u3001":", ";Y=_.SB=="am"?" \u12a5\u1293 {0}":_.SB=="as"?" \u0986\u09f0\u09c1 {0}":
_.SB=="az"?" v\u0259 {0}":_.SB=="bn"?" \u098f\u09ac\u0982 {0}":_.SB=="cs"?" a\u00a0{0}":_.SB=="de"?" und {0}":_.SB=="el"?" \u03ba\u03b1\u03b9 {0}":_.SB=="eu"?" eta {0}":_.SB=="fa"?"\u060c \u0648 {0}":_.SB=="fil"?", at {0}":_.SB=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.SB=="hi"?", \u0914\u0930 {0}":_.SB=="hu"?" \u00e9s {0}":_.SB=="hy"?" \u0587 {0}":_.SB=="id"?", dan {0}":_.SB=="iw"?" \u05d5-{0}":_.SB=="ja"?"\u3001{0}":_.SB=="ka"?" \u10d3\u10d0 {0}":_.SB=="km"?" \u1793\u17b7\u1784 {0}":_.SB=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.SB=="ko"?" \ubc0f {0}":_.SB=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.SB=="lt"?" ir {0}":_.SB=="lv"?" un {0}":_.SB=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.SB=="mr"?" \u0906\u0923\u093f {0}":_.SB=="ms"?" dan {0}":_.SB=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.SB=="ne"?" \u0930 {0}":_.SB=="or"?", \u0b13 {0}":_.SB=="pa"?" \u0a05\u0a24\u0a47 {0}":_.SB=="ro"?" \u0219i {0}":_.SB=="si"?", \u0dc3\u0dc4 {0}":_.SB=="sk"?" a {0}":_.SB=="sl"?" in {0}":_.SB=="sq"?" dhe {0}":_.SB=="sv"?" och {0}":
_.SB=="sw"?" na {0}":_.SB=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.SB=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.SB=="th"?" \u0e41\u0e25\u0e30{0}":_.SB=="tr"?" ve {0}":_.SB=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.SB=="uz"?" va {0}":_.SB=="vi"?" v\u00e0 {0}":_.SB=="zh-HK"?"\u53ca{0}":_.SB=="zu"?", ne-{0}":_.SB=="af"||_.SB=="nl"?" en {0}":_.SB=="ar"||_.SB=="ar-XB"?" \u0648{0}":_.SB=="be"||_.SB=="uk"?" \u0456 {0}":_.SB=="en-GB"||_.SB=="en-IN"?" and {0}":_.SB=="en"||_.SB=="en-XA"?
", and {0}":_.SB=="et"||_.SB=="fi"?" ja {0}":_.SB=="fr"||_.SB=="fr-CA"?" et {0}":_.SB=="zh-CN"||_.SB=="zh-TW"?"\u548c{0}":_.SB=="da"||_.SB=="is"||_.SB=="no"?" og {0}":_.SB=="es"||_.SB=="es-419"||_.SB=="es-US"?" y {0}":_.SB=="kk"||_.SB=="lo"||_.SB=="mn"?", {0}":_.SB=="bg"||_.SB=="mk"||_.SB=="ru"||_.SB=="sr"?" \u0438 {0}":_.SB=="gl"||_.SB=="it"||_.SB=="pt-BR"||_.SB=="pt-PT"?" e {0}":" i {0}";var g=_.SB=="am"?"{0} \u12a5\u1293 {1}":_.SB=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.SB=="az"?"{0} v\u0259 {1}":
_.SB=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.SB=="de"?"{0} und {1}":_.SB=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.SB=="eu"?"{0} eta {1}":_.SB=="fa"?"{0} \u0648 {1}":_.SB=="fil"?"{0} at {1}":_.SB=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.SB=="hi"?"{0} \u0914\u0930 {1}":_.SB=="hu"?"{0} \u00e9s {1}":_.SB=="hy"?"{0} \u0587 {1}":_.SB=="iw"?"{0} \u05d5-{1}":_.SB=="ja"?"{0}\u3001{1}":_.SB=="ka"?"{0} \u10d3\u10d0 {1}":_.SB=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.SB=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.SB=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.SB=="ko"?"{0} \ubc0f {1}":_.SB=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.SB=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.SB=="lt"?"{0} ir {1}":_.SB=="lv"?"{0} un {1}":_.SB=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.SB=="mn"?"{0}, {1}":_.SB=="mr"?"{0} \u0906\u0923\u093f {1}":_.SB=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.SB=="ne"?"{0} \u0930 {1}":_.SB=="or"?"{0} \u0b13 {1}":_.SB=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.SB=="ro"?"{0} \u0219i {1}":_.SB==
"si"?"{0} \u0dc3\u0dc4 {1}":_.SB=="sl"?"{0} in {1}":_.SB=="sq"?"{0} dhe {1}":_.SB=="sv"?"{0} och {1}":_.SB=="sw"?"{0} na {1}":_.SB=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.SB=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.SB=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.SB=="tr"?"{0} ve {1}":_.SB=="ur"?"{0} \u0627\u0648\u0631 {1}":_.SB=="uz"?"{0} va {1}":_.SB=="vi"?"{0} v\u00e0 {1}":_.SB=="zh-HK"?"{0}\u53ca{1}":_.SB=="zu"?"{0} ne-{1}":_.SB=="af"||_.SB=="nl"?"{0} en {1}":_.SB=="ar"||_.SB==
"ar-XB"?"{0} \u0648{1}":_.SB=="be"||_.SB=="uk"?"{0} \u0456 {1}":_.SB=="cs"||_.SB=="sk"?"{0} a\u00a0{1}":_.SB=="et"||_.SB=="fi"?"{0} ja {1}":_.SB=="fr"||_.SB=="fr-CA"?"{0} et {1}":_.SB=="id"||_.SB=="ms"?"{0} dan {1}":_.SB=="zh-CN"||_.SB=="zh-TW"?"{0}\u548c{1}":_.SB=="da"||_.SB=="is"||_.SB=="no"?"{0} og {1}":_.SB=="es"||_.SB=="es-419"||_.SB=="es-US"?"{0} y {1}":_.SB=="bg"||_.SB=="mk"||_.SB=="ru"||_.SB=="sr"?"{0} \u0438 {1}":_.SB=="en"||_.SB=="en-GB"||_.SB=="en-IN"||_.SB=="en-XA"?"{0} and {1}":_.SB==
"gl"||_.SB=="it"||_.SB=="pt-BR"||_.SB=="pt-PT"?"{0} e {1}":"{0} i {1}";_.SB==="sq"?(Y=Y.replace("dhe","e"),g=g.replace("dhe","e")):_.SB==="th"?(P=P.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):_.SB==="ne"?P=",":_.SB==="zh-CN"?P="":c.includes(_.SB)&&(P=" ");return B.length<2?B.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(_.SB)?B.length===2?
g.replace("{0}",B[0]).replace("{1}",B[1]):x.replace("{0}",B[0])+B.slice(1,-1).join(P)+Y.replace("{0}",B[B.length-1]):B.join(P)};
_.a.getTimeParam=function(){return F5c(this.timeString)};
_.a.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var B={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},c;_.bd(_.q_(),(c=this.data)==null?void 0:c.trackingParams,B,7)};
_.a.onChangeStartAtTimestamp=function(){for(var B=this.startAtTimestamp.value.split(":"),c=0,x=1,P=B.length-1;P>=0;P--)c+=Number(B[P])*x,x*=60;this.updateTimeSecs(c);this.setTimestamp()};
_.a.onOpen=function(){var B=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var c=_.e5();c?c.getPlayerPromise().then(function(x){x=x.getCurrentTime();B.updateTimeSecs(x)}):krs()&&this.updateTimeSecs(krs())};
_.a.setTimestamp=function(){var B=Math.floor(this.currentTimeSecs);_.gj(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!B,timestamp:B||""}])};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],gO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gO.prototype,"data",void 0);_.L([_.F({value:!1,notify:!0}),_.H("design:type",Boolean)],gO.prototype,"isStartAtChecked",void 0);_.L([_.F(),_.H("design:type",Number)],gO.prototype,"currentTimeSecs",void 0);
_.L([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.H("design:type",String)],gO.prototype,"timeString",void 0);_.L([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.H("design:type",String)],gO.prototype,"timeStringA11y",void 0);_.L([_.jr("#start-at-timestamp"),_.H("design:type",Object)],gO.prototype,"startAtTimestamp",void 0);_.L([_.Em({is:"yt-start-at-renderer",disableElementRegistration:!0})],gO);
_.G(gO,"yt-start-at-renderer",function(){if(XDN===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;kHl===void 0&&(kHl=document.createElement("template"));var P=kHl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);XDN=B}B=XDN;return B},{mode:2});var $zz;var nGo;var bjl=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"]]),KAN=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"]]),jez=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Uzz={};Uzz.YtBindingExpressionsBehavior={identity:_.Sd,msg:function(B,c){c=c===void 0?{}:c;return _.Up(B,c,B)},
msgPlural:function(B,c){return _.dj(B,c)},
getMusicIconFromType:function(B){if(_.T("music_web_enable_icon_wil"))B=_.$0(B);else if(KAN.has(B))B="yt-sys-icons:"+KAN.get(B);else{var c=bjl.get(B)||_.$0(B).split(":")[1];c=_.hyo(c);var x;B=((x=jez.get(B))!=null?x:"yt-sys-icons:")+c}return B}};var dzc;var qUz;var C6i;var h0s=document.head,mzB=h0s.appendChild,TZr;if(C6i===void 0){var VMz=document.createElement("template");_.I(VMz,'\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>');C6i=VMz}TZr=C6i;mzB.call(h0s,TZr.content);var s7=function(){var B=_.z.apply(this,arguments)||this;B.screenLayer=7;return B};
_.w(s7,_.z);s7.prototype.getScreenLayer=function(){return this.screenLayer};
s7.prototype.onTap=function(B){B&&B.detail&&(B.detail.x||B.detail.y)&&_.Y9(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.kC(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(B=this.getScreenLayer(),_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:B}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.AJ.Object.defineProperties(s7.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()}}});
s7.prototype.onTap=s7.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],s7.prototype,"data",void 0);_.L([_.Q("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],s7.prototype,"title",null);
_.L([_.Q("data.serviceName"),_.H("design:type",String),_.H("design:paramtypes",[])],s7.prototype,"icon",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],s7.prototype,"onTap",null);_.L([_.Em({is:"yt-share-target-renderer",disableElementRegistration:!0})],s7);
_.G(s7,"yt-share-target-renderer",function(){if(qUz===void 0){var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;dzc===void 0&&(dzc=document.createElement("template"));var P=dzc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);qUz=B}B=qUz;return B},{mode:2});var tM6;var wDN;var pX=function(){var B=_.z.apply(this,arguments)||this;B.SHARE_TARGET_WIDTH=70;B.SHARE_TARGET_MARGIN_RIGHT=8;B.PAGE_SCROLL_SPEED=9;B.actionMap={"yt-share-panel-reset-action":"onReset_"};return B};
_.w(pX,_.z);_.a=pX.prototype;_.a.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.a.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Y9(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Y9(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.a.onReset_=function(){if(_.Y9(this.hostElement).querySelector("#list")){var B=_.Y9(this.hostElement).querySelector("#list");var c=_.Y9(this.hostElement).querySelector("#list");var x=c.offsetLeft,P=c.offsetParent;P||_.$Qt(c)!="fixed"||(P=_.ly(c).documentElement);if(P){if(_.nY&&!_.KY(58)){var Y=_.CtW(P);x+=Y.left}else Number(_.veY)>=8&&!(Number(_.veY)>=9)&&(Y=_.CtW(P),x-=Y.left);c=_.dQy(P)?P.clientWidth-(x+c.offsetWidth):x}else c=x;Xwi(B,c);this.updateScrollButtons_()}};
_.a.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.a.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.a.onScrollWheel_=function(B){B.stopPropagation();B.preventDefault();var c=kUc(_.Y9(this.hostElement).querySelector("#list"));B=Math.abs(B.deltaX)>Math.abs(B.deltaY)?B.deltaX:B.deltaY;Xwi(_.Y9(this.hostElement).querySelector("#list"),c+B);this.updateScrollButtons_()};
_.a.smoothScrollByOnePage_=function(B){var c=_.Y9(this.hostElement).querySelector("#list"),x=(Math.floor(c.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,P=kUc(c),Y=x*(B?1:-1),g=this.PAGE_SCROLL_SPEED,k=this.updateScrollButtons_.bind(this),n=0,b;(function q(){n+=g;b=n/x*2;Xwi(c,P+Y*(b<1?b*b:-b*b+4*b-2));n<x?window.requestAnimationFrame(q):k()})()};
_.a.updateScrollButtons_=function(){var B=kUc(_.Y9(this.hostElement).querySelector("#list")),c=_.Y9(this.hostElement).querySelector("#list").scrollWidth-_.Y9(this.hostElement).querySelector("#list").clientWidth;_.Y9(this.hostElement).querySelector("#scroll-button-back").hidden=B<=0;_.Y9(this.hostElement).querySelector("#scroll-button-forward").hidden=B>=c};
pX.prototype.onScrollWheel_=pX.prototype.onScrollWheel_;pX.prototype.onDataChanged_=pX.prototype.onDataChanged_;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],pX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(Uzz.YtBindingExpressionsBehavior),_.H("design:type",Object)],pX.prototype,"ytBindingExpressionsBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pX.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pX.prototype,"onDataChanged_",null);_.L([_.nF("wheel"),_.H("design:type",Function),_.H("design:paramtypes",[WheelEvent]),_.H("design:returntype")],pX.prototype,"onScrollWheel_",null);
_.L([_.Em({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],pX);
_.G(pX,"yt-third-party-share-target-section-renderer",function(){if(wDN===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;tM6===void 0&&(tM6=document.createElement("template"));var P=tM6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);wDN=B}B=wDN;return B},{mode:2});var kA=function(){return _.z.apply(this,arguments)||this};
_.w(kA,_.z);kA.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"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],kA.prototype,"data",void 0);_.L([_.Em({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],kA);
_.G(kA,"yt-third-party-network-section-renderer",function(){if(nGo===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;$zz===void 0&&($zz=document.createElement("template"));var P=$zz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);nGo=B}B=nGo;return B},{mode:2});_.xU(_.rM(function(B){return _.U("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.U("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.U(_.IF,{data:function(){return B.data().firstPartyItems}},{listItemViewModel:_.W0})))},"rg"),"first-party-network-section-view-model",{props:{data:_.rk}});var NZc=_.r2(["data:image/svg+xml;charset=UTF-8;base64,",""]),Xw=function(){var B=_.z.apply(this,arguments)||this;B.screenLayer=7;B.qrCodeEnabled=_.T("web_enable_sharing_qr_code");B.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return B};
_.w(Xw,_.z);_.a=Xw.prototype;_.a.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"}}}};
_.a.attached=function(){this.JSC$17914_scroller&&(this.JSC$17914_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17914_scroller.attached&&typeof this.JSC$17914_scroller.attached==="function"&&this.JSC$17914_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.a.onDataChanged=function(){var B=this,c;(c=this.data)!=null&&c.contents&&(this.hostElement.setAttribute("links-only","true"),_.sm(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.fl(this,function(){_.aJ(B.hostElement,"yt-refit");B.focusSharePanelHeader()}))};
_.a.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.a.handleSetTimestamp=function(B){var c=this.shortUrl();B.isSet&&(c=_.Mw(c,"t",B.timestamp));this.maybeRenderQrCode(c)};
_.a.shortUrl=function(){var B,c=(B=this.data)==null?void 0:B.contents;if(c)for(B=0;B<c.length;B++){var x=void 0,P=void 0;if((x=c[B])==null?0:(P=x.thirdPartyNetworkSection)==null?0:P.copyLinkContainer){var Y=P=x=void 0;return(Y=_.t((x=c[B])==null?void 0:(P=x.thirdPartyNetworkSection)==null?void 0:P.copyLinkContainer,pbS))==null?void 0:Y.shortUrl}}};
_.a.maybeRenderQrCode=function(B){var c=this,x,P,Y,g,k,n,b,d,q;return _.X(function(C){if(C.nextAddress==1){x=_.Y9(c.hostElement).querySelector("#qr-code");if(!c.qrCodeEnabled||!B)return x&&(x.style.display="none"),C.return();P=_.l7C(_.cp().resolve(_.nL),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Y=document.createElement("div");return typeof P==="function"?(P(Y),C.jumpTo(2)):_.K(C,P,3)}C.nextAddress!=2&&(g=C.yieldResult,g(Y));b=(k=Y)==null?void 0:(n=k.firstChild)==null?void 0:n.firstChild;
d=document.createElement("img");q=_.w8(NZc,btoa(b.outerHTML));d.onload=function(){var h={canvas:x,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:d},V=new oWz;yJo(V,B);GKA(V,!1,MON(V));var N=V.modules,l=Object.assign({},LtF,h);N=structuredClone(N);h=N.length;var E,S=(E=l.canvas)!=null?E:document.createElement("canvas");E=l.cellSize;V=l.logo;var M,f=(M=l.logoSize)!=null?M:Math.floor(h/4);h%2!==f%2&&f++;var Z=l.logoPadding,u=l.backgroundColor;M=h*E;var e=
l.width,px=0;e&&(px=l.padding,px=Math.ceil(px*M/(e-px*2)),S.style.width=e+"px",S.style.height=e+"px");S.width!==M+px*2&&(S.width=M+px*2);S.height!==M+px*2&&(S.height=M+px*2);M=S.getContext("2d");l.autoClear&&M.clearRect(0,0,S.width,S.height);M.fillStyle=u;M.beginPath();M.roundRect(0,0,S.width,S.height,l.borderRadius);M.fill();M.save();M.translate(px,px);if(V)for(S=Math.floor(h-f)/2-Z,Z=Math.floor(h+f)/2+Z,u=S;u<Z;u++)for(e=S;e<Z;e++)N[u][e]=!1;for(S=0;S<h;S++)for(Z=0;Z<h;Z++)(S<7&&Z<7||S<7&&Z>=h-
7||S>=h-7&&Z<7)&&(N[S][Z]=!1);var kI;S=(kI=l.markerColor)!=null?kI:l.color;Zlc(M,0,0,E,S);Zlc(M,E*(h-7),0,E,S);Zlc(M,0,E*(h-7),E,S);switch(l.cellStyle){case 0:kI=N;N=kI.length;S=l.cellSize;M.beginPath();for(Z=0;Z<N;Z++)for(u=0;u<N;u++)kI[Z][u]&&M.rect(Z*S,u*S,S,S);M.fillStyle=l.color;M.fill();break;case 1:kI=N;N=kI.length;S=l.cellSize;Z=S*l.relativeCircleSize;M.fillStyle=l.color;M.beginPath();for(l=0;l<N;l++)for(u=0;u<N;u++)kI[l][u]&&(M.beginPath(),M.ellipse((l+.5)*S,(u+.5)*S,Z/2,Z/2,0,0,2*Math.PI),
M.fill());M.fill();break;case 2:kI=N;N=kI.length;S=l.cellSize;M.fillStyle=l.color;l=[[1,1],[-1,1],[-1,-1],[1,-1]];M.beginPath();for(Z=0;Z<N;Z++)for(u=0;u<N;u++)if(kI[Z][u])M.roundRect(Z*S,u*S,S,S,S/2),Z+1<N&&kI[Z+1][u]&&M.rect(Z*S+S/2,u*S,S,S),u+1<N&&kI[Z][u+1]&&M.rect(Z*S,u*S+S/2,S,S);else{e=Z*S+S/2;px=u*S+S/2;for(var Ul=0;Ul<4;Ul++){var wC=_.p(l[Ul]),W$=wC.next().value;wC=wC.next().value;Z+W$>=0&&Z+W$<N&&u+wC>=0&&u+wC<N&&kI[Z+W$][u]&&kI[Z][u+wC]&&kI[Z+W$][u+wC]&&(W$=Ul*Math.PI/2,wC=S/2,M.moveTo(e+
wC*Math.cos(W$),px+wC*Math.sin(W$)),M.arc(e,px,S/2,W$,W$+Math.PI/2,!1),M.lineTo(e+wC*(Math.cos(W$)-Math.sin(W$)),px+wC*(Math.cos(W$)+Math.sin(W$))),M.lineTo(e+wC*Math.cos(W$),px+wC*Math.sin(W$)))}}M.fill()}V&&M.drawImage(V,(h-f)*E/2,(h-f)*E/2,f*E,f*E);M.restore();x.style.removeProperty("display")};
d.src=_.UG(q);_.Kq(C)})};
_.a.hasCommunityPostRenderer=function(){var B,c,x,P;return!!((B=this.data)==null?0:(c=B.header)==null?0:(x=c.sharePanelHeaderRenderer)==null?0:(P=x.communityPost)==null?0:P.communityPostSectionRenderer)};
_.a.onTapClose=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.a.getScreenLayer=function(){return this.screenLayer};
_.a.logSharePanelPage=function(){if(!_.T("enable_share_panel_navigation_logging_fix_on_web")){var B;if((B=this.data)!=null&&B.trackingParams){B=this.data.trackingParams;var c=this.parentClickTrackingParams;c=c?_.VF(c):void 0;var x=_.q_();_.kk(x,21760,c,{layer:7,parentLayer:0});x.graftServerVe(B,void 0,7);_.uG().dispatch(_.YN({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Xw.prototype.onDataChanged=Xw.prototype.onDataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Xw.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Xw.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Xw.prototype,"data",void 0);_.L([_.F({value:_.Up("SBOX_INAPPROPRIATE_CANCEL")}),_.H("design:type",String)],Xw.prototype,"closeButtonAriaLabel",void 0);_.L([_.jr("yt-share-panel-header-renderer"),_.H("design:type",HTMLElement)],Xw.prototype,"header",void 0);_.L([_.F({selector:function(B){return B.share.parentClickTrackingParams}}),
_.H("design:type",String)],Xw.prototype,"parentClickTrackingParams",void 0);_.L([_.F(),_.H("design:type",Object)],Xw.prototype,"qrCodeEnabled",void 0);_.L([_.jr("#scroller"),_.H("design:type",Object)],Xw.prototype,"JSC$17914_scroller",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xw.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Xw);
_.G(Xw,"ytd-unified-share-panel-renderer",function(){if(BZ6!==void 0)return BZ6;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return BZ6=B},{mode:1});var I4o;var $A=function(){var B=_.z.apply(this,arguments)||this;B.modernModal=_.T("kevlar_sign_in_modal_modernization");return B};
_.w($A,_.z);$A.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
$A.prototype.computeShouldHideOldButtons=function(){var B;return!((B=this.data)==null?0:B.button)};
_.AJ.Object.defineProperties($A.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var B,c;if(this.modernModal&&((B=this.data)==null?0:(c=B.button)==null?0:c.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var x,P;return(x=this.data)==null?void 0:(P=x.button)==null?void 0:P.buttonRenderer}}});
_.L([_.F(),_.H("design:type",Object)],$A.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],$A.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],$A.prototype,"modernModal",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$A.prototype,"buttonRendererData",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],$A);
_.G($A,"ytd-modal-with-title-and-button-renderer",function(){if(I4o!==void 0)return I4o;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return I4o=B},{mode:1});var Juz;var nX=function(){return _.z.apply(this,arguments)||this};
_.w(nX,_.z);nX.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("page-changed",this.page))};
nX.prototype.pageChangedForBinding=nX.prototype.pageChangedForBinding;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nX.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],nX.prototype,"page",void 0);_.L([_.bF("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nX.prototype,"pageChangedForBinding",null);
_.L([_.y({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],nX);
_.G(nX,"ytd-account-item-section-header-renderer",function(){if(Juz!==void 0)return Juz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Juz=B},{mode:1});var WAB;var bq=function(){return _.z.apply(this,arguments)||this};
_.w(bq,_.z);bq.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"}}}};
bq.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],bq.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],bq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Function)],bq.prototype,"onAccountItemTap",void 0);
_.L([_.y({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],bq);
_.G(bq,"ytd-account-item-section-renderer",function(){if(WAB!==void 0)return WAB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WAB=B},{mode:1});var l4r;var EGy;var KX=function(){return _.z.apply(this,arguments)||this};
_.w(KX,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],KX.prototype,"data",void 0);_.L([_.y({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],KX);
_.G(KX,"ytd-accounts-dialog-header-renderer",function(){if(EGy!==void 0)return EGy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return EGy=B},{mode:1});var Ojc;var jD=function(){return _.z.apply(this,arguments)||this};
_.w(jD,_.z);jD.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],jD.prototype,"data",void 0);_.L([_.y({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],jD);
_.G(jD,"ytd-google-account-header-renderer",function(){if(Ojc!==void 0)return Ojc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ojc=B},{mode:1});var U7=function(){return _.z.apply(this,arguments)||this};
_.w(U7,_.z);U7.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"}}}};
U7.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("page-changed",this.page))};
U7.prototype.pageChangedForBinding=U7.prototype.pageChangedForBinding;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],U7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],U7.prototype,"page",void 0);
_.L([_.bF("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U7.prototype,"pageChangedForBinding",null);_.L([_.y({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],U7);
_.gX()(U7,"ytd-account-section-list-renderer",function(){if(l4r===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);l4r=B}B=l4r;return B},{allowedProps:["data"],
mode:1});var oGF;var dO=function(){var B=_.z.apply(this,arguments)||this;B.enableHandlesAccountMenuSwitcher=_.T("enable_handles_account_menu_switcher");return B};
_.w(dO,_.z);dO.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
dO.prototype.dataChanged=dO.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dO.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],dO.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.L([_.jr("#avatar"),_.H("design:type",Object)],dO.prototype,"avatar",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dO.prototype,"dataChanged",null);_.L([_.y({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],dO);
_.gX()(dO,"ytd-active-account-header-renderer",function(){if(oGF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);oGF=B}B=oGF;return B},{allowedProps:["data"],
mode:1});var QeN;var FAF;var qq=function(){return _.z.apply(this,arguments)||this};
_.w(qq,_.z);qq.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qq.prototype.onBackTap=function(){_.aJ(this.hostElement,"yt-menu-back-tapped")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qq.prototype,"data",void 0);_.L([_.y({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],qq);
_.gX()(qq,"ytd-simple-menu-header-renderer",function(){if(FAF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);FAF=B}B=FAF;return B},{allowedProps:["data"],
mode:2});var vGi;var CX=function(){return _.z.apply(this,arguments)||this};
_.w(CX,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CX.prototype,"data",void 0);_.L([_.y({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],CX);
_.G(CX,"ytd-comment-video-thumbnail-header-renderer",function(){if(vGi!==void 0)return vGi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vGi=B},{mode:1});var z0N;var hz=function(){return _.z.apply(this,arguments)||this};
_.w(hz,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hz.prototype,"data",void 0);_.L([_.y({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],hz);
_.G(hz,"ytd-abuse-type-selector-renderer",function(){if(z0N!==void 0)return z0N;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return z0N=B},{mode:1});var SUy;var mr=function(){return _.z.apply(this,arguments)||this};
_.w(mr,_.z);mr.prototype.attached=function(){var B=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){B.additionalContextInput.focusTextInput()})};
mr.prototype.handleAdditionalContextChanged=function(){var B=this;_.yo(this,"ytd-report-channel-additional-context-update",function(){B.ytdReduxBehavior.dispatch(_.YN({type:"ADDITIONAL_CONTEXT_UPDATED",payload:B.additionalContext}))},300)};
mr.prototype.updateAdditionalContextFromBinding=function(B){this.additionalContext=B.detail.value};
mr.prototype.handleAdditionalContextChanged=mr.prototype.handleAdditionalContextChanged;_.L([_.J(_.OU),_.H("design:type",Object)],mr.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",String)],mr.prototype,"additionalContext",void 0);_.L([_.F({selector:function(B){return B.reportChannelAbuse.additionalContext}}),
_.H("design:type",String)],mr.prototype,"additionalContextRedux",void 0);_.L([_.F(),_.H("design:type",Object)],mr.prototype,"data",void 0);_.L([_.jr("yt-text-input-form-field-renderer"),_.H("design:type",Object)],mr.prototype,"additionalContextInput",void 0);_.L([_.bF("additionalContext"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mr.prototype,"handleAdditionalContextChanged",null);
_.L([_.y({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],mr);
_.G(mr,"ytd-report-channel-modal-additional-context-renderer",function(){if(SUy!==void 0)return SUy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return SUy=B},{mode:1});var yuc;var Tp=function(){var B=_.z.apply(this,arguments)||this;B.nextButtonDisabled=null;B.submitEndpoint=null;B.navigationEndpoint=null;B.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return B};
_.w(Tp,_.z);_.a=Tp.prototype;_.a.computeNextButtonData=function(B,c,x){var P={};c&&(P.navigationEndpoint=c);x&&(P.serviceEndpoint=x);B&&B.buttonRenderer&&_.wW.extend(P,B.buttonRenderer);return P};
_.a.handleReportChannelModalDisableNextButtonAction=function(B){this.setNextButtonIsDisabled(B)};
_.a.handleReportFormEndpointUpdateAction=function(B){this.setNextButtonIsDisabled(!!B.disableSubmitButton);this.resetEndpointData();B.submitEndpoint?this.submitEndpoint=B.submitEndpoint:B.submitNavigationEndpoint&&(this.navigationEndpoint=B.submitNavigationEndpoint)};
_.a.handleSignalActionSubmitForm=function(){var B,c=Object.keys(((B=this.reportChannelAbuseForm)==null?void 0:B.selectedVideoIds)||{}),x;B=((x=this.reportChannelAbuseForm)==null?void 0:x.additionalContext)||"";var P;x=((P=this.reportChannelAbuseForm)==null?void 0:P.impersonatedChannelUrl)||"";var Y;if((Y=this.data)==null?0:Y.submitEndpoint){c={impersonated_channel_url:x,text:B,video_ids:c};var g;_.cp().resolve(_.xu).resolveCommand((g=this.data)==null?void 0:g.submitEndpoint,{form:Object.assign({},
c,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.a.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.a.onYtServiceRequestError=function(B){this.setNextButtonIsDisabled(!1);_.xE(this.hostElement,B.detail.error.message)};
_.a.setNextButtonIsDisabled=function(B){this.set("data.nextButton.buttonRenderer.isDisabled",B)};
_.a.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Tp.prototype.onYtServiceRequestError=Tp.prototype.onYtServiceRequestError;Tp.prototype.onYtServiceRequestCompleted=Tp.prototype.onYtServiceRequestCompleted;_.L([_.F(),_.H("design:type",Object)],Tp.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Tp.prototype,"nextButtonDisabled",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Tp.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Tp.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Tp.prototype,"submitEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],Tp.prototype,"navigationEndpoint",void 0);_.L([_.F({selector:function(B){return B.reportChannelAbuse}}),
_.H("design:type",Object)],Tp.prototype,"reportChannelAbuseForm",void 0);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tp.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tp.prototype,"onYtServiceRequestError",null);
_.L([_.y({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Tp);
_.G(Tp,"ytd-report-channel-modal-footer-renderer",function(){if(yuc!==void 0)return yuc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yuc=B},{mode:1});var GHA;var VS=function(){var B=_.z.apply(this,arguments)||this;B.boundOnTapDismissButton=function(){B.closePopup()};
return B};
_.w(VS,_.z);VS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
VS.prototype.handleDataChanged=function(){_.ir(this.hostElement)};
VS.prototype.closePopup=function(){_.gj(this.hostElement,"yt-close-popup-action")};
VS.prototype.handleDataChanged=VS.prototype.handleDataChanged;_.L([_.F(),_.H("design:type",Object)],VS.prototype,"boundOnTapDismissButton",void 0);_.L([_.F(),_.H("design:type",Object)],VS.prototype,"data",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VS.prototype,"handleDataChanged",null);_.L([_.y({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],VS);
_.G(VS,"ytd-report-channel-modal-header-renderer",function(){if(GHA!==void 0)return GHA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return GHA=B},{mode:1});var MMl;var tz=function(){var B=_.z.apply(this,arguments)||this;B.autoValidate=!1;B.invalid=!1;B.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return B};
_.w(tz,_.z);_.a=tz.prototype;_.a.attached=function(){var B=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){B.channelUrlInput.focusTextInput()})};
_.a.disableNextButton=function(B){_.gj(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[B])};
_.a.handleImpersonatedChannelUrlChanged=function(){var B=this;this.disableNextButton(!0);this.invalid=!1;_.yo(this,"ytd-report-channel-impersonated-channel-update",function(){var c=B.impersonatedChannelUrl.trim();B.ytdReduxBehavior.dispatch(_.YN({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:c}));var x;((x=B.data)==null?0:x.submitEndpoint)&&c&&_.cp().resolve(_.xu).resolveCommand(B.data.submitEndpoint,{form:{impersonated_channel_url:c,element:B.hostElement}})},500)};
_.a.handleModifyReportFormCommand=function(B){this.invalid=this.get("modifyReportFormCommand.action",B)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.a.updateInvalidFromBinding=function(B){this.invalid=B.detail.value};
_.a.updateImpersonatedChannelUrlFromBinding=function(B){this.impersonatedChannelUrl=B.detail.value};
tz.prototype.handleImpersonatedChannelUrlChanged=tz.prototype.handleImpersonatedChannelUrlChanged;_.L([_.J(_.OU),_.H("design:type",Object)],tz.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],tz.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tz.prototype,"autoValidate",void 0);_.L([_.F(),_.H("design:type",Object)],tz.prototype,"invalid",void 0);
_.L([_.F(),_.H("design:type",String)],tz.prototype,"impersonatedChannelUrl",void 0);_.L([_.F({selector:function(B){return B.reportChannelAbuse.impersonatedChannelUrl}}),
_.H("design:type",String)],tz.prototype,"impersonatedChannelUrlRedux",void 0);_.L([_.F(),_.H("design:type",Object)],tz.prototype,"data",void 0);_.L([_.jr("#text-input"),_.H("design:type",Object)],tz.prototype,"channelUrlInput",void 0);_.L([_.bF("impersonatedChannelUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tz.prototype,"handleImpersonatedChannelUrlChanged",null);
_.L([_.y({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],tz);
_.G(tz,"ytd-report-channel-modal-impersonation-renderer",function(){if(MMl!==void 0)return MMl;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return MMl=B},{mode:1});var LAs;var Zj6;var wO=function(){return _.z.apply(this,arguments)||this};
_.w(wO,_.z);wO.prototype.onCheckboxToggled=function(B){var c,x,P=(x=_.t((c=this.data)==null?void 0:c.video,_.yR))==null?void 0:x.videoId;P&&this.ytdReduxBehavior.dispatch(B.target.checked?_.YN({type:"VIDEO_SELECTED",payload:P}):_.YN({type:"VIDEO_UNSELECTED",payload:P}))};
wO.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.AJ.Object.defineProperties(wO.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var B,c=(B=this.data)==null?void 0:B.video;if(!c)return{};var x;B=(x=_.t(c,_.yR))==null?void 0:x.navigationEndpoint;if(!B)return c;_.t(B==null?void 0:B.commandMetadata,_.Br)&&(_.t(B.commandMetadata,_.Br).ignoreNavigation=!0);return c}}});
_.L([_.F({reflectToAttribute:!0,selector:function(B,c){return c in B.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.H("design:type",Boolean)],wO.prototype,"checked",void 0);_.L([_.F(),_.H("design:type",Object)],wO.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],wO.prototype,"video",null);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],wO.prototype,"ytdReduxBehavior",void 0);_.L([_.y({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],wO);
_.G(wO,"ytd-selectable-video-renderer",function(){if(Zj6!==void 0)return Zj6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Zj6=B},{mode:1});var Nq=function(){var B=_.z.apply(this,arguments)||this;B.monitorScroll=!0;return B};
_.w(Nq,_.z);Nq.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Nq.prototype,"data",void 0);_.L([_.y({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Nq);
_.G(Nq,"ytd-selectable-video-list-renderer",function(){if(LAs!==void 0)return LAs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return LAs=B},{mode:1});var Hjc;_.o2("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var IQ=function(){return _.z.apply(this,arguments)||this};
_.w(IQ,_.z);IQ.prototype.onChange=function(B){if(B=_.uI(B).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.T("kevlar_command_handler_migration_killswitch"))_.XX(this.hostElement,B,this.hostElement);else{B=_.p(B);for(var c=B.next();!c.done;c=B.next())this.ytComponentBehavior.resolveCommand(c.value)}};
IQ.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
IQ.prototype.updateDataToggledFromBinding=function(B){this.set("data.toggled",B.detail.value)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],IQ.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],IQ.prototype,"data",void 0);_.L([_.F({computed:"isEnabled(data)"}),_.H("design:type",Boolean)],IQ.prototype,"enabled",void 0);_.L([_.y({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],IQ);
_.G(IQ,"ytd-toggle-item-renderer",function(){if(Hjc!==void 0)return Hjc;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Hjc=B},{mode:1});var f4z;var ijy;var Auo;var Jz=function(){var B=_.z.apply(this,arguments)||this;B.setVisible=!1;B.boundOnSubmitButtonClick=function(){B.onSubmitButtonClick()};
B.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return B};
_.w(Jz,_.z);Jz.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}}}}}};
Jz.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Jz.prototype.onSubmitButtonClick=function(){var B;((B=this.data)==null?0:B.submitEndpoint)&&!_.T("enable_ytc_refunds_submit_form_signal_action")&&_.kC(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Jz.prototype.handleSignalActionSubmitForm=function(){var B;((B=this.data)==null?0:B.submitEndpoint)&&_.kC(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.AJ.Object.defineProperties(Jz.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.hiddenByDefault)&&!this.setVisible}}});
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Jz.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Jz.prototype,"setVisible",void 0);_.L([_.F(),_.H("design:type",Object)],Jz.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],Jz.prototype,"surveyFeedbackData",void 0);_.L([_.F(),_.H("design:type",Object)],Jz.prototype,"boundOnSubmitButtonClick",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data","setVisible"),_.H("design:type",Object),_.H("design:paramtypes",[])],Jz.prototype,"visibilityHidden",null);_.L([_.Em({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Jz);
_.G(Jz,"yt-flow-footer-renderer",function(){if(Auo===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;ijy===void 0&&(ijy=document.createElement("template"));var P=ijy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Auo=B}B=Auo;return B},{mode:2});var WQ=function(){return _.z.apply(this,arguments)||this};
_.w(WQ,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],WQ.prototype,"data",void 0);_.L([_.F({selector:function(B){return B.ypc.surveyFeedbackData}}),
_.H("design:type",Object)],WQ.prototype,"surveyFeedbackData",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],WQ);
_.G(WQ,"ytd-flow-footer-renderer",function(){if(f4z!==void 0)return f4z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return f4z=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var uh6;var Dz8;var lq=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return B};
_.w(lq,_.z);_.a=lq.prototype;_.a.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Qf("multiPageMenuSectionItems")}}};
_.a.handleHideEnclosingAction_=function(B){if(this.data&&this.data.items)for(var c=0;c<this.data.items.length;c++){var x=this.data.items[c].notificationRenderer;if(x&&x.notificationId==B.hideEnclosingAction.notificationId){this.splice("data.items",c,1);_.gj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.a.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.sm(this.hostElement,"hidden",!0)};
_.a.updateMenu_=function(B){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&B&&!B.doNotRefreshInbox){B=this.data.continuations;for(var c=0;c<B.length;c++)if(B[c].invalidationContinuationData){var x=void 0;var P=(x=B[c].invalidationContinuationData)==null?void 0:x.continuation;break}B=_.wW.clone(this.data.continuationUpdateEndpoint||null);B.continuation=P;B.click_tracking_params=this.data.trackingParams;_.kC(this.hostElement,[B])}};
_.a.onServiceRequestCompleted_=function(B,c){if(this.data&&(B=c.actions)){c=0;for(var x=B.length;c<x;c++){var P=_.t(B[c],_.V2t);if(!P)break;if((P.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||P.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&P.continuationItems&&this.data.items){var Y=this.data.items.length-1;this.data.items[Y].continuationItemRenderer&&this.splice.apply(this,["data.items",Y,1].concat(P.continuationItems))}}}};
lq.prototype.onServiceRequestCompleted_=lq.prototype.onServiceRequestCompleted_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],lq.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lq.prototype,"data",void 0);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],lq.prototype,"onServiceRequestCompleted_",null);_.L([_.Em({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],lq);
_.gX()(lq,"yt-multi-page-menu-section-renderer",function(){if(Dz8===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;uh6===void 0&&(uh6=document.createElement("template"));var P=uh6;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Dz8=B}B=Dz8;return B},{allowedProps:["data"],
mode:2});var ruN;var R0N;var E7=function(){return _.z.apply(this,arguments)||this};
_.w(E7,_.z);E7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.AJ.Object.defineProperties(E7.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.progress)==null?0:this.data.progress*100}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],E7.prototype,"data",void 0);_.L([_.Q("data.progress"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],E7.prototype,"showProgressBar",null);
_.L([_.Q("data.progress"),_.H("design:type",Number),_.H("design:paramtypes",[])],E7.prototype,"progress",null);_.L([_.Em({is:"yt-flow-header-renderer",disableElementRegistration:!0})],E7);
_.G(E7,"yt-flow-header-renderer",function(){if(R0N===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;ruN===void 0&&(ruN=document.createElement("template"));var P=ruN;x.call(c,P.content.cloneNode(!0),B.content.firstChild);R0N=B}B=R0N;return B},{mode:2});var e0y;var BAi;var O7=function(){return _.z.apply(this,arguments)||this};
_.w(O7,_.z);O7.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],O7.prototype,"data",void 0);_.L([_.Em({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],O7);
_.G(O7,"yt-post-confirmation-flow-step-renderer",function(){if(BAi===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;e0y===void 0&&(e0y=document.createElement("template"));var P=e0y;x.call(c,P.content.cloneNode(!0),B.content.firstChild);BAi=B}B=BAi;return B},{mode:2});var c7l;var xTl;var oQ=function(){return _.z.apply(this,arguments)||this};
_.w(oQ,_.z);
oQ.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oQ.prototype,"data",void 0);_.L([_.Em({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],oQ);
_.G(oQ,"yt-refund-confirmation-flow-step-renderer",function(){if(xTl===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;c7l===void 0&&(c7l=document.createElement("template"));var P=c7l;x.call(c,P.content.cloneNode(!0),B.content.firstChild);xTl=B}B=xTl;return B},{mode:2});_.BX(vCo);_.BX(zdi);var Spr=_.mp({avatarViewModel:_.IS});_.BX(yiA);var GqS=_.mp({commentInteractionViewModel:zdi,sharedSubscriptionViewModel:yiA,buttonViewModel:_.Q7});_.BX(Mcy);_.BX(L5o);_.BX(ZWo);_.BX(HWA);_.BX(f1o);var iWo=_.mp({profileIdentityInfoViewModel:_.utz,profileInfoViewModel:f1o});_.BX(Ail);_.XB(Ail,"yt-profile-card-view-model",{propNames:["data"]});var QS=function(){var B=_.z.apply(this,arguments)||this;B.enableFocusFix=_.T("music_web_enable_focus_on_setting_menu_fix")&&_.zu("IS_MOBILE_WEB",!1);B.covered=!1;B.hideMenu=!1;B.isCommentNotificationOnProfileCard=!1;B.scrolledByTouch=!1;B.disableBackdropFilter=_.T("web_disable_backdrop_filter");B.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return B};
_.w(QS,_.z);_.a=QS.prototype;
_.a.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"}}}};
_.a.ready=function(){var B=this;this.JSC$18023_containerElement.addEventListener("scroll",function(){B.ytRendererBehavior.markDirty()})};
_.a.attributeChanged=function(B,c){B==="menu-style"&&_.gj(this.hostElement,"yt-multi-page-menu-closed-action",[c])};
_.a.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.$9(this,this.focusOnStampFinished))};
_.a.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.$9(this,this.focusOnStampFinished))};
_.a.reset=function(){this.closeJobId&&(_.EE.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.a.focusOnStampFinished=function(B){B.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.$9(this,this.focusOnStampFinished)),this.doFocus())};
_.a.doFocus=function(){var B=_.Fg5(this.sectionsElement);B.length&&B[0].focus()};
_.a.computeMenuStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.a.computeIsCommentNotificationOnProfileCard=function(B){return _.T("enable_profile_cards_on_comments")&&B.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.a.computeHideMenu=function(B,c){return B||!(!c||!c.showLoadingSpinner)};
_.a.onPopupClosed=function(){this.isPopUpOpen=!1;_.gj(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.a.onPopupOpened=function(B,c){this.isPopUpOpen=!0;c.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.aJ(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.YN({type:"CHANNEL_REPORT_RESET"})))};
_.a.onYtNavigate=function(B,c){this.shouldCloseOnNavigateEvent(c.endpoint)&&_.gj(this.hostElement,"yt-close-all-popups-action")};
_.a.handleEndpoint=function(B){B=_.t(B,_.oA);!this.isCommentNotificationOnProfileCard&&B&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$18023_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.a.handleActions=function(B){for(var c=0,x=B.length;c<x;c++){var P=_.t(B[c],$kB);P&&this.handleGetMultiPageMenuAction(P);(P=_.t(B[c],_.V2t))&&this.handleAppendContinuationItemsAction(P)}};
_.a.onServiceRequestSentOrCompleted=function(B,c){B.detail&&B.detail.endpoint&&this.handleEndpoint(B.detail.endpoint);c.actions&&this.handleActions(c.actions)};
_.a.handleGetMultiPageMenuAction=function(B){var c=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Y9(this.submenuElement).appendChild(c);(B=B.menu.multiPageMenuRenderer)&&this.logSubmenu(B);c.data=B;c.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.a.handleAppendContinuationItemsAction=function(B){if(this.data&&B.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&B.continuationItems&&this.data.sections){var c=this.data.sections.length-1;this.data.sections[c].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),c--);if(this.data.sections[c].multiPageMenuNotificationSectionRenderer&&B.continuationItems){B=_.p(B==null?void 0:B.continuationItems);for(var x=B.next();!x.done;x=B.next())if(x=x.value,_.t(x,z7i)){var P=
void 0,Y=void 0,g=void 0,k=void 0,n=void 0;((P=this)==null?0:(Y=P.data)==null?0:(g=Y.sections)==null?0:(k=g[c])==null?0:(n=k.multiPageMenuNotificationSectionRenderer)==null?0:n.items)&&this.push("data.sections."+c+".multiPageMenuNotificationSectionRenderer.items",x)}else if(_.t(x,_.XJn)||_.t(x,_.sB))this.push("data.sections",x),c++}}};
_.a.logSubmenu=function(B){if(!_.T("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var c=this.ytRendererBehavior.getScreenLayer(),x=_.Wf(c),P=_.Jg(c);if((B=B.trackingParams)&&x&&P){var Y=_.VF(B);_.T("combine_ve_grafts")?_.q_().graftServerVe(B,P,c):_.Gq(x,P,Y)}}};
_.a.emptySubmenuContainer=function(){for(var B=_.Y9(this.submenuElement);B.firstChild;)B.removeChild(B.firstChild)};
_.a.onMenuBackTap=function(B){_.aJ(this.hostElement,"yt-submenu-closed");B.stopPropagation()};
_.a.onSubmenuClosed=function(B){_.uI(B)!==this.hostElement&&(this.covered=!1,_.aJ(this.hostElement,"yt-refit"),B.stopPropagation())};
_.a.onRetrieveLocation=function(B,c){c.hasComments&&(c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),B.stopPropagation())};
_.a.shouldCloseOnNavigateEvent=function(B){if(!B)return!0;if(_.t(B,_.pLW)||_.t(B,_.kxd)||_.t(B,_.sX3)||_.t(B,_.yp))return!1;var c;return((c=_.t(B==null?void 0:B.commandMetadata,_.Br))==null?0:c.ignoreNavigation)?!1:!0};
_.a.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.a.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.a.refitAfterRender=function(){var B=this;_.fl(this,function(){_.aJ(B.hostElement,"yt-refit")})};
QS.prototype.refitAfterRender=QS.prototype.refitAfterRender;QS.prototype.onRetrieveLocation=QS.prototype.onRetrieveLocation;QS.prototype.onSubmenuClosed=QS.prototype.onSubmenuClosed;QS.prototype.onMenuBackTap=QS.prototype.onMenuBackTap;QS.prototype.onServiceRequestSentOrCompleted=QS.prototype.onServiceRequestSentOrCompleted;QS.prototype.onYtNavigate=QS.prototype.onYtNavigate;QS.prototype.onPopupOpened=QS.prototype.onPopupOpened;QS.prototype.onPopupClosed=QS.prototype.onPopupClosed;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],QS.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],QS.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QS.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],QS.prototype,"enableFocusFix",void 0);_.L([_.F(),_.H("design:type",Object)],QS.prototype,"covered",void 0);_.L([_.F({computed:"computeHideMenu(covered, data)"}),_.H("design:type",Object)],QS.prototype,"hideMenu",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.H("design:type",String)],QS.prototype,"menuStyle",void 0);
_.L([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.H("design:type",Object)],QS.prototype,"isCommentNotificationOnProfileCard",void 0);_.L([_.F(),_.H("design:type",Boolean)],QS.prototype,"isPopUpOpen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],QS.prototype,"scrolledByTouch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],QS.prototype,"disableBackdropFilter",void 0);
_.L([_.jr("#sections"),_.H("design:type",HTMLElement)],QS.prototype,"sectionsElement",void 0);_.L([_.jr("#spinner"),_.H("design:type",HTMLElement)],QS.prototype,"spinnerElement",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],QS.prototype,"headerElement",void 0);_.L([_.jr("#container"),_.H("design:type",HTMLElement)],QS.prototype,"JSC$18023_containerElement",void 0);_.L([_.jr("#submenu"),_.H("design:type",HTMLElement)],QS.prototype,"submenuElement",void 0);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QS.prototype,"onPopupClosed",null);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],QS.prototype,"onPopupOpened",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],QS.prototype,"onYtNavigate",null);
_.L([_.nF("yt-service-request-completed"),_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],QS.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.nF("yt-menu-back-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],QS.prototype,"onMenuBackTap",null);
_.L([_.nF("yt-submenu-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],QS.prototype,"onSubmenuClosed",null);_.L([_.nF("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],QS.prototype,"onRetrieveLocation",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QS.prototype,"refitAfterRender",null);
_.L([_.y({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],QS);
_.G(QS,"ytd-multi-page-menu-renderer",function(){if(QeN!==void 0)return QeN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QeN=B},{mode:1});var PSz;var Fw=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return B};
_.w(Fw,_.z);_.a=Fw.prototype;_.a.created=function(){this.showTooltips=!0};
_.a.computeAccessibility_=function(B){return this.get("accessibility.accessibilityData",B)||null};
_.a.onTap=function(){var B=_.sp(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(B&&B.length===1&&B[0])_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var c;if((c=this.data)==null?0:c.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var x;((x=this.data)==null?0:x.menuRequest)&&_.kC(this.hostElement,[this.data.menuRequest])}}};
_.a.handleTopbarMenuClosedAction=function(B){var c,x;(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(B)===((c=this.data)==null?void 0:(x=c.icon)==null?void 0:x.iconType)&&this.toggleIconState(!1)};
_.a.toggleIconState=function(B){_.T("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=B)};
_.a.handleUpdateTopbarAvatarAction=function(B){var c;B=(c=_.t(B,Yc8))==null?void 0:c.avatarUrl;var x,P;c=(x=this.data)==null?void 0:(P=x.avatar)==null?void 0:P.thumbnails;B&&c&&(x={thumbnails:[Object.assign({},c[0],{url:B})]},this.set("data.avatar",x))};
_.AJ.Object.defineProperties(Fw.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Y9(this.hostElement).querySelector("#button")}}});
Fw.prototype.onTap=Fw.prototype.onTap;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Fw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],Fw.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.M95.YtButtonBehavior),_.H("design:type",Object)],Fw.prototype,"ytButtonBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fw.prototype,"data",void 0);
_.L([_.jr("yt-icon-button#button"),_.H("design:type",Object)],Fw.prototype,"iconButton",void 0);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fw.prototype,"onTap",null);_.L([_.y({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Fw);
_.G(Fw,"ytd-topbar-menu-button-renderer",function(){if(PSz!==void 0)return PSz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return PSz=B},{mode:1});var Yfc;var vQ=function(){return _.z.apply(this,arguments)||this};
_.w(vQ,_.z);vQ.prototype.getSelected=function(){return this.reasons.selected};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vQ.prototype,"data",void 0);_.L([_.jr("#reasons"),_.H("design:type",Object)],vQ.prototype,"reasons",void 0);_.L([_.y({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],vQ);
_.G(vQ,"ytd-ad-feedback-content",function(){if(Yfc!==void 0)return Yfc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Yfc=B},{mode:1});var arz;var zp=function(){return _.z.apply(this,arguments)||this};
_.w(zp,_.z);_.a=zp.prototype;_.a.onPopupOpened=function(){_.gj(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.a.computeConfirmButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.confirmLabel}};
_.a.computeCancelButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.cancelLabel}};
_.a.onConfirmTap=function(){var B=this.content.getSelected();B!==void 0&&(B=this.data.reasons[B].endpoint)&&(_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}}),_.gj(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.a.sendFeedbackSubmitToastAction=function(){var B;(B=this.data)!=null&&B.completionMessage&&_.gj(this.hostElement,"yt-open-popup-action",[_.rL(this.data.completionMessage),this])};
_.a.onCancelTap=function(){_.gj(this.hostElement,"yt-close-popup-action")};
zp.prototype.onPopupOpened=zp.prototype.onPopupOpened;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zp.prototype,"data",void 0);_.L([_.jr("#content"),_.H("design:type",Object)],zp.prototype,"content",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zp.prototype,"onPopupOpened",null);
_.L([_.y({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],zp);
_.G(zp,"ytd-ad-feedback-renderer",function(){if(arz!==void 0)return arz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return arz=B},{mode:1});var gSF;var SD=function(){return _.z.apply(this,arguments)||this};
_.w(SD,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],SD.prototype,"data",void 0);_.L([_.y({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],SD);
_.G(SD,"ytd-ad-info-dialog-content",function(){if(gSF!==void 0)return gSF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gSF=B},{mode:1});var sNs;var yS=function(){return _.z.apply(this,arguments)||this};
_.w(yS,_.z);yS.prototype.computeConfirmButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.confirmLabel}};
yS.prototype.onConfirmTap=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
yS.prototype.computeShouldShowTitle=function(){var B;return!((B=this.data)==null||!B.title)};
yS.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
yS.prototype.onPopupClosed=yS.prototype.onPopupClosed;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yS.prototype,"data",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yS.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],yS);
_.G(yS,"ytd-ad-info-dialog-renderer",function(){if(sNs!==void 0)return sNs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return sNs=B},{mode:1});var pCB;var Gp=function(){var B=_.z.apply(this,arguments)||this;B.actionButtonClass="action-button";B.dismissButtonId="dismiss-button";B.dialogDismiss=!0;return B};
_.w(Gp,_.z);_.a=Gp.prototype;_.a.computeInPlayer=function(B){return(B==null?void 0:B.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.a.computedLogo=function(){var B,c;return this.isDarkTheme()?(B=this.data)==null?void 0:B.logoDark:(c=this.data)==null?void 0:c.logo};
_.a.computedHeaderImage=function(){var B,c;return this.isDarkTheme()?(B=this.data)==null?void 0:B.headerImageDark:(c=this.data)==null?void 0:c.headerImage};
_.a.computeLogoIconId=function(){var B,c,x,P=(B=this.computedLogo())==null?void 0:(c=B.sources)==null?void 0:(x=c[0])==null?void 0:x.height;return P&&P%31===0?"logo-icon-with-padding":"logo-icon"};
_.a.computeLogoIconHeight=function(){var B,c,x,P=(B=this.computedLogo())==null?void 0:(c=B.sources)==null?void 0:(x=c[0])==null?void 0:x.height;return P&&P%31===0?"31":"24"};
_.a.onPopupClosed=function(){_.cp().resolve(_.a9).dispose()};
_.a.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.a.onShow=function(){this.inPlayer&&_.bI(6)};
_.a.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var B=0;B<this.data.impressionEndpoints.length;B++){var c=_.t(this.data.impressionEndpoints[B],_.Fo);c&&this.ytComponentBehavior.resolveCommand(c)}};
_.a.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.gj(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.AJ.Object.defineProperties(Gp.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var B,c;return!((B=this.data)==null||!B.headerImageDark)&&!((c=this.data)==null||!c.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.secondaryButton)}}});
Gp.prototype.onPopupClosed=Gp.prototype.onPopupClosed;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Gp.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.i3.YtVisibilityBehavior),_.H("design:type",Object)],Gp.prototype,"ytVisibilityBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Gp.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],Gp.prototype,"actionButtonClass",void 0);_.L([_.F(),_.H("design:type",Object)],Gp.prototype,"dismissButtonId",void 0);_.L([_.F(),_.H("design:type",Object)],Gp.prototype,"dialogDismiss",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gp.prototype,"hasHeaderImage",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gp.prototype,"hasPremiumButton",null);
_.L([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.H("design:type",Boolean)],Gp.prototype,"inPlayer",void 0);_.L([_.jr("#dismiss-button"),_.H("design:type",HTMLElement)],Gp.prototype,"dismissButton",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Gp.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Gp);
_.G(Gp,"ytd-enforcement-message-view-model",function(){if(pCB!==void 0)return pCB;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return pCB=B},{mode:1});var kAl;var XCo;var Mq=function(){var B=_.z.apply(this,arguments)||this;B.TEST_ONLY={immediateValidation:function(){B.immediateValidation()},
onValidationResponse:function(c){B.onValidationResponse(c)},
onGenerateHandleFromNameResponse:function(c){B.onGenerateHandleFromNameResponse(c)}};
return B};
_.w(Mq,_.z);_.a=Mq.prototype;_.a.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.a.validate=function(){this.immediateValidation()};
_.a.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.a.setHandleInputValue=function(B){this.handleDir=this.getHandleDir(B);this.handleInput.value=B;this.validationState={status:"PENDING"};this.immediateValidation()};
_.a.getHandleDir=function(B){var c=B===""&&!1;return(c=_.tR5.test.call(_.tR5,B))?"rtl":"ltr"};
_.a.onDataChanged=function(){var B,c;this.handleDir=this.getHandleDir((c=(B=this.data)==null?void 0:B.handle)!=null?c:"");var x;this.validationState=((x=this.data)==null?0:x.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var P;((P=this.data)==null?0:P.validateOnInit)&&this.immediateValidation()};
_.a.stopPropagation=function(B){B.stopPropagation()};
_.a.onInput=function(){var B;this.handleDir=this.getHandleDir((B=this.handleInput.value)!=null?B:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.a.onFocusout=function(B){this.handleInput.contains(B.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.a.delayedValidation=function(){var B,c;this.debouncedValidation((c=(B=this.data)==null?void 0:B.validationDelayMs)!=null?c:1E3)};
_.a.immediateValidation=function(){this.debouncedValidation(0)};
_.a.debouncedValidation=function(B){var c=this;_.yo(this,"debouncedValidation",function(){var x,P=c.staticValidation((x=c.handleInput.value)!=null?x:"");if(P!==void 0)c.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:P};else{var Y;if((Y=c.data)!=null&&Y.validateChannelHandleCommand){c.validationState={status:"LOADING"};var g;c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{handle:(g=c.handleInput.value)!=null?g:""},commandController:{onSuccess:function(k,
n){c.onValidationResponse(n)},
onServerError:function(k,n){c.onValidationServerError(n)}}})}else c.handleUnexpectedValidationError(new _.mc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",c.data))}},B)};
_.a.staticValidation=function(B){var c;if(((c=this.data)==null?void 0:c.channelHandleStaticValidationParams)!==void 0){c=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(B)&&c.validValueRegexpErrorMessage!==void 0)return c.validValueRegexpErrorMessage;if(c.minLength!==void 0&&B.length<c.minLength&&c.minLengthErrorMessage!==void 0)return c.minLengthErrorMessage;if(c.maxLength!==void 0&&B.length>c.maxLength&&c.maxLengthErrorMessage!==void 0)return c.maxLengthErrorMessage}};
_.a.onValidationResponse=function(B){var c=_.t(B.result,ays);c===void 0?this.handleUnexpectedValidationError(new _.mc("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",B)):this.handleValidationResultRenderer(c)};
_.a.onValidationServerError=function(B){this.handleUnexpectedValidationError(new _.mc("ValidateChannelHandle request failed.",B))};
_.a.handleValidationResultRenderer=function(B){if(B.handle===void 0)this.handleUnexpectedValidationError(new _.mc("ChannelHandleValidationResultRenderer does not contain handle.",B));else if(B.handle===this.handleInput.value)switch(B.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:B.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:B.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.mc("Unrecognized ChannelHandleValidationResult",B));break;default:_.kz(B.result)}};
_.a.handleUnexpectedValidationError=function(B){var c;this.validationState={status:"UNKNOWN",handle:(c=this.handleInput.value)!=null?c:""};_.Ob(B)};
_.a.stopEventPropagation=function(B){B.stopPropagation()};
_.a.updateHandleOnChannelNameInputChange=function(B){if(!this.wasEdited){var c,x;this.debouncedGenerateHandleFromName(B,(x=(c=this.data)==null?void 0:c.validationDelayMs)!=null?x:1E3)}};
_.a.debouncedGenerateHandleFromName=function(B,c){var x=this;_.yo(this,"debouncedGenerateHandleFromName",function(){var P;(P=x.data)!=null&&P.validateChannelHandleCommand?x.ytComponentBehavior.resolveCommand(x.data.validateChannelHandleCommand,{form:{name:B},commandController:{onSuccess:function(Y,g){x.onGenerateHandleFromNameResponse(g)},
onServerError:function(Y,g){_.Ob(new _.mc("Error calling GenerateHandleFromName",g))}}}):_.Ob(new _.mc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",x.data))},c)};
_.a.onGenerateHandleFromNameResponse=function(B){this.wasEdited||((B=_.t(B.result,gYs))?this.setHandleInputValue(B.handle):_.Ob(new _.mc("Invalid results when generate handle from name")))};
_.AJ.Object.defineProperties(Mq.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var B;if(B=this.validationState)B=this.validationState,B=B.status==="OK"||B.status==="UNKNOWN";if(B)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.validationState)==null?void 0:B.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 B,c=(B=this.channelHandleEntity)==null?void 0:B.handleEdit;this.handleDir=this.getHandleDir(c!=null?c:"");return c}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var B,c;if(((B=this.data)==null?void 0:(c=B.channelHandleStaticValidationParams)==null?void 0:c.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Mq.prototype.stopEventPropagation=Mq.prototype.stopEventPropagation;Mq.prototype.onDataChanged=Mq.prototype.onDataChanged;Mq.prototype.applyHandleEdit=Mq.prototype.applyHandleEdit;Mq.prototype.onValueChanged=Mq.prototype.onValueChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Mq.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Boolean)],Mq.prototype,"wasEdited",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],Mq.prototype,"handleDir",void 0);_.L([_.jr("#handle-input"),_.H("design:type",Object)],Mq.prototype,"handleInput",void 0);_.L([_.F(),_.Q("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mq.prototype,"value",null);
_.L([_.bF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mq.prototype,"onValueChanged",null);_.L([_.Q("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mq.prototype,"errorIndicator",null);_.L([_.F({reflectToAttribute:!0}),_.Q("errorIndicator"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Mq.prototype,"borderErrorIndicator",null);
_.L([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(B,c){return _.X9(B.entities,"channelHandle",c)}}),
_.H("design:type",Object)],Mq.prototype,"channelHandleEntity",void 0);_.L([_.Q("channelHandleEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mq.prototype,"handleEdit",null);_.L([_.bF("handleEdit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mq.prototype,"applyHandleEdit",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mq.prototype,"onDataChanged",null);
_.L([_.Q("data.channelHandleStaticValidationParams.validValueRegexp"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mq.prototype,"validValueRegexp",null);_.L([_.nF("yt-service-request-sent"),_.nF("yt-service-request-completed"),_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Mq.prototype,"stopEventPropagation",null);_.L([_.y({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Mq);
_.G(Mq,"ytd-channel-handle-input-renderer",function(){if(XCo!==void 0)return XCo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return XCo=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var LX=function(){var B=_.z.apply(this,arguments)||this;B.data=null;B.errorMessage=null;B.isLoading=!0;B.hideContainer=!1;B.enableNewChannelCreationOnIdForAll=_.T("enable_new_channel_creation_for_id4all");B.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"};B.testOnly={setErrorMessage:function(c){B.resetErrorState();
B.setErrorState(c)}};
return B};
_.w(LX,_.z);_.a=LX.prototype;_.a.created=function(){this.logScreenVe()};
_.a.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")};
_.a.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var B;((B=this.zeroStepErrorMessageEntity)==null?0:B.value)&&this.set("errorMessage",_.fk(this.zeroStepErrorMessageEntity.value))};
_.a.onCreateTap=function(){var B=this;if(this.data&&this.data.channelCreationEndpoint){var c,x;if(!((c=this.data.createChannelButton)==null?0:(x=c.buttonRenderer)==null?0:x.isDisabled)){var P;if((P=this.nameInput)!=null&&P.value){this.setLoadingState();var Y,g;c=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Y=this.handleInput)==null?void 0:Y.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:c,commandController:{onSuccess:function(k,n){B.onChannelCreationEndpointSuccess(n);B.obakeImageSource&&_.JP("channelCreatedWithObakeImage",{imageSourceType:B.obakeImageSource})},
onServerError:function(){B.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.a.endpointRequiresServiceRequestAction=function(B){return!!_.t(B,_.QA)||!!_.t(B,Yc8)};
_.a.isNavigateAction=function(B){var c;return!!_.t(B,_.ZV)||!!_.t((c=_.t(B,kV6))==null?void 0:c.command,_.ZV)};
_.a.isPlaylistAction=function(B){return!!_.t(B,_.QR)||!!_.t(B,_.G3)};
_.a.onChannelCreationEndpointSuccess=function(B){if(B.createChannelError){var c;this.setErrorState((c=B.createChannelError)==null?void 0:c.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.T("enable_secondary_channel_creation_form")&&B.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(B.navigationEndpoint);if(B.actions){c=_.p(B.actions);for(var x=c.next();!x.done;x=c.next())if(x=x.value,this.endpointRequiresServiceRequestAction(x)&&this.ytComponentBehavior.resolveCommand(x),
this.isNavigateAction(x)){var P=void 0;x=_.t((P=_.t(x,kV6))==null?void 0:P.command,_.ZV);P=void 0;this.isPlaylistAction((P=x)==null?void 0:P.endpoint)&&(_.gj(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),P=void 0,this.ytComponentBehavior.resolveCommand((P=x)==null?void 0:P.endpoint))}}B.actions&&B.actions.some(function(Y){var g;return _.t(Y,_.ZV)||_.t((g=_.t(Y,kV6))==null?void 0:g.command,_.ZV)})||_.gj(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.a.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.a.onCancelTap=function(){var B,c,x;if(!((B=this.data)==null?0:(c=B.cancelButton)==null?0:(x=c.buttonRenderer)==null?0:x.isDisabled)){var P,Y,g;B=(P=this.data)==null?void 0:(Y=P.cancelButton)==null?void 0:(g=Y.buttonRenderer)==null?void 0:g.command;if(!B||!_.t(B,_.kMQ)){var k;this.nameInput&&((k=this.data)==null?0:k.name)&&(this.nameInput.value=this.data.name);var n;this.handleInput&&((n=this.data)==null?0:n.channelHandleInput)&&(this.handleInput.data=_.t(this.data.channelHandleInput,sIS));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.a.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.a.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.a.onClearProfilePhotoTap=function(){var B,c,x;((B=this.data)==null?0:(c=B.clearProfilePhotoButton)==null?0:(x=c.buttonRenderer)==null?0:x.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.a.onEditAvatarTap=function(){var B,c,x;((B=this.data)==null?0:(c=B.editAvatarButton)==null?0:(x=c.buttonRenderer)==null?0:x.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.a.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)};
_.a.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var B;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((B=this.data)==null?0:B.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.a.setErrorState=function(B){this.resetErrorState();if(B)this.set("errorMessage",B);else{var c;if((c=this.zeroStepErrorMessageEntity)==null?0:c.value)this.set("errorMessage",_.fk(this.zeroStepErrorMessageEntity.value));else{var x;((x=this.data)==null?0:x.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.a.fetchImageBlobWithAlr=function(B,c){c=c===void 0?5:c;var x=this,P,Y,g,k,n;return _.X(function(b){switch(b.nextAddress){case 1:return _.K(b,fetch(B,{method:"GET",mode:"cors"}),2);case 2:P=b.yieldResult;if(P.ok){b.jumpTo(3);break}if(c===0)throw Error();Y=x.addJitter(Math.pow(2,5-c));return _.K(b,new Promise(function(d){setTimeout(d,Y*1E3)}),4);
case 4:return b.return(x.fetchImageBlobWithAlr(B,c-1));case 3:if(!P.headers.get("content-type").split(";").some(function(d){return d.trim()==="text/plain"})){b.jumpTo(5);
break}g=x;k=g.fetchImageBlobWithAlr;return _.K(b,P.text(),6);case 6:return b.return(k.call(g,b.yieldResult,c-1));case 5:return _.K(b,P.blob(),7);case 7:return n=b.yieldResult,b.return(n)}})};
_.a.addJitter=function(B){var c=B*.3*Math.random();Math.random()>.5&&(c*=-1);return B+c};
_.a.openProfilePicturePicker=function(){var B=this,c,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){c=B.data.scottyUploadUrl;if(!c)return k.return();x=document.documentElement.hasAttribute("dark");P=document.body.style.colorScheme;x&&(document.body.style.colorScheme="dark");Y=nVl(bYl($yo(YZ8(x?"dark":"light")),function(n){var b,d,q,C,h;return _.X(function(V){if(V.nextAddress==1)return b=_.Mw(CMz(new tH(n.photoUrl,!1)).build(),"alr","yes"),B.obakeImageSource=B.pictureChangeSourceToObakeImageSourceType(n.photoSource),
_.kM(V,2),B.setLoadingState(),_.K(V,B.fetchImageBlobWithAlr(b),4);if(V.nextAddress!=2)return d=V.yieldResult,q=new FileReader,q.addEventListener("load",function(){var N,l,E,S,M,f;return _.X(function(Z){if(Z.nextAddress==1){if(d.size>15728640)return B.setErrorState((N=B.data)==null?void 0:N.imageSizeErrorMessage),_.Ob(Error("kl")),Z.return();if(!q.result)return B.setErrorState((l=B.data)==null?void 0:l.genericImageLoadErrorMessage),_.Ob(Error("ll")),Z.return();E=q.result;_.kM(Z,2);return _.K(Z,uXB(d,
c),4)}if(Z.nextAddress!=2)return S=Z.yieldResult,B.handleImageUpdatedAction(E,S),B.resetErrorState(),_.Gw(Z,0);M=_.be(Z);B.setErrorState((f=B.data)==null?void 0:f.uploadErrorMessage);if(M instanceof Error)_.lb(M);else{var u=new _.mc(JSON.stringify(M));_.lb(u)}_.Kq(Z)})}),q.readAsDataURL(d),_.Gw(V,0);
C=_.be(V);B.setErrorState((h=B.data)==null?void 0:h.genericImageLoadErrorMessage);C instanceof Error?_.lb(C):_.Eb(new _.mc(JSON.stringify(C)));_.Kq(V)})}),function(){B.hideContainer=!1;
document.body.style.colorScheme=P});
_.kM(k,2);return _.K(k,Y.openPicker(),4)}if(k.nextAddress!=2)return _.Gw(k,0);_.be(k);B.setErrorState((g=B.data)==null?void 0:g.selectImageErrorMessage);_.Kq(k)})};
_.a.pictureChangeSourceToObakeImageSourceType=function(B){switch(B){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.a.logScreenVe=function(){_.kk(_.q_(),124448)};
_.a.graftServerVe=function(){var B=_.Jg(),c,x,P=(c=this.data)==null?void 0:(x=c.loggingDirectives)==null?void 0:x.trackingParams;P&&B&&(this.channelCreationFormVe=_.q_().graftServerVe(P,B),B={visualElement:this.channelCreationFormVe},_.UL().reportShown(B))};
_.a.isNameChanged=function(B){var c;return((c=this.data)==null?void 0:c.name)!==B};
_.a.isHandleChanged=function(B){var c,x=_.t((c=this.data)==null?void 0:c.channelHandleInput,sIS);return x&&B?x.handle!==B:!1};
_.a.handleImageUpdatedAction=function(B,c){this.hideContainer=!1;this.previewDataUrl=B;this.encryptedBlobId=c};
_.a.handleImageSelectionErrorAction=function(B){this.hideContainer=!1;this.setErrorState(B)};
_.a.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.a.showContainer=function(){this.hideContainer=!1};
_.a.maybeWipeZeroStepErrorMessage=function(){var B,c=(B=this.data)==null?void 0:B.zeroStepErrorMessageEntityKey,x;c&&((x=this.zeroStepErrorMessageEntity)==null?0:x.value)&&this.ytdReduxBehavior.dispatch(_.Uy("stringEntity",c,{key:c,value:""}))};
_.AJ.Object.defineProperties(LX.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 B;return((B=this.photoThumbnail)==null?0:B.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 B;return!((B=this.data)==null||!B.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.descriptionInfo}}});
LX.prototype.dataChanged=LX.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],LX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],LX.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LX.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],LX.prototype,"errorMessage",void 0);
_.L([_.F(),_.H("design:type",Object)],LX.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",String)],LX.prototype,"previewDataUrl",void 0);_.L([_.F(),_.H("design:type",Number)],LX.prototype,"obakeImageSource",void 0);_.L([_.F(),_.H("design:type",Object)],LX.prototype,"hideContainer",void 0);_.L([_.jr("#title-input"),_.H("design:type",Object)],LX.prototype,"nameInput",void 0);_.L([_.jr("#handle-input"),_.H("design:type",Object)],LX.prototype,"handleInput",void 0);
_.L([_.F(),_.H("design:type",Boolean)],LX.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.L([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.if7}),_.H("design:type",Object)],LX.prototype,"zeroStepErrorMessageEntity",void 0);_.L([_.Q("data","data.isDefaultProfilePhoto","previewDataUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],LX.prototype,"photoThumbnail",null);
_.L([_.Q("data","data.isDefaultProfilePhoto","photoThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],LX.prototype,"userSetPhotoThumbnailUrl",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LX.prototype,"hideProfilePhotoButtonLayer",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LX.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.L([_.CF("data","zeroStepErrorMessageEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LX.prototype,"dataChanged",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.descriptionInfo","zeroStepErrorMessageEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],LX.prototype,"description",null);_.L([_.y({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],LX);
_.G(LX,"ytd-channel-creation-dialog-renderer",function(){if(kAl!==void 0)return kAl;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return kAl=B},{mode:1});var $TB;var Zl=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;B.isDisabled=!1;return B};
_.w(Zl,_.z);Zl.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Zl.prototype.updateDisabled=function(){var B;this.isDisabled=this.isLoading||((B=this.handleInput)==null?void 0:B.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Zl.prototype.onSaveClick=function(){var B=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var c;((c=this.data)==null?void 0:c.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 x;if((x=B.data)==null?0:x.nextEndpoint){var P;B.ytComponentBehavior.resolveCommand((P=B.data)==null?void 0:P.nextEndpoint)}else B.isLoading=
!1,B.closeDialog()},
onServerError:function(){B.isLoading=!1;B.handleInput.validate();var x;B.errorMessage=(x=B.data)==null?void 0:x.errorMessage}}}))}};
Zl.prototype.closeDialog=function(){_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
Zl.prototype.updateDisabled=Zl.prototype.updateDisabled;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Zl.prototype,"data",void 0);_.L([_.jr("#handle-input"),_.H("design:type",Object)],Zl.prototype,"handleInput",void 0);_.L([_.bF("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zl.prototype,"updateDisabled",null);
_.L([_.y({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Zl);
_.G(Zl,"ytd-channel-handle-edit-dialog-renderer",function(){if($TB!==void 0)return $TB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $TB=B},{mode:1});var nSl;var HQ=function(){return _.z.apply(this,arguments)||this};
_.w(HQ,_.z);HQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],HQ.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],HQ);
_.G(HQ,"ytd-channel-switcher-footer-renderer",function(){if(nSl!==void 0)return nSl;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return nSl=B},{mode:1});var bGy;var KPF;var fX=function(){return _.z.apply(this,arguments)||this};
_.w(fX,_.z);fX.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
fX.prototype.onIronChange=fX.prototype.onIronChange;_.L([_.F(),_.H("design:type",Object)],fX.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Function)],fX.prototype,"onDontAskAgainChanged",void 0);_.L([_.jr("#checkbox"),_.H("design:type",Object)],fX.prototype,"checkbox",void 0);_.L([_.nF("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fX.prototype,"onIronChange",null);
_.L([_.y({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],fX);
_.G(fX,"ytd-identity-prompt-footer-renderer",function(){if(KPF!==void 0)return KPF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return KPF=B},{mode:1});var iq=function(){var B=_.z.apply(this,arguments)||this;B.dontAskAgain=!1;B.showPopup=!1;B.boundDontAskAgainChanged=function(c){B.dontAskAgainChanged(c)};
B.boundOnAccountItemTap=function(c){B.onAccountItemTap(c)};
return B};
_.w(iq,_.z);_.a=iq.prototype;
_.a.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]]"}}}}}};
_.a.ready=function(){var B=this;_.Y9(this.hostElement).querySelector("#container").addEventListener("scroll",function(){B.ytRendererBehavior.markDirty()})};
_.a.dontAskAgainChanged=function(B){this.dontAskAgain=B};
_.a.onAccountItemTap=function(B){if(B){var c={};this.dontAskAgain&&(c={dont_ask_again:this.dontAskAgain});_.Lr(B,c)}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.a.redirectOnlyAccount=function(B){B.sections&&B.sections.length>0&&(B=_.t(B.sections[0],_.hv9),(B==null?0:B.contents)&&(B==null?void 0:B.contents.length)<=1?(B=_.fa(window.location.href),(B==null?0:B.next)&&_.j1o(B.next)?_.Lr(B.next):_.Lr("/")):this.showPopup=!0)};
iq.prototype.dataChanged=iq.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],iq.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Object)],iq.prototype,"dontAskAgain",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iq.prototype,"showPopup",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Object)],iq.prototype,"boundDontAskAgainChanged",void 0);_.L([_.F({reflectToAttribute:!1}),_.H("design:type",Object)],iq.prototype,"boundOnAccountItemTap",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iq.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],iq);
_.G(iq,"ytd-channel-switcher-renderer",function(){if(bGy!==void 0)return bGy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return bGy=B},{mode:1});var jNr;var Az=function(){return _.z.apply(this,arguments)||this};
_.w(Az,_.z);_.AJ.Object.defineProperties(Az.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.L([_.F(),_.H("design:type",Object)],Az.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Az.prototype,"steps",null);_.L([_.y({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Az);
_.G(Az,"ytd-channel-transfer-stepper-renderer",function(){if(jNr!==void 0)return jNr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jNr=B},{mode:1});var UTF;var uq=function(){var B=_.z.apply(this,arguments)||this;B.data=null;B.isError=!1;B.isLoading=!1;return B};
_.w(uq,_.z);_.a=uq.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.a.computeProfileName=function(B){return B?B.givenNameValue+" "+B.familyNameValue:""};
_.a.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)};
_.a.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)};
uq.prototype.onYtServiceRequestError=uq.prototype.onYtServiceRequestError;uq.prototype.onYtServiceRequestSent=uq.prototype.onYtServiceRequestSent;uq.prototype.dataChanged=uq.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uq.prototype,"data",void 0);
_.L([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.H("design:type",String)],uq.prototype,"profileName",void 0);_.L([_.F(),_.H("design:type",Object)],uq.prototype,"isError",void 0);_.L([_.F(),_.H("design:type",Object)],uq.prototype,"isLoading",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uq.prototype,"dataChanged",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],uq.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],uq.prototype,"onYtServiceRequestError",null);_.L([_.y({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],uq);
_.G(uq,"ytd-channel-warm-welcome-cont-renderer",function(){if(UTF!==void 0)return UTF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return UTF=B},{mode:1});var dTz;var Dl=function(){var B=_.z.apply(this,arguments)||this;B.data=null;return B};
_.w(Dl,_.z);Dl.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Dl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Dl.prototype,"data",void 0);_.L([_.y({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Dl);
_.G(Dl,"ytd-channel-warm-welcome-renderer",function(){if(dTz!==void 0)return dTz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return dTz=B},{mode:1});var qfo;var rO=function(){return _.z.apply(this,arguments)||this};
_.w(rO,_.z);_.AJ.Object.defineProperties(rO.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.authorThumbnail)||{}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rO.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rO.prototype,"thumbnailDetails",null);_.L([_.y({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],rO);
_.G(rO,"ytd-comment-preview-renderer",function(){if(qfo!==void 0)return qfo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qfo=B},{mode:1});var CSr;var RQ=function(){return _.z.apply(this,arguments)||this};
_.w(RQ,_.z);RQ.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.AJ.Object.defineProperties(RQ.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.submitButton}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RQ.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],RQ.prototype,"submitButton",null);_.L([_.y({is:"ytd-notice-renderer",disableElementRegistration:!0})],RQ);
_.G(RQ,"ytd-notice-renderer",function(){if(CSr!==void 0)return CSr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return CSr=B},{mode:1});var h8S;var eD=function(){return _.z.apply(this,arguments)||this};
_.w(eD,_.z);eD.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eD.prototype,"data",void 0);_.L([_.y({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],eD);
_.G(eD,"ytd-preview-comment-dialog-content",function(){if(h8S!==void 0)return h8S;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return h8S=B},{mode:1});var mTy;var B4=function(){return _.z.apply(this,arguments)||this};
_.w(B4,_.z);B4.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
B4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],B4.prototype,"data",void 0);_.L([_.y({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],B4);
_.G(B4,"ytd-preview-comment-dialog-renderer",function(){if(mTy!==void 0)return mTy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mTy=B},{mode:1});var TA8;var V6l=_.T("web_button_rework")&&_.zu("BUTTON_REWORK")||_.T("web_button_rework_with_live"),c4=function(){var B=_.z.apply(this,arguments)||this;B.closeLabel=_.Up("CLOSE");B.selectedAmountIndex=1;B.privacyCheckboxValue=!1;B.useAmsterdamStyle=V6l;B.amountPlaceholderIndex=-1;return B};
_.w(c4,_.z);_.a=c4.prototype;_.a.onAmountClick=function(B){this.selectedAmountIndex=_.Y9(this.hostElement).querySelector("#amounts").indexForElement(B.currentTarget)};
_.a.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.gj(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.a.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.gj(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.gj(this.hostElement,"yt-close-popup-action",[this.is]);var B;(B=_.e5())==null||B.getPlayerPromise().then(function(c){c.pauseVideo()})}};
_.a.donationCallback=function(B){B.success?(this.hostElement.hasAttribute("live-chat")&&B.response&&B.response.data&&B.response.data.actions&&_.gj(this.hostElement,"yt-live-chat-open-popup",[B.response.data.actions[0]]),_.gj(this.hostElement,"yt-close-popup-action",[this.is]),_.gj(this.hostElement,"yt-live-chat-close-buy-flow")):B.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(B.errorMessageRenderer)};
_.a.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Y9(this.hostElement).querySelector("#custom-amount-input").focus()};
_.a.updateConfirmationDialogTextWithAmount=function(B){var c=this.getConfirmDialogRuns();c&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(c),"text"],this.getFormattedAmount(B))};
_.a.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.a.getAmountPlaceholderIndex=function(B){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=B.findIndex(function(c){return c.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.a.getFormattedAmount=function(B){var c;return(new _.yI(4,((c=this.data)==null?void 0:c.currencyCode)||"")).format(B)};
_.a.isAmountValid=function(B){if(B==="")return!1;B=Number(B)*1E6;var c=this.get("minAmountMicros",this.data),x=this.get("maxAmountMicros",this.data);return c&&B<c||x&&B>x?!1:!0};
_.a.setInputError=function(){this.shouldShowValidationError?_.Y9(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Y9(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.a.setInitialCheckboxValue=function(){var B;this.privacyCheckboxValue=!((B=this.data)==null||!B.privacyCheckboxInitialState)};
_.a.updateCustomAmountInputFromBinding=function(B){this.customAmountInput=B.detail.value};
_.a.updatePrivacyCheckboxValueFromBinding=function(B){this.privacyCheckboxValue=B.detail.value};
_.AJ.Object.defineProperties(c4.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var B=this,c,x;return((c=this.data)==null?void 0:(x=c.suggestedAmounts)==null?void 0:x.map(function(P,Y){return{buttonRenderer:{style:B.selectedAmountIndex===Y?"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 B;return!((B=this.data)==null||!B.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 B=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(B&&this.amountMicros!==null)return Object.assign({},B,{ypcGetCartEndpoint:Object.assign({},B.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 B=this.get("confirmLargeAmount",this.data);if(B&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),B}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B=this.get("donateButton.buttonRenderer",this.data);if(B)return Object.assign({},B,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
c4.prototype.setInitialCheckboxValue=c4.prototype.setInitialCheckboxValue;c4.prototype.setInputError=c4.prototype.setInputError;c4.prototype.setFocusOnCustomAmountInput=c4.prototype.setFocusOnCustomAmountInput;_.L([_.J(l5i),_.H("design:type",Object)],c4.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],c4.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],c4.prototype,"closeLabel",void 0);_.L([_.F(),_.H("design:type",Object)],c4.prototype,"selectedAmountIndex",void 0);_.L([_.F(),_.H("design:type",String)],c4.prototype,"customAmountInput",void 0);_.L([_.F(),_.H("design:type",Object)],c4.prototype,"privacyCheckboxValue",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],c4.prototype,"useAmsterdamStyle",void 0);_.L([_.bF("customAmount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c4.prototype,"setFocusOnCustomAmountInput",null);_.L([_.Q("data","selectedAmountIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],c4.prototype,"suggestedAmountButtons",null);
_.L([_.Q("data","selectedAmountIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c4.prototype,"isCustomAmountSelected",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c4.prototype,"showPrivacyCheckbox",null);_.L([_.Q("data","selectedAmountIndex","customAmount"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"amountMicros",null);
_.L([_.Q("isCustomAmountSelected","customAmountInput"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"customAmount",null);_.L([_.Q("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c4.prototype,"shouldShowValidationError",null);_.L([_.Q("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c4.prototype,"isDonateButtonEnabled",null);
_.L([_.Q("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"donateCommand",null);_.L([_.Q("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"donateCommandWithConfirmation",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"largeDonationThreshold",null);
_.L([_.Q("customAmount","donateCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"confirmLargeAmountCommand",null);_.L([_.Q("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.H("design:type",Object),_.H("design:paramtypes",[])],c4.prototype,"donateButtonRenderer",null);_.L([_.bF("shouldShowValidationError"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c4.prototype,"setInputError",null);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c4.prototype,"setInitialCheckboxValue",null);_.L([_.y({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],c4);
_.G(c4,"ytd-donation-amount-picker-renderer",function(){if(TA8!==void 0)return TA8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return TA8=B},{mode:1});var t6y;var xa=function(){return _.z.apply(this,arguments)||this};
_.w(xa,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);_.L([_.F({}),_.H("design:type",Object)],xa.prototype,"data",void 0);_.L([_.y({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],xa);
_.G(xa,"ytd-donation-post-transaction-content",function(){if(t6y!==void 0)return t6y;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return t6y=B},{mode:1});var wCc;var P4=function(){return _.z.apply(this,arguments)||this};
_.w(P4,_.z);P4.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.L([_.F({}),_.H("design:type",Object)],P4.prototype,"data",void 0);_.L([_.y({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],P4);
_.G(P4,"ytd-donation-post-transaction-renderer",function(){if(wCc!==void 0)return wCc;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return wCc=B},{mode:1});var NAz;var IrB;var Ya=function(){return _.z.apply(this,arguments)||this};
_.w(Ya,_.z);Ya.prototype.computeIsStreamingProvider=function(B){return!!B.isStreamingShelf};
Ya.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ya.prototype,"data",void 0);_.L([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Ya.prototype,"isStreamingProvider",void 0);
_.L([_.y({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Ya);
_.G(Ya,"ytd-media-provider-renderer",function(){if(IrB!==void 0)return IrB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return IrB=B},{mode:1});var J7N;var a_=function(){return _.z.apply(this,arguments)||this};
_.w(a_,_.z);a_.prototype.observeLightsourcePalette=function(){var B,c=(B=this.data)==null?void 0:B.vibrantsourceColorPaletteData;c&&_.E9(this.hostElement,c)};
a_.prototype.observeLightsourcePalette=a_.prototype.observeLightsourcePalette;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],a_.prototype,"data",void 0);
_.L([_.bF("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a_.prototype,"observeLightsourcePalette",null);_.L([_.y({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],a_);
_.G(a_,"ytd-streaming-pop-up-dialog",function(){if(J7N!==void 0)return J7N;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return J7N=B},{mode:1});var gn=function(){return _.z.apply(this,arguments)||this};
_.w(gn,_.z);gn.prototype.onPopupOpened_=function(){var B;((B=this.data)==null?0:B.serviceEndpoint)&&_.cp().resolve(_.xu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
gn.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
gn.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"}}}}};
gn.prototype.onPopupOpened_=gn.prototype.onPopupOpened_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Hz),_.H("design:type",Object)],gn.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],gn.prototype,"data",void 0);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gn.prototype,"onPopupOpened_",null);_.L([_.y({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],gn);
_.G(gn,"ytd-brandconnect-popup-renderer",function(){if(NAz!==void 0)return NAz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return NAz=B},{mode:1});var WPy;var sX=function(){return _.z.apply(this,arguments)||this};
_.w(sX,_.z);_.a=sX.prototype;_.a.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){for(var B=0;B<this.getOptionRenderers().length;B++)this.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+B+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.a.updateSubmitButton=function(B){this.set("data.submitButton.buttonRenderer.isDisabled",!B)};
_.a.computeAlt=function(B){return _.iG(B)};
_.a.onDismissTap=function(){_.gj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.getOptionRenderers=function(B){return(B=B||this.data)&&B.options?B.options.reduce(function(c,x){x.checkboxSurveyOptionRenderer&&c.push(x.checkboxSurveyOptionRenderer);return c},[]):[]};
_.a.onOptionChange=function(B){var c=this,x=!1;if(B.detail.checked)for(var P=this.getOptionRenderers().find(function(n){return n.value===B.detail.value}),Y=this.getOptionRenderers(),g=0;g<Y.length;g++){var k=Y[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");k.checked&&((P==null?0:P.isExclusiveOption)?!k.isExclusiveOption:k.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):k.checked&&(x=!0)}else x=this.getOptionRenderers().some(function(n,b){c.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return n.checked});
this.updateSubmitButton(x)};
_.a.onSubmitTap=function(){var B=this.getOptionRenderers().filter(function(g){return g.checked});
if(B.length!==0){var c=B.map(function(g){return g.responseEndpoint});
B=[];for(var x=1;x<c.length;x++){var P=void 0,Y=(P=_.t(c[x],_.Fs))==null?void 0:P.feedbackToken;Y&&B.push(Y)}c=[c[0]];B.length&&c.push({extra_feedback_tokens:B});_.kC(this.hostElement,c);_.gj(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);B=this.data&&this.data.submitActions||[];if(_.T("kevlar_command_handler_migration_killswitch"))_.XX(this.hostElement,B,this.hostElement);else for(B=_.p(B),c=B.next();!c.done;c=B.next())this.ytComponentBehavior.resolveCommand(c.value)}};
sX.prototype.onOptionChange=sX.prototype.onOptionChange;sX.prototype.dataChanged=sX.prototype.dataChanged;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],sX.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],sX.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.L([_.J(D4c),_.H("design:type",Object)],sX.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],sX.prototype,"data",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sX.prototype,"dataChanged",null);
_.L([_.nF("ytd-checkbox-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sX.prototype,"onOptionChange",null);_.L([_.y({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],sX);
_.G(sX,"ytd-checkbox-survey-renderer",function(){if(WPy!==void 0)return WPy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return WPy=B},{mode:1});var lrz;var ESr;var pz=function(){return _.z.apply(this,arguments)||this};
_.w(pz,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.L([_.J(ujz),_.H("design:type",Object)],pz.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],pz.prototype,"data",void 0);_.L([_.y({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],pz);
_.G(pz,"ytd-dismissal-reason-text-renderer",function(){if(ESr!==void 0)return ESr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ESr=B},{mode:1});var OGz;var ka=function(){return _.z.apply(this,arguments)||this};
_.w(ka,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.L([_.J(ujz),_.H("design:type",Object)],ka.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ka.prototype,"data",void 0);_.L([_.y({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ka);
_.G(ka,"ytd-dismissal-reason-video-renderer",function(){if(OGz!==void 0)return OGz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return OGz=B},{mode:1});var XQ=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(XQ,_.z);_.a=XQ.prototype;_.a.created=function(){this.selectedFeedbackTokens=new Zo};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.a.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.a.onDismissalReasonSelected=function(B,c){_.aJ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(c);this.hasReasonsSelected=!0};
_.a.onDismissalReasonDeselected=function(B,c){_.aJ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(c);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.a.onCancelTap=function(){_.gj(this.hostElement,"yt-close-popup-action")};
_.a.onSubmitTap=function(){var B=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(B={feedback_tokens:B},_.cp().resolve(_.xu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},B,{element:this.hostElement})}));_.gj(this.hostElement,"yt-close-popup-action")};
XQ.prototype.onDismissalReasonDeselected=XQ.prototype.onDismissalReasonDeselected;XQ.prototype.onDismissalReasonSelected=XQ.prototype.onDismissalReasonSelected;XQ.prototype.dataChanged=XQ.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],XQ.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Boolean)],XQ.prototype,"hasReasonsSelected",void 0);_.L([_.F(),_.H("design:type",Zo)],XQ.prototype,"selectedFeedbackTokens",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],XQ.prototype,"darkerDarkTheme",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"dataChanged",null);
_.L([_.nF("yt-dismissal-reason-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],XQ.prototype,"onDismissalReasonSelected",null);_.L([_.nF("yt-dismissal-reason-deselected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],XQ.prototype,"onDismissalReasonDeselected",null);_.L([_.y({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],XQ);
_.G(XQ,"ytd-dismissal-follow-up-renderer",function(){if(lrz!==void 0)return lrz;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return lrz=B},{mode:1});var oS6;var $a=function(){return _.z.apply(this,arguments)||this};
_.w($a,_.z);_.a=$a.prototype;_.a.onCheckedChange=function(){this.multiselect||_.aJ(this.hostElement,"yt-feedback-single-select-changed");_.Y9(this.hostElement).querySelector("#freeform").focus();_.aJ(this.hostElement,"yt-refit")};
_.a.showTextBox=function(B,c){return B&&c};
_.a.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))};
_.a.updateDataCheckedFromBinding=function(B){this.set("data.checked",B.detail.value)};
_.a.updateDataResultTextFromBinding=function(B){this.set("data.resultText",B.detail.value)};
$a.prototype.dataChanged=$a.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],$a.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],$a.prototype,"multiselect",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$a.prototype,"dataChanged",null);
_.L([_.y({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],$a);
_.G($a,"ytd-feedback-option-renderer",function(){if(oS6!==void 0)return oS6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return oS6=B},{mode:1});var QNy;var nz=function(){return _.z.apply(this,arguments)||this};
_.w(nz,_.z);nz.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
nz.prototype.onSingleSelectCheckedChanged=function(B){B=_.uI(B);for(var c=0;c<this.data.options.length;c++)if(B.data!==_.t(this.data.options[c],idA)){var x="data.options."+c+".feedbackOptionRenderer.checked";this.notifyPath(x);this.set(x,!1)}};
nz.prototype.onSingleSelectCheckedChanged=nz.prototype.onSingleSelectCheckedChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],nz.prototype,"data",void 0);
_.L([_.nF("yt-feedback-single-select-changed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],nz.prototype,"onSingleSelectCheckedChanged",null);_.L([_.y({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],nz);
_.G(nz,"ytd-feedback-question-renderer",function(){if(QNy!==void 0)return QNy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QNy=B},{mode:1});var FPs;var b7=function(){return _.z.apply(this,arguments)||this};
_.w(b7,_.z);b7.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
b7.prototype.getSelectedFeedbackResults=function(){for(var B={},c=0;c<this.data.questions.length;c++)for(var x=_.t(this.data.questions[c],fyi),P=0;P<x.options.length;P++){var Y=_.t(x.options[P],idA);Y&&Y.checked&&(B[Y.optionKey]=Y.resultText)}return B};
b7.prototype.onKeyUp=function(){var B=this;_.s9(_.EE,function(){_.aJ(B.hostElement,"yt-refit")});
_.EE.start()};
b7.prototype.submitSurvey=function(){var B=this.getSelectedFeedbackResults();Object.keys(B).length>0&&this.data.submitFeedbackEndpoint&&(B={survey_results:B,is_feedback_token_unencrypted:!0},_.cp().resolve(_.xu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},B,{element:this.hostElement})}))};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],b7.prototype,"data",void 0);_.L([_.y({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],b7);
_.G(b7,"ytd-feedback-survey-renderer",function(){if(FPs!==void 0)return FPs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return FPs=B},{mode:1});var vSA;var z8z;var Kz=function(){return _.z.apply(this,arguments)||this};
_.w(Kz,_.z);Kz.prototype.computeAlt=function(B){return _.iG(B)};
Kz.prototype.submitResponse=function(){var B,c;(B=this.data)!=null&&B.feedbackToken&&((c=this.data)==null?void 0:c.nextStageIndex)!==void 0&&(_.sp(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.sp(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Kz.prototype.onClick=function(){this.submitResponse()};
Kz.prototype.onClick=Kz.prototype.onClick;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Kz.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kz.prototype,"vertical",void 0);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kz.prototype,"onClick",null);
_.L([_.y({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Kz);
_.G(Kz,"ytd-single-select-answer-option-renderer",function(){if(z8z!==void 0)return z8z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return z8z=B},{mode:1});var Sfr;var jz=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return B};
_.w(jz,_.z);jz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
jz.prototype.dataChanged=function(){var B,c;this.vertical=((c=(B=this.data)==null?void 0:B.answerOrientation)!=null?c:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
jz.prototype.submitFeedback=function(B){var c;((c=this.data)==null?0:c.responseEndpoint)&&B&&_.kC(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[B]}])};
jz.prototype.dataChanged=jz.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],jz.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],jz.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],jz.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],jz.prototype,"vertical",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],jz.prototype,"darkerDarkTheme",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jz.prototype,"dataChanged",null);_.L([_.y({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],jz);
_.G(jz,"ytd-single-select-question-renderer",function(){if(Sfr!==void 0)return Sfr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Sfr=B},{mode:1});var UX=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return B};
_.w(UX,_.z);_.a=UX.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.jumpToStage(0)};
_.a.jumpToStage=function(B){var c,x;if((c=this.data)==null?0:(x=c.stages)==null?0:x[B])this.currentStage=this.data.stages[B],this.refitAfterRender()};
_.a.computeAlt=function(B){return _.iG(B)};
_.a.computeSimpleMessage=function(B){var c;return(c=_.t(B,Dks))==null?void 0:c.messageText};
_.a.computeHideDismiss=function(B){var c;return(c=_.t(B,TyF))==null?void 0:c.hideParentDismissButton};
_.a.onDismissTap=function(){_.gj(this.hostElement,"yt-close-popup-action");_.t(this.currentStage,Dks)||this.data.dismissalEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.refitAfterRender=function(){var B=this;_.fl(this,function(){_.aJ(B.hostElement,"yt-refit")})};
UX.prototype.dataChanged=UX.prototype.dataChanged;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],UX.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],UX.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.J(D4c),_.H("design:type",Object)],UX.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],UX.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],UX.prototype,"currentStage",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UX.prototype,"dataChanged",null);_.L([_.y({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],UX);
_.G(UX,"ytd-multi-stage-survey-renderer",function(){if(vSA!==void 0)return vSA;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return vSA=B},{mode:1});var y7c;var dn=function(){return _.z.apply(this,arguments)||this};
_.w(dn,_.z);dn.prototype.computeAlt=function(B){return _.iG(B)};
dn.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.cp().resolve(_.xu).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.gj(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.zDs(!1)))};
dn.prototype.onTap=function(){this.vertical&&this.submitResponse()};
dn.prototype.onTap=dn.prototype.onTap;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],dn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],dn.prototype,"vertical",void 0);
_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"onTap",null);_.L([_.y({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],dn);
_.G(dn,"ytd-single-option-survey-option-renderer",function(){if(y7c!==void 0)return y7c;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return y7c=B},{mode:1});var GAo;var qo=function(){return _.z.apply(this,arguments)||this};
_.w(qo,_.z);_.a=qo.prototype;_.a.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){var B,c;this.vertical=(((B=this.data)==null?void 0:(c=B.surveyOrientation)==null?void 0:c.type)||"HORIZONTAL")==="VERTICAL"};
_.a.computeAlt=function(B){return _.iG(B)};
_.a.onDismissTap=function(){_.gj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.cp().resolve(_.xu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.zDs(!1))};
qo.prototype.dataChanged=qo.prototype.dataChanged;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],qo.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(D4c),_.H("design:type",Object)],qo.prototype,"ytdHatsSurveyBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],qo.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qo.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],qo.prototype,"vertical",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qo.prototype,"dataChanged",null);_.L([_.y({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],qo);
_.G(qo,"ytd-single-option-survey-renderer",function(){if(GAo!==void 0)return GAo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return GAo=B},{mode:1});var M6i;var Cz=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Cz,_.z);Cz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cz.prototype.onDismissTap=function(){_.gj(this.hostElement,"yt-close-popup-action")};
Cz.prototype.onNavigate=function(){_.gj(this.hostElement,"yt-close-popup-action")};
Cz.prototype.onNavigate=Cz.prototype.onNavigate;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Cz.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Cz.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Cz.prototype,"darkerDarkTheme",void 0);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cz.prototype,"onNavigate",null);_.L([_.y({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Cz);
_.G(Cz,"ytd-survey-follow-up-renderer",function(){if(M6i!==void 0)return M6i;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return M6i=B},{mode:1});var LPs;var ZGs;var HGA;var hS=function(){var B=_.z.apply(this,arguments)||this;B.polymer2="Element"in Polymer;return B};
_.w(hS,_.z);_.a=hS.prototype;_.a.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.a.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.a.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.a.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("minutes-changed",this.minutes))};
_.a.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("seconds-changed",this.seconds))};
_.a.updateMinutesFromBinding=function(B){this.minutes=B.detail.value};
_.a.updateSecondsFromBinding=function(B){this.seconds=B.detail.value};
hS.prototype.secondsChangedForBinding=hS.prototype.secondsChangedForBinding;hS.prototype.minutesChangedForBinding=hS.prototype.minutesChangedForBinding;hS.prototype.secondsChanged=hS.prototype.secondsChanged;_.L([_.F(),_.H("design:type",String)],hS.prototype,"minutes",void 0);_.L([_.F(),_.H("design:type",String)],hS.prototype,"seconds",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hS.prototype,"polymer2",void 0);
_.L([_.jr("#seconds"),_.H("design:type",Object)],hS.prototype,"secondsEl",void 0);_.L([_.bF("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hS.prototype,"secondsChanged",null);_.L([_.bF("minutes"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hS.prototype,"minutesChangedForBinding",null);
_.L([_.bF("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hS.prototype,"secondsChangedForBinding",null);_.L([_.Em({is:"yt-timestamp-input",disableElementRegistration:!0})],hS);
_.G(hS,"yt-timestamp-input",function(){if(HGA===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;ZGs===void 0&&(ZGs=document.createElement("template"));var P=ZGs;x.call(c,P.content.cloneNode(!0),B.content.firstChild);HGA=B}B=HGA;return B},{mode:2});var mY=function(){return _.z.apply(this,arguments)||this};
_.w(mY,_.z);_.a=mY.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18195_scroller.dialogElement=this.hostElement.parentNode};
_.a.dataChanged=function(){var B=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Bv().getPlayerPromise().then(function(c){c=c.getCurrentTime();B.minutes=Math.floor(c/60).toString();B.seconds=(Math.floor(c)%60).toString()})};
_.a.onTapSubmit=function(B){B.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(B={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(B.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(B.minutes=this.minutes,B.seconds=this.seconds),_.cp().resolve(_.xu).resolveCommand(this.serviceEndpoint,{form:Object.assign({},B,{element:this.hostElement})}))};
_.a.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.a.onYtServiceRequestCompleted=function(B,c){c=c.actions;if(Array.isArray(c))for(var x=0,P=c.length;x<P;x++)_.t(c[x],_.J3)&&(B.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(c[x]))};
_.a.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.a.toggleSubmitButton=function(B){this.set("submitButton.isDisabled",!B)};
_.a.handleInput=function(){var B=this.issueType,c=this.affiliation,x=this.minutes,P=this.seconds;x=!this.showTimestamp||!!x&&!!P;this.toggleSubmitButton(!!this.descriptionText&&!!B&&!!c&&x)};
_.a.computeServiceEndpoint=function(B){return this.get("submitButton.buttonRenderer.serviceEndpoint",B)};
_.a.computeSubmitButton=function(B){(B=this.get("submitButton.buttonRenderer",B))&&(B=Object.assign({},B,{serviceEndpoint:void 0}));return B};
_.a.computeShowTimestamp=function(B){return!!B};
_.a.onValueChangedForIssueType=function(B){this.issueType=B.detail.value};
_.a.onValueChangedForAffiliation=function(B){this.affiliation=B.detail.value};
_.a.updateDescriptionTextFromBinding=function(B){this.descriptionText=B.detail.value};
_.a.updateFullNameTextFromBinding=function(B){this.fullNameText=B.detail.value};
_.a.updateMinutesFromBinding=function(B){this.minutes=B.detail.value};
_.a.updateSecondsFromBinding=function(B){this.seconds=B.detail.value};
mY.prototype.handleInput=mY.prototype.handleInput;mY.prototype.onYtServiceRequestError=mY.prototype.onYtServiceRequestError;mY.prototype.onYtServiceRequestCompleted=mY.prototype.onYtServiceRequestCompleted;mY.prototype.onYtServiceRequestSent=mY.prototype.onYtServiceRequestSent;mY.prototype.dataChanged=mY.prototype.dataChanged;_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],mY.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.L([_.jr("#scroller"),_.H("design:type",Object)],mY.prototype,"JSC$18195_scroller",void 0);_.L([_.jr("#description"),_.H("design:type",HTMLInputElement)],mY.prototype,"description",void 0);_.L([_.jr("#full-name"),_.H("design:type",Object)],mY.prototype,"fullName",void 0);_.L([_.F(),_.H("design:type",Object)],mY.prototype,"data",void 0);
_.L([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.H("design:type",Boolean)],mY.prototype,"showTimestamp",void 0);_.L([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.H("design:type",Object)],mY.prototype,"serviceEndpoint",void 0);_.L([_.F({computed:"computeSubmitButton(data)"}),_.H("design:type",Object)],mY.prototype,"submitButton",void 0);_.L([_.F(),_.H("design:type",String)],mY.prototype,"descriptionText",void 0);
_.L([_.F(),_.H("design:type",Number)],mY.prototype,"issueType",void 0);_.L([_.F(),_.H("design:type",Number)],mY.prototype,"affiliation",void 0);_.L([_.F(),_.H("design:type",String)],mY.prototype,"fullNameText",void 0);_.L([_.F(),_.H("design:type",String)],mY.prototype,"minutes",void 0);_.L([_.F(),_.H("design:type",String)],mY.prototype,"seconds",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mY.prototype,"dataChanged",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],mY.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],mY.prototype,"onYtServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mY.prototype,"onYtServiceRequestError",null);_.L([_.bF("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mY.prototype,"handleInput",null);_.L([_.y({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],mY);
_.G(mY,"ytd-legal-report-details-form-renderer",function(){if(LPs!==void 0)return LPs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return LPs=B},{mode:1});var fry;var TW=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return B};
_.w(TW,_.z);TW.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
TW.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var B=this.formRenderer.getForm();B&&this.data.submitEndpoint&&(_.cp().resolve(_.xu).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},B,{element:this.hostElement})}),_.gj(this.hostElement,"yt-close-popup-action"))}};
TW.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.gj(this.hostElement,"yt-close-popup-action"))};
TW.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
TW.prototype.onPopupClosed=TW.prototype.onPopupClosed;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],TW.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);
_.L([_.jr("yt-form-renderer"),_.H("design:type",Object)],TW.prototype,"formRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],TW.prototype,"data",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TW.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-form-popup-content",disableElementRegistration:!0})],TW);
_.G(TW,"ytd-form-popup-content",function(){if(fry!==void 0)return fry;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return fry=B},{mode:1});var iGr;var V5=function(){return _.z.apply(this,arguments)||this};
_.w(V5,_.z);V5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
V5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
V5.prototype.onPopupOpened=function(){_.aJ(this.hostElement,"yt-invalidate-popup-tabbables")};
V5.prototype.onYtServiceRequestCompleted=function(B,c){c.data&&c.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.aJ(this.hostElement,"yt-invalidate-popup-tabbables"))};
V5.prototype.onYtServiceRequestCompleted=V5.prototype.onYtServiceRequestCompleted;V5.prototype.onPopupOpened=V5.prototype.onPopupOpened;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],V5.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],V5.prototype,"data",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V5.prototype,"onPopupOpened",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],V5.prototype,"onYtServiceRequestCompleted",null);_.L([_.y({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],V5);
_.G(V5,"ytd-form-popup-renderer",function(){if(iGr!==void 0)return iGr;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return iGr=B},{mode:1});var A7z;var tS=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;return B};
_.w(tS,_.z);_.a=tS.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");YEr(this.hostElement)};
_.a.onYtServiceRequestSent=function(){this.isLoading=!0};
_.a.onYtServiceRequestCompleted=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.a.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.XX(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.a.closePopupHandler=function(){this.fireOnCloseActions()};
_.a.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var B=this.get("data.headerImage.thumbnails");B&&(B=_.Pw(B,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+B+")")}};
_.a.onYtNavigate=function(B){(B=_.uI(B))&&B.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
tS.prototype.onYtNavigate=tS.prototype.onYtNavigate;tS.prototype.onHeaderImageChanged=tS.prototype.onHeaderImageChanged;tS.prototype.closePopupHandler=tS.prototype.closePopupHandler;tS.prototype.onYtServiceRequestCompleted=tS.prototype.onYtServiceRequestCompleted;tS.prototype.onYtServiceRequestSent=tS.prototype.onYtServiceRequestSent;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],tS.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tS.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],tS.prototype,"isLoading",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLDivElement)],tS.prototype,"header",void 0);_.L([_.jr("#confirm-button"),_.H("design:type",_.Vq)],tS.prototype,"confirmButton",void 0);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tS.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tS.prototype,"onYtServiceRequestCompleted",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],tS.prototype,"closePopupHandler",null);_.L([_.bF("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tS.prototype,"onHeaderImageChanged",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tS.prototype,"onYtNavigate",null);
_.L([_.y({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],tS);
_.G(tS,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(A7z!==void 0)return A7z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return A7z=B},{mode:1});var uNB;var wn=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;return B};
_.w(wn,_.z);_.a=wn.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);YEr(this.hostElement)};
_.a.onYtServiceRequestCompleted=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.a.onYtServiceRequestError=function(B){_.xE(this.hostElement,B.detail.error.message)};
_.a.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.a.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.gj(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.a.onDataChanged=function(){this.isLoading=!1;var B=this.get("data.headerImage.thumbnails");B&&(B=_.Pw(B,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+B+")");B=_.Wf();var c=_.Jg(),x=this.get("data.trackingParams");x&&c&&B&&_.Gq(B,c,_.VF(x))};
_.AJ.Object.defineProperties(wn.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
wn.prototype.onDataChanged=wn.prototype.onDataChanged;wn.prototype.onDomChange=wn.prototype.onDomChange;wn.prototype.onYtServiceRequestError=wn.prototype.onYtServiceRequestError;wn.prototype.onYtServiceRequestCompleted=wn.prototype.onYtServiceRequestCompleted;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],wn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],wn.prototype,"isLoading",void 0);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wn.prototype,"hasDescription",null);_.L([_.jr("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],wn.prototype,"scrollable",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],wn.prototype,"header",void 0);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wn.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wn.prototype,"onYtServiceRequestError",null);
_.L([_.nF("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wn.prototype,"onDomChange",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"onDataChanged",null);_.L([_.y({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],wn);
_.G(wn,"ytd-gaming-account-link-setting-renderer",function(){if(uNB!==void 0)return uNB;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return uNB=B},{mode:1});var DTz;var r76;var No=function(){var B=_.z.apply(this,arguments)||this;B.isHeader=!1;B.getEndpointForm=function(){return cmB(B.data)};
return B};
_.w(No,_.z);_.a=No.prototype;_.a.triggerHintActions=function(){var B=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var c=_.sp(B.hostElement,"yt-get-opened-popups-action");!(c&&c.length===1?c[0]:[]).some(function(x){x=x.openPopupAction.popupType;return x==="SURVEY"||x==="MEALBAR"||x==="HINT"})&&B.data.hintActions&&B.guideOpened&&(_.XX(B.hostElement,B.data.hintActions,B.hostElement),B.data.hintActions=void 0)})};
_.a.getBadgeIconType=function(B){return B&&B.liveBroadcasting?"live":null};
_.a.onDown=function(){this.interaction.triggerDown()};
_.a.onUp=function(){this.interaction.triggerUp()};
_.a.onTap=function(B){if(this.data.serviceEndpoint){var c;_.T("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.t(this.data.serviceEndpoint,_.TF))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):BLs(this.data.serviceEndpoint,this);B.preventDefault()}else this.data.navigationEndpoint&&!_.uv(_.AV(B),this.hostElement,["A".toString()])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.a.computeActive=function(B,c){if(!B)return!1;var x=B.navigationEndpoint;B=B.serviceEndpoint;if(!x&&!B||!c)return!1;if(x){B=(B=_.d_(c))&&["subscriptions","filteredsubscriptions"].includes(B);if(_.t(x,_.qA)&&_.t(c,_.qA)&&!B){var P=_.t(x,_.qA).browseId;c=_.t(c,_.qA).browseId;return P!==void 0&&c!==void 0&&(P===c||P==="VLWL"&&c==="FEwatch_later"||P==="FEwatch_later"&&c==="VLWL")}var Y;x=(Y=_.t(x.commandMetadata,_.Br))==null?void 0:Y.url;c=(P=_.t(c.commandMetadata,_.Br))==null?void 0:P.url;return!(!x||
!c||x!==c&&x!==_.$u(c))}return this.isActiveShortsTab(B,c)};
_.a.isActiveShortsTab=function(B,c){c=!!_.t(c,_.TF)||!!_.t(c,_.Fm);return(!!_.t(B,_.TF)||!!_.t(B,_.Fm))&&c};
_.a.computeIsPrimary=function(B){return!!B};
_.AJ.Object.defineProperties(No.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 B=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&B)return B}}});
No.prototype.onTap=No.prototype.onTap;No.prototype.onUp=No.prototype.onUp;No.prototype.onDown=No.prototype.onDown;No.prototype.triggerHintActions=No.prototype.triggerHintActions;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],No.prototype,"componentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],No.prototype,"rendererBehavior",void 0);_.L([_.J(_.xJ.YtTaskEmitterBehavior),_.H("design:type",Object)],No.prototype,"taskEmitterBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],No.prototype,"activeEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],No.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],No.prototype,"guideOpened",void 0);_.L([_.F(),_.H("design:type",String)],No.prototype,"type",void 0);_.L([_.jr("yt-interaction"),_.H("design:type",Object)],No.prototype,"interaction",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],No.prototype,"isHeader",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data","activeEndpoint"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],No.prototype,"active",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],No.prototype,"isPrimary",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.count","data.presentationStyle","data.badges.*"),_.H("design:type",String),_.H("design:paramtypes",[])],No.prototype,"lineEndStyle",null);
_.L([_.Q("lineEndStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],No.prototype,"ariaLabel",null);_.L([_.bF("data.hintActions","guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],No.prototype,"triggerHintActions",null);_.L([_.nF("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],No.prototype,"onDown",null);
_.L([_.nF("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],No.prototype,"onUp",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],No.prototype,"onTap",null);_.L([_.y({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],No);
_.G(No,"ytd-guide-entry-renderer",function(){if(r76!==void 0)return r76;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return r76=B},{mode:1});var I_=function(){var B=_.z.apply(this,arguments)||this;B.userToggled=!1;return B};
_.w(I_,_.z);_.a=I_.prototype;_.a.getItemsPath=function(){return"data.expandableItems"};
_.a.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.a.onExpanderItemTapped=function(B){var c=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.T("kevlar_guide_expandable_items_killswitch")&&_.fl(this,function(){_.Aj(c.expandableItems)});
B.preventDefault()};
_.a.onCollapserItemTapped=function(B){var c=this;this._setExpanded(!1);this.userToggled=!0;B.preventDefault();this.expandableItems&&!_.T("kevlar_guide_collapsible_items_killswitch")&&_.fl(this,function(){_.ir(c.hostElement)})};
_.a.observeActiveEndpoint=function(){for(var B=this.activeEndpoint,c=this.data,x=this.expandableItems.children,P=0,Y=x.length;P<Y;P++)x[P].activeEndpoint=B;c&&c.autoExpandCommand&&B&&!this.userToggled&&(x=this.data.autoExpandCommand,c=!(!_.t(x,_.qA)||!_.t(B,_.qA)||_.t(x,_.qA).browseId!==_.t(B,_.qA).browseId),B=this.get("commandMetadata.webCommandMetadata.url",B),x=this.get("commandMetadata.webCommandMetadata.url",x),c=c||!!(B&&x&&B.includes(x)),this._setExpanded(c),c&&this.ytLazyListBehavior.fillRemainingListItems())};
I_.prototype.observeActiveEndpoint=I_.prototype.observeActiveEndpoint;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],I_.prototype,"ytLazyListBehavior",void 0);_.L([_.jr("#expandable-items"),_.H("design:type",HTMLElement)],I_.prototype,"expandableItems",void 0);
_.L([_.F(),_.H("design:type",Object)],I_.prototype,"data",void 0);_.L([_.F({readOnly:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],I_.prototype,"expanded",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],I_.prototype,"initialCount",void 0);_.L([_.F(),_.H("design:type",Object)],I_.prototype,"activeEndpoint",void 0);_.L([_.bF("data","activeEndpoint","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I_.prototype,"observeActiveEndpoint",null);
_.L([_.y({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],I_);
_.G(I_,"ytd-guide-collapsible-entry-renderer",function(){if(DTz!==void 0)return DTz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return DTz=B},{mode:_.sL("kevlar_poly_si_batch_j079")?1:2});var R8y;var e8F;var JS=function(){var B=_.z.apply(this,arguments)||this;B.allVideosCount=0;B.renderGuideEntry=!1;return B};
_.w(JS,_.z);JS.prototype.observeRenderEntry=function(){var B;this.renderGuideEntry=!((B=this.data)==null||!B.alwaysShow)||!!this.allVideosCount};
JS.prototype.observeRenderEntry=JS.prototype.observeRenderEntry;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],JS.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JS.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],JS.prototype,"activeEndpoint",void 0);_.L([_.F({selector:_.bVY}),_.H("design:type",Object)],JS.prototype,"allVideosCount",void 0);
_.L([_.F(),_.H("design:type",Object)],JS.prototype,"renderGuideEntry",void 0);_.L([_.CF("allVideosCount","data.alwaysShow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JS.prototype,"observeRenderEntry",null);_.L([_.y({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],JS);
_.G(JS,"ytd-guide-downloads-entry-renderer",function(){if(e8F===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);e8F=B}B=e8F;return B},{mode:1});var W4=function(){var B=_.z.apply(this,arguments)||this;B.youtab=_.T("web_enable_youtab");B.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return B};
_.w(W4,_.z);_.a=W4.prototype;_.a.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]]"}}}}}};
_.a.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var B=this.sectionItems.children,c=0,x=B.length;c<x;c++)B[c].activeEndpoint=this.activeEndpoint}};
_.a.handleAddToGuideSectionAction=function(B){var c=_.t(B,nYy);if(c&&this.data&&(B=c.items,c=c.handlerData,B&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1)){c=0;for(var x=B.length;c<x;c++)B[c].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,B[c])}};
_.a.handleRemoveFromGuideSectionAction=function(B){var c=_.t(B,bdr);c&&this.data&&(B=c.guideEntryId,c=c.handlerData,B&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(B,this.data.sectionItems),this.removeFromCollapsedSection(B,this.data.sectionItems)))};
_.a.removeFromExpandedSection=function(B,c){B=this.getEntryIndexMatchingId(B,c);B!==-1&&this.splice("data.sectionItems",B,1)};
_.a.removeFromCollapsedSection=function(B,c){var x=c.findIndex(function(P){return!!_.t(P,WaF)});
x&&x!==-1&&c[x]&&_.t(c[x],WaF)&&(c=_.t(c[x],WaF).expandableItems)&&(B=this.getEntryIndexMatchingId(B,c),B!==-1&&this.splice("data.sectionItems."+x+".guideCollapsibleEntryRenderer.expandableItems",B,1))};
_.a.getEntryIndexMatchingId=function(B,c){var x=this;return c.findIndex(function(P){return x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===B})};
W4.prototype.activeEndpointChanged=W4.prototype.activeEndpointChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],W4.prototype,"actionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#section-items"),_.H("design:type",HTMLDivElement)],W4.prototype,"sectionItems",void 0);
_.L([_.jr("#header-entry"),_.H("design:type",Object)],W4.prototype,"headerEntry",void 0);_.L([_.F(),_.H("design:type",Object)],W4.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],W4.prototype,"activeEndpoint",void 0);_.L([_.F(),_.H("design:type",Object)],W4.prototype,"youtab",void 0);_.L([_.bF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W4.prototype,"activeEndpointChanged",null);
_.L([_.y({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],W4);
_.G(W4,"ytd-guide-collapsible-section-entry-renderer",function(){if(R8y===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);R8y=B}B=R8y;return B},{mode:1});var B5o;var cfy;var l7=function(){var B=_.z.apply(this,arguments)||this;B.modernTypography=_.T("web_modern_typography");B.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 B};
_.w(l7,_.z);_.a=l7.prototype;
_.a.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}}}}};
_.a.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var B=_.sp(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);B&&B.length===1&&B[0]&&_.sp(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.a.handleResetChannelUnreadCountCommand=function(B){var c;(B=(c=_.t(B,jIr))==null?void 0:c.channelId)&&this.data&&this.data.items&&(c=this.getPathToEntryMatchingId(B))&&(this.set(c+".guideEntryRenderer.count",0),this.set(c+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.a.handleResetSubscriptionsUnreadDotCommand=function(B){var c,x=(c=_.t(B,Ukl))==null?void 0:c.targetId,P;x&&(P=this.data)!=null&&P.items&&(B=this.data.items.findIndex(function(Y){var g;return((g=Y.guideEntryRenderer)==null?void 0:g.targetId)===x}),B<0||this.set("data.items."+B+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.a.getPathToEntryMatchingId=function(B){if(this.data&&this.data.items){var c=this.getEntryIndexMatchingId(B,this.data.items);if(c>-1)return"data.items."+c;for(var x=0;x<this.data.items.length;x++)if(c=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[x]))if(c=this.getEntryIndexMatchingId(B,c),c>-1)return"data.items."+x+".guideCollapsibleEntryRenderer.expandableItems."+c}};
_.a.handleAddToGuideSectionAction=function(B){var c=this;if(_.t(B,nYy)){var x=_.t(B,nYy).items;B=_.t(B,nYy).handlerData;var P,Y;x&&B&&((P=this.data)==null?void 0:(Y=P.handlerDatas)==null?void 0:Y.indexOf(B))>-1&&(x=x.filter(function(g){return(g=c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",g))&&!c.isGuideItemPresent(g)}),this.unshift.apply(this,["data.items"].concat(_.wq(x))))}};
_.a.isGuideItemPresent=function(B){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(B,this.data.items)!==-1)return!0;var c=this.data.items.find(function(x){return!!x.guideCollapsibleEntryRenderer});
if((c==null?0:c.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(B,c.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.a.getEntryIndexMatchingId=function(B,c){var x=this;return c.findIndex(function(P){return x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===B})};
_.a.handleRemoveFromGuideSectionAction=function(B){if(_.t(B,bdr)){var c=_.t(B,bdr).guideEntryId;B=_.t(B,bdr).handlerData;var x,P;c&&B&&((x=this.data)==null?void 0:(P=x.handlerDatas)==null?void 0:P.indexOf(B))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(c,this.data.items),this.removeFromCollapsedSection(c,this.data.items))}};
_.a.removeFromExpandedSection=function(B,c){B=this.getEntryIndexMatchingId(B,c);B!==-1&&this.splice("data.items",B,1)};
_.a.removeFromCollapsedSection=function(B,c){var x=c.findIndex(function(P){return!!P.guideCollapsibleEntryRenderer});
x!==-1&&(c=c[x].guideCollapsibleEntryRenderer.expandableItems)&&(B=this.getEntryIndexMatchingId(B,c),B!==-1&&this.splice("data.items."+x+".guideCollapsibleEntryRenderer.expandableItems",B,1))};
_.a.activeEndpointChanged=function(){for(var B=_.Y9(this.hostElement).querySelector("#items").children,c=0,x=B.length;c<x;c++)B[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.a.guideOpenedChanged=function(){for(var B=_.Y9(this.hostElement).querySelector("#items").children,c=0,x=B.length;c<x;c++)B[c].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
l7.prototype.guideOpenedChanged=l7.prototype.guideOpenedChanged;l7.prototype.activeEndpointChanged=l7.prototype.activeEndpointChanged;l7.prototype.persistentGuideChanged=l7.prototype.persistentGuideChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],l7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],l7.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],l7.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],l7.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],l7.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],l7.prototype,"modernTypography",void 0);_.L([_.F(),_.H("design:type",String)],l7.prototype,"type",void 0);_.L([_.F({value:20}),_.H("design:type",Number)],l7.prototype,"initialCount",void 0);_.L([_.F({value:10}),_.H("design:type",Number)],l7.prototype,"targetFramerate",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],l7.prototype,"autoFill",void 0);_.L([_.F({value:50}),_.H("design:type",Number)],l7.prototype,"renderDelay",void 0);
_.L([_.bF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l7.prototype,"persistentGuideChanged",null);_.L([_.CF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l7.prototype,"activeEndpointChanged",null);_.L([_.CF("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l7.prototype,"guideOpenedChanged",null);
_.L([_.y({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],l7);
_.G(l7,"ytd-guide-section-renderer",function(){if(cfy!==void 0)return cfy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return cfy=B},{mode:_.sL("kevlar_poly_si_batch_j073")?1:2});var xB6;var EX=function(){return _.z.apply(this,arguments)||this};
_.w(EX,_.z);_.AJ.Object.defineProperties(EX.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],EX.prototype,"rendererBehaviors",void 0);_.L([_.F(),_.H("design:type",Object)],EX.prototype,"data",void 0);_.L([_.F(),_.Q("data.signInButton.buttonRenderer.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],EX.prototype,"alignByText",null);_.L([_.y({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],EX);
_.G(EX,"ytd-guide-signin-promo-renderer",function(){if(xB6===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);xB6=B}B=xB6;return B},{mode:1});var OX=function(){var B=_.z.apply(this,arguments)||this;B.showFooter=!1;return B};
_.w(OX,_.z);OX.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}}}}};
OX.prototype.attached=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1){c=_.cp().resolve(_.Bp(_.zH));if(!c)return x.jumpTo(0);c.setGuideData(B.hostElement);return _.K(x,0,3)}B.ytLazyListBehavior.initialCount=2;return x.return()})};
OX.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
OX.prototype.dataChanged=OX.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],OX.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.BC.YtLazyListBehavior),_.H("design:type",Object)],OX.prototype,"ytLazyListBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],OX.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],OX.prototype,"showFooter",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],OX.prototype,"autoFill",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OX.prototype,"dataChanged",null);_.L([_.y({is:"ytd-guide-renderer",disableElementRegistration:!0})],OX);
_.G(OX,"ytd-guide-renderer",function(){if(B5o!==void 0)return B5o;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return B5o=B},{mode:_.sL("kevlar_poly_si_batch_j073")?1:2});var POA;var o_=function(){var B=_.z.apply(this,arguments)||this;B.systemIcons=_.T("kevlar_system_icons");B.frostedGlass=_.T("web_frosted_glass");B.getEndpointForm=function(){return cmB(B.data)};
return B};
_.w(o_,_.z);_.a=o_.prototype;_.a.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.a.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.iG(this.data.formattedTitle))};
_.a.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.a.onDown=function(){this.interaction.triggerDown()};
_.a.onUp=function(){this.interaction.triggerUp()};
_.a.onTap=function(B){if(this.data.serviceEndpoint){var c;_.T("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.t(this.data.serviceEndpoint,_.TF))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):BLs(this.data.serviceEndpoint,this);B.preventDefault()}else{var x;((x=this.data)==null?0:x.navigationEndpoint)&&!_.uv(_.AV(B),this.hostElement,["A".toString()])&&_.aJ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.a.computeActive=function(B,c){if(!B)return!1;var x=B.navigationEndpoint;B=B.serviceEndpoint;if(!x&&!B||!c)return!1;if(x){B=_.t(x,_.qA);var P=_.t(c,_.qA);if(B&&P)return B.browseId===P.browseId&&B.params===P.params;var Y;x=(Y=_.t(x.commandMetadata,_.Br))==null?void 0:Y.url;var g;c=(g=_.t(c.commandMetadata,_.Br))==null?void 0:g.url;return!(!x||!c||x!==c&&x!==_.$u(c))}return this.isActiveShortsTab(B,c)};
_.a.isActiveShortsTab=function(B,c){c=!!_.t(c,_.TF)||!!_.t(c,_.Fm);return(!!_.t(B,_.TF)||!!_.t(B,_.Fm))&&c};
_.a.computeTitle=function(B,c){return c?"":_.iG(B)};
_.AJ.Object.defineProperties(o_.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
o_.prototype.onTap=o_.prototype.onTap;o_.prototype.onUp=o_.prototype.onUp;o_.prototype.onDown=o_.prototype.onDown;o_.prototype.onActiveStateChange=o_.prototype.onActiveStateChange;o_.prototype.dataChanged=o_.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],o_.prototype,"ytComponentBehavior",void 0);
_.L([_.J(_.QT),_.H("design:type",Object)],o_.prototype,"ironButtonState",void 0);_.L([_.F(),_.H("design:type",Object)],o_.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],o_.prototype,"activeEndpoint",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],o_.prototype,"noLabels",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.H("design:type",Boolean)],o_.prototype,"isActive",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],o_.prototype,"systemIcons",void 0);_.L([_.jr("yt-interaction"),_.H("design:type",Object)],o_.prototype,"interaction",void 0);_.L([_.Q("isActive"),_.H("design:type",Object),_.H("design:paramtypes",[])],o_.prototype,"ariaSelected",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],o_.prototype,"frostedGlass",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o_.prototype,"dataChanged",null);_.L([_.bF("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o_.prototype,"onActiveStateChange",null);_.L([_.nF("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o_.prototype,"onDown",null);
_.L([_.nF("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o_.prototype,"onUp",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],o_.prototype,"onTap",null);_.L([_.y({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],o_);
_.G(o_,"ytd-mini-guide-entry-renderer",function(){if(POA!==void 0)return POA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return POA=B},{mode:_.sL("kevlar_poly_si_batch_j063")?1:2});var YA8;var Q5=function(){var B=_.z.apply(this,arguments)||this;B.allVideosCount=0;B.noLabels=_.T("kevlar_mini_guide_no_labels");B.frostedGlass=_.T("web_frosted_glass");return B};
_.w(Q5,_.z);_.a=Q5.prototype;_.a.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.a.visibleChanged=function(){if(this.visible&&!this.data){var B=_.cp().resolve(_.Bp(_.zH));B&&B.setGuideData(this.hostElement)}};
_.a.dataChanged=function(){var B=[],c;if((c=this.data)!=null&&c.items){c=_.p(this.data.items);for(var x=c.next();!x.done;x=c.next()){x=x.value;var P=void 0;if((P=x.guideSectionRenderer)==null?0:P.items)for(P=void 0,x=_.p((P=x.guideSectionRenderer)==null?void 0:P.items),P=x.next();!P.done;P=x.next())if(P=P.value,P.guideEntryRenderer)P=P.guideEntryRenderer,P.isPrimary&&B.push({guideEntryRenderer:P});else if(P.guideCollapsibleSectionEntryRenderer){var Y=void 0;((Y=_.t(P.guideCollapsibleSectionEntryRenderer.headerEntry,
f5))==null?0:Y.isPrimary)&&B.push({guideEntryRenderer:_.t(P.guideCollapsibleSectionEntryRenderer.headerEntry,f5)});if(P=P.guideCollapsibleSectionEntryRenderer.sectionItems)for(P=_.p(P),Y=P.next();!Y.done;Y=P.next()){var g=Y.value;Y=_.t(g,lyz);var k=void 0;((k=_.t(g,f5))==null?0:k.isPrimary)?B.push({guideEntryRenderer:_.t(g,f5)}):Y&&(g=void 0,_.t((g=Y)==null?void 0:g.entryRenderer,f5)&&(Y.alwaysShow||this.allVideosCount)&&B.push({guideEntryRenderer:_.t(Y.entryRenderer,f5)}))}}}}this.miniGuideItems=
B};
_.a.activeEndpointChanged=function(){for(var B=this.items.children,c=0;c<B.length;c++)B[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
Q5.prototype.activeEndpointChanged=Q5.prototype.activeEndpointChanged;Q5.prototype.dataChanged=Q5.prototype.dataChanged;Q5.prototype.visibleChanged=Q5.prototype.visibleChanged;_.L([_.J(_.OU),_.H("design:type",Object)],Q5.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Q5.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Q5.prototype,"ytComponentBehavior",void 0);_.L([_.jr("#items"),_.H("design:type",Object)],Q5.prototype,"items",void 0);_.L([_.F(),_.H("design:type",Object)],Q5.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],Q5.prototype,"visible",void 0);
_.L([_.F(),_.H("design:type",Object)],Q5.prototype,"miniGuideItems",void 0);_.L([_.F({selector:_.bVY}),_.H("design:type",Object)],Q5.prototype,"allVideosCount",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q5.prototype,"noLabels",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Q5.prototype,"frostedGlass",void 0);_.L([_.CF("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q5.prototype,"visibleChanged",null);
_.L([_.CF("data","allVideosCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q5.prototype,"dataChanged",null);_.L([_.CF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q5.prototype,"activeEndpointChanged",null);_.L([_.y({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Q5);
_.G(Q5,"ytd-mini-guide-renderer",function(){if(YA8===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);YA8=B}B=YA8;return B},{mode:1});var afA;var gRB=/^[\x00-\x7F]+$/,FQ=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(FQ,_.z);_.AJ.Object.defineProperties(FQ.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var B,c=_.iG((B=this.data)==null?void 0:B.handle);if(c)return _.fk("@"+c)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var B=_.iG(this.displayHandle),c,x=_.iG((c=this.data)==null?void 0:c.handleUrl);if(B&&x)return _.fk(x+B)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var B=_.iG(this.displayHandle);if(B&&!gRB.test(B)){var c;return(c=this.data)==null?void 0:c.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var B=_.iG(this.displayHandleUrl),c,x=_.iG((c=this.data)==null?void 0:c.urlInfoText);if(B&&x)return _.fk(x+" "+B)}}});
_.L([_.F(),_.H("design:type",Object)],FQ.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],FQ.prototype,"displayHandle",null);_.L([_.Q("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],FQ.prototype,"displayHandleUrl",null);_.L([_.Q("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],FQ.prototype,"warningText",null);
_.L([_.Q("displayHandleUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],FQ.prototype,"urlInfoTextWithUrl",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],FQ.prototype,"darkerDarkTheme",void 0);_.L([_.y({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],FQ);
_.G(FQ,"ytd-handles-claiming-confirm-dialog-content",function(){if(afA!==void 0)return afA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return afA=B},{mode:1});var sSF;var v4=function(){var B=_.z.apply(this,arguments)||this;B.okButtonOverride={style:"mono",type:"outline",size:"M"};return B};
_.w(v4,_.z);v4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v4.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],v4.prototype,"okButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],v4.prototype,"data",void 0);_.L([_.y({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],v4);
_.G(v4,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(sSF!==void 0)return sSF;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return sSF=B},{mode:1});var pT6;var k8N=/^[\x00-\x7F]+$/,zW=function(){var B=_.z.apply(this,arguments)||this;B.isLoading=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(zW,_.z);zW.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var B;this.selectedHandle=(B=this.handleInput)==null?void 0:B.value;this.onSelectedHandleChanged(this.selectedHandle);_.sp(this.hostElement,"yt-refit-popups-action")}};
_.AJ.Object.defineProperties(zW.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.fk("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.fk(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!k8N.test(this.selectedHandle)){var B;return(B=this.data)==null?void 0:B.warningText}}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zW.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],zW.prototype,"selectedHandle",void 0);_.L([_.F(),_.H("design:type",Object)],zW.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Function)],zW.prototype,"onSelectedHandleChanged",void 0);_.L([_.jr("#channel-handle-input"),_.H("design:type",Object)],zW.prototype,"handleInput",void 0);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],zW.prototype,"handleUrlPrefix",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],zW.prototype,"displayHandle",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],zW.prototype,"displayHandleUrl",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],zW.prototype,"warningText",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zW.prototype,"darkerDarkTheme",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.L([_.y({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],zW);
_.G(zW,"ytd-handles-claiming-edit-dialog-content",function(){if(pT6!==void 0)return pT6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pT6=B},{mode:1});var XTz;var Sz=function(){var B=_.z.apply(this,arguments)||this;B.actionButtonOverride={style:"mono",type:"filled",size:"M"};B.cancelButtonOverride={style:"mono",type:"text",size:"M"};B.selectButtonDisabled=!1;B.isLoading=!1;B.hasSelectedHandleEventListener=!1;B.selectedHandleChanged=function(c){B.selectedHandle=c};
return B};
_.w(Sz,_.z);_.a=Sz.prototype;_.a.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.a.onDataChanged=function(){var B,c;this.selectedHandle=(c=_.t((B=this.data)==null?void 0:B.inputField,sIS))==null?void 0:c.handle};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onCancel=function(){this.selectedHandle="";_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onSelectHandle=function(){var B=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(x,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.xE(B.hostElement,_.iG(P.newHandleUpdateStatus.errorMessage)),
B.isLoading=!1;else{var Y;if((Y=B.data)==null?0:Y.onChannelUpdateSuccess){x=B.data.onChannelUpdateSuccess;var g,k;if(P=(g=_.t(x,_.J3))==null?void 0:(k=g.popup)==null?void 0:k.handlesClaimingConfirmDialogRenderer)P.handle=_.fk(B.selectedHandle);B.ytComponentBehavior.resolveCommand(x);_.gj(B.hostElement,"yt-close-popup-action",[B.is])}else B.isLoading=!1}},
onServerError:function(){var x;B.content&&((x=B.content)==null?0:x.handleInput)&&B.content.handleInput.validate();B.isLoading=!1;_.xE(B.hostElement,_.Up("TRY_AGAIN_LATER"))}}}))}};
_.a.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Sz.prototype.onDataChanged=Sz.prototype.onDataChanged;Sz.prototype.onSelectedHandleChanged=Sz.prototype.onSelectedHandleChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Sz.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"actionButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"cancelButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",String)],Sz.prototype,"selectedHandle",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"selectButtonDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"hasSelectedHandleEventListener",void 0);_.L([_.F(),_.H("design:type",Object)],Sz.prototype,"handleInput",void 0);
_.L([_.bF("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sz.prototype,"onSelectedHandleChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sz.prototype,"onDataChanged",null);_.L([_.jr("ytd-handles-claiming-edit-dialog-content"),_.H("design:type",Object)],Sz.prototype,"content",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.y({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Sz);
_.G(Sz,"ytd-handles-claiming-edit-dialog-renderer",function(){if(XTz!==void 0)return XTz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return XTz=B},{mode:1});var $Bc;var y5=function(){return _.z.apply(this,arguments)||this};
_.w(y5,_.z);_.AJ.Object.defineProperties(y5.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.handle){var c;return _.fk("@"+_.iG((c=this.data)==null?void 0:c.handle))}}}});
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],y5.prototype,"formattedHandle",null);_.L([_.F(),_.H("design:type",Object)],y5.prototype,"data",void 0);_.L([_.y({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],y5);
_.G(y5,"ytd-handles-claiming-radio-option-renderer",function(){if($Bc!==void 0)return $Bc;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $Bc=B},{mode:1});var nRA;var b8B=/^[\x00-\x7F]+$/,GW=function(){var B=_.z.apply(this,arguments)||this;B.initialRadioIndex="-1";B.isLoading=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.maybeSubmitFeedback=function(){B.feedbackSurveyRenderer.submitSurvey()};
return B};
_.w(GW,_.z);GW.prototype.updateSelectedHandleIndexFromBinding=function(B){this.selectedRadioIndex=+B.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(B)};
GW.prototype.selectedHandleChanged=function(B){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var c;this.selectedHandle=(c=this.handleInput)==null?void 0:c.value;this.onSelectedHandleChanged(B)}};
_.AJ.Object.defineProperties(GW.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var B;return this.ytRendererBehavior.getSimpleString((B=this.data)==null?void 0:B.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.fk("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.fk(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!b8B.test(this.selectedHandle)){var B;return(B=this.data)==null?void 0:B.warningText}}}});
_.L([_.F(),_.H("design:type",Object)],GW.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],GW.prototype,"initialRadioIndex",void 0);_.L([_.F(),_.H("design:type",Number)],GW.prototype,"selectedRadioIndex",void 0);_.L([_.F(),_.H("design:type",String)],GW.prototype,"selectedHandle",void 0);_.L([_.F(),_.H("design:type",Object)],GW.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Function)],GW.prototype,"onSelectedHandleChanged",void 0);
_.L([_.F(),_.H("design:type",Function)],GW.prototype,"onSelectedRadioIndexChanged",void 0);_.L([_.jr("#channel-handle-input"),_.H("design:type",Object)],GW.prototype,"handleInput",void 0);_.L([_.jr("ytd-feedback-survey-renderer"),_.H("design:type",Object)],GW.prototype,"feedbackSurveyRenderer",void 0);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],GW.prototype,"radioButtonLength",null);
_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],GW.prototype,"handleUrlPrefix",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],GW.prototype,"displayHandle",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],GW.prototype,"displayHandleUrl",null);_.L([_.Q("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],GW.prototype,"warningText",null);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],GW.prototype,"darkerDarkTheme",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.L([_.y({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],GW);
_.G(GW,"ytd-handles-claiming-select-dialog-content",function(){if(nRA!==void 0)return nRA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nRA=B},{mode:1});var K$r;var Mo=function(){var B=_.z.apply(this,arguments)||this;B.actionButtonOverride={style:"mono",type:"filled",size:"M"};B.cancelButtonOverride={style:"mono",type:"text",size:"M"};B.initialRadioIndex="-1";B.selectButtonDisabled=!1;B.isLoading=!1;B.selectedRadioIndexChanged=function(c){B.selectedRadioIndex=Number(c.detail.value)};
B.selectedHandleChanged=function(c){B.selectedHandle=c.detail.value};
B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Mo,_.z);_.a=Mo.prototype;_.a.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.a.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.a.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.sp(this.hostElement,"yt-refit-popups-action")};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onSelectHandle=function(){var B=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(x,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.xE(B.hostElement,_.iG(P.newHandleUpdateStatus.errorMessage)),
B.isLoading=!1;else{var Y;if((Y=B.data)==null?0:Y.onChannelUpdateSuccess){x=B.data.onChannelUpdateSuccess;P=_.t(x,_.J3);var g;if(P==null?0:(g=P.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)P.popup.handlesClaimingConfirmDialogRenderer.handle=_.fk(B.selectedHandle);B.ytComponentBehavior.resolveCommand(x);_.gj(B.hostElement,"yt-close-popup-action",[B.is])}else B.isLoading=!1}},
onServerError:function(){if(B.selectedRadioIndex===B.radioButtonLength){var x;B.content&&((x=B.content)==null?0:x.handleInput)&&B.content.handleInput.validate()}B.isLoading=!1;_.xE(B.hostElement,_.Up("TRY_AGAIN_LATER"))}}}))}};
_.a.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var B,c;this.selectedHandle=(B=this.content)==null?void 0:(c=B.handleInput)==null?void 0:c.value}else this.selectedRadioIndex>=0&&((B=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(B==null?void 0:B.handle):this.selectedHandle=void 0)};
_.a.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.a.getRadioItem=function(B){if(this.radioButtonLength>B&&B>=0)return _.t(this.data.radioButton[B],VgN)};
_.AJ.Object.defineProperties(Mo.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.radioButton)||[]).length}}});
Mo.prototype.onSelectedHandleChanged=Mo.prototype.onSelectedHandleChanged;Mo.prototype.onSelectedHandleIndexChanged=Mo.prototype.onSelectedHandleIndexChanged;Mo.prototype.onDataChanged=Mo.prototype.onDataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Mo.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"actionButtonOverride",void 0);_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"cancelButtonOverride",void 0);
_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"initialRadioIndex",void 0);_.L([_.F(),_.H("design:type",Number)],Mo.prototype,"selectedRadioIndex",void 0);_.L([_.F(),_.H("design:type",String)],Mo.prototype,"selectedHandle",void 0);_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"selectButtonDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],Mo.prototype,"isLoading",void 0);
_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Mo.prototype,"radioButtonLength",null);_.L([_.jr("ytd-handles-claiming-select-dialog-content"),_.H("design:type",Object)],Mo.prototype,"content",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mo.prototype,"onDataChanged",null);
_.L([_.bF("selectedRadioIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mo.prototype,"onSelectedHandleIndexChanged",null);_.L([_.bF("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mo.prototype,"onSelectedHandleChanged",null);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Mo.prototype,"darkerDarkTheme",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.y({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Mo);
_.G(Mo,"ytd-handles-claiming-select-dialog-renderer",function(){if(K$r!==void 0)return K$r;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return K$r=B},{mode:1});var jSs;var UBB;var Lz=function(){return _.z.apply(this,arguments)||this};
_.w(Lz,_.z);Lz.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Lz.prototype,"data",void 0);_.L([_.y({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Lz);
_.G(Lz,"ytd-hotkey-dialog-section-option-renderer",function(){if(UBB!==void 0)return UBB;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return UBB=B},{mode:1});var dB6;var Zv=function(){return _.z.apply(this,arguments)||this};
_.w(Zv,_.z);Zv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Zv.prototype,"data",void 0);_.L([_.y({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Zv);
_.G(Zv,"ytd-hotkey-dialog-section-renderer",function(){if(dB6!==void 0)return dB6;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return dB6=B},{mode:1});var H4=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(H4,_.z);H4.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],H4.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],H4.prototype,"darkerDarkTheme",void 0);_.L([_.y({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],H4);
_.G(H4,"ytd-hotkey-dialog-content",function(){if(jSs!==void 0)return jSs;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return jSs=B},{mode:1});var qAA;var fz=function(){return _.z.apply(this,arguments)||this};
_.w(fz,_.z);fz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var B=document.querySelector("ytd-hotkey-dialog-content #scrollable");B&&(B.dialogElement=this.hostElement.parentElement)};
fz.prototype.onCloseTap=function(){_.gj(this.hostElement,"yt-close-popup-action")};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fz.prototype,"data",void 0);_.L([_.y({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],fz);
_.G(fz,"ytd-hotkey-dialog-renderer",function(){if(qAA!==void 0)return qAA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return qAA=B},{mode:1});var COr;var i7=function(){return _.z.apply(this,arguments)||this};
_.w(i7,_.z);i7.prototype.onYtServiceRequestError=function(){if(this.blocked){var B;var c=(B=this.data)==null?void 0:B.defaultServiceEndpoint}else{var x;c=(x=this.data)==null?void 0:x.toggledServiceEndpoint}var P;(c=(P=_.t(c,_.bR3))==null?void 0:P.onFailureAction)&&this.ytComponentBehavior.resolveCommand(c);this.updateBlockState(!this.blocked)};
i7.prototype.onYtToggleButton=function(B){this.updateBlockState(B.detail.toggled)};
i7.prototype.updateBlockState=function(B){if(B!==this.blocked){var c=this.blockedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.Uy("blockStateEntity",c,{key:c,blocked:B}));this.set("data.isToggled",B)}};
_.AJ.Object.defineProperties(i7.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)}}});
i7.prototype.onYtToggleButton=i7.prototype.onYtToggleButton;i7.prototype.onYtServiceRequestError=i7.prototype.onYtServiceRequestError;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],i7.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],i7.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],i7.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],i7.prototype,"blockedEntityKey",void 0);
_.L([_.F({selectorArgs:["blockedEntityKey"],selector:function(B,c){return _.X9(B.entities,"blockStateEntity",c)}}),
_.H("design:type",Object)],i7.prototype,"blockStateEntity",void 0);_.L([_.Q("data","blockStateEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],i7.prototype,"blocked",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],i7.prototype,"onYtServiceRequestError",null);
_.L([_.nF("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],i7.prototype,"onYtToggleButton",null);_.L([_.y({is:"ytd-block-button",disableElementRegistration:!0})],i7);
_.G(i7,"ytd-block-button",function(){if(COr!==void 0)return COr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return COr=B},
{mode:1});var hAN;var mBB;var AS=function(){return _.z.apply(this,arguments)||this};
_.w(AS,_.z);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],AS.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AS.prototype,"data",void 0);_.L([_.y({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],AS);
_.G(AS,"ytd-kids-blocklist-picker-item-renderer",function(){if(mBB!==void 0)return mBB;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return mBB=B},{mode:1});var u7=function(){return _.z.apply(this,arguments)||this};
_.w(u7,_.z);u7.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],u7.prototype,"data",void 0);_.L([_.y({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],u7);
_.G(u7,"ytd-kids-blocklist-picker-content",function(){if(hAN!==void 0)return hAN;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return hAN=
B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var T5r;var Dv=function(){var B=_.z.apply(this,arguments)||this;B.hasAnyRequestSucceeded=!1;B.hasAnyRequestFailed=!1;B.numPendingRequests=0;return B};
_.w(Dv,_.z);_.a=Dv.prototype;_.a.attached=function(){this.hostElement.setAttribute("dialog","")};
_.a.onDoneButtonTap=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.a.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.a.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.a.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.a.onPopupClosed=function(B){var c,x;if(((c=B.detail)==null?void 0:(x=c.popup)==null?void 0:x.is)==="tp-yt-paper-dialog"){var P;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((P=this.data)==null?0:P.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.rL(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Dv.prototype.onPopupClosed=Dv.prototype.onPopupClosed;Dv.prototype.onYtServiceRequestError=Dv.prototype.onYtServiceRequestError;Dv.prototype.onYtServiceRequestCompleted=Dv.prototype.onYtServiceRequestCompleted;Dv.prototype.onYtServiceRequestSent=Dv.prototype.onYtServiceRequestSent;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Dv.prototype,"data",void 0);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dv.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dv.prototype,"onYtServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dv.prototype,"onYtServiceRequestError",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Dv.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Dv);
_.G(Dv,"ytd-kids-blocklist-picker-renderer",function(){if(T5r!==void 0)return T5r;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return T5r=B},{mode:1});var VS6;var tSz;var rn=function(){return _.z.apply(this,arguments)||this};
_.w(rn,_.z);rn.prototype.setTip=function(B){var c=this;this.data&&(this.tip=ng6(XlF.getInstance(),B,this.data),_.fl(this,function(){_.aJ(c.hostElement,"yt-refit")}))};
rn.prototype.clearTip=function(){this.tip=void 0};
rn.prototype.computeHidden=function(B){return!B};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rn.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.H("design:type",Boolean)],rn.prototype,"hidden",void 0);_.L([_.F(),_.H("design:type",Object)],rn.prototype,"tip",void 0);_.L([_.y({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],rn);
_.G(rn,"ytd-menu-popup-tip-renderer",function(){if(tSz!==void 0)return tSz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);
return tSz=B},{mode:1});var wTz;var R_=function(){var B=_.z.apply(this,arguments)||this;B.useIcons=!1;B.systemIcons=_.T("kevlar_system_icons");B.useListItemStyles=_.T("web_list_item_style_for_menu_items");return B};
_.w(R_,_.z);_.a=R_.prototype;_.a.onFocus=function(){var B;(B=_.Y9(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.a.onTap=function(){var B=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(B&&_.t(B,_.nW))this.componentBehavior.resolveCommand(B),this.updateToggledStateInEntity();else if(B){this.componentBehavior.resolveCommand(B)||_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}});var c;((c=_.t(B,_.KW))==null?void 0:c.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.a.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.a.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.a.updateToggledStateInEntity=function(){var B=this.data.toggleMenuServiceItemEntityKey,c=!this.data.isToggled;B&&this.ytdReduxBehavior.dispatch(_.Uy("toggleMenuServiceItemEntity",B,{key:B,isToggled:c}))};
_.a.computeIcon=function(B,c,x){return(B=B?x:c)&&B.iconType?_.$0(B.iconType):""};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.isIconActive=function(B){return!_.T("toggle_menu_active_icon_killswitch")&&B};
_.AJ.Object.defineProperties(R_.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?0:B.isToggled)?(c=this.data)==null?void 0:c.toggledText:(x=this.data)==null?void 0:x.defaultText}}});
R_.prototype.toggledStateEntityChanged=R_.prototype.toggledStateEntityChanged;R_.prototype.onYtServiceRequestCompleted=R_.prototype.onYtServiceRequestCompleted;R_.prototype.onTap=R_.prototype.onTap;R_.prototype.onFocus=R_.prototype.onFocus;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],R_.prototype,"componentBehavior",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],R_.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R_.prototype,"useIcons",void 0);_.L([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],R_.prototype,"icon",void 0);
_.L([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(B,c){return _.X9(B.entities,"toggleMenuServiceItemEntity",c)}}),
_.H("design:type",Object)],R_.prototype,"toggleMenuServiceItemEntity",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R_.prototype,"systemIcons",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],R_.prototype,"useListItemStyles",void 0);_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R_.prototype,"onFocus",null);
_.L([_.Q("data.isToggled"),_.H("design:type",Object),_.H("design:paramtypes",[])],R_.prototype,"toggleButtonText",null);_.L([_.nF("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R_.prototype,"onTap",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R_.prototype,"onYtServiceRequestCompleted",null);
_.L([_.bF("toggleMenuServiceItemEntity.isToggled","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R_.prototype,"toggledStateEntityChanged",null);_.L([_.y({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],R_);
_.G(R_,"ytd-toggle-menu-service-item-renderer",function(){if(wTz!==void 0)return wTz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return wTz=B},{mode:1});var N5y;var ez=function(){return _.z.apply(this,arguments)||this};
_.w(ez,_.z);ez.prototype.onFocus=function(){var B;(B=_.Y9(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.AJ.Object.defineProperties(ez.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Tz(this.data.iconUrl)}}});
ez.prototype.onFocus=ez.prototype.onFocus;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ez.prototype,"rendererBehavior",void 0);_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],ez.prototype,"ytEndpointBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ez.prototype,"data",void 0);_.L([_.nF("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ez.prototype,"onFocus",null);
_.L([_.Q("data.iconUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],ez.prototype,"imageSource",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],ez);
_.G(ez,"ytd-menu-custom-icon-item-renderer",function(){if(N5y!==void 0)return N5y;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return N5y=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});_.xU(_.W0,"yt-list-item-view-model",{props:{data:_.rk,isMenuItem:_.rk,isCompact:_.rk,onTap:_.cw,trailingAccessory:_.cw,hideSelectionTextChevron:_.rk,disabled:_.rk,inPopup:_.rk,disableHorizontalPadding:_.rk,isOverlay:_.rk,isToggled:_.rk}});var Bc=function(){var B=_.z.apply(this,arguments)||this;B.disableBackdropFilter=_.T("web_disable_backdrop_filter");return B};
_.w(Bc,_.z);_.a=Bc.prototype;
_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.a.computeAriaLabel=function(B){return B};
_.a.onPopupOpened=function(){this.items.selected=0;for(var B=_.p(_.Y9(this.items).children),c=B.next();!c.done;c=B.next())c.value.popupPositionTarget=this.positionTarget;if(B=this.popupTip||void 0)B.setTip(this.source||""),this.source=void 0;this.veData&&(B=_.Wf())&&_.Z1(B,[this.veData])};
_.a.onPopupClosed=function(){var B=this.popupTip||void 0;B&&B.clearTip()};
_.a.onIronActivate=function(B){this.shouldPersist(B)||_.gj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(B=_.Wf())&&_.fW(B,this.veData)};
_.a.shouldPersist=function(B){var c,x;if(((c=B.detail)==null?void 0:c.selected)===void 0||(x=this.data)==null||!x.items)return!1;var P,Y;return!((Y=(P=this.data.items[B.detail.selected])==null?void 0:P.toggleMenuServiceItemRenderer)==null||!Y.persistentOnMenuPopup)};
_.a.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(B){return B.menuNavigationItemRenderer?!!B.menuNavigationItemRenderer.icon:B.menuServiceItemRenderer?!!B.menuServiceItemRenderer.icon:B.menuConditionalServiceItemRenderer?!!B.menuConditionalServiceItemRenderer.icon:B.menuConditionalNavigationItemRenderer?!!B.menuConditionalNavigationItemRenderer.icon:B.toggleMenuServiceItemRenderer?!!B.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Bc.prototype.onPopupClosed=Bc.prototype.onPopupClosed;Bc.prototype.onPopupOpened=Bc.prototype.onPopupOpened;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Bc.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Bc.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Bc.prototype,"veData",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.H("design:type",String)],Bc.prototype,"ariaLabel",void 0);_.L([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Bc.prototype,"useIcons",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Bc.prototype,"disableBackdropFilter",void 0);_.L([_.jr("#items"),_.H("design:type",Object)],Bc.prototype,"items",void 0);_.L([_.jr("ytd-menu-popup-tip-renderer"),_.H("design:type",Object)],Bc.prototype,"popupTip",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bc.prototype,"onPopupOpened",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bc.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Bc);
_.G(Bc,"ytd-menu-popup-renderer",function(){if(VS6!==void 0)return VS6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return VS6=B},{mode:1});var Ifi;var JfB=_.rM(function(B){B=_.uF(B,{icon:void 0});var c=B.data;B=B.icon;var x=function(){return c().iconBadgeText},P={},Y=_.Kw("yt-spec-icon-badge-shape",function(){a:switch(c().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(c().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(P["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=x();
return!!((g==null?0:g.length)&&g.length>2)},P));
return _.U("yt-icon-badge-shape",null,_.U(_.m,{cond:B,then:function(g){return _.U("div",{class:Y},_.U("div",{class:"yt-spec-icon-badge-shape__icon"},_.U(_.Vf,{icon:g})),_.U(_.m,{cond:x,then:function(k){return _.U("div",{class:"yt-spec-icon-badge-shape__badge"},k)}}))}}))},"sg");
JfB.idomCompat=!0;_.xU(JfB,"yt-icon-badge-shape",{props:{data:_.rk,icon:_.rk}});var cc=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};B.unseenCount=0;B.isOverlay=!1;return B};
_.w(cc,_.z);_.a=cc.prototype;_.a.attached=function(){var B=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(c){B.onServiceWorkerMessage(c)})};
_.a.onDataChanged=function(){this.isAttached&&!this.JSC$18326_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18326_lastData=this.data};
_.a.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.a.computeIcon=function(){var B,c;return(B=this.data)==null?void 0:(c=B.icon)==null?void 0:c.iconType};
_.a.onServiceWorkerMessage=function(B){B.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.a.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.t(this.data.updateUnseenCountEndpoint,_.KW)&&_.t(this.data.updateUnseenCountEndpoint,_.KW).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.a.handleUpdateNotificationsUnseenCountAction=function(B){var c=this;B=_.t(B,Kaz);B!=null&&B.unseenCount&&B.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(B.unseenCount),_.EE.addLowPriorityJob(function(){c.data.updateUnseenCountEndpoint&&c.ytComponentBehavior.resolveCommand(c.data.updateUnseenCountEndpoint)},B.timeoutMs))};
_.a.onClick=function(){_.aJ(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var B=_.sp(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),c=this.data.menuRequest;B&&B.length===1&&B[0]?_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):c&&this.ytComponentBehavior.resolveCommand(c)};
_.a.handleTopbarMenuClosedAction=function(B){B==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.a.toggleIconState=function(B){this.iconButton&&(this.iconButton.pressed=B)};
_.a.sendUnseenCountRequest=function(B){var c=this;_.Vp(_.EE,function(){c.ytComponentBehavior.resolveCommand(B)})};
_.a.updateCountUI=function(B){this.set("unseenCount",B<9?B:"9+")};
_.AJ.Object.defineProperties(cc.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
cc.prototype.handleUpdateNotificationsUnseenCountAction=cc.prototype.handleUpdateNotificationsUnseenCountAction;cc.prototype.onDataChanged=cc.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.uD),_.H("design:type",Object)],cc.prototype,"ytdOpenPopupBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],cc.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],cc.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],cc.prototype,"unseenCount",void 0);_.L([_.F(),_.H("design:type",Object)],cc.prototype,"isOverlay",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],cc.prototype,"showTooltips",void 0);_.L([_.jr("yt-icon-button"),_.H("design:type",Object)],cc.prototype,"iconButton",void 0);
_.L([_.Q("unseenCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],cc.prototype,"showNotificationCount",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cc.prototype,"onDataChanged",null);_.L([_.nF("yt-update-notifications-unseen-count-action"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],cc.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.L([_.y({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],cc);
_.G(cc,"ytd-notification-topbar-button-renderer",function(){if(Ifi!==void 0)return Ifi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ifi=B},{mode:_.sL("kevlar_poly_si_batch_j025")?1:2});var W$r;var xZ=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return B};
_.w(xZ,_.z);xZ.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}}}}}};
xZ.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
xZ.prototype.onDarkModeToggled=function(B){this.dark=B};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],xZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],xZ.prototype,"data",void 0);_.L([_.F({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],xZ.prototype,"dark",void 0);
_.L([_.y({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],xZ);
_.G(xZ,"yt-pdg-buy-flow-header-renderer",function(){if(W$r!==void 0)return W$r;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return W$r=B},{mode:1});var lfz;var ERo;var Pc=function(){var B=_.z.apply(this,arguments)||this;B.immediateValue=0;B.isDarkTheme=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(Pc,_.z);_.a=Pc.prototype;_.a.created=function(){_.Mk.requestAvailability()};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.dataChanged=function(){var B=_.Y9(this.hostElement).querySelector("#color-slider");B.immediateValue&&this.updateSliderKnobAndGradientStyles(B.immediateValue);this.data.notches[0].knobColorArgb&&_.k9(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.SF(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.v5("HTML_DIR")==="rtl"&&_.Y9(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.a.onSliderImmediateChange=function(){var B=_.Y9(this.hostElement).querySelector("#color-slider");B.dragging&&(B.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(B.immediateValue),this.updateSliderKnobAndGradientStyles(B.immediateValue)),this.updateSliderAria())};
_.a.onSliderChange=function(){var B=_.Y9(this.hostElement).querySelector("#color-slider");B.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(B.immediateValue),this.updateSliderKnobAndGradientStyles(B.immediateValue));this.updateSliderAria()};
_.a.updateSliderAria=function(){var B=_.Y9(this.hostElement).querySelector("#color-slider"),c=_.Y9(this.hostElement).querySelector("#color-slider");c=_.iG(this.data.notches[c.immediateValue].tierValue);_.Ol()&&_.aJ(this.hostElement,"iron-announce",{text:c});B.setAttribute("aria-valuetext",c)};
_.a.updateSuperThanksSelectedTierEntity=function(B){if(B!==this.immediateValue){var c,x,P=this==null?void 0:(c=this.data)==null?void 0:(x=c.superThanksSelectedTierEntity)==null?void 0:x.key;P&&P.length>0&&this.ytdReduxBehavior.dispatch(_.Uy("superThanksSelectedTierEntity",P,{key:P,index:B}))}};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.updateSliderKnobAndGradientStyles=function(B){this.immediateValue=B;B=this.data.notches[B];if(B==null?0:B.knobColorArgb)var c={"--ytd-pdg-color-slider-knob-color":_.SF(B.knobColorArgb)};(B==null?0:B.linearGradientCssStyle)&&c!==null&&(c=Object.assign({},c,{"--ytd-pdg-color-slider-active-color":B==null?void 0:B.linearGradientCssStyle}));c!==null&&_.k9(this.hostElement,c)};
Pc.prototype.onSliderChange=Pc.prototype.onSliderChange;Pc.prototype.onSliderImmediateChange=Pc.prototype.onSliderImmediateChange;Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],Pc.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Pc.prototype,"immediateValue",void 0);_.L([_.F(),_.H("design:type",Number)],Pc.prototype,"maxMarkers",void 0);
_.L([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n4A}),_.H("design:type",Object)],Pc.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Pc.prototype,"isDarkTheme",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Pc.prototype,"ytdReduxBehavior",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pc.prototype,"dataChanged",null);
_.L([_.nF("immediate-value-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pc.prototype,"onSliderImmediateChange",null);_.L([_.nF("change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pc.prototype,"onSliderChange",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Pc);
_.G(Pc,"ytd-pdg-color-slider-renderer",function(){if(ERo!==void 0)return ERo;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ERo=B},{mode:1});var O8S;var oRA;var dg=null;
_.Ni({is:"ytd-comment-input",_template:function(){if(oRA!==void 0)return oRA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return oRA=B},
behaviors:[_.A7X.YtHostElementBehavior,_.VT,_.Z5.YtComponentBehavior,_.gG.YtRendererstamperBehavior,_.qaZ.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 _.Sp}},
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",_.$9(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;_.b9();this.focus()},
detached:function(){document.removeEventListener("tap",_.$9(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(B){B=B.detail;B=B.isCustomEmoji?B.shortcuts[0]:B.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,B);this.maybeUpdateTextDirection_();_.aJ(this.hostElement,"input")},
getInputRange_:function(){var B=_.V0();if(B){B=B.getBrowserRangeObject();for(var c=B.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return B;c=c.parentNode}}B=this.getEditableTextArea_();B=_.zg(B,B.childNodes.length);B.select();return B.getBrowserRangeObject()},
insertTextWithEmojis_:function(B,c,x){(c=this.emojiManager.createDocumentFragment(c,!0,!1,x===void 0?!0:x))&&c.childNodes.length!==0&&(B.collapsed||B.deleteContents(),x=c.lastChild,B.insertNode(c),_.vCm(x).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var B=_.V0();if(B){var c=B.JSC$9307_getStartNode(),x=B.JSC$9307_getEndNode();if(xZr(c)&&xZr(x)){var P=B.JSC$9307_getStartOffset(),Y;if(_.j2&&c.nodeType===Node.ELEMENT_NODE&&(Y=_.SlI(c)))_.zg(Y,0).select();else{Y=Rl(c)?c:_.QE(c,Rl);var g=Rl(x)?x:_.QE(x,Rl);if(Y||g)if(B.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){B=!0;P===c.length&&(B=!1);if(dg==="end"||dg==="right")B=!1;c=c.parentNode;B=[].concat(_.wq(c.parentNode.childNodes)).indexOf(c)+(B?0:1);_.zg(c.parentNode,B).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.SE(x,B.JSC$9307_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),Y.parentNode.insertBefore(c,Y),_.SE(x,B.JSC$9307_getEndOffset(),c,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.SE(c,B.JSC$9307_getStartOffset(),g.nextSibling,1).select():(x=document.createTextNode("\u200b"),g.parentNode.insertBefore(x,g.nextSibling),_.SE(c,B.JSC$9307_getStartOffset(),x,x.length).select()));dg=null}}else dg=
null}else dg=null},
leftKeyPressed_:function(){dg="left"},
rightKeyPressed_:function(){dg="right"},
endKeyPressed_:function(){dg="end"},
maybeDeleteChip_:function(){var B=p3S(!0);if(B){var c=_.V0(),x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();_.E5(x,c,B,B.childNodes.length).select()}},
maybeBackspaceChip_:function(){var B=p3S(!1);if(B){var c=_.V0(),x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();_.E5(x,c,B,0).select()}},
maybeBackspaceChipWordMode_:function(B){var c=_.V0();if(c.isCollapsed()){var x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();var P=k$B(x,c,!0);P&&(_.E5(x,c,P,0).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(B){var c=_.V0();if(c.isCollapsed()){var x=c.JSC$9307_getStartNode();c=c.JSC$9307_getStartOffset();var P=k$B(x,c,!1);P&&(_.E5(x,c,P,P.childNodes.length).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
onContentClick:function(B){B.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(B){B.defaultPrevented||B.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Rl(B.target)&&B.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Y9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Y9(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(B,c){B=YvA(B,this.emojiManager,c).cloneNode(!0);for(c=B.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var x=_.If();_.ix9(x,c);c=x.nextSibling;break;case "DIV":(x=c.lastChild)&&c.nextSibling&&_.EY(_.If(),x);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.lL(_.If(),c);x&&x.nodeName==="BR"&&_.qH(x);x=c;c.hasChildNodes()?(c=c.firstChild,
_.Ao4(x)):(c=c.nextSibling,_.qH(x));break;default:c=c.nextSibling}return X3o(B)},
setTextAreaValue:function(B){B||(B="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof B==="string"&&(B={runs:[{text:B}]});c.text=B},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();dg=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var B=this.getEditableTextArea_();B&&(_.zg(B,B.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.v5("HTML_DIR")==="rtl"){var B=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";B.setAttribute("dir",c)}},
handleInputEvent_:function(){var B=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(B=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(B,!0);this.updateCharCount_();B=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=B.scrollHeight>B.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var B=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:B})},
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(B){this.isEmojiButtonDisplayed&&(B.preventDefault(),B.stopImmediatePropagation(),B=B.clipboardData.getData("text/plain"),this.insertText_(B,!1,!1),_.aJ(this.hostElement,"input"))},
insertText_:function(B,c,x){c=c===void 0?!1:c;x=x===void 0?!0:x;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&B){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(c&&this.emojiInput.offsetStartOfRangeBy(P,B.length),this.insertTextWithEmojis_(P,B,x),PGz(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,B),this.updateSuggestionOffset_(P)))}},
getSimpleString:_.iG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(B){return B?"focused":"not-focused"},
computePlaceholderText_:function(B){return this.getSimpleString(B)},
computeEditableText_:function(B){return this.getSimpleString(B)},
onPrefilledContentDismissed_:function(B){B.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(B,c){B?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(B){var c=this.getEditableTextArea_();[].concat(_.wq(B.dataTransfer.items)).forEach(function(x){x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(P){c.appendChild(document.createTextNode(P))})});
B.preventDefault()},
preventDefault_:function(B){B.preventDefault()},
onSuggestionInsert_:function(B){this.insertTextWithEmojis_(B.detail.range,B.detail.text)},
onEmojiSuggestionClick_:function(B){this.emojiInput.insertSuggestion(B.detail)},
updateSuggestionOffset_:function(B){if(this.emojiInput&&_.Y9(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,x=B.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-x)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;B=B.getBoundingClientRect().left-c;_.Y9(this.emojiInput).querySelector("#dropdown").style.marginLeft=B+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.vA("yt-post"));return this.localStorage}});var qr=function(){var B=_.z.apply(this,arguments)||this;B.currentCommentOptionIndex=0;B.isEmojiPickerDisplayed=!1;B.emojiManager=_.Sp;B.isUgcEmpty=!1;B.userGeneratedCommentChangedHandler=function(){_.aJ(B.hostElement,"ytd-pdg-user-generated-comment-changed");B.isEmojiYtdCommentInputEnabled&&(B.isUgcEmpty=!B.ytdCommentInputEl.getTextAreaValue())};
B.pasteHandler=function(c){c.preventDefault();c.stopImmediatePropagation();var x;if(c=(x=c.clipboardData)==null?void 0:x.getData("text/plain"))x=document.getSelection().getRangeAt(0),x.collapsed||x.deleteContents(),c=document.createTextNode(c),x.insertNode(c),x.selectNodeContents(c),x.collapse(!1),c=window.getSelection(),c.removeAllRanges(),c.addRange(x)};
B.onDocumentClick=function(c){if(B.isEmojiPickerDisplayed){var x,P,Y;!(c.target instanceof Node)||(x=c.composedPath())!=null&&x.includes(B.editableTextEl)||(P=c.composedPath())!=null&&P.includes(B.emojiButtonEl)||(Y=c.composedPath())!=null&&Y.includes(B.emojiPickerEl)||(B.isEmojiPickerDisplayed=!1)}};
return B};
_.w(qr,_.z);_.a=qr.prototype;_.a.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.a.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.a.detached=function(){var B;(B=this.contentEl)==null||B.removeEventListener("input",this.userGeneratedCommentChangedHandler);var c;(c=this.contentEl)==null||c.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.a.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.a.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var B;this.contentEl.textContent=this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.a.reloadEmojis=function(){this.emojiPickerEl&&_.t(this.emojiPicker,_.tQn)&&this.emojiPickerEl.updateEmojiCategories()};
_.a.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.k9(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.a.handleBackgroundColorStyling=function(){var B;if((B=this.currentCommentOption)==null?0:B.commentBackgroundColorArgb){var c;_.k9(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.SF((c=this.currentCommentOption)==null?void 0:c.commentBackgroundColorArgb)})}else _.k9(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.a.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var B;(B=this.contentEl)==null||B.focus()}};
_.a.onEditButtonClick=function(B){var c=document.getSelection();c&&this.contentEl&&(B.stopPropagation(),B.preventDefault(),c.selectAllChildren(this.contentEl),c.collapseToEnd())};
_.a.onContentDrop=function(B){var c=this;if(B.dataTransfer){B=_.p(B.dataTransfer.items);for(var x=B.next();!x.done;x=B.next())x=x.value,x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(P){var Y;(Y=c.contentEl)==null||Y.appendChild(document.createTextNode(P))})}};
_.a.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.a.getUserGeneratedCommentText=function(){var B,c=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(B=this.contentEl)==null?void 0:B.textContent;return c?c.trim():""};
_.a.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.a.onEmojiSelect=function(B){this.ytdCommentInputEl.onEmojiSelect(B)};
_.AJ.Object.defineProperties(qr.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.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 B;return!((B=this.currentCommentOption)==null||!B.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if(_.t((B=this.currentCommentOption)==null?void 0:B.chipRenderer,_.z5F)){var c;return _.t((c=this.currentCommentOption)==null?void 0:c.chipRenderer,_.z5F)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var B,c;return((B=this.data)==null?0:B.commentOptionRenderers)?_.t((c=this.data)==null?void 0:c.commentOptionRenderers[this.superThanksSelectedTierEntity.index],GVN):void 0}var x,P;return((x=this.data)==null?0:x.commentOptionRenderers)?_.t((P=this.data)==null?void 0:P.commentOptionRenderers[this.currentCommentOptionIndex],GVN):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var B;return this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var B;return this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.commentDialog,_.Uy5))==null?void 0:c.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.commentDialog,_.Uy5))==null?void 0:c.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=_.t((B=this.data)==null?void 0:B.commentDialog,_.Uy5))==null?void 0:c.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(c=_.t((B=this.data)==null?void 0:B.commentDialog,_.Uy5))==null?void 0:c.emojiPicker;if(!_.t(x,_.tQn)||!_.t(x,_.tQn).categories)return!1;B=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var P,Y;return((P=_.t(x,_.tQn))==null?0:(Y=P.categories)==null?0:Y.find(B))?!0:!1}}});
qr.prototype.onEmojiSelect=qr.prototype.onEmojiSelect;qr.prototype.dataChanged=qr.prototype.dataChanged;qr.prototype.currentCommentOptionChanged=qr.prototype.currentCommentOptionChanged;_.L([_.J(_.OU),_.H("design:type",Object)],qr.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qr.prototype,"rendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.jr("#content-dom-if"),_.H("design:type",_.J9)],qr.prototype,"contentDomIfEl",void 0);_.L([_.jr("#content-no-emojis"),_.H("design:type",HTMLElement)],qr.prototype,"contentEl",void 0);_.L([_.jr("#container"),_.H("design:type",HTMLElement)],qr.prototype,"containerEl",void 0);_.L([_.jr("#comment-chip-container"),_.H("design:type",HTMLElement)],qr.prototype,"paidCommentChipContainerEl",void 0);_.L([_.jr("#text-input"),_.H("design:type",HTMLElement)],qr.prototype,"editableTextEl",void 0);
_.L([_.jr("#emoji-button"),_.H("design:type",HTMLElement)],qr.prototype,"emojiButtonEl",void 0);_.L([_.jr("#emoji-picker > yt-emoji-picker-renderer"),_.H("design:type",Object)],qr.prototype,"emojiPickerEl",void 0);_.L([_.jr("#text-input > ytd-comment-input"),_.H("design:type",Object)],qr.prototype,"ytdCommentInputEl",void 0);_.L([_.F(),_.H("design:type",Object)],qr.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],qr.prototype,"currentCommentOptionIndex",void 0);
_.L([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n4A}),_.H("design:type",Object)],qr.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.F(),_.H("design:type",Object)],qr.prototype,"isEmojiPickerDisplayed",void 0);_.L([_.F(),_.H("design:type",Object)],qr.prototype,"emojiManager",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],qr.prototype,"isUgcEmpty",void 0);
_.L([_.bF("currentCommentOption"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qr.prototype,"currentCommentOptionChanged",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qr.prototype,"dataChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qr.prototype,"isEmojiYtdCommentInputEnabled",null);
_.L([_.Q("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"title",null);_.L([_.Q("data.authorText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"channelName",null);_.L([_.Q("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qr.prototype,"shouldShowPaidCommentChipRenderer",null);
_.L([_.Q("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"paidCommentChipRenderer",null);_.L([_.Q("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"currentCommentOption",null);
_.L([_.Q("data.defaultCommentText","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"commentText",null);_.L([_.Q("data.placeholderText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"placeholderText",null);_.L([_.Q("data.commentDialog.commentDialogRenderer.editableText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"editableText",null);
_.L([_.Q("data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"emojiButton",null);_.L([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker"),_.H("design:type",Object),_.H("design:paramtypes",[])],qr.prototype,"emojiPicker",null);
_.L([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qr.prototype,"isEmojiButtonDisplayed",null);_.L([_.nF("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],qr.prototype,"onEmojiSelect",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],qr);
_.G(qr,"ytd-pdg-comment-preview-renderer",function(){if(O8S!==void 0)return O8S;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return O8S=B},{mode:2});var QSz;var CD=function(){var B=_.z.apply(this,arguments)||this;B.selected=!1;return B};
_.w(CD,_.z);_.a=CD.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.a.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.a.dataChanged=function(){this.data&&(_.aB(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.k9(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.SF(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.SF(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.a.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.a.onClick=function(){this.logClick()};
_.a.onKeyboardSelect=function(){_.aJ(this.hostElement,"tap");this.onClick()};
_.a.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
CD.prototype.onClick=CD.prototype.onClick;CD.prototype.selectedChanged=CD.prototype.selectedChanged;CD.prototype.dataChanged=CD.prototype.dataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],CD.prototype,"componentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.VT),_.H("design:type",Object)],CD.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.J(_.Mi),_.H("design:type",Object)],CD.prototype,"ironSelectableBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],CD.prototype,"shownThumbnail",void 0);_.L([_.F(),_.H("design:type",Object)],CD.prototype,"basePriceText",void 0);_.L([_.F(),_.H("design:type",Object)],CD.prototype,"purchaseCommand",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"selected",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"dataChanged",null);_.L([_.bF("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"selectedChanged",null);_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"onClick",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],CD);
_.G(CD,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(QSz!==void 0)return QSz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return QSz=B},{mode:1});var hD=function(){var B=_.z.apply(this,arguments)||this;B.selectedItemIndex=0;B.buyButtonDisabled=!1;return B};
_.w(hD,_.z);_.a=hD.prototype;
_.a.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]]"}}}}}};
_.a.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var B;var c=(B=_.t(this.data.colorSlider,y4z))==null?void 0:B.notches[this.selectedItemIndex].purchaseCommand}else{var x;c=(x=_.t(this.data.selectableItemButtons[this.selectedItemIndex],Laz))==null?void 0:x.purchaseCommand}if(c){B=_.t(c,_.Umt);B.productData||(B.productData={});var P;B.productData={pdgData:{commentMessageText:(P=this.commentPreviewRenderer)==null?void 0:P.getUserGeneratedCommentText()}};
_.aJ(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(c)}}};
_.a.dataChanged=function(){if(this.data){_.Sp.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.AN0(_.Sp,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Sp.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var B;this.buyButtonDisabled=!((B=_.t(this.data.commentPreview,MgS))==null||!B.placeholderText);this.updatePriceSelectorStatus();var c;if((c=this.data)==null?0:c.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;B=[];this.data.preloadImages&&(B=this.data.preloadImages);
B=B.map(function(x){return _.Pw(x.thumbnails,1920)});
B=_.p(B);for(c=B.next();!c.done;c=B.next())(c=c.value)&&_.hNx(c).thenCatch(function(){_.Ob(Error("ml"))})}};
_.a.superThanksSelectedTierEntityChanged=function(){var B;(this==null?void 0:(B=this.superThanksSelectedTierEntity)==null?void 0:B.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.a.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.a.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Y9(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Y9(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Y9(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Y9(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.a.closeBuyFlow=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.a.onUserGeneratedContentChanged=function(){var B;this.buyButtonDisabled=!((B=this.commentPreviewRenderer)==null?0:B.getUserGeneratedCommentText())};
_.a.updateSelectedItemIndexFromBinding=function(B){this.selectedItemIndex=B.detail.value};
_.AJ.Object.defineProperties(hD.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.disclaimerText)}}});
hD.prototype.onUserGeneratedContentChanged=hD.prototype.onUserGeneratedContentChanged;hD.prototype.closeBuyFlow=hD.prototype.closeBuyFlow;hD.prototype.selectedItemIndexChanged=hD.prototype.selectedItemIndexChanged;hD.prototype.superThanksSelectedTierEntityChanged=hD.prototype.superThanksSelectedTierEntityChanged;hD.prototype.dataChanged=hD.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],hD.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],hD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],hD.prototype,"selectedItemIndex",void 0);_.L([_.F(),_.H("design:type",Boolean)],hD.prototype,"isColorSlider",void 0);
_.L([_.F(),_.H("design:type",Object)],hD.prototype,"buyButtonDisabled",void 0);_.L([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n4A}),_.H("design:type",Object)],hD.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.jr("ytd-pdg-comment-preview-renderer"),_.H("design:type",Object)],hD.prototype,"commentPreviewRenderer",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],hD.prototype,"ytdReduxBehavior",void 0);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hD.prototype,"dataChanged",null);_.L([_.bF("superThanksSelectedTierEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hD.prototype,"superThanksSelectedTierEntityChanged",null);_.L([_.bF("selectedItemIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hD.prototype,"selectedItemIndexChanged",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hD.prototype,"closeBuyFlow",null);_.L([_.nF("ytd-pdg-user-generated-comment-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hD.prototype,"onUserGeneratedContentChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],hD.prototype,"isDisclaimerTextShown",null);
_.L([_.y({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],hD);
_.G(hD,"yt-super-vod-buy-flow-content-renderer",function(){if(lfz!==void 0)return lfz;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return lfz=B},{mode:1});var F$z;var mC=function(){var B=_.z.apply(this,arguments)||this;B.lottieAnimationRef={};return B};
_.w(mC,_.z);_.a=mC.prototype;_.a.created=function(){_.Mk.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.$9(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.a.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.aJ(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.a.detached=function(){this.autoCloseJobId&&_.EE.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.$9(this,this.onPopupIronOverlayOpened))};
_.a.dataChanged=function(){var B=this;this.data&&this.data.autoCloseDelay&&(_.gj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.s9(_.EE,function(){B.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.k9(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.a.onDOMLoadedLottie=function(){var B=this,c,x,P=Number((c=this.data)==null?void 0:(x=c.autoCloseDelay)==null?void 0:x.seconds)||0;this.fadeOutJobId=_.s9(_.EE,function(){B.lottiePlayerEl.classList.add("fadeout")},(P-.25)*1E3);
this.autoCloseJobId=_.s9(_.EE,function(){B.closePopup()},P*1E3)};
_.a.openPopup=function(){this.ironOverlayBehavior.open()};
_.a.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.gj(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.XX(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.cp().resolve(_.xu).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.EE.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.EE.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.a.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var B,c;(B=this.lottieAnimationRef)==null||(c=B.lottieEl)==null||c.destroy();B=this.data.lottie;var x,P;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:B.url+"_"+Math.random(),path:B.url,autoplay:!0,loop:(P=(x=B.settings)==null?void 0:x.loop)!=null?P:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.AJ.Object.defineProperties(mC.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var B,c;return!!((B=this.data)==null?0:(c=B.lottie)==null?0:c.url)}}});
mC.prototype.maybeInitializeLottie=mC.prototype.maybeInitializeLottie;mC.prototype.dataChanged=mC.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mC.prototype,"rendererBehavior",void 0);_.L([_.J(_.ii),_.H("design:type",Object)],mC.prototype,"ironOverlayBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],mC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],mC.prototype,"lottiePlayerProps",void 0);
_.L([_.F(),_.H("design:type",Object)],mC.prototype,"lottieAnimationRef",void 0);_.L([_.jr("ytd-lottie-player"),_.H("design:type",HTMLElement)],mC.prototype,"lottiePlayerEl",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mC.prototype,"dataChanged",null);_.L([_.Q("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mC.prototype,"hasLottieAnimation",null);
_.L([_.bF("data.lottie.url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mC.prototype,"maybeInitializeLottie",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],mC);
_.G(mC,"ytd-desktop-image-overlay-renderer",function(){if(F$z!==void 0)return F$z;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return F$z=B},{mode:1});var vRF;var TX=function(){return _.z.apply(this,arguments)||this};
_.w(TX,_.z);_.a=TX.prototype;_.a.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"}}}}};
_.a.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",_.$9(this,this.closePopup))};
_.a.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.$9(this,this.closePopup))};
_.a.dataChanged=function(){_.sp(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.t(this.data.header,ScA)&&(this.hasBackgroundBanner=!!_.t(this.data.header,ScA).backgroundBanner)};
_.a.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.$9(this,this.closePopup))};
_.a.closePopup=function(){this.data&&this.data.onCloseCommand&&_.kC(this.hostElement,[this.data.onCloseCommand])};
TX.prototype.handleBuyflowSelectionSubmitted=TX.prototype.handleBuyflowSelectionSubmitted;TX.prototype.dataChanged=TX.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],TX.prototype,"data",void 0);
_.L([_.F({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],TX.prototype,"hasBackgroundBanner",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TX.prototype,"dataChanged",null);_.L([_.nF("yt-pdg-buy-flow-selection-submitted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TX.prototype,"handleBuyflowSelectionSubmitted",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],TX);
_.G(TX,"ytd-pdg-buy-flow-renderer",function(){if(vRF!==void 0)return vRF;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vRF=B},{mode:1});var zAz;var VZ=function(){var B=_.z.apply(this,arguments)||this;B.isOpen=!1;B.isPlaylistCreated=!1;return B};
_.w(VZ,_.z);_.a=VZ.prototype;_.a.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.a.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.aJ(this.hostElement,"yt-refit")};
_.a.onCreateTap=function(){var B=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.kC(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(c,x){if(!_.T("killswitch_ep_in_create_playlist_response")&&(x==null?0:x.actions))for(c=_.p(x.actions),x=c.next();!x.done;x=c.next())x=x.value,_.t(x,_.QA)&&B.ytComponentBehavior.resolveCommand(x)}}]),this.isPlaylistCreated=!0)};
_.a.onKeydown=function(B){if(B.keyCode===13)this.onCreateTap()};
_.a.onServiceRequestCompleted=function(B){B.stopPropagation();_.gj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.a.computePrivacyBadge=function(B){return B?[{metadataBadgeRenderer:B}]:[]};
VZ.prototype.onServiceRequestCompleted=VZ.prototype.onServiceRequestCompleted;VZ.prototype.onKeydown=VZ.prototype.onKeydown;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],VZ.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],VZ.prototype,"isOpen",void 0);
_.L([_.F(),_.H("design:type",Object)],VZ.prototype,"isPlaylistCreated",void 0);_.L([_.F({value:{REQUIRED_LABEL:_.Up("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Up("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],VZ.prototype,"addToStrings",void 0);_.L([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.H("design:type",Array)],VZ.prototype,"privacyBadge",void 0);
_.L([_.jr("#privacy-input"),_.H("design:type",Object)],VZ.prototype,"privacyInput",void 0);_.L([_.jr("#name-input"),_.H("design:type",Object)],VZ.prototype,"nameInput",void 0);_.L([_.nF("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],VZ.prototype,"onKeydown",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],VZ.prototype,"onServiceRequestCompleted",null);
_.L([_.y({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],VZ);
_.G(VZ,"ytd-add-to-playlist-create-renderer",function(){if(zAz!==void 0)return zAz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return zAz=B},{mode:1});var SA8;var yfA;var tD=function(){var B=_.z.apply(this,arguments)||this;B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.w(tD,_.z);tD.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
tD.prototype.onCheckboxChange=function(B){var c=this;this.data&&_.yo(this,"yt-playlist-checkbox-changed",function(){var x=_.uI(B).checked?c.data.addToPlaylistServiceEndpoint:c.data.removeFromPlaylistServiceEndpoint;x&&_.cp().resolve(_.xu).resolveCommand(x,{form:{element:c.hostElement}});_.T("dl_playlist_killswitch")||c.transferState!=="TRANSFER_STATE_UNKNOWN"&&c.transferState!=="TRANSFER_STATE_FAILED"&&c.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:c.data.playlistId,action:"ACTION_SYNC"}})},
100)};
tD.prototype.computeIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
tD.prototype.dataChanged=tD.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tD.prototype,"data",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],tD.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],tD.prototype,"ytComponentBehavior",void 0);_.L([_.jr("#checkbox"),_.H("design:type",HTMLInputElement)],tD.prototype,"checkbox",void 0);
_.L([_.F({selector:_.F9,selectorArgs:["data.playlistId"]}),_.H("design:type",String)],tD.prototype,"transferState",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tD.prototype,"dataChanged",null);_.L([_.y({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],tD);
_.G(tD,"ytd-playlist-add-to-option-renderer",function(){if(yfA!==void 0)return yfA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yfA=B},{mode:1});_.BX($ZS);_.XB($ZS,"ytd-menu-title-renderer",{propNames:["data"]});var wg=function(){var B=_.z.apply(this,arguments)||this;B.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Up("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};B.closeButtonAriaLabel=_.Up("SBOX_INAPPROPRIATE_CANCEL");B.dialog=_.T("desktop_add_to_playlist_renderer_dialog_popup");return B};
_.w(wg,_.z);_.a=wg.prototype;_.a.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"}}}};
_.a.onPopupOpened=function(){_.gM(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.a.onPopupClosed=function(){_.gM(this.playlists,"scrollable",!1)};
_.a.computeAriaLabel=function(){var B;if(this==null?0:(B=this.data)==null?0:B.actions){B=_.p(this.data.actions);for(var c=B.next();!c.done;c=B.next())if(c=c.value,c.menuTitleRenderer)return _.iG(c.menuTitleRenderer.title)}};
_.a.onTapClose=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.AJ.Object.defineProperties(wg.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if(this==null?0:(B=this.data)==null?0:B.actions){B=_.p(this.data.actions);for(var c=B.next();!c.done;c=B.next())if(c=c.value,c.menuTitleRenderer)return c.menuTitleRenderer}return!1}}});
wg.prototype.onPopupClosed=wg.prototype.onPopupClosed;wg.prototype.onPopupOpened=wg.prototype.onPopupOpened;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],wg.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wg.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],wg.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],wg.prototype,"addToStrings",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.H("design:type",String)],wg.prototype,"ariaLabel",void 0);_.L([_.F(),_.H("design:type",String)],wg.prototype,"closeButtonAriaLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],wg.prototype,"dialog",void 0);
_.L([_.jr("#playlists"),_.H("design:type",HTMLElement)],wg.prototype,"playlists",void 0);_.L([_.jr("ytd-add-to-playlist-create-renderer"),_.H("design:type",Object)],wg.prototype,"createRenderer",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],wg.prototype,"menuTitleRenderer",null);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wg.prototype,"onPopupOpened",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wg.prototype,"onPopupClosed",null);_.L([_.y({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],wg);
_.G(wg,"ytd-add-to-playlist-renderer",function(){if(SA8!==void 0)return SA8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return SA8=B},{mode:1});var G86;var Nr=function(){var B=_.z.apply(this,arguments)||this;B.isPlaylistEditComplete=!1;B.isCollabEngagementDisabled=!1;B.closeButtonAriaLabel=_.Up("SBOX_INAPPROPRIATE_CANCEL");B.saveButton={title:_.Up("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"};B.onValueChanged=function(){B.updateSaveButtonState();B.computeCollabEngagementDisabled()};
return B};
_.w(Nr,_.z);_.a=Nr.prototype;_.a.attached=function(){this.JSC$18382_scroller&&(this.JSC$18382_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18382_scroller.attached&&typeof this.JSC$18382_scroller.attached==="function"&&this.JSC$18382_scroller.attached())};
_.a.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.a.onPopupClosed=function(){this.reset()};
_.a.close=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.a.onClickSave=function(){var B=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var c=[];this.nameInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var x=Number(this.privacyInput.value);isNaN(x)||c.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:x})}this.votingInput.value!==null&&(x=this.votingInput.value)&&c.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:x});if(c.length>0){var P;_.t((P=this.data)==null?void 0:P.updateSettingsEndpoint,_.QR).actions=c;var Y;if((Y=this.data)==null?0:Y.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){B.close()}}}),this.isPlaylistEditComplete=!0}}};
_.a.computePrivacyBadge=function(B){return B?[{metadataBadgeRenderer:B}]:[]};
_.a.computeEditorData=function(B){var c,x;return B==null?void 0:(c=B.sections)==null?void 0:(x=c[0])==null?void 0:x.playlistSettingsEditorCasualSectionRenderer};
_.a.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.a.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}}}}}};
_.a.computeAriaLabel=function(){var B,c,x,P=(B=this.data)==null?void 0:(c=B.sections)==null?void 0:(x=c[0])==null?void 0:x.playlistSettingsEditorCasualSectionRenderer;return _.iG(P==null?void 0:P.title)};
_.a.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"}))};
_.a.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.a.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.a.isNameChanged=function(){var B,c,x;return(((B=this.editorData)==null?void 0:(c=B.name)==null?void 0:(x=c.textInputFormFieldRenderer)==null?void 0:x.value)||"")!==(this.nameInput.value||"")};
_.a.isDescriptionChanged=function(){var B,c,x;return(((B=this.editorData)==null?void 0:(c=B.description)==null?void 0:(x=c.textInputFormFieldRenderer)==null?void 0:x.value)||"")!==(this.descriptionInput.value||"")};
_.a.isPrivacyChanged=function(){var B,c,x,P,Y,g,k,n;return((k=(B=this.editorData)==null?void 0:(c=B.privacy)==null?void 0:(x=c.dropdownFormFieldRenderer)==null?void 0:(P=x.dropdown)==null?void 0:(Y=P.dropdownRenderer)==null?void 0:(g=Y.entries)==null?void 0:g.find(function(b){var d;return b==null?void 0:(d=b.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(n=k.privacyDropdownItemRenderer)==null?void 0:n.int32Value)!==this.privacyInput.value};
_.a.isVotingChanged=function(){var B,c,x,P,Y,g,k,n;return((k=(B=this.editorData)==null?void 0:(c=B.voting)==null?void 0:(x=c.dropdownFormFieldRenderer)==null?void 0:(P=x.dropdown)==null?void 0:(Y=P.dropdownRenderer)==null?void 0:(g=Y.entries)==null?void 0:g.find(function(b){var d;return b==null?void 0:(d=b.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(n=k.privacyDropdownItemRenderer)==null?void 0:n.int32Value)!==this.votingInput.value};
Nr.prototype.onPopupClosed=Nr.prototype.onPopupClosed;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Nr.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Nr.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Nr.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],Nr.prototype,"data",void 0);_.L([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.H("design:type",Array)],Nr.prototype,"privacyBadge",void 0);_.L([_.F({computed:"computeEditorData(data)"}),_.H("design:type",Object)],Nr.prototype,"editorData",void 0);_.L([_.F(),_.H("design:type",Object)],Nr.prototype,"isPlaylistEditComplete",void 0);_.L([_.F(),_.H("design:type",Object)],Nr.prototype,"isCollabEngagementDisabled",void 0);
_.L([_.F({value:{REQUIRED_LABEL:_.Up("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Up("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],Nr.prototype,"addToStrings",void 0);_.L([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.H("design:type",String)],Nr.prototype,"ariaLabel",void 0);_.L([_.F(),_.H("design:type",String)],Nr.prototype,"closeButtonAriaLabel",void 0);
_.L([_.F(),_.H("design:type",Object)],Nr.prototype,"saveButton",void 0);_.L([_.jr("#name-input"),_.H("design:type",Object)],Nr.prototype,"nameInput",void 0);_.L([_.jr("#description-input"),_.H("design:type",Object)],Nr.prototype,"descriptionInput",void 0);_.L([_.jr("#privacy-input"),_.H("design:type",Object)],Nr.prototype,"privacyInput",void 0);_.L([_.jr("#voting-input"),_.H("design:type",Object)],Nr.prototype,"votingInput",void 0);
_.L([_.jr("#scroller"),_.H("design:type",Object)],Nr.prototype,"JSC$18382_scroller",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nr.prototype,"onPopupClosed",null);_.L([_.F(),_.H("design:type",Object)],Nr.prototype,"onValueChanged",void 0);_.L([_.y({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Nr);
_.G(Nr,"ytd-playlist-settings-editor-renderer",function(){if(G86===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);G86=B}B=G86;return B},{mode:1});var MSS;_.o2("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var IM=function(){return _.z.apply(this,arguments)||this};
_.w(IM,_.z);_.a=IM.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.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 B=this.get("data.nextButton.buttonRenderer.navigationEndpoint");B&&(this.nextNavigationEndpoint=B,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.a.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 B={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",B)}}};
_.a.onPopupOpened=function(B){B.detail!==this&&B.detail!==this.hostElement||!_.T("enable_premium_voluntary_pause")||_.gj(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.a.onNextButtonTap=function(){var B=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);B&&this.ytdOpenPopupBehavior.openPopup(B)};
_.a.updateSelectedResponseIndexFromBinding=function(B){this.selectedResponseIndex=B.detail.value};
IM.prototype.onPopupOpened=IM.prototype.onPopupOpened;IM.prototype.onSelectedResponseIndexChange=IM.prototype.onSelectedResponseIndexChange;IM.prototype.dataChanged=IM.prototype.dataChanged;_.L([_.J(_.uD),_.H("design:type",Object)],IM.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],IM.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],IM.prototype,"selectedResponseIndex",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IM.prototype,"dataChanged",null);_.L([_.bF("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IM.prototype,"onSelectedResponseIndexChange",null);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],IM.prototype,"onPopupOpened",null);_.L([_.y({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],IM);
_.G(IM,"ytd-red-cancel-survey-renderer",function(){if(MSS!==void 0)return MSS;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return MSS=B},{mode:1});var L$z;var JD=function(){var B=_.z.apply(this,arguments)||this;B.closeButtonAriaLabel=_.Up("SBOX_INAPPROPRIATE_CANCEL");return B};
_.w(JD,_.z);JD.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
JD.prototype.onClickClose=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],JD.prototype,"rendererStamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],JD.prototype,"closeButtonAriaLabel",void 0);_.L([_.y({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],JD);
_.G(JD,"ytd-search-filter-options-dialog-renderer",function(){if(L$z!==void 0)return L$z;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return L$z=B},{mode:1});var Z88;var Kkc=function(){return function(B){B=B.availabilityType;return B===void 0||B==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||B==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Wc=function(){var B=_.z.apply(this,arguments)||this;B.qualityOptions=[];B.upsellOptions=[];B.showUpsellSection=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.rememberSettingsChecked=!1;return B};
_.w(Wc,_.z);_.a=Wc.prototype;_.a.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}}}}};
_.a.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.a.updateQualityOptions=function(){if(this.formats===void 0)_.gj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var B=[],c=[];this.showUpsellSection=!1;for(var x=_.p(this.formats),P=x.next();!P.done;P=x.next())(P=P.value)&&(P.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?c.push(P):B.push(P));B.length&&(this.qualityOptions=bkc(B));c.length&&(this.showUpsellSection=!0,this.upsellOptions=bkc(c))}};
_.a.updateRememberString=function(){if(this.downloadQualityPickerEntity)var B=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var c;B=(c=this.data)==null?void 0:c.premiumRememberSettingString}else{var x;B=(x=this.data)==null?void 0:x.rememberSettingString}B=B===void 0?_.Up("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):B;this.rememberSettingsCheckboxRenderer={title:_.c3(B),disabled:!1}};
_.a.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.AJ.Object.defineProperties(Wc.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var B;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(B=this.data)==null?void 0:B.qualityFormats}}});
Wc.prototype.updateRememberString=Wc.prototype.updateRememberString;Wc.prototype.updateQualityOptions=Wc.prototype.updateQualityOptions;Wc.prototype.dataChanged=Wc.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Wc.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wc.prototype,"data",void 0);
_.L([_.J(_.OU),_.H("design:type",Object)],Wc.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Boolean)],Wc.prototype,"selectedUpsellQuality",void 0);_.L([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.H("design:type",String)],Wc.prototype,"premiumIcon",void 0);_.L([_.F({selector:pAA,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],Wc.prototype,"downloadQualityPickerEntity",void 0);
_.L([_.F(),_.H("design:type",Array)],Wc.prototype,"qualityOptions",void 0);_.L([_.F(),_.H("design:type",Array)],Wc.prototype,"upsellOptions",void 0);_.L([_.F(),_.H("design:type",Object)],Wc.prototype,"showUpsellSection",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Wc.prototype,"darkerDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],Wc.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.L([_.jr("#remember-settings"),_.H("design:type",HTMLInputElement)],Wc.prototype,"rememberSettingsCheckbox",void 0);_.L([_.F(),_.H("design:type",Object)],Wc.prototype,"rememberSettingsChecked",void 0);_.L([_.F(),_.H("design:type",Function)],Wc.prototype,"onRememberSettingsCheckedChanged",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wc.prototype,"dataChanged",null);
_.L([_.bF("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wc.prototype,"updateQualityOptions",null);_.L([_.bF("selectedUpsellQuality"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wc.prototype,"updateRememberString",null);_.L([_.y({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Wc);
_.G(Wc,"ytd-download-quality-selector-content",function(){if(Z88!==void 0)return Z88;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Z88=B},{mode:1});var H8l;var lH=function(){var B=_.z.apply(this,arguments)||this;B.selectedUpsellQuality=!1;B.qualityOptions=[];B.darkerDarkTheme=_.T("web_darker_dark_theme");B.useUpsellDismissAlternate=_.T("use_not_now_dl_upsell_dismiss_cta");B.shouldShowAlternateUpsellDimiss=!1;B.rememberSettings=!1;B.rememberSettingsChecked=!1;B.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};B.rememberSettingsCheckedChanged=function(c){B.rememberSettingsChecked=c};
return B};
_.w(lH,_.z);_.a=lH.prototype;
_.a.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.c3(_.Up("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.a.updateQualityOptions=function(){this.formats===void 0?_.gj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=bkc(this.formats)};
_.a.onQualityOptionsSelect=function(B){if(this.qualityOptions&&B){B!==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 c=_.p(this.qualityOptions.entries()),x=c.next();!x.done;x=
c.next()){x=_.p(x.value);var P=x.next().value;x=x.next().value;var Y=void 0,g=void 0;if(((Y=x)==null?void 0:(g=Y.settingsRadioOptionRenderer)==null?void 0:g.id)===B){this.selectedQualityIndex=P;B=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((B=this.formats[P])==null?void 0:B.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.a.onClickSubmit=function(){var B;if((B=this.downloadButtonRenderer)==null||!B.isDisabled){var c,x;B=(x=(c=this.data)==null?void 0:c.onSubmitEndpoint)!=null?x:{};var P,Y;if(this.formats&&(((P=_.t(B,_.n3))==null?0:P.videoId)||((Y=_.t(B,_.bR))==null?0:Y.playlistId))){var g,k,n,b,d,q;c={formatType:(b=(g=this.formats)==null?void 0:(k=g[(n=this.selectedQualityIndex)!=null?n:0])==null?void 0:k.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(d=this.getOfflineEndpoint(B))==null?void 0:(q=d.actionParams)==null?void 0:q.settingsAction)};this.getOfflineEndpoint(B).actionParams=c;this.ytComponentBehavior.resolveCommand(B)}_.gj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.a.onClickUpsell=function(){var B;if((B=this.upsellButtonRenderer)==null||!B.isDisabled){var c,x;B=(x=(c=this.data)==null?void 0:c.upsellEndpoint)!=null?x:{};this.ytComponentBehavior.resolveCommand(B);_.gj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);c="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var P,Y,g,k;c=(k=(P=this.formats)==null?void 0:(Y=P[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:Y.format)!=null?k:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:c}})}};
_.a.onClickClose=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.a.getOfflineSettingsAction=function(B,c){return B?c===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":c:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.a.getOfflineEndpoint=function(B){return _.t(B,_.n3)?_.t(B,_.n3):_.t(B,_.bR)};
_.AJ.Object.defineProperties(lH.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.c3(_.Up("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var B;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(B=this.data)==null?void 0:B.qualityFormats}}});
lH.prototype.updateQualityOptions=lH.prototype.updateQualityOptions;lH.prototype.dataChanged=lH.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],lH.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Number)],lH.prototype,"selectedQualityIndex",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"selectedUpsellQuality",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],lH.prototype,"ytdReduxBehavior",void 0);
_.L([_.F({selector:pAA,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],lH.prototype,"downloadQualityPickerEntity",void 0);_.L([_.F(),_.H("design:type",Array)],lH.prototype,"qualityOptions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],lH.prototype,"darkerDarkTheme",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],lH.prototype,"useUpsellDismissAlternate",void 0);
_.L([_.F(),_.H("design:type",Object)],lH.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"downloadButtonRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"upsellButtonRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"cancelButtonRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"upsellCancelButtonRenderer",void 0);_.L([_.F(),_.H("design:type",Object)],lH.prototype,"rememberSettings",void 0);
_.L([_.F(),_.H("design:type",Object)],lH.prototype,"rememberSettingsChecked",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lH.prototype,"dataChanged",null);_.L([_.bF("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lH.prototype,"updateQualityOptions",null);_.L([_.y({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],lH);
_.G(lH,"ytd-download-quality-selector-renderer",function(){if(H8l!==void 0)return H8l;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return H8l=B},{mode:1});var ffi;var Ej=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Ej,_.z);Ej.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ej.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Ej.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Ej.prototype,"darkerDarkTheme",void 0);_.L([_.F({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],Ej.prototype,"infoIcon",void 0);
_.L([_.F({computed:"computeIcon_(data.warningIcon)"}),_.H("design:type",Object)],Ej.prototype,"warningIcon",void 0);_.L([_.y({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ej);
_.G(Ej,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(ffi!==void 0)return ffi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return ffi=B},{mode:1});var i8i;var Oj=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Oj,_.z);Oj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Oj.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"}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Oj.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Oj.prototype,"darkerDarkTheme",void 0);_.L([_.y({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Oj);
_.G(Oj,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(i8i!==void 0)return i8i;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return i8i=B},{mode:1});var Afo;var oM=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(oM,_.z);oM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oM.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"}}}}};
oM.prototype.onServiceRequestSentOrCompleted=function(B,c){c&&c.actions&&c.actions.length>0&&_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
oM.prototype.onServiceRequestSentOrCompleted=oM.prototype.onServiceRequestSentOrCompleted;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],oM.prototype,"darkerDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],oM.prototype,"data",void 0);
_.L([_.nF("yt-service-request-completed"),_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],oM.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.y({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],oM);
_.G(oM,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Afo!==void 0)return Afo;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Afo=B},{mode:1});var u0A;var QZ=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.submitButtonDisabled=!0;return B};
_.w(QZ,_.z);_.a=QZ.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.a.onDataChanged=function(){var B,c,x;if(((B=this.data)==null?void 0:(c=B.confirmButton)==null?void 0:(x=c.buttonRenderer)==null?void 0:x.isDisabled)!==void 0){var P,Y,g;this.submitButtonDisabled=(P=this.data)==null?void 0:(Y=P.confirmButton)==null?void 0:(g=Y.buttonRenderer)==null?void 0:g.isDisabled}};
_.a.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.a.updateSubmitButtonDisabledFromBinding=function(B){this.submitButtonDisabled=B.detail.value};
_.a.updateSubmitButtonDisabledFromConfirmCheckbox=function(B){this.submitButtonDisabled=!B.detail.value};
QZ.prototype.onDataChanged=QZ.prototype.onDataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],QZ.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],QZ.prototype,"darkerDarkTheme",void 0);
_.L([_.F(),_.H("design:type",Object)],QZ.prototype,"submitButtonDisabled",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QZ.prototype,"onDataChanged",null);_.L([_.y({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],QZ);
_.G(QZ,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(u0A!==void 0)return u0A;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return u0A=B},{mode:1});var DBN;var Fu=function(){return _.z.apply(this,arguments)||this};
_.w(Fu,_.z);_.AJ.Object.defineProperties(Fu.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var B,c,x;return((B=this.data)==null?void 0:B.title)+" "+((c=this.data)==null?void 0:c.metadataPrimary)+" "+((x=this.data)==null?void 0:x.metadataSecondary)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Fu.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Fu.prototype,"data",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Fu.prototype,"ariaLabel",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Fu);
_.G(Fu,"ytd-compact-product-list-item-renderer",function(){if(DBN!==void 0)return DBN;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return DBN=B},{mode:1});var rfz;var vc=function(){return _.z.apply(this,arguments)||this};
_.w(vc,_.z);vc.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]]"}}}}}};
_.AJ.Object.defineProperties(vc.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vc.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],vc);
_.G(vc,"ytd-compact-product-list-renderer",function(){if(rfz!==void 0)return rfz;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return rfz=B},{mode:1});var RAo;var zX=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(zX,_.z);_.a=zX.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.a.getBackgroundUrl=function(){var B=this.get("data.headerImage.thumbnails");return B?"url("+_.Pw(B,this.hostElement.clientWidth)+")":""};
_.a.onDataChanged=function(){var B=this.getBackgroundUrl();B&&(this.header.style.backgroundImage=B);B=_.Wf();var c=_.Jg(),x=this.get("data.trackingParams");x&&c&&B&&_.Gq(B,c,_.VF(x));B=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(c=B.next();!c.done;c=B.next())c.value.onShow()};
_.a.onPopupClosed=function(B){_.uI(B).localName==="ytd-membership-post-cancel-renderer"&&_.gj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
zX.prototype.onPopupClosed=zX.prototype.onPopupClosed;zX.prototype.onDataChanged=zX.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],zX.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],zX.prototype,"darkerDarkTheme",void 0);
_.L([_.jr("#header"),_.H("design:type",HTMLDivElement)],zX.prototype,"header",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zX.prototype,"onDataChanged",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zX.prototype,"onPopupClosed",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],zX);
_.G(zX,"ytd-membership-post-cancel-renderer",function(){if(RAo!==void 0)return RAo;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return RAo=B},{mode:1});var eAs;var Sh=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(Sh,_.z);Sh.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Sh.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Sh.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Sh.prototype,"darkerDarkTheme",void 0);_.L([_.jr("ytd-feedback-survey-renderer"),_.H("design:type",Object)],Sh.prototype,"feedbackSurveyRenderer",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Sh);
_.G(Sh,"ytd-sponsorship-confirm-cancel-content",function(){if(eAs!==void 0)return eAs;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return eAs=B},{mode:1});var BoA;var yZ=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.maybeSubmitFeedback=function(){B.content&&B.content.maybeSubmitFeedback()};
return B};
_.w(yZ,_.z);_.a=yZ.prototype;_.a.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.a.onYtPopupOpened=function(B,c){c===this&&this.data&&this.data.onOpenCommands&&_.XX(this.hostElement,this.data.onOpenCommands,this.hostElement);_.gj(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.a.onYtPopupClosed=function(B,c){(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.XX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestCompleted=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.a.onYtServiceRequestError=function(B){_.xE(this.hostElement,B.detail.error.message)};
_.a.onDataChanged=function(){if(this.isAttached){var B=this.backgroundUrl;B&&(_.Y9(this.hostElement).querySelector("#header").style.backgroundImage=B)}};
_.AJ.Object.defineProperties(yZ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return B?"url("+_.Pw(B,this.hostElement.clientWidth)+")":""}}});
yZ.prototype.onDataChanged=yZ.prototype.onDataChanged;yZ.prototype.onYtServiceRequestError=yZ.prototype.onYtServiceRequestError;yZ.prototype.onYtServiceRequestCompleted=yZ.prototype.onYtServiceRequestCompleted;yZ.prototype.onYtPopupClosed=yZ.prototype.onYtPopupClosed;yZ.prototype.onYtPopupOpened=yZ.prototype.onYtPopupOpened;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],yZ.prototype,"data",void 0);_.L([_.F({value:function(){return _.Up("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],yZ.prototype,"closeButtonAriaLabel",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],yZ.prototype,"darkerDarkTheme",void 0);_.L([_.jr("#scrollable"),_.H("design:type",Object)],yZ.prototype,"scrollable",void 0);_.L([_.jr("ytd-sponsorship-confirm-cancel-content"),_.H("design:type",Object)],yZ.prototype,"content",void 0);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],yZ.prototype,"onYtPopupOpened",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],yZ.prototype,"onYtPopupClosed",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yZ.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yZ.prototype,"onYtServiceRequestError",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yZ.prototype,"onDataChanged",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],yZ);
_.G(yZ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(BoA!==void 0)return BoA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return BoA=B},{mode:_.sL("kevlar_poly_si_batch_j081")?1:2});var cIr;var GX=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(GX,_.z);GX.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],GX.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],GX.prototype,"darkerDarkTheme",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],GX);
_.G(GX,"ytd-sponsorships-celebration-content",function(){if(cIr!==void 0)return cIr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return cIr=
B},{mode:1});var xnr;var Pcl=_.r2(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Mr=function(){var B=_.z.apply(this,arguments)||this;B.scriptsAppended=!1;B.buttonOverrides={type:"tonal",style:"overlay-dark"};return B};
_.w(Mr,_.z);_.a=Mr.prototype;
_.a.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:_.T("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onDataChanged=function(){var B;(B=this.header)==null||B.style.setProperty("background-color",this.backgroundColor);if(B=this.headerImageUrl){var c;(c=this.header)==null||c.style.setProperty("background-image",B)}c=_.Wf(4);B=_.Jg(4);var x=this.get("data.trackingParams");if(x&&B&&c){var P=_.VF(x);_.Gq(c,B,P);_.T("combine_ve_grafts")?_.q_().graftServerVe(x,B,4):_.Gq(c,B,P)}c=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(B=c.next();!B.done;B=c.next())B.value.onShow();if(c=this.get("data.gtmId"))_.Wl(c,
_.v5("GL","")),this.setupConversionTracking()};
_.a.setupConversionTracking=function(){if(!this.scriptsAppended){var B=document.createElement("script");var c=_.ST(Pcl.join(""));_.Gz(B,c);document.head.appendChild(B);B=document.createElement("noscript");B.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(B);this.scriptsAppended=!0}};
_.a.onPopupClosed=function(B){if(_.uI(B).localName==="ytd-sponsorships-celebration-renderer"){_.gj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var c;this.data&&((c=this.data)==null?0:c.dismissCommand)&&_.bA.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.AJ.Object.defineProperties(Mr.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.SF(B)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return B?"url("+_.Pw(B,this.hostElement.getBoundingClientRect().width)+")":""}}});
Mr.prototype.onPopupClosed=Mr.prototype.onPopupClosed;Mr.prototype.onDataChanged=Mr.prototype.onDataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Mr.prototype,"data",void 0);_.L([_.jr("#header"),_.H("design:type",HTMLElement)],Mr.prototype,"header",void 0);
_.L([_.F(),_.H("design:type",Object)],Mr.prototype,"scriptsAppended",void 0);_.L([_.F(),_.H("design:type",Object)],Mr.prototype,"buttonOverrides",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mr.prototype,"onDataChanged",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Mr.prototype,"onPopupClosed",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Mr);
_.G(Mr,"ytd-sponsorships-celebration-renderer",function(){if(xnr!==void 0)return xnr;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return xnr=B},{mode:1});var Ygr;var LD=function(){var B=_.z.apply(this,arguments)||this;B.isToggleChecked=!1;return B};
_.w(LD,_.z);LD.prototype.onDataChanged=function(){var B;this.isToggleChecked=((B=this.data)==null?void 0:B.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
LD.prototype.close=function(){var B;((B=this.data)==null?0:B.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
LD.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var B,c=_.t((B=this.data)==null?void 0:B.switchButton,Zdl);c&&(this.isToggleChecked&&c.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOnInnertubeCommand),!this.isToggleChecked&&c.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOffInnertubeCommand))};
LD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
LD.prototype.onDataChanged=LD.prototype.onDataChanged;_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],LD.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],LD.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],LD.prototype,"isToggleChecked",void 0);_.L([_.F({value:_.Up("CLOSE")}),_.H("design:type",String)],LD.prototype,"closeButtonAriaLabel",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LD.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],LD);
_.G(LD,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Ygr!==void 0)return Ygr;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Ygr=B},{mode:1});var aTz;var ZL=function(){return _.z.apply(this,arguments)||this};
_.w(ZL,_.z);_.a=ZL.prototype;_.a.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"}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.detached=function(){this.playerElement.stop()};
_.a.onYtServiceRequestCompleted=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.a.onYtServiceRequestError=function(B){_.xE(this.hostElement,B.detail.error.message)};
_.a.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.a.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.a.getTier=function(B,c){return!B||!B.tiers||c<0?null:_.t(B.tiers[c],A4z)};
_.a.moreThanOne=function(B){return!!(B&&B.length>1)};
_.a.tierOverviewTap=function(B){var c=this;this.selectedTier=B.model.index;_.fl(this,function(){_.aJ(c.hostElement,"yt-refit")})};
_.a.computeSelectedClass=function(B,c){return this.isSelected(B,c)?"selected":""};
_.a.computeButtonAriaPressed=function(B,c){return this.isSelected(B,c)?"true":"false"};
_.a.isSelected=function(B,c){return B===c};
_.a.onDataChanged=function(){_.Y9(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Y9(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 B=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),
c=B.next();!c.done;c=B.next())c.value.onShow();var x;this.set("selectedTier",(x=this.get("data.targetTierIndex"))!=null?x:0);var P;(B=(P=this.data)==null?void 0:P.onVisible)&&this.ytComponentBehavior.resolveCommand(B)};
_.a.initializeVe=function(B){var c=_.Wf(),x=_.Jg(),P=this.get("data.trackingParams");x&&c&&(this.screenLayer=4,c=_.ya(_.kxO)(void 0,69877,{clientScreenNonce:c,visualElement:x},void 0,void 0,void 0),_.En(c,69877,4),x=_.Jg(4),P&&x&&(P=_.VF(P),_.Gq(c,x,P),B&&(this.offerVideoVe=_.JW(74659),_.Gq(c,P,this.offerVideoVe))))};
_.a.setHeaderBackground=function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Y9(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.SF(B);if(B=this.getHeaderImage())B=_.Pw(B,screen.width),_.Y9(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+B+")"};
_.a.getHeaderImage=function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&B?B:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.a.setupVideoPlayer=function(B){var c=this,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1)return x=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),P=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.T("kevlar_player_update_killswitch")?c.playerElement.update({args:{autoplay:x,video_id:B,player_params:P}}):c.playerElement.loadVideoWithPlayerVars({autoplay:x,video_id:B,player_params:P}),
_.K(k,c.playerElement.getPlayerPromise(),2);Y=k.yieldResult;Y.addEventListener("onStateChange",function(n){c.onPlayerStateChange(n)});
Y.setScreenLayer(c.screenLayer);(g=_.Wf(4))&&c.offerVideoVe&&_.LW(g,c.offerVideoVe);x&&(c.pauseOtherPlayers(),c.playerElement.focusOnPlayer(),c.playerElement.getPlayer().hideControls(),_.Vp(_.EE,function(){c.fadeOutHeaderOverlay()},4E3));
_.Kq(k)})};
_.a.onPlayerStateChange=function(B){B===1?this.backgroundPlayerElement&&(B=this.backgroundPlayerElement.player_.getPlayerState(),B!==1&&B!==3||this.backgroundPlayerElement.pause()):B===0&&(_.Y9(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Y9(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.a.fadeOutHeaderOverlay=function(){_.Y9(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.a.onHeaderTap=function(){if(this.offerVideo){_.Y9(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var B;((B=this.playerElement.player_)==null?void 0:B.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(B=_.Wf(4))&&this.offerVideoVe&&_.fW(B,this.offerVideoVe)}};
_.a.getBackgroundImageLayerClass=function(B){return B?"background-image-layer-with-video":""};
_.a.getHeaderClass=function(B){return B?"header-with-video":""};
_.a.getHeaderOverlayClass=function(B){return B?"header-overlay-with-video":""};
_.a.getTitleContainerClass=function(B,c){return B?"title-container-with-video":c?"title-container-without-video-flexible":"title-container-without-video"};
_.a.tierTitleDisplayStatus=function(B){return this.moreThanOne(B)?"hide":"show"};
_.a.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.cp().resolve(_.Ge).getPlayerElement():this.backgroundPlayerElement=_.e5();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var B=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=B===1||B===3;this.backgroundPlayerElement.pause()}};
_.a.isMiniplayerActive=function(){return _.cp().resolve(_.Ge).isMiniplayerActive()};
_.a.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("selected-tier-changed",this.selectedTier))};
ZL.prototype.selectedTierChangedForBinding=ZL.prototype.selectedTierChangedForBinding;ZL.prototype.onDataChanged=ZL.prototype.onDataChanged;ZL.prototype.onYtPopupClosed=ZL.prototype.onYtPopupClosed;ZL.prototype.onYtPopupOpened=ZL.prototype.onYtPopupOpened;ZL.prototype.onYtServiceRequestError=ZL.prototype.onYtServiceRequestError;ZL.prototype.onYtServiceRequestCompleted=ZL.prototype.onYtServiceRequestCompleted;
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],ZL.prototype,"data",void 0);_.L([_.F({value:0}),_.H("design:type",Number)],ZL.prototype,"selectedTier",void 0);
_.L([_.F({value:""}),_.H("design:type",String)],ZL.prototype,"offerVideo",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],ZL.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.L([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Py(this)}}),
_.H("design:type",String)],ZL.prototype,"playerId",void 0);_.L([_.jr("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],ZL.prototype,"scrollable",void 0);_.L([_.jr("ytd-sponsorships-tier-renderer"),_.H("design:type",Object)],ZL.prototype,"tierRenderer",void 0);_.L([_.jr("#player"),_.H("design:type",Object)],ZL.prototype,"playerElement",void 0);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZL.prototype,"onYtServiceRequestCompleted",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZL.prototype,"onYtServiceRequestError",null);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZL.prototype,"onYtPopupOpened",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZL.prototype,"onYtPopupClosed",null);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZL.prototype,"onDataChanged",null);
_.L([_.bF("selectedTier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZL.prototype,"selectedTierChangedForBinding",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ZL);
_.G(ZL,"ytd-sponsorships-offer-renderer",function(){if(aTz!==void 0)return aTz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return aTz=B},{mode:_.sL("kevlar_poly_si_batch_j077")?1:2});var gTy;var Hc=function(){var B=_.z.apply(this,arguments)||this;B.buttonOverrides={type:"filled",style:"mono"};return B};
_.w(Hc,_.z);Hc.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}}}}}};
Hc.prototype.backgroundColorChanged=function(){var B,c,x,P=(c=_.t((B=this.data)==null?void 0:B.content,uVl))==null?void 0:(x=c.backgroundColor)==null?void 0:x.backgroundColor;P&&(B=_.zF(P),_.Y9(this.hostElement).querySelector("#banner").style.backgroundColor=B,_.Y9(this.hostElement).querySelector("#abstract-art").style.backgroundColor=B)};
Hc.prototype.attached=function(){this.JSC$18468_scroller&&(this.JSC$18468_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18468_scroller.attached&&typeof this.JSC$18468_scroller.attached==="function"&&this.JSC$18468_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Hc.prototype.backgroundColorChanged=Hc.prototype.backgroundColorChanged;_.L([_.F(),_.H("design:type",Object)],Hc.prototype,"data",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#scroller"),_.H("design:type",Object)],Hc.prototype,"JSC$18468_scroller",void 0);_.L([_.F(),_.H("design:type",Object)],Hc.prototype,"buttonOverrides",void 0);
_.L([_.bF("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hc.prototype,"backgroundColorChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Hc);
_.G(Hc,"ytd-sponsorships-promotion-celebration-renderer",function(){if(gTy!==void 0)return gTy;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return gTy=B},{mode:_.sL("kevlar_poly_si_batch_j077")?1:2});var spi;var pz6;var fD=function(){return _.z.apply(this,arguments)||this};
_.w(fD,_.z);fD.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
fD.prototype.computeIsInitiallyChecked=function(B){return B===1};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],fD.prototype,"data",void 0);_.L([_.jr("#checkbox"),_.H("design:type",Object)],fD.prototype,"checkbox",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],fD);
_.G(fD,"ytd-subscription-toggle-option-renderer",function(){if(pz6!==void 0)return pz6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return pz6=B},{mode:1});var iH=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return B};
_.w(iH,_.z);iH.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"}}}};
iH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iH.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var B=_.Y9(this.hostElement).querySelector("#options").selected;B=this.data.options[B].subscriptionRadioOptionRenderer.serviceEndpoint;var c=_.Y9(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");c&&B&&B.modifyChannelNotificationPreferenceEndpoint&&(c=c.getValue())&&(B.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[c]);_.cp().resolve(_.xu).resolveCommand(B,{form:{element:this.hostElement}});
_.gj(this.hostElement,"yt-close-popup-action")};
_.AJ.Object.defineProperties(iH.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var B=this.data.options,c=0;c<B.length;c++){var x=B[c].subscriptionRadioOptionRenderer;if(x&&x.selected)return c}return null}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],iH.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],iH.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],iH.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],iH.prototype,"darkerDarkTheme",void 0);_.L([_.Q("data.options"),_.H("design:type",Object),_.H("design:paramtypes",[])],iH.prototype,"initialIndex",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],iH);
_.G(iH,"ytd-subscription-notification-options-renderer",function(){if(spi!==void 0)return spi;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return spi=B},{mode:1});var kG6;var AD=function(){return _.z.apply(this,arguments)||this};
_.w(AD,_.z);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],AD.prototype,"data",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],AD);
_.G(AD,"ytd-tvfilm-offer-groups-renderer",function(){if(kG6!==void 0)return kG6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return kG6=B},{mode:1});var Xz6;var uH=function(){var B=_.z.apply(this,arguments)||this;B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(uH,_.z);_.a=uH.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.a.computeThumbnailClass=function(B){return B.thumbnailOverlays?B.isShow?"thumbnail-show":"thumbnail-movie":B.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.a.computeCommerceSectionClass=function(B){return B.offers&&B.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.a.computeTitleClass=function(B){return B.offers&&B.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.a.onDataChanged=function(){[].concat(_.wq(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(B){B.onShow()})};
uH.prototype.onDataChanged=uH.prototype.onDataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],uH.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],uH.prototype,"darkerDarkTheme",void 0);
_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uH.prototype,"onDataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],uH);
_.G(uH,"ytd-ypc-offers-overlay-renderer",function(){if(Xz6!==void 0)return Xz6;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Xz6=B},{mode:_.sL("kevlar_poly_si_batch_j028")?1:2});var $nB;var nTF=function(){this.usedMethods=new Set};
nTF.prototype.add=function(B){this.usedMethods.add(B)};
nTF.prototype.reset=function(){this.usedMethods.clear()};var jpc=function(B,c){this.query=B;this.previousSearchQuery=c;this.id=bbs++;if(!KfS){c=_.v5("SBOX_SETTINGS");B="https://"+((c==null?void 0:c.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var x=c==null?void 0:c.REQUEST_LANGUAGE;x&&(B+="&hl="+x);(x=c==null?void 0:c.REQUEST_DOMAIN)&&(B+="&gl="+x);B+="&client=youtube&gs_ri=youtube";(x=c==null?void 0:c.SUGG_EXP_ID)&&(B+="&sugexp="+encodeURIComponent(x));(x=c==null?void 0:c.PSUGGEST_TOKEN)&&(B+="&tok="+x);(c=
c==null?void 0:c.SESSION_INDEX)&&(B+="&authuser="+c);_.T("desktop_enable_visual_suggest")&&(B+="&h=180&w=320&ytvs=1");KfS=B}},Un6=function(B){var c="q="+encodeURIComponent(B.query);
B.previousSearchQuery&&(c+="&pq="+encodeURIComponent(B.previousSearchQuery));return c},dno=function(){var B=_.v5("SBOX_SETTINGS"),c={};
if(B==null?0:B.SEND_VISITOR_DATA)c["X-Goog-Visitor-Id"]=B==null?void 0:B.VISITOR_DATA;return c},qgF=function(B){var c=KfS;
c+="&gs_id="+B.id.toString(36);c+="&q="+encodeURIComponent(B.query);c+="&cp="+B.query.length;B.previousSearchQuery&&(c+="&pq="+encodeURIComponent(B.previousSearchQuery));(B=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(c+="&video_id="+B);return c},bbs=0,KfS="";var Cc6=_.HE.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,h$o=_.HE.SEARCH_ENTITY_SUGGESTION_MOVIE,mn6=_.HE.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Toc=_.HE.SEARCH_ENTITY_SUGGESTION_TV_SHOW,V4N=function(B,c){this.text=B;this.bold=c},t4S=function(B,c,x){this.input=c;
this.index=x;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=B[0];this.type=B[1];this.subtypes=B[2];var P;this.displayText=Bk((P=B[3])==null?void 0:P.b);var Y;this.ignoredPrefix=Bk((Y=B[3])==null?void 0:Y.a);var g,k;this.hasNewVideo=((g=B[3])==null?void 0:(k=g.zam)==null?void 0:k.toString())==="true"?!0:!1;var n;this.visualSuggestUrl=(n=B[3])==null?void 0:n.zai;var b;this.entityType=Bk((b=B[3])==null?void 0:b.zap);var d;this.entityName=Bk((d=B[3])==null?void 0:d.zao);var q;c=Bk((q=
B[3])==null?void 0:q.zaf);var C;this.entityMid=(C=B[3])==null?void 0:C.zae;q=UZy(this.subtypes,this.entityMid);if(c&&q){if(c){C="";switch(q){case "YOUTUBE_ENTITY_TYPE_SONG":C=mn6;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":C=Cc6;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":C=Toc;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":C=h$o}q=q==="YOUTUBE_ENTITY_TYPE_SONG"||q==="YOUTUBE_ENTITY_TYPE_ALBUM"?C+" \u2022  \u2022 "+c:c}else q="";this.entitySubtitle=q}var h;this.externalChannelId=(h=B[3])==null?void 0:h.zav;var V;
this.entityThumbnailAttributionUrl=(V=B[3])==null?void 0:V.zaq},Noy=function(B,c){var x=[],P,Y=(P=B.displayText)!=null?P:B.text;
(c==null?0:c.useEntityName)&&wzl(B)&&B.entityName&&(Y=B.entityName);if(B.type===33)return x.push(new V4N(Y,!1)),x;if(Y.length>=B.input.length&&Y.substring(0,B.input.length)===B.input)x.push(new V4N(B.input,!1)),x.push(new V4N(Y.substring(B.input.length),!0));else{var g=new Set(B.input.split(/\s/)),k=Y.split(/\s/);x=k.map(function(n,b){return new V4N(n.trim()+(b===k.length-1?"":" "),!g.has(n))})}return x},wzl=function(B){var c=!!UZy(B.subtypes);
B=!!B.entityMid;return c||B};var ITA=function(B){this.rawResponse=["",[],{}];this.suggestions=[];try{var c=JSON.parse(dZ8(B));if(typeof c==="object"&&c!==null)this.rawResponse=c;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(P){console.log("Suggest: Failed to parse SuggestResponse!");return}var x=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(P,Y){return new t4S(P,x,Y)})};var JIB=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new nTF;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18505_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Wfo,lTr=function(){Wfo||(Wfo=new JIB);
return Wfo};
JIB.prototype.updateSuggestions=function(B){var c=this;this.availableSuggestions.forEach(function(x){c.previousSuggestions[x]=!0});
this.availableSuggestions=B.map(function(x){var P=x.type.toString();x.subtypes.length>0&&(P+="i"+x.subtypes.join("i"),P+="k"+x.suggestionSources.COMPLETE_SERVER.toString());return P})};
var ETr=function(B,c){var x=Date.now();B.firstEditTime<0&&(B.firstEditTime=x);c&&(B.lastQueryBuildTime=x);B.lastEditTime=x};
JIB.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18505_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Ob8=function(B){var c="";B.availableSuggestions.forEach(function(Y){delete B.previousSuggestions[Y]});
for(var x=_.p(Object.keys(B.previousSuggestions)),P=x.next();!P.done;P=x.next())P=P.value,B.previousSuggestions[P]&&(c+=(c?"j":"")+P);return c},oTr=function(B,c){var x=[];
c&&(x[1]=c.toString());x[0]="youtube";x[7]=Date.now()-B.startTime;x[6]=B.sessionNumber;B.zeroPrefixSuggestionCount>=0&&(x[33]=B.zeroPrefixSuggestionCount);x[13]=B.outOfSyncResponseCount;if(B.availableSuggestions.length>0){for(var P=c="",Y=0,g=_.p(B.availableSuggestions),k=g.next();!k.done;k=g.next())k=k.value,k!==P&&(Y>1&&(c+="l"+Y),c+=(P?"j":"")+k,Y=0,P=k),Y+=1;Y>1&&(c+="l"+Y);x[3]=c}x[35]=Ob8(B);B.selectedSuggestionIndex>=0&&(x[2]=B.selectedSuggestionIndex);var n;if(c=(n=_.v5("SBOX_SETTINGS"))==
null?void 0:n.SUGG_EXP_ID)x[19]=B.normalize(c),n=0,B.experimentTriggeredBeforeFinal&&(n|=1),B.experimentTriggeredFinal&&(n|=2),x[20]=n;x[26]=Array.from(B.inputMethodsTracker.usedMethods).join("j");if(B.JSC$18505_totalRoundTripTime>0){x[15]=B.JSC$18505_totalRoundTripTime;x[14]=B.maxRoundTripTime;n=[];for(Y=c=0;Y<10;Y++)P=B.roundTripTimeHistogram[Y],P===0?c++:(c>1?n.push(Y+"-"+P):c===1?n.push("0j"+P):n.push(P.toString()),c=0);n=n.join("j");x[16]=n}B.zeroPrefixRoundTripTime>0&&(x[36]=B.zeroPrefixRoundTripTime);
B.lastQueryBuildTime>0&&(x[18]=B.lastQueryBuildTime-B.startTime);B.firstEditTime>0&&(x[4]=B.firstEditTime-B.startTime);B.lastEditTime>0&&(x[5]=B.lastEditTime-B.startTime);return x.join(".")};
JIB.prototype.normalize=function(B){return B.replaceAll(".","-")};
var Qpi=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var DL=function(){var B=_.z.apply(this,arguments)||this;B.microphoneSpinnerActive=!1;B.noAnimations=!1;B.boundExitClick=function(){B.onExitButtonClick()};
B.speechOverlayClassName="";B.isLevelAnimating=!1;B.playCloseDialogAudioFeedback=!0;B.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return B};
_.w(DL,_.z);_.a=DL.prototype;_.a.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.a.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=CDl()};
_.a.dataChanged=function(){this.logDialog()};
_.a.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var B;(B=this.manager.audioPlayer)!=null&&(B.JSC$17794_audioEnabled=!1)}this.manager.stop();(B=this.manager.audioPlayer)!=null&&(B.JSC$17794_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.a.handleSpeechQueryCompleteAction=function(B){var c=B.navigationAction;c&&(B.trackingParams&&_.q_().graftServerVe(B.trackingParams,this.dialogVe,5),_.aJ(this.hostElement,"yt-navigate",{endpoint:c,tempData:this.getNavigationParams(c),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.a.onExitButtonClick=function(){this.closeDialog()};
_.a.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var B;if((B=this.manager)!=null){var c;(c=B.audioPlayer)==null||Gs(c,"failure");B.setState("microphone-off");B.stop()}}else(B=this.manager)==null||B.start()};
_.a.transcriptionChanged=function(){var B,c;(((B=this.transcription)==null?0:B.low)||((c=this.transcription)==null?0:c.high))&&this.setState("transcribing",this.transcription)};
_.a.stateChanged=function(){this.setState(this.state,this.transcription)};
_.a.logDialog=function(){var B;(B=this.data)!=null&&B.trackingParams&&(B=_.q_(),_.kk(B,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=B.graftServerVe(this.data.trackingParams,void 0,5))};
_.a.getNavigationParams=function(B){var c={};if(_.T("web_yt_searchbox")){var x=lTr();x.inputMethodsTracker.add(6);x=oTr(x,15);c.gs_l=x;var P;c.oq=((P=_.t(B,_.Cr))==null?void 0:P.query)||""}else if(B=window.ytvoicesearchloggingparams){if(B=B())c.oq=B.oq,c.gs_l=B.gs_l}else _.MR(Error("nl"));return c};
_.a.closeDialog=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.a.setState=function(B,c){if(this.data){var x=this.data,P={};switch(B){case "listening":P={headerText:x.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:x.microphoneButtonAriaLabel};break;case "timeout":P={headerText:x.promptHeader,microphoneState:"try-again",microphoneLabel:x.promptMicrophoneLabel,microphoneAriaLabel:x.promptMicrophoneLabel};break;case "microphone-off":P={headerText:x.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:x.promptMicrophoneLabel,
microphoneAriaLabel:x.promptMicrophoneLabel};break;case "transcribing":(c==null?0:c.low)||(c==null?0:c.high)?P={transcriptionLow:c==null?void 0:c.low,transcriptionHigh:c==null?void 0:c.high,microphoneState:"speaking",microphoneAriaLabel:x.microphoneButtonAriaLabel}:P={headerText:x.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:x.microphoneButtonAriaLabel};break;case "processing":P={headerText:x.loadingHeader,microphoneState:"processing",microphoneAriaLabel:x.microphoneButtonAriaLabel};
break;case "offline":P={headerText:x.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:x.connectionErrorMicrophoneLabel,microphoneAriaLabel:x.connectionErrorMicrophoneLabel};break;case "permission":P={headerText:x.permissionsHeader,bodyLine1:x.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:x.permissionsSubtext};break;case "permission-denied":P={headerText:x.disabledHeader,bodyLine1:x.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:x.disabledSubtext}}P.className=
B;this.speechOverlayState=P;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.a.setMicrophoneState=function(B){var c=this.isLevelAnimating;this.isLevelAnimating=B==="speaking";!c&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=B==="processing"&&!this.noAnimations};
_.a.setClass=function(B){this.speechOverlayClassName&&_.gM(this.hostElement,this.speechOverlayClassName,!1);B&&(this.speechOverlayClassName=B,_.gM(this.hostElement,B,!0))};
_.a.runLevelAnimation=function(){var B=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var c=1+Math.random()*.75,x=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+x/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+c+")");_.EE.addJob(function(){B.runLevelAnimation()},3,x)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
DL.prototype.stateChanged=DL.prototype.stateChanged;DL.prototype.transcriptionChanged=DL.prototype.transcriptionChanged;DL.prototype.onPopupClosed=DL.prototype.onPopupClosed;DL.prototype.dataChanged=DL.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],DL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],DL.prototype,"rendererStamperBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],DL.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],DL.prototype,"eventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],DL.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],DL.prototype,"speechOverlayState",void 0);
_.L([_.F(),_.H("design:type",Object)],DL.prototype,"microphoneSpinnerActive",void 0);_.L([_.F({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.H("design:type",Object)],DL.prototype,"noAnimations",void 0);_.L([_.F({selector:function(B){var c;return(c=B.voiceSearch)==null?void 0:c.transcription}}),
_.H("design:type",Object)],DL.prototype,"transcription",void 0);_.L([_.F({selector:function(B){var c;return(c=B.voiceSearch)==null?void 0:c.overlay}}),
_.H("design:type",String)],DL.prototype,"state",void 0);_.L([_.F(),_.H("design:type",Object)],DL.prototype,"boundExitClick",void 0);_.L([_.jr("#microphone-levels"),_.H("design:type",HTMLElement)],DL.prototype,"level",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DL.prototype,"dataChanged",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DL.prototype,"onPopupClosed",null);
_.L([_.CF("transcription"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DL.prototype,"transcriptionChanged",null);_.L([_.CF("state"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DL.prototype,"stateChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],DL);
_.G(DL,"ytd-voice-search-dialog-renderer",function(){if($nB!==void 0)return $nB;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return $nB=B},{mode:1});var Ffy;var rg=function(){var B=_.z.apply(this,arguments)||this;B.isOverlay=!1;B.hidden=!1;return B};
_.w(rg,_.z);_.a=rg.prototype;_.a.onPopupClosed=function(){this.toggleIconState(!1)};
_.a.computeIcon=function(){var B,c,x;return(c=_.t((B=this.data)==null?void 0:B.icon,BJA))==null?void 0:(x=c.icon)==null?void 0:x.iconType};
_.a.computeIconBadgeShape=function(){var B;return{iconBadgeType:"cart",iconBadgeText:(B=this.iconBadgeEntity)==null?void 0:B.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.a.onClick=function(){var B;(B=this.data)!=null&&B.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.a.computeHidden=function(B){return!B};
_.a.toggleIconState=function(B){this.iconButton&&(this.iconButton.pressed=B)};
rg.prototype.onPopupClosed=rg.prototype.onPopupClosed;_.L([_.J(_.OU),_.H("design:type",Object)],rg.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],rg.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],rg.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],rg.prototype,"isOverlay",void 0);
_.L([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.H("design:type",Object)],rg.prototype,"hidden",void 0);_.L([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(B,c){return _.X9(B.entities,"iconBadgeEntity",c)}}),
_.H("design:type",Object)],rg.prototype,"iconBadgeEntity",void 0);_.L([_.jr("yt-icon-button"),_.H("design:type",HTMLButtonElement)],rg.prototype,"iconButton",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rg.prototype,"onPopupClosed",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],rg);
_.G(rg,"ytd-icon-badge-topbar-button-renderer",function(){if(Ffy!==void 0)return Ffy;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Ffy=B},{mode:1});var vTs;var RM=function(){var B=_.z.apply(this,arguments)||this;B.premiumOptions=[];B.darkerDarkTheme=_.T("web_darker_dark_theme");return B};
_.w(RM,_.z);RM.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.AJ.Object.defineProperties(RM.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],RM.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Array)],RM.prototype,"premiumOptions",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],RM.prototype,"darkerDarkTheme",void 0);_.L([_.Q("premiumOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],RM.prototype,"hasPremiumOptions",null);
_.L([_.y({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],RM);
_.G(RM,"ytd-offline-promo-content",function(){if(vTs!==void 0)return vTs;var B=document.createElement("template");_.I(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return vTs=B},{mode:1});var z$o;var eh=function(){var B=_.z.apply(this,arguments)||this;B.premiumOptions=[];return B};
_.w(eh,_.z);eh.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var B;this.premiumOptions=jwr((B=this.data)==null?void 0:B.formats)};
eh.prototype.onClickSubmit=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var B;(B=_.e5())==null||B.pause()};
eh.prototype.attached=function(){this.JSC$18525_scroller&&(this.JSC$18525_scroller.dialogElement=this.hostElement.parentNode)};
_.AJ.Object.defineProperties(eh.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
eh.prototype.dataChanged=eh.prototype.dataChanged;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],eh.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],eh.prototype,"data",void 0);
_.L([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.H("design:type",String)],eh.prototype,"headersIcon",void 0);_.L([_.F(),_.H("design:type",Array)],eh.prototype,"premiumOptions",void 0);_.L([_.jr("#scroller"),_.H("design:type",Object)],eh.prototype,"JSC$18525_scroller",void 0);_.L([_.Q("headersIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],eh.prototype,"showIcon",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eh.prototype,"dataChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],eh);
_.G(eh,"ytd-offline-promo-renderer",function(){if(z$o!==void 0)return z$o;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return z$o=B},{mode:1});var Sgz;var Bj=function(){var B=_.z.apply(this,arguments)||this;B.playbackPauseInterval=NaN;B.isLoading=!1;B.hasError=!1;B.dialogClass="";B.youtubeLabel=_.Up("LOGO_ALT_LABEL",{},"YouTube Home");B.logoName="yt-logos-ext:yt-logo-updated";B.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return B};
_.w(Bj,_.z);_.a=Bj.prototype;_.a.onDataChange=function(){var B;if(this.showEOMV1Text=!((B=this.data)==null||!B.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.a.attached=function(){this.pausePlayer()};
_.a.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.a.handleLangSelect=function(B){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[B.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.a.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.a.handleSaveConsent=function(B){var c=this;this.showLoadingSpinner();this.showLoadingSpinner();rKl(_.t(B,c4i)).catch(function(x){_.Ob(new _.mc("Something went wrong when save consent "+(x.message?x.message:x)+"."));c.hideLoadingSpinner();c.showErrorMessage()})};
_.a.handleDisablePersonalization=function(B){var c=this;this.showLoadingSpinner();R1s(_.t(B,Byc)).then(function(){c.dialog.close();c.resumePlayer()}).catch(function(x){_.Ob(new _.mc("Something went wrong when disable personalization "+(x.message?x.message:x)+"."));
c.hideLoadingSpinner();c.showErrorMessage()})};
_.a.showLoadingSpinner=function(){var B=this;this.showSpinnerJobId=_.EE.addLowPriorityJob(function(){B.isLoading=!0},500)};
_.a.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.EE.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.a.showErrorMessage=function(){var B=this;this.hasError=!0;_.EE.addLowPriorityJob(function(){B.hasError=!1},2E3)};
_.a.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ku(function(){try{var B=_.e5();B&&B.pause()}catch(c){}},100))};
_.a.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var B=_.e5();B&&B.play()}catch(c){}};
_.AJ.Object.defineProperties(Bj.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.eomV1Text)return[];B=[];for(var c=["SHIELD","WARNING","BAR_CHART"],x=this.data.eomV1Text.essentialCookieMsg.items,P=0;P<c.length&&P<x.length;P++)B.push({icon:c[P],text:x[P]});return B}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.eomV1Text)return[];B=[];for(var c=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],x=this.data.eomV1Text.nonEssentialCookieMsg.items,P=0;P<c.length&&P<x.length;P++)B.push({icon:c[P],text:x[P]});return B}}});
Bj.prototype.onDataChange=Bj.prototype.onDataChange;_.L([_.F(),_.H("design:type",Object)],Bj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],Bj.prototype,"showEOMV1Text",void 0);_.L([_.F(),_.H("design:type",Object)],Bj.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Object)],Bj.prototype,"hasError",void 0);_.L([_.F(),_.H("design:type",Number)],Bj.prototype,"showSpinnerJobId",void 0);_.L([_.F(),_.H("design:type",Object)],Bj.prototype,"dialogClass",void 0);
_.L([_.jr("#dialog"),_.H("design:type",Object)],Bj.prototype,"dialog",void 0);_.L([_.jr("#cb-header"),_.H("design:type",HTMLElement)],Bj.prototype,"header",void 0);_.L([_.jr("#lang-select"),_.H("design:type",HTMLElement)],Bj.prototype,"langSelect",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Bj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Bj.prototype,"ytComponentBehavior",void 0);
_.L([_.F(),_.H("design:type",String)],Bj.prototype,"youtubeLabel",void 0);_.L([_.F(),_.H("design:type",Object)],Bj.prototype,"logoName",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bj.prototype,"onDataChange",null);_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Bj.prototype,"eomEssentialCookieMsgItems",null);
_.L([_.Q("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Bj.prototype,"eomNonEssentialCookieMsgItems",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Bj);
_.G(Bj,"ytd-consent-bump-v2-lightbox",function(){if(Sgz!==void 0)return Sgz;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Sgz=B},{mode:1});var yIl;var cj=function(){return _.z.apply(this,arguments)||this};
_.w(cj,_.z);cj.prototype.ready=function(){if(!_.qD()||dez)var B=!0;else dez=!0,B=!1;B||(B=document.querySelector("ytd-app"),B||(B=document.body),this.internalLightBox=_.Y9(B).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.L([_.F(),_.H("design:type",Object)],cj.prototype,"data",void 0);_.L([_.jr("#lightbox"),_.H("design:type",Object)],cj.prototype,"lightBox",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],cj);
_.G(cj,"ytd-consent-bump-v2-renderer",function(){if(yIl!==void 0)return yIl;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return yIl=B},{mode:1});var GGz;var M4o;var Lfz;var x_=function(){var B=_.z.apply(this,arguments)||this;B.ephemeralActionsEnabled=_.T("web_ephemeral_actions");return B};
_.w(x_,_.z);_.a=x_.prototype;_.a.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&l9N(this.toastManager,this.toastType)};
_.a.open=function(B){this.toast&&(this.ephemeralAction&&_.cp().resolve(_.bT).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=B!=null?B:0,this.toastManager.enqueue(this.toast,B)):this.toast.open())};
_.a.close=function(B){var c;(c=this.toast)==null||c.close();this.toastManager&&B===1&&l9N(this.toastManager,B)};
_.a.refit=function(){var B;(B=this.toast)==null||B.refit()};
_.a.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var B;(B=this.toast)==null||B.close()}};
_.a.setVerticalOffset=function(B){this.toast&&(this.toast.verticalOffset=B,this.toast.fit())};
_.a.computeButtonClass_=function(B){return B?"toast-button":""};
_.a.computeText_=function(B){return _.iG(B)};
_.a.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LQ("toast-opened-changed",this.toastOpened))};
_.a.updateToastOpenedFromBinding=function(B){this.toastOpened=B.detail.value};
_.AJ.Object.defineProperties(x_.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var B,c,x=(B=this.data)==null?void 0:(c=B.actionButton)==null?void 0:c.buttonRenderer;return(x==null?void 0:x.command)||(x==null?void 0:x.serviceEndpoint)||(x==null?void 0:x.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var B=[],c;((c=this.data)==null?0:c.responseText)&&B.push(_.iG(this.data.responseText));var x;((x=this.data)==null?0:x.subText)&&B.push(_.iG(this.data.subText));var P,Y;if((P=this.data)==null?0:(Y=P.actionButton)==null?0:Y.buttonRenderer){var g,k;B.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)||_.iG(this.data.actionButton.buttonRenderer.text))}return B.filter(function(n){return n}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var B,c;return(c=(B=this.toast)==null?void 0:B.opened)!=null?c:!1}}});
x_.prototype.toastOpenedChangedForBinding=x_.prototype.toastOpenedChangedForBinding;x_.prototype.toastOpenedChanged=x_.prototype.toastOpenedChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],x_.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],x_.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],x_.prototype,"duration",void 0);
_.L([_.F(),_.H("design:type",Number)],x_.prototype,"toastType",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],x_.prototype,"useCloseButton",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],x_.prototype,"closeToastOnActionButtonClick",void 0);_.L([_.F({value:function(){return _.Up("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],x_.prototype,"closeButtonAriaLabel",void 0);_.L([_.F(),_.H("design:type",Boolean)],x_.prototype,"toastOpened",void 0);_.L([_.F(),_.H("design:type",Boolean)],x_.prototype,"hasOpened",void 0);_.L([_.F(),_.H("design:type",Object)],x_.prototype,"ephemeralActionsEnabled",void 0);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],x_.prototype,"command",null);
_.L([_.Q("ephemeralActionsEnabled","labelText","command","duration"),_.H("design:type",Object),_.H("design:paramtypes",[])],x_.prototype,"ephemeralAction",null);_.L([_.Q("ephemeralAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],x_.prototype,"hasEphemeralAction",null);_.L([_.jr("#toast"),_.H("design:type",Object)],x_.prototype,"toast",void 0);_.L([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.H("design:type",Object)],x_.prototype,"buttonOverrides",void 0);_.L([_.F({value:{style:"mono-inverse"}}),_.H("design:type",Object)],x_.prototype,"closeButtonOverrides",void 0);_.L([_.F({value:function(){return _.cp().resolve(_.Bp(_.sO))}}),
_.H("design:type",Object)],x_.prototype,"toastManager",void 0);_.L([_.Q("data.responseText","data.subText","data.actionButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],x_.prototype,"labelText",null);_.L([_.bF("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x_.prototype,"toastOpenedChanged",null);
_.L([_.bF("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x_.prototype,"toastOpenedChangedForBinding",null);_.L([_.Em({is:"yt-notification-action-renderer",disableElementRegistration:!0})],x_);
_.G(x_,"yt-notification-action-renderer",function(){if(Lfz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;M4o===void 0&&(M4o=document.createElement("template"));var P=M4o;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Lfz=B}B=Lfz;return B},{mode:2});var Pj=function(){var B=_.z.apply(this,arguments)||this;B.duration=4E3;B.downloadingCount=0;B.downloadedCount=0;B.downloadingOnlySmartDownloads=!1;B.sessionTotalDownloads=0;B.sessionDownloaded=0;B.previousSessionsDownloaded=0;B.totalDownloadPercentage=0;B.currentDownloadProgress=0;B.currentDownloadPercentage=0;B.isLeaderTab=!0;B.isFullScreen=!1;B.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};B.boundBeforeUnload=function(c){B.isLeaderTab&&B.downloadingCount>0&&(c.preventDefault(),
c.returnValue=!0)};
return B};
_.w(Pj,_.z);_.a=Pj.prototype;
_.a.open=function(){this.updateDownloadState();if(this.data){var B=this.sessionDownloaded+1,c=this.sessionTotalDownloads>1?_.Up("VIDEOS_DOWNLOADING_RATIO",{downloaded:B.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+B+"/"+this.sessionTotalDownloads):_.Up("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(c=this.sessionTotalDownloads>1?_.Up("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:B.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
B+"/"+this.sessionTotalDownloads):_.Up("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));B=this.isLeaderTab?_.Up("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.iG(this.data.responseText)!==c||_.iG(this.data.subText)!==B)this.set("data.responseText",_.fk(c)),this.set("data.subText",_.fk(B)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.a.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.a.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.a.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.a.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var B=this.downloadedCount-this.previousSessionsDownloaded;B<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-B);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.a.handleFullscreenChange=function(B){(this.isFullScreen=B)||this.updatePopup()};
Pj.prototype.updateCurrentDownloadProgress=Pj.prototype.updateCurrentDownloadProgress;Pj.prototype.updatePopup=Pj.prototype.updatePopup;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],Pj.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Pj.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Pj.prototype,"actionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"duration",void 0);_.L([_.F({selector:function(B){return _.S5I(B.entities).length}}),
_.H("design:type",Object)],Pj.prototype,"downloadingCount",void 0);_.L([_.F({selector:sxl}),_.H("design:type",Object)],Pj.prototype,"downloadedCount",void 0);_.L([_.F({selector:function(B){var c=_.S5I(B.entities);return gry(B.entities,c)}}),
_.H("design:type",Object)],Pj.prototype,"downloadingOnlySmartDownloads",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"sessionTotalDownloads",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"sessionDownloaded",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"previousSessionsDownloaded",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"totalDownloadPercentage",void 0);
_.L([_.F({selector:function(B){var c;B=(c=_.S5I(B.entities))!=null?c:[];return B.length>0?_.IEQ(B.slice(-1)):0}}),
_.H("design:type",Object)],Pj.prototype,"currentDownloadProgress",void 0);_.L([_.F(),_.H("design:type",Object)],Pj.prototype,"currentDownloadPercentage",void 0);_.L([_.F({selector:_.dVq}),_.H("design:type",Object)],Pj.prototype,"isLeaderTab",void 0);_.L([_.jr("yt-notification-action-renderer"),_.H("design:type",Object)],Pj.prototype,"notificationActionRenderer",void 0);
_.L([_.CF("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pj.prototype,"updatePopup",null);_.L([_.CF("currentDownloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pj.prototype,"updateCurrentDownloadProgress",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Pj);
_.G(Pj,"ytd-video-download-toast-renderer",function(){if(GGz!==void 0)return GGz;var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return GGz=B},{mode:1});var Zb6;var Hbo;var Y_=function(){return _.z.apply(this,arguments)||this};
_.w(Y_,_.z);Y_.prototype.computeIsRedLogo=function(B,c){!B&&c&&(B=c);return B==="YOUTUBE_RED_LOGO"||B==="YOUTUBE_PREMIUM_LOGO"};
Y_.prototype.computeLogoName=function(B){B=this.componentBehavior.computeIcon_(B);return B===""?"yt-logos-ext:yt-logo-updated":B};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],Y_.prototype,"componentBehavior",void 0);_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.H("design:type",Boolean)],Y_.prototype,"isRedLogo",void 0);_.L([_.F({computed:"computeLogoName(data)"}),_.H("design:type",String)],Y_.prototype,"logoName",void 0);_.L([_.F({value:{}}),_.H("design:type",Object)],Y_.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],Y_.prototype,"logoType",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-logo"})],Y_);
_.G(Y_,"ytd-logo",function(){if(Hbo!==void 0)return Hbo;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return Hbo=B},{mode:_.sL("kevlar_poly_si_batch_j074")?1:2});var aR=function(){var B=_.z.apply(this,arguments)||this;B.animationRef={};return B};
_.w(aR,_.z);_.a=aR.prototype;_.a.attached=function(){document.addEventListener("yt-navigate-finish",_.$9(this,this.logYoodle))};
_.a.detached=function(){document.removeEventListener("yt-navigate-finish",_.$9(this,this.logYoodle))};
_.a.logYoodle=function(){var B,c;if((B=this.data)==null?0:(c=B.loggingDirectives)==null?0:c.trackingParams)this.ytRendererBehavior.markDirty(),_.q_().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.a.computeHideImg=function(B,c){return!!B||!!c};
_.a.computeHideYtdLogo=function(B,c){return!B||!!c};
_.a.computeHideLottie=function(B){return!B};
_.a.computeIsRedLogo=function(B){return B==="YOUTUBE_RED_LOGO"||B==="YOUTUBE_PREMIUM_LOGO"};
_.a.renderLogoEntity=function(){var B=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),x=this.getLogoTitleText(this.data),P=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==B&&(this.url=B);this.animatedUrl!==c&&(this.animatedUrl=c);this.logoTitleText!==x&&(this.logoTitleText=x);this.lottieUrl!==P&&(this.lottieUrl=P,this.lottiePlayerProps=this.computeLottiePlayerProps(P))};
_.a.getSanitizedThumbnail=function(B){return B&&B.thumbnails?_.GJY(B.thumbnails,122)||"":""};
_.a.getThumbnailUrl=function(B,c){if(!c)return"";var x,P;B=B?(x=c.darkThemeLogo)==null?void 0:x.thumbnail:(P=c.lightThemeLogo)==null?void 0:P.thumbnail;return this.getSanitizedThumbnail(B)};
_.a.getAnimatedThumbnailUrl=function(B,c){return c?this.getSanitizedThumbnail(B?c.darkThemeAnimatedLogo:c.lightThemeAnimatedLogo):""};
_.a.getLogoTitleText=function(B){if(B)return _.iG(B.tooltipText)};
_.a.computeLogoIcon=function(B,c){if(c){var x,P;return B?(x=c.darkThemeLogo)==null?void 0:x.icon:(P=c.lightThemeLogo)==null?void 0:P.icon}};
_.a.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.a.getLottieUrl=function(B,c){var x,P,Y,g;return B?c==null?void 0:(x=c.darkThemeLogo)==null?void 0:(P=x.lottieAnimation)==null?void 0:P.url:c==null?void 0:(Y=c.lightThemeLogo)==null?void 0:(g=Y.lottieAnimation)==null?void 0:g.url};
_.a.computeLottiePlayerProps=function(B){if(B){var c;if((c=this.animationRef)==null?0:c.lottieEl){var x;(x=this.animationRef)==null||x.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:B,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.a.onLottieError=function(){this.data&&this.lottieUrl&&_.aJ(this.hostElement,"yoodle-error")};
_.a.onImgError=function(){this.data&&!this.lottieUrl&&_.aJ(this.hostElement,"yoodle-error")};
aR.prototype.playAnimation=aR.prototype.playAnimation;aR.prototype.renderLogoEntity=aR.prototype.renderLogoEntity;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],aR.prototype,"data",void 0);_.L([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],aR.prototype,"hideImg",void 0);
_.L([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],aR.prototype,"hideYtdLogo",void 0);_.L([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.H("design:type",Boolean)],aR.prototype,"hideLottie",void 0);_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.H("design:type",Boolean)],aR.prototype,"isRedLogo",void 0);
_.L([_.F(),_.H("design:type",Boolean)],aR.prototype,"useDarkThemeYoodle",void 0);_.L([_.F(),_.H("design:type",String)],aR.prototype,"url",void 0);_.L([_.F(),_.H("design:type",String)],aR.prototype,"animatedUrl",void 0);_.L([_.F(),_.H("design:type",String)],aR.prototype,"logoTitleText",void 0);_.L([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.H("design:type",Object)],aR.prototype,"logoIcon",void 0);_.L([_.F(),_.H("design:type",Object)],aR.prototype,"logoType",void 0);
_.L([_.F(),_.H("design:type",String)],aR.prototype,"lottieUrl",void 0);_.L([_.F(),_.H("design:type",Object)],aR.prototype,"lottiePlayerProps",void 0);_.L([_.F(),_.H("design:type",Object)],aR.prototype,"animationRef",void 0);_.L([_.bF("data"),_.bF("useDarkThemeYoodle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aR.prototype,"renderLogoEntity",null);
_.L([_.nF("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],aR.prototype,"playAnimation",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],aR);
_.G(aR,"ytd-yoodle-renderer",function(){if(Zb6!==void 0)return Zb6;var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Zb6=B},{mode:_.sL("kevlar_poly_si_batch_j074")?1:2});var fTA;var ibi;var gF=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return B};
_.w(gF,_.z);_.a=gF.prototype;_.a.onYoodleError=function(){_.T("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.a.computeLogoName=function(B){B=this.componentBehavior.computeIcon_(B);return B===""?"yt-logos-ext:yt-logo-updated":B};
_.a.computeTitle=function(B,c,x){return x&&(c==null?0:c.tooltipText)?_.iG(c.tooltipText):_.iG(B)};
_.a.computeAriaLabel=function(B,c,x){return x&&(c==null?0:c.tooltipText)?_.iG(B):""};
_.a.computeShowYoodle=function(B,c,x){return!B||!c&&!!x&&!_.wW.isEmpty(x)};
_.a.onNavigateHomeAction=function(){if(_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var B;(B=_.Y9(this.hostElement).querySelector(".yt-simple-endpoint"))==null||B.click()}};
_.a.computeLogoHref=function(B,c,x){var P;(x==null?0:x.onTapCommand)?P=this.componentBehavior.computeHref_(x.onTapCommand):B&&(P=this.componentBehavior.computeHref_(B));return P?P:c};
_.a.computeCommand=function(B,c){return(c==null?void 0:c.onTapCommand)||B};
_.a.getEndpointForm=function(){if(_.T("kevlar_topbar_disable_cache_only_home")){var B=_.cp().resolve(_.GC),c=bE8(B.getState())||"";B=_.MGq(B.getState())||"";return{disableCache:c==="ytd-browse"&&B==="home"}}return{disableCache:!0}};
gF.prototype.onYoodleError=gF.prototype.onYoodleError;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],gF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],gF.prototype,"componentBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],gF.prototype,"ytdReduxBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],gF.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],gF.prototype,"countryCode",void 0);_.L([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(B,c){return _.X9(B.entities,"logoEntity",c)}}),
_.H("design:type",Object)],gF.prototype,"logoEntity",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.H("design:type",Boolean)],gF.prototype,"showYoodle",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],gF.prototype,"yoodleError",void 0);_.L([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],gF.prototype,"titleText",void 0);
_.L([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],gF.prototype,"ariaLabelText",void 0);_.L([_.F({value:"/"}),_.H("design:type",String)],gF.prototype,"defaultEndpointUrl",void 0);_.L([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.H("design:type",String)],gF.prototype,"endpointUrl",void 0);
_.L([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.H("design:type",String)],gF.prototype,"command",void 0);_.L([_.F(),_.H("design:type",Object)],gF.prototype,"logoType",void 0);_.L([_.F({}),_.H("design:type",Boolean)],gF.prototype,"useDarkThemeYoodle",void 0);_.L([_.nF("yoodle-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gF.prototype,"onYoodleError",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],gF);
_.G(gF,"ytd-topbar-logo-renderer",function(){if(ibi!==void 0)return ibi;var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return ibi=B},{mode:_.sL("kevlar_poly_si_batch_j027")?1:2});var AIS=0;var uKc=_.HE.SEARCH_APPEND_LABEL,DnS=_.HE.SUGGESTION_NEW_VIDEOS_TEXT,rI8=_.HE.SUGGESTION_THUMBNAIL_LABEL,R$y=_.HE.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,e$z=_.rM(function(B){function c(I0){var bz,sG;return _.X(function(sF){if(sF.nextAddress==1)return bz=new Request(I0),_.kM(sF,2),_.K(sF,fetch(bz,{credentials:"include"}),4);if(sF.nextAddress!=2)return yr(!0),_.Gw(sF,0);sG=_.be(sF);_.Ob(sG);_.Kq(sF)})}
var x=B.isHighlighted;var P=B.suggestion;var Y=B.onClickCallback;var g=B.onHoverUpdateCallback;var k=B.labels;var n=B.queryBuilderFunction;var b=B.onRemoveCallback;var d=B.suggestionIndex;var q=B.generateUniqueId;var C=B.highlightedId;var h=B.useScrollMargin;var V=B.isKeyboardMode;var N=null,l=null,E=_.Ho("div"),S=_.Ho("span");B=_.p(_.$D(!1,void 0,"CgAMgc"));var M=B.next().value,f=B.next().value,Z=_.fE("a",function(I0){I0&&_.FF(237477,I0,l,function(bz){l=bz})}),u=_.fE("button",function(I0){I0&&_.FF(237477,
I0,l,function(bz){l=bz})}),e=_.qe(function(I0){if((I0==null?void 0:I0.button)===2)return I0.preventDefault(),!1;
var bz=_.Wf();bz&&N&&_.ig(bz,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var sG;Y(I0,P().text,P().index,P().entityMid,I0==null?void 0:(sG=I0.detail)==null?void 0:sG.wasSelectedByKeyboard);return!1}),px=function(){return P().type===35},kI=function(){return _.T("desktop_enable_single_suggestion_highlight")},Ul=function(){return _.Yu("desktop_suggestions_panel_row_height")||0},wC=function(){var I0;
return _.T("desktop_enable_new_video_metadata")&&((I0=P())==null?void 0:I0.hasNewVideo)===!0},W$=function(){return _.T("desktop_enable_visual_suggest")},El=function(){return _.T("desktop_enable_entity_suggest")&&wzl(P())},H$=function(){return P().entitySubtitle},yw=function(){return kI()?(x==null?void 0:x())||qQ()&&!(V==null?0:V()):(x==null?void 0:x())||qQ()},r9=function(){var I0=_.v5("SBOX_SETTINGS");
return px()&&!(I0==null?0:I0.HIDE_REMOVE_LINK)},cs=function(){return Noy(P(),{useEntityName:El()})},NQ,n4=!((NQ=_.cp().resolve(_.Bp(_.fL)))==null||!NQ()),L4=function(){return px()?_.T("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},UF=function(){return k==null?void 0:k().SUGGESTION_DISMISS_LABEL},uX=function(){return k==null?void 0:k().SUGGESTION_DISMISSED_LABEL};
B=_.p(_.$D(!1,void 0,"RcUcKd"));NQ=B.next().value;var yr=B.next().value;B=_.p(_.$D(!1,void 0,"yGR7je"));var uz=B.next().value,XO=B.next().value,qQ=uz,lt=_.qe(function(){n(S.value.innerText);return!1}),D8=_.qe(function(I0){I0.preventDefault();
return!1}),VW=_.qe(function(I0){var bz=P().text,sG=_.v5("SBOX_SETTINGS"),sF="https://"+(sG.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
sF+="&delq="+encodeURIComponent(bz);(bz=sG==null?void 0:sG.PSUGGEST_TOKEN)&&(sF+="&tok="+bz);(sG=sG==null?void 0:sG.SESSION_INDEX)&&(sF+="&authuser="+sG);c(sF);I0.preventDefault();(I0=_.Wf())&&l&&_.ig(I0,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(d==null?void 0:d());return!1}),ut=_.qe(function(){if(kI()&&(V==null?0:V()))return!1;
XO(!0);g(!0);return!1}),M8=_.qe(function(){XO(!1);
g(!1);return!1}),An=_.qe(function(){f(!0);
return!1}),g9=_.qe(function(){f(!1);
return!1}),SZ=_.qe(function(I0){I0.preventDefault();
var bz;(I0=(bz=P().entityThumbnailAttributionUrl)!=null?bz:"")&&_.pDw(I0);return!1});
B=_.p(_.$D("",void 0,"k9uVge"));var hc=B.next().value,C4=B.next().value;_.JR(function(){r9()&&C4(q==null?void 0:q(d==null?void 0:d()));E.value&&_.FF(12453,E.value,N,function(I0){N=I0})});
return _.U(_.m,{cond:NQ,then:function(){var I0={};return _.U("div",{class:_.Kw("ytSuggestionComponentRemovedText",(I0.ytSuggestionComponentLargerRemovedText=function(){return W$()},I0)),
style:function(){return Ul()>0?"height: "+Ul()+"px;":""},
role:"button"},uX)},
else:function(){var I0={},bz={};return _.U("div",{class:_.Kw("ytSuggestionComponentSuggestion",(I0.ytSuggestionComponentSuggestionHover=function(){return!kI()},I0.ytSuggestionComponentHighlighted=yw,I0.ytSuggestionComponentPersonalizedSuggestion=px,I0.ytSuggestionComponentMweb=!1,I0.ytSuggestionComponentLargerSuggestion=function(){return wC()||W$()},I0.ytSuggestionComponentThumbnailSuggestion=function(){return W$()},I0.ytSuggestionComponentRoundedSuggestion=function(){return _.T("desktop_enable_scrollable_suggestions_panel")&&
_.T("desktop_enable_suggestions_panel_padding")},I0.ytSuggestionComponentThumbnailPadding=function(){return W$()&&!px()},I0)),
style:function(){return Ul()>0?"height: "+Ul()+"px;":""},
role:"presentation","on:mousedown":e,"on:mouseover":ut,"on:mouseout":M8,el:E},_.U("div",{class:_.Kw("ytSuggestionComponentText",(bz.ytSuggestionComponentScrollMargin=h,bz)),"aria-label":function(){return wC()?P().text+" "+DnS:P().text},
id:function(){return q==null?void 0:q(d==null?void 0:d())},
"on:mousedown":e,role:"option"},_.U(_.m,{cond:function(){return P().type!==33},
then:function(){return _.U(_.Vf,{icon:L4,className:"ytSuggestionComponentIcon"})}}),_.U("div",{class:"ytSuggestionComponentLeftContainer"},_.U("span",{el:S,
role:"button",tabindex:0},_.U(_.mV,{each:cs},function(sG){return sG.bold?_.U("span",{class:"ytSuggestionComponentBold"},sG.text):_.U("span",null,sG.text)})),_.U(_.m,{cond:function(){return El()&&!!P().entitySubtitle||wC()},
then:function(){return _.U("div",{class:"ytSuggestionComponentMetadataContainer"},_.U(_.m,{cond:function(){return El()&&!!P().entitySubtitle},
then:function(){return _.U("div",{class:"ytSuggestionComponentEntitySubtitle"},H$)}}),_.U(_.m,{cond:function(){return wC()},
then:function(){return _.U("div",{class:"ytSuggestionComponentNewVideoContainer"},_.U("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.U("div",{class:"ytSuggestionComponentNewVideoText"},DnS))}}))}}))),_.U("div",{class:"ytSuggestionComponentRightContainer"},_.U(_.m,{cond:function(){return W$()&&P().visualSuggestUrl!==void 0},
then:function(){var sG={};return _.U("div",{class:"ytSuggestionComponentThumbnailContainer"},_.U("img",{"aria-label":rI8,class:_.Kw("ytSuggestionComponentVisualSuggestThumbnail",(sG.ytSuggestionComponentCircularFrame=function(){return El()&&P().subtypes.includes(790)},sG.ytSuggestionComponentEntitySuggestThumbnail=function(){return El()},sG)),
src:function(){return P().visualSuggestUrl}}),_.U(_.m,{cond:function(){return El()&&!!P().entityThumbnailAttributionUrl},
then:function(){var sF={};return _.U("span",{title:R$y,role:"tooltip"},_.U("div",{"on:mouseover":An,"on:mouseout":g9,"on:mousedown":SZ,class:_.Kw("ytSuggestionComponentThumbnailOverlay",(sF.ytSuggestionComponentThumbnailOverlayHidden=function(){return!M()},sF))},_.U(_.Vf,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.U(_.tR,null,_.U(_.Tu,{when:function(){return W$()&&r9()}},function(){var sG={};
return _.U("button",{class:_.Kw("ytSuggestionComponentRemoveLinkClearButton",(sG.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return hc()&&hc()===(C==null?void 0:C())},sG.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!yw()},sG)),
el:u,"on:mousedown":VW,"aria-label":UF,id:function(){return hc()}},_.U(_.Vf,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.U(_.Tu,{when:function(){return!(W$()&&P().visualSuggestUrl!==void 0)&&r9()}},function(){var sG={};
return _.U("a",{class:_.Kw("ytSuggestionComponentRemoveLink",(sG.ytSuggestionComponentRemoveLinkDark=n4,sG.ytSuggestionComponentRemoveLinkSelected=function(){return hc()&&hc()===(C==null?void 0:C())},sG)),
el:Z,"on:mousedown":VW,"aria-label":UF,tabindex:0,role:"button",id:function(){return hc()}},UF)}),_.U(_.Tu,{when:function(){return!1}},function(){return _.U("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":lt,"on:mousedown":D8,role:"button","aria-label":uKc},_.U(_.Vf,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"tg");var BTA=_.rM(function(){return _.U("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.U("button",{class:"ytdTextInputAssistantButton","on:click":_.qe(function(){lTr().inputMethodsTracker.add(3);var B,c=(B=_.v5("SBOX_SETTINGS"))==null?void 0:B.REQUEST_LANGUAGE;if(c)return _.vf("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1})},_.U("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ug");var c8o=function(){this.cache=new Map},xPz=function(B){for(var c=_.p(B.cache.entries()),x=c.next();!x.done;x=c.next()){var P=_.p(x.value);
x=P.next().value;P=P.next().value;P.suggestions.some(function(Y){return Y.type===35})&&B.cache.delete(x)}};var PBo=_.HE.SEARCH,YJB=_.HE.SEARCH_CLEAR_LABEL,aCr=new _.BL("FAKE_SUGGEST_RESPONSE");_.xU(_.rM(function(B){function c(){An||(An=setTimeout(function(){SZ()},1E3))}
function x(d9,K4,mo){if(d9.trim()){M8=d9;_.FP("REFINEMENTS_TUPLE",void 0);VW=!0;var jJ;K4=oTr(uz,K4);var s3=(jJ=B.searchEndpoint)==null?void 0:jJ.call(B);jJ=L4.value.value;s3||(s3=NMi);var d8;(d8=_.t(s3.commandMetadata,_.Br))!=null&&d8.url||(d8=Error("ol`"+JSON.stringify(s3)),_.lb(d8),s3=NMi);d8=_.wW.unsafeClone(s3);s3=_.FU(_.t(d8.commandMetadata,_.Br).url,"search_query",d9);_.MH(location.href,"sv")==="1"&&(_.t(d8,_.Cr).params="EgOAAgE%3D",s3=_.FU(s3,"sv","1"));_.t(d8,_.Cr)&&(_.t(d8,_.Cr).query=d9);
s3=s3.replace(/%20/g,"+");_.t(d8.commandMetadata,_.Br).url=s3;mo=_.T("desktop_enable_entity_suggest")?{entityMid:mo}:{};_.cp().resolve(_.xu).resolveCommand(d8,{form:{tempData:Object.assign({},{gs_l:K4,oq:jJ!=null?jJ:d9},mo)}});SZ();L4.value.value=d9;L4.value.blur();uz.reset()}}
function P(d9){return _.X(function(K4){return K4.return(new Promise(function(mo){var jJ=new XMLHttpRequest;jJ.open("GET",qgF(d9),!0);jJ.withCredentials=!0;var s3=_.v5("SBOX_SETTINGS");(s3==null?0:s3.SEND_VISITOR_DATA)&&jJ.setRequestHeader("X-Goog-Visitor-Id",s3==null?void 0:s3.VISITOR_DATA);jJ.onload=function(){mo(jJ.responseText)};
jJ.onerror=function(){_.Ob(Error("pl"));mo(null)};
setTimeout(function(){jJ.abort()},1E4);
jJ.send(null)}))})}
function Y(d9){var K4,mo,jJ,s3;return _.X(function(d8){switch(d8.nextAddress){case 1:return K4={credentials:"include",headers:dno()},window.AbortController&&(mo=new AbortController,setTimeout(function(){mo.abort("ytsbox-suggest-timeout")},1E4),K4.signal=mo.signal),_.kM(d8,2),_.K(d8,fetch(qgF(d9),K4),4);
case 4:jJ=d8.yieldResult.text();_.Gw(d8,3);break;case 2:return s3=_.be(d8),s3!=="ytsbox-abort-last"&&s3!=="ytsbox-suggest-timeout"&&_.Ob(s3),d8.return(null);case 3:return d8.return(jJ)}})}
function g(d9){var K4,mo,jJ;return _.X(function(s3){switch(s3.nextAddress){case 1:if(K4=_.cp().resolve(_.Bp(aCr)))return s3.return(K4);mo=Date.now();c();return _.T("yt_searchbox_xhr")?_.K(s3,P(d9),5):_.K(s3,Y(d9),4);case 4:jJ=s3.yieldResult;s3.jumpTo(3);break;case 5:jJ=s3.yieldResult;case 3:if(jJ){An&&(clearTimeout(An),An=null);var d8=uz,NR=mo,Fe=d9.query.length===0;NR=Date.now()-NR;Fe?d8.zeroPrefixRoundTripTime=NR:(d8.JSC$18505_totalRoundTripTime+=NR,d8.maxRoundTripTime=Math.max(d8.maxRoundTripTime,
NR),Fe=Math.floor(NR/100),Fe>=Qpi.length?++d8.roundTripTimeHistogram[9]:++d8.roundTripTimeHistogram[Qpi[Fe]])}return s3.return(jJ)}})}
function k(d9){var K4,mo,jJ;return _.X(function(s3){if(s3.nextAddress==1)return(K4=yr.cache.get(Un6(d9)))?s3.return(K4):_.K(s3,g(d9),2);mo=s3.yieldResult;if(mo===null)return s3.return(null);jJ=new ITA(mo);d9.query.length===0&&jJ.suggestions.length===0||yr.cache.set(Un6(d9),jJ);return s3.return(jJ)})}
function n(d9){var K4,mo;return _.X(function(jJ){if(jJ.nextAddress==1){ut=!1;var s3=M8;s3=_.scw()==="search"?(_.MH(location.href,"search_query")||_.MH(location.href,"q"))===s3:!1;K4=new jpc(d9,s3?M8:null);return _.K(jJ,k(K4),2)}mo=jJ.yieldResult;if(mo===null)return jJ.return();K4.query.length===0&&(uz.zeroPrefixSuggestionCount=mo.suggestions.length);if(K4.id<=g9)return uz.outOfSyncResponseCount++,jJ.return();if(document.activeElement!==L4.value)return jJ.return();g9=K4.id;var d8=uz,NR=mo.rawResponse[2]||
{};d8.experimentTriggeredBeforeFinal||(d8.experimentTriggeredBeforeFinal=d8.experimentTriggeredFinal);d8.experimentTriggeredFinal=!!NR.e;uz.updateSuggestions(mo.suggestions);E(-1);r9([]);mo.suggestions!==V()&&WR(mo.suggestions.length);N(mo.suggestions);kI(mo.suggestions.length>0&&mo.suggestions[0].type===33);uX&&(uX.hidden=mo.suggestions.length===0,px()?(uX.style.minWidth="",d8=uX.style,NR=(s3=V()[0])==null?void 0:s3.ignoredPrefix,d8.marginLeft=(NR?Math.min(NR.length*6,UF.value.offsetWidth):0).toString()+
"px"):(uX.style.minWidth=UF.value.offsetWidth+"px",uX.style.marginLeft="0"),Qc());_.Kq(jJ)})}
function b(){if(!VW)return!1;var d9=_.v5("REFINEMENTS_TUPLE");return d9?(d9=d9[1].map(function(K4,mo){return new t4S([K4,0,[71]],L4.value.value,mo)}),V()!==d9&&WR(d9.length),r9([]),N(d9),uz.updateSuggestions(d9),VW=!1,uX.hidden=d9.length===0,ut=d9.length>0,!0):!1}
function d(){var d9=L4.value.value;(typeof d9==="string"||d9 instanceof String)&&d9!==""?Z(!0):Z(!1)}
function q(){if(_.scw()==="search"){var d9=window.location.href;try{var K4=_.MH(d9,"search_query")||_.MH(d9,"q")||""}catch(mo){K4=""}K4&&(L4.value.value=K4,Z(!0))}}
var C=_.p(_.$D([],void 0,"kGFAjf")),h=C.next().value;C=C.next().value;var V=h,N=C;h=_.p(_.$D(-1,void 0,"mLGL9e"));var l=h.next().value,E=h.next().value;h=_.p(_.$D(-1,void 0,"u2rYdc"));var S=h.next().value,M=h.next().value;h=_.p(_.$D(!1,void 0,"W9DFC"));var f=h.next().value,Z=h.next().value;h=_.p(_.$D(!1,void 0,"Ip4dNc"));var u=h.next().value,e=h.next().value;C=_.p(_.$D(!1,void 0,"ZNKSQb"));h=C.next().value;C=C.next().value;var px=h,kI=C;C=_.p(_.$D(!1,void 0,"JBrGLd"));h=C.next().value;var Ul=C.next().value;
C=_.p(_.$D(!1,void 0,"P2pD6e"));var wC=C.next().value,W$=C.next().value;C=_.p(_.$D(1,void 0,"SjP20c"));var El=C.next().value,H$=C.next().value;C=_.p(_.$D([],void 0,"h4dRaf"));var yw=C.next().value,r9=C.next().value;C=_.p(_.$D(!1,void 0,"TUTzaf"));var cs=C.next().value,NQ=C.next().value;C=_.T("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var n4=_.Ho("yt-searchbox"),L4=_.Ho("input"),UF=_.Ho("div"),uX,yr=
new c8o,uz=lTr(),XO=_.cp().resolve(_.Bp(_.fL)),qQ=function(){var d9;return((d9=B.forceDarkMode)==null?void 0:d9.call(B))||!(XO==null||!XO())},lt=function(){return _.T("desktop_enable_scrollable_suggestions_panel")},D8="i"+AIS++,VW=!1,ut=!1,M8="",An=null,g9=-1,SZ=function(){r9([]);
N([]);kI(!1);uX&&(uX.hidden=!0);An&&(clearTimeout(An),An=null);E(-1)},hc=function(d9,K4){d9.preventDefault();
NQ(!0);uX&&(uX.hidden=!1);var mo=l();d9=V();var jJ=yw();K4=qvy(K4);mo+=K4;for(mo>=d9.length?mo=-1:mo<-1&&(mo=d9.length-1);mo!==-1&&(jJ.includes(mo)||mo>=d9.length||mo<0);)mo+=K4,mo>=d9.length&&(mo=-1);E(mo);l()>=0&&(L4.value.value=V()[l()].text,M(0),d(),d9=l(),jJ=S(),(jJ=document.getElementById(Ft[d9][jJ]))&&lt()&&(d9===V().length-1?uX.scrollTop=uX.scrollHeight:jJ.scrollIntoView({block:"nearest",inline:"start"})))},C4=_.qe(function(d9){if(!(d9.relatedTarget instanceof Element&&d9.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){e(!0);
var K4;(K4=B.focusCallback)==null||K4.call(B,!0);b()||(ut?uX.hidden=!1:(_.aJ(n4.value,"yt-autonav-pause-focus",{}),n(d9.target.value)))}}),I0=_.qe(function(d9){if(!(d9.relatedTarget instanceof Element&&d9.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){e(!1);
var K4;(K4=B.focusCallback)==null||K4.call(B,!1);uX.scrollTop=0;uX.hidden=!0;_.aJ(n4.value,"yt-autonav-pause-blur",{})}}),bz=function(d9){d9=qvy(d9);
var K4;((K4=Ft[l()])==null?0:K4[S()+d9])&&M(S()+d9)},sG=_.qe(function(d9){var K4=d9.target;
switch(d9.keyCode){case 13:d9.preventDefault();var mo;if((mo=Ft[l()])==null?0:mo[S()]){var jJ;(jJ=document.getElementById(Ft[l()][S()]))==null||jJ.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}d9=d9.shiftKey?4:3;mo=uz;jJ=l();mo.selectedSuggestionIndex=jJ;x(K4.value,d9);break;case 27:uX&&(uX.hidden=!0);break;case 40:hc(d9,40);break;case 38:hc(d9,38);break;case 39:bz(39);break;case 37:bz(37);break;case 229:uz.inputMethodsTracker.add(4);break;default:uz.inputMethodsTracker.add(1),
ETr(uz)}return!1}),sF=_.qe(function(d9){n(d9.target.value);
d();lt()&&uX&&(uX.scrollTop=0);return!1}),h0=_.qe(function(){uz.inputMethodsTracker.add(2);
ETr(uz);return!1});
_.JR(function(){if(uX){uz.reset();if(window.ResizeObserver){var d9=new ResizeObserver(function(){px()||(uX.style.minWidth=UF.value.offsetWidth+"px")});
d9.observe(UF.value);(new ResizeObserver(function(){Qc()})).observe(uX);
_.lP(function(){d9.disconnect()})}q();
window.addEventListener("yt-navigate-finish",q);window.addEventListener("yt-focus-searchbox",function(){L4.value.focus()});
var K4;Ul((K4=_.v5("SBOX_SETTINGS"))==null?void 0:K4.HAS_ON_SCREEN_KEYBOARD)}else _.lb(new _.mc("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var yD=_.qe(function(d9){d9.preventDefault();x(L4.value.value,12);return!1}),G5=_.qe(function(d9){d9.preventDefault();
var K4,mo;(K4=L4)==null||(mo=K4.value)==null||mo.focus();var jJ,s3;((jJ=L4)==null?void 0:(s3=jJ.value)==null?void 0:s3.value)!==""&&(L4.value.value="",L4.value.dispatchEvent(new Event("input")));return!1}),Jc=_.qe(function(){var d9=KD8(L4.value.value,V().filter(function(K4){return K4.type!==35}).map(function(K4){return{label:K4.text}}));
_.gj(n4.value,"yt-open-popup-action",[{openPopupAction:d9},document.body]);return!1}),cN=_.qe(function(){L4.value.focus();
return!1}),xP=function(d9,K4,mo,jJ,s3){uz.selectedSuggestionIndex=mo;
x(K4,s3?3:1,jJ)},CS=function(d9){L4.value.value=d9;
L4.value.dispatchEvent(new Event("input"));uz.inputMethodsTracker.add(5);ETr(uz,!0)},Ft=[[]],JM=function(d9){var K4="searchbox-suggestion"+_.oz(_.N5);
Ft[d9].push(K4);return K4},WR=function(d9){if(V()){Ft=[[]];
for(var K4=0;K4<d9;K4++)Ft.push([])}},Qc=function(){if(lt()){var d9=uX,K4=d9.scrollTop;
d9=d9.scrollHeight-d9.clientHeight;W$(K4>=d9);K4=Math.abs(d9-K4);K4<=40?H$(1-(40-K4)/40):H$(1)}},Gk=function(){return"opacity: "+El()*100+"%"},T7=_.qe(function(){Qc();
return!1}),FO=_.qe(function(){NQ(!1);
return!1}),MY,jZ={},gl={},lm={},KA={};
return _.U("yt-searchbox",{class:_.Kw("ytSearchboxComponentHost",(jZ.ytSearchboxComponentMweb=!1,jZ.ytSearchboxComponentDesktop=!0,jZ["yt-searchbox-filled-query"]=function(){return f()},jZ["ytd-masthead"]=function(){return!u()},jZ.ytSearchboxComponentHostDark=qQ,jZ)),
role:"search",el:n4,"client-ve-type":10349},_.U("div",{el:UF,"on:click":cN,class:_.Kw("ytSearchboxComponentInputBox",(gl.ytSearchboxComponentInputBoxDark=qQ,gl.ytSearchboxComponentInputBoxHasFocus=u,gl))},_.U("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":yD},_.U(_.m,{cond:u,then:function(){return _.U("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.U(_.Vf,{icon:"SEARCH"}))}}),_.U("input",{el:L4,
class:_.Kw("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":D8,"aria-expanded":!((MY=uX)==null?0:MY.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":I0,"on:focus":C4,"on:input":sF,"on:keydown":sG,"on:paste":h0,placeholder:B.placeholderText,"aria-activedescendant":function(){var d9;return(d9=Ft[l()])==null?void 0:d9[S()]},
"aria-autocomplete":"list",role:"combobox"})),_.U(_.m,{cond:h,then:function(){return _.U("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.U(BTA,null))}}),_.U(_.m,{cond:f,
then:function(){return _.U("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.U("button",{class:"ytSearchboxComponentClearButton","on:click":G5,"aria-label":B.clearButtonAriaLabel||YJB},_.U(_.Vf,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.U(_.Ne,{model:{}})))}})),_.U("button",{class:_.Kw("ytSearchboxComponentSearchButton",(lm.ytSearchboxComponentSearchButtonDark=qQ,lm)),
"on:click":yD,"aria-label":PBo,title:B.placeholderText},_.U(_.Vf,{icon:"SEARCH"})),_.U(_.m,{cond:function(){if(I1c()&&_.T("mweb_voice_search")&&B.voiceSearchButton)return B.voiceSearchButton()},
then:function(d9){var K4={};return _.U("div",{class:_.Kw("ytSearchboxComponentVoiceSearchWrapper",(K4.ytSearchboxComponentHideVoiceSearchButton=function(){return f()},K4))},_.U(_.IF,{data:d9},{buttonRenderer:function(mo){return _.U(_.Zf,{data:mo.data,
onButtonClickCallback:function(){}})}}))}}),_.U("div",{el:_.Rm(function(d9){return void(uX=d9)}),
id:D8,class:_.Kw("ytSearchboxComponentSuggestionsContainer",(KA.ytSearchboxComponentSuggestionsContainerDark=qQ,KA["yt-searchbox-suggestions-container"]=!1,KA.ytSearchboxComponentSuggestionsContainerScrollable=lt(),KA.ytSearchboxComponentSuggestionsContainerAnimated=C,KA)),"on:scroll":T7,"on:mousemove":FO,role:"listbox",hidden:!0},_.U(_.mV,{each:V},function(d9,K4){return _.U(e$z,{suggestion:d9,isHighlighted:function(){return K4()===l()},
onClickCallback:xP,onHoverUpdateCallback:function(mo){if(_.T("desktop_enable_single_suggestion_highlight")){var jJ=K4();mo&&(M(0),E(jJ))}},
onRemoveCallback:function(mo){xPz(yr);mo===void 0||mo<0||yw().includes(mo)||r9([].concat(_.wq(yw()),[mo]))},
labels:B.labels,queryBuilderFunction:CS,suggestionIndex:K4,generateUniqueId:JM,highlightedId:function(){var mo;return(mo=Ft[l()])==null?void 0:mo[S()]},
useScrollMargin:lt(),isKeyboardMode:cs})}),_.U(_.m,{cond:function(){return!px()&&V().find(function(d9){return d9.type!==35})&&_.T("searchbox_reporting")},
then:function(){return _.U("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Jc},_.Up("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.U(_.m,{cond:function(){return!wC()&&lt()},
then:function(){return _.U("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.U("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Gk}))}})))},"vg"),"yt-searchbox",{props:{searchEndpoint:_.rk,
placeholderText:_.rk,labels:_.rk,voiceSearchButton:_.rk,focusCallback:_.cw,clearButtonAriaLabel:_.rk,forceDarkMode:_.rk}});var s_=function(){var B=_.z.apply(this,arguments)||this;B.menuButtonTargetId="topbar-guide-menu";B.narrow=!1;B.menuStrings={BACK_ALT_LABEL:_.Up("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Up("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Up("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Up("SBOX_PLACEHOLDER",void 0,"Search")};B.pageDarkTheme=document.documentElement.hasAttribute("dark");B.watchPageScrollTop=0;B.theater=!1;B.fullscreen=!1;B.desktopUnifiedSearchPanelMode=_.T("desktop_enable_unified_search_panel");
B.cinematicTheaterMode=_.T("web_cinematic_theater_mode");B.ytSearchboxFocused=!1;B.searchboxLabels=_.v5("SBOX_LABELS");B.topbarIsAboveChipbar=!1;B.isDarkThemeForced=!1;B.areGhostCardsHidden=!1;B.guideKeyboardToggle=!1;B.voiceSearchManager=CDl();B.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};B.setYtSearchboxFocused=function(c){B.ytSearchboxFocused=c};
return B};
_.w(s_,_.z);_.a=s_.prototype;_.a.computeSimpleText=function(B){return _.iG(B)};
_.a.onDarkChanged=function(){for(var B=_.p(this.buttons||[]),c=B.next();!c.done;c=B.next())c.value.isOverlay=!!this.dark;B=_.p(this.buttonRenderers||[]);for(c=B.next();!c.done;c=B.next())c.value.overrides=this.computeButtonOverride()};
_.a.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.a.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var B=_.yO(_.So(),"aa");_.gM(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||B||(this.isDarkThemeForced=this.dark=!0);this.logoType?(B=this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?B.setAttribute("slot","masthead-logo-old"):_.qH(B)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.$9(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.$9(this,this.onSetTheaterModeEnabled))};
_.a.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.$9(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.$9(this,this.onSetTheaterModeEnabled))};
_.a.dataChanged=function(){var B=this.data;B&&(this.voiceEnabled=B.voiceSearchButton?CDl().isSupported():!1,_.Bo4(_.wk(),this.menuButtonTargetId,this.guideButton),B.onReceivedActions&&B.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.XX(this.hostElement,B.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&B&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.gM(this.hostElement,"dark",!1),_.gM(this.hostElement,"theater",!1),
(B=this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?B.setAttribute("slot","masthead-logo-old"):_.qH(B))))};
_.a.computeCenterHidden=function(){var B;return this.data&&!((B=this.data.searchbox)==null?0:B.fusionSearchboxRenderer)};
_.a.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.gM(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.a.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.a.onWatchScroll=function(B){this.watchPageScrollTop=B.detail||0;this.updateMastheadBackgroundOpacity()};
_.a.onFullscreenChangeAction=function(B){B||(this.watchPageScrollTop=0);this.fullscreen=B;this.updateMastheadBackgroundOpacity()};
_.a.onSetTheaterModeEnabled=function(B){this.theater=B.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.a.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.a.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.a.setBackgroundOpacity=function(B){B=this.calculateBackgroundOpacity(B);this.background.style.opacity=""+B};
_.a.calculateBackgroundOpacity=function(B){var c=this.theater&&this.cinematicTheaterMode?.6:0,x=this.hostElement.clientHeight/2;return Math.min(Math.max(B,0),x)/x*(1-c)+c};
_.a.shouldShowCinematicMastHead=function(){var B=_.T("kevlar_watch_grid")&&!_.T("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(B||this.pageDarkTheme)};
_.a.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.a.focusGuide=function(){this.guideButton.focus()};
_.a.onGuideToggleTap=function(){_.aJ(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.a.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.a.onGuideToggleHover=function(){_.aJ(this.hostElement,"yt-guide-hover")};
_.a.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.a.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.a.closeOnOutsideClickCondition=function(B){for(B=_.AV(B);B[0];){var c=B.shift();if(c instanceof Element&&c.id==="kbd")return!1}return!0};
_.a.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.a.pausePlayer=function(){var B;(B=_.e5())==null||B.pause();this.pauseMiniplayer()};
_.a.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var B;(B=_.cp().resolve(_.Ge).getPlayerElement())==null||B.pause()}};
_.a.isMiniplayerActive=function(){return _.cp().resolve(_.Ge).isMiniplayerActive()};
_.a.updateNarrowFromBinding=function(B){this.narrow=B.detail.value};
_.a.onYtSendFeedbackAction=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.AJ.Object.defineProperties(s_.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("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 B;return(B=this.data)==null?void 0:B.voiceSearchButton}}}});
s_.prototype.narrowChanged=s_.prototype.narrowChanged;s_.prototype.onWatchPageChange=s_.prototype.onWatchPageChange;s_.prototype.onRendererStamperFinished=s_.prototype.onRendererStamperFinished;s_.prototype.dataChanged=s_.prototype.dataChanged;s_.prototype.onDarkChanged=s_.prototype.onDarkChanged;_.L([_.J(_.Oc),_.H("design:type",Object)],s_.prototype,"ironResizableBehavior",void 0);_.L([_.J(_.VxB),_.H("design:type",Object)],s_.prototype,"ytdExpandableInputBehavior",void 0);
_.L([_.J(_.SM.YtdGuideStateAwareBehavior),_.H("design:type",Object)],s_.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],s_.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],s_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.OU),_.H("design:type",Object)],s_.prototype,"ytdReduxBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"narrow",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"logoType",void 0);_.L([_.F(),_.H("design:type",Boolean)],s_.prototype,"voiceEnabled",void 0);
_.L([_.F(),_.H("design:type",Object)],s_.prototype,"menuStrings",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],s_.prototype,"dark",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],s_.prototype,"pageDarkTheme",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"watchPageScrollTop",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.Ov}),_.H("design:type",Boolean)],s_.prototype,"isWatchPage",void 0);
_.L([_.F({reflectToAttribute:!0,selector:_.g5O}),_.H("design:type",Boolean)],s_.prototype,"isShortsPage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],s_.prototype,"theater",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],s_.prototype,"fullscreen",void 0);_.L([_.F({reflectToAttribute:!0,selector:_.X7q}),_.H("design:type",String)],s_.prototype,"frostedGlassMode",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"ytSearchboxFocused",void 0);
_.L([_.Um("#buttons > *"),_.H("design:type",Array)],s_.prototype,"buttons",void 0);_.L([_.Um("ytd-button-renderer"),_.H("design:type",Array)],s_.prototype,"buttonRenderers",void 0);_.L([_.jr("#background"),_.H("design:type",HTMLDivElement)],s_.prototype,"background",void 0);_.L([_.jr("#guide-button"),_.H("design:type",Object)],s_.prototype,"guideButton",void 0);_.L([_.jr("#logo"),_.H("design:type",Object)],s_.prototype,"logo",void 0);
_.L([_.F({computed:"computeButtonOverride(dark)"}),_.H("design:type",Object)],s_.prototype,"buttonOverrides",void 0);_.L([_.CF("dark"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"onDarkChanged",null);_.L([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.H("design:type",Function)],s_.prototype,"boundOnTapVoiceButton",void 0);_.L([_.F(),_.H("design:type",Object)],s_.prototype,"topbarIsAboveChipbar",void 0);_.L([_.F(),_.H("design:type",String),_.H("design:paramtypes",[])],s_.prototype,"guideIcon",null);_.L([_.Q("voiceEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],s_.prototype,"shouldShowVoiceSearchButton",null);_.L([_.Q("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],s_.prototype,"voiceSearchButton",null);
_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"dataChanged",null);_.L([_.nF("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"onRendererStamperFinished",null);_.L([_.CF("isWatchPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"onWatchPageChange",null);
_.L([_.CF("narrow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"narrowChanged",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-masthead"})],s_);
_.G(s_,"ytd-masthead",function(){if(fTA!==void 0)return fTA;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return fTA=B},{mode:_.sL("kevlar_poly_si_batch_j036")?1:2});var gy8;var sjo={},pIz={},knl={},XIs={},$Pl=(XIs.OFFLINE=(sjo["publicytnetworkstatus-online"]="BACK_ONLINE",sjo),XIs.ONLINE=(pIz["publicytnetworkstatus-offline"]="OFFLINE",pIz),XIs.BACK_ONLINE=(knl["publicytnetworkstatus-offline"]="OFFLINE",knl.TIMER_TRIGGER="ONLINE",knl),XIs),pI=function(){var B=_.z.apply(this,arguments)||this;B.currentState="ONLINE";B.scheduledJobId=0;B.bannerString="";B.bannerVe=null;B.networkStatusManagerInstance=new _.Z$;return B};
_.w(pI,_.z);_.a=pI.prototype;_.a.attached=function(){var B=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){B.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){B.stateChangeHandler("publicytnetworkstatus-offline")})};
_.a.detached=function(){var B=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){B.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){B.stateChangeHandler("publicytnetworkstatus-offline")})};
_.a.enterState=function(B){var c=this;this.scheduledJobId&&_.EE.cancelJob(this.scheduledJobId);B==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):B==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Up("NO_INTERNET_CONNECTION",void 0,"No internet connection")):B==="BACK_ONLINE"&&(this.bannerString=_.Up("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Vp(_.EE,function(){c.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=B};
_.a.stateChangeHandler=function(B){(B=$Pl[this.currentState][B])&&this.enterState(B)};
_.a.logVisibility=function(B){var c=_.Wf();this.createBannerVe(B);c&&this.bannerVe&&(B?_.Z1(c,[this.bannerVe]):_.Hr(c,[this.bannerVe]))};
_.a.createBannerVe=function(B){!this.bannerVe&&B&&(this.bannerVe=_.JW(37929),_.$k(_.q_(),this.bannerVe))};
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",String)],pI.prototype,"currentState",void 0);_.L([_.F(),_.H("design:type",Object)],pI.prototype,"scheduledJobId",void 0);_.L([_.F(),_.H("design:type",Object)],pI.prototype,"bannerString",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-network-status-banner"})],pI);
_.G(pI,"ytd-network-status-banner",function(){if(gy8!==void 0)return gy8;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return gy8=
B},{mode:1});var nyF;var k_=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};B.hidden=!0;B.frostedGlass=_.T("web_frosted_glass");return B};
_.w(k_,_.z);k_.prototype.computeHidden=function(B){return B&&B.status?!1:!0};
k_.prototype.handleUpdatePermissionRoleCommand=function(B){if(B=_.t(B,_.yZd))if(B=_.t(B.renderer,_.ShZ))this.data=B};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],k_.prototype,"componentBehavior",void 0);_.L([_.F({value:!0,computed:"computeHidden(data)"}),_.H("design:type",Object)],k_.prototype,"hidden",void 0);_.L([_.F(),_.H("design:type",Object)],k_.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],k_.prototype,"frostedGlass",void 0);
_.L([_.y({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],k_);
_.G(k_,"ytd-permission-role-bottom-bar-renderer",function(){if(nyF!==void 0)return nyF;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return nyF=B},{mode:1});var bMl;var Kxi;var CGB={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var XJ=function(){return _.z.apply(this,arguments)||this};
_.w(XJ,_.z);_.a=XJ.prototype;_.a.attached=function(){this.JSC$18608_scroller&&(this.JSC$18608_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18608_scroller.attached&&typeof this.JSC$18608_scroller.attached==="function"&&this.JSC$18608_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(x){x.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var B=_.Y9(this.hostElement);B.querySelector("tp-yt-paper-radio-group").selected="";var c=B.querySelector("#reason-text");c&&(c.value="");B.querySelector("#description-text").value=""}};
_.a.canSubmit=function(B,c){_.aJ(this.hostElement,"yt-invalidate-popup-tabbables");return!(B&&c)};
_.a.onCancel=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.a.onSubmit=function(){var B=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),c=this.hostElement.querySelector("tp-yt-paper-radio-group"),x=c.selectedItem,P=x.name;
x=x.innerText.trim();var Y=c.querySelector("#reason-text");c=void 0;Y&&(c=Y.value);(Y=this.descriptionText.value)&&(Y=Y.trim());hlc(this.data.searchQuery,B,P,x,Y,c);_.gj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.a.sendFormSubmitToast=function(){var B=_.Rw(_.Up("SBOX_INAPPROPRIATE_TOAST"));_.gj(this.hostElement,"yt-open-popup-action",[B,this])};
_.a.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(B){return B.active})};
_.a.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
XJ.prototype.onIronSelect=XJ.prototype.onIronSelect;XJ.prototype.onIronChange=XJ.prototype.onIronChange;XJ.prototype.dataChanged=XJ.prototype.dataChanged;_.L([_.F(),_.H("design:type",Object)],XJ.prototype,"data",void 0);_.L([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.H("design:type",Boolean)],XJ.prototype,"submitDisabled",void 0);_.L([_.F(),_.H("design:type",Boolean)],XJ.prototype,"suggestionSelected",void 0);
_.L([_.F(),_.H("design:type",Boolean)],XJ.prototype,"catagorySelected",void 0);_.L([_.jr("#scroller"),_.H("design:type",Object)],XJ.prototype,"JSC$18608_scroller",void 0);_.L([_.jr("#description-text"),_.H("design:type",Object)],XJ.prototype,"descriptionText",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"dataChanged",null);
_.L([_.nF("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"onIronChange",null);_.L([_.nF("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"onIronSelect",null);_.L([_.y({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],XJ);
_.G(XJ,"ytd-search-suggestion-report-dialog",function(){if(Kxi!==void 0)return Kxi;var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);return Kxi=B},{mode:1});var $_=function(B){var c=B.openPopupAction;var x=B.target;var P=B.container;var Y=B.popupContainerConfig;var g=B.getElement;B=B.removeWhenClosed===void 0?!1:B.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=c;this.target=x;this.container=P;this.popupContainerConfig=Y;this.getElement=g;this.JSC$18614_popupConfig=this.popupContainerConfig.JSC$17729_popupConfig[this.openPopupAction.popupType];this.rendererName=(c=this.getName())?_.I9I(c,r2z(this.popupContainerConfig,
c)):"";_.T("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=B);this.createPopup()};
$_.prototype.updatePopup=function(B){this.openPopupAction=B;this.JSC$18614_popupConfig=this.popupContainerConfig.JSC$17729_popupConfig[this.openPopupAction.popupType];jjz(this);_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
$_.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var qJz=function(B,c,x){(c=c&&B.JSC$18614_popupConfig.narrowProperties?B.JSC$18614_popupConfig.narrowProperties:B.JSC$18614_popupConfig.properties)&&x!==void 0&&(c.isAriaModal=x);UPs(B,c);B.isRtl()&&UPs(B,B.JSC$18614_popupConfig.rtlProperties);dPz(B)};
$_.prototype.createPopup=function(){var B=this.JSC$18614_popupConfig.component;if(this.popupContent=CBo(this,this.rendererName)){if(B){this.popup=CBo(this,B);var c=this.popupContent;_.T("web_enable_wrapper_for_cow_component_in_popup")&&(c=document.createElement("div"),c.appendChild(this.popupContent));_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18614_popupConfig.slotName&&c.setAttribute("slot",this.JSC$18614_popupConfig.slotName);B=this.popup;var x=this.container.tagName.toLowerCase(),
P=_.D3(c);_.DzA(_.Ru(B),_.cW(c,x,P));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.T("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Y9(this.container).appendChild(this.popup)}};
var jjz=function(B){var c,x,P=(c=B.openPopupAction.accessibilityData)==null?void 0:(x=c.accessibilityData)==null?void 0:x.label;P&&(B.popup.ariaLabel=P);var Y;((Y=B.popupContent.polymerController)!=null?Y:B.popupContent).data=(0,_.wW.unsafeClone)(B.openPopupAction.popup[B.getName()]);B.popupContent.duration=hfy(B);B.popupContent.positionType=B.openPopupAction.position;var g=B.openPopupAction.properties;g&&Object.keys(g).forEach(function(k){B.popupContent[k]=g[k]})},UPs=function(B,c){if(c)for(var x=
_.p(Object.keys(c)),P=x.next();!P.done;P=x.next())P=P.value,B.popup[P]=c[P]},dPz=function(B){if(B.openPopupAction.position){var c=B.JSC$18614_popupConfig.positionalProperties&&B.JSC$18614_popupConfig.positionalProperties[B.openPopupAction.position],x=B.JSC$18614_popupConfig.rtlPositionalProperties&&B.JSC$18614_popupConfig.rtlPositionalProperties[B.openPopupAction.position];
c=B.isRtl()&&x?x:c;c.shiftedHorizontalOffset&&(x=B.popup.style.display,B.popup.style.display="block",B.popupContent&&B.popup.positionTarget&&B.popupContent.clientWidth>B.popup.positionTarget.clientWidth&&(c.horizontalOffset=B.popup.positionTarget.clientWidth/2-c.shiftedHorizontalOffset),B.popup.style.display=x);UPs(B,c)}},mPz=function(B,c){if(c)for(var x=_.p(Object.keys(c)),P=x.next();!P.done;P=x.next())P=P.value,B.popup.style[P]=c[P]};
$_.prototype.getName=function(){return _.ot(this.openPopupAction.popup,"renderer")||_.ot(this.openPopupAction.popup,"dialog")||_.ot(this.openPopupAction.popup,"model")||void 0};
var hfy=function(B){B=B.openPopupAction.durationHintMs;return B===0?B:Math.max(4E3,B||4E3)};
$_.prototype.isRtl=function(){return _.v5("HTML_DIR")==="rtl"};
var CBo=function(B,c){B=B.getElement(c,B.target);B==null&&_.Ob(new _.mc("popup getElement returned null",c));return B};var TTl={};
TTl.YtPopupContainerBehavior=[_.Z5.YtComponentBehavior,_.s2.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_);_.Pr(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.YC(this.hostElement)},
closePopup:function(B){var c=this.createCacheKey(void 0,B);this.popups_[c]&&this.handleClosePopupAction_(void 0,B)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.EE.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.EE.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(B){B.opened&&B.keepBelowPlayer&&this.ensurePopupBelowPlayer(B)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var B in this.popups_){var c=this.popups_[B];if(c.popup.scrollAction==="refit"){var x=c.popup.positionTarget.getBoundingClientRect(),P=c.popup;x=x.top;var Y=c;if(!Y.naturalHeight){Y.popup.hidden=!1;Y.popup.style.position="fixed";Y.popup.style.top="0px";Y.popup.style.left="0px";var g=Y.popup.getBoundingClientRect();Y.naturalHeight=g.bottom-g.top;Y.popup.refit()}P.hidden=!(x>=Y.naturalHeight+60);c.popupContent.clientHeight===0&&c.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(B){this.popupContainerConfig=B},
handleOpenPopupAction:function(B,c){var x=B.openPopupAction,P=_.cp().resolve(_.Bp(_.sO))&&x.popupType==="TOAST";P&&!x.uniqueId&&(x.uniqueId=_.WS());if(!_.T("popup_container_parent_target_killswitch")){var Y;c=(Y=this.getParentTarget(c))!=null?Y:c}var g=this.ensurePopup_(x,c);return new _.bb(function(k){g.then(function(n){if(!n)return k();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(n.rendererName,n.openPopupAction.uniqueId);if(x.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return k();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var d=!(!b||!b.openPopupAction.beReused);d=!!x.reusePopup||d;if(n.popup.opened&&!d){P&&!n.openPopupAction.replacePopup||this.handleClosePopupAction_(n.rendererName,n.openPopupAction.uniqueId);d=x.popupType==="DIALOG"&&!_.T("popup_container_dialog_reopen_killswitch");if(!P&&!d&&b&&b.target==c&&!n.openPopupAction.replacePopup)return k();_.fl(n.popup,function(){this.completeOpenPopupAction_(x,c,n);k()}.bind(this))}else n.popup.opened?n.updatePopup(x):this.completeOpenPopupAction_(x,
c,n),k()}.bind(this))}.bind(this))},
getParentTarget:function(B){if(B&&B instanceof HTMLElement)for(var c=_.p(Object.entries(this.popups_)),x=c.next();!x.done;x=c.next())if(x=_.p(x.value),x.next(),x=x.next().value,x.popup.tagName==="TP-YT-IRON-DROPDOWN"&&B.closest(x.rendererName))return x.target},
completeOpenPopupAction_:function(B,c,x){x.updatePopup(B);B=this.narrowMediaQuery_.queryMatches;var P=this.isAriaModal;x.target=c;var Y;c=((Y=x.target.polymerController)!=null?Y:x.target).popupPositionTarget||x.target;x.JSC$18614_popupConfig.targetContainer&&(c=x.container);x.popup.positionTarget=c;x.popupContent.positionTarget=c;dPz(x);x.JSC$18614_popupConfig.forceFocus&&(x.popupContent.style.outline="none");x.popupContent.tabIndex=-1;x.JSC$18614_popupConfig.narrowProperties&&(x.popup.style.position=
"static");x.JSC$18614_popupConfig.preventAutonav&&x.popup.setAttribute("prevent-autonav",!0);x.JSC$18614_popupConfig.forceCloseOnOutsideClick&&x.popup.setAttribute("force-close-on-outside-click",!0);qJz(x,B,P);mPz(x,x.JSC$18614_popupConfig.styles);x.isRtl()&&mPz(x,x.JSC$18614_popupConfig.rtlStyles);if(!x.openPopupAction.shouldStopParentSignal){var g;Y=(g=x.target.polymerController)!=null?g:x.target;(x.popupContent.startForwardingEvents||x.popupContainerConfig.forwardingEnabledPopups.has(x.rendererName))&&
Y.parentComponent!==x.popupContent&&x.popupContent!==x.target&&x.target!==document.body&&(x.popupContent.startForwardingEvents?x.popupContent.startForwardingEvents(x.popupContainerConfig.forwardedEvents,x.target):(x.JSC$18614_eventForwarder||(x.JSC$18614_eventForwarder=new _.KC(x.popupContent)),x.JSC$18614_eventForwarder.start(x.popupContainerConfig.forwardedEvents,x.target)))}x=x.popup;x.addEventListener("iron-overlay-opened",_.$9(this,this.onPopupIronOverlayOpened_));x.addEventListener("iron-overlay-closed",
_.$9(this,this.onPopupIronOverlayClosed_));x.addEventListener("iron-overlay-canceled",_.$9(this,this.onPopupIronOverlayCanceled_));x.addEventListener("yt-refit",_.$9(this,this.refitPopup_));x.addEventListener("yt-invalidate-popup-tabbables",_.$9(this,this.handleInvalidatePopupTabbables_));x.open()},
getPopupDurationMs_:function(B){return B.durationHintMs===0?B.durationHintMs:Math.max(4E3,B.durationHintMs||4E3)},
handleClosePopupAction_:function(B,c){var x=_.T("web_popup_cache_key_killswitch")||!!c;if(B||x){var P=this.createCacheKey(B,c);B=(B=this.popups_[P])&&B.popup}else B=_.S95(_.Hb);if(B&&B.close){if(c=_.cp().resolve(_.Bp(_.Xr)))B.restoreFocusOnClose=c.isKeyBoardInUse();B.close();this.removePopup_(B,P)}},
handleClosePopupCommand_:function(B){B.closePopupCommand&&B.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,B.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(B){var c={},x;for(x in this.popups_)if(c={key$jscomp$1151:c.key$jscomp$1151},c.key$jscomp$1151=x,!B||!B.some(function(g){return function(k){return k==g.key$jscomp$1151}}(c))){var P=this.popups_[c.key$jscomp$1151],Y=P.popup;
_.cp().resolve(_.Bp(_.sO))&&P.openPopupAction.popupType==="TOAST"||(Y&&Y.close&&Y.close(),this.removePopup_(Y,c.key$jscomp$1151))}},
handleClosePopupsAction_:function(B){B.forEach(function(c){var x=this.popups_[c];x&&((x=x.popup)&&x.close&&x.close(),this.removePopup_(x,c))}.bind(this))},
handleGetPopupOpenedAction_:function(B,c){return(c=this.createCacheKey(B,c))&&this.popups_[c]?this.popups_[B].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var B=[],c;for(c in this.popups_){var x=this.popups_[c];x.popup.opened&&B.push(x)}return B},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(B,c){_.T("ytpopup_disable_default_html_caching")&&B&&B.removeWhenClosed&&(_.Y9(this.hostElement).removeChild(B),c&&this.popups_[c]&&delete this.popups_[c])},
shouldReusePopup_:function(B){return!(!B||!B.reusePopup)||!(!B||!B.beReused)},
ensurePopup_:function(B,c){this.maybeCreateNarrowMediaQuery_();var x=_.ot(B.popup,"renderer")||_.ot(B.popup,"dialog")||_.ot(B.popup,"model");if(!x)return _.$C();x=_.I9I(x,r2z(this.popupContainerConfig,x));return _.$C(this.getAndMaybeCreatePopup_(B,x,c))},
getAndMaybeCreatePopup_:function(B,c,x){var P=this.createCacheKey(c,B.uniqueId);if(this.popups_[P])return this.popups_[P];B=new $_({openPopupAction:B,target:x,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(c)});return this.popups_[P]=B},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(B){return _.T("ytpopup_disable_default_html_caching")?B&&B.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",_.$9(this,this.openPopupQueryMatchesChanged_)),_.Y9(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(B){B=B.detail.value;for(var c in this.popups_)qJz(this.popups_[c],B)},
onPopupIronOverlayClosed_:function(B){var c=B.currentTarget,x=_.UTl(c);x=x.length>0?x[0]:c;if(x.is!=="ytd-reel-watch-while-dialog-renderer"||B.target.is!=="tp-yt-iron-dropdown"){B.detail.popup=c;B.detail.popupRenderer=x;var P,Y={context:{openingElement:((P=this.popups_[(x==null?void 0:x.is)||""])==null?void 0:P.target)||void 0}};Object.assign(Y,B.detail);var g;_.aJ((g=x.hostElement)!=null?g:x,"yt-popup-closed",Y);c.removeEventListener("yt-refit",_.$9(this,this.refitPopup_));c.removeEventListener("yt-invalidate-popup-tabbables",
_.$9(this,this.handleInvalidatePopupTabbables_));c.removeEventListener("iron-overlay-canceled",_.$9(this,this.onPopupIronOverlayCanceled_));c.removeEventListener("iron-overlay-closed",_.$9(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(c)}},
onPopupIronOverlayCanceled_:function(B,c){var x=B.currentTarget,P=_.UTl(x);P=P.length>0?P[0]:x;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||B.target.is!=="tp-yt-iron-dropdown"){var Y;_.aJ((Y=P.hostElement)!=null?Y:P,"yt-popup-canceled",B.detail);Y=c?_.AV(c):null;(!c||["click","tap"].includes(c.type))&&!x.hasAttribute("force-close-on-outside-click")&&x.positionTarget&&Y&&Y.includes(x.positionTarget)&&B.preventDefault();x.restoreFocusOnClose=_.VT.keyboardEventMatchesKeys(c,"esc")}},
onPopupIronOverlayOpened_:function(B){B=B.currentTarget;var c=_.UTl(B);c=c.length>0?c[0]:B;var x,P;_.aJ((x=c.hostElement)!=null?x:c,"yt-popup-opened",(P=c.hostElement)!=null?P:c);B.keepBelowPlayer&&(this.ensurePopupBelowPlayer(B,!0),this.dynamicallyPositionedElements_.add(B));x=_.cp().resolve(_.Bp(_.Xr));P=!!c.querySelector("#toast");x&&x.isKeyBoardInUse()&&!P&&(typeof c.focusFirstItem==="function"?c.focusFirstItem():(c=_.Fg5(B),c.length&&c[0].focus()));B.removeEventListener("iron-overlay-opened",
_.$9(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(B){B=B.currentTarget;B.refit&&B.refit()},
refitPopups_:function(){for(var B in this.popups_)this.popups_[B].refit()},
handleInvalidatePopupTabbables_:function(B){B=B.currentTarget;B.invalidateTabbables&&B.invalidateTabbables()},
createCacheKey:function(B,c){return _.T("web_popup_cache_key_killswitch")?c?B+"#"+c:B:c?"#"+c:B},
openSheet:function(B,c){var x=B==null?void 0:B.openPopupActionCommand;!x&&(B==null?0:B.viewModel)&&(x={openPopupAction:{popup:{sheetViewModel:B.viewModel},popupType:"CONTEXTUAL_SHEET"}});x&&this.handleOpenPopupAction(x,c)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var B=this;return _.X(function(c){return c.return(B.handleGetOpenedPopupsAction_().filter(function(x){var P;return((P=x.openPopupAction)==null?void 0:P.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(B,c,x){if(_.T("web_dialog_utils_killswitch")){var P=B==null?void 0:B.openPopupActionCommand,Y=(x==null?0:x.ariaLabel)?{accessibilityData:{accessibilityData:{label:x.ariaLabel}}}:void 0;!P&&(B==null?0:B.viewModel)&&(P={openPopupAction:Object.assign({},{popup:{dialogViewModel:B.viewModel},popupType:(x==null?0:x.isModal)?"MODAL":"DIALOG"},Y&&Y)});P&&this.handleOpenPopupAction(P,c)}else{if(Y=B==null?void 0:B.viewModel){var g=x=x===void 0?{}:x;x=g.ariaLabel;Y={popup:{dialogViewModel:Y},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:x}};x&&(Y.accessibilityData=g);Y={openPopupAction:Y}}else Y=void 0;if(Y=(P=Y)!=null?P:B==null?void 0:B.openPopupActionCommand)this.isAriaModal=_.T("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Y,c)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var B=this;return _.X(function(c){return c.return(B.handleGetOpenedPopupsAction_().filter(function(x){var P;return((P=x.openPopupAction)==null?void 0:P.popupType)==="DIALOG"}).length>0)})}}];var VYz;var tYc;var wI8=_.r2(["about:blank"]),nI=function(){var B=_.z.apply(this,arguments)||this;B.isMuted=!1;B.pageLoadTimeoutId=void 0;return B};
_.w(nI,_.z);_.a=nI.prototype;_.a.dataChanged=function(){var B=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var c=this.data.url,x=_.OE(c);_.T("enable_yt_ata_iframe_authuser")?(x=_.OE(c),_.EG(this.iframe,mZB(x))):_.EG(this.iframe,x);this.pageLoadTimeoutId=_.Vp(_.EB(),function(){return void B.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.BJ({destination:window,iframe:this.iframe,origin:_.O40(x.toString()),channelName:"ataiframe",onMessage:_.zHo(xkA,function(P){Pi8(P.data)?(P=_.TL(P.data,1,_.Vr,_.xw()),P.length!==1?_.Ob(Error("ql")):(P=P[0],P===3?(B.isMuted=!0,B.logStateChanged({adMuteRequested:!0})):P===1&&B.close())):_.Ob(Error("rl"))}),
onEstablished:function(){B.cancelPageLoadTimeout();B.logStateChanged({pageLoadSucceeded:!0})}})}};
_.a.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.EB().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.a.logStateChanged=function(B){var c;if((c=this.data)==null?0:c.trackingParams)B={adsClientData:{aboutThisAdData:B}},_.q_().stateChanged(this.data.trackingParams,B)};
_.a.close=function(){_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.handlesPopupClosed=function(B,c){var x=this,P,Y;return _.X(function(g){if(g.nextAddress==1)return _.v5("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.gj(x.hostElement,"on-about-this-ad-popup-closed",[x.isMuted,c]),g.jumpTo(0)):B&&TLF(B)?_.K(g,VBr(B),4):(x.isMuted&&_.gj(x.hostElement,"yt-mute-ad-action",[x.is,x]),g.jumpTo(0));if(P=g.yieldResult){var k=Y=new _.Ip(P),n=x.isMuted;k.getOptions().includes("onAboutThisAdPopupClosed")?_.weZ(k,"onAboutThisAdPopupClosed",{isMuted:n,layoutId:c}):_.c8("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Kq(g)})};
_.a.onPopupClosed=function(B){var c=this,x,P;return _.X(function(Y){x=_.PM(wI8);_.EG(c.iframe,x);c.cancelPageLoadTimeout();if(!c.data)return Y.jumpTo(0);c.ytRendererBehavior.markDirty();P=B.detail.context.openingElement;return _.K(Y,c.handlesPopupClosed(P,c.data.layoutId),0)})};
_.a.detached=function(){this.cancelPageLoadTimeout()};
_.a.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nI.prototype.onPopupClosed=nI.prototype.onPopupClosed;nI.prototype.dataChanged=nI.prototype.dataChanged;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.L([_.jr("#iframe"),_.H("design:type",HTMLIFrameElement)],nI.prototype,"iframe",void 0);_.L([_.F(),_.H("design:type",Object)],nI.prototype,"data",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nI.prototype,"dataChanged",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],nI.prototype,"onPopupClosed",null);_.L([_.Em({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],nI);
_.G(nI,"yt-about-this-ad-renderer",function(){if(tYc===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;VYz===void 0&&(VYz=document.createElement("template"));var P=VYz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);tYc=B}B=tYc;return B},{mode:2});var NTA;var IC6;var bu=function(B){var c=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.maxFileSizeMB=B;Object.setPrototypeOf(this,bu.prototype)};
_.w(bu,Error);var J8r=function(B,c){var x=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=x.message;"stack"in x&&(this.stack=x.stack);this.minWidth=B;this.minHeight=c;Object.setPrototypeOf(this,J8r.prototype)};
_.w(J8r,Error);var Wx6=function(B){this.requirements=B;this.JSC$18642_maxFileSize=B.maxFileSizeMB*1024*1024},lCi=function(B,c){if(c.size>B.JSC$18642_maxFileSize)throw new bu(B.requirements.maxFileSizeMB);
};var Eyz=function(B,c){this.canvas=B;this.imageEditorBuilder=c};
Eyz.prototype.addEventListeners=function(B){var c=function(Y){OMr(B,Y)};
this.JSC$18648_mouseDownEvent=c;var x=function(Y){oy6(B,Y)};
this.JSC$18648_mouseMoveEvent=x;var P=function(){Qjs(B)};
this.JSC$18648_mouseUpEvent=P;this.canvas.addEventListener("mousedown",c);this.canvas.addEventListener("mousemove",x);document.addEventListener("mouseup",P)};
Eyz.prototype.removeEventListeners=function(){this.JSC$18648_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18648_mouseDownEvent);this.JSC$18648_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18648_mouseMoveEvent);this.JSC$18648_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18648_mouseUpEvent)};
var Fx8=function(B,c){B.removeEventListeners();return new Promise(function(x){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var Y=B.imageEditorBuilder(B.canvas,P);B.addEventListeners(Y);x(Y)};
P.src=c})},KI=function(B,c,x,P,Y,g,k,n){this.canvas=B;
this.image=c;this.requiredRatio=x;this.minImageCropDimension=P;this.minOutputImageResolution=Y;this.component=g;this.styleFocusedCorner=n===void 0?!0:n;this.action=2;this.focusedCorner=this.resizeCorner=0;B=this.canvas.getContext("2d");if(!B)throw Error("sl");this.ctx=B;this.canvasMargin=k!=null?k:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;k=this.image;B=this.canvasInnerWidth/k.width;k.height*B>912&&(B=k.width/k.height*912/k.width);k=B;this.scaledImageWidth=this.canvas.width%2?
w3N(this.image.width*k):tBl(this.image.width*k);this.scaledImageHeight=Math.round(this.image.height*k);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18651_overlayMarginBottom=this.JSC$18651_overlayMarginTop=this.canvasMargin;this.JSC$18651_overlayMarginRight=this.JSC$18651_overlayMarginLeft=this.horizontalMargin;this.JSC$18651_overlayWidth=this.scaledImageWidth;this.JSC$18651_overlayHeight=this.scaledImageHeight;
B=this.image.width/this.image.height;B>this.requiredRatio?(this.JSC$18651_overlayWidth=this.canvas.width%2?w3N(this.scaledImageHeight*this.requiredRatio):tBl(this.scaledImageHeight*this.requiredRatio),this.JSC$18651_overlayMarginRight=this.JSC$18651_overlayMarginLeft=(this.canvas.width-this.JSC$18651_overlayWidth)/2):B<this.requiredRatio&&(this.JSC$18651_overlayHeight=this.canvas.height%2?w3N(this.scaledImageWidth/this.requiredRatio):tBl(this.scaledImageWidth/this.requiredRatio),this.JSC$18651_overlayMarginBottom=
this.JSC$18651_overlayMarginTop=(this.canvas.height-this.JSC$18651_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*k,this.scaledImageWidth);vyS(this)};
KI.prototype.getContext=function(){return this.ctx};
var OMr=function(B,c){c={x:Math.round(c.pageX-B.canvas.getBoundingClientRect().left),y:Math.round(c.pageY-B.canvas.getBoundingClientRect().top)};B.dragStart=c;zfc(B,c)!==0?(B.action=1,SJs(B,c),B.resizeCorner=zfc(B,c)):c.x>B.JSC$18651_overlayMarginLeft&&c.x<B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth&&c.y>B.JSC$18651_overlayMarginTop&&c.y<B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight&&(B.action=0)},y8F=function(B,c){switch(c){case 1:return{x:B.JSC$18651_overlayMarginLeft,
y:B.JSC$18651_overlayMarginTop};case 2:return{x:B.JSC$18651_overlayMarginLeft,y:B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight};case 3:return{x:B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth,y:B.JSC$18651_overlayMarginTop};case 4:return{x:B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth,y:B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight};default:throw Error("tl");}},MYS=function(B,c){if(B.focusedCorner!==0){B.dragStart=y8F(B,B.focusedCorner);
B.action=1;B.resizeCorner=B.focusedCorner;var x=B.dragStart.x,P=B.dragStart.y;switch(c){case 0:B.focusedCorner===1||B.focusedCorner===4?(x-=10,P-=10):(x-=10,P+=10);break;case 1:B.focusedCorner===1||B.focusedCorner===4?(x+=10,P+=10):(x+=10,P-=10);break;case 2:x=B.focusedCorner===1||B.focusedCorner===4?x-10:x+10;P-=10;break;case 3:x=B.focusedCorner===1||B.focusedCorner===4?x+10:x-10;P+=10;break;default:throw Error("ul");}GnF(B,{x:x,y:P});vyS(B);B.action=2;B.dragStart=void 0}},oy6=function(B,c){c={x:Math.round(c.pageX-
B.canvas.getBoundingClientRect().left),
y:Math.round(c.pageY-B.canvas.getBoundingClientRect().top)};SJs(B,c);switch(B.action){case 1:GnF(B,c);break;case 0:B.dragStart&&(B.JSC$18651_overlayMarginLeft=Math.max(B.horizontalMargin,Math.min(B.JSC$18651_overlayMarginLeft-(B.dragStart.x-c.x),B.horizontalMargin+B.scaledImageWidth-B.JSC$18651_overlayWidth)),B.JSC$18651_overlayMarginRight=B.canvas.width-B.JSC$18651_overlayMarginLeft-B.JSC$18651_overlayWidth,B.JSC$18651_overlayMarginTop=Math.max(B.canvasMargin,Math.min(B.JSC$18651_overlayMarginTop-
(B.dragStart.y-c.y),B.scaledImageHeight-B.JSC$18651_overlayHeight+B.canvasMargin)),B.JSC$18651_overlayMarginBottom=B.canvas.height-(B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight));break;default:return}vyS(B);B.dragStart=c},Qjs=function(B){B.action=2;
B.dragStart=void 0;document.body.style.cursor="auto"},SJs=function(B,c){switch(zfc(B,c)){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:B.action!==1&&(document.body.style.cursor="auto")}},zfc=function(B,c){var x=B.JSC$18651_overlayMarginLeft-5,P=B.JSC$18651_overlayMarginTop-5,Y=B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth-5;
B=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-5;return LxN(c,{x:x,y:P})?1:LxN(c,{x:Y,y:P})?3:LxN(c,{x:x,y:B})?2:LxN(c,{x:Y,y:B})?4:0},LxN=function(B,c){return B.x>=c.x&&B.x<=c.x+10&&B.y>=c.y&&B.y<=c.y+10},GnF=function(B,c){if(B.dragStart)switch(B.resizeCorner){case 2:Math.abs((B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth-c.x)/(c.y-B.JSC$18651_overlayMarginTop))>=B.requiredRatio?ZMr(B,c.x):HMA(B,c.y);
break;case 1:Math.abs((B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth-c.x)/(B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-c.y))>=B.requiredRatio?fCF(B,c.x):HMA(B,c.y);break;case 4:Math.abs((c.x-B.JSC$18651_overlayMarginLeft)/(c.y-B.JSC$18651_overlayMarginTop))>=B.requiredRatio?ZMr(B,c.x):iMz(B,c.y);break;case 3:Math.abs((c.x-B.JSC$18651_overlayMarginLeft)/(B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-c.y))>=B.requiredRatio?fCF(B,c.x):iMz(B,c.y);break;default:throw Error("vl");
}},ZMr=function(B,c){var x=B.JSC$18651_overlayMarginTop;
B.JSC$18651_overlayMarginBottom=A8i(B,c);B.JSC$18651_overlayHeight=B.canvas.height-B.JSC$18651_overlayMarginBottom-x;B.JSC$18651_overlayWidth=Math.round(B.JSC$18651_overlayHeight*B.requiredRatio);uqA(B)},fCF=function(B,c){var x=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight;
B.JSC$18651_overlayMarginTop=A8i(B,c);B.JSC$18651_overlayHeight=x-B.JSC$18651_overlayMarginTop;B.JSC$18651_overlayWidth=Math.round(B.JSC$18651_overlayHeight*B.requiredRatio);uqA(B)},uqA=function(B){switch(B.resizeCorner){case 2:case 1:B.JSC$18651_overlayMarginLeft=B.canvas.width-B.JSC$18651_overlayMarginRight-B.JSC$18651_overlayWidth;
break;case 4:case 3:B.JSC$18651_overlayMarginRight=B.canvas.width-B.JSC$18651_overlayMarginLeft-B.JSC$18651_overlayWidth;break;default:throw Error("vl");}},HMA=function(B,c){var x=B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth;
B.JSC$18651_overlayMarginLeft=DP8(B,c);B.JSC$18651_overlayWidth=x-B.JSC$18651_overlayMarginLeft;B.JSC$18651_overlayHeight=Math.round(B.JSC$18651_overlayWidth/B.requiredRatio);r8A(B)},iMz=function(B,c){var x=B.JSC$18651_overlayMarginLeft;
B.JSC$18651_overlayMarginRight=DP8(B,c);B.JSC$18651_overlayWidth=B.canvas.width-B.JSC$18651_overlayMarginRight-x;B.JSC$18651_overlayHeight=Math.round(B.JSC$18651_overlayWidth/B.requiredRatio);r8A(B)},r8A=function(B){switch(B.resizeCorner){case 2:case 4:B.JSC$18651_overlayMarginBottom=B.canvas.height-B.JSC$18651_overlayMarginTop-B.JSC$18651_overlayHeight;
break;case 1:case 3:B.JSC$18651_overlayMarginTop=B.canvas.height-B.JSC$18651_overlayMarginBottom-B.JSC$18651_overlayHeight;break;default:throw Error("vl");}},A8i=function(B,c){switch(B.resizeCorner){case 2:c=B.canvas.height-(B.JSC$18651_overlayMarginTop+Rfy(B,c));
break;case 4:c=B.canvas.height-(B.JSC$18651_overlayMarginTop+efc(B,c));break;case 1:c=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-Rfy(B,c);break;case 3:c=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-efc(B,c);break;default:throw Error("vl");}return Math.max(c,B.canvasMargin)},Rfy=function(B,c){c=B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth-Math.max(c,B.horizontalMargin);
c=c<0?B.JSC$18651_overlayWidth:Math.max(c,B.minOverlayWidth);return Math.round(c/B.requiredRatio)},efc=function(B,c){c=B.canvas.width-Math.max(B.canvas.width-c,B.horizontalMargin)-B.JSC$18651_overlayMarginLeft;
c=c<0?B.JSC$18651_overlayWidth:Math.max(c,B.minOverlayWidth);return Math.round(c/B.requiredRatio)},DP8=function(B,c){switch(B.resizeCorner){case 2:c=B.canvas.width-B.JSC$18651_overlayMarginRight-Beo(B,c);
break;case 4:c=B.canvas.width-B.JSC$18651_overlayMarginLeft-Beo(B,c);break;case 1:c=B.canvas.width-B.JSC$18651_overlayMarginRight-clr(B,c);break;case 3:c=B.canvas.width-B.JSC$18651_overlayMarginLeft-clr(B,c);break;default:throw Error("vl");}return Math.max(c,B.horizontalMargin)},Beo=function(B,c){c=B.canvas.height-Math.max(B.canvas.height-c,B.canvasMargin)-B.JSC$18651_overlayMarginTop;
return c<0?B.JSC$18651_overlayWidth:Math.max(Math.round(c*B.requiredRatio),B.minOverlayWidth)},clr=function(B,c){c=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-Math.max(c,B.canvasMargin);
return c<0?B.JSC$18651_overlayWidth:Math.max(Math.round(c*B.requiredRatio),B.minOverlayWidth)},vyS=function(B){B.ctx.clearRect(0,0,B.canvas.width,B.canvas.height);
B.ctx.drawImage(B.image,0,0,B.image.width,B.image.height,B.horizontalMargin,B.canvasMargin,B.canvas.width-2*B.horizontalMargin,B.scaledImageHeight);B.ctx.fillStyle="rgba(0, 0, 0, 0.7)";B.ctx.fillRect(B.horizontalMargin,B.JSC$18651_overlayMarginTop,B.JSC$18651_overlayMarginLeft-B.horizontalMargin,B.JSC$18651_overlayHeight);B.ctx.fillRect(B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth,B.JSC$18651_overlayMarginTop,B.JSC$18651_overlayMarginRight-B.horizontalMargin,B.JSC$18651_overlayHeight);B.ctx.fillRect(B.horizontalMargin,
B.canvasMargin,B.scaledImageWidth,B.JSC$18651_overlayMarginTop-B.canvasMargin);B.ctx.fillRect(B.horizontalMargin,B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight,B.scaledImageWidth,B.JSC$18651_overlayMarginBottom-B.canvasMargin);B.drawOverlay();B.component&&_.aJ(B.component,"image-updated")};
KI.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18651_overlayMarginLeft,this.JSC$18651_overlayMarginTop,this.JSC$18651_overlayWidth,this.JSC$18651_overlayHeight);xIs(this)};
var xIs=function(B){var c=B.JSC$18651_overlayMarginLeft-5,x=B.JSC$18651_overlayMarginTop-5,P=B.JSC$18651_overlayMarginLeft+B.JSC$18651_overlayWidth-5,Y=B.JSC$18651_overlayMarginTop+B.JSC$18651_overlayHeight-5;B.ctx.fillStyle="#FFF";B.ctx.fillRect(c,x,10,10);B.ctx.strokeRect(c,x,10,10);B.ctx.fillRect(P,x,10,10);B.ctx.strokeRect(P,x,10,10);B.ctx.fillRect(c,Y,10,10);B.ctx.strokeRect(c,Y,10,10);B.ctx.fillRect(P,Y,10,10);B.ctx.strokeRect(P,Y,10,10);if(B.focusedCorner!==0&&B.styleFocusedCorner){B.ctx.lineWidth=
4;B.ctx.strokeStyle="#3EA6FF";switch(B.focusedCorner){case 1:--c;--x;break;case 2:--c;x=Y-1;break;case 3:c=P-1;--x;break;case 4:c=P-1;x=Y-1;break;default:return}B.ctx.strokeRect(c,x,12,12)}};
KI.prototype.crop=function(B,c){c=c===void 0?!0:c;var x=this.image.width/this.scaledImageWidth,P=document.createElement("canvas"),Y=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$18651_overlayWidth*x,k=this.JSC$18651_overlayHeight*x;P.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);P.height=Math.max(k,Y);B&&(P.width=Math.min(P.width,P.height),P.height=Math.min(P.width,P.height));
B=P.getContext("2d");if(!B)throw Error("jl");Y=(this.JSC$18651_overlayMarginLeft-this.horizontalMargin)*x;x*=this.JSC$18651_overlayMarginTop-this.canvasMargin;c||(B.fillStyle="white",B.fillRect(0,0,P.width,P.height));B.drawImage(this.image,Y,x,g,k,0,0,P.width,P.height);return P};var PlB=function(B,c,x,P,Y){KI.call(this,B,c,x,P,void 0,Y,8,!1)};
_.w(PlB,KI);PlB.prototype.drawOverlay=function(){var B=this.getContext(),c=this.JSC$18651_overlayWidth,x=this.JSC$18651_overlayHeight,P=this.JSC$18651_overlayMarginTop,Y=this.JSC$18651_overlayMarginLeft;B.lineWidth=2;B.strokeStyle="#3EA6FF";B.beginPath();B.arc(Y+c/2,P+x/2,c/2,0,2*Math.PI);B.stroke();B.strokeRect(Y,P,c,x);xIs(this)};
var Yoy={maxFileSizeMB:15,minWidth:98,minHeight:98},aG8=["image/png","image/jpeg","image/gif"],jC=function(){var B=_.z.apply(this,arguments)||this;B.fileSelectorFocusListener=null;B.errorMessage=null;B.isLoading=!0;B.hideContainer=!0;B.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return B};
_.w(jC,_.z);_.a=jC.prototype;_.a.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.a.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.a.computePlaylistThumbnail=function(B){return B==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.a.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.gj(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.a.setErrorState=function(B){this.resetErrorState();B&&(this.errorMessage=B)};
_.a.showPopup=function(){var B=this;this.hideContainer=!1;_.Vp(_.EE,function(){_.aJ(B.hostElement,"yt-refit")});
this.isLoading=!1};
_.a.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.a.closePopup=function(){this.resetFileSelector();_.gj(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onCancelTap=function(){this.isPlaylistThumbnail||_.gj(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.a.openFileSelector=function(){var B=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Vp(_.EE,function(){setTimeout(function(){if(!B.fileSelector.files||B.fileSelector.files.length===0)B.onCancelTap();B.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(c){c instanceof Error?_.lb(c):_.Eb(new _.mc(JSON.stringify(c)))}};
_.a.handleFileSelection=function(){var B=this,c,x,P,Y,g,k;return _.X(function(n){switch(n.nextAddress){case 1:_.kM(n,2);if(!B.fileSelector.files||!B.imageEditorCanvas)return B.onCancelTap(),n.return();c=B.fileSelector.files[0];lCi(B.imageChecker,c);_.kM(n,4);return _.K(n,riB(c),6);case 6:B.mimeType=n.yieldResult;_.Gw(n,5,2);break;case 4:_.be(n,2),_.gj(B.hostElement,"yt-image-selection-error-action",[(x=B.data)==null?void 0:x.genericImageLoadErrorMessage]),B.onCancelTap();case 5:P=new FileReader;P.addEventListener("load",
function(){var b,d;return _.X(function(q){if(q.nextAddress==1){if(!P.result)return _.Ob(Error("ll")),q.return();b=P.result;d=new Image;d.src=b;d.onload=function(){try{var C=B.imageChecker;if(d.width<C.requirements.minWidth||d.height<C.requirements.minHeight)throw new J8r(C.requirements.minWidth,C.requirements.minHeight);}catch(V){if(V instanceof J8r){var h;_.gj(B.hostElement,"yt-image-selection-error-action",[(h=B.data)==null?void 0:h.imageDimensionErrorMessage]);B.logImageDimensionErrorVe()}else V instanceof
Error?_.lb(V):(C=new _.mc(JSON.stringify(V)),_.lb(C));B.onCancelTap()}B.showPopup()};
d.onerror=function(){var C;_.gj(B.hostElement,"yt-image-selection-error-action",[(C=B.data)==null?void 0:C.genericImageLoadErrorMessage]);B.onCancelTap()};
return _.K(q,Fx8(B.imageEditorCanvas,b),2)}B.imageEditor=q.yieldResult;B.updatePositionOfAllCorners();B.addEventListeners(B.imageEditor);_.Kq(q)})},!1);
P.readAsDataURL(c);_.Gw(n,0);break;case 2:Y=_.be(n),Y instanceof bu?_.gj(B.hostElement,"yt-image-selection-error-action",[(g=B.data)==null?void 0:g.imageSizeErrorMessage]):(Y instanceof Error?_.lb(Y):_.Eb(new _.mc(JSON.stringify(Y))),_.gj(B.hostElement,"yt-image-selection-error-action",[(k=B.data)==null?void 0:k.genericImageLoadErrorMessage])),B.onCancelTap(),_.Kq(n)}})};
_.a.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var B=_.dX(_.q_(),{veType:232707,visualElement:_.JW(232707)});B&&(B={visualElement:B},_.UL().reportShown(B))}};
_.a.handleImageSelectionErrorAction=function(B){this.isPlaylistThumbnail&&_.Bvx(this.hostElement,B)};
_.a.convertToImageFormatBundle=function(B){var c=this,x,P,Y;return _.X(function(g){switch(g.nextAddress){case 1:return x=B.toDataURL(c.outputMimeType,1),_.K(g,RdB(x),2);case 2:P=g.yieldResult;_.kM(g,3);lCi(c.imageChecker,P);_.Gw(g,4);break;case 3:Y=_.be(g);if(!(Y instanceof bu))throw Y;_.Ob(new _.mc("Output size is bigger than input size for image",c.mimeType,c.outputMimeType,P.size));x=B.toDataURL("image/jpeg",.95);return _.K(g,RdB(x),6);case 6:P=g.yieldResult;case 4:return g.return({dataUrl:x,imageFile:P})}})};
_.a.handleUploadImageToScottyCommand=function(B){var c=this,x,P,Y,g,k,n,b,d,q,C;return _.X(function(h){switch(h.nextAddress){case 1:if(!c.imageEditor||!_.t(B,qci))return h.return();x=_.t(B,qci).scottyUploadUrl;if(!x){var V=new _.mc("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.lb(V);return h.return()}_.kM(h,2);c.setLoadingState();P=c.imageEditor.crop(!1,!1);return _.K(h,c.convertToImageFormatBundle(P),4);case 4:return Y=h.yieldResult,_.K(h,uXB(Y.imageFile,x),5);case 5:g=
h.yieldResult;((k=c.data)==null?0:k.onUploadEndpoint)?(n=c.buildUploadServiceEndpoint(g),c.ytComponentBehavior.resolveCommand(n),b=_.t(n,_.QR),((d=b)==null?0:d.params)?c.closePopup():c.resetFileSelector()):(_.gj(c.hostElement,"yt-image-updated-action",[Y.dataUrl,g]),c.closePopup());_.Gw(h,0);break;case 2:q=_.be(h),c.setErrorState((C=c.data)==null?void 0:C.uploadErrorMessage),q instanceof Error?_.lb(q):(V=new _.mc(JSON.stringify(q)),_.lb(V)),_.Kq(h)}})};
_.a.buildUploadServiceEndpoint=function(B){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",B),this.data.onUploadEndpoint):null};
_.a.dataChanged=function(){var B=this,c;return _.X(function(x){if(x.nextAddress==1){if(!B.data||!B.canvasElement)return x.return();B.data.imageRatio&&B.data.minImageCropWidth||_.Eb(new _.mc("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));c=function(P,Y){return B.data.imageType==="IMAGE_TYPE_AVATAR"?new PlB(P,Y,B.data.imageRatio,[B.data.minImageCropWidth,B.data.minImageCropWidth/B.data.imageRatio],B.hostElement):new KI(P,Y,B.data.imageRatio,[B.data.minImageCropWidth,
B.data.minImageCropWidth/B.data.imageRatio],void 0,B.hostElement,8,!1)};
B.imageEditorCanvas=new Eyz(B.canvasElement,c);return B.data.url?_.K(x,Fx8(B.imageEditorCanvas,B.data.url),3):(B.hideContainer=!0,B.openFileSelector(),x.jumpTo(0))}B.imageEditor=x.yieldResult;B.showPopup();B.addEventListeners(B.imageEditor);_.Kq(x)})};
_.a.addEventListeners=function(B){this.removeEventListeners();var c=function(Y){OMr(B,Y)};
this.JSC$18659_mouseDownEvent=c;var x=function(Y){oy6(B,Y)};
this.JSC$18659_mouseMoveEvent=x;var P=function(){Qjs(B)};
this.JSC$18659_mouseUpEvent=P;this.topLeftCorner.addEventListener("mousedown",c);this.topLeftCorner.addEventListener("mousemove",x);this.topLeftCorner.addEventListener("mouseup",P);this.topRightCorner.addEventListener("mousedown",c);this.topRightCorner.addEventListener("mousemove",x);this.topRightCorner.addEventListener("mouseup",P);this.bottomLeftCorner.addEventListener("mousedown",c);this.bottomLeftCorner.addEventListener("mousemove",x);this.bottomLeftCorner.addEventListener("mouseup",P);this.bottomRightCorner.addEventListener("mousedown",
c);this.bottomRightCorner.addEventListener("mousemove",x);this.bottomRightCorner.addEventListener("mouseup",P)};
_.a.removeEventListeners=function(){this.JSC$18659_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18659_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18659_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18659_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18659_mouseDownEvent));this.JSC$18659_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18659_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18659_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18659_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18659_mouseMoveEvent));this.JSC$18659_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18659_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18659_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18659_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18659_mouseUpEvent))};
_.a.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var B=document.activeElement;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;switch(B){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};
_.a.updatePositionOfCorner=function(B,c){var x=B.y-c.offsetHeight/2+4;c.style.left=B.x-c.offsetWidth/2+16+"px";c.style.top=x+"px"};
_.a.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var B=_.p([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),c=B.next();!c.done;c=B.next()){c=c.value;var x=y8F(this.imageEditor,c.corner);this.updatePositionOfCorner(x,c.div)}};
_.a.onLeft=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(MYS(this.imageEditor,0),this.updatePositionOfAllCorners(),B.preventDefault())};
_.a.onRight=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(MYS(this.imageEditor,1),this.updatePositionOfAllCorners(),B.preventDefault())};
_.a.onUp=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(MYS(this.imageEditor,2),this.updatePositionOfAllCorners(),B.preventDefault())};
_.a.onDown=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(MYS(this.imageEditor,3),this.updatePositionOfAllCorners(),B.preventDefault())};
_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.AJ.Object.defineProperties(jC.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&aG8.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var B,c,x;((c=this.data)==null?0:c.imageRatio)&&((x=this.data)==null?0:x.minImageCropWidth)?B={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:B=Yoy;return new Wx6(B)}}});
jC.prototype.updatePositionOfAllCorners=jC.prototype.updatePositionOfAllCorners;jC.prototype.dataChanged=jC.prototype.dataChanged;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],jC.prototype,"ytComponentBehavior",void 0);_.L([_.J(_.VT),_.H("design:type",Object)],jC.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.jr("#canvas"),_.H("design:type",HTMLCanvasElement)],jC.prototype,"canvasElement",void 0);_.L([_.jr("#file-selector"),_.H("design:type",HTMLInputElement)],jC.prototype,"fileSelector",void 0);_.L([_.jr("#top-left-corner"),_.H("design:type",HTMLDivElement)],jC.prototype,"topLeftCorner",void 0);_.L([_.jr("#top-right-corner"),_.H("design:type",HTMLDivElement)],jC.prototype,"topRightCorner",void 0);
_.L([_.jr("#bottom-left-corner"),_.H("design:type",HTMLDivElement)],jC.prototype,"bottomLeftCorner",void 0);_.L([_.jr("#bottom-right-corner"),_.H("design:type",HTMLDivElement)],jC.prototype,"bottomRightCorner",void 0);_.L([_.F(),_.H("design:type",Object)],jC.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],jC.prototype,"errorMessage",void 0);_.L([_.F(),_.H("design:type",Object)],jC.prototype,"isLoading",void 0);_.L([_.F(),_.H("design:type",Object)],jC.prototype,"hideContainer",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.H("design:type",Boolean)],jC.prototype,"isPlaylistThumbnail",void 0);_.L([_.CF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],jC.prototype,"dataChanged",null);_.L([_.nF("image-updated"),_.nF("yt-refit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jC.prototype,"updatePositionOfAllCorners",null);
_.L([_.Em({is:"yt-image-editor-renderer",disableElementRegistration:!0})],jC);
_.G(jC,"yt-image-editor-renderer",function(){if(IC6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;NTA===void 0&&(NTA=document.createElement("template"));var P=NTA;x.call(c,P.content.cloneNode(!0),B.content.firstChild);IC6=B}B=IC6;return B},{mode:2});var gso;var sny;var U_=function(){return _.z.apply(this,arguments)||this};
_.w(U_,_.z);U_.prototype.updateMinutesFromBinding=function(B){this.handleMinutesChanged&&this.handleMinutesChanged(B)};
U_.prototype.updateSecondsFromBinding=function(B){this.handleSecondsChanged&&this.handleSecondsChanged(B)};
U_.prototype.updateDescriptionFromBinding=function(B){this.handleDescriptionChanged&&this.handleDescriptionChanged(B)};
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],U_.prototype,"data",void 0);_.L([_.F(),_.H("design:type",String)],U_.prototype,"minutes",void 0);_.L([_.F(),_.H("design:type",String)],U_.prototype,"seconds",void 0);_.L([_.F(),_.H("design:type",String)],U_.prototype,"description",void 0);_.L([_.F(),_.H("design:type",Function)],U_.prototype,"handleMinutesChanged",void 0);
_.L([_.F(),_.H("design:type",Function)],U_.prototype,"handleSecondsChanged",void 0);_.L([_.F(),_.H("design:type",Function)],U_.prototype,"handleDescriptionChanged",void 0);_.L([_.F(),_.H("design:type",Number)],U_.prototype,"characterLimit",void 0);_.L([_.F(),_.H("design:type",Number)],U_.prototype,"textNumRows",void 0);_.L([_.Em({is:"yt-report-details-form-content",disableElementRegistration:!0})],U_);
_.G(U_,"yt-report-details-form-content",function(){if(sny===void 0){var B=document.createElement("template");_.I(B,'\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>');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;gso===void 0&&(gso=document.createElement("template"));var P=gso;x.call(c,P.content.cloneNode(!0),B.content.firstChild);sny=B}B=sny;return B},{mode:2});var pdF;var kYr;var dF=function(){var B=_.z.apply(this,arguments)||this;B.updateMinutesFromBinding=function(c){B.minutes=c.detail.value};
B.updateSecondsFromBinding=function(c){B.seconds=c.detail.value};
B.updateDescriptionFromBinding=function(c){B.description=c.detail.value};
return B};
_.w(dF,_.z);_.a=dF.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.a.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"}}}};
_.a.ready=function(){_.Y9(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.a.onSubmitYtAction=function(B){var c=B.detail;c.actionName==="yt-service-request"&&(c=c.args[1],c.flagEndpoint&&(B.stopPropagation(),this.refireAction(c)))};
_.a.refireAction=function(B){var c={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(c.vss_id=this.vssId);_.kC(this.hostElement,[B,c]);this.submitDisabled=!0};
_.a.dataChanged=function(){var B=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var c=_.e5();c&&c.getPlayerPromise().then(function(x){var P=x.getOption("cc","track")||x.getOption("captions","track");P&&(B.vssId=P.vss_id);x=x.getCurrentTime();B.minutes=Math.floor(x/60).toString();B.seconds=(Math.floor(x)%60).toString()})};
_.a.updateSubmitButtonState=function(){var B;((B=this.data)==null?0:B.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==="")};
_.a.onYtServiceRequestCompleted=function(){_.gj(this.hostElement,"yt-close-popup-action")};
_.a.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.AJ.Object.defineProperties(dF.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.textNumRows)||4}}});
dF.prototype.onYtServiceRequestError=dF.prototype.onYtServiceRequestError;dF.prototype.onYtServiceRequestCompleted=dF.prototype.onYtServiceRequestCompleted;dF.prototype.updateSubmitButtonState=dF.prototype.updateSubmitButtonState;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);
_.L([_.F({observer:"dataChanged"}),_.H("design:type",Object)],dF.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Boolean)],dF.prototype,"submitDisabled",void 0);_.L([_.F(),_.H("design:type",String)],dF.prototype,"minutes",void 0);_.L([_.F(),_.H("design:type",String)],dF.prototype,"seconds",void 0);_.L([_.F(),_.H("design:type",String)],dF.prototype,"description",void 0);_.L([_.F(),_.H("design:type",String)],dF.prototype,"vssId",void 0);
_.L([_.F({value:_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],dF.prototype,"isMusic",void 0);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],dF.prototype,"characterLimit",null);_.L([_.Q("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],dF.prototype,"textNumRows",null);
_.L([_.CF("minutes","seconds","description","submitDisabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dF.prototype,"updateSubmitButtonState",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dF.prototype,"onYtServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dF.prototype,"onYtServiceRequestError",null);_.L([_.Em({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],dF);
_.G(dF,"yt-report-details-form-renderer",function(){if(kYr===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;pdF===void 0&&(pdF=document.createElement("template"));var P=pdF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);kYr=B}B=kYr;return B});var Xdz;var $IS;var nsB;var bsA;var qE=function(){return _.z.apply(this,arguments)||this};
_.w(qE,_.z);
qE.prototype.onCheckedChanged_=function(){if(this.data){var B=_.Y9(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.gj(this.hostElement,"yt-additional-detail-checkbox-update",[B]):this.data.identifier==="yt-hide-user-checkbox"?_.gj(this.hostElement,"yt-hide-user-checkbox-update",[B]):B&&this.data.enableCommand?_.gj(this.hostElement,"yt-modify-report-form-command",[_.t(this.data.enableCommand,wbo)]):!B&&this.data.disableCommand&&_.gj(this.hostElement,
"yt-modify-report-form-command",[_.t(this.data.enableCommand,wbo)])}};
qE.prototype.onLabelTap_=function(B){B.target.tagName!="A"&&(_.Y9(this.hostElement).querySelector("#checkbox").checked=!_.Y9(this.hostElement).querySelector("#checkbox").checked)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],qE.prototype,"data",void 0);_.L([_.Em({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],qE);
_.G(qE,"yt-boolean-form-field-v2-renderer",function(){if(bsA===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;nsB===void 0&&(nsB=document.createElement("template"));var P=nsB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);bsA=B}B=bsA;return B});var CI=function(){var B=_.z.apply(this,arguments)||this;B.canShowAdditionalDetailCheckbox=!1;B.canShowCheckbox=!1;B.keepDropdownFocusedAfterSelection=!0;return B};
_.w(CI,_.z);CI.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}}}}};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],CI.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],CI.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.F(),_.H("design:type",Object)],CI.prototype,"canShowCheckbox",void 0);_.L([_.F(),_.H("design:type",Object)],CI.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.Em({is:"yt-report-form-modal-content",disableElementRegistration:!0})],CI);
_.G(CI,"yt-report-form-modal-content",function(){if($IS===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Xdz===void 0&&(Xdz=document.createElement("template"));var P=Xdz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);$IS=B}B=$IS;return B},{mode:2});var KRy;var jnl;var hF=function(){var B=_.z.apply(this,arguments)||this;B.submitting=!1;B.submitButtonDisabled=!0;B.command=null;B.canShowCheckbox=!1;B.canShowAdditionalDetailCheckbox=!1;B.canShowNextButton=!1;B.additionalDetailCheckboxChecked=!1;B.refitJob=0;B.keepDropdownFocusedAfterSelection=!0;B.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 B};
_.w(hF,_.z);_.a=hF.prototype;_.a.created=function(){this.refitJob=0};
_.a.attached=function(){this.JSC$18682_scroller&&(this.JSC$18682_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18682_scroller.attached&&typeof this.JSC$18682_scroller.attached==="function"&&this.JSC$18682_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(B){B&&(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,B.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),B.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.a.onYtPopupOpened=function(){var B=_.e5();B&&B.getPlayerPromise().then(function(c){c.pauseVideo()})};
_.a.onYtNavigate=function(B){_.t(B.detail.endpoint,_.Rvy)&&(B.stopPropagation(),this.hideReportForm=!0)};
_.a.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.a.onYtServiceRequestCompleted=function(B,c){var x=c.actions;if(x){if(x.length===1&&_.t(x[0],_.nW)){var P;x=((P=_.t(x[0],_.nW))==null?void 0:P.commands)||[]}P=0;for(var Y=x.length;P<Y;P++)_.t(x[P],_.J3)&&(B.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(x[P]))}if(c.data&&(B=this.get("feedbackResponses",c.data)))for(c=0;c<B.length;c++)if(B[c].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.a.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.a._onDescendantIronResize=function(B){B.stopPropagation();return!1};
_.a.handleReportFormEndpointUpdateAction=function(B){if(B.submitEndpoint){var c=this.command=B.submitEndpoint;c=_.t(c,_.yen);if(c==null?0:c.additionalDetailCheckboxChecked)c.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else B.submitNavigationEndpoint?(this.command=B.submitNavigationEndpoint,this.toggleSubmitButton(!1)):B.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:B.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;B.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",B));this.refit()};
_.a.handleConfirmDialogCloseAction=function(B){B.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.a.submitButtonDisabledChanged=function(){var B=this.hostElement.parentElement;B&&B.invalidateTabbables&&B.invalidateTabbables()};
_.a.handleModifyReportFormCommand=function(B){B=this.get("action",B);B==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:B==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:B==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:B==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:B==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:B==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.a.updateDialogStyling=function(){var B,c,x,P,Y,g=((Y=(B=this.data)==null?void 0:(c=B.optionsSupportedRenderers)==null?void 0:(x=c.optionsRenderer)==null?void 0:(P=x.items)==null?void 0:P.length)!=null?Y:0)<=2?0:240;_.k9(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.a.toggleSubmitButton=function(B){this.submitButtonDisabled=!B;this.submitButtonDisabled=B};
_.a.computeSubmitButtonData=function(B,c){var x={};_.t(c,_.Rvy)?x.navigationEndpoint=c:x.command=c||void 0;B&&B.buttonRenderer&&_.wW.extend(x,B.buttonRenderer);return x};
_.a.computeNextButtonData=function(B,c){var x={};if(!B||!B.buttonRenderer)return x;_.wW.extend(x,B.buttonRenderer);if(!c)return x;if(_.t(c,_.Rvy))x.navigationEndpoint=ZLl(c);else if(x.command=ZLl(c),B=_.t(x.command,_.yen))B.legalCheckboxChecked=!0;return x};
_.a.computeShowNextButton=function(B,c,x){return!!B&&c&&x};
_.a.refit=function(){var B=this;this.refitJob||(this.refitJob=_.EE.addLowPriorityJob(function(){_.aJ(B.hostElement,"yt-refit");B.refitJob=0}))};
_.a.handleAdditionalDetailCheckboxUpdateAction=function(B){this.additionalDetailCheckboxChecked=B;_.t(this.command,_.yen).additionalDetailCheckboxChecked=B};
_.AJ.Object.defineProperties(hF,{template:{configurable:!0,enumerable:!0,get:function(){if(jnl===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;KRy===void 0&&(KRy=document.createElement("template"));var P=KRy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);jnl=B}B=jnl;return B}}});
hF.prototype.onYtServiceRequestError=hF.prototype.onYtServiceRequestError;hF.prototype.onYtServiceRequestCompleted=hF.prototype.onYtServiceRequestCompleted;hF.prototype.onYtServiceRequestSent=hF.prototype.onYtServiceRequestSent;hF.prototype.onYtNavigate=hF.prototype.onYtNavigate;hF.prototype.onYtPopupOpened=hF.prototype.onYtPopupOpened;_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],hF.prototype,"openPopupBehavior",void 0);
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],hF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],hF.prototype,"eventForwardingBehavior",void 0);_.L([_.J(_.Oc),_.H("design:type",Object)],hF.prototype,"ironResizableBehavior",void 0);_.L([_.F({observer:"dataChanged"}),_.H("design:type",Object)],hF.prototype,"data",void 0);
_.L([_.F(),_.H("design:type",Object)],hF.prototype,"submitting",void 0);_.L([_.F({observer:"submitButtonDisabledChanged"}),_.H("design:type",Object)],hF.prototype,"submitButtonDisabled",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"command",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],hF.prototype,"hideReportForm",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"canShowCheckbox",void 0);
_.L([_.F(),_.H("design:type",Object)],hF.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"canShowNextButton",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"additionalDetailCheckboxChecked",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"refitJob",void 0);_.L([_.F(),_.H("design:type",Object)],hF.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.jr("#scroller"),_.H("design:type",Object)],hF.prototype,"JSC$18682_scroller",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hF.prototype,"onYtPopupOpened",null);_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],hF.prototype,"onYtNavigate",null);
_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],hF.prototype,"onYtServiceRequestSent",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],hF.prototype,"onYtServiceRequestCompleted",null);
_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],hF.prototype,"onYtServiceRequestError",null);_.L([_.Em({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],hF);var UIs;var dIz;var mb=function(){return _.z.apply(this,arguments)||this};
_.w(mb,_.z);_.a=mb.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.a.onVisible=function(){var B,c;(c=_.cp().resolve(_.Bp(_.bT)))==null||c.enqueue({label:_.iG((B=this.data)==null?void 0:B.messageTitle),elementToFocus:this.hostElement})};
_.a.onThumbnailLoaded=function(){_.aJ(this.hostElement,"yt-refit")};
_.a.onDismissTap=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.a.computeAlternateIcon=function(B){return B?B==="BACKSTAGE_ARTWORK"?"backstage:artwork":B:null};
_.a.computeFontFamily=function(B){return B==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.a.computeBackgroundStyle=function(B,c){if(B=this.computeBackgroundImage(B,c))if(B=_.YU(B.thumbnails))return'background-image: url("'+B+'");'};
_.a.computeHasFullHeightImage=function(B){return!(!(B&&B.thumbnails&&B.thumbnails.length>0)||this.modern)};
_.a.isModernStyle=function(B){return B.style==="STYLE_MODERN"};
_.a.computeIcon=function(B,c){if(B&&B.icon)return c?B.iconDark:B.icon};
_.a.computeBackgroundImage=function(B,c){if(B&&B.backgroundImage)return c?B.backgroundImageDark:B.backgroundImage};
_.a.computeLogo=function(B,c){if(B&&B.logo)return c?B.logoDark:B.logo};
_.a.computeShouldShowModernIcon=function(B,c){return B&&!!c};
_.a.getLogoContainerClassName=function(B){return this.logoWithPadding(B)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.a.getLogoImageId=function(B){return this.logoWithPadding(B)?"mealbar-logo-with-padding":"mealbar-logo"};
_.a.logoWithPadding=function(B){var c,x,P;return(B=(c=this.computeLogo(B,this.isDarkTheme))==null?void 0:(x=c.thumbnails)==null?void 0:(P=x[0])==null?void 0:P.height)&&B%31===0?!0:!1};
mb.prototype.onThumbnailLoaded=mb.prototype.onThumbnailLoaded;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.L([_.F({}),_.H("design:type",Object)],mb.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.H("design:type",Boolean)],mb.prototype,"modern",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],mb.prototype,"isDarkTheme",void 0);
_.L([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.H("design:type",Object)],mb.prototype,"icon",void 0);_.L([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.H("design:type",Object)],mb.prototype,"logo",void 0);_.L([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.H("design:type",Object)],mb.prototype,"backgroundStyle",void 0);_.L([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.H("design:type",Object)],mb.prototype,"alternateIcon",void 0);
_.L([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.H("design:type",Boolean)],mb.prototype,"hasFullHeightImage",void 0);_.L([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.H("design:type",Boolean)],mb.prototype,"useYoutubeSans",void 0);_.L([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.H("design:type",Boolean)],mb.prototype,"shouldShowModernIcon",void 0);
_.L([_.nF("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mb.prototype,"onThumbnailLoaded",null);_.L([_.Em({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],mb);
_.G(mb,"yt-mealbar-promo-renderer",function(){if(dIz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;UIs===void 0&&(UIs=document.createElement("template"));var P=UIs;x.call(c,P.content.cloneNode(!0),B.content.firstChild);dIz=B}B=dIz;return B},{mode:2});var qoz;var Cl8;var Tb=function(){return _.z.apply(this,arguments)||this};
_.w(Tb,_.z);_.a=Tb.prototype;_.a.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]]"}}}}}};
_.a.computeHasButtons_=function(B){return!(!B.dismissButton&&!B.acceptButton)};
_.a.computeStyle_=function(B){return B||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.a.observeImpressionEndpoints_=function(){var B=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;_.kC(B.hostElement,[c])})};
_.a.onTap_=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Tb.prototype.observeImpressionEndpoints_=Tb.prototype.observeImpressionEndpoints_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Tb.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Tb.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],Tb.prototype,"positionType",void 0);_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],Tb.prototype,"hasButtons_",void 0);_.L([_.F({value:function(){return this.onTap_.bind(this)}}),
_.H("design:type",Function)],Tb.prototype,"boundOnTap_",void 0);_.L([_.F({value:{style:"mono-inverse"}}),_.H("design:type",Object)],Tb.prototype,"buttonOverride",void 0);_.L([_.bF("data.promoConfig.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tb.prototype,"observeImpressionEndpoints_",null);_.L([_.Em({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Tb);
_.G(Tb,"yt-tooltip-renderer",function(){if(Cl8===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;qoz===void 0&&(qoz=document.createElement("template"));var P=qoz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Cl8=B}B=Cl8;return B},{mode:2});var hyc;var mIB;var TeB={},VLS=(TeB.WEB_REMIX="music.youtube.com",TeB),V2=function(){var B=_.z.apply(this,arguments)||this;B.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return B};
_.w(V2,_.z);_.a=V2.prototype;_.a.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.created=function(){this.embedHost_=VLS[_.v5("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.a.ready=function(){_.Y9(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.a.computeEmbedCode_=function(B,c,x,P,Y){if(!B)return"";var g=B.videoId,k=B.fullListId,n=[];B.attributionId&&n.push("si="+B.attributionId);P||n.push("controls=0");x&&Number(c)>0&&n.push("start="+c);k&&(g="videoseries",n.push("list="+k));x="https://"+(Y?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;B.clipId&&(n.push("clip="+B.clipId),n.push("clipt="+B.clipTiming));c=n.length>0?x+"?"+n.join("&amp;"):x;B.encryptedEmbedConfig&&n.push("embed_config="+JSON.stringify({enc:B.encryptedEmbedConfig}));
n=n.length>0?x+"?"+n.join("&amp;"):x;_.T("web_sharing_embed_preview_killswitch")?_.Y9(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(n,B.previewWidth||854,B.previewHeight||480):(_.WJ(this.videoPreviewContainer),_.Y9(this.videoPreviewContainer).appendChild(this.buildIframeElement(n)));return this.getEmbedCode_(c,B.width||560,B.height||315)};
_.a.buildIframeElement=function(B){var c=document.createElement("iframe"),x,P;c.width=""+((P=(x=this.data)==null?void 0:x.previewWidth)!=null?P:854);var Y,g;c.height=""+((g=(Y=this.data)==null?void 0:Y.previewHeight)!=null?g:480);_.q07(c,2,B);c.title="YouTube video player";c.frameBorder="0";c.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";c.referrerPolicy="strict-origin-when-cross-origin";c.allowFullscreen=!0;return c};
_.a.computeIsSquareAspectRatio_=function(B){return B.previewHeight&&B.previewWidth?B.previewHeight==B.previewWidth:!1};
_.a.computeShowEmbedOptions_=function(B){return!!B.enablePrivacyModeOptionLabel||!!B.showPlayerControlsOptionLabel};
_.a.getEmbedCode_=function(B,c,x){return'<iframe width="'+c+'" height="'+x+'" src="'+B+'" 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>'};
_.a.handleSignalActionCopyShareEmbedUrl_=function(){_.Y9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.a.handleSetTimestamp_=function(B){this.startAtTimeStamp_=(this.startAtChecked_=B.isSet)?B.timestamp:0};
_.a.closePanel_=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.a.onEmbedCode_=function(){_.Y9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.a.onYtPopupClosed_=function(){_.WJ(_.Y9(this.hostElement).querySelector("#video-preview"))};
_.a.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.t(this.data.actionButtons[0],_.z3)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.actionButtons[0],_.z3))};
V2.prototype.onYtPopupClosed_=V2.prototype.onYtPopupClosed_;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],V2.prototype,"data",void 0);
_.L([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.H("design:type",String)],V2.prototype,"embedCode_",void 0);_.L([_.F({value:!0}),_.H("design:type",Boolean)],V2.prototype,"isPlayerControlsOptionChecked_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],V2.prototype,"isPrivacyModeOptionChecked_",void 0);_.L([_.F({value:!1,notify:!0}),_.H("design:type",Boolean)],V2.prototype,"startAtChecked_",void 0);
_.L([_.F({value:0}),_.H("design:type",Number)],V2.prototype,"startAtTimeStamp_",void 0);_.L([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],V2.prototype,"isSquareAspectRatio_",void 0);_.L([_.jr("#video-preview"),_.H("design:type",HTMLElement)],V2.prototype,"videoPreviewContainer",void 0);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V2.prototype,"onYtPopupClosed_",null);
_.L([_.Em({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],V2);
_.G(V2,"yt-sharing-embed-renderer",function(){if(mIB===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;hyc===void 0&&(hyc=document.createElement("template"));var P=hyc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);mIB=B}B=mIB;return B},{mode:2});var tLz={};
tLz.YtUnlimitedFamilyInterstitialBehavior=[_.dG.YtOpenPopupBehavior,_.s2.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(B){B=_.py4(_.uI(B),"yt-button-renderer");return B?B.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(B){this.dialogHistory_.push(B)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var B=this.popFromHistory();if(B){var c={openPopupAction:{popupType:"DIALOG",popup:{}}};c.openPopupAction.popup[B.renderer]=B.data;this.showingPreviousDialog_=!0;this.openPopup(c)}},
handleOpenPopupAction_:function(B){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var c=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(P){return!!B.openPopupAction.popup[P]}),x=this.getElementName_();
c&&this.data&&(this.pushToHistory({renderer:x,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(B){if(B=_.t(B,e7B))this.loading=!0,_.gj(this.hostElement,"yt-open-create-family-dialog",[B,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var B=this.hostElement.nodeName.split("-").slice(1).map(function(c){return""+c[0].toUpperCase()+c.slice(1).toLowerCase()}).join("");
return B[0].toLowerCase()+B.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var wd8;var Nez;var tF=function(){return _.z.apply(this,arguments)||this};
_.w(tF,_.z);_.a=tF.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.gj(this.hostElement,"yt-register-create-family-dialog");_.Y9(this.hostElement).querySelector("#thumbnail").onShow()};
_.a.fireOnCloseCommand_=function(){var B;((B=this.data)==null?0:B.onCloseCommand)&&_.XX(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.a.onYtServiceRequestSent_=function(B,c){c&&c.endpoint&&_.t(c.endpoint,_.KW)||(this.loading=!0)};
_.a.onYtServiceRequestCompleted_=function(){var B=this.hostElement.parentElement;B.close&&B.close();this.loading=!1};
_.a.openPopupHandler_=function(B){if(B.detail==this){var c;((c=this.data)==null?0:c.onOpenCommands)&&_.XX(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.a.closePopupHandler_=function(B,c){this.fireOnCloseCommand_();if(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1){var x;((x=this.data)==null?0:x.onDismissCommands)&&_.XX(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.a.dataChanged_=function(){this.loading=!1};
tF.prototype.dataChanged_=tF.prototype.dataChanged_;tF.prototype.closePopupHandler_=tF.prototype.closePopupHandler_;tF.prototype.openPopupHandler_=tF.prototype.openPopupHandler_;tF.prototype.onYtServiceRequestCompleted_=tF.prototype.onYtServiceRequestCompleted_;tF.prototype.onYtServiceRequestSent_=tF.prototype.onYtServiceRequestSent_;_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],tF.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(tLz.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],tF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],tF.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],tF.prototype,"loading",void 0);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],tF.prototype,"onYtServiceRequestSent_",null);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],tF.prototype,"onYtServiceRequestCompleted_",null);
_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],tF.prototype,"openPopupHandler_",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],tF.prototype,"closePopupHandler_",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tF.prototype,"dataChanged_",null);
_.L([_.Em({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],tF);
_.G(tF,"yt-unlimited-family-message-interstitial-renderer",function(){if(Nez===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;wd8===void 0&&(wd8=document.createElement("template"));var P=wd8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Nez=B}B=Nez;return B},{mode:2});var IGF;var Jly;var wF=function(){return _.z.apply(this,arguments)||this};
_.w(wF,_.z);wF.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"}}}};
wF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Y9(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(B){B.onShow()});
_.Y9(this.hostElement).querySelector("#main-thumbnail").onShow()};
wF.prototype.onButtonTap_=function(B){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(B)};
wF.prototype.computeMainThumbnailWidth_=function(B){return B&&B.length!==0?72:96};
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.L([_.J(tLz.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],wF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],wF.prototype,"data",void 0);
_.L([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.H("design:type",Number)],wF.prototype,"mainThumbnailWidth_",void 0);_.L([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.H("design:type",Function)],wF.prototype,"boundButtonTap_",void 0);_.L([_.Em({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],wF);
_.G(wF,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Jly===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;IGF===void 0&&(IGF=document.createElement("template"));var P=IGF;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Jly=B}B=Jly;return B},{mode:2});var WRz;var lGF;var NE=function(){var B=_.z.apply(this,arguments)||this;B.sliderAriaValueText_=null;B.selectedIndex_=0;B.messages={PAUSE_SLIDER:_.Up("PAUSE_SLIDER",void 0,"Pause Duration")};return B};
_.w(NE,_.z);_.a=NE.prototype;_.a.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_]]"}}}}}};
_.a.onPopupOpened_=function(B){B.detail==this&&_.T("enable_premium_voluntary_pause")&&(_.gj(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.setDialogData=function(B){this.data=B;this.resetSlider_()};
_.a.dataChanged_=function(){this.data&&this.resetSlider_()};
_.a.onSubmitTap_=function(){if(this.data.confirmCommand){var B=this.data.confirmCommand;_.t(B,_.cvd)&&_.kC(this.hostElement,[B,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.a.onExitButtonTap_=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.a.closePopupHandler_=function(B,c){(c&&c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.handleOnDismissCommands_()};
_.a.onSliderChange_=function(){this.selectedIndex_=_.Y9(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.a.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.a.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.a.resetSlider_=function(){if(this.data){var B=this.data.defaultEndOptionIndex||0,c=_.Y9(this.hostElement).querySelector("#id-pause-slider");if(c.immediateValue<B)for(;c.immediateValue!=B;)c.increment();else if(B<c.immediateValue)for(;c.immediateValue!=B;)c.decrement();this.selectedIndex_=B;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.a.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.XX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.a.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.XX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestSent=function(){this.loading=!0};
_.a.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
NE.prototype.onYtServiceRequestCompleted=NE.prototype.onYtServiceRequestCompleted;NE.prototype.onYtServiceRequestSent=NE.prototype.onYtServiceRequestSent;NE.prototype.closePopupHandler_=NE.prototype.closePopupHandler_;NE.prototype.dataChanged_=NE.prototype.dataChanged_;NE.prototype.onPopupOpened_=NE.prototype.onPopupOpened_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],NE.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],NE.prototype,"loading",void 0);_.L([_.F(),_.H("design:type",Number)],NE.prototype,"selectIndexMax_",void 0);_.L([_.F(),_.H("design:type",Object)],NE.prototype,"selectedData_",void 0);
_.L([_.F(),_.H("design:type",Object)],NE.prototype,"sliderAriaValueText_",void 0);_.L([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.H("design:type",Function)],NE.prototype,"onButtonTap_",void 0);_.L([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.H("design:type",Function)],NE.prototype,"onSecondaryTap_",void 0);_.L([_.F(),_.H("design:type",Object)],NE.prototype,"messages",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],NE.prototype,"onPopupOpened_",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NE.prototype,"dataChanged_",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],NE.prototype,"closePopupHandler_",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],NE.prototype,"onYtServiceRequestSent",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],NE.prototype,"onYtServiceRequestCompleted",null);_.L([_.Em({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],NE);
_.G(NE,"yt-unplugged-pause-membership-dialog-renderer",function(){if(lGF===void 0){var B=document.createElement("template");_.I(B,'\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>');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;WRz===void 0&&(WRz=document.createElement("template"));var P=WRz;x.call(c,P.content.cloneNode(!0),B.content.firstChild);lGF=B}B=lGF;return B},{mode:2});var Ess;var Osc;var IR=function(){return _.z.apply(this,arguments)||this};
_.w(IR,_.z);IR.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Qf("vcBalanceRenderer")}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],IR.prototype,"data",void 0);_.L([_.Em({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],IR);
_.G(IR,"yt-vc-offer-layout-header-renderer",function(){if(Osc===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Ess===void 0&&(Ess=document.createElement("template"));var P=Ess;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Osc=B}B=Osc;return B},{mode:2});var osc;var Qn6;var FRN;var vsr;var JF=function(){return _.z.apply(this,arguments)||this};
_.w(JF,_.z);JF.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.AJ.Object.defineProperties(JF.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)}}});
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.aHZ.YtTappableItemBehavior),_.H("design:type",Object)],JF.prototype,"ytTappableItemBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],JF.prototype,"data",void 0);
_.L([_.F({reflectToAttribute:!0}),_.Q("data.accessibilityText"),_.H("design:type",String),_.H("design:paramtypes",[])],JF.prototype,"ariaLabel",null);_.L([_.F({reflectToAttribute:!0}),_.Q("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],JF.prototype,"vcOfferStyle",null);_.L([_.Q("data.style","data.titleText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],JF.prototype,"showTitleText",null);_.L([_.Em({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],JF);
_.G(JF,"yt-vc-offer-renderer",function(){if(vsr===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;FRN===void 0&&(FRN=document.createElement("template"));var P=FRN;x.call(c,P.content.cloneNode(!0),B.content.firstChild);vsr=B}B=vsr;return B},{mode:2});var Wj=function(){return _.z.apply(this,arguments)||this};
_.w(Wj,_.z);Wj.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Wj.prototype,"data",void 0);_.L([_.Em({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Wj);
_.G(Wj,"yt-vc-offer-layout-renderer",function(){if(Qn6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;osc===void 0&&(osc=document.createElement("template"));var P=osc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Qn6=B}B=Qn6;return B},{mode:2});var zy8;var Soo;var ylc;var GY8;var lu=function(){return _.z.apply(this,arguments)||this};
_.w(lu,_.z);lu.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}}}}}};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],lu.prototype,"data",void 0);_.L([_.Em({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],lu);
_.G(lu,"yt-ypc-offers-modal-top-bar-renderer",function(){if(GY8===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;ylc===void 0&&(ylc=document.createElement("template"));var P=ylc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);GY8=B}B=GY8;return B},{mode:2});var E_=function(){return _.z.apply(this,arguments)||this};
_.w(E_,_.z);E_.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"}}}}};
E_.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
E_.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var B=this.scrollable;B.attached&&typeof B.attached==="function"&&B.attached()};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.jr("#scrollable"),_.H("design:type",Object)],E_.prototype,"scrollable",void 0);_.L([_.F(),_.H("design:type",Object)],E_.prototype,"data",void 0);_.L([_.Em({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],E_);
_.G(E_,"yt-ypc-offers-modal-renderer",function(){if(Soo===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;zy8===void 0&&(zy8=document.createElement("template"));var P=zy8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Soo=B}B=Soo;return B},{mode:2});var MLB;var LRz;var O_=function(){return _.z.apply(this,arguments)||this};
_.w(O_,_.z);_.a=O_.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Y9(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.a.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.gj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.a.onYtPopupOpened_=function(B,c){(c==null?void 0:c.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.XX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.a.onYtPopupClosed_=function(B,c){this.continueButtonTapped||c&&(c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.data.onDismissCommands&&_.XX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestError_=function(B){this.set("showSpinner",!1);_.xE(this.hostElement,B.detail.error.message)};
_.a.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.T("enable_ypc_spinners")?_.gj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
O_.prototype.onYtServiceRequestError_=O_.prototype.onYtServiceRequestError_;O_.prototype.onYtPopupClosed_=O_.prototype.onYtPopupClosed_;O_.prototype.onYtPopupOpened_=O_.prototype.onYtPopupOpened_;O_.prototype.onYtServiceRequestCompleted_=O_.prototype.onYtServiceRequestCompleted_;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.F(),_.H("design:type",Object)],O_.prototype,"data",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],O_.prototype,"showSpinner",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],O_.prototype,"continueButtonTapped",void 0);_.L([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.H("design:type",Function)],O_.prototype,"bindOnContinueTapped_",void 0);_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O_.prototype,"onYtServiceRequestCompleted_",null);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],O_.prototype,"onYtPopupOpened_",null);
_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],O_.prototype,"onYtPopupClosed_",null);_.L([_.nF("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O_.prototype,"onYtServiceRequestError_",null);_.L([_.Em({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],O_);
_.G(O_,"yt-ypc-upgrade-dialog-renderer",function(){if(LRz===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;MLB===void 0&&(MLB=document.createElement("template"));var P=MLB;x.call(c,P.content.cloneNode(!0),B.content.firstChild);LRz=B}B=LRz;return B},{mode:2});var Zsl;var Hs6;var oR=function(){return _.z.apply(this,arguments)||this};
_.w(oR,_.z);oR.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oR.prototype.computeHasButtons_=function(B){return!(!B.dismissButton&&!B.confirmButton)};
oR.prototype.computeStyle_=function(B){return B||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],oR.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],oR.prototype,"data",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],oR.prototype,"positionType",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],oR.prototype,"hasButtons_",void 0);_.L([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],oR.prototype,"style_",void 0);_.L([_.Em({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],oR);
_.G(oR,"yt-bubble-hint-renderer",function(){if(Hs6===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Zsl===void 0&&(Zsl=document.createElement("template"));var P=Zsl;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Hs6=B}B=Hs6;return B},{mode:2});var fGo;var iss;var Q2=function(){var B=_.u4.apply(this,arguments)||this;B.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return B};
_.w(Q2,_.u4);_.a=Q2.prototype;_.a.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.a.attached=function(){var B=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){B.$.thumbnail.onShow();B.$["header-image"].onShow()})};
_.a.handleCheckBoxUpdateAction_=function(B){this.canShowCheckboxEnabledConfirmButton=B};
_.a.computeUseOverlayForSpinner_=function(B,c){return!!B&&c};
_.a.computeShowSpinner_=function(B,c){return B||!!c};
_.a.fireOnCloseActions_=function(){var B,c=_.p(((B=this.data)==null?void 0:B.onClosedActions)||[]);for(B=c.next();!B.done;B=c.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.a.fireOnOpenCommands_=function(B){var c,x=(c=this.data)==null?void 0:c.onOpenCommands;if(x)for(B.stopImmediatePropagation(),B=_.p(x),c=B.next();!c.done;c=B.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.a.fireOnDismissCommands_=function(B){var c,x=(c=this.data)==null?void 0:c.onDismissCommands;if(x)for(B.stopImmediatePropagation(),B=_.p(x),c=B.next();!c.done;c=B.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.a.openPopupHandler_=function(B){B.detail==this&&this.fireOnOpenCommands_(B)};
_.a.closePopupHandler_=function(B,c){_.sp(this,"yt-confirm-dialog-close-action",[c]);this.fireOnCloseActions_();(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.fireOnDismissCommands_(B)};
_.a.onHeaderImageChanged_=function(){var B;((B=this.data)==null?0:B.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.a.computeHasHeaderImageWidth_=function(B){return B!=void 0};
_.a.computeHasLoadingMessage=function(B){return!!B};
_.a.onHeaderImageWidthChanged_=function(){var B,c=(B=this.data)==null?void 0:B.headerImageWidth;if(c){if(B=1.25*c*2+c,this.$.main.style.width=B+"px",c=this.$.scroller.firstElementChild)c.style.minWidth=B+"px"}else this.$.main.style.width="100%"};
_.a.onThumbnailChanged_=function(){var B;((B=this.data)==null?0:B.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")};
_.a.onYtNavigate_=function(B){B=_.uI(B);B instanceof Node&&_.aB(this.$["confirm-button"]).contains(B)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.a.computePrimaryIsCancel_=function(B){return B};
_.a.computeIsCancelButtonHidden_=function(B){return B.skipCancelButton||!B.cancelButton};
_.a.computeIsCheckboxHidden_=function(B){return!B.checkbox};
_.a.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.a.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.a.onYtServiceRequestCompleted_=function(){var B;((B=this.data)==null?0:B.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.AJ.Object.defineProperties(Q2,{template:{configurable:!0,enumerable:!0,get:function(){if(iss===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;fGo===void 0&&(fGo=document.createElement("template"));var P=fGo;x.call(c,P.content.cloneNode(!0),B.content.firstChild);iss=B}B=iss;return B}}});
Q2.prototype.onYtServiceRequestCompleted_=Q2.prototype.onYtServiceRequestCompleted_;Q2.prototype.onYtServiceRequestSent_=Q2.prototype.onYtServiceRequestSent_;Q2.prototype.onThumbnailLoaded_=Q2.prototype.onThumbnailLoaded_;Q2.prototype.onYtNavigate_=Q2.prototype.onYtNavigate_;Q2.prototype.onThumbnailChanged_=Q2.prototype.onThumbnailChanged_;Q2.prototype.onHeaderImageWidthChanged_=Q2.prototype.onHeaderImageWidthChanged_;Q2.prototype.onHeaderImageChanged_=Q2.prototype.onHeaderImageChanged_;
Q2.prototype.closePopupHandler_=Q2.prototype.closePopupHandler_;Q2.prototype.openPopupHandler_=Q2.prototype.openPopupHandler_;_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Q2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);
_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],Q2.prototype,"ytEventForwardingBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],Q2.prototype,"data",void 0);_.L([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],Q2.prototype,"primaryIsCancel",void 0);_.L([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],Q2.prototype,"isCancelButtonHidden",void 0);
_.L([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],Q2.prototype,"isCheckboxHidden",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Q2.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.L([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Q2.prototype,"useOverlayForSpinner_",void 0);
_.L([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.H("design:type",Boolean)],Q2.prototype,"showSpinner_",void 0);_.L([_.F({value:!1}),_.H("design:type",Boolean)],Q2.prototype,"isActionInProgress_",void 0);_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.H("design:type",Boolean)],Q2.prototype,"hasHeaderImageWidth_",void 0);
_.L([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.H("design:type",Boolean)],Q2.prototype,"hasLoadingMessage",void 0);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Q2.prototype,"openPopupHandler_",null);_.L([_.nF("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Q2.prototype,"closePopupHandler_",null);
_.L([_.bF("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q2.prototype,"onHeaderImageChanged_",null);_.L([_.bF("data.headerImageWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q2.prototype,"onHeaderImageWidthChanged_",null);_.L([_.bF("data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q2.prototype,"onThumbnailChanged_",null);
_.L([_.nF("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Q2.prototype,"onYtNavigate_",null);_.L([_.nF("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Q2.prototype,"onThumbnailLoaded_",null);_.L([_.nF("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.yf]),_.H("design:returntype")],Q2.prototype,"onYtServiceRequestSent_",null);
_.L([_.nF("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.AW]),_.H("design:returntype")],Q2.prototype,"onYtServiceRequestCompleted_",null);_.L([_.Em({is:"yt-confirm-dialog-renderer",noInjection:!0})],Q2);var Als;var uAA;var FJ=function(){return _.z.apply(this,arguments)||this};
_.w(FJ,_.z);FJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Y9(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
FJ.prototype.computeConfirmButton_=function(B){var c={text:B.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};B.confirmNavigationEndpoint?c.navigationEndpoint=B.confirmNavigationEndpoint:B.confirmServiceEndpoint&&(c.serviceEndpoint=B.confirmServiceEndpoint);return c};
FJ.prototype.computeShowTitle_=function(B){return!(B==null||!B.title)};
_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],FJ.prototype,"data",void 0);_.L([_.F({computed:"computeShowTitle_(data)"}),_.H("design:type",Boolean)],FJ.prototype,"showTitle",void 0);_.L([_.Em({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],FJ);
_.G(FJ,"yt-fancy-dismissible-dialog-renderer",function(){if(uAA===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Als===void 0&&(Als=document.createElement("template"));var P=Als;x.call(c,P.content.cloneNode(!0),B.content.firstChild);uAA=B}B=uAA;return B});var DI8;var rlz;var vj=function(){var B=_.z.apply(this,arguments)||this;B.spinnerActive=!1;return B};
_.w(vj,_.z);vj.prototype.created=function(){UiF(2201)};
vj.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
vj.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
vj.prototype.onIronOverlayClosed=vj.prototype.onIronOverlayClosed;vj.prototype.onIronOverlayOpened=vj.prototype.onIronOverlayOpened;_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.ii),_.H("design:type",Object)],vj.prototype,"tpYtIronOverlayBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],vj.prototype,"data",void 0);_.L([_.F(),_.H("design:type",Object)],vj.prototype,"spinnerActive",void 0);
_.L([_.nF("iron-overlay-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vj.prototype,"onIronOverlayOpened",null);_.L([_.nF("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vj.prototype,"onIronOverlayClosed",null);_.L([_.Em({is:"yt-loading-renderer",disableElementRegistration:!0})],vj);
_.G(vj,"yt-loading-renderer",function(){if(rlz===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;DI8===void 0&&(DI8=document.createElement("template"));var P=DI8;x.call(c,P.content.cloneNode(!0),B.content.firstChild);rlz=B}B=rlz;return B},{mode:2});var Ryc;var eyr;var zb=function(){var B=_.z.apply(this,arguments)||this;B.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);B.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);B.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.w(zb,_.z);_.a=zb.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.a.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.a.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.a.openPopupHandler_=function(B){B.detail===this.hostElement&&this.hostElement.hidden&&_.gj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.a.onDismissButtonTap_=function(){var B;this.closeOnDismissButton_.has(((B=this.data)==null?void 0:B.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.gj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.a.onAcceptButtonTap_=function(){var B;this.closeOnAcceptButton_.has(((B=this.data)==null?void 0:B.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.gj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.a.computeHasHeader_=function(B){return!!B.headerBackgroundImage};
_.a.computeLayoutStyle_=function(B){return B};
_.a.computePopupSize_=function(B){return B};
_.a.computeIconType_=function(B){return B.dialogIcon&&B.dialogIcon.iconType?B.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":B.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":B.dialogIcon.iconType:""};
_.a.computeIsLogo_=function(B){return!!B.dialogIcon&&!!B.dialogIcon.iconType&&(B.dialogIcon.iconType==="YOUTUBE_LOGO"||B.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||B.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.a.computeHasCustomLogo=function(B){return!(B==null||!B.headerForegroundImage)};
_.a.computeCustomLogo=function(B,c){if(B!=null&&B.headerForegroundImage)return B.headerForegroundImageDark?c?B.headerForegroundImageDark:B.headerForegroundImage:B.headerForegroundImage};
_.a.computeHeaderBackgroundImage=function(B,c){if(B!=null&&B.headerBackgroundImage)return c&&(B==null?0:B.headerBackgroundImageDark)?B.headerBackgroundImageDark:B.headerBackgroundImage};
_.a.shouldShowIconContainer=function(B,c){return B&&!c};
_.a.shouldShowNonYouTubeIcon=function(B,c){return!B&&!c};
_.a.getLogoImageId=function(B){var c,x,P;return(B=(c=this.computeCustomLogo(B,this.isDarkTheme))==null?void 0:(x=c.thumbnails)==null?void 0:(P=x[0])==null?void 0:P.height)&&B%31===0?"custom-logo-with-padding":"custom-logo"};
zb.prototype.openPopupHandler_=zb.prototype.openPopupHandler_;zb.prototype.dataChanged_=zb.prototype.dataChanged_;_.L([_.J(_.gG.YtRendererstamperBehavior),_.H("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.L([_.F(),_.H("design:type",Boolean)],zb.prototype,"isDarkTheme",void 0);
_.L([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.H("design:type",Object)],zb.prototype,"customLogo",void 0);_.L([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.H("design:type",Object)],zb.prototype,"headerBackgroundImage",void 0);_.L([_.F(),_.H("design:type",Object)],zb.prototype,"data",void 0);_.L([_.F({computed:"computeHasHeader_(data)"}),_.H("design:type",Boolean)],zb.prototype,"hasHeader",void 0);
_.L([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.H("design:type",Object)],zb.prototype,"layoutStyle",void 0);_.L([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.H("design:type",Object)],zb.prototype,"popupSize",void 0);_.L([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],zb.prototype,"hasLogo",void 0);
_.L([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],zb.prototype,"hasCustomLogo",void 0);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zb.prototype,"dataChanged_",null);_.L([_.nF("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zb.prototype,"openPopupHandler_",null);
_.L([_.Em({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],zb);
_.G(zb,"yt-upsell-dialog-renderer",function(){if(eyr===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;Ryc===void 0&&(Ryc=document.createElement("template"));var P=Ryc;x.call(c,P.content.cloneNode(!0),B.content.firstChild);eyr=B}B=eyr;return B},{mode:2});var B4i=_.rM(function(B){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.U(_.m,{cond:B.title,then:function(c){return _.U("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},c)}}))},"wg"),cws=_.rM(function(B){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.U(_.IF,{data:B.closeButton},{buttonViewModel:function(c){return _.U("div",null,_.U(_.Q7,{data:c.data}))}}))},"xg"),x7A=_.rM(function(B){var c=
B.data;
return _.U(_.at,null,_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.U(_.m,{cond:function(){return!!c().image&&!!c().title},
then:function(){return _.U(_.D9,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.U(_.m,{cond:function(){return c().title},
then:function(x){return _.U("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},x)}}),_.U(_.m,{cond:function(){return c().primaryGenre},
then:function(x){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},x)}}))),_.U(_.m,{cond:function(){var x=c().description;
return x&&x.length<=150},
then:function(){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return c().description}))}}))},"yg"),PNi=_.rM(function(B){B=B.infoRows;
var c=_.cp().resolve(_.Fc),x=_.T("enable_displaying_ppn");return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.U(_.mV,{each:B},function(P){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.U(_.m,{cond:function(){return P.label},
then:function(Y){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},Y)}}),_.U(_.m,{cond:function(){return P.attributedLabel},
then:function(Y){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.U(_.RF,{text:Y,noPreWrap:!0}))}}),_.U(_.m,{cond:function(){return P.value},
then:function(Y){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Y)}}),_.U(_.m,{cond:function(){return P.attributedValue},
then:function(Y){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.U(_.RF,{text:Y,noPreWrap:!0}))}}))}),_.U(_.m,{cond:function(){return x&&c.clientData.has("post_play_nonce")},
then:function(){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},c.getData("post_play_nonce")))}}))},"zg"),YCF=_.rM(function(B){var c=B.data;
return _.U("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.U(B4i,{title:function(){return c().dialogTitle}}),_.U(x7A,{data:c}),_.U(_.m,{cond:function(){return c().infoRow},
then:function(x){return _.U(PNi,{infoRows:x})}}),_.U(cws,{closeButton:function(){return c().closeButton}}))},"Ag");
YCF.idomCompat=!0;_.xU(YCF,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;return _.U("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.U(_.D9,{data:function(){return c().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.U("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.U("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.U(_.m,{cond:function(){var x=c().ytLogo;return x?x.iconType:null},
then:function(x){return _.U(_.Vf,{icon:x,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.U("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.U("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.U(_.RF,{text:function(){return c().body}})),_.U("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.U(_.RF,{text:function(){return c().verifyStateText}}))),
_.U("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.U("div",null,_.U(_.IF,{data:function(){return c().dismissButton}},{buttonViewModel:_.Q7})),_.U("div",null,_.U(_.IF,{data:function(){return c().linkParentButton}},{buttonViewModel:_.Q7})))))},"Bg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.rk}});var akl=_.rM(function(B){var c=B.data;B=_.A9(function(){return c().agreements},[]);
return _.U("installment-agreements-view-model",{class:_.Kw("ytInstallmentAgreementsViewModelHost")},_.U(_.mV,{each:B},function(x){return _.U("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.U("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.U(_.RF,{text:x.label})),_.U("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.U(_.IF,{data:function(){return x.openButton}},{buttonViewModel:_.Q7})))}))},"Cg");
akl.idomCompat=!0;var gmz=_.rM(function(B){return _.U("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.U(_.RF,{text:function(){return B.data().inviteMessage}})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.U(_.RF,{text:function(){return B.data().attributedAccountSectionHeaderText}})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.U(_.IF,{data:function(){return B.data().accountAvatar}},{avatarViewModel:_.IS}),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.U(_.RF,{text:function(){return B.data().accountName}}),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.U(_.RF,{text:function(){return B.data().handle}}))),_.U(_.IF,{data:function(){return B.data().trailingButton}},{buttonViewModel:_.Q7})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.U(_.RF,{text:function(){return B.data().termsOfService}})))},"Dg");var s5i=_.rM(function(B){var c=_.p(_.mg(function(){var e,px;return((e=B.data().createPlaylistDialogFormSchema)==null?0:(px=e.initialValues)==null?0:px.title)?B.data().createPlaylistDialogFormSchema.initialValues.title:""})),x=c.next().value,P=c.next().value;
c=_.p(_.mg(function(){B.data();return!1}));
var Y=c.next().value,g=c.next().value;c=_.p(_.mg(function(){B.data();return!1}));
var k=c.next().value,n=c.next().value;c=_.p(_.mg(function(){var e,px;return(e=B.data().createPlaylistDialogFormSchema)==null?void 0:(px=e.initialValues)==null?void 0:px.visibility}));
var b=c.next().value,d=c.next().value;c=_.p(_.mg(function(){B.data();return!1}));
var q=c.next().value,C=c.next().value;c=_.p(_.mg(function(){var e,px;return(e=B.data().createPlaylistDialogFormSchema)==null?void 0:(px=e.initialValues)==null?void 0:px.isCollaborative}));
var h=c.next().value,V=c.next().value,N=_.Ho("div");_.IO(function(){var e=N.value.querySelector("textarea");e&&(e.value=x())},"OCauEe");
_.lk(function(){var e;_.tk8((e=B.data().createPlaylistDialogFormSchema)==null?void 0:e.id,{onSubmit:function(){var px=x();var kI=b(),Ul=h(),wC=B.data();px={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:px,privacyStatus:kI,videoIds:wC.videoIds,sourcePlaylistId:wC.sourcePlaylistId,params:Ul?wC.createPlaylistParamsCollaborationEnabled:wC.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.cp().resolve(_.xu).resolveCommand(px)},
isValid:function(){return Y()&&!k()&&!q()}})});
var l=function(e){if(e!==void 0&&(P(e),!Y()&&e.length>0&&g(!0),Y())){var px=NLA(B.data());if(px){var kI=px.minLength;px=px.maxLength;kI&&e.length<kI?n(!0):px&&e.length>px?n(!0):n(!1)}}},E=function(){var e=!(!h()||b()!=="PRIVATE");
C(e)},S=function(e){e!==void 0&&(d(e),E())},M=function(){if(q())return Jmz(B.data())},f=function(){V(!h());
E()},Z=function(){return{validate:function(e){if(Y()){var px=NLA(B.data());
if(px){var kI=px.minLength;px=px.translations;if(kI&&e.length<kI)return px==null?void 0:px.minLengthErrorMessage}}}}},u=function(){var e=NLA(B.data()),px=e==null?void 0:e.maxLength,kI;
e=e==null?void 0:(kI=e.translations)==null?void 0:kI.maxLengthErrorMessage;if(px&&e)return{maxChars:px,errorMessage:e}};
return _.U("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.U("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:N},_.U(_.IF,{data:function(){return B.data().playlistTitle}},{textFormFieldViewModel:function(e){return _.U(_.$Rc,{data:e.data,
text:x,onInput:l,validation:Z,characterLimit:u})},
textFieldViewModel:function(e){return _.U(_.X56,{data:e.data,text:x,onInput:l,validation:Z,characterLimit:u})}})),_.U("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.U(_.IF,{data:function(){return B.data().playlistVisibility}},{dropdownViewModel:function(e){return _.U(_.VIr,{data:e.data,
onSelected:S,error:M})}})),_.U(_.m,{cond:function(){return!!B.data().playlistCollaborate},
then:function(){return _.U("div",null,_.U(_.IF,{data:function(){return B.data().playlistCollaborate}},{switchListItemViewModel:function(e){return _.U(_.bIZ,{data:e.data,
onTap:f})}}))}}))},"Eg");var ptz=_.rM(function(B){var c=_.A9(B.noPadding,!1),x=function(){var Y,g;return(g=(Y=B.data().logo.accessibilityData)==null?void 0:Y.label)!=null?g:""},P={};
return _.U("upsell-view-model",{class:_.Kw("ytUpsellViewModelHost",(P.ytUpsellViewModelHostNoPadding=function(){return c()},P))},_.U("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.U(_.m,{cond:function(){return _.r$(B.data().logo)},
then:function(Y){return _.U(_.D9,{data:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:x})}})),_.U("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.U(_.RF,{text:function(){return B.data().title}})),_.U("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.U(_.mV,{each:function(){var Y;
return(Y=B.data().subtitles)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.U("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.U(_.RF,{text:Y}))})),_.U("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.U(_.mV,{each:function(){var Y;
return(Y=B.data().benefitInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.U(_.m,{cond:function(){return Y().info},
then:function(g){return _.U("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.U(_.Vf,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.U(_.RF,{text:g}))}})})),_.U("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.U(_.mV,{each:function(){var Y;
return(Y=B.data().legalInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.U("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.U(_.RF,{text:Y}))})))},"Fg");var kc6=_.rM(function(B){var c=B.data;B={};B=(B.ytMiniAppScoreChallengeViewModelScoreRadial=!0,B.ytMiniAppScoreChallengeViewModelDarkScoreRadial=WkA(),B);return _.U("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.U("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return c().title}),_.U("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return c().subtitle}),_.U("div",{class:_.U9(B)},_.U("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return c().score})),_.U("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return c().prompt}))},"Gg");var Xti=function(){this.store=_.HW();this.formId=""};var $7N=_.rM(function(B){function c(n){if(n&&(n=_.t(n,_.qv)))return Object.assign({},n,{isSelected:g()})}
var x=_.p(_.mg(function(){var n,b;return(b=(n=_.t(B.data().option,_.qv))==null?void 0:n.isSelected)!=null?b:!1})),P=x.next().value,Y=x.next().value,g=P;
_.lk(function(){var n;_.tk8((n=B.data().formSchema)==null?void 0:n.id,{onSubmit:function(){var b=_.cp().resolve(_.xu),d=!!B.data().selectedCommand,q=!!B.data().unselectedCommand;if(g()){if(d)var C=B.data().selectedCommand}else q&&(C=B.data().unselectedCommand);C=_.vH(C);c(B.data().option)&&!C?(b="",!d&&q?b="selected ":d&&!q&&(b="unselected "),d=new _.mc("No "+b+"command found for SelectionListItemFormViewModel"),_.lb(d)):C&&b.resolveCommand(C)},
isValid:function(){return!0}})});
var k=function(){Y(!g())};
_.lP(function(){var n,b,d=(n=B.data())==null?void 0:(b=n.formSchema)==null?void 0:b.id;d&&_.TWz()().delete(d)});
return _.U("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.U("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.U(_.RF,{text:function(){return B.data().paragraph}})),_.U(_.m,{cond:function(){return c(B.data().option)},
then:function(n){return _.U(_.W0,{data:n,isCompact:!0,hideSelectionTextChevron:!0,onTap:k,disableHorizontalPadding:!0})}}))},"Hg");var nm6=_.rM(function(B){var c=B.data;var x=B.disablePadding;var P=B.className;var Y=_.Ho("yt-dialog-header-view-model"),g=function(){var n=c().imageBanner;a:switch(c().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:n,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},k=function(){return c().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.lk(function(){var n=function(){_.gj(Y.value,"yt-refit-popups-action")},b;
(b=Y.value)==null||b.addEventListener("image-loaded",n);_.lP(function(){var d;(d=Y.value)==null||d.removeEventListener("image-loaded",n)})});
B={};return _.U("yt-dialog-header-view-model",{el:Y,class:_.Kw(P,(B.ytDialogHeaderViewModelHost=!0,B.ytDialogHeaderViewModelHostDisablePadding=x,B))},_.U(_.m,{cond:function(){return c().imageBanner},
then:function(){var n={};return _.U("div",{class:_.Kw(P,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=k,n)),style:_.TU({"max-height":function(){return c().assetContainerMaxHeight!==void 0?c().assetContainerMaxHeight+"px":void 0}})},_.U(_.cz,{data:g,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.U(_.m,{cond:function(){return c().headerBlock},
then:function(){return _.U("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.U(_.IF,{data:function(){return c().headerBlock}},{contentPreviewImageViewModel:function(n){return _.U(_.cz,{data:n.data,
notifyOnLoaded:!0})}}))}}),_.U(_.m,{cond:function(){return c().customAssetContainer},
then:function(n){return _.U("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.U(_.IF,{data:n},{avatarStackViewModel:_.WT}))}}),_.U(_.m,{cond:function(){return c().customBanner},
then:function(n){return _.U("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.U(_.IF,{data:n},{avatarStackViewModel:_.WT}))}}),_.U(_.m,{cond:function(){return c().headline},
then:function(n){return _.U("h2",null,_.U(_.RF,{text:n,className:"ytDialogHeaderViewModelText"}))}}))},"Ig");
nm6.idomCompat=!0;var b7N=_.rM(function(B){var c=_.wMo(function(){return B.data().formId}),x=c.onSubmit,P=c.isValid;
return _.U("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.U(_.IF,{data:function(){return B.data().panelFooter}},{panelFooterViewModel:function(Y){return _.U(_.GD,{data:Y.data,
disablePadding:!0,disablePrimaryButton:function(){return!P()},
onClickPrimaryButton:function(){x()}})}}))},"Jg");var KI8=_.rM(function(B){var c=function(){var x,P;return(P=(x=_.t(B.data().rendererContext,_.T3))==null?void 0:x.label)!=null?P:""};
return _.U("yt-dialog-image-content-view-model",{class:_.Kw("ytDialogImageContentViewModelHost",B.className)},_.U(_.m,{cond:function(){return _.r$(B.data().image)},
then:function(x){return _.U(_.D9,{data:x,alt:c,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.U(_.RF,{text:function(){return B.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kg");var d7z=_.rM(function(B){var c=_.uF(B,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),x=c.elRefCallback;B=c.iconWiz;var P=c.assetWiz,Y=c.assetType,g=c.titleWiz,k=c.leadingActionHeaderWiz,n=c.trailingActionHeaderWiz,b=c.headerPosition,d=c.contentWiz,q=c.buttonLayout,C=c.buttonStyle,h=c.primaryButtonWiz,V=c.secondaryButtonWiz,N=c.contentAlignment,l=c.isFullscreen,E=c.width,S=c.maxHeight,M=c.isHeaderWizDefined,
f=c.headerWiz,Z=c.isFooterWizDefined,u=c.footerWiz;c=_.Ho("dialog-layout",function(yw){x==null||x(yw)});
var e=P?function(){return P({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,px=h?function(){var yw={};
return h({buttonOverrides:function(){return{style:(C==null?void 0:C())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Kw((yw["yt-spec-dialog-layout__dialog-layout-button"]=!0,yw["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},yw))})}:void 0,kI=V?function(){var yw={};
return V({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Kw((yw["yt-spec-dialog-layout__dialog-layout-button"]=!0,yw["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},yw))})}:void 0,Ul=function(){return(!!g||!!k||!!n)&&b()===0},wC={},W$={},El={},H$={};
return _.U("dialog-layout",{el:c,class:_.Kw((wC["yt-spec-dialog-layout"]=!0,wC["yt-spec-dialog-layout--dialog-layout-fullscreen"]=l,wC["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!l()},wC["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return S()===1},wC["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Y==null?void 0:Y())===1},wC)),
style:function(){return(E==null?void 0:E())!==void 0?"width: "+E+"px;":""}},B?_.U("div",{class:_.Kw((W$["yt-spec-dialog-layout__dialog-layout-icon"]=!0,W$["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!P&&b()===1},W$["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return N()===1},W$))},_.U(B,null)):null,_.U(_.m,{cond:M,
then:function(){return f?_.U("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.U(f,null)):null},
else:function(){return _.U(_.at,null,_.U(_.m,{cond:Ul,then:function(){return _.U(j5N,{contentAlignment:N,LeadingActionHeader:k,TrailingActionHeader:n,Title:g,isAboveAsset:!!e})}}),e?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.U(e,null)):null)}}),_.U("div",{class:_.Kw((El["yt-spec-dialog-layout__dialog-layout-container"]=!0,El["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1},El["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!g&&!f||!!e&&(b==null?void 0:b())===0},El))},_.U(_.m,{cond:function(){return g&&!f&&(b==null?void 0:b())===1},
then:function(){return _.U(j5N,{contentAlignment:N,LeadingActionHeader:k,TrailingActionHeader:n,Title:g,isAboveAsset:!1})}}),d?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.U(d,null))):null,_.U(_.m,{cond:Z,
then:function(){return u?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.U(u,null)):null}}),px||kI?_.U(U7o,{footerClasses:_.Kw((H$["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,H$["yt-spec-dialog-layout__dialog-layout-footer"]=!0,H$["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(q==null?void 0:q())===2},H$["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(q==null?void 0:q())===1},H$)),
PrimaryButton:px,SecondaryButton:kI}):null))},"Lg"),j5N=_.rM(function(B){var c=_.uF(B,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),x=c.contentAlignment,P=c.LeadingActionHeader;B=c.Title;var Y=c.TrailingActionHeader,g=c.isAboveAsset,k=c.enableLeadingActionHeader;c={};return _.U("div",{class:_.Kw((c["yt-spec-dialog-layout__dialog-header-container"]=!0,c["yt-spec-dialog-layout__dialog-header"]=!0,c["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,c["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(x==null?void 0:x())===1&&k()},c))},_.U(_.m,{cond:function(){return k()},
then:function(){return P?_.U("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.U(P,null)):null}}),B?_.U("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.U(B,null)):null,Y?_.U("div",null,_.U(Y,null)):null)},"Mg"),U7o=_.rM(function(B){var c=B.footerClasses;
var x=B.PrimaryButton;B=B.SecondaryButton;return _.U("div",{class:c},B?_.U(B,null):null,x?_.U(x,null):null)},"Ng");var qCl=_.rM(function(B){var c=B.data;return _.U("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.U("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.U(_.IF,{data:function(){return c().avatar}},{avatarViewModel:_.IS})),_.U("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U(_.RF,{text:function(){return c().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Og");var CNz=_.rM(function(B){var c=B.data;return _.U("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.U("div",{class:"ytAccessConfirmationViewModelContent"},_.U(_.IF,{data:function(){return c().dualAvatar}},{dualAvatarViewModel:function(x){return _.U(_.HTy,{data:x.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.U("h2",{class:"ytAccessConfirmationViewModelTitle"},_.U(_.RF,{text:function(){return c().title}})),_.U(_.RF,{text:function(){return c().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pg");var hXF=_.rM(function(B){var c=B.data;var x=void 0;B=_.p(_.mg(function(){var d;return((d=_.t(c().content,_.SqS))==null?void 0:d.defaultSelectedKey)||""}));
var P=B.next().value,Y=B.next().value,g,k=function(){Y("");var d;(d=x)!=null&&d.store.dispatch(_.YN({type:"RESET_COMMAND_MAP"}))};
_.lk(function(){x=new Xti;window.addEventListener("yt-popup-closed",k)});
_.IO(function(){if(x&&g!==c().formId){var d=x,q=c();q.formId&&(d.formId=q.formId,d.store.dispatch(_.YN({type:"SET_CURRENT_FORM_ID",payload:{formId:d.formId}})));(g=c().formId)&&P()&&(d=x,q={key:P()},q.command&&d.store.dispatch(q98(g,q.command)))}},"k6b6Qe");
_.lP(function(){window.removeEventListener("yt-popup-closed",k)});
var n=function(d,q,C){q.key&&C&&q.key!==P()&&(Y(q.key),x&&q.command&&x.store.dispatch(q98(C,q.command)))},b=function(){if(_.t(c().content,_.SqS))return!(P==null?0:P())};
return _.U("yt-dialog-view-model",{class:_.Kw("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.U(d7z,{headerWiz:function(){return _.U("span",{skip:!0},_.U(_.IF,{data:function(){return c().header}},{dialogHeaderViewModel:function(d){return _.U(nm6,{data:d.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!c().header},
contentWiz:function(){return _.U("span",{skip:!0},_.U(_.IF,{data:function(){return c().customContent?c().customContent:c().content}},{basicContentViewModel:_.EIF,
createPlaylistDialogFormViewModel:s5i,collaborativePlaylistInviteMessageViewModel:gmz,miniAppScoreChallengeViewModel:kc6,radioButtonGroupViewModel:function(d){var q=d.data;return _.U(_.h2o,{data:q,selectedKey:P,onSelected:n,groupName:function(){return q().formId}})},
selectionListItemFormViewModel:$7N,upsellViewModel:function(d){return _.U(ptz,{data:d.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:qCl,installmentAgreementsViewModel:akl,accessConfirmationViewModel:CNz,listViewModel:function(d){return _.U(_.mE3,{data:d.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:KI8}))},
footerWiz:function(){return _.U("span",{skip:!0},_.U(_.IF,{data:function(){return c().footer}},{panelFooterViewModel:function(d){return _.U(_.GD,{data:d.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:b7N,formFooterViewModel:function(d){return _.U(_.stz,{data:d.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!c().footer}}))},"Qg");
hXF.idomCompat=!0;_.xU(hXF,"yt-dialog-view-model",{props:{data:_.rk},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var m7y=_.rM(function(B){var c=B.data;B={};return _.U("yt-panel-header-view-model",{class:_.Kw("yt-panel-header-view-model-wiz",(B["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!c().shouldHideDivider},B["yt-panel-header-view-model-wiz--compact"]=function(){return!!c().subtitle},B))},_.U("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.U(_.m,{cond:function(){return c().title},
then:function(x){return _.U(_.RF,{text:x,className:"yt-panel-header-view-model-wiz__title"})}}),_.U(_.m,{cond:function(){return c().subtitle},
then:function(x){return _.U(_.RF,{text:x,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.U("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.U(_.IF,{data:function(){return c().trailingButtons}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Rg");
m7y.idomCompat=!0;var T4z=_.rM(function(B){var c=_.qe(function(g){var k;if((k=B.skipContentClick)==null?0:k.call(B))return!1;B.onContentWrapperClick(g);return!0}),x,P,Y;
return _.U("div",{class:_.Kw("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return B.isAnimating()?"transform: translateY("+B.currentY()+"px);transition: 0.2s":""}},(x=B.header)==null?void 0:x.call(B),_.U("div",{id:B.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.TU({"max-height":(0,_.Ih)(B.maxHeightForContentWrapper)}),"on:scroll":oNN(B.onScroll),"on:touchmove":oNN(function(g){return void g.stopPropagation()})},_.U("div",{el:{onRender:B.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":c},(P=B.body)==null?void 0:P.call(B))),(Y=B.footer)==null?void 0:Y.call(B))},"Sg");
T4z.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var V9c=_.rM(function(B){var c=_.A9(B.leadingLabel),x=_.A9(B.trailingLabel),P=_.A9(B.footerButtonType),Y=function(){return c()||x()||B.hasPrimaryButton()||B.hasSecondaryButton()},g={},k=_.Kw("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return P()===0&&B.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return P()===1&&B.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return P()===2&&B.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return P()===3&&B.hasPrimaryButton()},g));
g={};var n=_.Kw("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return P()===1&&B.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return P()===2&&B.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return P()===3&&B.hasPrimaryButton()},g));
return _.U(_.m,{cond:B.hasFooterOverride,then:function(){var b;return _.U(_.at,null,(b=B.footerOverride)==null?void 0:b.call(B))},
else:function(){return _.U(_.m,{cond:Y,then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.U(_.m,{cond:function(){return c()||x()},
then:function(){var b={};return _.U("div",{class:_.Kw("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!B.hasPrimaryButton()},b))},_.U(_.m,{cond:c,
then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},c)}}),_.U(_.m,{cond:x,
then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},x)}}))}}),_.U(_.m,{cond:function(){return B.hasPrimaryButton()||B.hasSecondaryButton()},
then:function(){var b={};return _.U("div",{class:_.Kw("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.wdS,b))},_.U(_.m,{cond:function(){return B.hasSecondaryButton()&&P()!==0},
then:function(){var d;return _.U("div",{class:n},(d=B.secondaryButton)==null?void 0:d.call(B))}}),_.U(_.m,{cond:B.hasPrimaryButton,
then:function(){var d;return _.U("div",{class:k},(d=B.primaryButton)==null?void 0:d.call(B))}}))}}))}})}})},"Tg");
V9c.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var t96=_.rM(function(B){var c=_.A9(B.title),x=_.A9(B.subtitle);return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:B.headerId,"on:touchstart":_.qe(function(P){var Y;(Y=B.touchstart)==null||Y.call(B,P);return!1}),
"on:touchmove":_.qe(function(P){var Y;(Y=B.touchmove)==null||Y.call(B,P);return!1}),
"on:touchend":_.qe(function(P){var Y;(Y=B.touchend)==null||Y.call(B,P);return!1})},_.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.U(_.m,{cond:B.hasHeaderOverride,
then:function(){var P;return _.U(_.at,null,(P=B.headerOverride)==null?void 0:P.call(B))},
else:function(){var P={};return _.U("div",{class:_.Kw((P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=c,P))},_.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.U(_.m,{cond:c,then:function(){return _.U(_.at,null,_.U("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},c),_.U(_.m,{cond:x,then:function(){return _.U("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
x)}}))}})),_.U(_.m,{cond:function(){return c()&&B.hasActionHeader()},
then:function(){var Y;return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Y=B.actionHeader)==null?void 0:Y.call(B))}}))}}))},"Ug");
t96.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.rM(function(B){function c(e){if(!S&&typeof MutationObserver!=="undefined"){var px={childList:!0};"MutationObserver"in window&&(S=new MutationObserver(x.bind(void 0,e)),S.observe(e,px))}}
function x(e){typeof S!=="undefined"&&(M["content-wrapper"]===void 0&&(M["content-wrapper"]=e.children[0].clientHeight),V(M["content-wrapper"]),h()>N()||l(h()))}
function P(){C(window.innerHeight);h()>N()||l(h());f.isFullScreen[0]()&&h()>N()?Z().dispatch("Snap To Full Screen",{maxHeight:E()}):Z().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function Y(e){document.body.style.overscrollBehavior="none";e.preventDefault();Z().dispatch("Touch Start",{event:e})}
function g(e){e.preventDefault();Z().dispatch("Touch Move",{event:e,contentScrollable:h()>N(),fullContentWrapperHeight:E(),contentWrapperHeight:N(),contentHeightMap:M,contentWrapperId:"content-wrapper",header:Fkr(B),footer:Fkr(B)})}
function k(){document.body.style.overscrollBehavior="";f.isFullScreen[0]()?f.currentY[0]()>=60?Z().dispatch("Snap To Neutral Position",{maxHeight:N()}):Z().dispatch("Snap To Full Screen",{maxHeight:E()}):f.currentY[0]()>=60?n():f.currentY[0]()<=-60&&h()>N()?Z().dispatch("Snap To Full Screen",{maxHeight:E()}):Z().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function n(){Z().dispatch("Close Sheet",{clientHeight:q(),maxHeight:0});setTimeout(function(){QwN()},250)}
var b=_.p(_.$D(window.innerHeight,void 0,"NWeFS")),d=b.next().value;b=b.next().value;var q=d,C=b;b=_.p(_.$D(0,void 0,"oxfm4"));d=b.next().value;b=b.next().value;var h=d,V=b;b=_.p(_.mg(function(){var e=Fkr(B);return.6*q()-lj6(e)-ENz(e)}));
d=b.next().value;b=b.next().value;var N=d,l=b,E=function(){var e=Fkr(B);return q()-lj6(e)-ENz(e)-24-24},S=null,M={},f={initialY:_.$D(0,void 0,"cYBE5c"),
currentY:_.$D(0,void 0,"RndqHc"),isAnimating:_.$D(!1,void 0,"vO9DVd"),isFullScreen:_.$D(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.mg(N)},Z=function(){var e=null;return function(){if(!e){var px={initialY:f.initialY[0](),currentY:f.currentY[0](),isAnimating:f.isAnimating[0](),isFullScreen:f.isFullScreen[0](),maxHeightForContentWrapper:f.maxHeightForContentWrapper[0]()};e=Oki(px)}return e}}();
_.lk(function(){window.addEventListener("resize",P);Z().subscribe(function(e){f.initialY[1](e.initialY);f.currentY[1](e.currentY);f.isAnimating[1](e.isAnimating);f.isFullScreen[1](e.isFullScreen);f.maxHeightForContentWrapper[1](e.maxHeightForContentWrapper)})});
_.lP(function(){window.removeEventListener("resize",P);S&&(S.disconnect(),S=null)});
var u=_.Kw({"bottom-sheet-content-without-icon":function(){var e;return!((e=B.shouldShowIcons)==null?0:e.call(B))}});
return _.U("bottom-sheet-layout",null,_.U(T4z,{contentWrapperId:"content-wrapper",isAnimating:function(){return f.isAnimating[0]()},
currentY:function(){return f.currentY[0]()},
maxHeightForContentWrapper:function(){return f.maxHeightForContentWrapper[0]()},
shouldShowIcons:B.shouldShowIcons,skipContentClick:B.skipContentClick,onScroll:function(){var e=document.getElementById("header-wrapper"),px=document.getElementById("content-wrapper");if(e&&px){var kI={};kI=(kI["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kI["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kI);e.className=px.scrollTop>1?_.U9(kI):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:QwN,contentWrapperEl:function(e){c(e);requestAnimationFrame(function(){x(e)})},
header:function(){return _.U(t96,{touchstart:Y,touchmove:g,touchend:k,title:B.headerTitle,subtitle:B.headerSubtitle,headerId:"header-wrapper",headerOverride:B.headerFn,hasHeaderOverride:B.hasHeaderFn,actionHeader:B.headerActionHeader,hasActionHeader:B.hasHeaderActionHeader})},
footer:function(){return _.U(V9c,{footerButtonType:B.footerButtonType,leadingLabel:B.footerLeadingLabel,trailingLabel:B.footerTrailingLabel,primaryButton:B.footerPrimaryButton,hasPrimaryButton:B.hasFooterPrimaryButton,secondaryButton:B.footerSecondaryButton,hasSecondaryButton:B.hasFooterSecondaryButton,footerOverride:B.footerFn,hasFooterOverride:B.hasFooterFn})},
body:function(){return _.U(_.m,{cond:B.hasContentFn,then:function(){var e;return _.U("div",{class:u},(e=B.contentFn)==null?void 0:e.call(B))}})}}))},"Vg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var wtB=_.rM(function(B){var c=_.cp().resolve(_.Vi);return _.U("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.qe(function(){return void c.closeSheet()})},_.U(_.m,{cond:function(){return!!B.header},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},B.header())}}),_.U(_.m,{cond:function(){return!!B.content},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},B.content())}}),_.U(_.m,{cond:function(){return!!B.footer},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},B.footer())}}))},"Wg");
wtB.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var N46=_.rM(function(B){B=B.data;var c=_.Ho("yt-sheet-view-model",function(P){if(_.T("web_focus_first_element_sheet"))return P.addEventListener("focus",function(){I6s(P)}),function(){P.removeEventListener("focus",function(){I6s(P)})}}),x={};
return _.U("yt-sheet-view-model",{class:_.Kw("yt-sheet-view-model-wiz",(x["yt-sheet-view-model-wiz--contextual"]=!0,x["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.T("web_disable_backdrop_filter"),x)),el:c,tabindex:-1},_.U(_.m,{cond:B,then:function(P){return _.U(wtB,{header:function(){return _.U(_.IF,{data:function(){return P().header}},{panelHeaderViewModel:m7y})},
content:function(){return _.U(_.IF,{data:function(){return P().content}},{listViewModel:function(Y){return _.U(_.mE3,{data:Y.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:ptz,miniAppScoreChallengeViewModel:kc6})},
footer:function(){return _.U(_.IF,{data:function(){return P().footer}},{panelFooterViewModel:_.GD})}})}}))},"Xg");
N46.idomCompat=!0;_.xU(N46,"yt-sheet-view-model",{props:{data:_.rk}});var JwN=_.rM(function(B){var c=function(){var x;return(x=B.data().enableDebuggingFeatures)!=null?x:!1};
return _.U("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.U(_.mV,{each:function(){var x;return(x=B.data().stickers)!=null?x:[]}},function(x){return _.U(Ikz,{data:function(){return x},
debugMode:c})}))},"Yg"),Ikz=_.rM(function(B){var c=_.uF(B,{debugMode:!1}).debugMode,x=_.A9(function(){var b;
return(b=B.data().region)==null?void 0:b.w},0),P=_.A9(function(){var b;
return(b=B.data().region)==null?void 0:b.h},0),Y=_.A9(function(){var b;
return(b=B.data().region)==null?void 0:b.x},0),g=_.A9(function(){var b;
return(b=B.data().region)==null?void 0:b.y},0),k=_.qe(function(){var b=B.data().onTap;
b&&_.Gl(b)}),n={};
return _.U("div",{class:_.Kw("ytStoriesStickerLayerViewModelSticker",(n.ytStoriesStickerLayerViewModelDebugMode=c,n)),style:_.TU({width:function(){return 100*x()+"%"},
height:function(){return 100*P()+"%"},
left:function(){return 100*Y()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return vNA(B.data().flexDirection)},
"justify-content":function(){return zll(B.data().justifyContent)},
"align-items":function(){return Svs(B.data().alignItems)}}),
"on:click":k},_.U(_.IF,{data:function(){return B.data().button||B.data().toggleButton}},{buttonViewModel:function(b){return _.U(_.Q7,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.U(_.Jb,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Zg");var lkz=_.rM(function(B){var c=function(){return B.data()},x={},P=_.A9(function(){return c().backgroundColor},0),Y=_.A9(function(){return c().actionButtons},[]),g=_.A9(function(){return c().stickerLayer},{}),k=function(){var b,d;
return{animationRef:x,animationConfig:{autoplay:!1,loop:!1,path:(d=(b=c().foregroundAnimation)==null?void 0:b.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){B.navigateToNextItemOnLottieComplete()}}}},n=function(){var b,d,q,C,h,V,N,l;
return{animationConfig:{autoplay:(V=(b=c().backgroundAnimation)==null?void 0:(d=b.settings)==null?void 0:d.autoplay)!=null?V:!1,loop:(N=(q=c().backgroundAnimation)==null?void 0:(C=q.settings)==null?void 0:C.loop)!=null?N:!1,path:(l=(h=c().backgroundAnimation)==null?void 0:h.url)!=null?l:"",name:"stories_item_background_animation"}}};
_.IO(function(){if(B.isVisible()){var b;(b=x.lottieEl)==null||b.play();B.animationRef()&&(B.animationRef().lottieEl=x.lottieEl)}else{var d;(d=x.lottieEl)==null||d.stop()}},"Cbnkwd");
return _.U("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.TU({"background-color":function(){return _.SF(P())+";"}})},_.U("div",{class:"ytStoriesItemViewModelAssetContent"},_.U(_.m,{cond:function(){return!!c().backgroundAnimation},
then:function(){return _.U(_.j5,{data:n,animationName:function(){return n().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.U(_.m,{cond:function(){return!!c().backgroundImage},
then:function(){return _.U(_.D9,{data:function(){return c().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.U(_.m,{cond:function(){return!!c().foregroundAnimation},
then:function(){return _.U(_.j5,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.U(_.m,{cond:function(){return!!c().foregroundImage},
then:function(){return _.U(_.D9,{data:function(){return c().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.U("div",{class:"ytStoriesItemViewModelTopShadow"}),_.U(_.IF,{data:function(){return g()}},{storiesStickerLayerViewModel:JwN})),_.U("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.TU({"background-color":function(){return _.SF(P())}})},_.U("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.qe(B.pauseAutoNavigation)},_.U(_.mV,{each:Y},function(b){return _.U(WIS,{data:function(){return b}})}))))},"$g"),Emz={style:"overlay",
type:"outline"},WIS=_.rM(function(B){var c={};return _.U("div",{class:_.Kw("ytStoriesItemViewModelActionButton",(c.ytStoriesItemViewModelStretchedActionButton=function(){return B.data().size==="STORIES_BUTTON_SIZE_STRETCH"},c))},_.U(_.IF,{data:function(){return B.data().button}},{buttonViewModel:function(x){return _.U(_.Q7,{data:x.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:Emz})}}))},"ah");_.xU(_.rM(function(B){var c=function(){var px;return(px=B.data().startIndex)!=null?px:0},x=_.p(_.mg(c)),P=x.next().value,Y=x.next().value;
x=_.p(_.$D(!1,void 0,"O8yPf"));var g=x.next().value,k=x.next().value,n=function(){var px;return(px=B.data().storyItems)!=null?px:[]},b={},d=function(){return B.data().dismissButton},q=function(){var px;
return _.t((px=_.t(d(),_.Tj))==null?void 0:px.onTap,_.Fo)},C=_.Ho("div"),h,V,N=!1,l=function(){var px;
(px=h)==null||px.cancel();h=E(P()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});h.onfinish=function(){E(P()).style.width="100%";var kI=_.t(n()[P()],oYS),Ul,wC;kI!=null&&kI.foregroundAnimation&&((kI==null?0:(Ul=kI.foregroundAnimation)==null?0:Ul.url)||(kI==null?0:(wC=kI.foregroundAnimation)==null?0:wC.payload))||(P()!==n().length-1?(Y(P()+1),l()):q()&&_.zl(q()))}},E=function(px){return C.value.children[px].children[0]},S=function(){for(var px=0;px<P();px++)E(px).style.width=
"100%"};
x=_.qe(function(){N||(g()?k(!1):(P()===n().length-1&&q()&&_.zl(q()),E(P()).style.width="100%",P()!==n().length-1&&(Y(P()+1),l())))});
var M=_.qe(function(){N||(g()?k(!1):(E(P()).style.width="0%",P()!==0?Y(P()-1):Y(P()),l()))}),f=function(){k(!0)},Z=function(){E(P()).style.width="100%";
P()!==n().length-1?(Y(P()+1),l()):q()&&_.zl(q())},u=_.qe(function(){N=!1;
V=setTimeout(function(){k(!0);N=!0},300)}),e=_.qe(function(){clearTimeout(V);
N&&g()&&k(!1)});
_.IO(function(){if(g()){var px;(px=h)==null||px.pause();var kI;(kI=b.lottieEl)==null||kI.pause()}else{var Ul;(Ul=h)==null||Ul.play();var wC;(wC=b.lottieEl)==null||wC.play()}},"DIHTEd");
_.IO(function(){S();P()===c()&&l()},"ze5F8b");
_.lk(function(){S();l()});
_.lP(function(){clearTimeout(V)});
return _.U("yt-stories-viewer-view-model",{class:_.Kw("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.U("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.U("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":M,"on:mousedown":u,"on:mouseup":e,"on:mouseleave":e}),_.U("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":x,"on:mousedown":u,"on:mouseup":e,"on:mouseleave":e})),_.U(_.IF,{data:n},{storiesItemViewModel:function(px,
kI){var Ul=px.data;return _.U(_.m,{cond:function(){return Math.abs(kI()-P())<=1},
then:function(){var wC={};return _.U("div",{class:_.Kw("ytStoriesViewerViewModelStoryItem",(wC.ytStoriesViewerViewModelHiddenStoryItem=function(){return kI()!==P()},wC))},_.U(lkz,{data:Ul,
pauseAutoNavigation:f,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return kI()===P()},
animationRef:b}))}})}}),_.U("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:C},_.U(_.mV,{each:n},function(){return _.U("div",{class:"ytStoriesViewerViewModelProgressBar"},_.U("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.U("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.U(_.IF,{data:d},{buttonViewModel:_.Q7})))},"bh"),"yt-stories-viewer-view-model",{props:{data:_.rk}});_.xU(_.rM(function(B){var c=B.data;var x=_.Ho("yt-gen-ai-feedback-form-view-model"),P=[];return _.U("yt-gen-ai-feedback-form-view-model",{el:x,class:"ytGenAiFeedbackFormViewModelHost"},_.U(_.RF,{text:function(){return c().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.U("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.U(_.IF,{data:function(){return c().feedbackChips}},{toggleButtonViewModel:function(Y){var g=Y.data;
return _.U(_.Jb,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(k){var n=g();n=_.t(n,_.V7);n=_.t(n==null?void 0:n.defaultButtonViewModel,_.Tj).trackingParams;k?P.push(n):(k=P.indexOf(n),k>-1&&P.splice(k,1))}})}})),_.U(_.RF,{text:function(){return c().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.U("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.U(_.IF,{data:function(){return c().submitButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){ymN(x.value,P,c().uniqueId)}})}}),_.U(_.IF,{data:function(){return c().moreFeedbackButton}},{buttonViewModel:function(Y){return _.U(_.Q7,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ch"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.rk},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var SC=function(){return _.z.apply(this,arguments)||this};
_.w(SC,_.z);SC.prototype.created=function(){UiF(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(eRs);var B=_.cp().resolve(_.$Yr);B&&(B.container=this.ytPopupContainerBehavior);if(B=_.cp().resolve(_.Vi))B.container=this.ytPopupContainerBehavior;if(B=_.cp().resolve(_.t7)){var c=this.ytPopupContainerBehavior;B.containerWasInjected?_.Ob(Error("dj")):B.container=c}};
SC.prototype.ensurePopupBelowPlayer=function(B,c){var x=_.cp().resolve(_.Bp(_.rV));if(!x||!x.isOnWatch()||!_.e5())return!1;x=x.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.mz().height>x+this.getPopupHeight(B,c)?(B.style.top="auto",B.style.bottom="0px"):(B.style.top=x+"px",B.style.bottom="auto");return!0};
SC.prototype.getPopupHeight=function(B,c){c&&(B.cachedPopupHeight=0);if(!B.cachedPopupHeight){c=0;var x=B.clientHeight,P=window.getComputedStyle(B);c+=parseInt(P.marginTop,10);c+=parseInt(P.marginBottom,10);B.cachedPopupHeight=x+c}return B.cachedPopupHeight};
SC.prototype.getElement=function(B){return document.createElement(B)};
_.L([_.J(TTl.YtPopupContainerBehavior),_.H("design:type",Object)],SC.prototype,"ytPopupContainerBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.L([_.y({disableElementRegistration:!0,is:"ytd-popup-container"})],SC);
_.G(SC,"ytd-popup-container",function(){if(bMl!==void 0)return bMl;var B=document.createElement("template");_.I(B,"\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");B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);return bMl=B},{mode:1});var O78;var omS={};omS.YtLogYpcFlowCommandsBehavior=[_.s2.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(B){_.t(B,R7i)&&(B=_.t(B,R7i))&&(B.serializedTransactionFlowLoggingParams?_.UzX(B.serializedTransactionFlowLoggingParams):B.serializedYpcCancelFlowLoggingParams?(B=B.serializedYpcCancelFlowLoggingParams)&&_.OO("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",B):B.serializedYpcResumeFlowLoggingParams?(B=B.serializedYpcResumeFlowLoggingParams)&&_.OO("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",B):B.serializedYpcPauseFlowLoggingParams?(B=B.serializedYpcPauseFlowLoggingParams)&&
_.OO("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",B):B.serializedYpcRefundFlowLoggingParams?(B=B.serializedYpcRefundFlowLoggingParams)&&Ybz("YPC_EVENT_TYPE_START",B):B.serializedYpcDeactivateFlowLoggingParams?(B=B.serializedYpcDeactivateFlowLoggingParams)&&_.OO("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",B):B.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(B=B.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.OO("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",B))},
handleLogYpcFlowDismiss_:function(B){_.t(B,r4z)&&(B=_.t(B,r4z),B.serializedTransactionFlowLoggingParams?_.dzo(B.serializedTransactionFlowLoggingParams):B.serializedYpcCancelFlowLoggingParams?(B=B.serializedYpcCancelFlowLoggingParams)&&_.OO("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",B):B.serializedYpcResumeFlowLoggingParams?(B=B.serializedYpcResumeFlowLoggingParams)&&_.OO("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",B):B.serializedYpcPauseFlowLoggingParams?(B=
B.serializedYpcPauseFlowLoggingParams)&&_.OO("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",B):B.serializedYpcRefundFlowLoggingParams&&(B=B.serializedYpcRefundFlowLoggingParams)&&Ybz("YPC_EVENT_TYPE_CANCEL",B))}}];var Q5l={};Q5l.YtCancelRecurrenceBehavior=[_.Z5.YtComponentBehavior,_.jTm,{attached:function(){var B=this;cXy(this,function(c,x){return B.ypcCancelRecurrenceHandler(c,x)})},
ypcCancelRecurrenceHandler:function(B,c){var x=this;if(!c||!c.ypcCancelRecurrenceEndpoint)return!1;if(!c.ypcCancelRecurrenceEndpoint.params)return _.SI(Error("wl")),!0;_.uj(this.hostElement);var P=_.Me.instance,Y=_.cp().resolve(_.Bp(_.Oi));P&&_.Lw(P,c)?_.Zn(P,c).then(function(g){x.ypcCancelRecurrenceSuccess_(B,c,{data:g})},function(g){x.ypcCancelRecurrenceFailure_(B,c,g)}).thenCatch(function(){_.SI(Error("xl"))}):Y?Y.requestDataForServiceEndpoint(c).then(function(g){x.ypcCancelRecurrenceSuccess_(B,
c,g)},function(g){x.ypcCancelRecurrenceFailure_(B,c,g)}).thenCatch(function(){_.SI(Error("xl"))}):_.SI(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(B,c,x){_.Ds(this.hostElement);x.data||(x={data:x});x.data&&x.data.actions&&_.XX(this.hostElement,x.data.actions,this.hostElement);x.data.messageRenderer?g4r(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(c=c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.OO("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",c);_.aJ(B,"yt-service-request-completed",x)},
ypcCancelRecurrenceFailure_:function(B,c,x){_.Ds(this.hostElement);g4r(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.aJ(B,"yt-service-request-error",{error:x,params:[B,c]})}}];var FI8=function(B,c){_.B$.call(this,c)};
_.w(FI8,EUo);var vmc={};vmc.YtCompleteTransactionBehavior=[_.Z5.YtComponentBehavior,_.jTm,{attached:function(){var B=this;cXy(this,function(c,x){return B.ypcCompleteTransactionHandler(c,x)})},
completeTransaction:function(B,c){var x=this;c={payments_payload:window.btoa(c.integratorData),buybucket_params:B.data.buybucketParams,offer_params:B.data.offerParams};var P=_.cp().resolve(_.Oi),Y=B.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",Y);g&&_.XX(this.hostElement,g,this.hostElement);return(g=_.Me.instance)&&_.Lw(g,Y)?_.Zn(g,Y,c).then(function(k){return!k||(k==null?0:k.error)?(k=x.get("data.serializedTransactionFlowLoggingParams",B),_.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
k))):{data:k}}).then(function(k){return x.handleCompleteTransactionSuccess_(k,B)},function(){return x.handleCompleteTransactionFailure_(B)}):P.requestDataForServiceEndpoint(Y,c).then(function(k){return x.handleCompleteTransactionSuccess_(k,B)},function(){return x.handleCompleteTransactionFailure_(B)})},
handleCompleteTransactionSuccess_:function(B,c){B.data||(B={data:B});if(B.data.messageRenderer)return _.Im(new FI8(B.data.messageRenderer));if(B.data.trackingParams){var x=_.Wf(),P=_.Jg();x&&P&&_.Gq(x,P,_.VF(B.data.trackingParams))}c=this.get("data.serializedTransactionFlowLoggingParams",c);a6F(c);return _.$C(B)},
handleCompleteTransactionFailure_:function(B){B=this.get("data.serializedTransactionFlowLoggingParams",B);_.fr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B);return _.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B))},
ypcCompleteTransactionHandler:function(B,c){var x=this;if(!c.ypcCompleteTransactionEndpoint)return!1;if(!c.ypcCompleteTransactionEndpoint.transactionParams)return _.SI(Error("zl")),!0;c.ypcCompleteTransactionEndpoint&&c.ypcCompleteTransactionEndpoint.gtmData&&_.l3(c.ypcCompleteTransactionEndpoint.gtmData);var P=_.cp().resolve(_.Bp(_.Oi));if(P){_.uj(this.hostElement);var Y=_.Me.instance;Y&&_.Lw(Y,c)?_.Zn(Y,c).then(function(g){return!g||(g==null?0:g.error)?(g=x.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
c),_.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.aJ(B,"yt-service-request-completed");
x.ypcCompleteTransactionSuccess_(c,g)},function(){return x.ypcCompleteTransactionFailure_(c)}):P.requestDataForServiceEndpoint(c).then(function(g){_.aJ(B,"yt-service-request-completed");
x.ypcCompleteTransactionSuccess_(c,g)},function(){return x.ypcCompleteTransactionFailure_(c)})}return!0},
ypcCompleteTransactionSuccess_:function(B,c){_.Ds(this.hostElement);c.data||(c={data:c});_.gj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);c.data.messageRenderer||c.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(B):(_.l3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",B));c.data.actions&&(B=bWs(c.data.actions),c=K5i(c.data.actions),B.length&&_.kC(this.hostElement,
B),c.length&&_.XX(this.hostElement,c,this.hostElement))},
ypcCompleteTransactionFailure_:function(B){_.Ds(this.hostElement);_.gj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",B,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(B,c,x){if(c=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",c))c={serializedTransactionFlowLoggingParams:c},x&&(c.errorType=x),_.JP(B,c),_.Wo()}}];var zX6={};zX6.YtEndpointHandlerWithYpcBehavior=[_.jTm,_.s2.YtActionHandlerBehavior,[{openWalletDialog:function(B,c,x,P,Y,g,k){var n=this,b=_.Hw();c=c.replace(/-/g,"+").replace(/_/g,"/");var d=_.CW().get("hl");_.PHw(_.pC(_.iI),c,b.resolve,Y,function(q){g&&g();b.reject(q)},d,function(q){return n.onServerBackendAnalyticEvent_(B,x,q)},this.onDialogClose_.bind(this),P,k);
return b.promise},
openFixFlowDialog:function(B,c,x,P){B=B.replace(/-/g,"+").replace(/_/g,"/");_.pC(_.iI).openFixFlowDialog(B,c,x,P)},
onDialogClose_:function(){_.gj(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(B,c,x){_.aJ(B,"yt-commerce-action-init-done");c&&_.kC(this.hostElement,[c,{backend_analytics:x}])}}],
_.dG.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(B,c){B=this.get("data.nativeFlowEndpoint",c);c=this.get("data.fallbackEndpoint",c);B?_.kC(this.hostElement,[B]):c&&_.aJ(this.hostElement,"yt-navigate",{endpoint:c})}}],
Q5l.YtCancelRecurrenceBehavior,vmc.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 B=this;cXy(this,function(c,x,P){return B.handleYPCEndpoint(c,x,P)});
this.ypcRegisterActionMapJobId_=_.Vp(_.EE,function(){B.registerActionMap(B.buyFlowActionMap_)})},
detached:function(){var B=this;_.EE.cancelJob(this.ypcRegisterActionMapJobId_);_.Vp(_.EE,function(){B.unregisterActionMap(B.buyFlowActionMap_)})},
handleYPCEndpoint:function(B,c,x){var P=c.ypcGetCartEndpoint;if(P){_.Ep("commerce_transaction");var Y=P.gtmId;Y&&_.Wl(Y);(P=P.gtmData)&&_.l3(P)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",c)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(B,c),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",c)!=null?(this.handleYPCFixInstrumentEndpoint_(B,c),!0):c.ypcPauseSubscriptionCommand?(u9i(this.hostElement,B,c,x),
!0):c.ypcResumeSubscriptionCommand?(Rlc(this.hostElement,B,c),!0):c.getPaymentInstrumentsParamsCommand?(fj6(this.hostElement,B,c),!0):c.ypcHandleTransactionEndpoint?(ZkB(this.hostElement,B,c,x),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(B,c){var x=this;_.Op("ttcr",void 0,"commerce_transaction");c=c.ypcGetCartEndpoint;var P=c.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Y=P.encryptedPurchaseParams,g=P.serializedTransactionFlowLoggingParams,k=P.serializedPaymentsClientParams,n=this.createGetCartResponseFromParams_(P,c.offerParams,g);this.changeButtonState(B,!0);_.IZ(this.openWalletDialog(B,Y,P.ypcLogWalletAnalyticDataEndpoint,g,function(){x.changeButtonState(B,!1)},function(){x.changeButtonState(B,
!1)},k).then(function(b){return x.handleBuyFlowCompleteCallback_(B,n,b)},function(){return x.handleOnLoadError(n)}).then(function(b){return void x.handlePostPurchaseSuccess_(B,n,b)},function(b){return void x.handlePostPurchaseError_(b)}),function(){x.changeButtonState(B,!1);
B instanceof Element&&_.aJ(B,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(B,c,x){var P=B.completeTransactionEndpoint,Y=B.handleTransactionEndpoint;c={data:{offerParams:window.btoa(c),serializedTransactionFlowLoggingParams:x}};Y?c.data.handleTransactionEndpoint=Y:c.data.completeTransactionEndpoint=P;B.onCartDismissCommand&&(c.data.onCartDismissCommand=B.onCartDismissCommand);return c},
onGetCartServiceRequestCompleted_:function(B,c){var x=this,P=B.target;if(c&&c.data&&c.data.messageRenderer)_.Ds(this.hostElement),this.handleMessageRenderer_(c.data.messageRenderer),this.changeButtonState(P,!1);else{var Y=this.get("data.encryptedPurchaseParams",c),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",c),k=this.get("data.ypcLogWalletAnalyticDataEndpoint",c),n=this.get("data.serializedPaymentsClientParams",c),b=this.getLoggingParams_(c);if(b||Y||g)B.stopPropagation(),_.Op("ttcr",
void 0,"commerce_transaction"),Y||_.Ds(this.hostElement),this.changeButtonState(P,!1),g?_.gj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.v5("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):Y&&(this.changeButtonState(P,!0),B=null,B=this.openWalletDialog(P,Y,k,b,function(){_.Ds(x.hostElement);x.changeButtonState(P,!1)},function(){_.Ds(x.hostElement);
x.changeButtonState(P,!1)},n),_.IZ(B.then(function(d){return x.handleBuyFlowCompleteCallback_(P,c,d)},function(){return x.handleOnLoadError(c)}).then(function(d){return x.handlePostPurchaseSuccess_(P,c,d)},function(d){return x.handlePostPurchaseError_(d)}),function(){x.changeButtonState(P,!1);
_.aJ(P,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(B,c){c&&c.endpoint&&c.endpoint.ypcGetCartEndpoint&&!c.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)&&_.XX(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)],B.target),_.uj(this.hostElement),this.changeButtonState(B.target,!0))},
onServiceRequestError_:function(B,c){if(c&&c.params&&c.params.length){c=_.p(c.params);for(var x=c.next();!x.done;x=c.next())if((x=x.value)&&x.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",x.ypcGetCartEndpoint)&&_.XX(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",x.ypcGetCartEndpoint)],B.target);_.Ds(this.hostElement);this.changeButtonState(B.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(B,c,x){var P=x.integratorData;return P==null||P===""||x.error!=null?(P=this.getLoggingParams_(c),String(x.error)==="-1"?(c.data.onCartDismissCommand&&_.XX(this.hostElement,[c.data.onCartDismissCommand],B),_.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P,!0))):_.Im(new ck("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P))):c.data.handleTransactionEndpoint?Hky(this.hostElement,c.data.handleTransactionEndpoint,{payments_payload:P,funds_guarantee_callback_client_data:x.integratorClientCallbackData}):
this.completeTransaction(c,x)},
handlePostPurchaseSuccess_:function(B,c,x){c=x.data;var P=!1,Y,g;if(c&&((Y=c.command)==null?0:(g=Y.commandExecutorCommand)==null?0:g.commands)){var k,n;Y=(k=c.command)==null?void 0:(n=k.commandExecutorCommand)==null?void 0:n.commands;for(k=0;k<Y.length;k++)if(_.t(Y[k],_.ee0)){P=!0;break}}P||(c&&c.gtmDatas&&c.gtmDatas.length?_.l3(c.gtmDatas[0]):_.l3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));x.data&&x.data.actions&&(c=bWs(x.data.actions),x=K5i(x.data.actions),c.length&&
_.kC(this.hostElement,c),x.length&&_.XX(this.hostElement,x,B))},
handlePostPurchaseError_:function(B){B&&B.payload&&B.payload.isUserDismiss||_.lb(Error("Bl"))},
handleOnLoadError:function(B){B=this.getLoggingParams_(B);return _.Im(new ck("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B))},
getLoggingParams_:function(B){return this.get("data.serializedTransactionFlowLoggingParams",B)},
handleMessageRenderer_:function(B){var c=_.ot(B,"renderer"),x=_.v5("openPopupConfig");c==="confirmDialogRenderer"&&x&&_.gj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:x.popupTypeMap[c],popup:B}},this])},
handleYPCFixInstrumentEndpoint_:function(B,c){var x=this,P=c.ypcFixInstrumentEndpoint;c=P.encryptedFixInstrumentParameters;this.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(B,!0);this.openFixFlowDialog(c,function(Y,g){x.onFixFlowCompleteCallback_(P,Y,g)},function(){return x.changeButtonState(B,!1)},function(){x.changeButtonState(B,!1);
x.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(B,c,x){var P=_.Gu("payments.business.integration.scenario.FixInstrument");if(c==P.IntegratorCallbackType.ON_COMPLETE){c="FIX_FOP_EVENT_TYPE_CANCEL";var Y=null;x.error!=null?x.error!=P.OnCompleteCallbackError.USER_CANCELLED&&(_.XX(this.hostElement,[B.errorAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_FAILURE",Y="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.XX(this.hostElement,[B.successAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_SUCCESS");_.XX(this.hostElement,[B.onFinishAction],
this.hostElement);this.logFixFopEvent_(B,c,Y)}},
logFixFopEvent_:function(B,c,x){(B=B.serializedFixFopLoggingParams)?(c={eventType:c,serializedFixFopLoggingParams:B},x!=null&&(c.errorType=x),_.JP("fixFopFlow",c),_.Wo()):_.lb(Error("Cl"))},
changeButtonState:function(B,c){_.T("enable_ypc_spinners")&&B&&(B.is==="yt-button-renderer"||B.is==="ytd-button-renderer")&&(B.disabled=c)}}];var SCi=function(B){this.JSC$28876_clientRoot=B;this.feedbackCollectorActionMap={"yt-help-dialog-requested":B_y,"yt-feedback-dialog-requested":elr,"yt-signal-action-help":cVl,"yt-signal-action-send-feedback":xAc,"yt-send-feedback-action":Yir,"yt-user-feedback-endpoint":a3F};_.Ma(_.Gr.getInstance(),this.feedbackCollectorActionMap,this.JSC$28876_clientRoot)},ywo;var Gcy=function(B){this.JSC$28881_clientRoot=B;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":gHA.bind(null,this.JSC$28881_clientRoot),"yt-signal-action-delete-all-downloads":pqA,"yt-signal-action-delete-download":kFF,"yt-signal-action-delete-playlist-download":$AA,"yt-signal-action-install-pwa":dA6,"yt-signal-action-refresh-downloads":juo,"yt-offline-video-endpoint":CIs,"yt-offline-playlist-endpoint":mAo,"yt-update-local-app-setting-command":VFo,"yt-offline-orchestration-action-command":wqz,
"yt-signal-action-undo-delete-download":brS,"yt-local-watch-history-command":JVF};_.Ma(_.Gr.getInstance(),this.downloadManagerActionMap,this.JSC$28881_clientRoot);_.Wq.instance=new _.Wq},M9B;var y2=function(){var B=_.z.apply(this,arguments)||this;B.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_"};B.remoteApi_=null;return B};
_.w(y2,_.z);_.a=y2.prototype;
_.a.ready=function(){_.T("polymer_enable_mdx")&&(eT6({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.T("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.T("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.T("enable_cast_short_lived_lounge_token")}),_.aG("yt-remote-connection-change",this.handleConnectionChange_,this),_.aG("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=gg8())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.a.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.a.handleConnectionChange_=function(B){(this.mdxConnected=B)?(B=x4r(),!B&&Rks()&&ekA()&&(B={key:"cast-selector-receiver",name:ekA()}),B=B.name):B=null;this.receiverName=B;_.R3(this.remoteApi_);(this.remoteApi_=gg8())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.a.handleReceiverAvailabilityChange_=function(){var B=c2i();Rks()&&_.$g("yt-remote-cast-available")&&B.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=B.length>0};
_.a.handleRemoteQueueChange_=function(){var B=this.currentVideoId_,c=this.currentListId_,x=Xl(this.remoteApi_);this.currentVideoId_=x.videoId;this.currentListId_=x.listId;this.currentVideoId_&&_.gj(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.T("polymer_enable_mdx_queue")?this.currentListId_:null,B,c])};
_.a.handleAddToQueueAction_=function(B){B=_.t(B,QIo);this.remoteApi_&&(B.videoId?this.remoteApi_.addVideo(B.videoId):B.playlistId&&this.remoteApi_.addPlaylist(B.playlistId))};
_.a.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.a.handleInsertInQueueAction_=function(B){B=_.t(B,FaS);this.remoteApi_&&B.videoId&&this.remoteApi_.JSC$17631_insertVideo(B.videoId)};
_.a.handleRemoveFromQueueAction_=function(B){B=_.t(B,vYr);this.remoteApi_&&B.videoId&&this.remoteApi_.JSC$17631_removeVideo(B.videoId)};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F(),_.H("design:type",Object)],y2.prototype,"appId",void 0);_.L([_.F(),_.H("design:type",Boolean)],y2.prototype,"mdxConnected",void 0);_.L([_.F(),_.H("design:type",Boolean)],y2.prototype,"receiverAvailable",void 0);_.L([_.F(),_.H("design:type",Object)],y2.prototype,"receiverName",void 0);_.L([_.F(),_.H("design:type",Object)],y2.prototype,"currentVideoId_",void 0);
_.L([_.F(),_.H("design:type",Object)],y2.prototype,"currentListId_",void 0);_.L([_.Em({is:"yt-mdx-manager",disableElementRegistration:!0})],y2);_.G(y2,"yt-mdx-manager",void 0,{mode:2});var LIy;var Z7i;var Gb=function(){var B=_.z.apply(this,arguments)||this;B.APP_IDS={ytr:3,ytm:5};B.JSC$18872_timeoutId_=0;B.actionMap={"yt-open-create-family-dialog":"open"};return B};
_.w(Gb,_.z);_.a=Gb.prototype;_.a.created=function(){UiF(2200)};
_.a.detached=function(){this.observer_&&this.observer_.disconnect()};
_.a.open=function(B,c){var x=this,P=B.serializedYpcFamilyCreateLoggingParams;this.JSC$18872_timeoutId_=setTimeout(this.abort_.bind(this,B.postFlowErrorEndpoint,P),3E4);c&&(this.onReadyCallback_=c);var Y=_.Y9(this.hostElement).querySelector("#unicorn-iframe");P&&P&&Pbi("ypcFamilyCreateFlowStarted",P);_.p_C("family_creation",function(){var g=_.Gu("gapi.family_creation.render");_.Gu("gapi.config.update")("iframes/family_creation/url",x.getFamilyCreationUrlWithUnicornParams_());var k=3;B.appId&&B.appId in
x.APP_IDS&&(k=x.APP_IDS[B.appId]);k={authUser:_.v5("SESSION_INDEX")||0,clientId:k,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.v5("HL"),initialflow:[4,5,6,7],m:x.isMobile?1:0,onFlowComplete:x.onUnicornFlowComplete_.bind(x,B.postFlowSuccessEndpoint,P),onError:x.onUnicornFlowError_.bind(x,B.postFlowErrorEndpoint,P),onReady:x.onUnicornFlowReady_.bind(x,B.referencePcidParams)};g(Y,k)})};
_.a.close=function(){_.Y9(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.a.onUnicornFlowComplete_=function(B,c){this.close();c&&c&&Pbi("ypcFamilyCreateFlowSucceeded",c);_.aJ(this.hostElement,"yt-navigate",{endpoint:B})};
_.a.onUnicornFlowError_=function(B,c){this.close();c&&Pbi("ypcFamilyCreateFlowCancelled",c);_.aJ(this.hostElement,"yt-navigate",{endpoint:B})};
_.a.onUnicornFlowReady_=function(B){var c=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();B&&_.Gu("gapi.family_creation.setConfig")(0,B);this.observer_=new MutationObserver(function(){_.Y9(c.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Y9(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Y9(this.hostElement).querySelector("#dialog").open()};
_.a.getFamilyCreationUrlWithUnicornParams_=function(){return _.v5("YTR_FAMILY_CREATION_URL")};
_.a.getCurrentUrl_=function(){return document.location.href};
_.a.abort_=function(B,c){this.clearTimeout_();this.onUnicornFlowError_(B,c)};
_.a.clearTimeout_=function(){clearTimeout(this.JSC$18872_timeoutId_)};
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],Gb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],Gb.prototype,"isMobile",void 0);_.L([_.F(),_.H("design:type",Object)],Gb.prototype,"onReadyCallback_",void 0);_.L([_.F(),_.H("design:type",Object)],Gb.prototype,"observer_",void 0);_.L([_.Em({is:"yt-create-family-dialog",disableElementRegistration:!0})],Gb);
_.G(Gb,"yt-create-family-dialog",function(){if(Z7i===void 0){var B=document.createElement("template");_.I(B,'\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');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);var c=B.content,x=c.insertBefore;LIy===void 0&&(LIy=document.createElement("template"));var P=LIy;x.call(c,P.content.cloneNode(!0),B.content.firstChild);Z7i=B}B=Z7i;return B},{mode:2});var H7r;var fkF;var ME=function(){var B=_.z.apply(this,arguments)||this;B.STEP=1;B.BLOCK_ON=80;B.MIN_PROGESS=0;B.MAX_PROGESS=100;return B};
_.w(ME,_.z);_.a=ME.prototype;_.a.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.a.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));_.cp().addProvider({provide:F8i,useValue:this})};
_.a.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.a.finish=function(){var B=this;this.progress=this.MAX_PROGESS;WzB(function(){B.progress==B.MAX_PROGESS&&(B.hostElement.hidden=!0)})};
_.a.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.AJ.Object.defineProperties(ME.prototype,{progress:{configurable:!0,enumerable:!0,set:function(B){this.progress_=B;var c="scaleX("+B/this.MAX_PROGESS+")",x=_.Y9(this.hostElement).querySelector("#progress").style;x.transform=c;x.webkitTransform=c;this.hostElement.setAttribute("aria-valuenow",String(B))},
get:function(){return this.progress_}}});
_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],ME.prototype,"ytComponentBehavior",void 0);_.L([_.Em({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ME);
_.G(ME,"yt-page-navigation-progress",function(){if(fkF===void 0){var B=document.createElement("template");_.I(B,'\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');B.content.insertBefore(_.r().content.cloneNode(!0),
B.content.firstChild);var c=B.content,x=c.insertBefore;H7r===void 0&&(H7r=document.createElement("template"));var P=H7r;x.call(c,P.content.cloneNode(!0),B.content.firstChild);fkF=B}B=fkF;return B},{mode:2});_.xU(_.rM(function(B){return _.U("yt-tooltip",{class:_.Kw("ytTooltipContainerHost",B.className)},B.data)},"dh"),"yt-tooltip");var i7y={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"},Awi={"font-size":"12px","font-style":"italic"},uxy={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.oHs=function(){return _.X(function(B){_.Kq(B)})};var D7N=_.rM(function(B){var c=function(){return B.data().subtext},x={};
return _.U("snackbar-view-model",{class:_.Kw("snackbarViewModelHost",B.className)},_.U("div",{class:_.Kw("snackbarViewModelEngagementBarWrapper",B.className)},_.U(_.m,{cond:function(){return B.data().image},
then:function(P){return _.U(_.D9,{data:P,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.U(_.m,{cond:function(){return B.data().imageContent},
then:function(){return _.U("div",{class:"snackbarViewModelAvatarContainer"},_.U(_.IF,{data:function(){return B.data().imageContent}},{decoratedAvatarViewModel:_.Jf}))}}),_.U("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.U("div",{class:_.Kw((x.snackbarViewModelTitle=!0,x.snackbarViewModelTitleWithSubtext=c,x))},_.U(_.RF,{text:function(){return B.data().text}})),_.U(_.m,{cond:c,
then:function(){return _.U("div",{class:"snackbarViewModelSubtext"},_.U(_.RF,{text:function(){return c()}}))}})),_.U(_.m,{cond:function(){return B.data().buttons},
then:function(){return _.U("div",{class:"snackbarViewModelButtonClassWrapper"},_.U(_.IF,{data:function(){return B.data().buttons}},{buttonViewModel:function(P){return _.U(_.Q7,{data:P.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"eh");_.xU(_.rM(function(){function B(N,l){V(N);C("in");d(!0);g=setTimeout(function(){c()},l)}
function c(N){C("out");N&&clearTimeout(g)}
function x(){c(!0)}
function P(N){if(N){var l=N.snackbarViewModel,E=N.durationMs;E||(E=3E3);l&&(N=_.cp().resolve(_.Bp(_.sO)))&&N.enqueue({isOpened:b,open:function(){B(l,E)},
close:c},0)}}
var Y=_.Ho("snackbar-container"),g=void 0,k=_.p(_.$D(!1,void 0,"mDc5N")),n=k.next().value;k=k.next().value;var b=n,d=k;n=_.p(_.$D("out",void 0,"FpOs5e"));var q=n.next().value,C=n.next().value;n=_.p(_.$D(void 0,void 0,"jIDRob"));var h=n.next().value,V=n.next().value;n=_.qe(function(){if(q()==="out"){d(!1);V(void 0);var N=_.cp().resolve(_.Bp(_.sO));N&&l9N(N,0)}});
_.lk(function(){var N=_.cp().resolve(_.Bp(_.vj3));N&&(N.showSnackbarFn=P,N.closeSnackbarFn=x)});
k={};return _.U("snackbar-container",{class:_.Kw("ytSnackbarContainerHost",(k.ytSnackbarContainerOpened=function(){return b()&&q()==="in"},k.ytSnackbarContainerClosed=function(){return b()&&q()==="out"},k)),
el:Y,"on:animationend":n},_.U(_.m,{cond:function(){return b()&&!!h()},
then:function(){return _.U(D7N,{data:function(){return h()}})}}))},"fh"),"snackbar-container");_.xU(_.rM(function(){var B=_.FB(_.Ngl);return _.U("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var c;return(c=B())==null?void 0:c.announcement})},"gh"),"yt-ephemeral-actions");var R6z=new Map;var vuS=function(B,c){var x=this;this.handleError=B;this.logEventInternal=c;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){x.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
vuS.prototype.logError=function(B){this.handleError(B)};
vuS.prototype.logEvent=function(B,c){switch(B){case "IDB_DATA_CORRUPTED":_.T("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",c);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",c);break;case "IS_SUPPORTED_COMPLETED":_.T("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",c);break;case "QUOTA_EXCEEDED":rwy(this,c);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",c);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":B=Object.assign({},c,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",B)}};
var rwy=function(B,c){_.j8.getInstance().estimate().then(function(x){x=Object.assign({},c,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:BMs(x==null?void 0:x.usage),deviceStorageQuotaMbytes:BMs(x==null?void 0:x.quota)});B.logEventInternal("idbQuotaExceeded",x)})};var LI=function(){var B=_.z.apply(this,arguments)||this;B.tabGesturesIsActive=!1;B.deprecateFullerscreenUi=_.T("web_watch_fullerscreen_deprecation_ui");B.hasDelegation=!1;B.darkerDarkTheme=_.T("web_darker_dark_theme");B.isFrostedGlassInitialized=!1;B.frostedGlassExp=_.T("web_frosted_glass");B.mastheadHiddenFocusWithinKillswitch=_.T("web_masthead_hidden_focus_within_killswitch");B.ephemeralActionsEnabled=_.T("web_ephemeral_actions");B.clientOnlyWizTooltipsEnabled=_.T("enable_client_only_wiz_tooltips");
B.scrollAtTop=!0;B.guideScrollTop=0;B.isTheaterModeSession=_.zu("START_IN_THEATER_MODE");B.iMaxTheaterMode=_.T("web_watch_imax_theater_mode");B.isFullWindowSession=_.zu("START_IN_FULL_WINDOW_MODE");B.hasCreateFamilyDialog=!1;B.mastheadHeight=56;B.networkStatusManager=new _.Z$;B.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"};B.dynamicActionMap={"yt-run-attestation-command":function(c){var x=_.Gdy.instance,P=_.t(c,_.Ubm);return P?_.T("use_rta_manager_for_async")&&
mD6()?smz(x,P,c.clickTrackingParams):g06(x,P,c.clickTrackingParams):_.Im(Error("mi"))}};
B.isFrostedGlassDisabled=!1;B.isChannelOrPlaylistPage=!1;return B};
_.w(LI,_.z);_.a=LI.prototype;_.a.created=function(){var B=_.cp();_.T("kevlar_clear_duplicate_pref_cookie")&&_.Vp(_.EE,function(){var c=_.U4.get("PREF");c&&!/f\d=/.test(c)&&(c=_.aH("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=c?"PREF=null;domain="+c+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.T("gzip_gel_with_worker")&&_.VBw();_.T("jspb_serialize_with_worker")&&iUA();_.T("web_worker_availability_check")&&e6N();_.T("nwl_init_killswitch")||HUc().then(function(){_.EE.addLowPriorityJob(a1i)});
this.pageManagerAttachedPromise=_.Hw();this.ytdAppBehavior.loadDepsPromise=_.Nf([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.eA(this.onThrottledScroll,200,this);_.T("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);z1A();Wgz=!!_.Gu("ytappsettings.initialized");XZ=_.Gu("ytappsettings.previousValue");hUN=_.Gu("ytappsettings.previousSnapshotTime");Wgz||(Wgz=!0,m6F());$9r();nCF();_.FP("DEFERRED_DETACH",
_.T("kevlar_tuner_should_defer_detach"));_.FP("REUSE_COMPONENTS",!0);_.FP("STAMPER_STABLE_LIST",!0);_.FP("SCHEDULED_LAZY_LIST",!0);_.FP("openPopupConfig",RRl);_.FP("useClickHandler",!0);_.T("kevlar_shell_cleanup")&&_.EE.addLowPriorityJob(Jjz.bind(this,_.xI.caches));_.zu("IS_SHELL_LOAD")&&_.lg({shellStartupDurationMs:Math.round((0,_.BA)()-_.wj())});z6F(this.networkStatusManager);_.T("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",l3z(i7y)),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!",
l3z(Awi)),console.log("%cVisit http://go/join-youtube-web to apply today.",l3z(uxy)));_.JGz(B.resolve(_.$1),1E3)};
_.a.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var B=Prc();B&&!_.T("external_fullscreen_killswitch")&&document.addEventListener(B,this.setFullscreen.bind(this));(B=window.matchMedia("(prefers-color-scheme: dark)"))&&B.addEventListener&&B.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.a.attached=function(){var B=this;_.So().processSignal("ci");_.T("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Ej$?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.UB(_.JBx(),"SUCCESS");this.updateIconSet();_.Pr(this.guideInnerContent,!1);_.wk().initVisibilityObserver();this.guideService.guideElement=this.guide;var c=document.createElement("ytd-miniplayer"),x=_.Y9(this.hostElement).querySelector("#content");
_.Y9(this.hostElement).insertBefore(c,x);_.So().processSignal("ma");_.cp().resolve(_.Ge).init(c);_.zu("IS_SHELL_LOAD")&&(x=document.createElement("ytd-network-status-banner"),_.Y9(this.hostElement).insertBefore(x,c));_.T("kevlar_right_click_on_lockups")&&_.Hb._onCaptureClick&&document.addEventListener("contextmenu",_.Hb._onCaptureClick.bind(_.Hb),!0);var P=function(){var Y=_.PV("yt-page-navigation-progress");_.Y9(B.hostElement).appendChild(Y)};
setTimeout(function(){_.So().parkOrScheduleJob(P,0,"eocs",16)},0);
_.T("service_worker_push_enabled")&&_.Vp(_.EE,xac);_.Ma(_.Gr.getInstance(),this.dynamicActionMap,this.hostElement);_.aJ(this.hostElement,"ytd-app-attached");_.So().processSignal("aa");CrB(this.hostElement);_.rr("gapi.load",_.p_C);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Vp(_.EE,
function(){var Y=document.createElement("ytd-video-preview");_.Y9(_.Y9(B.hostElement).querySelector("#video-preview")).appendChild(Y)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Vp(_.EE,function(){Qur();B.registerViewTransitionTasks()});
if(_.JV()&&this.isAppDarkTheme()!==_.NA())this.onDarkModeToggledAction();else c=_.Iu()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==c&&(_.T("enable_dark_theme_only_on_shorts")?_.Lr(_.T("enable_dark_theme_only_on_shorts_control")?window.location.href:_.ik(window.location.href,{theme:"dark"})):_.Ob(new _.mc("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(x3B=new c6s(this.hostElement)),M9B=new Gcy(this.hostElement),ywo=new SCi(this.hostElement),m3F=new hVy(this.hostElement)};
_.a.getThemeSettingsToLog=function(){var B=_.Iu()==="USER_INTERFACE_THEME_DARK";B=_.JV()?_.NA()?"os-dark":"os-light":B?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:B,cookiesEnabled:_.qD()}};
_.a.detached=function(){_.YC(this.guideInnerContent);_.EE.cancelJob(se);se=0;_.EE.cancelJob(kL);kL=0;_.vH7(qEz);qEz.length=0;jxo=_.D4o=null;_.wk().dispose();_.T("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.LE(_.Gr.getInstance(),x3B.playlistHandlerActionMap,x3B.JSC$28575_clientRoot);_.LE(_.Gr.getInstance(),M9B.downloadManagerActionMap,M9B.JSC$28881_clientRoot);_.LE(_.Gr.getInstance(),ywo.feedbackCollectorActionMap,ywo.JSC$28876_clientRoot);
for(var B=_.p(m3F.eventListeners),c=B.next();!c.done;c=B.next()){var x=_.p(c.value);c=x.next().value;x=x.next().value;x=_.p(x);for(var P=x.next();!P.done;P=x.next()){var Y=_.p(P.value);P=Y.next().value;Y=Y.next().value;c.removeEventListener(P,Y)}}_.LE(_.Gr.getInstance(),m3F.autonavPauseActionMap,m3F.JSC$17816_clientRoot)};
_.a.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.CW().getFlag(186)};
_.a.computeIsInlinePreviewEnabled=function(B,c,x){return!x&&_.t$B({miniplayerIsActive:B,miniplayerPlaybackState:c})};
_.a.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.YN({type:"SET_FROSTED_GLASS_MODE",payload:!_.T("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"}))};
_.a.computeIsFrostedGlassDisabled=function(B,c,x,P){return B||c||x||P&&_.T("web_frosted_glass_disable_watch")};
_.a.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.T("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.a.computeIsHomePage=function(B,c){if(!B||c==null||!c.endpoint)return!1;var x;return((x=_.t(c.endpoint,_.qA))==null?void 0:x.browseId)==="FEwhat_to_watch"};
_.a.updateIsChannelOrPlaylistPage=function(){if(_.T("web_frosted_glass")){var B,c,x=(c=(B=_.cp().resolve(_.Bp(_.rV)))==null?void 0:B.getCurrentPage())==null?void 0:c.pageSubtype;this.isChannelOrPlaylistPage=x?["channel","channels","playlist"].includes(x):!1}};
_.a.scheduleFrostedGlassInitialization=function(){var B=this;_.T("web_frosted_glass")&&_.So().parkOrScheduleJob(function(){B.isFrostedGlassInitialized=!0},0,_.or(["eocs",
"cr"]),300)};
_.a.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.uhd(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.YN({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.YN({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.a.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(h_z(!0))};
_.a.onYtSignalActionRequestPersistentStorage=function(){if(!_.T("request_persistent_storage_killswitch")){var B=_.cp().resolve(_.w$B);B.cachedPersistStatePromise||(B.cachedPersistStatePromise=yXS())}};
_.a.handleYtChannelCreationFormEndpoints=function(B){B&&this.ytComponentBehavior.resolveCommand(B)};
_.a.handleShowEngagementPanelEndpoint=function(B){B&&this.ytComponentBehavior.resolveCommand(B)};
_.a.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(h_z(!1))};
_.a.initIconDefs=function(B,c){var x=document.createElement("iron-iconset-svg");x.name=B;B=document.createElementNS("http://www.w3.org/2000/svg","svg");x.appendChild(B);B.appendChild(c);document.body.appendChild(x);return x};
_.a.onWindowResized=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var B=_.gR5.getInstance();B.documentWidth_=document.body.clientWidth;o9r(B)};
_.a.onWindowScrolled=function(){var B=_.cp().resolve(_.rV).getCurrentPage();if(B!=null&&B.getScrollTop){var c=this.ytdReduxBehavior,x=c.dispatch;B=B.getScrollTop()<=0;x.call(c,_.YN({type:"SET_SCROLL_AT_TOP",payload:B}))}};
_.a.guideIsVisibleButNotPersistentSelectorChanged=function(){var B=_.cp().resolve(_.rV).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=B.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"),
B.setScrollTop(this.guideScrollTop));_.sp(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.a.getCurrentPageScrollableElementType=function(){var B=_.cp().resolve(_.rV).getCurrentPage();if(B&&B.getPageScrollingElement())return B.getPageScrollingElement().nodeName};
_.a.observeGuideVisibility=function(){var B=_.gR5.getInstance(),c=this.miniGuideVisible;B.guidePersistentAndVisible_=this.guidePersistentAndVisible;B.miniGuideVisible_=c;o9r(B)};
_.a.handleEduDismissAction=function(B){B&&B.eduDismissAction&&(_.gj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.cf0.getInstance(),_.Rk.set(B.eduDismissAction.key+"-dismissed",!0))};
_.a.handleEduImpressionAction=function(B){if(B&&B.eduImpressionAction){var c=_.cf0.getInstance();B=B.eduImpressionAction.key;c.JSC$10965_eduDisplayedThisLoad_[_.B5m[B].setKey||B]=!0;_.Rk.set(B+"-impression",parseInt(_.Rk.get(B+"-impression")||0,10)+1)}};
_.a.onYtSignalActionConfirmMentionsEdu=function(){_.gj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.cl.getInstance();_.Bl.set("edu-dismissed",!0)};
_.a.onYtSignalActionRecordMentionsEduImpression=function(){_.cl.getInstance();var B=_.Bl.set,c=parseInt(_.Bl.get("edu-impressions"),10);B.call(_.Bl,"edu-impressions",(isFinite(c)?c:0)+1)};
_.a.onYtPageManagerAttached=function(B){var c;((c=_.uI(B))==null?void 0:c.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.a.onInvokeInstrumentManagerAction=function(B,c){Ymy(c,B)};
_.a.updateIconSet=function(){var B=this.hostElement.querySelector("#masthead");if(B){var c=_.aB(B),x=c.querySelector("g#yt-logo-updated");x&&(B=document.createElementNS("http://www.w3.org/2000/svg","defs"),B.appendChild(x.cloneNode(!0)),(c=c.querySelector("g#yt-logo-red-updated"))&&B.appendChild(c.cloneNode(!0)),this.initIconDefs("yt-logos-ext",B))}};
_.a.updateMastheadData=function(){var B=this,c,x,P,Y,g;return _.X(function(k){if(k.nextAddress==1){c=B.data;x=B.hostElement.querySelector("#masthead");if(!x)return k.return();_.fl(B,function(){x.data=B.topbarData});
if(!B.get("response.topbar",c)||B.get("response.topbar.responseContext.maxAgeSeconds",c)===0)return k.jumpTo(0);if(P=_.cp().resolve(_.Zd))return _.K(k,P(),6);Y=_.cp().resolve(_.gA);return _.K(k,Y.put("service:topbar:fallback",new _.sf({innertubeResponse:B.get("response.topbar",c)})),0)}return(g=k.yieldResult)?_.K(k,g.put("service:topbar:fallback",new _.sf({innertubeResponse:B.get("response.topbar",c)})),0):k.jumpTo(0)})};
_.a.computeTopbarData=function(B){if(!B)return null;var c;return this.isShortsPage&&this.topbarData&&!_.t((c=B.response)==null?void 0:c.topbar,mk6)?this.topbarData:B.response&&"topbar"in B.response?_.t(B.response.topbar,mk6)||null:null};
_.a.onSetTheaterModeEnabled=function(B,c){this.isTheaterModeSession=c.enabled;this.setTheaterModeStyles(c.enabled)};
_.a.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.a.onDarkModeToggledAction=function(){var B=_.$u(window.location.href);if(!_.siC(B)){(B=!!_.fa(window.location.href).themeRefresh)&&_.Ob(new _.mc("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!B){m6F();B={themeRefresh:1};var c=_.cp().resolve(_.rV);if(c.isOnWatch()){var x,P;c=((x=c.getPlayerFromWatch())==null?void 0:(P=x.getPlayer())==null?void 0:P.getCurrentTime())||0;c>=1&&(B.time_continue=Math.floor(c))}_.qD()||_.Iu()!=="USER_INTERFACE_THEME_DARK"||(B.theme="dark");_.Lr(_.ik(window.location.href,
B))}_.T("web_appshell_refresh_trigger")&&_.xI.caches&&this.refreshAppShellResponse();x=_.SW(window.location.href);_.XN(_.cp().resolve(_.$S),_.rx(x,"theme"))}};
_.a.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.a.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.a.onPlayerFullscreen=function(B){_.cr();this.playerFullscreen=B};
_.a.setRestrictedMode=function(B){var c=_.CW();_.hi(0,58,B);c.save();_.cp().resolve(_.t2).reload()};
_.a.onPageChanged=function(B){B.detail.newPageType==="ytd-watch-flexy"||B.detail.newPageType==="ytd-watch-fixie"||B.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.OB("WEB_PAGE_TYPE_WATCH")):B.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.OB("WEB_PAGE_TYPE_SHORTS")):B.detail.newPageType==="ytd-browse"&&B.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.OB("WEB_PAGE_TYPE_MINI_APP")):_.T("web_frosted_glass")&&B.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.OB("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.OB("WEB_PAGE_TYPE_UNKNOWN"));B.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.a.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.a.onGuideToggleTap=function(){_.aJ(this.hostElement,"yt-guide-toggle")};
_.a.onGuideToggleHover=function(){_.aJ(this.hostElement,"yt-guide-hover")};
_.a.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.a.setMastheadTheme=function(){var B=_.aB(this.hostElement).querySelector("#masthead");B&&(B.dark=B.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),B.isDarkThemeForced=!1)};
_.a.onRequestPanelModeChange=function(B,c){this.hideHeaderShadow=c.mode!=="seamed"};
_.a.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.a.onDrawerIronSelect=function(B){_.uI(B).id==="guide"&&this.processDrawerIronSelect()};
_.a.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var B="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(B="opened"));_.aJ(this.hostElement,"yt-autonav-pause-guide-"+B)};
_.a.onAddElementToApp=function(B){_.Y9(this.hostElement).appendChild(B.detail)};
_.a.onThrottledScroll=function(){var B=_.cp().resolve(_.rV).getCurrentPage();B&&(this.scrollAtTop=B.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.a.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.a.setFullscreen=function(){if(_.T("external_fullscreen")||!this.isWatchPage){var B=_.T("kevlar_fullerscreen_root_only_killswitch")?!!_.cr():!!_.cr()&&_.cr()===document.documentElement;B=(this.isWatchPage||_.T("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(B||this.isFullWindowSession);this.fullscreen!==B&&((this.fullscreen=B)&&_.sp(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.uG().dispatch(_.dDB(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.gj(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.a.setFullscreenLoggingForShorts=function(B){var c,x,P;return _.X(function(Y){if(Y.nextAddress==1)return _.K(Y,(c=_.e5())==null?void 0:c.getPlayerPromise(),2);x=Y.yieldResult;(P=x)==null||P.setAppFullscreen(B);_.Kq(Y)})};
_.a.updateMastheadCssHeight=function(){var B=this.mastheadHeight;this.fullscreen&&(B=0);_.k9(this.hostElement,{"--ytd-masthead-height":B+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.a.updateNetworkStatusBannerDisplayStatus=function(){var B="unset";this.fullscreen&&(B="none");_.k9(this.hostElement,{"--ytd-network-status-banner-display":B})};
_.a.updateNetworkStatusBannerCssHeight=function(){var B="unset";this.fullscreen&&(B="0px");_.k9(this.hostElement,{"--ytd-network-status-banner-max-height":B})};
_.a.updateScrollAndMasthead=function(B,c,x,P){this.iMaxTheaterMode||(P=!1);var Y=_.cp().resolve(_.rV).getCurrentPage();B||c||P?(document.body.classList.add("no-scroll"),Y.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.$9(this,this.onScroll)),Y.setScrollTop(0),_.k9(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.lT()+"px"})):x?_.aJ(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.aJ(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Y.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.$9(this,this.onScroll)));this.mastheadHidden=B||c||x;this.updateMastheadCssHeight();_.T("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.a.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.a.onYtNavigateAction=function(B){B=this.get("navigateAction.endpoint",B);_.aJ(this.hostElement,"yt-navigate",{endpoint:B})};
_.a.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var B=document.createElement("yt-create-family-dialog");_.Y9(this.hostElement).appendChild(B);this.hasCreateFamilyDialog=!0}};
_.a.onSetPushNotificationsEnabledCommand=function(B){var c=this,x=_.t(B,h7z);x&&typeof x.enabled==="boolean"&&(Notification.permission!=="granted"?rjr().then(function(){Notification.permission==="granted"?(F1F(!x.enabled).then(SEF),x.successAction&&_.kC(c.hostElement,[x.successAction])):x.failureAction&&_.kC(c.hostElement,[x.failureAction])}):(F1F(!x.enabled).then(SEF),x.successAction&&_.kC(this.hostElement,[x.successAction])))};
_.a.onYtSignalActionEnableChromeNotifications=function(){RUc(!0)};
_.a.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.t(this.topbarData.hotkeyDialog,tg6)}}})};
_.a.onYtSignalActionShowKeyboardShortcutDialog=function(){_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.a.onYtEndpointChangeHandler=function(B,c){var x=_.pC(_.Vt);x.pendingPrefetchJob_&&(c=!(!c||c.autonav!="1"),x.pendingPrefetchJob_.resolve(B&&_.r2X(B)?_.RRC(B,c):""),x.pendingPrefetchJob_=null);_.gj(this.hostElement,"yt-pause-active-page-context");_.gj(this.hostElement,"ytd-log-youthere-nav");_.gj(this.hostElement,"yt-prepare-page-dispose")};
_.a.handleCommandWithCommandHandler=function(B,c){_.bA.instance.resolveCommand(B,{form:{element:c}})};
_.a.onYtTimedCommand=function(B){var c=this;B=_.t(B,kV6);var x=B.command;x&&_.Nv(_.EE,function(){var P=_.t(x,_.T75);P?(_.bA.instance.resolveCommand(x),c.maybeLogGetAnswerRequestTick(P)):_.XX(c.hostElement,[x],c.hostElement)},B.timeoutMs||0)};
_.a.maybeLogGetAnswerRequestTick=function(B){B&&B.isFirstRequest&&(_.Ep("search_overview_answer"),_.Op("so_rq",void 0,"search_overview_answer"))};
_.a.onYtSignalActionSkipNavigation=function(){var B=_.cp().resolve(_.rV).getCurrentPage();_.Aj(B)};
_.a.onYtSignalActionCopyDebugData=function(){$al()};
_.a.handleEntityUpdateCommand=function(B){_.jB(_.t(B,_.wJt).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.a.logFlowLoggingEventCommand=function(B){if(B=_.t(B,_.Soq))if(B.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var c=B.flowEventNamespace,x=B.flowEventType,P=B.flowType;P&&c&&x&&_.Zyq(_.XI(c,x,B.flowEventMetadata),P)}else{c=_.nr();x=B.flowEventNamespace;P=B.flowEventType;var Y=B.flowType;Y&&x&&P&&_.$H(c,_.XI(x,P,B.flowEventMetadata),Y,B.flowNonce)}};
_.a.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.a.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.a.onTouchStart=function(){var B=_.N4();_.Wf()&&_.GU(B.JSC$11192_screenManager,{visualElement:B.ve})};
_.a.handleSelectLanguageCommand=function(B){if(B=_.t(B,dkA).hl){var c=_.CW();c.set("hl",B);c.save();_.cp().resolve(_.t2).reload()}};
_.a.handleConfirmDialogEndpoint=function(B){(B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B))&&this.ytOpenPopupBehavior.openPopup(B)};
_.a.handleOpenPopupNavigationEndpoints=function(B,c){_.T("web_button_rework")&&(B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B))&&this.ytOpenPopupBehavior.openPopup(B,c)};
_.a.handleSaveCommandToSessionStorage=function(B){if(B=_.t(B,_.T29)){var c=B.key;c&&B.command&&window.sessionStorage.setItem(c,JSON.stringify(B.command))}};
_.a.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(B){B&&B.active&&B.active.postMessage({type:"refresh_shell"})}).catch(function(B){B.name!=="SecurityError"&&_.lb(B)})};
_.a.onDeviceThemeChanged=function(){var B=_.NA();_.hi(_.CW(),185,B);_.CW().save()};
_.a.handleYtRegisterPromoCommand=function(B){if(_.t(B,CiB)){var c=_.cp().resolve(_.rV).getCurrentPage()||this.hostElement;W8l().registerPromoCommand(_.t(B,CiB),c)}};
_.a.onYtNavigateHomeAction=function(){if(!_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var B,c,x,P,Y=(P=(B=this.topbarData)==null?void 0:(c=B.logo)==null?void 0:(x=c.topbarLogoRenderer)==null?void 0:x.endpoint)!=null?P:_.qm;this.ytComponentBehavior.resolveCommand(Y)}};
_.a.onYtLocationCollectionCommand=function(B){Orz(_.t(B,Od8))};
_.a.onYtGetLocationCommand=function(B){qpy(_.t(B,EY8),this)};
_.a.updateRenderGuideFromBinding=function(B){this.renderGuide=B.detail.value};
_.a.updateGuidePersistentAndVisibleFromBinding=function(B){this.guidePersistentAndVisible=B.detail.value};
_.a.updateMiniGuideVisibleFromBinding=function(B){this.miniGuideVisible=B.detail.value};
_.a.onThemeSelected=function(B,c){var x=_.CW(),P=B||c?B:_.NA(),Y=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.siC(_.$u(window.location.href));_.hi(0,165,B);_.hi(0,174,c);x.save();Y&&_.gj(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.gj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.a.getCurrentTheme=function(){return _.JV()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Iu()};
_.a.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.a.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.a.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.a.handleShowConsentPrimitive=function(B){var c=this,x,P;return _.X(function(Y){if(Y.nextAddress==1){try{x=(P=_.e5())==null?void 0:P.getPlayerPromise()}catch(g){}return _.K(Y,rVF(B,x),2)}_.gj(c.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Kq(Y)})};
_.a.handleSelectActiveIdentityEndpointInternal=function(B){_.GF();B=_.t(B,_.MgI);if(B!=null&&B.supportedTokens){B=_.p(B.supportedTokens);for(var c=B.next();!c.done;c=B.next())c=c.value,c.accountSigninToken&&_.Lr(c.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.a.handleUpdatePermissionRoleCommand=function(B){if(B=_.t(B,_.yZd)){var c;this.hasDelegation=!((c=_.t(B.renderer,_.ShZ))==null||!c.status)}};
_.a.registerViewTransitionTasks=function(){var B=this,c=_.cp().resolve(_.Bp(_.po));if(c){var x,P=(x=this.guide)==null?void 0:x.querySelector("#scrim"),Y,g=(Y=this.guide)==null?void 0:Y.querySelector("#contentContainer");P&&g&&(x={beforeTransition:function(){var k;(k=B.guide)!=null&&k.persistent||(P.style.viewTransitionName="app-drawer-scrim",g.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var k;(k=B.guide)!=null&&k.persistent||(P.style.viewTransitionName="",g.style.viewTransitionName="")}},r6(c,"slide",x),r6(c,"zoom",x))}};
_.AJ.Object.defineProperties(LI.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.T("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.AJ.Object.defineProperties(LI,{template:{configurable:!0,enumerable:!0,get:function(){if(O78===void 0){var B=document.createElement("template");_.I(B,'\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<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
B.content.insertBefore(_.r().content.cloneNode(!0),B.content.firstChild);O78=B}B=O78;return B}}});
LI.prototype.onOpenHotkeyDialog=LI.prototype.onOpenHotkeyDialog;LI.prototype.setFullscreen=LI.prototype.setFullscreen;LI.prototype.onAddElementToApp=LI.prototype.onAddElementToApp;LI.prototype.onDrawerIronSelect=LI.prototype.onDrawerIronSelect;LI.prototype.onGuideOpenButtonHover=LI.prototype.onGuideOpenButtonHover;LI.prototype.onRequestPanelModeChange=LI.prototype.onRequestPanelModeChange;LI.prototype.onPageDataUpdated=LI.prototype.onPageDataUpdated;LI.prototype.onPageChanged=LI.prototype.onPageChanged;
LI.prototype.onSetTheaterModeEnabled=LI.prototype.onSetTheaterModeEnabled;LI.prototype.updateMastheadData=LI.prototype.updateMastheadData;LI.prototype.onYtPageManagerAttached=LI.prototype.onYtPageManagerAttached;LI.prototype.observeGuideVisibility=LI.prototype.observeGuideVisibility;LI.prototype.guideIsVisibleButNotPersistentSelectorChanged=LI.prototype.guideIsVisibleButNotPersistentSelectorChanged;LI.prototype.isInlinePreviewEnabledChanged=LI.prototype.isInlinePreviewEnabledChanged;
LI.prototype.isWatchPageChanged=LI.prototype.isWatchPageChanged;LI.prototype.dispatchFrostedGlassMode=LI.prototype.dispatchFrostedGlassMode;_.L([_.J(_.OU),_.H("design:type",Object)],LI.prototype,"ytdReduxBehavior",void 0);_.L([_.J(_.qB.YtEventForwardingBehavior),_.H("design:type",Object)],LI.prototype,"ytEventForwardingBehavior",void 0);_.L([_.J(_.dG.YtOpenPopupBehavior),_.H("design:type",Object)],LI.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.J(_.s2.YtActionHandlerBehavior),_.H("design:type",Object)],LI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.J({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Gr.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.T("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var B;((B=this.actionRouterNode.hostElement)!=null?B:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var B;((B=this.actionRouterNode.hostElement)!=null?B:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(B){this.actionRouter_.handleAction(B.detail)}}),
_.H("design:type",Object)],LI.prototype,"ytActionRouterBehavior",void 0);_.L([_.J(zRz.YtdAppBehavior),_.H("design:type",Object)],LI.prototype,"ytdAppBehavior",void 0);_.L([_.J(_.q3.YtEndpointBehavior),_.H("design:type",Object)],LI.prototype,"ytEndpointBehavior",void 0);_.L([_.J(zX6.YtEndpointHandlerWithYpcBehavior),_.H("design:type",Object)],LI.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.L([_.J(omS.YtLogYpcFlowCommandsBehavior),_.H("design:type",Object)],LI.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.L([_.J(_.R.YtRendererBehavior),_.H("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.L([_.J(_.Z5.YtComponentBehavior),_.H("design:type",Object)],LI.prototype,"ytComponentBehavior",void 0);_.L([_.F({selector:_.XFA}),_.H("design:type",Object)],LI.prototype,"tabGesturesIsActive",void 0);_.L([_.F(),_.H("design:type",Boolean)],LI.prototype,"renderGuide",void 0);
_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"guidePersistentAndVisible",void 0);_.L([_.F({selector:_.kEc}),_.H("design:type",Boolean)],LI.prototype,"guideIsVisibleButNotPersistent",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"standalone",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"miniGuideVisible",void 0);
_.L([_.F({selector:_.k3C}),_.H("design:type",Number)],LI.prototype,"miniplayerPlaybackState",void 0);_.L([_.F({selector:_.Ev,reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"miniplayerIsActive",void 0);_.L([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],LI.prototype,"isInlinePreviewEnabled",void 0);_.L([_.F(),_.H("design:type",Boolean)],LI.prototype,"isInlinePreviewDisabled",void 0);
_.L([_.F({reflectToAttribute:!0,value:function(){return _.zu("START_IN_FULL_WINDOW_MODE")}}),
_.H("design:type",Boolean)],LI.prototype,"mastheadHidden",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"playerFullscreen",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LI.prototype,"deprecateFullerscreenUi",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"fullscreen",void 0);_.L([_.F({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"hideHeaderShadow",void 0);
_.L([_.F({value:{GUIDE_ALT_LABEL:_.Up("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.H("design:type",Object)],LI.prototype,"menuStrings",void 0);_.L([_.F({computed:"computeTopbarData(data)"}),_.H("design:type",Object)],LI.prototype,"topbarData",void 0);_.L([_.F({selector:_.Ov}),_.H("design:type",Boolean)],LI.prototype,"isWatchPage",void 0);_.L([_.F({selector:_.g5O,reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"isShortsPage",void 0);
_.L([_.F({selector:function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.H("design:type",Boolean)],LI.prototype,"isMiniAppPage",void 0);_.L([_.F({selector:function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.H("design:type",Boolean)],LI.prototype,"isBrowsePage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Boolean)],LI.prototype,"scrolling",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LI.prototype,"hasDelegation",void 0);_.L([_.F({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],LI.prototype,"guideScrolledByTouch",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LI.prototype,"darkerDarkTheme",void 0);
_.L([_.F(),_.H("design:type",Object)],LI.prototype,"isFrostedGlassInitialized",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LI.prototype,"frostedGlassExp",void 0);_.L([_.F({selector:function(B){return B.ui.chipBarIsSticky}}),
_.H("design:type",Boolean)],LI.prototype,"chipBarIsSticky",void 0);_.L([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.H("design:type",Boolean)],LI.prototype,"isHomePage",void 0);_.L([_.F({reflectToAttribute:!0}),_.H("design:type",Object)],LI.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.L([_.F(),_.H("design:type",Object)],LI.prototype,"ephemeralActionsEnabled",void 0);_.L([_.F(),_.H("design:type",Object)],LI.prototype,"clientOnlyWizTooltipsEnabled",void 0);
_.L([_.DR("guide"),_.H("design:type",Object)],LI.prototype,"guide",void 0);_.L([_.DR("guide-service"),_.H("design:type",tpB)],LI.prototype,"guideService",void 0);_.L([_.DR("guide-inner-content"),_.H("design:type",HTMLDivElement)],LI.prototype,"guideInnerContent",void 0);_.L([_.F({selector:_.X7q}),_.H("design:type",String)],LI.prototype,"frostedGlassMode",void 0);
_.L([_.bF("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"dispatchFrostedGlassMode",null);_.L([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.H("design:type",Object)],LI.prototype,"isFrostedGlassDisabled",void 0);
_.L([_.bF("isWatchPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"isWatchPageChanged",null);_.L([_.Q("isHomePage","chipBarIsSticky"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LI.prototype,"applyFrostedGlassToChipBar",null);_.L([_.F(),_.H("design:type",Object)],LI.prototype,"isChannelOrPlaylistPage",void 0);
_.L([_.CF("isInlinePreviewEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"isInlinePreviewEnabledChanged",null);_.L([_.bF("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.L([_.bF("guidePersistentAndVisible","miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"observeGuideVisibility",null);_.L([_.nF("attached"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],LI.prototype,"onYtPageManagerAttached",null);_.L([_.bF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],LI.prototype,"updateMastheadData",null);
_.L([_.nF("yt-set-theater-mode-enabled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],LI.prototype,"onSetTheaterModeEnabled",null);_.L([_.nF("yt-page-type-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],LI.prototype,"onPageChanged",null);_.L([_.nF("yt-page-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"onPageDataUpdated",null);
_.L([_.nF("yt-request-panel-mode-change"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],LI.prototype,"onRequestPanelModeChange",null);_.L([_.nF("yt-guide-hover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"onGuideOpenButtonHover",null);_.L([_.nF("app-drawer-transitioned"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],LI.prototype,"onDrawerIronSelect",null);
_.L([_.nF("yt-add-element-to-app"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],LI.prototype,"onAddElementToApp",null);_.L([_.nF("yt-set-fullerscreen-styles"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"setFullscreen",null);_.L([_.nF("yt-open-hotkey-dialog"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LI.prototype,"onOpenHotkeyDialog",null);
_.L([_.y({is:"ytd-app"})],LI);_.So().processSignal("eor");
_.Oq();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
